/* Simi AI Chatbot - 2026 Design System */
/* Glassmorphism + Gradient Mesh + Micro-interactions */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #ff6b9d;
    --primary-light: #ff8fb3;
    --primary-dark: #e54d7a;
    --secondary: #a855f7;
    --accent: #06d6a0;

    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-gradient-1: #0f0f1a;
    --bg-gradient-2: #1a1025;
    --bg-gradient-3: #0d1520;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    /* Text Colors */
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* Base Styles */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 107, 157, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 214, 160, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
    z-index: -1;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Main Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

/* ================================
   CHAT PANEL
   ================================ */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid var(--glass-border);
    position: relative;
}

/* Header */
.chat-header {
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + var(--safe-top));
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 10;
}

.chat-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.chat-header-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-header-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.chat-header-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chat-header-actions {
    margin-left: auto;
    display: flex;
    gap: var(--spacing-sm);
}

/* Icon Buttons */
.icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition-base);
}

.icon-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.2);
}

.icon-btn:hover::before {
    opacity: 0.1;
}

.icon-btn:active {
    transform: translateY(0) scale(0.95);
}

/* ================================
   MESSAGES
   ================================ */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    animation: messageSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    position: relative;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-bottom-right-radius: var(--spacing-xs);
    box-shadow:
        0 4px 16px rgba(255, 107, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.message.assistant {
    align-self: flex-start;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: var(--spacing-xs);
}

.message-emoji {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-end;
    margin-top: var(--spacing-xs);
}

/* ================================
   INPUT AREA
   ================================ */
.chat-input-container {
    padding: var(--spacing-md) var(--spacing-lg);
    padding-bottom: calc(var(--spacing-md) + var(--safe-bottom));
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xs);
    transition: var(--transition-base);
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

#chat-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

#chat-input::placeholder {
    color: var(--text-muted);
}

.send-btn, .voice-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.send-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.4);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.5);
}

.send-btn:active {
    transform: scale(0.95);
}

.voice-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.voice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.voice-btn.listening {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(255, 107, 157, 0); }
}

/* ================================
   CHARACTER PANEL
   ================================ */
.character-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

/* Ambient glow effect */
.character-panel::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: ambientGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ambientGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.character-wrapper {
    position: relative;
    width: 350px;
    height: 450px;
    z-index: 1;
}

.character {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 350px;
    overflow: hidden;
}

.character img {
    width: 250%;
    height: auto;
    object-fit: cover;
    object-position: left top;
    filter: drop-shadow(0 0 40px rgba(255, 107, 157, 0.4));
    transition: filter 0.4s, transform 0.4s;
}

/* Character States */
.character[data-state="idle"] img {
    animation: charIdle 4s ease-in-out infinite;
}

.character[data-state="thinking"] img {
    animation: charThinking 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
}

.character[data-state="talking"] img {
    animation: charTalking 0.4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 200, 100, 0.5));
}

.character[data-state="happy"] img {
    animation: charHappy 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 50px rgba(255, 220, 100, 0.6));
}

.character[data-state="sad"] img {
    animation: charSad 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(100, 150, 255, 0.5));
}

.character[data-state="excited"] img {
    animation: charExcited 0.3s ease-in-out infinite;
    filter: drop-shadow(0 0 60px rgba(255, 150, 100, 0.6));
}

.character[data-state="surprised"] img {
    animation: charSurprised 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 45px rgba(255, 200, 100, 0.5));
}

.character[data-state="worried"] img {
    animation: charWorried 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(150, 150, 200, 0.4));
}

@keyframes charIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes charThinking {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes charTalking {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.02); }
}

@keyframes charHappy {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-4deg); }
    50% { transform: scale(1.08) rotate(4deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1.05) rotate(0deg); }
}

