/* ============================================================
   MYSTERY GAME — STYLESHEET v2
   Aesthetic: Luxury editorial noir. 2026.
   Think: Criterion Collection meets interactive fiction.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400&display=swap');

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

:root {
    /* Core palette */
    --ink:         #0e0c09;
    --ink-soft:    #161310;
    --ink-mid:     #1e1a14;
    --ink-lift:    #272218;
    --ink-border:  #302a1e;
    --ink-subtle:  #3d3526;

    --gold:        #c9993a;
    --gold-bright: #e8b84b;
    --gold-dim:    #7a5e22;
    --gold-ghost:  #3a2e12;

    --cream:       #f0e8d8;
    --cream-mid:   #d8ccb4;
    --cream-dim:   #b0a080;
    --cream-muted: #8a7a60;
    --cream-ghost: #6a5e48;

    --red-dark:    #5a1515;
    --red-mid:     #8a2020;
    --red-light:   #e8b0b0;

    /* Typography scale */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'DM Mono', monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.75rem;

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;

    /* Radius */
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 12px;
}

html { font-size: 17px; }
body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--cream-mid);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   GRAIN TEXTURE OVERLAY
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201,153,58,0.06) 0%, transparent 70%),
        var(--ink);
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
}

.login-ornament {
    font-family: var(--font-display);
    color: var(--gold-dim);
    font-size: var(--text-xl);
    letter-spacing: 0.8rem;
    margin-bottom: var(--sp-4);
    opacity: 0.7;
}

.login-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
    line-height: 1;
}

.login-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--cream-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--sp-6);
    font-weight: 300;
}

.login-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
    margin: 0 auto var(--sp-8);
}

.login-error {
    background: rgba(90,21,21,0.4);
    border: 1px solid var(--red-mid);
    color: var(--red-light);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-sm);
    margin-bottom: var(--sp-5);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
}

.login-form { text-align: left; }

.form-group { margin-bottom: var(--sp-5); }

.form-group label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: var(--cream-muted);
    margin-bottom: var(--sp-2);
    font-family: var(--font-body);
}

.form-group input {
    width: 100%;
    background: var(--ink-mid);
    border: 1px solid var(--ink-border);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus {
    border-color: var(--gold-dim);
    background: var(--ink-lift);
}

.form-group input::placeholder { color: var(--cream-ghost); }

.btn-login {
    width: 100%;
    background: var(--gold-ghost);
    border: 1px solid var(--gold-dim);
    color: var(--gold-bright);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: 0.08rem;
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    transition: all 0.25s;
    border-radius: var(--r-sm);
    margin-top: var(--sp-2);
}

.btn-login:hover {
    background: rgba(201,153,58,0.2);
    border-color: var(--gold);
    color: var(--gold-bright);
}

.lang-switch {
    display: inline-block;
    margin-top: var(--sp-6);
    color: var(--cream-ghost);
    font-size: var(--text-sm);
    text-decoration: none;
    letter-spacing: 0.05rem;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.lang-switch:hover { color: var(--gold); }

.logout-link {
    display: block;
    margin-top: var(--sp-4);
    color: var(--cream-ghost);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color 0.2s;
}

.logout-link:hover { color: var(--cream-muted); }

/* ============================================================
   GAME ROOT
   ============================================================ */

.game-page { background: var(--ink); }

#game-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   TITLE SCREEN
   ============================================================ */

.title-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(201,153,58,0.08) 0%, transparent 60%),
        var(--ink);
    position: relative;
    overflow: hidden;
}

.title-screen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(201,153,58,0.15));
    pointer-events: none;
}

.title-ornament {
    font-family: var(--font-display);
    color: var(--gold-dim);
    font-size: var(--text-2xl);
    letter-spacing: 1rem;
    margin-bottom: var(--sp-5);
    opacity: 0.6;
}

.title-main {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1.05;
    margin-bottom: var(--sp-3);
    letter-spacing: 0.02rem;
}

.title-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-xl);
    color: var(--cream-muted);
    font-weight: 300;
    margin-bottom: var(--sp-3);
}

.title-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
    margin: var(--sp-6) auto;
}

.title-tagline {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--cream-muted);
    font-style: italic;
    font-weight: 300;
    max-width: 460px;
    line-height: 1.8;
    margin-bottom: var(--sp-8);
}

.btn-start {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    padding: var(--sp-3) var(--sp-8);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: var(--r-sm);
}

.btn-start:hover {
    background: rgba(201,153,58,0.12);
    border-color: var(--gold);
    letter-spacing: 0.18rem;
}

/* ============================================================
   GAME LAYOUT
   ============================================================ */

.game-layout {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

.game-header {
    background: var(--ink-soft);
    border-bottom: 1px solid var(--ink-border);
    padding: var(--sp-3) var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.05rem;
}

.header-right { display: flex; align-items: center; gap: var(--sp-3); }

.phase-badge {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gold-dim);
    border: 1px solid var(--ink-border);
    padding: var(--sp-1) var(--sp-3);
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    border-radius: 2px;
}

