/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F1ECE0;
    --highlight: #EC4F23;
    --btn-top: #F8C741;
    --btn-bottom: #2872DD;
    --text-light: #000000;
    --accent-gray: #c8b8a8;
    --floor-indicator: #EC4F23;
    --dialogue-color: #2872DD;
    --thought-color: #666666;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: #F1ECE0;
    overflow: hidden;
    touch-action: none;
}

/* Floor gradient backdrop — WebGL canvas fills this */
.floor-gradient {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

body {
    font-family: 'Sora', sans-serif;
    background: transparent;
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Subtle film grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Subtle film grain — reduced for light theme */

/* === CONTAINER === */
.container {
    min-height: 100vh; /* No scroll — we handle navigation manually */
    position: relative;
    z-index: 2;
    background: transparent;
}

/* === FLOOR INDICATOR (Fixed) === */
.floor-indicator {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

.building-name {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-light);
    opacity: 0.4;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.floor-numbers {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 340px;
    height: 56px;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.floor-numbers-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.floor-dot {
    font-family: 'Doto', sans-serif;
    font-size: 32px;
    font-weight: 400;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #000000;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floor-dot.active {
    background: #000000;
    color: #ffffff;
    opacity: 1;
}

/* === ELEVATOR INTERIOR === */
.elevator-interior {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* === STORY CONTENT === */
.story-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-line {
    position: absolute;
    inset: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    height: fit-content;
    max-height: 85vh;
    padding: 20px 60px;
    opacity: 0;
}

.story-line p {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Dialogue styling */
.dialogue {
    font-family: 'Sora', sans-serif;
    color: var(--dialogue-color);
    line-height: 1.6;
}

.dialogue strong {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 18px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Thought styling */
.thought {
    font-family: 'Sora', sans-serif;
    color: var(--thought-color);
    font-style: italic;
    font-size: 18px;
}

/* === SCROLL HINT === */
.scroll-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: pulse 3s ease-in-out infinite;
}

/* === QUIZ CTA === */
.quiz-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #000000;
    background: #EC4F23;
    border: none;
    border-radius: 24px;
    height: 44px;
    padding: 0 28px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.quiz-cta:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 16px rgba(236, 79, 35, 0.3);
}

/* === INFO PILL === */
.info-pill {
    position: fixed;
    bottom: 24px;
    right: 60px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F8C741;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s ease;
}

.info-pill svg {
    color: #000000;
    opacity: 1;
    transition: all 0.3s ease;
}

.info-pill:hover svg {
    opacity: 1;
}

/* === INFO OVERLAY === */
.info-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(241, 236, 224, 0.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
}

.info-overlay.open {
    opacity: 1;
    visibility: visible;
}

.info-overlay-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.info-close {
    position: fixed;
    top: 60px;
    left: 60px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 210;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.info-close svg {
    color: var(--floor-indicator);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.info-close:hover svg {
    opacity: 1;
}

.info-scroll {
    max-width: 640px;
    margin: 0 auto;
    padding: 140px 40px 120px;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s;
}

.info-overlay.open .info-scroll {
    transform: translateY(0);
    opacity: 1;
}

.info-overlay h1 {
    font-family: 'Sora', sans-serif;
    font-size: 48px;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-light);
}

.info-tagline {
    font-size: 15px;
    font-weight: 300;
    color: #666666;
    margin-bottom: 60px;
    line-height: 1.6;
}

.info-divider {
    width: 40px;
    height: 1px;
    background: var(--floor-indicator);
    opacity: 0.2;
    margin: 48px 0;
}

.info-section {
    margin-bottom: 48px;
}

.info-label {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--floor-indicator);
    opacity: 0.6;
    margin-bottom: 16px;
}

.info-section p {
    font-size: 15px;
    font-weight: 300;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.info-section p strong {
    color: var(--text-light);
    font-weight: 500;
}

.info-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.info-spec {
    font-size: 13px;
    font-weight: 300;
    color: #666666;
}

.info-spec-val {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 200;
    color: var(--text-light);
    margin-bottom: 2px;
}

.info-story-list {
    list-style: none;
}

.info-story-list li {
    font-size: 15px;
    font-weight: 300;
    color: #666666;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.info-story-num {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--floor-indicator);
    opacity: 0.5;
    margin-right: 12px;
}

.info-story-title {
    color: var(--text-light);
    font-weight: 400;
}

.info-quote {
    font-style: italic;
    font-size: 15px;
    color: #666666;
    border-left: 2px solid rgba(250, 88, 96, 0.25);
    padding-left: 20px;
    margin-top: 48px;
    line-height: 1.8;
}

.info-attribution {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 12px;
    color: var(--floor-indicator);
    opacity: 0.4;
}

.info-credits {
    font-size: 12px;
    color: #666666;
    opacity: 0.4;
    margin-top: 60px;
}

/* Hide CN in overlay */
.info-overlay .cn[hidden] { display: none; }

/* === END INFO OVERLAY === */

/* === VOCAB PILL (bottom-left) === */
.vocab-pill {
    position: fixed;
    bottom: 24px;
    left: 60px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2872DD;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.vocab-pill svg {
    color: #000000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.vocab-pill:hover svg {
    opacity: 1;
}

/* === INLINE STICKERS === */
.inline-sticker {
    display: inline-block;
    width: 2.5em;
    height: 2.5em;
    vertical-align: middle;
    margin: 0 0.05em;
    position: relative;
    top: -0.05em;
}

/* === VOCAB WORD HIGHLIGHTING === */
.vocab-word {
    color: var(--floor-indicator);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.vocab-word:hover {
    opacity: 0.8;
}

/* === VOCAB TOOLTIP === */
.vocab-tooltip {
    position: fixed;
    z-index: 150;
    background: rgba(241, 236, 224, 0.96);
    border: 1px solid rgba(250, 88, 96, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    max-width: 320px;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.vocab-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.vocab-tooltip-word {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--floor-indicator);
    margin-bottom: 2px;
}

.vocab-tooltip-pron {
    font-family: monospace;
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
}

.vocab-tooltip-def {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.8;
}

/* === VOCAB OVERLAY CONTENT === */
.vocab-entry {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.vocab-entry:last-child {
    border-bottom: none;
}

.vocab-entry-word {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2px;
}

.vocab-entry-meta {
    font-family: monospace;
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
}

.vocab-entry-def {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.vocab-entry-context {
    font-size: 14px;
    font-weight: 300;
    color: #666666;
    line-height: 1.7;
    font-style: italic;
    border-left: 2px solid rgba(236, 79, 35, 0.15);
    padding-left: 16px;
    margin-bottom: 12px;
}

.vocab-entry-examples {
    list-style: none;
    margin-bottom: 12px;
}

.vocab-entry-examples li {
    font-size: 14px;
    font-weight: 300;
    color: #666666;
    line-height: 1.7;
    padding: 4px 0;
}

.vocab-entry-examples li::before {
    content: '—';
    margin-right: 8px;
    opacity: 0.4;
}

.vocab-entry-synonyms {
    font-size: 13px;
    font-weight: 300;
    color: #a09080;
}

.vocab-entry-synonyms span {
    color: #7a6a5a;
}

/* === QUIZ OVERLAY === */
.quiz-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(241, 236, 224, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    overflow: hidden;
}

.quiz-overlay.open {
    transform: translateY(0);
    visibility: visible;
}

.quiz-overlay-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.quiz-close {
    position: fixed;
    top: 60px;
    left: 60px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 210;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.quiz-close svg {
    color: var(--floor-indicator);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.quiz-close:hover svg {
    opacity: 1;
}

.quiz-overlay-scroll {
    max-width: 600px;
    margin: 0 auto;
    padding: 140px 40px 120px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* === QUIZ SCREEN === */
.quiz-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    width: 100%;
    max-width: 560px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.quiz-label {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--floor-indicator);
    opacity: 0.6;
}

.quiz-progress {
    font-family: 'Doto', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.4;
    font-variation-settings: "ROND" 0;
}

.quiz-context {
    font-size: 15px;
    font-weight: 300;
    color: #666666;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
    min-height: 24px;
}

.quiz-context strong {
    color: var(--floor-indicator);
    font-weight: 500;
    font-style: normal;
}

.quiz-question {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-light);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    touch-action: auto;
    -webkit-tap-highlight-color: rgba(250, 88, 96, 0.12);
}

.quiz-option:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(250, 88, 96, 0.25);
}

.quiz-option-letter {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--floor-indicator);
    opacity: 0.5;
    min-width: 20px;
}

.quiz-option.correct {
    border-color: rgba(60, 160, 80, 0.5);
    background: rgba(60, 160, 80, 0.08);
}

.quiz-option.wrong {
    border-color: rgba(200, 60, 60, 0.4);
    background: rgba(200, 60, 60, 0.06);
    opacity: 0.5;
}

.quiz-option.disabled {
    pointer-events: none;
}

/* Quiz results */
.quiz-results {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.quiz-score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.quiz-score-number {
    font-family: 'Doto', sans-serif;
    font-size: 72px;
    font-weight: 300;
    color: var(--floor-indicator);
    line-height: 1;
    font-variation-settings: "ROND" 0;
}

.quiz-score-label {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 200;
    color: var(--text-light);
    opacity: 0.4;
}

.quiz-score-msg {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #666666;
    margin-bottom: 32px;
}

.quiz-word-results {
    text-align: left;
    margin-bottom: 32px;
}

.quiz-word-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light);
}

.quiz-word-result .mark {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.quiz-word-result .mark.correct { color: rgba(60, 160, 80, 0.8); }
.quiz-word-result .mark.wrong { color: rgba(200, 60, 60, 0.7); }

.quiz-word-result .word-name {
    flex: 1;
}

.quiz-word-result .review-hint {
    font-size: 12px;
    color: rgba(200, 60, 60, 0.5);
    font-style: italic;
}

.quiz-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quiz-btn {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(236, 79, 35, 0.3);
    background: rgba(236, 79, 35, 0.1);
    color: var(--floor-indicator);
    cursor: pointer;
    transition: all 0.25s ease;
    touch-action: auto;
}

.quiz-btn:hover {
    background: rgba(236, 79, 35, 0.15);
    border-color: rgba(236, 79, 35, 0.5);
}

.quiz-btn-secondary {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-light);
    opacity: 0.6;
}

.quiz-btn-secondary:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* === END QUIZ === */

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }
    50% { 
        opacity: 0.6;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .floor-indicator {
        top: 24px;
    }

    .floor-dot {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 22px;
    }

    .floor-numbers {
        width: 280px;
    }

    .floor-numbers-track {
        gap: 6px;
    }

    .building-name {
        font-size: 9px;
        letter-spacing: 0.15em;
    }

    .story-line {
        padding: 20px 40px;
        max-width: 100%;
    }

    .story-line p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 14px;
    }

    .dialogue {
        font-size: 15px;
    }

    .dialogue strong {
        font-size: 14px;
    }

    .thought {
        font-size: 15px;
    }

    .scroll-hint {
        bottom: 36px;
        font-size: 10px;
    }

    .info-pill {
        bottom: 24px;
        right: 20px;
        width: 38px;
        height: 38px;
    }

    .info-close {
        top: 24px;
        left: 20px;
        width: 38px;
        height: 38px;
    }

    .info-scroll {
        padding: 100px 24px 80px;
    }

    .info-overlay h1 {
        font-size: 36px;
    }

    .info-specs {
        grid-template-columns: 1fr;
    }

    .lang-pill {
        bottom: 36px;
        left: 20px;
        height: 38px;
        padding: 0 14px;
    }

    .vocab-pill {
        bottom: 24px;
        left: 20px;
        width: 38px;
        height: 38px;
    }

    .vocab-tooltip {
        left: 20px !important;
        right: 20px !important;
        max-width: none;
    }

    .quiz-close {
        top: 24px;
        left: 20px;
        width: 38px;
        height: 38px;
    }

    .quiz-overlay-scroll {
        padding: 100px 24px 80px;
    }

    .quiz-question {
        font-size: 16px;
    }

    .quiz-option {
        font-size: 14px;
        padding: 14px 16px;
    }

    .quiz-score-number {
        font-size: 56px;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .vocab-entry-word {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .floor-indicator {
        top: 16px;
    }

    .floor-dot {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 18px;
    }

    .floor-numbers {
        width: 240px;
    }

    .floor-numbers-track {
        gap: 4px;
    }

    .story-line {
        padding: 20px 36px;
    }

    .story-line p {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 12px;
    }

    .dialogue {
        font-size: 14px;
    }

    .dialogue strong {
        font-size: 13px;
    }

    .thought {
        font-size: 14px;
    }
}

/* === STORY MENU === */

/* Backdrop overlay */
.story-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.story-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar panel — left, full height, yellow bg */
.story-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    background: #F8C741;
    color: #000;
    width: 280px;
    padding: 40px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.story-menu.open {
    transform: translateX(0);
}

.story-menu-label {
    font-family: 'Doto', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 20px;
    color: #000;
}

.story-menu-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    padding: 14px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    text-align: left;
    color: #000;
    border-bottom: none;
    transition: opacity 0.2s;
    opacity: 0.45;
}
.story-menu-item:last-child { border-bottom: none; }
.story-menu-item:hover { opacity: 0.75; }
.story-menu-item.active { opacity: 1; }

.story-menu-num {
    font-family: 'Doto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    min-width: 28px;
    color: #000;
}

.story-menu-title {
    font-weight: 400;
    color: #000;
}


.story-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    padding: 0;
}
.story-menu-close svg {
    color: #000;
    opacity: 0.6;
}
.story-menu-close:hover svg { opacity: 1; }
.story-menu-close svg {
    color: #000;
    opacity: 0.6;
}
.story-menu-close:hover svg { opacity: 1; }

/* === VOCAB OVERLAY BLUE THEME === */
div.info-overlay.vocab-overlay {
    background: #2872DD !important; backdrop-filter: none !important;
}
.vocab-overlay .info-scroll h1,
.vocab-overlay .info-tagline,
.vocab-overlay .info-divider {
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}
.vocab-overlay .vocab-entry {
    border-bottom-color: rgba(255,255,255,0.1);
}
.vocab-overlay .vocab-entry-word {
    color: #fff;
}
.vocab-overlay .vocab-entry-meta {
    color: rgba(255,255,255,0.5);
}
.vocab-overlay .vocab-entry-def {
    color: rgba(255,255,255,0.9);
}
.vocab-overlay .vocab-entry-context {
    color: rgba(255,255,255,0.6);
    border-left-color: rgba(248,199,65,0.4);
}
.vocab-overlay .vocab-entry-examples li {
    color: rgba(255,255,255,0.6);
}
.vocab-overlay .vocab-entry-examples li::before {
    color: rgba(255,255,255,0.3);
}
.vocab-overlay .vocab-entry-synonyms {
    color: rgba(255,255,255,0.4);
}
.vocab-overlay .vocab-entry-synonyms span {
    color: #F8C741;
}
.vocab-overlay .info-close {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}
.vocab-overlay .info-close svg {
    color: #fff;
}