@keyframes charSad {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes charExcited {
    0%, 100% { transform: translateY(0) rotate(-3deg) scale(1.05); }
    50% { transform: translateY(-18px) rotate(3deg) scale(1.1); }
}

@keyframes charSurprised {
    0% { transform: scale(1); }
    30% { transform: scale(1.18) translateY(-12px); }
    100% { transform: scale(1.05); }
}

@keyframes charWorried {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 100;
    max-width: 280px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid rgba(255, 255, 255, 0.95);
}

.speech-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Particles */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.emotion-particle {
    position: absolute;
    font-size: 1.8rem;
    animation: floatUp 2s ease-out forwards;
    z-index: 200;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translateY(-150px) scale(0.4) rotate(45deg); }
}

/* ================================
   SETTINGS PANEL
   ================================ */
.settings-panel {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid var(--glass-border);
    padding: var(--spacing-xl);
    padding-top: calc(var(--spacing-xl) + var(--safe-top));
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.settings-panel.open {
    right: 0;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.settings-panel h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xl);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--glass-border);
}

.setting-row label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 56px;
    height: 30px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

/* Settings Select */
.setting-row-select {
    flex-direction: column;
    align-items: flex-start !important;
    gap: var(--spacing-sm);
}

.setting-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: var(--transition-base);
}

.setting-select:hover {
    border-color: rgba(255, 107, 157, 0.5);
}

.setting-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.setting-select option {
    background: var(--bg-dark);
    color: var(--text);
    padding: var(--spacing-md);
}

/* Volume Slider */
.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    margin-top: var(--spacing-sm);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    transition: var(--transition-base);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    cursor: pointer;
    border: none;
}

/* Settings Info Row */
.setting-row-info {
    flex-direction: column;
    align-items: flex-start !important;
    gap: var(--spacing-xs);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-md);
    border-bottom: none;
}

.setting-row-info span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.setting-row-info span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ================================
   LANGUAGE SELECTOR
   ================================ */
.lang-selector {
    position: fixed;
    top: calc(70px + var(--safe-top));
    right: var(--spacing-lg);
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.lang-selector.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    transition: var(--transition-base);
}

.lang-option:hover {
    background: rgba(255, 107, 157, 0.2);
}

.lang-option:active {
    transform: scale(0.98);
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column-reverse;
    }

    .chat-panel {
        max-width: 100%;
        height: 65%;
        border-right: none;
        border-top: 1px solid var(--glass-border);
    }

    .character-panel {
        height: 35%;
        min-width: unset;
    }

    .character-panel::before {
        width: 200px;
        height: 200px;
    }

    .character-wrapper {
        width: 180px;
        height: 220px;
    }

    .character {
        width: 150px;
        height: 180px;
    }

    .speech-bubble {
        font-size: 0.85rem;
        padding: var(--spacing-sm) var(--spacing-md);
        max-width: 200px;
    }

    .chat-header {
        padding: var(--spacing-md);
    }

    .chat-header-icon {
        font-size: 2rem;
    }

    .chat-header-info h1 {
        font-size: 1.2rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .message {
        max-width: 88%;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .chat-input-container {
        padding: var(--spacing-sm) var(--spacing-md);
        padding-bottom: calc(var(--spacing-sm) + var(--safe-bottom));
    }

    .send-btn, .voice-btn {
        width: 44px;
        height: 44px;
    }

    .settings-panel {
        width: 100%;
        right: -100%;
    }

    .settings-panel.open {
        right: 0;
    }

    .lang-selector {
        right: var(--spacing-md);
        top: calc(60px + var(--safe-top));
    }
}

@media (max-width: 380px) {
    .chat-header-info h1 {
        font-size: 1.1rem;
    }

    .chat-header-info p {
        font-size: 0.75rem;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .message-text {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .app-container {
        flex-direction: row;
    }

    .chat-panel {
        height: 100%;
        max-width: 60%;
        border-top: none;
        border-right: 1px solid var(--glass-border);
    }

    .character-panel {
        height: 100%;
        flex: 1;
    }

    .character-wrapper {
        width: 200px;
        height: 250px;
    }

    .character {
        width: 160px;
        height: 200px;
    }
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}
