/* ============================================================
   THE PROLOGUE (Origin Story) - the flip-book journal
   ============================================================ */

        /* ---------- RESET / BASE ---------- */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html,
        body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: #1f1509;
            font-family: 'Spectral', serif;
        }

        /* ---------- FOREST SCENE ---------- */
        .forest-scene {
            position: fixed;
            inset: 0;
            z-index: 120;
            display: none;
            align-items: center;
            justify-content: center;
            background: #2d1f0e;
            overflow: hidden;
            font-family: 'Spectral', serif;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
        
            cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%2021L3%2017L17%203L21%207L7%2021Z%22%20fill%3D%22%238ee08a%22%20stroke%3D%22%23173a1c%22%20stroke-width%3D%221.3%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M17%203L21%207%22%20stroke%3D%22%23173a1c%22%20stroke-width%3D%221%22/%3E%3C/svg%3E") 12 12, auto;
        }
        .forest-scene.visible {
            pointer-events: auto;
            opacity: 1;
        }
        .forest-scene .wood-bg {
            position: absolute;
            inset: 0;
            background:
                repeating-linear-gradient(90deg, rgba(60, 40, 20, 0.15) 0px, rgba(60, 40, 20, 0.15) 2px, transparent 2px, transparent 8px),
                repeating-linear-gradient(0deg, rgba(40, 25, 10, 0.10) 0px, rgba(40, 25, 10, 0.10) 1px, transparent 1px, transparent 12px),
                radial-gradient(ellipse at 30% 40%, #3d2b17, #1f1509);
            pointer-events: none;
        }
        /* ---------- ACCESSIBILITY UTILITIES ---------- */
        .forest-scene .visually-hidden {
            position: absolute !important;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        /* ---------- AMBIENT FIREFLIES ---------- */
        .forest-scene .firefly {
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #d9c27a;
            box-shadow: 0 0 8px 2px rgba(217, 194, 122, 0.7), 0 0 18px 6px rgba(217, 194, 122, 0.25);
            pointer-events: none;
            z-index: 1;
            opacity: 0;
            animation: fireflyDrift linear infinite, fireflyGlow ease-in-out infinite;
        }
        @keyframes fireflyDrift {
            0% { transform: translate(0, 0); }
            25% { transform: translate(30px, -22px); }
            50% { transform: translate(-14px, -40px); }
            75% { transform: translate(-34px, -10px); }
            100% { transform: translate(0, 0); }
        }
        @keyframes fireflyGlow {
            0%, 100% { opacity: 0; }
            50% { opacity: 0.85; }
        }
        @media (prefers-reduced-motion: reduce) {
            .forest-scene .firefly {
                animation: fireflyGlow 4s ease-in-out infinite;
            }
        }

        /* ---------- BOOK WRAPPER ---------- */
        .forest-scene .book-wrapper {
            position: relative;
            width: 90vw;
            max-width: 1100px;
            height: 78vh;
            max-height: 700px;
            perspective: 1800px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        /* ---------- BOOK (3D container) ---------- */
        .forest-scene .book {
            position: relative;
            width: 100%;
            height: calc(100% - 3.6rem);
            transform-style: preserve-3d;
            transform: rotateY(0deg);
            transition: transform 0.6s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 2px #5a3d20, 0 0 0 4px #3d2b17;
            border-radius: 4px 12px 12px 4px;
            background: #f4ede4;
            flex-shrink: 0;
        }
        .forest-scene .book.cover-closed {
            transform: rotateY(0deg) scale(0.98);
        }
        .forest-scene .book.cover-open {
            transform: rotateY(0deg) scale(1);
        }

        /* ---------- COVER ---------- */
        .forest-scene .book-cover {
            position: absolute;
            inset: 0;
            z-index: 50;
            background: linear-gradient(145deg, #2d5a27, #1a3a15);
            border-radius: 4px 12px 12px 4px;
            transform-style: preserve-3d;
            transform-origin: left center;
            transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.6s ease;
            will-change: transform, opacity;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            border-right: 3px solid #c9a86a;
        }
        .forest-scene .book-cover .cover-title {
            margin: 0;
            font-weight: 400;
            font-family: 'Cinzel', serif;
            font-size: clamp(1.4rem, 4vw, 3.2rem);
            color: #e8d5b0;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            letter-spacing: 4px;
            text-align: center;
            padding: 0 1rem;
            transform: translateZ(20px);
        }
        .forest-scene .book-cover .cover-title small {
            display: block;
            font-size: 0.35em;
            letter-spacing: 6px;
            opacity: 0.7;
            margin-top: 0.5rem;
            font-family: 'Spectral', serif;
            font-style: italic;
        }
        .forest-scene .book-cover .cover-ornament {
            margin-top: 1rem;
            font-size: clamp(1.8rem, 3vw, 3.5rem);
            opacity: 0.5;
            transform: translateZ(15px);
            color: #c9a86a;
        }
        .forest-scene .book.cover-open .book-cover {
            transform: perspective(1800px) rotateY(-170deg) translateX(-10px);
            opacity: 0;
            pointer-events: none;
            transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease 0.3s;
        }

        /* ---------- SPREAD (one per chapter) ---------- */
        .forest-scene .spread {
            position: absolute;
            inset: 0;
            display: flex;
            transform-style: preserve-3d;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s;
            border-radius: 4px 12px 12px 4px;
            overflow: hidden;
        }
        .forest-scene .spread.active {
            opacity: 1;
            visibility: visible;
            z-index: 10;
        }
        .forest-scene .spread.leaving {
            opacity: 0;
            visibility: hidden;
            z-index: 5;
            transition: opacity 0.5s ease, visibility 0.5s;
        }

        /* ---------- GUTTER SHADOW (spine) ---------- */
        .forest-scene .spread::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            width: 6px;
            height: 100%;
            transform: translateX(-50%);
            z-index: 2;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.06) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.06) 100%);
            pointer-events: none;
        }

        /* ---------- LEFT PAGE ---------- */
        .forest-scene .page-left {
            flex: 0 0 50%;
            height: 100%;
            background: #f4ede4;
            background-image:
                radial-gradient(ellipse at 20% 30%, rgba(200, 180, 155, 0.2) 0%, transparent 70%),
                repeating-linear-gradient(45deg, rgba(180, 160, 130, 0.03) 0px, rgba(180, 160, 130, 0.03) 2px, transparent 2px, transparent 8px);
            padding: 1.5rem 1rem 1.5rem 1.8rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            border-right: 2px solid #d4c5b0;
            box-shadow: inset -4px 0 12px rgba(0, 0, 0, 0.04);
            overflow: hidden;
        }
        .forest-scene .page-left .illustration-wrap {
            width: 100%;
            height: 80%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
        }
        .forest-scene .page-left .illustration-wrap svg {
            width: 100%;
            height: 100%;
            max-width: 400px;
            max-height: 400px;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
        }
        .forest-scene .page-left .chapter-number {
            font-family: 'Cinzel', serif;
            font-size: 0.7rem;
            color: #b8a48a;
            letter-spacing: 4px;
            margin-top: 0.4rem;
            opacity: 0.4;
            border-top: 1px solid rgba(180, 160, 130, 0.2);
            padding-top: 0.4rem;
        }

        /* ---------- RIGHT PAGE ---------- */
        .forest-scene .page-right {
            flex: 0 0 50%;
            height: 100%;
            background: #f4ede4;
            background-image:
                radial-gradient(ellipse at 80% 30%, rgba(200, 180, 155, 0.15) 0%, transparent 70%),
                repeating-linear-gradient(-45deg, rgba(180, 160, 130, 0.03) 0px, rgba(180, 160, 130, 0.03) 2px, transparent 2px, transparent 8px);
            padding: 1.8rem 1.8rem 1.8rem 1.5rem;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow-y: auto;
            border-left: 2px solid #d4c5b0;
            box-shadow: inset 4px 0 12px rgba(0, 0, 0, 0.04);
        }
        .forest-scene .page-right .chapter-title {
            font-family: 'Cinzel', serif;
            font-size: clamp(1.2rem, 2.2vw, 1.8rem);
            color: #3d2b17;
            margin-bottom: 0.6rem;
            letter-spacing: 1px;
            border-bottom: 2px solid rgba(180, 160, 130, 0.3);
            padding-bottom: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-shrink: 0;
        }
        .forest-scene .page-right .chapter-title .chapter-badge {
            font-size: 0.55rem;
            font-family: 'Spectral', serif;
            background: #c9a86a;
            color: #f4ede4;
            padding: 0.1rem 0.6rem;
            border-radius: 20px;
            letter-spacing: 1px;
            opacity: 0.7;
            font-weight: 400;
        }
        .forest-scene .page-right .chapter-text {
            font-family: 'Spectral', serif;
            font-size: clamp(0.85rem, 1.25vw, 1.05rem);
            line-height: 1.7;
            color: #3d2b17;
            flex: 1;
            overflow-y: auto;
            padding-right: 4px;
            margin-top: 0.2rem;
            position: relative;
            max-width: 62ch;
        }
        .forest-scene .page-right .chapter-text p {
            margin: 0 0 0.6rem 0;
            text-indent: 1.2em;
        }
        .forest-scene .page-right .chapter-text p:first-of-type::first-letter {
            font-family: 'Cinzel', serif;
            font-size: 2.6em;
            font-weight: 600;
            float: left;
            line-height: 0.8;
            margin: 0.05em 0.12em 0 0;
            color: #2d5a27;
        }
        .forest-scene .page-right .chapter-text p:first-of-type {
            margin-top: 0;
            text-indent: 0;
        }
        .forest-scene .page-right .chapter-text p:last-of-type {
            margin-bottom: 0;
        }

        /* ----- Ricochet link ----- */
        .forest-scene .page-right .ricochet-link {
            display: inline-block;
            margin-top: 0.6rem;
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            color: #2d5a27;
            text-decoration: none;
            border: 1px solid #2d5a27;
            padding: 0.3rem 1rem;
            border-radius: 30px;
            transition: all 0.25s ease;
            letter-spacing: 0.5px;
            cursor: pointer;
            background: rgba(45, 90, 39, 0.06);
        }
        .forest-scene .page-right .ricochet-link:hover {
            background: #2d5a27;
            color: #f4ede4;
            box-shadow: 0 2px 12px rgba(45, 90, 39, 0.25);
            transform: translateY(-1px);
        }
        .forest-scene .page-right .ricochet-link::after {
            content: ' →';
            font-size: 1.1em;
        }

        /* ----- Finale: "still being written" cue ----- */
        .forest-scene .page-right .chapter-text .continues-cue {
            display: block;
            margin-top: 1rem;
            font-family: 'Nothing You Could Do', cursive;
            font-size: 0.9rem;
            color: #8a7a66;
            text-align: right;
            opacity: 0.6;
            letter-spacing: 1px;
            position: relative;
        }
        .forest-scene .page-right .chapter-text .continues-cue .trail {
            display: inline-block;
            font-size: 1.4rem;
            letter-spacing: 4px;
            color: #b8a48a;
            animation: fadeTrail 3s ease-in-out infinite alternate;
        }
        @keyframes fadeTrail {
            0% {
                opacity: 0.3;
                transform: translateX(0);
            }
            100% {
                opacity: 0.8;
                transform: translateX(6px);
            }
        }

        /* ----- Role stamps ----- */
        .forest-scene .page-right .role-stamps {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem 0.6rem;
            margin-top: 1rem;
            padding-top: 0.8rem;
            border-top: 2px solid rgba(180, 160, 130, 0.25);
            justify-content: center;
        }
        .forest-scene .page-right .role-stamps .stamp {
            font-family: 'Cinzel', serif;
            font-size: 0.55rem;
            letter-spacing: 0.5px;
            padding: 0.2rem 0.8rem;
            border: 1.5px solid #b8a48a;
            border-radius: 30px;
            color: #5a4a36;
            background: rgba(200, 180, 155, 0.15);
            text-transform: uppercase;
            transform: rotate(-1deg);
            transition: transform 0.2s ease;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
            font-size: clamp(0.45rem, 0.7vw, 0.6rem);
        }
        .forest-scene .page-right .role-stamps .stamp:nth-child(odd) {
            transform: rotate(1.5deg);
        }
        .forest-scene .page-right .role-stamps .stamp:nth-child(3n) {
            transform: rotate(-2deg);
        }
        .forest-scene .page-right .role-stamps .stamp.gamer {
            background: #2d5a27;
            color: #f4ede4;
            border-color: #2d5a27;
            transform: rotate(0deg) scale(1.15);
            font-weight: 700;
            letter-spacing: 2px;
            padding: 0.3rem 1.2rem;
            box-shadow: 0 2px 12px rgba(45, 90, 39, 0.25);
            font-size: clamp(0.55rem, 0.8vw, 0.7rem);
        }
        .forest-scene .page-right .role-stamps .stamp:hover {
            transform: rotate(0deg) scale(1.05);
        }

        /* ---------- PAGE TURN FLIP OVERLAY ---------- */
        .forest-scene .flip-page {
            position: absolute;
            top: 0;
            left: 50%;
            width: 50%;
            height: 100%;
            transform-style: preserve-3d;
            transform-origin: left center;
            z-index: 20;
            pointer-events: none;
            backface-visibility: visible;
            will-change: transform, box-shadow;
            display: none;
            transform: perspective(1500px) rotateY(0deg);
        }
        /* Declarative keyframe-driven flip: far more reliable across browsers than a
           JS-timed transition, which can get coalesced/skipped depending on paint timing. */
        @keyframes forestFlipForward {
            0%   { transform: perspective(1500px) rotateY(0deg); box-shadow: -2px 0 8px rgba(0,0,0,0.08); }
            50%  { box-shadow: -22px 0 40px rgba(0,0,0,0.4); }
            100% { transform: perspective(1500px) rotateY(-180deg); box-shadow: -2px 0 8px rgba(0,0,0,0.08); }
        }
        @keyframes forestFlipBackward {
            0%   { transform: perspective(1500px) rotateY(-180deg); box-shadow: -2px 0 8px rgba(0,0,0,0.08); }
            50%  { box-shadow: -22px 0 40px rgba(0,0,0,0.4); }
            100% { transform: perspective(1500px) rotateY(0deg); box-shadow: -2px 0 8px rgba(0,0,0,0.08); }
        }
        .forest-scene .flip-page.flip-forward-anim {
            animation: forestFlipForward 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
        }
        .forest-scene .flip-page.flip-backward-anim {
            animation: forestFlipBackward 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
        }
        .forest-scene .flip-page .flip-front,
        .forest-scene .flip-page .flip-back {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            overflow: hidden;
            background: #f4ede4;
            border-radius: 0 12px 12px 0;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
            display: flex;
            flex-direction: column;
            padding: 1.8rem 1.8rem 1.8rem 1.5rem;
        }
        .forest-scene .flip-page .flip-front {
            z-index: 2;
            background: #f4ede4;
            background-image:
                radial-gradient(ellipse at 80% 30%, rgba(200, 180, 155, 0.15) 0%, transparent 70%),
                repeating-linear-gradient(-45deg, rgba(180, 160, 130, 0.03) 0px, rgba(180, 160, 130, 0.03) 2px, transparent 2px, transparent 8px);
        }
        .forest-scene .flip-page .flip-back {
            transform: rotateY(180deg);
            z-index: 1;
            background: #f4ede4;
            background-image:
                radial-gradient(ellipse at 20% 30%, rgba(200, 180, 155, 0.2) 0%, transparent 70%),
                repeating-linear-gradient(45deg, rgba(180, 160, 130, 0.03) 0px, rgba(180, 160, 130, 0.03) 2px, transparent 2px, transparent 8px);
            border-left: 2px solid #d4c5b0;
            border-radius: 0 12px 12px 0;
            padding: 1.5rem 1rem 1.5rem 1.8rem;
        }
        .forest-scene .flip-page .flip-back .illustration-wrap {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
        }
        .forest-scene .flip-page .flip-back .illustration-wrap svg {
            width: 100%;
            height: 100%;
            max-width: 380px;
            max-height: 380px;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
        }
        .forest-scene .flip-page::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
            opacity: 0;
            transition: opacity 0.5s ease;
            z-index: 5;
        }
        .forest-scene .flip-page.flipping::after {
            opacity: 1;
        }

        /* ---------- NAVIGATION (inside book bottom) ---------- */
        .forest-scene .nav-controls {
            position: relative;
            flex-shrink: 0;
            margin-top: 0.9rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            z-index: 30;
            background: rgba(45, 31, 14, 0.75);
            backdrop-filter: blur(8px);
            padding: 0.4rem 1.2rem;
            border-radius: 40px;
            border: 1px solid rgba(200, 180, 155, 0.15);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }
        .forest-scene .nav-controls .nav-btn {
            background: none;
            border: none;
            color: #d4c5b0;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.3rem 0.6rem;
            border-radius: 30px;
            transition: all 0.2s ease;
            font-family: 'Cinzel', serif;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            opacity: 0.6;
        }
        .forest-scene .nav-controls .nav-btn:hover:not(:disabled) {
            opacity: 1;
            color: #e8d5b0;
            background: rgba(200, 180, 155, 0.1);
        }
        .forest-scene .nav-controls .nav-btn:disabled {
            opacity: 0.2;
            cursor: not-allowed;
        }
        .forest-scene .nav-controls .page-indicator {
            font-family: 'Cinzel', serif;
            font-size: 0.7rem;
            color: #b8a48a;
            letter-spacing: 2px;
            padding: 0 0.4rem;
            min-width: 70px;
            text-align: center;
        }
        .forest-scene .nav-controls .page-indicator .current {
            color: #e8d5b0;
            font-weight: 700;
            font-size: 0.9rem;
        }

        /* ---------- BOOKMARK (progress-aware) ---------- */
        .forest-scene .bookmark-ribbon {
            position: absolute;
            top: -0.4rem;
            right: 3rem;
            z-index: 25;
            width: 2.2rem;
            height: 3.6rem;
            background: linear-gradient(180deg, #c9a86a, #b8924a);
            clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.5s ease 0.3s, transform 0.4s ease;
            transform-origin: top center;
            transform: translateY(0);
        }
        .forest-scene .book.cover-open .bookmark-ribbon {
            opacity: 1;
        }
        .forest-scene .bookmark-ribbon.progress {
            /* subtle shift to indicate progress - we'll animate via JS */;
        }
        @keyframes forestBookmarkPulse {
            0%   { filter: brightness(1); }
            40%  { filter: brightness(1.35); }
            100% { filter: brightness(1); }
        }
        .forest-scene .bookmark-ribbon.bookmark-pulse {
            animation: forestBookmarkPulse 0.5s ease;
        }

        /* ---------- CORNER HINT (page-turn affordance) ---------- */
        .forest-scene .page-corner-hint {
            position: absolute;
            bottom: 0.8rem;
            right: 0.8rem;
            z-index: 15;
            width: 40px;
            height: 40px;
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            background: radial-gradient(ellipse at 100% 100%, rgba(200, 180, 155, 0.3) 0%, transparent 70%);
            border-radius: 0 0 12px 0;
            border-bottom: 2px solid rgba(200, 180, 155, 0.2);
            border-right: 2px solid rgba(200, 180, 155, 0.2);
            cursor: pointer;
            border: none;
            outline-offset: 2px;
            padding: 0;
            font: inherit;
            -webkit-appearance: none;
            appearance: none;
        }
        .forest-scene .book.cover-open .page-corner-hint {
            opacity: 0.6;
            pointer-events: auto;
        }
        .forest-scene .book.cover-open .page-corner-hint:hover,
        .forest-scene .book.cover-open .page-corner-hint:focus-visible {
            opacity: 1;
        }

        /* ---------- CLOSE BUTTON ---------- */
        .forest-scene .close-btn {
            position: absolute;
            top: 1.2rem;
            left: 1.2rem;
            z-index: 40;
            background: rgba(45, 31, 14, 0.6);
            backdrop-filter: blur(6px);
            border: 1px solid rgba(200, 180, 155, 0.15);
            color: #d4c5b0;
            font-family: 'Cinzel', serif;
            font-size: 0.7rem;
            padding: 0.4rem 1rem;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.25s ease;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            opacity: 0.7;
        }
        .forest-scene .close-btn:hover {
            opacity: 1;
            background: rgba(45, 31, 14, 0.8);
            color: #e8d5b0;
            transform: translateY(-1px);
        }
        .forest-scene .close-btn::before {
            content: '←';
            font-size: 1.1em;
        }

        /* ---------- REDUCED MOTION ---------- */
        @media (prefers-reduced-motion: reduce) {
            .forest-scene .book-cover,
            .forest-scene .book.cover-open .book-cover {
                transition-duration: 0.2s !important;
            }
            .forest-scene .flip-page.flip-forward-anim,
            .forest-scene .flip-page.flip-backward-anim {
                animation-duration: 0.2s !important;
            }
            .forest-scene .book-cover .cover-title,
            .forest-scene .book-cover .cover-ornament {
                transform: none !important;
            }
            .forest-scene .book.cover-open .book-cover {
                transform: rotateY(-170deg) translateX(-10px) !important;
                opacity: 0 !important;
            }
            .forest-scene .spread {
                transition-duration: 0.15s !important;
            }
            @keyframes fadeTrail {
                0%,
                100% {
                    opacity: 0.4;
                    transform: translateX(0);
                }
            }
        }

        /* ---------- SCROLLBAR ---------- */
        .forest-scene .page-right .chapter-text::-webkit-scrollbar,
        .forest-scene .flip-page .flip-front::-webkit-scrollbar,
        .forest-scene .flip-page .flip-back::-webkit-scrollbar {
            width: 3px;
        }
        .forest-scene .page-right .chapter-text::-webkit-scrollbar-track,
        .forest-scene .flip-page .flip-front::-webkit-scrollbar-track,
        .forest-scene .flip-page .flip-back::-webkit-scrollbar-track {
            background: transparent;
        }
        .forest-scene .page-right .chapter-text::-webkit-scrollbar-thumb,
        .forest-scene .flip-page .flip-front::-webkit-scrollbar-thumb,
        .forest-scene .flip-page .flip-back::-webkit-scrollbar-thumb {
            background: #c9a86a;
            border-radius: 10px;
        }

        /* ---------- RESPONSIVE ---------- */
        @media (max-width: 700px) {
            .forest-scene .book-wrapper {
                width: 95vw;
                height: 82vh;
                max-height: 600px;
            }
            .forest-scene .book {
                height: calc(100% - 3rem);
            }
            .forest-scene .page-left {
                padding: 0.8rem 0.5rem 0.8rem 0.8rem;
            }
            .forest-scene .page-right {
                padding: 1rem 0.8rem 1rem 0.8rem;
            }
            .forest-scene .page-right .chapter-title {
                font-size: clamp(0.9rem, 2.5vw, 1.2rem);
            }
            .forest-scene .page-right .chapter-text {
                font-size: clamp(0.7rem, 1.4vw, 0.85rem);
                line-height: 1.6;
            }
            .forest-scene .flip-page .flip-front,
            .forest-scene .flip-page .flip-back {
                padding: 1rem 0.8rem 1rem 0.8rem;
            }
            .forest-scene .nav-controls {
                margin-top: 0.6rem;
                padding: 0.3rem 0.8rem;
                gap: 0.8rem;
            }
            .forest-scene .nav-controls .nav-btn {
                font-size: 0.9rem;
                padding: 0.2rem 0.4rem;
            }
            .forest-scene .nav-controls .page-indicator {
                font-size: 0.6rem;
                min-width: 50px;
            }
            .forest-scene .bookmark-ribbon {
                width: 1.6rem;
                height: 2.8rem;
                right: 1.8rem;
                top: -0.2rem;
            }
            .forest-scene .page-left .chapter-number {
                font-size: 0.55rem;
            }
            .forest-scene .page-right .role-stamps .stamp {
                font-size: 0.4rem;
                padding: 0.1rem 0.5rem;
            }
            .forest-scene .page-right .role-stamps .stamp.gamer {
                font-size: 0.5rem;
                padding: 0.2rem 0.8rem;
            }
            .forest-scene .page-corner-hint {
                width: 28px;
                height: 28px;
                bottom: 0.4rem;
                right: 0.4rem;
            }
        }
        @media (max-width: 480px) {
            .forest-scene .book-wrapper {
                height: 86vh;
                max-height: 500px;
            }
            .forest-scene .page-left .illustration-wrap svg {
                max-width: 180px;
                max-height: 180px;
            }
            .forest-scene .flip-page .flip-back .illustration-wrap svg {
                max-width: 160px;
                max-height: 160px;
            }
            .forest-scene .page-right .chapter-text {
                font-size: clamp(0.6rem, 1.6vw, 0.75rem);
            }
            .forest-scene .page-right .chapter-title {
                font-size: clamp(0.7rem, 2.8vw, 0.95rem);
            }
            .forest-scene .page-right .ricochet-link {
                font-size: 0.6rem;
                padding: 0.2rem 0.6rem;
            }
        }

        /* ---------- FOCUS TRAP ---------- */
        .forest-scene .focus-trap-start,
        .forest-scene .focus-trap-end {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }
