﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

html.startup-loading-active,
body.startup-loading-active {
    overflow: hidden;
}

html.hub-direct-entry body {
    background: #000 url("./newframes/frame_end.webp") center / cover no-repeat fixed;
}

html.resume-direct-entry body {
    background: #000;
}

html.hub-direct-entry body > * {
    opacity: 0;
    visibility: hidden;
}

html.resume-direct-entry body > *:not(.resume-bridge-overlay) {
    opacity: 0;
    visibility: hidden;
}

html.hub-direct-entry.hub-direct-entry-ready body > * {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease;
}

html.resume-direct-entry.resume-direct-entry-ready body > *:not(.resume-bridge-overlay) {
    opacity: 1;
    visibility: visible;
    transition: none;
}

.resume-bridge-overlay {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

html.resume-direct-entry .resume-bridge-overlay {
    display: flex;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

html.resume-direct-entry .resume-bridge-overlay.is-ready {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s, 0.28s;
}

.resume-bridge-media,
.resume-bridge-veil {
    position: absolute;
    inset: 0;
}

.resume-bridge-media {
    background:
        linear-gradient(180deg, rgba(8, 10, 18, 0.12), rgba(8, 10, 18, 0.48)),
        var(--resume-bridge-image, none) center / cover no-repeat;
    transform: scale(1.035);
    filter: blur(8px) brightness(0.68) saturate(0.86);
    transition: transform 0.28s ease, filter 0.28s ease;
}

.resume-bridge-overlay.is-ready .resume-bridge-media {
    transform: scale(1);
    filter: blur(0) brightness(0.94) saturate(0.98);
}

.resume-bridge-veil {
    background:
        radial-gradient(circle at 28% 28%, rgba(255, 246, 223, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(5, 8, 20, 0.08), rgba(5, 8, 20, 0.56));
}

.resume-bridge-copy-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(520px, calc(100vw - 48px));
    margin: 0 0 clamp(28px, 5vh, 56px) clamp(22px, 4vw, 56px);
    padding: 22px 24px 20px;
    border: 1px solid rgba(247, 236, 212, 0.18);
    border-radius: 20px;
    background: rgba(7, 10, 18, 0.34);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    color: rgba(255, 248, 235, 0.94);
}

.resume-bridge-kicker {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 243, 214, 0.58);
}

.resume-bridge-headline {
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: clamp(22px, 2.7vw, 32px);
    line-height: 1.3;
    letter-spacing: 0.08em;
}

.resume-bridge-detail {
    max-width: 24em;
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: rgba(255, 245, 226, 0.78);
}

.resume-bridge-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 240, 202, 0.56);
}

.resume-bridge-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 241, 209, 0.88);
    box-shadow: 0 0 0 0 rgba(255, 241, 209, 0.38);
    animation: resumeBridgePulse 1.5s ease-out infinite;
}

@keyframes resumeBridgePulse {
    0% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(255, 241, 209, 0.34);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(255, 241, 209, 0);
    }
    100% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(255, 241, 209, 0);
    }
}

/* 鼠标星河粒子 Canvas */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}

.startup-loading-copy {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    background:
        radial-gradient(circle at center, rgba(18, 18, 18, 0.12) 0%, rgba(0, 0, 0, 0.76) 70%),
        #000;
    pointer-events: auto;
}

.startup-breathe-visual {
    position: relative;
    width: clamp(220px, 23vw, 320px);
    height: clamp(220px, 23vw, 320px);
    animation: startup-rotate-flower 30s infinite linear;
}

.startup-petal {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    mix-blend-mode: color-dodge;
    background: radial-gradient(circle, rgba(16, 172, 132, 0.5) 0%, rgba(16, 172, 132, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    animation: startup-bloom 9s infinite ease-in-out;
}

.startup-petal:nth-child(1) { --angle: 0deg; }
.startup-petal:nth-child(2) { --angle: 45deg; }
.startup-petal:nth-child(3) { --angle: 90deg; }
.startup-petal:nth-child(4) { --angle: 135deg; }
.startup-petal:nth-child(5) { --angle: 180deg; }
.startup-petal:nth-child(6) { --angle: 225deg; }
.startup-petal:nth-child(7) { --angle: 270deg; }
.startup-petal:nth-child(8) { --angle: 315deg; }

.startup-loading-copy-shell {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(82vw, 760px);
    padding: 0 20px;
    text-align: center;
    font-family: 'NSimSun', 'Noto Serif SC', 'STSong', 'SimSun', serif;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.42);
}

.startup-loading-kicker {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.startup-loading-headline {
    min-height: 1.5em;
    font-size: clamp(24px, 2.8vw, 38px);
    line-height: 1.28;
    letter-spacing: 0.1em;
    transition: opacity 0.24s ease;
}

.startup-loading-detail {
    min-height: 3.2em;
    max-width: 32em;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.9;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
    transition: opacity 0.24s ease;
}

.startup-loading-progress {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.52);
}

@keyframes startup-rotate-flower {
    to { transform: rotate(1turn); }
}

@keyframes startup-bloom {
    0% {
        transform: rotate(var(--angle)) scale(0) translate(0, 0);
    }
    42% {
        transform: rotate(var(--angle)) scale(1) translate(0, 40px);
    }
    58% {
        transform: rotate(var(--angle)) scale(1) translate(0, 40px);
    }
    100% {
        transform: rotate(var(--angle)) scale(0) translate(0, 0);
    }
}

html.hub-direct-entry .startup-loading-copy,
html.hub-direct-entry.hub-direct-entry-ready .startup-loading-copy,
html.resume-direct-entry .startup-loading-copy,
html.resume-direct-entry.resume-direct-entry-ready .startup-loading-copy {
    display: none;
}

/* Canvas 容器（现在在总舞台内部） */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    /* GSAP 会控制 these 属性 */
    opacity: 0;
    transform: scale(1.05);
}

#sequence-canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* ========================================
   🎭 总舞台包裹容器（背景+UI一体化果冻效果）
   ======================================== */

.parallax-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    /* 防止露边穿帮 */
    transform: scale(1.05);
    will-change: transform;
}

/* ========================================
   第二幕：精准对齐的 UI 道具热区
   ======================================== */

/* 全屏对齐容器 */
.scene-2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 容器本身不拦截事件 */
    z-index: 20;
    opacity: 0; /* 初始隐藏，由JS控制显示 */
}

.first-video-gate {
    position: fixed;
    inset: 0;
    z-index: 11050;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 8vh 8vw;
    background:
        radial-gradient(circle at 24% 72%, rgba(245, 230, 193, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.02), rgba(5, 5, 6, 0.18));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
}

.first-video-gate[hidden] {
    display: none !important;
}

.first-video-gate.is-active {
    opacity: 1;
    pointer-events: auto;
}

.first-video-gate-card {
    position: relative;
    width: min(430px, 82vw);
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 28px 30px 24px;
    border: 1px solid rgba(173, 148, 98, 0.18);
    border-radius: 4px 18px 6px 16px / 8px 15px 8px 18px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 247, 227, 0.62), transparent 24%),
        linear-gradient(180deg, rgba(239, 223, 182, 0.9), rgba(221, 196, 145, 0.94));
    box-shadow:
        14px 16px 0 rgba(65, 46, 18, 0.14),
        0 14px 34px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 248, 228, 0.24);
    text-align: left;
    transform: rotate(-1.4deg);
}

.first-video-gate-card::before,
.first-video-gate-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.first-video-gate-card::before {
    inset: 10px 12px 12px 10px;
    border: 1px solid rgba(233, 222, 193, 0.08);
    border-radius: 4px 18px 5px 14px / 6px 16px 6px 18px;
    opacity: 0.7;
}

.first-video-gate-card::after {
    top: -9px;
    left: 30px;
    width: 104px;
    height: 26px;
    background:
        linear-gradient(180deg, rgba(214, 199, 165, 0.46), rgba(165, 145, 112, 0.28));
    border: 1px solid rgba(231, 220, 188, 0.16);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    transform: rotate(2.8deg);
}

.first-video-gate-kicker {
    display: block;
    position: relative;
    z-index: 1;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(106, 80, 37, 0.66);
}

.first-video-gate-copy {
    position: relative;
    z-index: 1;
    max-width: 14.5em;
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: clamp(21px, 1.9vw, 30px);
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: rgba(68, 48, 21, 0.9);
    text-shadow: 0 1px 0 rgba(255, 246, 221, 0.16);
}

.first-video-gate-btn {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 11px 18px 10px;
    border: 1px solid rgba(165, 132, 74, 0.24);
    border-radius: 3px 16px 4px 14px / 4px 14px 5px 16px;
    background:
        linear-gradient(180deg, rgba(251, 241, 217, 0.74), rgba(221, 196, 145, 0.52));
    color: rgba(84, 59, 24, 0.88);
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.55;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 228, 0.24),
        6px 8px 0 rgba(76, 55, 23, 0.1);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.first-video-gate-btn:hover {
    transform: translateY(-1px) rotate(-0.4deg);
    background:
        linear-gradient(180deg, rgba(252, 244, 223, 0.9), rgba(229, 205, 160, 0.72));
    border-color: rgba(170, 134, 64, 0.36);
    color: rgba(80, 53, 20, 0.96);
}

@media (max-width: 640px) {
    .first-video-gate {
        padding: 0 18px 7vh;
    }

    .first-video-gate-card {
        width: min(100%, 440px);
        padding: 28px 22px 22px;
        gap: 16px;
        transform: rotate(-0.6deg);
    }

    .first-video-gate-card::after {
        left: 18px;
        width: 82px;
    }

    .first-video-gate-copy {
        max-width: 100%;
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.82;
    }

    .first-video-gate-btn {
        width: 100%;
        text-align: center;
        justify-self: stretch;
    }
}

.returning-user-door-layer {
    position: absolute;
    left: 4.2%;
    bottom: 7.4%;
    width: 13.4%;
    height: 24%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 26;
}

.returning-user-door-layer.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.returning-user-door-visual {
    position: absolute;
    left: 0;
    top:68px;
    width: 65%;
    height: 79%;
    pointer-events: none;
}

.returning-user-door-visual::before {
    display: none;
}

.returning-user-door-visual::after {
    display: none;
}

.returning-user-door-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 10px 16px rgba(27, 18, 10, 0.22))
        drop-shadow(0 0 12px rgba(255, 226, 150, 0.08));
}

.returning-user-door-callout {
    position: absolute;
    left: 34%;
    top: -5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 0;
}

.returning-user-door-callout-text {
    padding: 7px 14px;
    border: 1px solid rgba(92, 67, 39, 0.38);
    border-radius: 999px;
    background: rgba(249, 241, 221, 0.92);
    box-shadow: 0 8px 20px rgba(44, 29, 16, 0.12);
    color: rgba(71, 44, 18, 0.95);
    font-family: 'LXGW WenKai Mono TC', serif;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.returning-user-door-callout-arrow {
    position: relative;
    width: 2px;
    height: 42px;
    background: linear-gradient(180deg, rgba(131, 96, 56, 0.1), rgba(131, 96, 56, 0.95));
}

.returning-user-door-callout-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(131, 96, 56, 0.95);
    border-bottom: 2px solid rgba(131, 96, 56, 0.95);
    transform: translateX(-50%) rotate(45deg);
}

.returning-user-door-hotspot {
    position: absolute;
    left: 8%;
    top: 20%;
    width: 54%;
    height: 71%;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.returning-user-door-hotspot::before {
    display: none;
}

.returning-user-door-hotspot::after {
    display: none;
}

.returning-user-door-hotspot:hover {
    filter:
        drop-shadow(0 0 10px rgba(255, 222, 138, 0.26))
        drop-shadow(0 6px 12px rgba(49, 31, 17, 0.14));
}

.returning-user-door-menu {
    position: absolute;
    left: 54%;
    bottom: 20%;
    display: grid;
    gap: 10px;
    justify-items: start;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px) translateY(6px) scale(0.96);
    transform-origin: left center;
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 2;
}

.returning-user-door-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) translateY(0) scale(1);
}

.returning-user-door-note {
    position: relative;
    min-width: 136px;
    padding: 10px 14px 9px;
    border: 1.5px solid rgba(70, 48, 24, 0.42);
    border-radius: 4px 13px 5px 15px / 12px 5px 15px 6px;
    background:
        linear-gradient(180deg, rgba(248, 240, 219, 0.96), rgba(232, 220, 188, 0.95));
    box-shadow: 6px 6px 0 rgba(43, 28, 15, 0.14);
    color: rgba(52, 31, 14, 0.96);
    cursor: pointer;
    text-align: left;
    font-family: 'LXGW WenKai Mono TC', serif;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.returning-user-door-note::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 16px;
    width: 48px;
    height: 12px;
    background: rgba(182, 171, 143, 0.72);
    transform: rotate(-8deg);
    border-radius: 2px;
    opacity: 0.92;
}

.returning-user-door-note:hover {
    transform: translateY(-1px);
    box-shadow: 7px 7px 0 rgba(43, 28, 15, 0.16);
}

.returning-user-door-note-primary {
    transform: rotate(-2.4deg);
}

.returning-user-door-note-secondary {
    transform: rotate(1.8deg);
    margin-left: 14px;
}

.returning-user-door-note-primary:hover {
    transform: rotate(-2.4deg) translateY(-1px);
}

.returning-user-door-note-secondary:hover {
    transform: rotate(1.8deg) translateY(-1px);
}

.returning-user-door-note-zh {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.returning-user-door-note-en {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(110, 86, 59, 0.72);
}

/* 1. 云朵输入框热区 - 完全隐藏，只保留点击功能 */
.dream-input-box {
    position: absolute;
    top: 4%;
    left: 39%;
    width: 9%;
    height: 110px;
    pointer-events: auto;
    
    /* 完全透明，不显示任何视觉效果 */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1;
}

.sheets-wrapper {
    position: absolute;
    top: 32%;
    left: 95%;
    width: 257px;
    height: 220px;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: auto;
    z-index: 1;
}

.sheets-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none !important;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.18));
}

/* hotspot debug styles removed */

/* 云朵内的placeholder文字（纯透明）*/
.dream-placeholder {
    /* 精确定位 - 严格按照用户要求 */
    position: absolute;
    top: 40px;
    left: 75px;
    right: 20px;
    width: 84%;
    height: 85%;
    
    /* 文字样式 */
    font-size: 18px;
    font-family: 'Segoe Print', 'Comic Sans MS', cursive;
    color: rgba(100, 100, 100, 0.4);
    text-align: center;
    line-height: 1.6;
    
    /* 确保文字完整显示 - 核心设置 */
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    
    /* 布局 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
    
    /* 纯透明 */
    background: transparent;
    border: none;
    
    /* 过渡效果 */
    transition: opacity 0.8s ease;
}

/* 2. iPod 触发热区 - 正式版（红框已移除）*/
.ipod-hotspot {
    position: absolute;
    top: 52%;     /* 对齐枕头边缘 */
    left: 30%;    /* 对齐 iPod 机身 */
    width: 5%;    /* 贴合机身宽度 */
    height: 9%;   /* 贴合机身高度 */
    
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 完全透明，不影响视觉 */
    opacity: 0;
    transition: opacity 0.2s;
}

.ipod-hotspot:hover {
    opacity: 0;
    background: transparent;
}

/* 锁定状态 */
.ipod-hotspot.locked {
    opacity: 0;
    cursor: not-allowed;
}

/* 校准标签 - 隐藏 */
.calibrate-label {
    display: none; /* 已校准完成，隐藏标签 */
    color: red;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

/* 输入框内的文本域 */
.dream-textarea {
    width: 90%;
    height: 70%;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 14px;
    resize: none;
    z-index: 2;
}

/* 手写体提示语 */
.dream-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Zhi Mang Xing', cursive, sans-serif;
    font-size: 16px;
    color: rgba(100, 100, 100, 0.6);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

/* 光标闪烁 */
.cursor-blink {
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ======================================== */

/* 滚动引导 UI（在总舞台内部） */
.scroll-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 1;
    pointer-events: none;
}

.scroll-hint-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.scroll-hint-arrow {
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.scroll-hint-arrow svg {
    display: block;
}

/* 画面 1 的文字层（在总舞台内部） */
.scene1-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.scene1-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.scene1-subtitle {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
}

/* 苹果式阶梯上浮文字层（同一位置） */
.floating-text-container {
    position: absolute;
    bottom: 15%; /* 靠近下方 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 4;
    pointer-events: none;
    text-align: center;
}

.floating-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    opacity: 0;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    width: 100%;
}

.floating-text p {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 4px;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin: 0;
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
}

/* 滚动占位区域 - 苹果式超长滚动 */
.scroll-spacer {
    height: 5000vh; /* A选项：极致细腻速度 */
    position: relative;
    z-index: 0;
}

.scene10-reverse-layer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

.scene10-reverse-layer.active {
    display: block;
}

.scene10-reverse-layer::before,
.scene10-reverse-layer::after {
    content: "";
    position: absolute;
    top: -18%;
    height: 136%;
    width: min(27vw, 320px);
    opacity: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.86) 0 1.2px, transparent 1.9px),
        radial-gradient(circle at 35% 23%, rgba(255, 255, 255, 0.72) 0 1.6px, transparent 2.3px),
        radial-gradient(circle at 68% 46%, rgba(255, 255, 255, 0.6) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 42% 71%, rgba(255, 255, 255, 0.52) 0 1.4px, transparent 2px),
        radial-gradient(circle at 58% 88%, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 2.2px);
    background-size: 94% 215px, 100% 280px, 86% 190px, 100% 325px, 92% 248px;
    background-repeat: repeat-y;
    will-change: background-position, opacity;
    animation-duration: 1.7s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    z-index: 1;
}

.scene10-reverse-layer::before {
    left: -2.3vw;
    clip-path: polygon(0 0, 90% 0, 100% 12%, 84% 36%, 97% 62%, 82% 100%, 0 100%);
    animation-name: scene10SideDustFallLeft;
    animation-delay: -0.28s;
}

.scene10-reverse-layer::after {
    right: -1.6vw;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 18% 100%, 3% 74%, 16% 46%, 0 18%);
    animation-name: scene10SideDustFallRight;
    animation-duration: 1.86s;
    animation-delay: -0.82s;
}

.scene10-reverse-layer.scene10-transition-particles::before,
.scene10-reverse-layer.scene10-transition-particles::after {
    opacity: 0.68;
    animation-play-state: running;
}

.scene10-starfall-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.scene10-whisper-intro {
    position: absolute;
    top: 15%;
    left: 50%;
    width: min(760px, 82vw);
    transform: translateX(-50%);
    color: rgba(255, 251, 244, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(255, 255, 255, 0.08);
    opacity: 0;
    z-index: 2;
}

.scene10-whisper-intro p {
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.95;
    letter-spacing: 0.08em;
    margin: 0;
}

.scene10-up-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(860px, 88vw);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.18),
        0 2px 14px rgba(0, 0, 0, 0.45);
    opacity: 0;
    z-index: 2;
}

.scene10-up-hint .scene10-arrow {
    order: 1;
}

.scene10-up-hint p {
    order: 2;
}

.scene10-up-hint p {
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(20px, 1.55vw, 26px);
    line-height: 1.85;
    letter-spacing: 0.08em;
}

.scene10-arrow {
    width: 88px;
    height: 88px;
    animation: scene10ArrowFloat 2.6s ease-in-out infinite;
}

.scene10-whisper-sky {
    position: absolute;
    bottom: 7%;
    left: 50%;
    width: min(820px, 80vw);
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.96);
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.82;
    letter-spacing: 0.06em;
    text-align: center;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(255, 255, 255, 0.08);
    opacity: 0;
    z-index: 2;
}

.scene10-whisper-sky p {
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.82;
    letter-spacing: 0.06em;
}

.scene11-whisper-bottom {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: min(920px, 86vw);
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.94);
    text-align: center;
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(22px, 1.9vw, 28px);
    line-height: 1.88;
    letter-spacing: 0.08em;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(255, 255, 255, 0.1);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.scene11-blink-hint {
    position: absolute;
    left: 50%;
    bottom: 11.5%;
    transform: translateX(-50%);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 4;
    pointer-events: auto;
}

.scene11-blink-hint button {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.94);
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(22px, 1.85vw, 28px);
    line-height: 1.6;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.scene11-blink-hint button:hover {
    transform: translateY(-1px);
}

.scene11-blink-hint button:disabled {
    opacity: 0.45;
    cursor: default;
}

.realistic-blink-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 12000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eyelid {
    width: 100%;
    height: 55vh;
    background-color: #050505;
    box-shadow: 0 0 40px 20px rgba(5, 5, 5, 0.9);
    transition: transform 0.72s cubic-bezier(0.68, 0, 0.32, 1);
}

.top-eyelid {
    transform: translateY(-120%);
    border-bottom-left-radius: 50% 15%;
    border-bottom-right-radius: 50% 15%;
}

.bottom-eyelid {
    transform: translateY(120%);
    border-top-left-radius: 50% 15%;
    border-top-right-radius: 50% 15%;
}

.realistic-blink-overlay.is-blinking .top-eyelid {
    transform: translateY(0);
}

.realistic-blink-overlay.is-blinking .bottom-eyelid {
    transform: translateY(0);
}

.realistic-blink-overlay.is-opening .eyelid {
    transition-duration: 0.82s;
}

@keyframes scene10ArrowFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.95;
    }
    50% {
        transform: translateY(-14px);
        opacity: 1;
    }
}

@keyframes scene10SideDustFallLeft {
    0% {
        background-position: -8px -260px, 7px -380px, -12px -220px, 5px -460px, -4px -320px;
    }
    24% {
        background-position: 5px -60px, -11px -150px, 14px -30px, -8px -250px, 9px -110px;
    }
    57% {
        background-position: -13px 230px, 10px 150px, -7px 270px, 13px 70px, -10px 210px;
    }
    81% {
        background-position: 12px 390px, -6px 340px, 8px 450px, -12px 260px, 6px 390px;
    }
    100% {
        background-position: -9px 610px, 11px 520px, -14px 690px, 7px 470px, -8px 610px;
    }
}

@keyframes scene10SideDustFallRight {
    0% {
        background-position: 9px -290px, -6px -420px, 10px -240px, -13px -500px, 7px -360px;
    }
    27% {
        background-position: -7px -70px, 12px -180px, -8px -20px, 11px -290px, -10px -150px;
    }
    51% {
        background-position: 11px 120px, -9px 40px, 13px 210px, -6px -10px, 8px 90px;
    }
    78% {
        background-position: -10px 330px, 8px 240px, -9px 410px, 12px 180px, -6px 290px;
    }
    100% {
        background-position: 8px 590px, -12px 500px, 10px 680px, -8px 450px, 11px 560px;
    }
}

@media (max-width: 768px) {
    .scene10-whisper-intro {
        top: 13%;
        width: 88vw;
    }

    .scene10-whisper-intro p {
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.8;
    }

    .scene10-up-hint {
        width: 90vw;
        gap: 12px;
    }

    .scene10-up-hint p,
    .scene10-whisper-sky,
    .scene11-whisper-bottom {
        font-size: clamp(18px, 4.8vw, 24px);
        line-height: 1.8;
    }

    .scene10-arrow {
        width: 72px;
        height: 72px;
    }

    .scene11-blink-hint {
        width: 88vw;
        bottom: 10%;
    }

    .scene11-blink-hint button {
        font-size: clamp(18px, 4.8vw, 24px);
    }
}

/* ============================================
   第二幕：拟物化隐形 UI（重新设计）
   ============================================ */

.scene2-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scene2-ui.active {
    opacity: 1;
}

/* 1. 思想气泡热区按钮（女孩头上对话框位置） */
.bubble-hotspot {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-hint {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', sans-serif;
}

.bubble-hotspot:hover .bubble-hint {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 云朵对话框（弹出式） */
.cloud-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: all 0.4s ease;
}

.cloud-dialog.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.cloud-dialog-inner {
    padding: 40px 35px;
}

.cloud-header {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 3px;
    font-family: 'Noto Serif SC', serif;
}

/* 旧的 #dream-input 输入框样式已废弃，当前 #dream-input 是 Scene 2 热区容器 */


/* 对话框按钮 */
.cloud-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.cloud-btn {
    padding: 12px 35px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', sans-serif;
}

.cloud-btn-cancel {
    background: rgba(150, 150, 150, 0.2);
    color: #666;
}

.cloud-btn-cancel:hover {
    background: rgba(150, 150, 150, 0.3);
}

.cloud-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cloud-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* iPod 提示样式（已整合到上方） */

/* ========================================
   🎨 手绘皮肤 + 隐形触控 + 诗意交互 终极版
   ======================================== */

/* 暗场交互遮罩 - 性能优化 */
.ipod-darkroom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease; /* 加快过渡速度 */
    
    /* 性能优化 */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 手绘 iPod 容器 - 精准尺寸（用户校准后）+ 性能优化 */
#handdrawn-ipod {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1350px;
    height: 1500px;
    transform: translate(-50%, -50%);
    background-image: url('./newassets/ipod-sketch.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 加快速度，更平滑的缓动 */
    
    /* 性能优化 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 隐藏状态 (下沉+透明) - 适配放大版 + 性能优化 */
.ipod-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, -40%) scale(0.95) !important; /* 减小scale变化，更流畅 */
}

/* 精准嵌套的屏幕 - 强制嵌进画框 + 严格限制内容 */
/* ====== 屏幕：精准嵌入（用户最新校准）+ 性能优化 ====== */
.ipod-screen-mask {
    position: absolute !important;
    top: 35% !important;
    left: 42% !important;
    width: 16% !important;
    height: 12% !important;
    background: rgba(250, 248, 240, 0.95);
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 3px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
    
    /* 🚀 强制GPU加速，防止错位和卡顿 */
    transform: translateZ(0);
    will-change: contents;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

/* 滑动轨道与页面 - 严格控制尺寸 */
/* 滑动轨道与页面 - 极致性能优化（防止卡顿和错位）*/
.ipod-menu-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    
    /* 🚀 强制GPU加速 */
    transform: translateZ(0) translateX(0%);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 🔒 防止抖动和错位 */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.ipod-page {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    
    /* 🚀 防止子页面闪烁和错位 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: contents;
}

/* 字体与排版 - 适配1350px iPod */
.ipod-header {
    background: rgba(0,0,0,0.05);
    border-bottom: 2px solid rgba(0,0,0,0.6);
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    line-height: 1.3;
}

.ipod-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* 隐藏滚动条 (Webkit 浏览器) */
.ipod-list::-webkit-scrollbar {
    display: none;
}

.ipod-list li {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px dashed rgba(0,0,0,0.15);
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    min-width: 0;
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease; /* 平滑过渡 */
    will-change: background-color; /* 提示浏览器优化 */
}

.ipod-list li .ipod-item-prefix {
    flex: none;
    white-space: nowrap;
}

.ipod-list li .ipod-item-marquee-window {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.ipod-list li .ipod-item-copy {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    will-change: transform;
}

.ipod-list li.is-marquee-active .ipod-item-copy {
    animation: ipodMarquee var(--marquee-duration, 6.4s) linear infinite;
    overflow: visible;
    text-overflow: clip;
}

@keyframes ipodMarquee {
    0%, 14% {
        transform: translateX(0);
    }
    44%, 64% {
        transform: translateX(calc(-1 * var(--marquee-shift, 0px)));
    }
    100% {
        transform: translateX(0);
    }
}

.ipod-list li.active {
    background: #333;
    color: #fff;
    transform: translateZ(0); /* 触发GPU加速 */
}

.ipod-list li.selected {
    background: #555;
    color: #a8d08d;
}

.ipod-list li.selected::after {
    content: ' ✓';
    float: right;
    color: #a8d08d;
}

/* 隐形热区 (精准覆盖原图手绘按键) */
/* ====== 隐形按键热区（精准对齐后，正式版）====== */
.wheel-btn {
    position: absolute !important;
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* 完全透明 */
    transition: opacity 0.2s;
}

.wheel-btn:hover {
    opacity: 0.08; /* 鼠标悬停时稍微显示 */
    background: rgba(255, 255, 255, 0.15);
}

/* 按键的精准校准坐标（用户手动调整后） */
#btn-center {
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7%;
    height: 6%;
    border-radius: 60%;
}

#btn-menu {
    top: 49%;
    left: 50%;
    transform: translateX(-50%);
    width: 7%;
    height: 5%;
}

/* 将左侧<<和右侧>>分别映射为上下滚动 */
#btn-left {
    top: 57%;
    left: 41%;
    transform: translateY(-50%);
    width: 5%;
    height: 6%;
}

#btn-right {
    top: 57%;
    left: 55%;
    transform: translateY(-50%);
    width: 4%;
    height: 6%;
}

/* 色调覆盖层 */
.color-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* 最终内容区域 */
.final-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, #000 0%, #0a0a0a 50%, #000 100%);
    min-height: 100vh;
    padding: 100px 20px;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.content-inner h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-inner p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scroll-hint-text {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .scroll-hint {
        bottom: 40px;
    }
    
    .scene1-title {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .scene1-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .floating-text p {
        font-size: 18px;
        letter-spacing: 3px;
        line-height: 1.6;
    }
    
    .floating-text-container {
        bottom: 10%;
    }
    
    /* 第二幕响应式 */
    .bubble-hotspot {
        width: 180px;
        height: 80px;
    }
    
    .bubble-hint {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .cloud-dialog {
        width: 95%;
        max-width: 500px;
    }
    
    .cloud-dialog-inner {
        padding: 30px 25px;
    }
    
    .cloud-header {
        font-size: 20px;
    }
    
    #dream-input {
        height: auto;
        font-size: inherit;
        padding: 0;
    }
    
    .style-options {
        gap: 8px;
    }
    
    .style-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .ipod-hotspot {
        left: 10%;
        width: 50px;
        height: 80px;
    }
    
    .ipod-body {
        width: 250px;
        height: 420px;
        padding: 15px;
    }
    
    .ipod-screen-container {
        height: 170px;
    }
    
    .ipod-wheel {
        width: 150px;
        height: 150px;
    }
    
    .ipod-wheel-center {
        width: 60px;
        height: 60px;
    }
    
    .content-inner h1 {
        font-size: 32px;
    }
    
    .content-inner p {
        font-size: 16px;
    }
}

/* ============================================
   链式解锁交互样式
   ============================================ */

/* 1. 思想气泡输入框（初始激活） */
.dream-input-container {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    pointer-events: auto;
}

.dream-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-height: 120px;
    animation: breathGlow 3s ease-in-out infinite;
}

@keyframes breathGlow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
                    0 0 20px rgba(100, 150, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
                    0 0 40px rgba(100, 150, 255, 0.4);
    }
}

/* 手写体提示语（纯透明）*/
.dream-placeholder {
    position: absolute;
    top: 40px;
    left: 75px;
    right: 20px;
    width: 84%;
    height: 85%;
    font-size: 18px;
    font-family: 'Segoe Print', 'Comic Sans MS', cursive;
    color: rgba(100, 100, 100, 0.4);
    pointer-events: none;
    line-height: 1.6;
    transition: opacity 0.8s ease;
    text-align: center;
    
    /* 确保文字完整显示 */
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    
    /* 纯透明 */
    background: transparent;
    border: none;
}

.dream-placeholder.hidden {
    opacity: 0;
}

/* 闪烁光标 */
.cursor-blink {
    animation: blink 1.5s infinite;
    color: rgba(100, 100, 100, 0.5);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* 实际输入框 */
.dream-textarea {
    width: 100%;
    min-height: 80px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* iPod 按钮锁定状态（已整合到上方） */

.ipod-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8), transparent);
    border-radius: 15px;
    opacity: 0;
    pointer-events: none;
}

/* 3. 提交按钮（最后解锁） */
.submit-button-container {
    position: fixed;
    bottom: 7vh;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.submit-button-container.locked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.submit-button-container.scene2-visible {
    opacity: 1;
    visibility: visible;
}

.final-submit-btn {
    min-width: 248px;
    padding: 13px 28px 12px;
    background:
        linear-gradient(180deg, rgba(247, 237, 214, 0.92), rgba(223, 197, 145, 0.94));
    border: 1px solid rgba(138, 112, 63, 0.3);
    border-radius: 4px 16px 5px 14px / 11px 6px 13px 8px;
    color: rgba(73, 49, 20, 0.96);
    font-size: 16px;
    font-weight: 400;
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow:
        7px 8px 0 rgba(57, 39, 16, 0.12),
        0 10px 24px rgba(60, 42, 16, 0.12),
        inset 0 1px 0 rgba(255, 249, 231, 0.42);
    transition: all 0.3s ease;
}

.final-submit-btn:disabled {
    cursor: default;
    opacity: 0.92;
}

.final-submit-btn.is-generated {
    background:
        linear-gradient(180deg, rgba(238, 227, 194, 0.96), rgba(197, 168, 103, 0.96));
    box-shadow:
        7px 8px 0 rgba(68, 49, 18, 0.14),
        0 12px 28px rgba(90, 65, 28, 0.16),
        inset 0 1px 0 rgba(255, 249, 231, 0.42);
}

.final-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        9px 11px 0 rgba(57, 39, 16, 0.12),
        0 14px 30px rgba(78, 56, 23, 0.16),
        inset 0 1px 0 rgba(255, 249, 231, 0.46);
}