.header-logout {
    color: var(--cream-ghost);
    text-decoration: none;
    font-size: var(--text-base);
    transition: color 0.2s;
    line-height: 1;
    padding: var(--sp-1);
}

.header-logout:hover { color: var(--red-light); }

.game-body {
    display: flex;
    flex: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 210px;
    min-width: 210px;
    background: var(--ink-soft);
    border-right: 1px solid var(--ink-border);
    display: flex;
    flex-direction: column;
    padding: var(--sp-4) 0;
    overflow-y: auto;
}

.sidebar-section-title {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--cream-ghost);
    padding: var(--sp-3) var(--sp-4) var(--sp-2);
}

.sidebar-item {
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--cream-dim);
    cursor: pointer;
    transition: all 0.18s;
    border-left: 2px solid transparent;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.sidebar-item .icon {
    font-size: 0.9rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.sidebar-item:hover {
    background: rgba(201,153,58,0.07);
    color: var(--gold);
    border-left-color: var(--gold-dim);
}

.sidebar-item.active {
    background: rgba(201,153,58,0.1);
    color: var(--gold-bright);
    border-left-color: var(--gold);
}

.sidebar-item.locked {
    color: var(--cream-ghost);
    cursor: default;
    font-style: italic;
    opacity: 0.5;
}

.sidebar-item.locked:hover {
    background: transparent;
    color: var(--cream-ghost);
    border-left-color: transparent;
}

.sidebar-divider {
    height: 1px;
    background: var(--ink-border);
    margin: var(--sp-3) var(--sp-4);
}

.clue-item {
    background: rgba(201,153,58,0.05);
    border-left: 2px solid var(--gold-dim);
    padding: var(--sp-2) var(--sp-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--cream-dim);
    margin: var(--sp-1) var(--sp-3);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    line-height: 1.4;
}

#no-clues {
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--text-xs);
    color: var(--cream-muted);
    font-style: italic;
    font-family: var(--font-body);
}

/* ============================================================
   MAIN AREA
   ============================================================ */

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ink);
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    min-height: 300px;
}

/* Scrollbar styling */
.chat-window::-webkit-scrollbar { width: 4px; }
.chat-window::-webkit-scrollbar-track { background: transparent; }
.chat-window::-webkit-scrollbar-thumb { background: var(--ink-subtle); border-radius: 2px; }

/* Messages */
.msg {
    line-height: 1.75;
    font-size: var(--text-base);
    max-width: 92%;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg-narrator {
    align-self: center;
    background: var(--ink-mid);
    border: 1px solid var(--ink-border);
    border-left: 3px solid var(--gold-dim);
    padding: var(--sp-4) var(--sp-5);
    color: var(--cream-mid);
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--text-base);
    font-weight: 300;
    max-width: 100%;
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.msg-character {
    align-self: flex-start;
    background: var(--ink-soft);
    border: 1px solid var(--ink-border);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-md);
    max-width: 85%;
}

.msg-player {
    align-self: flex-end;
    background: var(--ink-lift);
    border: 1px solid var(--ink-subtle);
    padding: var(--sp-3) var(--sp-5);
    color: var(--cream);
    border-radius: var(--r-md);
    max-width: 72%;
    font-family: var(--font-body);
    font-size: var(--text-base);
}

.msg-speaker {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: var(--sp-2);
}

.msg-character .msg-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--cream-mid);
    line-height: 1.8;
}

.msg-thinking {
    align-self: flex-start;
    color: var(--cream-muted);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    padding: var(--sp-2) var(--sp-4);
    animation: pulse 1.4s infinite;
    letter-spacing: 0.05rem;
}

@keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:0.8} }

.location-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: var(--cream-muted);
    display: inline-block;
    margin-bottom: var(--sp-2);
    padding: 2px var(--sp-2);
    background: var(--ink-mid);
    border-radius: 2px;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.quick-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    padding: var(--sp-3) var(--sp-5);
    border-top: 1px solid var(--ink-mid);
    background: var(--ink-soft);
}

.quick-btn {
    background: transparent;
    border: 1px solid var(--ink-border);
    color: var(--cream-muted);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: var(--sp-2) var(--sp-3);
    cursor: pointer;
    transition: all 0.18s;
    border-radius: var(--r-sm);
    line-height: 1.2;
}

.quick-btn:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(201,153,58,0.06);
}

.quick-btn.accent {
    border-color: rgba(138,32,32,0.5);
    color: #c09090;
}

.quick-btn.accent:hover {
    border-color: var(--red-mid);
    color: var(--red-light);
    background: rgba(90,21,21,0.2);
}

/* ============================================================
   INPUT AREA
   ============================================================ */

.input-area {
    border-top: 1px solid var(--ink-border);
    background: var(--ink-soft);
    padding: var(--sp-3) var(--sp-5);
    display: flex;
    gap: var(--sp-3);
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: var(--ink-mid);
    border: 1px solid var(--ink-subtle);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--sp-3) var(--sp-4);
    resize: none;
    min-height: 48px;
    max-height: 130px;
    line-height: 1.5;
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.chat-input:focus {
    border-color: var(--gold-dim);
    background: var(--ink-lift);
}

.chat-input::placeholder {
    color: var(--cream-muted);
    font-style: italic;
    opacity: 0.7;
}

.btn-send {
    background: var(--gold-dim);
    border: none;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05rem;
    padding: var(--sp-3) var(--sp-5);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--r-sm);
    min-width: 80px;
    height: 48px;
}

.btn-send:hover { background: var(--gold); }
.btn-send:disabled {
    background: var(--ink-subtle);
    color: var(--cream-ghost);
    cursor: default;
}

/* ============================================================
   ACCUSATION PANEL
   ============================================================ */

.accusation-panel {
    display: none;
    padding: var(--sp-5) var(--sp-6);
    background: var(--ink-soft);
    border-top: 1px solid var(--ink-border);
}

.accusation-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: var(--text-2xl);
    font-weight: 300;
    margin-bottom: var(--sp-4);
}

.select-accusation,
.accusation-textarea {
    background: var(--ink-mid);
    border: 1px solid var(--ink-subtle);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--sp-3) var(--sp-4);
    width: 100%;
    margin-bottom: var(--sp-3);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.2s;
}

.accusation-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.select-accusation:focus,
.accusation-textarea:focus { border-color: var(--gold-dim); }

.accusation-textarea::placeholder { color: var(--cream-muted); opacity: 0.7; }

.btn-accuse {
    background: var(--red-dark);
    border: 1px solid var(--red-mid);
    color: var(--red-light);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--sp-3) var(--sp-6);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    border-radius: var(--r-sm);
    letter-spacing: 0.04rem;
}

.btn-accuse:hover { background: var(--red-mid); }

/* ============================================================
   RESULT SCREEN
   ============================================================ */

.result-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(201,153,58,0.06) 0%, transparent 60%),
        var(--ink);
}

.result-icon { font-size: 4rem; margin-bottom: var(--sp-5); }

.result-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--gold);
    margin-bottom: var(--sp-5);
}

.result-body {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--cream-dim);
    max-width: 520px;
    line-height: 1.9;
    margin-bottom: var(--sp-8);
    font-style: italic;
}

.result-buttons { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }

.btn-restart, .btn-exit {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    padding: var(--sp-3) var(--sp-6);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--r-sm);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.06rem;
}

.btn-restart:hover, .btn-exit:hover {
    background: rgba(201,153,58,0.1);
    border-color: var(--gold);
}

.btn-exit {
    border-color: var(--ink-border);
    color: var(--cream-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    html { font-size: 16px; }
    .sidebar { width: 160px; min-width: 160px; }
    .sidebar-item { font-size: var(--text-xs); padding: var(--sp-2) var(--sp-3); }
    .sidebar-section-title { padding: var(--sp-2) var(--sp-3) var(--sp-1); }
    .header-title { font-size: var(--text-sm); }
    .title-main { font-size: 2.2rem; }
    .chat-window { padding: var(--sp-4) var(--sp-3); }
    .input-area { padding: var(--sp-2) var(--sp-3); }
    .quick-actions { padding: var(--sp-2) var(--sp-3); }
}

/* ============================================================
   SIDEBAR COLLAPSIBLE — v4.1
   Unified logic for all screen sizes
   ============================================================ */

/* Toggle button — always visible */
.sidebar-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--ink-border);
    color: var(--cream-dim);
    font-size: 1.1rem;
    padding: var(--sp-1) var(--sp-3);
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

/* ── DESKTOP: sidebar collapses inline (width → 0) ── */
.sidebar {
    transition: width 0.25s ease, min-width 0.25s ease,
                opacity 0.2s ease, padding 0.25s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    opacity: 0;
    border-right: none;
}

/* ── MOBILE: sidebar slides in as overlay panel ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 50;
    cursor: pointer;
}
.sidebar-overlay.visible { display: block; }

@media (max-width: 640px) {
    /* On mobile the sidebar is always a fixed panel */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        width: 250px !important;
        min-width: 250px !important;
        background: var(--ink-soft);
        padding-top: 3.5rem !important;
        transform: translateX(-100%);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.2s ease !important;
        border-right: 1px solid var(--ink-border);
        overflow-y: auto;
    }

    /* Open state on mobile */
    .sidebar.mobile-open {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    /* collapsed has no effect on mobile — use mobile-open instead */
    .sidebar.collapsed {
        width: 250px !important;
        min-width: 250px !important;
        padding-top: 3.5rem !important;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
    }

    .sidebar-item { font-size: var(--text-base); padding: var(--sp-3) var(--sp-4); }
    .sidebar-section-title { font-size: 0.7rem; padding: var(--sp-3) var(--sp-4) var(--sp-2); }
    .main-area { width: 100%; }
    .msg-character, .msg-player { max-width: 100%; }
    .game-header { padding: var(--sp-2) var(--sp-3); }
    .header-title { font-size: 0.8rem; }
    .quick-actions { gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); }
    .quick-btn { font-size: 0.75rem; padding: var(--sp-1) var(--sp-2); }
    .input-area { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2); }
}

/* Suggestions label */
.quick-actions-label {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: var(--cream-ghost);
    padding: 0 var(--sp-1);
    margin-bottom: -var(--sp-1);
}