.mainline-video-toast {
    position: fixed;
    right: 3.2vw;
    bottom: 4.6vh;
    transform: translateY(14px);
    z-index: 160;
    width: min(360px, 32vw);
    max-width: 88vw;
    padding: 12px 15px 11px;
    border: 1px solid rgba(143, 115, 60, 0.28);
    border-radius: 4px 14px 6px 15px / 10px 6px 12px 8px;
    background:
        linear-gradient(180deg, rgba(248, 239, 214, 0.95), rgba(226, 205, 158, 0.96));
    box-shadow:
        6px 7px 0 rgba(57, 39, 16, 0.1),
        0 12px 26px rgba(60, 42, 16, 0.12);
    color: rgba(72, 48, 20, 0.96);
    font-size: 14px;
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    letter-spacing: 0.05em;
    line-height: 1.7;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
}

.mainline-video-toast:empty {
    display: none;
}

.mainline-video-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mainline-video-toast.is-success {
    background:
        linear-gradient(180deg, rgba(244, 237, 209, 0.96), rgba(214, 193, 143, 0.97));
}

.mainline-video-toast.is-error {
    background:
        linear-gradient(180deg, rgba(246, 230, 215, 0.96), rgba(220, 179, 151, 0.97));
    border-color: rgba(154, 90, 57, 0.28);
}

/* 响应式 */
@media (max-width: 768px) {
    .mainline-video-toast {
        right: 4.8vw;
        bottom: 4vh;
        width: min(88vw, 360px);
        font-size: 13px;
        line-height: 1.65;
    }

    .dream-input-container {
        width: 280px;
    }
    
    .dream-placeholder {
        font-size: 16px;
    }
}

/* ============================================
   🎬 滚动叙事文字层（Scrollytelling）
   ============================================ */

.scrollytelling-text-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 50;
    pointer-events: none;
    
    /* 性能优化，防止闪烁 */
    will-change: contents;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.story-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px; /* 字号增大 */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 3px; /* 字间距增大 */
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        0 2px 15px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.2); /* 增强发光效果 */
    opacity: 0;
    white-space: nowrap;
    
    /* 性能优化，防止闪烁 */
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .manga-scrap-paper {
    position: relative;
    display: inline-block;
    padding: 26px 25px 15px 25px;
    background-color: #e8d5a3;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.12'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fiber'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.05' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fiber)' opacity='0.06'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            transparent,
            transparent 28px,
            rgba(139, 90, 43, 0.25) 28px,
            rgba(139, 90, 43, 0.25) 29px
        );
    background-blend-mode: normal;
    color: #3d2914;
    font-family: 'Nishiki-teki', 'Comic Sans MS', '方正手迹', cursive;
    font-size: inherit;
    font-weight: bold;
    line-height: inherit;
    clip-path: polygon(
        2% 0%, 5% 1%, 8% 0%, 12% 2%, 15% 0%, 20% 1%, 25% 0%, 30% 2%, 35% 0%, 40% 1%, 45% 0%, 50% 2%, 55% 0%, 60% 1%, 65% 0%, 70% 2%, 75% 0%, 80% 1%, 85% 0%, 90% 2%, 95% 0%, 98% 1%, 100% 0%,
        100% 8%, 99% 12%, 100% 18%, 98% 22%, 100% 28%, 99% 32%, 100% 38%, 97% 42%, 100% 48%, 98% 52%, 100% 58%, 99% 62%, 100% 68%, 98% 72%, 100% 78%, 99% 82%, 100% 88%, 97% 92%, 100% 95%, 99% 100%,
        95% 100%, 90% 98%, 85% 100%, 80% 97%, 75% 100%, 70% 98%, 65% 100%, 60% 97%, 55% 100%, 50% 98%, 45% 100%, 40% 97%, 35% 100%, 30% 98%, 25% 100%, 20% 97%, 15% 100%, 10% 98%, 5% 100%, 2% 97%,
        0% 92%, 1% 88%, 0% 82%, 2% 78%, 0% 72%, 1% 68%, 0% 62%, 2% 58%, 0% 52%, 1% 48%, 0% 42%, 2% 38%, 0% 32%, 1% 28%, 0% 22%, 2% 18%, 0% 12%, 1% 8%, 0% 2%
    );
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -3px 3px 6px -2px rgba(0, 0, 0, 0.2),
        10px 3px 6px -2px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    text-shadow: none;
    z-index: 10;
    animation: paper-float 4s ease-in-out infinite;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .font-new-song {
    font-family: 'New Songti SC', 'NSimSun', '新宋体', serif;
    letter-spacing: 1px;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .rusty-staple {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 14px;
    height: 4px;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af, #d1d5db);
    border-radius: 1px;
    transform: rotate(-15deg);
    z-index: 20;
    box-shadow:
        1px 1px 1px rgba(0, 0, 0, 0.3),
        -2px 2px 5px rgba(153, 51, 0, 0.4),
        2px -1px 4px rgba(184, 92, 0, 0.3);
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .rusty-staple::before,
:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .rusty-staple::after {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 4px;
    background-color: #374151;
    border-radius: 50%;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .rusty-staple::before {
    left: -1px;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .rusty-staple::after {
    right: -1px;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .curl-shadow-left {
    position: absolute;
    bottom: -6px;
    left: 10px;
    width: 35px;
    height: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.12) 0%, transparent 100%);
    transform: rotate(-8deg);
    filter: blur(2px);
    z-index: -1;
    pointer-events: none;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .curl-shadow-right {
    position: absolute;
    bottom: -6px;
    right: 10px;
    width: 35px;
    height: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
    transform: rotate(6deg);
    filter: blur(2px);
    z-index: -1;
    pointer-events: none;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .manga-scrap-paper::before {
    content: '';
    position: absolute;
    top: 60%;
    right: 15%;
    width: 45px;
    height: 35px;
    background: radial-gradient(
        ellipse at center,
        rgba(101, 67, 33, 0.12) 0%,
        rgba(101, 67, 33, 0.08) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .manga-scrap-paper::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 30px;
    height: 25px;
    background: radial-gradient(
        ellipse at center,
        rgba(101, 67, 33, 0.08) 0%,
        rgba(101, 67, 33, 0.05) 50%,
        transparent 80%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .tape {
    position: absolute;
    width: 50px;
    height: 18px;
    background-color: rgba(230, 215, 180, 0.85);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 25;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .tape-bottom-right {
    bottom: -10px;
    right: -14px;
    transform: rotate(-28deg);
    clip-path: polygon(2% 0%, 100% 5%, 98% 100%, 0 95%);
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .curl-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 12;
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .curl-corner-bottom-left {
    bottom: -2px;
    left: 8px;
    background: linear-gradient(
        135deg,
        transparent 50%,
        rgba(180, 160, 120, 0.5) 50%,
        rgba(200, 180, 140, 0.3) 100%
    );
    border-radius: 0 0 0 100%;
    box-shadow: -2px -1px 3px rgba(0, 0, 0, 0.1);
}

:is(.story-text, .dream-btn, .whisper-text p, .button-text, .dream-confirm, .dream-confirm-global, .paper-style-host) .curl-corner-top-right {
    top: -2px;
    right: 8px;
    background: linear-gradient(
        225deg,
        transparent 50%,
        rgba(180, 160, 120, 0.5) 50%,
        rgba(200, 180, 140, 0.3) 100%
    );
    border-radius: 0 100% 0 0;
    box-shadow: 2px -1px 3px rgba(0, 0, 0, 0.1);
}

@keyframes paper-float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(-0.5deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

/* 阶段1 - 输入引导 */
#story-text-1 {
    bottom: 100px; /* "好安静............." */
}

#story-text-2 {
    bottom: 100px; /* "想什么呢.........小大人" */
}

#story-text-3 {
    bottom: 100px; /* "点击云朵" */
}

/* 阶段2 - iPod引导 */
#story-text-4 {
    bottom: 100px; /* "嘟嘟嘟.......看看ipod，帮她关掉" */
}

#story-text-5 {
    bottom: 100px; /* "继续下滑" */
}

/* ============================================
   🌌 梦境场景系统（Scene 1-3）
   ============================================ */

/* 梦境场景总容器 */
.dream-scenes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 25;
    pointer-events: none;
    
    /* 性能优化 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 场景容器 */
.dream-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    display: none; /* 初始完全不显示 */
    
    /* 性能优化 */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.dream-scene.active {
    display: block; /* 激活时才显示 */
    opacity: 1;
    pointer-events: auto;
}

/* 旁白文案容器（绿色调试热区） - 去UI化 */
.dream-narration {
    position: absolute;
    top: 49%; /* 默认位置 */
    max-width: 630px; /* 默认宽度 */
    padding: 30px 40px;
    opacity: 0;
    transform: translateY(20px);
    
    /* 彻底清除背景和边框 */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* 性能优化 */
    will-change: opacity, transform;
    backface-visibility: hidden;
}

/* 绿色调试热区已删除 */

/* 左侧旁白 */
.narration-left {
    left: 7%; /* 默认左侧位置 */
}

/* 右侧旁白 */
.narration-right {
    right: 4%;
}

/* Scene 1（宇宙）特定位置 */
#scene-1-dream .dream-narration {
    top: 49%;
    max-width: 630px;
}

#scene-1-dream .narration-left {
    left: 7%;
}

/* Scene 2（冲浪）特定位置 */
#scene-2-dream .dream-narration {
    top: 35%;
    max-width: 600px;
}

#scene-2-dream .narration-right {
    right: 4%;
}

/* Scene 3（过山车）特定位置 */
#scene-3-dream .dream-narration {
    top: 55%;
    max-width: 600px;
}

#scene-3-dream .narration-left {
    left: 5%;
}

/* 旁白文字样式 - 无界文字排版 */
.dream-narration p {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1.8;
    margin: 0 0 20px 0;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    
    /* 电影级文字阴影 */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.dream-narration p:last-child {
    margin-bottom: 0;
}

/* 选项按钮容器（黄色调试热区） - 去UI化 */
.dream-options {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    opacity: 0;
    
    /* 彻底清除背景和边框 */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* 性能优化 */
    will-change: opacity;
    backface-visibility: hidden;
}

/* 黄色调试热区已删除 */

/* 去UI化按钮 - 悬浮的思绪 */
.dream-btn {
    /* 彻底清除框线和背景 */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    
    /* 将文字变成悬浮的思绪 */
    color: rgba(255, 255, 255, 0.75); /* 微微半透明的白 */
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 400;
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: normal;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* 电影级文字阴影（保证在任何背景下都能看清） */
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.5);
    
    /* 性能优化 */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.dream-btn .manga-scrap-paper {
    white-space: nowrap;
}

.button-text .manga-scrap-paper,
.dream-confirm .manga-scrap-paper,
.dream-confirm-global .manga-scrap-paper,
.btn-text .manga-scrap-paper,
.scene8-hint .manga-scrap-paper,
.scene11-blink-hint button .manga-scrap-paper,
.scene15-enter-archive-btn .manga-scrap-paper,
.open-dream-hub-btn .manga-scrap-paper {
    white-space: nowrap;
}

.paper-style-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.paper-style-stack .paper-line {
    display: block;
    width: 100%;
}

.paper-style-stack .paper-line-spacer {
    width: 100%;
    height: 12px;
}

.paper-style-stack .manga-scrap-paper {
    max-width: 100%;
}

/* 唯美的悬停反馈（发光+微微放大） */
.dream-btn:hover {
    color: #ffffff;
    transform: scale(1.08) translateY(-2px) translateZ(0); /* 微微抬起 */
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8), /* 外部白光 */
        0 4px 20px rgba(0, 0, 0, 0.8); /* 底部黑影依然保留，增加立体感 */
}

/* 点击效果 */
.dream-btn:active {
    transform: scale(1.02) translateY(0) translateZ(0);
}

/* 印记确认提示 - 去UI化（容器内） */
.dream-confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 4px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    
    /* 彻底清除背景和边框 */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0;
    
    /* 纯净文字发光 */
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 2px 20px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(255, 255, 255, 0.4);
    
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    
    /* 性能优化 */
    will-change: opacity;
    transform: translate(-50%, -50%) translateZ(0);
    backface-visibility: hidden;
}

/* 印记确认提示 - 全局最高层 */
.dream-confirm-global {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 4px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    
    /* 彻底清除背景和边框 */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0;
    
    /* 纯净文字发光 */
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 2px 20px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(255, 255, 255, 0.4);
    
    opacity: 0;
    z-index: 9999; /* 全局最高层 */
    pointer-events: none;
    
    /* 性能优化 */
    will-change: opacity;
    transform: translate(-50%, -50%) translateZ(0);
    backface-visibility: hidden;
}

.memory-pocket-container {
    position: fixed;
    top: 26px;
    right: 26px;
    z-index: 94;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

html.resume-direct-entry .dream-confirm,
html.resume-direct-entry .dream-confirm-global {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.pocket-icon-wrapper {
    position: relative;
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pocket-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.pocket-glow {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 223, 118, 0.5), transparent 72%);
    opacity: 0.65;
    z-index: -1;
}

.pocket-progress {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(8, 10, 20, 0.42);
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

#pocket-count {
    color: #ffd86b;
    font-weight: 700;
}

.pocket-hint {
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ============================================
   🎬 Scene 6: 秋千池塘图 - 电影级交互
   ============================================ */

/* 池塘场景容器 */
.pond-scene {
    position: absolute;
    inset: 0;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    display: none;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pond-scene.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.flash-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0);
}

.camera-wrapper {
    position: absolute;
    top: 50%;
    left: 93%;
    width: 76%;
    height: 127%;
    transform: translate(-50%, -50%);
    z-index: 4;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
}

.camera-icon {
    width: 10%;
    height: 106%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.whisper-text {
    position: absolute;
    left: 8%;
    max-width: 620px;
    transform: translateY(18px);
    text-align: left;
    opacity: 0;
    pointer-events: none;
    padding: 20px;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.whisper-text p {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 2px;
    line-height: 1.8;
    margin: 0 0 15px 0;
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

.whisper-text p:last-child {
    margin-bottom: 0;
}

.action-button {
    position: absolute;
    z-index: 5;
    opacity: 0;
    pointer-events: auto;
    padding: 12px 20px;
}

.button-text {
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    font-family: 'SimSun', 'STSong', '宋体', serif;
    cursor: pointer;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.action-button:hover .button-text {
    color: #ffffff;
    transform: scale(1.08) translateY(-2px) translateZ(0);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.8);
}

#whisper-stage-1 {
    top: 41%;
    left: 4%;
}

#whisper-stage-2 {
    top: 34%;
}

#whisper-stage-3 {
    top: 57%;
}

#action-button-1 {
    top: 668%;
    left: 11%;
}

#action-button-2 {
    top: 551px;
    left: 4%;
}

.polaroid-wrapper {
    position: absolute;
    top: 50%;
    left: 35%;
    width: min(28vw, 430px);
    aspect-ratio: 1200 / 1450;
    height: auto;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.polaroid-frame {
    display: block;
    width: 200%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

.photo-mask {
    position: absolute;
    top: 24.1%;
    left: 62.2%;
    width: 77%;
    height: 44.6%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 4px;
    will-change: transform;
    backface-visibility: hidden;
}

.ai-photo {
    width: 100%;
    height: 100%;
    background: rgba(228, 228, 228, 0.38);
    opacity: 0;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.scene6-progress-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(250, 246, 239, 0.2), rgba(93, 75, 54, 0.1)),
        radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.2), rgba(255, 253, 248, 0));
    transition: opacity 0.36s ease, transform 0.36s ease;
}

.scene6-progress-overlay.is-active {
    opacity: 1;
}

.scene6-progress-overlay.is-complete {
    opacity: 0;
    transform: scale(0.96);
}

.scene6-progress-core {
    position: relative;
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
}

.scene6-progress-svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    overflow: visible;
    filter: url(#ink-roughen);
}

.scene6-progress-track,
.scene6-progress-orbit,
.scene6-progress-fill {
    fill: none;
    transform-origin: 66px 66px;
}

.scene6-progress-track {
    stroke: rgba(183, 144, 85, 0.22);
    stroke-width: 2.8;
    stroke-dasharray: 5 11;
}

.scene6-progress-orbit {
    stroke: rgba(183, 144, 85, 0.28);
    stroke-width: 1.4;
    stroke-dasharray: 3 11;
    animation: scene6ProgressOrbit 8s linear infinite;
}

.scene6-progress-fill {
    stroke: rgba(183, 144, 85, 0.92);
    stroke-width: 4.6;
    stroke-linecap: round;
    stroke-dasharray: 314.16;
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 140ms linear;
    filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.4));
}

.scene6-progress-orbit-dot {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: rgba(183, 144, 85, 0.9);
    box-shadow: 0 0 0 3px rgba(183, 144, 85, 0.12);
    transform-origin: 4px 52px;
    animation: scene6ProgressDot 4.8s linear infinite;
}

.scene6-progress-inner {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 250, 241, 0.96), rgba(244, 231, 213, 0.96));
    border: 1.5px solid rgba(111, 86, 60, 0.16);
    box-shadow:
        0 10px 18px rgba(109, 84, 58, 0.08),
        inset 0 0 0 2px rgba(255, 255, 255, 0.36);
}

.scene6-progress-kicker {
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(80, 61, 43, 0.46);
}

.scene6-progress-value {
    margin-top: 6px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 23px;
    line-height: 1;
    letter-spacing: 0.05em;
    color: rgba(53, 42, 33, 0.96);
}

.scene6-progress-copy {
    margin-top: 6px;
    padding: 0 10px;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(53, 42, 33, 0.66);
}

@keyframes scene6ProgressOrbit {
    to {
        transform: rotate(1turn);
    }
}

@keyframes scene6ProgressDot {
    to {
        transform: rotate(1turn);
    }
}

.mini-polaroid-collection {
    position: fixed;
    top: 206px;
    right: 32px;
    width: 101px;
    height: 89px;
    opacity: 0;
    pointer-events: none;
    z-index: 95;
}

.mini-polaroid-collection img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

/* ============================================
   🌿 Scene 7: 心灵树洞 - 治愈师纸条
   ============================================ */

.treehouse-scene {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    opacity: 0;
    pointer-events: none;
}

.treehouse-scene.active {
    display: block;
    pointer-events: auto;
}

.healer-note,
.user-note,
.healing-final {
    position: absolute;
    opacity: 0;
    width: min(42vw, 700px);
    max-width: 42vw;
}

.healer-note {
    top: 11%;
    left: 4%;
    z-index: 4;
}

.user-note {
    top: 72%;
    left: 12%;
    width: min(42vw, 700px);
    max-width: 42vw;
    z-index: 4;
    pointer-events: none;
}

.healing-final {
    top: 11%;
    left: 4%;
    width: min(42vw, 700px);
    max-width: 42vw;
    z-index: 4;
    pointer-events: none;
}

.note-paper {
    position: relative;
    width: 137%;
    aspect-ratio: 1.72 / 1;
    min-height: 0;
}

.healer-note .note-paper,
.user-note .note-paper {
    width: 150%;
}

.note-paper-user {
    width: 100%;
    min-height: 96px;
    aspect-ratio: auto;
}

.user-note .note-paper-bg {
    display: none;
}

.user-note .note-paper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 18%;
    top: 18px;
    height: 44px;
    background:
        radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.12), transparent 46%),
        linear-gradient(90deg, rgba(229, 219, 196, 0.03), rgba(229, 219, 196, 0.18), rgba(229, 219, 196, 0.03));
    filter: blur(6px);
    opacity: 0.95;
}

.user-note .note-paper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 20%;
    top: 64px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(116, 94, 64, 0) 0%,
        rgba(116, 94, 64, 0.36) 12%,
        rgba(116, 94, 64, 0.62) 50%,
        rgba(116, 94, 64, 0.36) 88%,
        rgba(116, 94, 64, 0) 100%
    );
    transform-origin: center;
}

.note-paper-final {
    aspect-ratio: 1.72 / 1;
    width: 150%;
}

.note-paper-bg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.22));
    user-select: none;
    pointer-events: none;
}

.note-source-badge {
    position: absolute;
    top: 19%;
    right: 17%;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 249, 236, 0.84);
    border: 1px solid rgba(120, 96, 63, 0.2);
    color: rgba(92, 70, 43, 0.92);
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: clamp(11px, 0.7vw, 14px);
    line-height: 1.2;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 20px rgba(46, 32, 18, 0.08);
    pointer-events: none;
    white-space: nowrap;
}

.note-source-badge.is-qwen {
    background: rgba(237, 245, 234, 0.9);
    color: rgba(55, 92, 47, 0.96);
    border-color: rgba(86, 126, 79, 0.24);
}

.note-source-badge.is-preset {
    background: rgba(247, 235, 223, 0.92);
    color: rgba(124, 75, 46, 0.96);
    border-color: rgba(157, 103, 67, 0.24);
}

.note-source-badge.is-pending {
    background: rgba(246, 240, 225, 0.9);
    color: rgba(118, 93, 54, 0.94);
}

.note-text,
.healing-final-text {
    position: absolute;
    top: 41%;
    left: 21%;
    width: 59%;
    height: 39%;
    color: rgba(58, 46, 31, 0.95);
    font-family: 'STKaiti', 'KaiTi', 'FangSong', 'Noto Serif SC', serif;
    font-size: clamp(19px, 1.08vw, 25px);
    line-height: 1.9;
    letter-spacing: 0.8px;
    white-space: pre-wrap;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.user-note .note-text {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    color: rgba(58, 46, 31, 0.95);
    font-family: 'STKaiti', 'KaiTi', 'FangSong', 'Noto Serif SC', serif;
    font-size: clamp(24px, 1.26vw, 32px);
    line-height: 1.6;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.18);
}

.healing-final-text {
    top: 41%;
    left: 21%;
    width: 59%;
    height: 39%;
    font-size: clamp(19px, 1.08vw, 25px);
    line-height: 1.9;
    transform: none;
    text-align: left;
    overflow: hidden;
}

.emotion-options {
    position: absolute;
    left: 33%;
    right: 12%;
    bottom: 28%;
    display: flex;
    flex-wrap: wrap;
    gap: 47px;
    opacity: 0;
}

.emotion-btn {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(70, 52, 32, 0.94);
    font-family: 'STKaiti', 'KaiTi', 'FangSong', 'Noto Serif SC', serif;
    font-size: 20px;
    line-height: 1.4;
    padding: 0 6px 10px;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.emotion-btn:hover {
    transform: translateY(-1px);
    background: transparent;
}

.emotion-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.22s ease;
}

.emotion-btn:hover::after {
    width: calc(100% - 12px);
}

.note-memory-stack {
    position: fixed;
    left: 6%;
    bottom: 8%;
    width: 250px;
    height: 180px;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.memory-fragment {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 170px;
    min-height: 68px;
    padding: 14px 18px;
    background: rgba(247, 236, 212, 0.88);
    border: 1px solid rgba(125, 99, 67, 0.18);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform-origin: bottom left;
}

.memory-fragment-text {
    display: block;
    color: rgba(76, 58, 36, 0.9);
    font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: 14px;
    line-height: 1.65;
}

.star-dust {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 96;
}

.mini-envelope-collection {
    position: fixed;
    top: 315px;
    right: 32px;
    width: 101px;
    height: 89px;
    opacity: 0;
    display: none;
    pointer-events: none;
    z-index: 96;
}

.mini-envelope-collection img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* scene 7 hotspot debug styles removed */

.quick-jump-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.quick-jump-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(8, 12, 20, 0.78);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 1px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.quick-jump-btn:hover {
    transform: translateY(-1px);
    background: rgba(18, 24, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.38);
}

/* ============================================
   预览隔离：当前只保留 1-6，后续场景先彻底脱离文档流
   ============================================ */

#particles-layer,
#debug-panel {
    display: none !important;
}

.scene9-warmth-layer {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: none;
    pointer-events: none;
    overflow: hidden;
}

.scene9-warmth-layer.active {
    pointer-events: auto;
}

.scene9-grayscale-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    filter: saturate(0.92) contrast(1.02);
}

.watercolor-brush {
    position: fixed;
    left: 50%;
    top: 60%;
    width: 88px;
    height: 88px;
    transform: translate(-50%, -50%);
    z-index: 96;
    cursor: grab;
    pointer-events: auto;
    user-select: none;
    touch-action: none;
    border: none;
    background: transparent;
    filter:
        drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 18px rgba(255, 206, 141, 0.16));
    transition: transform 0.18s ease, filter 0.24s ease, opacity 0.3s ease;
}

.watercolor-brush:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.08) rotate(-2deg);
}

.watercolor-brush img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.scene9-text {
    position: absolute;
    top: 11%;
    left: 50%;
    width: min(720px, 84vw);
    transform: translateX(-50%);
    color: rgba(255, 250, 242, 0.96);
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(22px, 1.9vw, 30px);
    line-height: 1.9;
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow:
        0 3px 14px rgba(0, 0, 0, 0.54),
        0 0 24px rgba(255, 255, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    z-index: 95;
}

.doodle-progress-container {
    position: absolute;
    top: 4.5%;
    left: 4%;
    width: 152px;
    height: 152px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    z-index: 95;
}

.doodle-progress-container::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 42% 56% 52% 48% / 50% 42% 58% 50%;
    background:
        radial-gradient(circle at 34% 34%, rgba(255, 245, 223, 0.98) 0%, rgba(244, 226, 188, 0.9) 56%, rgba(206, 182, 140, 0.44) 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(128, 94, 48, 0.12);
    opacity: 0.94;
    transform: rotate(4deg);
}

.doodle-progress-container::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 18px;
    width: 22px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 248, 235, 0.72);
    box-shadow: inset 0 0 0 1px rgba(146, 118, 82, 0.18);
    opacity: 0.9;
}

.doodle-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: url(#hand-drawn-filter);
}

.doodle-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.doodle-track {
    stroke: rgba(86, 69, 42, 0.22);
}

.doodle-fill {
    stroke: url(#doodle-rainbow);
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.8s ease-out;
    filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.28));
}

.doodle-text {
    position: relative;
    z-index: 2;
    font-family: "Segoe Print", "STKaiti", cursive;
    font-size: 24px;
    font-weight: 700;
    color: #4a3823;
    letter-spacing: 0.02em;
}

.doodle-label {
    position: relative;
    z-index: 2;
    margin-top: 2px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 13px;
    color: rgba(84, 60, 29, 0.84);
    letter-spacing: 0.12em;
}

@media (max-width: 768px) {
    .watercolor-brush {
        width: 72px;
        height: 72px;
    }

    .scene9-text {
        top: 9%;
        width: 88vw;
        font-size: clamp(18px, 4.8vw, 24px);
        line-height: 1.8;
    }

    .doodle-progress-container {
        top: 3.8%;
        left: 3.5%;
        width: 124px;
        height: 124px;
    }

    .doodle-text {
        font-size: 20px;
    }

    .doodle-label {
        font-size: 11px;
    }
}

/* ============================================
   🌙 Scene 7 -> 8 过渡与 Scene 8 拼图重组
   ============================================ */

.white-transition-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.1) 0%, rgba(12, 16, 28, 0.72) 42%, rgba(5, 8, 16, 0.92) 100%);
    backdrop-filter: blur(4px);
    z-index: 118;
    pointer-events: none;
}

.transition-text {
    display: none;
    max-width: min(58vw, 880px);
    padding: 40px 52px;
    color: rgba(247, 246, 240, 0.96);
    text-align: center;
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(24px, 2.2vw, 38px);
    line-height: 1.9;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.18),
        0 10px 32px rgba(0, 0, 0, 0.42);
}

.scene8-shatter-layer {
    position: fixed;
    inset: 0;
    display: none;
    opacity: 1;
    overflow: hidden;
    background: transparent;
    z-index: 88;
    contain: layout paint;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.scene8-snap-flash {
    position: absolute;
    inset: 0;
    border: none;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
}

.fragments-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible;
}

.scene8-guide-board {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.16;
    z-index: 1;
    mix-blend-mode: screen;
    filter: grayscale(1) brightness(0.55) contrast(1.1) blur(0.4px);
}

.fragment {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
    transition:
        filter 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.fragment:hover {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.48));
}

.fragment.dragging {
    cursor: grabbing;
    z-index: 5;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.24));
}

.fragment.snapping {
    filter:
        drop-shadow(0 0 18px rgba(255, 215, 108, 0.48))
        drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.fragment.locked {
    cursor: default;
    pointer-events: none;
    filter:
        drop-shadow(0 0 8px rgba(255, 215, 108, 0.18))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.fragment.near-snap {
    filter:
        drop-shadow(0 0 16px rgba(255, 222, 130, 0.3))
        drop-shadow(0 12px 28px rgba(0, 0, 0, 0.46));
}

.fragment canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fragment-slot-guide {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.42;
    z-index: 2;
    filter:
        grayscale(1)
        brightness(0.72)
        contrast(1.08)
        drop-shadow(0 0 10px rgba(255, 216, 120, 0.18));
}

.fragment-slot-guide canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.62;
}

/* 拼图底板槽位 */
.fragment-slot {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.fragment-slot canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.fragment-slot.highlight canvas {
    filter: drop-shadow(0 0 10px rgba(180, 215, 255, 0.55));
}

.scene8-text {
    position: absolute;
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
    width: min(62vw, 920px);
    color: rgba(246, 242, 235, 0.95);
    text-align: center;
    font-family: "STKaiti", "KaiTi", "FangSong", serif;
    font-size: clamp(21px, 1.85vw, 32px);
    line-height: 1.9;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 14px rgba(255, 233, 166, 0.12),
        0 6px 28px rgba(0, 0, 0, 0.46);
    pointer-events: none;
    z-index: 3;
}

.scene8-text .manga-scrap-paper {
    padding: 22px 22px 14px 22px;
}

.scene8-hint {
    position: absolute;
    left: 50%;
    bottom: 7.5%;
    transform: translateX(-50%);
    padding: 0;
    color: rgba(255, 238, 190, 0.88);
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    letter-spacing: 0.26em;
    text-transform: none;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    z-index: 3;
}

.consciousness-jar {
    position: absolute;
    top: 44px;
    left: 34px;
    width: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
    transform-origin: 50% 100%;
}

.jar-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    filter:
        drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 18px rgba(255, 216, 92, 0.08));
}

.jar-outline {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(253, 250, 242, 0.88);
    stroke-width: 4;
}

.jar-lid {
    fill: rgba(58, 42, 20, 0.92);
    stroke: rgba(245, 218, 136, 0.7);
    stroke-width: 2;
}

.jar-fill-color {
    fill: #f4c54e;
    opacity: 0.96;
}

.manga-label {
    min-width: 120px;
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-radius: 14px;
    background: rgba(12, 15, 24, 0.78);
    border: 1px solid rgba(255, 222, 138, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.manga-style {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.label-count {
    color: #f7d56c;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.label-text {
    color: rgba(245, 243, 235, 0.86);
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.consciousness-jar.bounce-active {
    animation: jar-wobble 0.6s ease;
}

.manga-label.completed-glow {
    box-shadow:
        0 0 0 1px rgba(255, 230, 156, 0.3),
        0 0 22px rgba(255, 207, 84, 0.28),
        0 8px 22px rgba(0, 0, 0, 0.28);
}

.puzzle-icon {
    position: fixed;
    /* === 可调参数 === */
    right: var(--puzzle-icon-right, 20px);
    top: var(--puzzle-icon-top, 425px);
    width: var(--puzzle-icon-width, 80px);
    height: var(--puzzle-icon-height, 89px);
    /* =============== */
    display: none;
    opacity: 0;
    pointer-events: none;
    z-index: 97;
}

.puzzle-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 12px rgba(255, 224, 130, 0.18));
}

.mini-fingerprint-collection {
    position: fixed;
    left: 0;
    top: 0;
    width: 78px;
    height: 78px;
    opacity: 0;
    pointer-events: none;
    z-index: 97;
}

.mini-fingerprint-collection img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter:
        grayscale(1)
        brightness(1.4)
        contrast(0.92)
        drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 10px rgba(255, 241, 210, 0.12));
}

@keyframes jar-wobble {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-6deg);
    }
    42% {
        transform: rotate(5deg);
    }
    64% {
        transform: rotate(-3deg);
    }
    82% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* ============================================
   📄 手绘纸张弹窗（梦境输入）
   ============================================ */

/* 暗场遮罩 */
.paper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease; /* 加快过渡速度 */
    
    /* 性能优化 */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.paper-overlay.ipod-hidden {
    opacity: 0;
    pointer-events: none;
}

/* 纸张对话框 */
.paper-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    z-index: 201;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* 加快过渡速度 */
    
    /* 性能优化 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.paper-dialog.ipod-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -45%) scale(0.95);
}

/* 纸张背景 */
.paper-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./newassets/paper.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    
    /* 性能优化 */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.paper-close-btn {
    position: absolute;
    top: 11.6%;
    right: 15.4%;
    padding: 7px 14px 8px;
    border: 1px solid rgba(110, 83, 47, 0.18);
    border-radius: 999px;
    background: rgba(255, 248, 230, 0.88);
    color: rgba(78, 55, 29, 0.94);
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    pointer-events: auto;
    z-index: 4;
    font-family: 'Microsoft YaHei', sans-serif;
    box-shadow: 0 6px 18px rgba(66, 42, 16, 0.08);
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.paper-close-btn:hover {
    background: rgba(255, 243, 210, 0.96);
    color: rgba(47, 28, 11, 0.98);
    transform: translateY(-1px);
}

/* 红色文字输入热区 - 热区已删除 */
.paper-textarea {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 70%;
    height: 55%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    padding: 20px;
    font-size: 18px;
    font-family: 'SimSun', 'STSong', '宋体', serif; /* 宋体 */
    font-style: italic; /* 斜体 */
    color: #333;
    line-height: 1.8;
    overflow-y: auto;
    box-sizing: border-box;
    
    /* 性能优化 */
    will-change: contents;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.paper-textarea::-webkit-scrollbar {
    display: none;
}

.paper-textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-style: italic;
    font-family: 'SimSun', 'STSong', '宋体', serif; /* 宋体 */
}

.paper-voice-strip {
    position: absolute;
    left: 15%;
    bottom: 11.2%;
    display: flex;
    align-items: end;
    gap: 12px;
    z-index: 3;
}

.paper-voice-toggle {
    position: relative;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid rgba(105, 79, 46, 0.22);
    border-radius: 999px;
    background: rgba(255, 247, 226, 0.9);
    color: rgba(78, 55, 29, 0.94);
    box-shadow: 5px 5px 0 rgba(54, 34, 15, 0.1);
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.paper-voice-toggle:hover {
    background: rgba(248, 236, 208, 0.96);
    transform: translateY(-1px);
}

.paper-voice-toggle.is-recording {
    background: rgba(150, 88, 57, 0.14);
    border-color: rgba(150, 88, 57, 0.34);
    color: rgba(114, 53, 36, 0.98);
}

.paper-voice-toggle:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.paper-voice-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.paper-voice-toggle-icon svg {
    width: 1.14rem;
    height: 1.14rem;
    fill: currentColor;
}

.paper-voice-toggle.is-recording::after {
    content: "";
    position: absolute;
    top: 0.28rem;
    right: 0.28rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(174, 64, 46, 0.96);
    box-shadow: 0 0 0 0 rgba(174, 64, 46, 0.28);
    animation: quickVoicePulse 1.1s ease-out infinite;
}

.paper-voice-wave {
    width: 7rem;
    height: 1.58rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.paper-voice-wave.is-active {
    opacity: 1;
    transform: translateY(0);
}

.paper-voice-wave span {
    width: 4px;
    max-width: 4px;
    height: 100%;
    border-radius: 999px 999px 2px 2px;
    background: linear-gradient(180deg, rgba(176, 147, 102, 0.92), rgba(138, 109, 71, 0.88));
    transform-origin: bottom center;
    transform: scaleY(var(--wave-scale, 0.25));
    transition: transform 0.08s linear;
}

/* 继续按钮 - 热区已删除 */
.paper-continue-btn {
    position: absolute;
    bottom: 12%;
    right: 15%;
    padding: 12px 40px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', sans-serif;
}

.paper-continue-btn:hover {
    transform: scale(1.05);
}




/* ============================================
   Scene13 endpaper
   ============================================ */

.scene13-layer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 112;
    pointer-events: none;
}

.scene13-layer.active {
    display: block;
    pointer-events: auto;
}

.scene13-anchor {
    position: absolute;
    left: 80%;
    top: 1%;
    width: min(52vw, 700px);
    aspect-ratio: 409 / 610;
    transform: translate(-50%, -50%);
}

.scene13-anchor::before {
    display: none;
}

.scene13-anchor::after {
    display: none;
}

.scene13-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130%;
    height: 115%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

.scene13-bg-image {
    position: absolute;
    inset: 0;
    width: 77%;
    height: 74%;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.scene13-text-hotspot {
    position: absolute;
    left: 40%;
    top: 33%;
    width: 51%;
    height: 57%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    pointer-events: auto;
}

.scene13-story-text {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 5% 7% 5% 6%;
    color: rgba(56, 56, 60, 0.88);
    font-family: "STSong", "Songti SC", "SimSun", serif;
    font-size: clamp(15px, 0.92vw, 18px);
    line-height: 2.05;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
    scrollbar-width: thin;
    scrollbar-color: rgba(133, 94, 73, 0.52) transparent;
}

.scene13-story-text::-webkit-scrollbar {
    width: 7px;
}

.scene13-story-text::-webkit-scrollbar-track {
    background: transparent;
}

.scene13-story-text::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(160, 122, 94, 0.76), rgba(104, 72, 49, 0.62));
}

.scene13-story-fade {
    display: none;
}

.scene13-save-hotspot {
    position: absolute;
    left: 39%;
    top: 64.5%;
    width: 24%;
    height: 6%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
}

.scene13-save-hotspot.ready {
    pointer-events: auto;
}

#scene13-save-btn {
    min-width: 148px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 231, 215, 0.72);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(128, 36, 40, 0.96), rgba(92, 20, 26, 0.96));
    color: rgba(255, 245, 236, 0.96);
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.22em;
    box-shadow: 0 10px 24px rgba(48, 10, 12, 0.28), 0 0 0 1px rgba(255, 222, 201, 0.12) inset;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#scene13-save-btn:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 30px rgba(48, 10, 12, 0.34), 0 0 0 1px rgba(255, 232, 208, 0.18) inset;
}

#scene13-save-btn:disabled {
    opacity: 0.82;
    cursor: default;
}

.scene13-save-hint {
    color: rgba(93, 21, 28, 0.88);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scene13-seal-hotspot {
    position: absolute;
    left: 30%;
    top: 64.5%;
    width: 35%;
    height: 35%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scene13-seal-hotspot.ready {
    pointer-events: auto;
}

#scene13-seal-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transform-origin: 70% 72%;
}

.scene13-seal-image,
.scene13-seal-fallback {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(64, 10, 14, 0.16));
    user-select: none;
    pointer-events: none;
}

.scene13-seal-fallback {
    display: none;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, rgba(160, 34, 38, 0.95) 0%, rgba(126, 24, 28, 0.96) 42%, rgba(88, 12, 18, 0.98) 100%);
}

@media (max-width: 768px) {
    .scene13-anchor {
        left: 68%;
        top: 45%;
        width: min(78vw, 540px);
    }

    .scene13-card {
        width: 118%;
        height: 108%;
    }

    .scene13-text-hotspot {
        left: 50%;
        top: 46%;
        width: 72%;
        height: 76%;
    }

    .scene13-story-text {
        font-size: clamp(13px, 2.9vw, 16px);
        line-height: 1.95;
        letter-spacing: 0.5px;
        padding: 6% 7% 8% 7%;
    }

.scene13-save-hotspot {
        width: 42%;
        top: 84%;
    }

    .scene13-seal-hotspot {
        left: 72%;
        top: 85%;
        width: 28%;
        height: 28%;
    }
}

/* ============================================
   Scene14 星空与梦境微缩卡片
   ============================================ */

.scene14-layer {
    --scene14-fingerprint-offset-x: 0px;
    --scene14-fingerprint-offset-y: 0px;
    --scene14-fingerprint-size: 32px;
    position: fixed;
    inset: 0;
    opacity: 0;
    display: none;
    pointer-events: none;
    z-index: 118;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 22%, rgba(84, 71, 133, 0.22) 0%, rgba(37, 31, 72, 0.08) 24%, rgba(9, 10, 23, 0) 52%),
        radial-gradient(circle at 18% 80%, rgba(71, 59, 120, 0.16) 0%, rgba(16, 16, 34, 0) 44%),
        linear-gradient(180deg, rgba(13, 14, 33, 0.2) 0%, rgba(6, 7, 18, 0.72) 100%);
    contain: layout paint;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.scene14-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 250, 233, 0.08) 0, rgba(255, 250, 233, 0) 22%),
        radial-gradient(circle at 80% 20%, rgba(216, 219, 255, 0.08) 0, rgba(216, 219, 255, 0) 24%),
        radial-gradient(circle at 52% 68%, rgba(208, 180, 255, 0.06) 0, rgba(208, 180, 255, 0) 34%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.scene14-layer.active {
    display: block;
    pointer-events: auto;
}

#stars-container {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    transition: filter 0.8s ease, transform 0.8s ease, opacity 0.6s ease;
    will-change: transform, opacity, filter;
    contain: paint;
    transform: translateZ(0);
}

.scene14-layer.card-open #stars-container {
    filter: blur(7px) saturate(0.88) brightness(0.8);
    transform: scale(1.018);
}

.scene14-bottom-whisper {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%) translateY(30px);
    padding: 0 18px;
    color: rgba(240, 243, 255, 0.88);
    font-family: 'Noto Serif SC', 'STSong', 'Songti SC', serif;
    font-size: clamp(18px, 1.18vw, 24px);
    line-height: 1.6;
    letter-spacing: 0.14em;
    text-align: center;
    white-space: nowrap;
    text-shadow:
        0 0 16px rgba(18, 24, 40, 0.62),
        0 3px 16px rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    will-change: opacity, transform;
}

.dream-star {
    position: absolute;
    display: block;
    cursor: pointer;
    border: none;
    background: transparent;
    transform-origin: center;
    animation: scene14StarPulse 2.8s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.dream-star::before,
.dream-star::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
}

.dream-star::before {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(255, 248, 216, 1) 0%, rgba(255, 224, 157, 0.95) 20%, rgba(255, 224, 157, 0.24) 48%, rgba(255, 224, 157, 0) 72%);
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    filter:
        drop-shadow(0 0 8px rgba(255, 222, 153, 0.9))
        drop-shadow(0 0 18px rgba(255, 221, 147, 0.32));
}

.dream-star::after {
    width: 32%;
    height: 32%;
    background: rgba(255, 251, 241, 0.96);
    box-shadow:
        0 0 12px rgba(255, 255, 245, 0.92),
        0 0 24px rgba(255, 234, 176, 0.42);
}

.dream-star:hover {
    transform: scale(1.14);
    filter: brightness(1.12);
}

.nebula-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(5, 8, 20, 0.18);
    transition: opacity 0.42s ease, visibility 0.42s ease, background 0.42s ease;
    will-change: opacity;
    transform: translateZ(0);
    contain: layout paint;
    isolation: isolate;
    backface-visibility: hidden;
}

.nebula-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(5, 8, 20, 0.32);
}

.nebula-card {
    position: relative;
    width: min(44vw, 560px);
    aspect-ratio: 760 / 980;
    transform: translate3d(0, 24px, 0) scale(0.96);
    opacity: 0;
    transition: transform 0.46s cubic-bezier(0.2, 0.84, 0.24, 1), opacity 0.38s ease;
    filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.44));
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout paint;
}

.nebula-overlay.is-visible .nebula-card {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.nebula-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 42%;
    height: 28%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(133, 255, 212, 0.46) 0%, rgba(100, 163, 255, 0.36) 30%, rgba(176, 117, 255, 0.24) 54%, rgba(176, 117, 255, 0) 74%);
    filter: blur(18px);
    animation: scene14NebulaFlow 5.4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.nebula-card .paper-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.card-content-container {
    position: absolute;
    inset: 0;
    color: rgba(241, 240, 234, 0.94);
    z-index: 2;
}

.star-coord {
    position: absolute;
    top: 2.4%;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(245, 221, 161, 0.88);
    font-family: "Courier New", "Lucida Console", "Consolas", monospace;
    font-size: clamp(10px, 0.68vw, 11px);
    letter-spacing: 0.11em;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(255, 219, 150, 0.14);
}

.emotion-visuals {
    position: absolute;
    left: 50%;
    top: 43.5%;
    width: 84%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.emotion-blob {
    width: clamp(100px, 7.2vw, 132px);
    aspect-ratio: 1;
    border-radius: 44% 56% 52% 48% / 53% 42% 58% 47%;
    filter:
        blur(3px)
        drop-shadow(0 0 18px rgba(147, 203, 255, 0.24))
        drop-shadow(0 0 36px rgba(148, 100, 255, 0.14));
    animation: scene14BlobMorph 8.2s ease-in-out infinite;
    opacity: 0.88;
}

.emotion-blob.is-flashing {
    animation:
        scene14BlobMorph 8.2s ease-in-out infinite,
        scene14BlobFlash 0.52s ease-out 1;
}

.emotion-formula {
    color: rgba(238, 237, 232, 0.88);
    font-family: "STSong", "Songti SC", "SimSun", serif;
    font-size: clamp(12px, 0.82vw, 14px);
    letter-spacing: 0.08em;
    line-height: 1.5;
    font-weight: 400;
}

.hand-drawn-line {
    position: absolute;
    left: 50%;
    top: 60.8%;
    width: 76%;
    transform: translateX(-50%);
    margin: 0;
    border: none;
    border-top: 1px dashed rgba(247, 234, 193, 0.24);
    box-shadow: none;
}

.dream-quote {
    position: absolute;
    left: 50%;
    top: 71.4%;
    width: 74%;
    transform: translateX(-50%);
    color: rgba(255, 246, 220, 0.94);
    font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
    font-size: clamp(17px, 1.28vw, 23px);
    line-height: 1.82;
    letter-spacing: 0.02em;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    text-shadow:
        0 0 10px rgba(255, 233, 178, 0.08),
        0 0 18px rgba(118, 156, 255, 0.06);
}

.card-footer {
    position: absolute;
    left: 50%;
    bottom: 8.6%;
    width: 66%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        "finger count"
        "close close";
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
}

.resonance-action {
    grid-area: count;
    background: transparent;
    border: none;
    padding: 0;
    cursor: default;
    pointer-events: none;
    transition: opacity 0.2s ease;
    transform: none;
}

.resonance-action.is-locked {
    opacity: 0.96;
}

.scene14-fingerprint-hotspot {
    grid-area: finger;
    position: relative;
    left: var(--scene14-fingerprint-offset-x, 0px);
    top: var(--scene14-fingerprint-offset-y, 0px);
    width: var(--scene14-fingerprint-size, 26px);
    height: var(--scene14-fingerprint-size, 26px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    z-index: 3;
}

.scene14-fingerprint-hotspot:hover {
    transform: scale(1.05);
}

.scene14-fingerprint-hotspot.is-locked {
    opacity: 0.98;
}

.scene14-fingerprint-hotspot.is-pulsing {
    animation: scene14ResonancePulse 0.24s ease;
}

.fingerprint-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 244, 226, 0.06) 0%, rgba(255, 244, 226, 0) 72%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.fingerprint-icon-placeholder.is-filled,
.scene14-fingerprint-hotspot.is-locked .fingerprint-icon-placeholder {
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(255, 222, 170, 0.18));
}

.scene14-fingerprint-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.76;
    filter:
        grayscale(1)
        brightness(1.45)
        contrast(0.9)
        drop-shadow(0 0 8px rgba(253, 240, 202, 0.08));
    pointer-events: none;
    user-select: none;
}

.fingerprint-icon-placeholder.is-filled .scene14-fingerprint-image {
    opacity: 0.98;
}

.resonance-count {
    color: rgba(245, 244, 238, 0.9);
    font-family: "STSong", "Songti SC", "SimSun", serif;
    font-size: clamp(11px, 0.76vw, 13px);
    letter-spacing: 0.02em;
    font-weight: 300;
    white-space: nowrap;
}

.close-card-btn {
    grid-area: close;
    color: rgba(232, 228, 214, 0.7);
    font-family: "STSong", "Songti SC", "SimSun", serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    justify-self: center;
    white-space: nowrap;
}

.close-card-btn:hover {
    color: rgba(255, 244, 223, 0.94);
    transform: translateY(1px);
}

@keyframes scene14StarPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.68;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes scene14NebulaFlow {
    0% {
        transform: translate(-50%, -50%) scale(0.94) rotate(0deg);
        filter: blur(18px);
    }
    50% {
        transform: translate(-48%, -52%) scale(1.07) rotate(10deg);
        filter: blur(24px);
    }
    100% {
        transform: translate(-52%, -48%) scale(0.98) rotate(-8deg);
        filter: blur(20px);
    }
}

@keyframes scene14BlobMorph {
    0%, 100% {
        border-radius: 44% 56% 52% 48% / 53% 42% 58% 47%;
        transform: rotate(0deg) scale(0.96);
    }
    50% {
        border-radius: 56% 44% 48% 52% / 41% 59% 45% 55%;
        transform: rotate(12deg) scale(1.06);
    }
}

@keyframes scene14ResonancePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes scene14BlobFlash {
    0% {
        filter:
            blur(3px)
            drop-shadow(0 0 18px rgba(147, 203, 255, 0.24))
            drop-shadow(0 0 36px rgba(148, 100, 255, 0.14));
        opacity: 0.88;
    }
    45% {
        filter:
            blur(2px)
            drop-shadow(0 0 28px rgba(178, 220, 255, 0.58))
            drop-shadow(0 0 54px rgba(149, 120, 255, 0.34));
        opacity: 1;
    }
    100% {
        filter:
            blur(3px)
            drop-shadow(0 0 18px rgba(147, 203, 255, 0.24))
            drop-shadow(0 0 36px rgba(148, 100, 255, 0.14));
        opacity: 0.88;
    }
}

@media (max-width: 768px) {
    .nebula-card {
        width: min(84vw, 520px);
    }

    .card-content-container {
        inset: 0;
    }

    .star-coord {
        top: 2.4%;
        width: 90%;
        font-size: clamp(9px, 2.3vw, 11px);
    }

    .emotion-visuals {
        top: 42.8%;
        width: 86%;
        gap: 10px;
    }

    .dream-quote {
        top: 70.8%;
        width: 78%;
        font-size: clamp(15px, 4vw, 20px);
        line-height: 1.78;
    }

    .card-footer {
        bottom: 8.8%;
        width: 72%;
        column-gap: 8px;
        row-gap: 7px;
    }

    .emotion-formula,
    .resonance-count {
        font-size: clamp(10px, 2.5vw, 12px);
    }

    .scene14-bottom-whisper {
        bottom: 11%;
        width: min(88vw, 560px);
        white-space: normal;
        letter-spacing: 0.1em;
    }

    .scene14-fingerprint-hotspot {
        width: 24px;
        height: 24px;
    }

    .close-card-btn {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
}

/* ============================================
   Scene15 终章档案 HUD
   ============================================ */

.finale-layer {
    position: fixed;
    inset: 0;
    display: none;
    opacity: 0;
    z-index: 135;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

.finale-layer,
.finale-layer * {
    font-family: "STKaiti", "KaiTi", "Kaiti SC", "Segoe Print", cursive;
}

.finale-layer.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mist-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(14, 18, 42, 0.14) 0%, rgba(8, 10, 24, 0.46) 52%, rgba(4, 6, 18, 0.72) 100%),
        linear-gradient(180deg, rgba(6, 8, 20, 0.2) 0%, rgba(5, 6, 18, 0.5) 100%);
    backdrop-filter: blur(10px) saturate(0.88);
    pointer-events: none;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.95s ease, transform 1.15s ease;
}

.finale-layer.active .mist-overlay {
    opacity: 1;
    transform: scale(1);
}

.finale-sky-meta {
    position: absolute;
    top: 2.1%;
    left: 50%;
    transform: translateX(-50%);
    width: min(780px, 64vw);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 18px;
    color: rgba(230, 239, 247, 0.92);
    z-index: 3;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    transition: opacity 0.82s ease 0.28s, transform 0.96s ease 0.28s;
}

.finale-layer.active .finale-sky-meta {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.meta-signal {
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: rgba(213, 221, 236, 0.72);
}

.finale-board {
    position: absolute;
    top: 11%;
    width: min(29vw, 470px);
    height: 74%;
    padding: 28px 30px 26px;
    background-color: #E7D19B;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(255, 244, 206, 0.56) 0%, rgba(255, 244, 206, 0) 24%),
        radial-gradient(circle at 82% 18%, rgba(176, 129, 59, 0.18) 0%, rgba(176, 129, 59, 0) 30%),
        radial-gradient(circle at 24% 78%, rgba(142, 104, 46, 0.16) 0%, rgba(142, 104, 46, 0) 28%),
        radial-gradient(circle at 76% 82%, rgba(104, 74, 30, 0.12) 0%, rgba(104, 74, 30, 0) 24%),
        linear-gradient(rgba(146, 116, 65, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(146, 116, 65, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 16% 18%, rgba(92, 66, 22, 0.06) 0 1px, transparent 1.3px),
        radial-gradient(circle at 74% 42%, rgba(92, 66, 22, 0.045) 0 1px, transparent 1.2px),
        linear-gradient(180deg, rgba(245, 226, 174, 0.88) 0%, rgba(228, 202, 138, 0.96) 100%);
    background-size: 20px 20px;
    border: 2px solid #2c3e50;
    box-shadow:
        10px 10px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 42px rgba(88, 57, 12, 0.14),
        inset 0 0 0 1px rgba(255, 241, 201, 0.22);
    border-radius: 2px 15px 5px 20px / 15px 5px 20px 2px;
    color: #2f4055;
    z-index: 2;
    opacity: 0;
    transform: translateY(22px) rotate(0deg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.finale-board::before {
    content: "画面15 黄板";
    position: absolute;
    left: 10px;
    top: -12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(83, 207, 255, 0.96);
    color: rgba(15, 43, 58, 0.96);
    font-size: 11px;
    font-family: "LXGW WenKai Mono TC", serif;
    z-index: 3;
}

.finale-board::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 215, 122, 0.26) 0%, rgba(255, 215, 122, 0) 24%),
        radial-gradient(circle at 76% 28%, rgba(255, 206, 96, 0.22) 0%, rgba(255, 206, 96, 0) 26%),
        radial-gradient(circle at 38% 84%, rgba(255, 226, 158, 0.18) 0%, rgba(255, 226, 158, 0) 22%);
    opacity: 0;
    pointer-events: none;
}

.finale-board.left-wing {
    left: 5.5%;
    --finale-rot: -1.2deg;
    transform: translateY(22px) rotate(-1.2deg);
}

.finale-board.right-wing {
    right: 5.5%;
    --finale-rot: 1.1deg;
    transform: translateY(22px) rotate(1.1deg);
}

.finale-layer.active .finale-board {
    opacity: 1;
}

.finale-layer.is-dissolving .mist-overlay,
.finale-layer.is-dissolving .finale-sky-meta,
.finale-layer.is-dissolving .gutter-whisper,
.finale-layer.is-dissolving .finale-action-bar {
    opacity: 0;
}

.finale-layer.active .finale-board.is-dissolving {
    animation: finaleBoardDissolve 1.08s ease-in forwards;
}

.finale-layer.active .finale-board.is-dissolving::after {
    animation: finaleBoardGlow 0.96s ease-out forwards;
}

.finale-layer.active .left-wing {
    animation: finaleBoardInLeft 2.15s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}

.finale-layer.active .right-wing {
    animation: finaleBoardInRight 2.15s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}

.board-tape {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 88px;
    height: 20px;
    background: rgba(195, 171, 122, 0.88);
    transform: rotate(-5deg);
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}

.board-title {
    margin-bottom: 18px;
    padding-left: 2px;
    color: #2f4055;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.archive-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.archive-metrics p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.archive-metrics span {
    color: rgba(61, 75, 94, 0.82);
}

.archive-metrics strong {
    color: #31465d;
    font-weight: 700;
    text-align: right;
}

.archive-divider {
    width: 100%;
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, rgba(120, 84, 26, 0) 0%, rgba(120, 84, 26, 0.34) 12%, rgba(120, 84, 26, 0.34) 88%, rgba(120, 84, 26, 0) 100%);
}

.panel-caption {
    margin-bottom: 10px;
    font-size: 15px;
    color: #496076;
    letter-spacing: 0.12em;
}

.finale-radar-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.12 / 1;
    margin: 6px auto 4px;
    flex: 1 1 auto;
    min-height: 0;
}

.finale-radar {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.radar-grid {
    fill: none;
    stroke: rgba(108, 113, 121, 0.3);
    stroke-width: 1.3;
    stroke-dasharray: 4 8;
}

.radar-data {
    fill: none;
    stroke: #2c3e50;
    stroke-width: 4.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

.finale-emotion-labels {
    font-family: "STSong", "Songti SC", serif;
    font-size: 16px;
    color: #34485f;
}

.emotion-labels .label-1,
.emotion-labels .label-2,
.emotion-labels .label-3,
.emotion-labels .label-4,
.emotion-labels .label-5 {
    position: absolute;
}

.emotion-labels .label-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.emotion-labels .label-2 {
    right: 2%;
    top: 46%;
}

.emotion-labels .label-3 {
    right: 16%;
    bottom: 2%;
}

.emotion-labels .label-4 {
    left: 16%;
    bottom: 2%;
}

.emotion-labels .label-5 {
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: block;
    padding: 0 4px;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(245, 236, 206, 0.38);
    border-radius: 8px;
    font-size: 18px;
    text-shadow: 0 1px 0 rgba(250, 243, 221, 0.82);
}

.wave-panel {
    margin-top: 2px;
}

.emotion-wave {
    width: 100%;
    height: 116px;
    display: block;
}

.wave-grid {
    fill: none;
    stroke: rgba(108, 113, 121, 0.24);
    stroke-width: 1.2;
    stroke-dasharray: 4 8;
}

.wave-line {
    fill: none;
    stroke: #2c3e50;
    stroke-width: 4.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

.wave-summary {
    margin: 6px 2px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #334960;
}

.quick-jump-panel {
    display: none !important;
}

.finale-polaroid {
    width: 84%;
    margin: 2px auto 0;
    padding: 14px 14px 18px;
    background: #efe1bb;
    border: 2px solid rgba(44, 62, 80, 0.9);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.16);
    transform: rotate(4deg);
    flex-shrink: 0;
}

.dream-img-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    background:
        radial-gradient(circle at 50% 35%, rgba(34, 43, 65, 0.32) 0%, rgba(17, 20, 32, 0.88) 72%),
        linear-gradient(180deg, rgba(26, 30, 42, 0.7), rgba(14, 16, 24, 0.96));
    box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.dream-img-asset {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.012);
    transition: opacity 0.24s ease, transform 0.24s ease;
    backface-visibility: hidden;
}

.dream-img-placeholder.is-ready .dream-img-asset {
    opacity: 1;
    transform: scale(1);
}

.polaroid-caption {
    margin-top: 10px;
    color: #4a5d74;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.fiction-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 89, 40, 0.72) rgba(255, 243, 214, 0.2);
}

.fiction-container::-webkit-scrollbar {
    width: 8px;
}

.fiction-container::-webkit-scrollbar-track {
    background: rgba(255, 243, 214, 0.14);
    border-radius: 999px;
}

.fiction-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(151, 115, 63, 0.84), rgba(110, 76, 33, 0.72));
    border-radius: 999px;
}

.copy-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-block.emphasis .fiction-body {
    font-size: 18px;
    line-height: 1.95;
    color: #26384e;
    font-weight: 700;
}

.fiction-title {
    margin: 0;
    font-size: 16px;
    color: #51647a;
    letter-spacing: 0.12em;
}

.fiction-body {
    margin: 0;
    font-size: 17px;
    line-height: 1.88;
    color: #33455c;
}

.final-prescription {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px dashed rgba(82, 96, 116, 0.28);
    font-size: 18px;
    line-height: 1.82;
    color: #4f6379;
    text-align: center;
}

.finale-stamp {
    position: absolute;
    right: 8px;
    bottom: 6px;
    width: 94px;
    transform: rotate(-15deg);
    opacity: 0.92;
    filter: drop-shadow(0 8px 14px rgba(80, 20, 24, 0.12));
    mix-blend-mode: multiply;
}

.finale-center-gutter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.gutter-whisper {
    position: absolute;
    left: 50%;
    bottom: 17%;
    transform: translateX(-50%);
    color: rgba(232, 238, 246, 0.74);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 22px;
    letter-spacing: 0.12em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.82s ease 0.72s, transform 0.96s ease 0.72s;
}

.finale-layer.active .gutter-whisper {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.finale-action-bar {
    position: absolute;
    left: 50%;
    bottom: 4.8%;
    transform: translateX(-50%) translateY(16px);
    z-index: 4;
    opacity: 0;
    transition: opacity 0.82s ease 0.92s, transform 0.96s ease 0.92s;
}

.finale-layer.active .finale-action-bar {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: rgba(247, 247, 245, 0.96);
    font-size: 24px;
    letter-spacing: 0.06em;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease, opacity 0.2s ease;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.22),
        0 0 24px rgba(172, 202, 255, 0.18),
        0 0 40px rgba(172, 202, 255, 0.08);
}

.download-btn:hover {
    transform: translateY(-2px);
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.26),
        0 0 30px rgba(172, 202, 255, 0.22),
        0 0 48px rgba(172, 202, 255, 0.12);
}

.btn-icon {
    font-size: 22px;
    line-height: 1;
}

.login-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 20, 0.34);
    backdrop-filter: blur(6px);
    z-index: 220;
}

.login-modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: min(460px, 88vw);
    padding: 28px 30px 24px;
    border-radius: 4px 18px 7px 22px / 16px 6px 20px 4px;
    background-color: #E7D19B;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(255, 244, 206, 0.52) 0%, rgba(255, 244, 206, 0) 24%),
        radial-gradient(circle at 82% 18%, rgba(176, 129, 59, 0.15) 0%, rgba(176, 129, 59, 0) 30%),
        radial-gradient(circle at 24% 78%, rgba(142, 104, 46, 0.13) 0%, rgba(142, 104, 46, 0) 28%),
        linear-gradient(rgba(146, 116, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(146, 116, 65, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(245, 226, 174, 0.88) 0%, rgba(228, 202, 138, 0.96) 100%);
    background-size: 20px 20px;
    border: 2px solid #2c3e50;
    color: #2f4055;
    box-shadow:
        10px 10px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 34px rgba(88, 57, 12, 0.12);
    text-align: center;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 18px;
    width: 88px;
    height: 20px;
    background: rgba(195, 171, 122, 0.88);
    transform: rotate(-5deg);
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}

.modal-content h3 {
    margin: 0 0 12px;
    color: #2f4055;
    font-size: 28px;
}

.modal-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.login-placeholder {
    margin: 20px 0;
    padding: 26px 16px;
    border-radius: 4px 14px 5px 16px / 12px 5px 15px 4px;
    border: 2px dashed rgba(112, 84, 26, 0.34);
    background: rgba(248, 239, 213, 0.64);
    font-family: "Courier New", monospace;
    font-size: 15px;
    color: #5a4d39;
}

.close-modal-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid #2c3e50;
    background: #e9d6a8;
    color: #2f4055;
    font-size: 16px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.main-auth-card {
    display: grid;
    gap: 14px;
    text-align: left;
}

.main-auth-kicker {
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(108, 78, 31, 0.68);
}

.main-auth-copy {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.main-auth-copy-sub {
    font-size: 14px;
    color: rgba(85, 66, 34, 0.88);
}

.main-auth-modebar {
    display: flex;
    gap: 10px;
}

.main-auth-mode {
    min-width: 84px;
    padding: 9px 14px;
    border: 1px solid rgba(110, 79, 28, 0.22);
    border-radius: 999px;
    background: rgba(248, 239, 213, 0.44);
    color: #6a4a1f;
    font-size: 14px;
    cursor: pointer;
}

.main-auth-mode.is-active {
    background: rgba(231, 209, 155, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.24), 4px 5px 0 rgba(0, 0, 0, 0.08);
}

.main-auth-error {
    min-height: 20px;
    color: #b14f36;
    font-size: 13px;
    line-height: 1.6;
}

.main-auth-step.hidden {
    display: none;
}

.main-auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: rgba(70, 52, 26, 0.9);
}

.main-auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #2c3e50;
    border-radius: 4px 14px 5px 16px / 12px 5px 15px 4px;
    background: rgba(255, 249, 234, 0.72);
    color: #2f4055;
    font-size: 16px;
    box-sizing: border-box;
}

.main-auth-btn {
    margin-top: 12px;
    padding: 10px 18px;
    border: 2px solid #2c3e50;
    border-radius: 999px;
    background: #e9d6a8;
    color: #2f4055;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
}

.main-auth-btn-secondary {
    background: rgba(248, 239, 213, 0.72);
}

.main-auth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.main-auth-link {
    justify-self: start;
    padding: 0;
    border: none;
    background: none;
    color: rgba(82, 60, 24, 0.86);
    font-size: 14px;
    cursor: pointer;
}

.main-auth-switch {
    margin-top: -4px;
}

.main-auth-hint {
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(74, 56, 29, 0.78);
}

.scene15-archive-gate {
    position: fixed;
    left: 50%;
    bottom: 8.6%;
    transform: translateX(-50%);
    z-index: 160;
    pointer-events: auto;
}

.scene15-archive-gate.hidden {
    display: none;
}

.scene15-enter-archive-btn {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(44, 32, 18, 0.98);
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.08em;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.scene15-enter-archive-btn:hover {
    transform: translateY(-1px);
}

.finale-dust-particle {
    position: fixed;
    display: block;
    border-radius: 999px;
    pointer-events: none;
    z-index: 140;
    background:
        radial-gradient(circle, rgba(255, 226, 148, 0.96) 0%, rgba(240, 186, 68, 0.88) 44%, rgba(240, 186, 68, 0) 76%);
    filter: drop-shadow(0 0 8px rgba(255, 214, 112, 0.38));
    animation: finaleDustRise 0.96s ease-out forwards;
}

@keyframes finaleBoardInLeft {
    from {
        opacity: 0;
        transform: translate3d(-180px, 64px, 0) rotate(-7.8deg) scale(0.86);
    }
    42% {
        opacity: 1;
        transform: translate3d(-38px, 10px, 0) rotate(-2.2deg) scale(0.965);
    }
    72% {
        opacity: 1;
        transform: translate3d(-8px, -3px, 0) rotate(-0.4deg) scale(1.012);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(-1.2deg) scale(1);
    }
}

@keyframes finaleBoardInRight {
    from {
        opacity: 0;
        transform: translate3d(180px, 64px, 0) rotate(7.4deg) scale(0.86);
    }
    42% {
        opacity: 1;
        transform: translate3d(38px, 10px, 0) rotate(2deg) scale(0.965);
    }
    72% {
        opacity: 1;
        transform: translate3d(8px, -3px, 0) rotate(0.4deg) scale(1.012);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(1.1deg) scale(1);
    }
}

@keyframes finaleBoardGlow {
    0% {
        opacity: 0;
    }
    26% {
        opacity: 0.84;
    }
    100% {
        opacity: 0;
    }
}

@keyframes finaleBoardDissolve {
    0% {
        opacity: 1;
        filter: brightness(1);
        transform: translate3d(0, 0, 0) rotate(var(--finale-rot, 0deg)) scale(1);
    }
    28% {
        opacity: 0.98;
        filter: brightness(1.1);
    }
    62% {
        opacity: 0.58;
        filter: brightness(1.18) blur(0.8px);
    }
    100% {
        opacity: 0;
        filter: brightness(1.24) blur(1.8px);
        transform: translate3d(0, -42px, 0) rotate(var(--finale-rot, 0deg)) scale(0.968);
    }
}

@keyframes finaleDustRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.7);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--dust-dx, 0px), var(--dust-dy, -56px), 0) scale(1.15);
    }
}

@media (max-width: 768px) {
    .finale-sky-meta {
        top: 1.6%;
        width: 92vw;
        gap: 10px;
        flex-direction: column;
    }

    .meta-signal {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .finale-board {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: calc(100vw - 28px);
        height: auto;
        margin: 86px auto 0;
        padding: 22px 20px;
        transform: none !important;
    }

    .finale-board.right-wing {
        margin-top: 16px;
    }

    .finale-layer.active .left-wing,
    .finale-layer.active .right-wing {
        animation: none;
    }

    .finale-center-gutter {
        display: none;
    }

    .finale-action-bar {
        position: fixed;
        bottom: 18px;
        width: calc(100vw - 30px);
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        padding: 14px 18px;
    }

    .finale-stamp {
        width: 78px;
    }
}
.end-transition-layer {
    position: fixed;
    inset: 0;
    display: none;
    opacity: 0;
    z-index: 150;
    pointer-events: none;
    background: #050814;
    transition: opacity 0.4s ease;
}
.end-transition-layer.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.end-transition-poster,
.end-transition-video,
.end-desk-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.end-transition-poster,
.end-desk-image {
    pointer-events: none;
}
.end-transition-poster {
    opacity: 1;
    transition: opacity 0.22s ease;
}
.end-transition-video {
    opacity: 0;
    background: transparent;
    transition: opacity 0.18s linear;
}
.end-desk-image {
    opacity: 0;
    transition: opacity 0.28s ease;
}
.end-transition-layer.is-playing .end-transition-video,
.end-transition-layer.is-finished .end-transition-video {
    opacity: 1;
}
.end-transition-layer.is-playing .end-transition-poster {
    opacity: 0;
}
.end-transition-layer.is-finished .end-transition-poster {
    opacity: 0;
}
.end-transition-layer.is-finished .end-desk-image {
    opacity: 1;
}
.end-transition-layer.is-finished .open-dream-hub-btn {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.final-content {
    display: none !important;
}

.open-dream-hub-btn {
    position: absolute;
    left: 55%;
    top: 28.6%;
    transform: translate(-50%, -8px);
    padding: 0;
    border: none;
    background: none;
    color: rgba(0, 0, 0, 0);
    font-family: 'LXGW WenKai Mono TC', "STKaiti", "KaiTi", serif;
    font-size: clamp(24px, 1.55vw, 34px);
    letter-spacing: 0.18em;
    text-shadow:
        0 1px 0 rgba(92, 58, 16, 0.42),
        0 0 18px rgba(255, 208, 86, 0.4),
        0 0 4px rgba(255, 243, 202, 0.3);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    z-index: 6;
    transition: opacity 0.26s ease, transform 0.26s ease, color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.open-dream-hub-btn:hover {
    color: rgba(255, 239, 182, 1);
    transform: translate(-50%, -10px);
}

.dream-hub-board {
    --hub-board-x: 38.3%;
    --hub-board-y: 7.4%;
    --hub-board-width: 42.8%;
    --hub-board-height: 30.8%;
    --hub-card-min-height: 118px;
    --hub-three-rows-height: calc(var(--hub-card-min-height) * 3 + 24px);
    position: absolute;
    z-index: 3;
    left: var(--hub-board-x);
    top: var(--hub-board-y);
    width: var(--hub-board-width);
    height: var(--hub-board-height);
    opacity: 0;
    pointer-events: none;
    color: rgba(31, 18, 8, 0.98);
    font-family: 'LXGW WenKai Mono TC', "STKaiti", "KaiTi", "Kaiti SC", serif;
    text-shadow:
        0 1px 0 rgba(247, 233, 202, 0.52),
        0 -1px 0 rgba(69, 42, 19, 0.18);
    transition: opacity 0.42s ease;
}

.dream-hub-board.active {
    opacity: 1;
    pointer-events: auto;
}

.dream-hub-board::before {
    display: none;
}

.dream-hub-board::after {
    display: none;
}

.dream-hub-bg-layer {
    --hub-bg-x: 30.3%;
    --hub-bg-y: -110.6%;
    --hub-bg-width: 54.8%;
    --hub-bg-height: 280.8%;
    position: absolute;
    left: var(--hub-bg-x);
    top: var(--hub-bg-y);
    width: var(--hub-bg-width);
    height: var(--hub-bg-height);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.42s ease;
}

.dream-hub-bg-layer.active {
    opacity: 1;
}

.dream-hub-bg-layer::before {
    display: none;
}

.dream-hub-bg-layer::after {
    display: none;
}

.dream-hub-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 0.96;
}

.dream-hub-board button,
.dream-hub-board input,
.dream-hub-board textarea,
.dream-hub-board select {
    font-family: 'LXGW WenKai Mono TC', "STKaiti", "KaiTi", "Kaiti SC", serif;
}

.dream-hub-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 78%, rgba(255, 244, 208, 0.18), transparent 30%),
        radial-gradient(circle at 76% 18%, rgba(255, 236, 196, 0.12), transparent 28%);
    pointer-events: none;
    opacity: 0.9;
}

.dream-hub-grid {
    position: absolute;
    z-index: 2;
    inset: 18px 16px 16px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
}

.dream-hub-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 14px;
    border-right: 1px solid rgba(74, 46, 22, 0.22);
}

.dream-hub-sidebar::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -1px;
    bottom: 6px;
    border-right: 1px dashed rgba(88, 58, 30, 0.18);
}

.dream-hub-sidebar-title {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0.08em;
    color: rgba(54, 32, 12, 0.98);
}

.dream-hub-nav {
    position: relative;
    padding: 8px 10px 8px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(45, 27, 11, 0.98);
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.dream-hub-nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(87, 53, 28, 0.38);
    border-radius: 999px;
    transform: translateY(-50%);
}

.dream-hub-nav:hover {
    color: rgba(35, 21, 10, 0.98);
    transform: translateX(2px);
}

.dream-hub-nav.is-active {
    color: rgba(30, 17, 8, 1);
    font-weight: 700;
}

.dream-hub-home-nav {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed rgba(88, 58, 30, 0.18);
}

.dream-hub-nav.is-active::before {
    background: rgba(121, 52, 34, 0.9);
    border-color: rgba(121, 52, 34, 0.9);
    box-shadow: 0 0 0 3px rgba(121, 52, 34, 0.12);
}

.dream-hub-core {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.dream-hub-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(86, 54, 28, 0.24);
}

.dream-hub-kicker {
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(78, 52, 28, 0.88);
}

.dream-hub-topbar h2 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.08;
    color: rgba(33, 20, 9, 0.98);
    text-shadow:
        0 1px 0 rgba(248, 234, 201, 0.58),
        0 -1px 0 rgba(73, 44, 19, 0.18);
}

.dream-hub-topbar-right {
    display: flex;
    gap: 10px;
}

.dream-hub-stat {
    min-width: 92px;
    padding-left: 10px;
    border-left: 1px solid rgba(87, 53, 28, 0.24);
}

.dream-hub-stat .label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(69, 47, 26, 0.86);
}

.dream-hub-stat strong {
    font-size: 22px;
    color: rgba(23, 14, 7, 0.98);
}

.dream-hub-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.78fr);
    gap: 16px;
    min-height: 0;
}

.dream-hub-panels.is-video-only {
    grid-template-columns: minmax(0, 1fr);
}

.dream-hub-panels.is-video-only .dream-hub-drawer {
    display: none;
}

.dream-hub-main,
.dream-hub-drawer {
    min-height: 0;
    position: relative;
}

.dream-hub-main {
    padding: 8px 4px 0 2px;
    overflow: hidden;
}

.dream-hub-drawer {
    padding: 8px 0 0 18px;
    border-left: 1px solid rgba(74, 46, 22, 0.22);
    overflow: auto;
    min-height: 0;
    padding-right: 6px;
}

.dream-hub-drawer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    border-left: 1px dashed rgba(88, 58, 30, 0.18);
}

.hub-section-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.hub-overview-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
    gap: 14px;
    align-items: start;
    flex: 0 0 auto;
}

.hub-overview-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.hub-overview-keywords {
    width: 100%;
    text-align: right;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(67, 44, 23, 0.92);
    overflow-wrap: anywhere;
}

.hub-subtitle {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(67, 44, 23, 0.92);
}

.hub-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--hub-card-min-height), auto);
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--hub-three-rows-height);
    overflow: auto;
    padding-right: 8px;
    align-content: start;
}

.hub-reaction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-result-rank {
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.1;
    color: rgba(40, 23, 9, 0.98);
    text-shadow:
        0 1px 0 rgba(247, 233, 202, 0.62),
        0 -1px 0 rgba(74, 45, 19, 0.18);
}

.hub-case-card,
.hub-result-card,
.hub-leader-card,
.hub-archive-entry {
    position: relative;
    padding: 12px 12px 11px;
    min-height: var(--hub-card-min-height);
    border: 1px solid rgba(77, 47, 24, 0.24);
    border-radius: 6px 14px 7px 15px / 13px 7px 14px 8px;
    background: rgba(255, 247, 226, 0.04);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.hub-case-card:hover,
.hub-result-card:hover,
.hub-leader-card:hover,
.hub-archive-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 61, 31, 0.4);
    background: rgba(255, 247, 226, 0.08);
}

.hub-case-card.is-active,
.hub-result-card.is-active,
.hub-leader-card.is-active,
.hub-archive-entry.is-active {
    border-color: rgba(124, 51, 34, 0.65);
    box-shadow: inset 0 0 0 1px rgba(124, 51, 34, 0.2);
    background: rgba(124, 51, 34, 0.06);
}

.hub-case-code,
.hub-result-code,
.hub-leader-rank,
.hub-archive-code {
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(74, 46, 22, 0.68);
}

.hub-case-title,
.hub-result-title,
.hub-leader-title,
.hub-archive-title {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.28;
    color: rgba(29, 18, 8, 0.98);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hub-case-card .hub-subtitle,
.hub-result-card .hub-subtitle,
.hub-leader-card .hub-subtitle,
.hub-plaza-card .hub-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hub-case-meta,
.hub-result-meta,
.hub-leader-meta,
.hub-archive-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hub-tag,
.hub-chip,
.hub-note-badge,
.hub-rank-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid rgba(86, 56, 30, 0.24);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(58, 35, 17, 0.94);
    background: rgba(255, 252, 244, 0.28);
}

.hub-overview-footer,
.hub-search-tags,
.hub-leader-categories,
.hub-whisper-presets,
.dream-hub-whisper-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-mini-timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(86, 54, 28, 0.24);
    flex: 0 0 auto;
}

.hub-overview-stats {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hub-mini-timeline button,
.hub-chip {
    padding: 6px 8px;
    border: 1px solid rgba(79, 49, 25, 0.22);
    background: transparent;
    border-radius: 999px;
    font-size: 12px;
    color: rgba(63, 41, 20, 0.78);
    cursor: pointer;
}

.hub-mini-timeline button.is-active,
.hub-chip.is-active,
.hub-rank-category.is-active {
    border-color: rgba(123, 54, 36, 0.52);
    color: rgba(41, 23, 10, 0.96);
    background: rgba(123, 54, 36, 0.08);
}

.hub-search-shell {
    display: grid;
    gap: 12px;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.hub-calendar-controls,
.hub-compare-picker {
    display: grid;
    gap: 8px;
    align-content: start;
}

.hub-calendar-controls {
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, auto));
    grid-auto-columns: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 8px 4px 0;
    cursor: grab;
}

.hub-compare-picker {
    grid-auto-flow: column;
    grid-template-rows: minmax(var(--hub-card-min-height), auto);
    grid-auto-columns: minmax(260px, calc((100% - 16px) / 3));
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 8px 6px 0;
    cursor: grab;
}

.hub-calendar-controls.is-dragging,
.hub-compare-picker.is-dragging {
    cursor: grabbing;
}

.hub-calendar-controls .hub-chip,
.hub-compare-picker .hub-result-card {
    user-select: none;
}

.hub-calendar-grid {
    flex: 0 0 auto;
    max-height: calc(var(--hub-card-min-height) * 2 + 12px);
}

.hub-video-section {
    max-width: min(820px, 100%);
}

.hub-video-entry-card {
    cursor: default;
}

.hub-video-entry-card:hover {
    transform: none;
}

.hub-search-input {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border: 1px dashed rgba(80, 49, 24, 0.3);
    border-radius: 14px;
    font-size: 14px;
    color: rgba(63, 42, 23, 0.82);
}

.hub-search-results,
.hub-leader-list,
.hub-archive-list {
    display: grid;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--hub-three-rows-height);
    overflow: auto;
    padding-right: 8px;
    align-content: start;
}

.hub-plaza-feed {
    grid-template-columns: 1fr;
}

.hub-plaza-card {
    text-align: left;
}

.hub-timeline-board {
    display: grid;
    gap: 18px;
}

.hub-timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 0 12px;
}

.hub-timeline-track::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 28px;
    border-top: 1.5px dashed rgba(87, 55, 30, 0.32);
}

.hub-timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(62, 40, 20, 0.78);
}

.hub-timeline-node::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(90, 58, 31, 0.42);
    background: rgba(255, 249, 236, 0.18);
    z-index: 1;
}

.hub-timeline-node.is-active::before {
    background: rgba(122, 53, 35, 0.94);
    border-color: rgba(122, 53, 35, 0.94);
    box-shadow: 0 0 0 4px rgba(122, 53, 35, 0.12);
}

.hub-timeline-node span {
    font-size: 13px;
}

.hub-timeline-copy {
    padding: 12px 14px;
    border: 1px dashed rgba(82, 50, 24, 0.26);
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(39, 24, 12, 0.96);
}

.hub-mood-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
}

.hub-radar-shell {
    position: relative;
    aspect-ratio: 1 / 1;
}

.hub-radar-shell svg,
.hub-wave-shell svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hub-radar-grid {
    fill: none;
    stroke: rgba(86, 54, 29, 0.26);
    stroke-width: 1.2;
    stroke-dasharray: 4 8;
}

.hub-radar-data {
    fill: rgba(121, 63, 49, 0.06);
    stroke: rgba(55, 37, 20, 0.92);
    stroke-width: 3;
    stroke-linejoin: round;
}

.hub-radar-label {
    position: absolute;
    font-size: 12px;
    color: rgba(57, 35, 17, 0.92);
}

.hub-radar-label.top { top: -2px; left: 50%; transform: translateX(-50%); }
.hub-radar-label.right { top: 44%; right: -2px; }
.hub-radar-label.bottom-right { bottom: 6%; right: 12%; }
.hub-radar-label.bottom-left { bottom: 6%; left: 12%; }
.hub-radar-label.left { top: 44%; left: -2px; }

.hub-wave-shell {
    aspect-ratio: 1 / 0.55;
}

.hub-wave-grid {
    fill: none;
    stroke: rgba(86, 54, 29, 0.18);
    stroke-width: 1.2;
    stroke-dasharray: 5 10;
}

.hub-wave-line {
    fill: none;
    stroke: rgba(54, 36, 21, 0.96);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hub-mood-summary {
    display: grid;
    gap: 10px;
}

.hub-mood-bar {
    display: grid;
    gap: 6px;
}

.hub-mood-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(88, 60, 32, 0.12);
    overflow: hidden;
}

.hub-mood-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(112, 55, 34, 0.92), rgba(186, 132, 82, 0.86));
}

.hub-note-wall {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 8px;
}

.hub-overview-footer {
    flex: 0 0 auto;
}

.hub-overview-footer .hub-subtitle {
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dream-hub-drawer,
.hub-case-grid,
.hub-calendar-controls,
.hub-compare-picker,
.hub-search-results,
.hub-leader-list,
.hub-archive-list,
.hub-note-wall {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 71, 41, 0.78) rgba(241, 231, 201, 0.18);
}

.dream-hub-drawer::-webkit-scrollbar,
.hub-case-grid::-webkit-scrollbar,
.hub-calendar-controls::-webkit-scrollbar,
.hub-compare-picker::-webkit-scrollbar,
.hub-search-results::-webkit-scrollbar,
.hub-leader-list::-webkit-scrollbar,
.hub-archive-list::-webkit-scrollbar,
.hub-note-wall::-webkit-scrollbar {
    width: 9px;
}

.dream-hub-drawer::-webkit-scrollbar-track,
.hub-case-grid::-webkit-scrollbar-track,
.hub-calendar-controls::-webkit-scrollbar-track,
.hub-compare-picker::-webkit-scrollbar-track,
.hub-search-results::-webkit-scrollbar-track,
.hub-leader-list::-webkit-scrollbar-track,
.hub-archive-list::-webkit-scrollbar-track,
.hub-note-wall::-webkit-scrollbar-track {
    background: rgba(238, 228, 197, 0.16);
    border-radius: 999px;
}

.dream-hub-drawer::-webkit-scrollbar-thumb,
.hub-case-grid::-webkit-scrollbar-thumb,
.hub-calendar-controls::-webkit-scrollbar-thumb,
.hub-compare-picker::-webkit-scrollbar-thumb,
.hub-search-results::-webkit-scrollbar-thumb,
.hub-leader-list::-webkit-scrollbar-thumb,
.hub-archive-list::-webkit-scrollbar-thumb,
.hub-note-wall::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(241, 232, 205, 0.22);
    background:
        linear-gradient(180deg, rgba(121, 85, 51, 0.92), rgba(83, 55, 30, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(244, 232, 200, 0.28),
        inset 0 -1px 0 rgba(43, 28, 14, 0.22);
}

.hub-note-card {
    position: relative;
    min-height: 128px;
    padding: 12px 12px 16px;
    border-radius: 4px 13px 6px 16px / 12px 6px 15px 7px;
    background: rgba(254, 245, 222, 0.9);
    border: 2px solid rgba(44, 62, 80, 0.68);
    box-shadow: 8px 8px 0 rgba(47, 31, 16, 0.16);
    transform: rotate(var(--note-rot, 0deg));
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hub-note-card::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(140, 51, 31, 0.92);
    transform: translateX(-50%);
}

.hub-note-card:hover {
    transform: translateY(-2px) rotate(var(--note-rot, 0deg));
    box-shadow: 0 12px 22px rgba(52, 34, 18, 0.12);
}

.hub-note-card.is-active {
    border-color: rgba(127, 57, 37, 0.55);
    box-shadow: 0 14px 24px rgba(52, 34, 18, 0.16);
}

.hub-note-id {
    margin-top: 8px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(85, 56, 30, 0.72);
}

.hub-note-text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.72;
    color: rgba(34, 21, 11, 0.98);
}

.hub-note-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.hub-whisper-trigger {
    align-self: flex-start;
    padding: 8px 12px;
    border: 1px dashed rgba(110, 57, 38, 0.34);
    background: rgba(255, 246, 230, 0.08);
    border-radius: 999px;
    color: rgba(64, 38, 19, 0.88);
    cursor: pointer;
}

.hub-plaza-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hub-resonance-trigger.is-locked,
.hub-resonance-trigger:disabled {
    border-style: solid;
    background: rgba(170, 145, 108, 0.14);
    color: rgba(88, 64, 40, 0.76);
    cursor: default;
    opacity: 1;
}

.hub-back-link {
    margin-bottom: 10px;
}

.hub-rank-category {
    padding: 6px 12px;
    border: 1px solid rgba(81, 50, 25, 0.22);
    background: transparent;
    border-radius: 999px;
    color: rgba(65, 40, 21, 0.76);
    cursor: pointer;
}

.hub-leader-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.hub-leader-rank {
    font-size: 18px;
    color: rgba(125, 58, 36, 0.88);
}

.hub-leader-score {
    margin-top: 9px;
    display: grid;
    gap: 6px;
}

.hub-leader-score-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(86, 55, 31, 0.12);
    overflow: hidden;
}

.hub-leader-score-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(126, 57, 36, 0.96), rgba(191, 137, 83, 0.88));
}

.hub-drawer-block {
    display: grid;
    gap: 10px;
}

.hub-drawer-kicker {
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(75, 49, 25, 0.84);
}

.hub-drawer-title {
    font-size: 24px;
    line-height: 1.18;
    color: rgba(26, 16, 8, 0.98);
}

.hub-drawer-copy {
    font-size: 15px;
    line-height: 1.78;
    color: rgba(49, 31, 17, 0.96);
}

.hub-drawer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hub-drawer-action {
    align-self: flex-start;
    margin-top: 2px;
    padding: 8px 12px;
    border: 1px solid rgba(87, 53, 28, 0.26);
    border-radius: 999px;
    background: rgba(255, 252, 244, 0.1);
    color: rgba(44, 26, 13, 0.92);
    cursor: pointer;
}

.dream-hub-dossier,
.dream-hub-whisper {
    position: absolute;
    inset: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 232, 197, 0.06);
    backdrop-filter: blur(1.4px);
    z-index: 4;
}

.dream-hub-dossier.hidden,
.dream-hub-whisper.hidden {
    display: none;
}

.dream-hub-dossier-content,
.dream-hub-whisper-card {
    position: relative;
    width: min(72%, 760px);
    max-height: 84%;
    overflow: auto;
    padding: 28px 24px 24px;
    border: 2px solid rgba(44, 62, 80, 0.78);
    border-radius: 2px 15px 5px 20px / 15px 5px 20px 2px;
    background:
        linear-gradient(180deg, rgba(248, 242, 225, 0.96), rgba(241, 233, 209, 0.94)),
        radial-gradient(circle at 18% 16%, rgba(255, 248, 232, 0.62), transparent 26%),
        radial-gradient(circle at 83% 72%, rgba(214, 196, 159, 0.24), transparent 30%);
    box-shadow: 12px 12px 0 rgba(42, 28, 15, 0.24);
    transform: rotate(-1.5deg);
}

.dream-hub-dossier-content::before,
.dream-hub-whisper-card::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 22px;
    width: 88px;
    height: 20px;
    background: rgba(197, 180, 142, 0.74);
    border: 1px solid rgba(96, 81, 51, 0.16);
    box-shadow: 1px 1px 0 rgba(63, 47, 29, 0.08);
    transform: rotate(-6deg);
}

.dream-hub-dossier-content::after,
.dream-hub-whisper-card::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: -12px;
    width: 94px;
    height: 18px;
    background: rgba(204, 190, 154, 0.44);
    transform: rotate(4deg);
    opacity: 0.72;
}

.dream-hub-close {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 68px;
    padding: 6px 12px;
    border: 1.5px solid rgba(78, 49, 21, 0.42);
    border-radius: 999px;
    background: rgba(248, 239, 216, 0.9);
    color: rgba(61, 35, 14, 0.96);
    font-size: 13px;
    line-height: 1;
    box-shadow: 3px 3px 0 rgba(44, 30, 17, 0.1);
    cursor: pointer;
    z-index: 2;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dream-hub-close:hover {
    background: rgba(255, 245, 220, 0.98);
    color: rgba(32, 18, 8, 0.98);
    transform: translateY(-1px);
}

.hub-dossier-code {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(80, 48, 19, 0.94);
}

.hub-dossier-title {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.14;
    color: rgba(26, 16, 8, 0.98);
    text-shadow:
        0 1px 0 rgba(248, 235, 205, 0.72),
        0 -1px 0 rgba(80, 49, 21, 0.18);
}

.hub-dossier-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
}

.hub-dossier-column {
    display: grid;
    gap: 12px;
}

.hub-dossier-section {
    display: grid;
    gap: 8px;
    padding: 13px 14px 12px;
    border: 2px solid rgba(44, 62, 80, 0.18);
    border-radius: 6px 14px 8px 16px / 14px 8px 15px 9px;
    background:
        linear-gradient(180deg, rgba(255, 251, 240, 0.55), rgba(244, 236, 216, 0.42)),
        radial-gradient(circle at 11% 18%, rgba(255, 255, 255, 0.34), transparent 24%);
    box-shadow: 6px 6px 0 rgba(44, 30, 17, 0.08);
    transform: rotate(var(--dossier-rot, 0deg));
}

.hub-dossier-column .hub-dossier-section:nth-child(1) { --dossier-rot: -0.8deg; }
.hub-dossier-column .hub-dossier-section:nth-child(2) { --dossier-rot: 0.7deg; }
.hub-dossier-column .hub-dossier-section:nth-child(3) { --dossier-rot: -0.4deg; }

.hub-dossier-section h4 {
    margin: 0;
    font-size: 16px;
    color: rgba(56, 32, 13, 0.98);
    text-shadow:
        0 1px 0 rgba(247, 233, 202, 0.65),
        0 -1px 0 rgba(78, 48, 20, 0.14);
}

.hub-dossier-section p,
.hub-dossier-section li {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(39, 24, 12, 0.98);
}

.hub-dossier-section ul {
    margin: 0;
    padding-left: 18px;
}

.hub-dossier-section-video {
    gap: 12px;
}

.hub-video-archive-card {
    display: grid;
    grid-template-columns: minmax(148px, 0.64fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.hub-video-archive-poster {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    border: 1px solid rgba(49, 35, 20, 0.18);
    border-radius: 10px;
    background: rgba(19, 20, 28, 0.86);
    box-shadow: inset 0 0 0 1px rgba(255, 248, 230, 0.1);
}

.hub-video-archive-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hub-video-archive-body {
    display: grid;
    gap: 10px;
    align-content: start;
}

.hub-video-archive-tags,
.hub-video-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-drawer-block-video {
    margin-top: 12px;
}

body.dream-hub-page .dream-hub-dossier {
    inset: 28px 34px;
    background: rgba(239, 228, 196, 0.08);
    backdrop-filter: blur(0.8px);
}

body.dream-hub-page .dream-hub-dossier-shell {
    position: relative;
    width: min(88%, 1160px);
    padding: 22px 0 0;
    box-sizing: border-box;
}

body.dream-hub-page .dream-hub-dossier-content,
body.dream-hub-page .dream-hub-whisper-card {
    width: min(88%, 1160px);
    max-height: none;
    overflow: visible;
    padding: 28px 28px 24px;
    border-radius: 10px;
    transform: none;
}

body.dream-hub-page .dream-hub-dossier-content {
    width: 100%;
}

body.dream-hub-page .dream-hub-dossier-shell .dream-hub-close {
    top: 14px;
    right: 14px;
    z-index: 5;
}

body.dream-hub-page .dream-hub-dossier-content::before,
body.dream-hub-page .dream-hub-dossier-content::after,
body.dream-hub-page .dream-hub-whisper-card::before,
body.dream-hub-page .dream-hub-whisper-card::after {
    display: none;
}

body.dream-hub-page .hub-dossier-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

body.dream-hub-page .hub-dossier-column {
    gap: 14px;
}

body.dream-hub-page .hub-dossier-section {
    border-radius: 10px;
    transform: none;
    box-shadow: 4px 4px 0 rgba(44, 30, 17, 0.08);
}

body.dream-hub-page .hub-dossier-column .hub-dossier-section:nth-child(1),
body.dream-hub-page .hub-dossier-column .hub-dossier-section:nth-child(2),
body.dream-hub-page .hub-dossier-column .hub-dossier-section:nth-child(3) {
    --dossier-rot: 0deg;
}

body.dream-hub-page .hub-video-archive-poster {
    min-height: 196px;
}

body.dream-hub-page .dream-hub-whisper {
    inset: 28px 34px;
    background: rgba(239, 228, 196, 0.08);
    backdrop-filter: blur(0.8px);
}

.dream-hub-whisper-title {
    font-size: 28px;
    color: rgba(25, 16, 8, 0.98);
    text-shadow:
        0 1px 0 rgba(248, 235, 205, 0.72),
        0 -1px 0 rgba(80, 49, 21, 0.18);
}

.dream-hub-whisper-subtitle {
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(63, 42, 23, 0.88);
}

.dream-hub-whisper-presets {
    margin-bottom: 14px;
}

.dream-hub-whisper-preset {
    padding: 8px 11px;
    border: 2px solid rgba(44, 62, 80, 0.22);
    background: rgba(255, 249, 236, 0.56);
    border-radius: 5px 13px 7px 15px / 12px 6px 14px 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(61, 40, 21, 0.88);
    cursor: pointer;
}

.dream-hub-whisper-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(68, 45, 24, 0.9);
}

.dream-hub-whisper-input {
    width: 100%;
    min-height: 112px;
    resize: none;
    border: 2px dashed rgba(72, 48, 28, 0.34);
    border-radius: 6px 14px 8px 16px / 14px 8px 15px 9px;
    padding: 12px 14px;
    background: rgba(255, 250, 239, 0.72);
    font: inherit;
    color: rgba(30, 19, 10, 0.98);
}

.dream-hub-whisper-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dream-hub-whisper-count {
    font-size: 12px;
    color: rgba(68, 45, 24, 0.82);
}

.dream-hub-whisper-submit {
    padding: 9px 14px;
    border: 2px solid rgba(44, 62, 80, 0.28);
    border-radius: 4px 12px 6px 14px / 12px 6px 14px 8px;
    background: rgba(219, 208, 176, 0.5);
    color: rgba(41, 23, 10, 0.96);
    cursor: pointer;
    box-shadow: 5px 5px 0 rgba(44, 30, 17, 0.1);
}

.dream-hub-book-hotspot {
    --book-x: 45.8%;
    --book-y: 82.2%;
    --book-width: 11.8%;
    --book-height: 11.8%;
    display: none;
    position: absolute;
    left: var(--book-x);
    top: var(--book-y);
    width: var(--book-width);
    height: var(--book-height);
    border: none;
    background: transparent;
    z-index: 5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.dream-hub-book-hotspot::before {
    display: none;
}

.dream-hub-book-hotspot:hover::before {
    display: none;
}

.dream-hub-book-tip {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: rgba(255, 245, 225, 0.94);
    background: rgba(37, 24, 14, 0.58);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.dream-hub-book-hotspot:hover .dream-hub-book-tip {
    opacity: 0;
    transform: translateX(-50%);
}

.scene15-enter-archive-btn:focus,
.scene15-enter-archive-btn:focus-visible,
.open-dream-hub-btn:focus,
.open-dream-hub-btn:focus-visible,
.dream-hub-book-hotspot:focus,
.dream-hub-book-hotspot:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .dream-hub-board {
        --hub-board-x: 17%;
        --hub-board-y: 10%;
        --hub-board-width: 67%;
        --hub-board-height: 62%;
    }

    .dream-hub-grid {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        inset: 14px 12px;
    }

    .dream-hub-topbar h2 {
        font-size: 23px;
    }

    .dream-hub-panels {
        grid-template-columns: minmax(0, 1.28fr) minmax(190px, 0.72fr);
    }

    .hub-case-grid,
    .hub-note-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-overview-head {
        grid-template-columns: 1fr;
    }

    .hub-overview-meta {
        justify-items: start;
    }

    .hub-overview-keywords {
        text-align: left;
    }

    .hub-mood-grid,
    .hub-dossier-grid {
        grid-template-columns: 1fr;
    }

    .hub-video-archive-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dream-hub-board {
        --hub-board-x: 7%;
        --hub-board-y: 8%;
        --hub-board-width: 86%;
        --hub-board-height: 68%;
    }

    .dream-hub-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: auto;
    }

    .dream-hub-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        padding-right: 0;
        padding-bottom: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(74, 46, 22, 0.22);
    }

    .dream-hub-sidebar::after,
    .dream-hub-drawer::before {
        display: none;
    }

    .dream-hub-panels {
        grid-template-columns: 1fr;
    }

    .dream-hub-drawer {
        padding: 14px 0 0;
        border-left: none;
        border-top: 1px solid rgba(74, 46, 22, 0.22);
    }

    .hub-case-grid,
    .hub-note-wall {
        grid-template-columns: 1fr;
    }

    .hub-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-timeline-track,
    .hub-mini-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dream-hub-dossier-content,
    .dream-hub-whisper-card {
        width: min(92%, 760px);
        max-height: 90%;
    }

    .hub-video-archive-poster {
        min-height: 160px;
    }
}

.site-records {
    position: fixed;
    left: 18px;
    bottom: 14px;
    z-index: 130;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    max-width: min(calc(100vw - 28px), 760px);
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.site-records__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.site-records__item a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.site-records__item a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.site-records__item--public {
    gap: 7px;
}

.site-records__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
}

@media (max-width: 768px) {
    .site-records {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 6px 12px;
        max-width: none;
        font-size: 11px;
    }

    .site-records__item {
        white-space: normal;
    }
}


