        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #0a0612;
            padding: 20px;
        }

        .bg-layer {
            position: fixed; inset: 0; z-index: 0;
            background: linear-gradient(145deg, #0f0a1a 0%, #1a0f2e 100%);
            background-size: cover; background-position: center;
            opacity: 0.5; transition: opacity 0.6s;
        }
        .bg-layer::after {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(circle at 50% 30%, rgba(99,102,241,0.12), transparent 60%),
                        linear-gradient(180deg, transparent 0%, rgba(10,6,18,0.6) 100%);
        }
        .spotlight {
            position: fixed; top: -10%; left: 50%; transform: translateX(-50%);
            width: 600px; height: 700px;
            background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 65%);
            pointer-events: none; z-index: 1;
        }

        .game-container {
            position: relative; z-index: 2;
            background: rgba(20, 14, 35, 0.78);
            backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
            border-radius: 40px; padding: 34px 32px;
            max-width: 780px; width: 100%;
            box-shadow: 0 25px 60px -8px rgba(0,0,0,0.9), inset 0 1px 2px rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.06);
            min-height: 520px;
            overflow: hidden;
        }

        .audience-bg {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 180px;
            background-image: url('/mz_art/audience-bg.png');
            background-size: cover;
            background-position: bottom center;
            opacity: 0.12;
            pointer-events: none;
            z-index: 0;
            mask-image: linear-gradient(to top, #000 0%, transparent 100%);
            -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
        }
        .audience-bg.placeholder {
            background-image: none;
            background: repeating-linear-gradient(90deg,
                transparent 0px, transparent 40px,
                rgba(255,255,255,0.06) 40px, rgba(255,255,255,0.06) 42px);
            height: 120px;
            opacity: 0.3;
        }

        /* ===== 警告遮罩 ===== */
        #warningOverlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background:
                radial-gradient(ellipse 46% 42% at 50% 26%, rgba(255,196,150,0.16) 0%, rgba(180,120,220,0.06) 45%, rgba(10,5,20,0) 72%),
                rgba(10, 5, 20, 0.96);
            border-radius: 40px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 40px 32px; z-index: 100; text-align: center;
        }
        #warningOverlay .hero {
            height: clamp(150px, 26vh, 244px);
            width: auto; display: block; margin-bottom: 8px;
            filter: drop-shadow(0 10px 26px rgba(0,0,0,0.75))
                    drop-shadow(0 0 22px rgba(255,200,150,0.22));
            animation: heroFloat 5s ease-in-out infinite;
        }
        @keyframes heroFloat {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-7px) scale(1.025); }
        }
        #warningOverlay h1 {
            font-size: 1.8rem; font-weight: 800; color: #fbbf24;
            letter-spacing: 2px; margin-bottom: 6px;
            text-shadow: 0 0 30px rgba(251,191,36,0.25);
        }
        #warningOverlay .subtitle { font-size: 0.85rem; color: #94a3b8; margin-bottom: 6px; letter-spacing: 3px; }
        #warningOverlay .unit-info {
            font-size: 0.8rem; color: #818cf8; background: rgba(99,102,241,0.12);
            padding: 4px 18px; border-radius: 20px; border: 1px solid rgba(99,102,241,0.1);
            margin-bottom: 12px;
        }
        #warningOverlay .warning-text {
            font-size: 1.15rem; font-weight: 600; letter-spacing: 0.5px;
            color: #fbd7a5; line-height: 1.7; max-width: 460px;
            margin: 14px auto 26px; background: rgba(251,191,36,0.06);
            padding: 16px 22px; border-radius: 14px; border: 1px solid rgba(251,191,36,0.12);
        }
        /* 窄屏按逗号断句，避免“崇拜”被拆到下一行 */
        @media (max-width: 430px){
            #warningOverlay .warning-text span { display: block; }
        }
        .warning-btns { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
        .btn-warning {
            padding: 12px 40px; border: none; border-radius: 50px;
            font-size: 1.1rem; font-weight: 700; cursor: pointer;
            transition: all 0.3s; letter-spacing: 2px;
        }
        .btn-giveup {
            background: rgba(100,100,120,0.15); color: #64748b;
            border: 2px solid rgba(100,100,120,0.15);
        }
        .btn-giveup:hover:not(:disabled) {
            background: rgba(100,100,120,0.3); border-color: rgba(100,100,120,0.3);
            transform: scale(1.04);
        }
        .btn-giveup:disabled { cursor: not-allowed; opacity: 0.25; transform: none !important; }
        .btn-challenge {
            background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff;
            border: 2px solid #ef4444; box-shadow: 0 0 30px rgba(239,68,68,0.2);
        }
        .btn-challenge:hover { transform: scale(1.06); box-shadow: 0 0 50px rgba(239,68,68,0.35); }
        .btn-challenge:active { transform: scale(0.95); }

        /* ===== 头部 ===== */
        .header {
            position: relative; z-index: 3;
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 18px; color: #cbd5e1; flex-wrap: wrap; gap: 6px;
        }
        .header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

        .book-info {
            font-size: 0.8rem; color: #818cf8; background: rgba(99,102,241,0.12);
            padding: 4px 16px; border-radius: 20px; border: 1px solid rgba(99,102,241,0.1);
            font-weight: 500; letter-spacing: 0.5px;
        }

        /* ★ 弹幕开关按钮 */
        .danmaku-toggle {
            display: flex; align-items: center; gap: 6px;
            padding: 4px 12px 4px 8px;
            border-radius: 40px;
            border: 1px solid rgba(99,102,241,0.25);
            background: rgba(99,102,241,0.12);
            color: #a5b4fc;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            user-select: none;
            letter-spacing: 0.3px;
        }
        .danmaku-toggle:hover {
            background: rgba(99,102,241,0.22);
            border-color: rgba(99,102,241,0.4);
            transform: scale(1.04);
        }
        .danmaku-toggle .toggle-dot {
            width: 10px; height: 10px; border-radius: 50%;
            background: #34d399;
            box-shadow: 0 0 8px rgba(52,211,153,0.7);
            transition: all 0.25s ease;
        }
        .danmaku-toggle.off {
            background: rgba(100,100,120,0.12);
            border-color: rgba(100,100,120,0.2);
            color: #64748b;
        }
        .danmaku-toggle.off .toggle-dot {
            background: #64748b;
            box-shadow: none;
        }

        .score-area { display: flex; align-items: center; gap: 10px; font-weight: 600; flex-wrap: wrap; }
        .score-badge {
            background: rgba(99,102,241,0.15); padding: 4px 14px; border-radius: 40px;
            font-size: 0.85rem; color: #a5b4fc; border: 1px solid rgba(99,102,241,0.1);
        }
        .timer-badge {
            background: rgba(56,189,248,0.1); padding: 4px 14px; border-radius: 40px;
            font-size: 0.85rem; color: #7dd3fc; border: 1px solid rgba(56,189,248,0.1);
            font-weight: 600; font-variant-numeric: tabular-nums; min-width: 65px;
            text-align: center; transition: all 0.3s;
        }
        .timer-badge.warning {
            color: #fca5a5; border-color: rgba(248,113,113,0.25);
            background: rgba(248,113,113,0.1); animation: timerPulse 1s ease-in-out infinite;
        }
        .timer-badge.danger {
            color: #f87171; border-color: rgba(248,113,113,0.4);
            background: rgba(248,113,113,0.18); animation: timerPulse 0.5s ease-in-out infinite;
        }
        @keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
        .question-counter {
            font-size: 0.85rem; color: #94a3b8; background: rgba(0,0,0,0.25);
            padding: 4px 14px; border-radius: 40px;
        }
        .progress-track {
            position: relative; z-index: 3;
            width: 100%; height: 3px; background: rgba(255,255,255,0.05);
            border-radius: 10px; margin-bottom: 24px; overflow: hidden;
        }
        .progress-fill {
            height: 100%; width: 0%; background: linear-gradient(90deg, #818cf8, #6366f1);
            border-radius: 10px; transition: width 0.4s ease;
        }

        /* ===== 题目/选项 ===== */
        .question-type {
            position: relative; z-index: 3;
            font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2.5px;
            color: #818cf8; font-weight: 600; margin-bottom: 4px;
        }
        .word-display {
            position: relative; z-index: 3;
            display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap;
        }
        .target-word {
            font-size: 3.2rem; font-weight: 700; color: #f1f5f9;
            line-height: 1.2; letter-spacing: -0.5px;
        }
        .target-meaning {
            font-size: 0.95rem; color: transparent; font-weight: 400;
            background: rgba(255,255,255,0.03); padding: 2px 14px; border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.04); transition: color 0.3s ease;
        }
        .target-meaning.show { color: #94a3b8; }
        .speak-btn {
            background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.12);
            border-radius: 50%; width: 42px; height: 42px; font-size: 1.2rem;
            cursor: pointer; color: #a5b4fc; transition: all 0.2s;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .speak-btn:hover:not(:disabled) { background: rgba(99,102,241,0.2); transform: scale(1.08); }
        .speak-btn:disabled { opacity: 0.25; cursor: not-allowed; }
        .speak-btn.speaking {
            animation: pulse 0.6s ease-in-out 3; border-color: #818cf8;
            box-shadow: 0 0 20px rgba(99,102,241,0.15);
        }
        @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

        .hint-text {
            position: relative; z-index: 3;
            font-size: 0.95rem; color: #94a3b8; margin-bottom: 20px; min-height: 32px;
            padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.04); transition: all 0.3s;
            display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
        }
        .hint-text .highlight { color: #fcd34d; font-weight: 500; }
        .hint-text .correct-answer { color: #34d399; font-weight: 600; }
        .hint-text .meaning-text { color: #7dd3fc; font-weight: 500; margin-left: 4px; }
        .hint-text.correct-feedback {
            border-color: rgba(52,211,153,0.15); background: rgba(52,211,153,0.06);
        }
        .hint-text.wrong-feedback {
            border-color: rgba(248,113,113,0.15); background: rgba(248,113,113,0.06);
        }

        .options-grid {
            position: relative; z-index: 3;
            display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
        }
        .option-btn {
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px; padding: 16px 12px; font-size: 1.1rem; font-weight: 500;
            color: #e2e8f0; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px);
            text-align: center; word-break: break-word; line-height: 1.4;
            display: flex; flex-direction: column; align-items: center; gap: 2px;
        }
        .option-btn .option-meaning {
            font-size: 0.8rem; color: transparent; font-weight: 400;
            transition: color 0.3s ease; margin-top: 4px;
        }
        .option-btn .option-meaning.show { color: #94a3b8; }
        .option-btn:hover:not(.disabled) {
            background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12);
            transform: scale(1.02);
        }
        .option-btn:active:not(.disabled) { transform: scale(0.97); }
        .option-btn.correct {
            background: rgba(52,211,153,0.25); border-color: #34d399;
            box-shadow: 0 0 30px rgba(52,211,153,0.15); color: #6ee7b7;
        }
        .option-btn.correct .option-meaning {
            color: #ffffff !important; font-weight: 600 !important; font-size: 0.9rem !important;
            text-shadow: 0 0 20px rgba(52,211,153,0.6) !important;
        }
        .option-btn.wrong {
            background: rgba(251,113,133,0.2); border-color: #f87171;
            box-shadow: 0 0 24px rgba(251,113,133,0.06); color: #fca5a5;
        }
        .option-btn.wrong .option-meaning { color: #fca5a5 !important; }
        .option-btn.disabled { cursor: not-allowed; opacity: 0.55; }
        .option-btn.reveal-correct {
            background: rgba(52,211,153,0.2); border-color: #34d399; color: #6ee7b7;
        }
        .option-btn.reveal-correct .option-meaning {
            color: #ffffff !important; font-weight: 600 !important;
            text-shadow: 0 0 20px rgba(52,211,153,0.5) !important;
        }

        /* ===== 舞台区域 ===== */
        .punish-stage {
            position: relative; z-index: 3;
            height: 150px; display: flex; align-items: center;
            justify-content: center; gap: 30px; margin: 2px 0 14px;
            pointer-events: none; user-select: none;
        }
        .face-wrap { position: relative; display: inline-block; }
        .face-img {
            width: 96px; height: 96px;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            transition: transform 0.2s;
            filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
            display: flex; align-items: center; justify-content: center;
            font-size: 3.8rem; line-height: 1; position: relative;
        }
        .face-img[data-emoji]:empty::before { content: attr(data-emoji); font-size: 3.8rem; }
        .face-img.has-img::before { content: none !important; }
        .face-img.happy { animation: faceHappy 0.6s ease; }
        .face-img.enjoy { animation: faceEnjoy 1s ease infinite; }
        .face-img.hit { animation: faceHit 0.3s ease; }

        @keyframes faceHappy {
            0%, 100% { transform: scale(1) rotate(0deg); }
            30% { transform: scale(1.15) rotate(-6deg); }
            60% { transform: scale(1.08) rotate(6deg); }
        }
        @keyframes faceEnjoy {
            0%, 100% { transform: rotate(-2deg) scale(1) translateY(0); }
            50% { transform: rotate(2deg) scale(1.04) translateY(-2px); }
        }
        @keyframes faceHit {
            0% { transform: scale(1) rotate(0); }
            30% { transform: scale(0.88) rotate(-8deg) translateX(-6px); }
            60% { transform: scale(1.05) rotate(4deg); }
            100% { transform: scale(1) rotate(0); }
        }

        .speech-bubble {
            position: absolute; top: -12px; left: 50%;
            transform: translateX(-50%) scale(0);
            background: #1e1b2e; color: #fca5a5; padding: 6px 14px; border-radius: 12px;
            font-size: 0.8rem; border: 1px solid rgba(248,113,113,0.3);
            white-space: nowrap; z-index: 6; transform-origin: bottom center;
            transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); font-weight: 600;
        }
        .speech-bubble.show { transform: translateX(-50%) scale(1); }
        .speech-bubble::after {
            content: ''; position: absolute; bottom: -6px; left: 50%;
            transform: translateX(-50%);
            border-left: 6px solid transparent; border-right: 6px solid transparent;
            border-top: 6px solid #1e1b2e;
        }
        .speech-bubble.smile { color: #fcd34d; border-color: rgba(252,211,77,0.3); }

        .weapon {
            width: 96px; height: 96px;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            opacity: 0; transform-origin: 50% 50%;
            transform: rotate(45deg) translateX(40px) scale(0.9);
            transition: all 0.25s ease;
            filter: drop-shadow(0 0 16px rgba(248,113,113,0.6));
            display: flex; align-items: center; justify-content: center;
            font-size: 3.4rem; position: relative; z-index: 2;
        }
        .weapon[data-emoji]:empty::before { content: attr(data-emoji); }
        .weapon.has-img::before { content: none !important; }
        .weapon.taunt { opacity: 1; animation: weaponTaunt 0.6s ease; }
        @keyframes weaponTaunt {
            0%, 100% { transform: rotate(-35deg) translateX(20px) scale(1.15); }
            25% { transform: rotate(-45deg) translateX(30px) scale(1.2); }
            50% { transform: rotate(-25deg) translateX(10px) scale(1.15); }
            75% { transform: rotate(-40deg) translateX(25px) scale(1.2); }
        }
        .weapon.wind-up { opacity: 1; transform: translate(10px, -72px) rotate(-45deg) scale(1.15); }
        .weapon.strike {
            opacity: 1; transform: translate(-126px, -58px) rotate(12deg) scale(1.05);
            filter: drop-shadow(0 0 30px rgba(248,113,113,0.9));
        }
        .weapon.fade-out { opacity: 0; transform: rotate(45deg) scale(0.5); }

        .rose {
            position: absolute;
            width: 96px; height: 96px;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            opacity: 0; transform: scale(0.3) rotate(-30deg);
            transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
            filter: drop-shadow(0 0 24px rgba(251,113,133,0.8));
            display: flex; align-items: center; justify-content: center;
            font-size: 3.4rem; pointer-events: none; z-index: 3;
        }
        .rose[data-emoji]:empty::before { content: attr(data-emoji); }
        .rose.has-img::before { content: none !important; }
        .rose.bloom { opacity: 1; transform: scale(1.2) rotate(0deg); }

        .impact {
            position: absolute; top: calc(50% - 40px); left: calc(50% - 63px);
            width: 140px; height: 140px;
            transform: translate(-50%, -50%) scale(0);
            background: radial-gradient(circle, rgba(255,220,100,0.9) 0%, rgba(248,113,113,0.5) 40%, transparent 70%);
            border-radius: 50%; opacity: 0; z-index: 5; pointer-events: none;
        }
        .impact.active { animation: impactBurst 0.6s ease-out; }
        @keyframes impactBurst {
            0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
            100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
        }

        .sparkle {
            position: absolute; top: 50%; left: 50%;
            font-size: 1.2rem; opacity: 0; pointer-events: none; z-index: 5;
            animation: sparkleFloat 1.2s ease-out forwards;
        }
        @keyframes sparkleFloat {
            0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
            100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.4); }
        }

        /* ===== 弹幕层 ===== */
        .roast-layer {
            position: absolute; inset: 0; pointer-events: none; overflow: hidden;
            z-index: 50; border-radius: 40px;
            transition: opacity 0.4s ease;
        }
        .roast-layer.hidden {
            opacity: 0;
        }

        .roast-item {
            position: absolute;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            padding: 6px 18px 6px 6px;
            background: rgba(10, 6, 20, 0.72);
            border-radius: 50px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.08);
            animation: roastFly 8s linear forwards;
            opacity: 0;
            left: 0;
            box-shadow: 0 4px 16px rgba(0,0,0,0.5);
        }

        @keyframes roastFly {
            0% { transform: translateX(-100%); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateX(110vw); opacity: 0; }
        }

        .roast-avatar {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: #2a1f45;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; flex-shrink: 0;
            border: 2px solid rgba(255,255,255,0.15);
            overflow: hidden;
        }
        .roast-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .roast-text {
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            line-height: 1.25;
        }
        .roast-text.wrong { color: #f87171; text-shadow: 0 0 14px rgba(248,113,113,0.6); }
        .roast-text.right { color: #fcd34d; text-shadow: 0 0 14px rgba(252,211,77,0.6); }
        .roast-text.urgent { color: #fb923c; text-shadow: 0 0 14px rgba(251,146,60,0.6); }
        .roast-text.cheer { color: #34d399; text-shadow: 0 0 14px rgba(52,211,153,0.6); }

        .screen-flash {
            position: absolute; inset: 0; background: rgba(248,113,113,0.18);
            pointer-events: none; z-index: 45; opacity: 0; border-radius: 40px;
        }
        .screen-flash.active { animation: flashRed 0.5s ease; }
        @keyframes flashRed { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

        .action-bar {
            position: relative; z-index: 3;
            display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
        }
        .btn {
            padding: 8px 22px; border: none; border-radius: 40px; font-weight: 600;
            font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
            background: rgba(255,255,255,0.04); color: #cbd5e1;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .btn:hover:not(:disabled) {
            background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1);
        }
        .btn:disabled { opacity: 0.25; cursor: not-allowed; }
        .btn-danger {
            background: rgba(251,113,133,0.08); color: #fca5a5;
            border: 1px solid rgba(251,113,133,0.06);
        }
        .btn-danger:hover:not(:disabled) { background: rgba(251,113,133,0.16); }

        .result-panel {
            position: relative; z-index: 3; text-align: center; padding: 16px 0 4px 0;
        }
        .result-panel .big-icon { font-size: 4rem; margin-bottom: 6px; }
        .result-panel .result-title { font-size: 1.5rem; font-weight: 700; margin: 6px 0 4px; }
        .result-panel .result-title.win { color: #34d399; }
        .result-panel .result-title.lose { color: #f87171; }
        .result-stats {
            display: flex; justify-content: center; gap: 28px; margin: 14px 0 24px;
            color: #94a3b8; flex-wrap: wrap;
        }
        .result-stats div { text-align: center; }
        .result-stats .number { font-size: 1.3rem; font-weight: 700; color: #e2e8f0; }
        .result-stats .label {
            font-size: 0.7rem; text-transform: uppercase;
            letter-spacing: 1px; margin-top: 2px;
        }
        .result-time { color: #94a3b8; margin-bottom: 18px; font-size: 0.9rem; }
        .result-time span { color: #7dd3fc; font-weight: 600; }

        .time-up-overlay {
            position: relative; z-index: 3;
            display: none; text-align: center; padding: 36px 20px;
        }
        .time-up-overlay .icon { font-size: 3.6rem; margin-bottom: 10px; }
        .time-up-overlay h2 { color: #f1f5f9; font-size: 1.6rem; margin-bottom: 4px; }
        .time-up-overlay p { color: #94a3b8; font-size: 0.9rem; }

        .footer {
            position: relative; z-index: 3;
            margin-top: 18px; text-align: center; font-size: 0.65rem; color: #3d3d5c;
            letter-spacing: 1px; border-top: 1px solid rgba(255,255,255,0.03);
            padding-top: 14px;
        }
        .footer span { color: #6366f1; }

        @media (max-width: 550px) {
            .game-container { padding: 20px 14px; border-radius: 28px; }
            #warningOverlay { border-radius: 28px; padding: 24px 16px; }
            #warningOverlay h1 { font-size: 1.3rem; }
            #warningOverlay .hero { height: 132px; margin-bottom: 4px; }
            #warningOverlay .warning-btns { width: 100%; gap: 12px; }
            .target-word { font-size: 2.2rem; }
            .target-meaning { font-size: 0.8rem; padding: 0 10px; }
            .options-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
            .option-btn { font-size: 0.9rem; padding: 12px 8px; }
            .option-btn .option-meaning { font-size: 0.7rem; }
            .action-bar { flex-direction: column; align-items: stretch; }
            .btn { text-align: center; }
            .header { flex-direction: column; align-items: stretch; gap: 8px; }
            .header-left, .header-right { justify-content: space-between; }
            .result-stats { gap: 16px; }
            .timer-badge { min-width: 55px; font-size: 0.8rem; padding: 3px 10px; }
            .book-info { font-size: 0.7rem; padding: 3px 12px; }
            .btn-warning { padding: 10px 28px; font-size: 0.95rem; }
            .hint-text { font-size: 0.8rem; min-height: 24px; padding: 4px 10px; }
            .punish-stage { height: 120px; gap: 16px; }
            .face-img { width: 76px; height: 76px; font-size: 2.8rem; }
            .weapon { width: 76px; height: 76px; font-size: 2.6rem; }
            .rose { width: 76px; height: 76px; font-size: 2.6rem; }
            .speech-bubble { font-size: 0.7rem; padding: 4px 10px; }
            .roast-item { padding: 5px 12px 5px 5px; gap: 6px; }
            .roast-avatar { width: 30px; height: 30px; font-size: 1rem; }
            .roast-text { font-size: 0.95rem; }
            .danmaku-toggle { font-size: 0.65rem; padding: 3px 10px 3px 6px; }
        }
    
        @media (max-width: 550px) {
            .weapon.wind-up { transform: translate(8px, -58px) rotate(-45deg) scale(1.15); }
            .weapon.strike { transform: translate(-106px, -46px) rotate(12deg) scale(1.05); }
            .impact { top: calc(50% - 32px); left: calc(50% - 53px); }
        }
    
        /* ================= 全屏舞台版 v2 ================= */
        #app.game-container{
            position: fixed; inset: 0; max-width: none; width: 100%; height: 100%;
            min-height: 0; padding: 0; background: transparent !important;
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            border: none !important; border-radius: 0 !important; box-shadow: none !important;
            overflow: visible;
        }
        #app .header{ max-width: 1024px; margin: 0 auto; padding: 12px 24px 0; }
        #app .progress-track{ max-width: 960px; width: calc(100% - 48px); margin: 0 auto 6px; }
        #app .question-type, #app .word-display, #app .hint-text, #app .options-grid{
            max-width: 860px; width: calc(100% - 48px); margin-left: auto; margin-right: auto;
        }
        #app .hint-text{ margin-bottom: 8px; }
        #app .options-grid{ margin-bottom: 0; }
        #app .audience-bg{ display: none !important; }
        #app .punish-stage{ position: fixed; left: 50%; bottom: 15%; top: auto; transform: translateX(calc(-50% + 80px));
            height: auto; margin: 0; z-index: 2; }
        #app .action-bar{ position: fixed; right: 22px; bottom: 20px; z-index: 25; }
        #app .roast-layer{ position: fixed !important; inset: 0 !important; border-radius: 0 !important; }
        #app .footer{ display: none !important; }
            /* ===== 奖励特效：纸屑 + 打光 ===== */
        .confetti-piece{ position: fixed; top: -20px; z-index: 60; pointer-events: none; will-change: transform, opacity; }
        @keyframes confettiFall{
            0%{ transform: translateY(-10vh) rotate(0deg); opacity: 1; }
            100%{ transform: translateY(112vh) rotate(720deg); opacity: 0.95; }
        }
        #rewardLight{ position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
            background: radial-gradient(ellipse 45% 65% at 50% 52%, rgba(255,248,200,0.6) 0%, rgba(255,248,200,0.18) 38%, rgba(255,248,200,0) 68%);
            transition: opacity 0.35s ease; }
        #rewardLight.on{ opacity: 1; }
    
        /* ================= 全身立绘 · 道具精确打击 ================= */
        /* 人物整体缩放系数：窗口矮的时候等比缩小，避免头顶钻进选项卡里 */
        #app{ --faceScale: 1; }
        @media (max-height: 820px) and (min-width: 551px){ #app{ --faceScale: .76; } }
        @media (max-height: 700px) and (min-width: 551px){ #app{ --faceScale: .64; } }
        @media (max-height: 600px) and (min-width: 551px){ #app{ --faceScale: .54; } }
        /* 结算/时间到：选项区已隐藏，恢复原尺寸 */
        #app.is-over, #app.is-timeup{ --faceScale: 1; }
        #app .punish-stage{
            left: 50%; bottom: 4%;
            transform: translateX(-50%) scale(var(--faceScale));
            transform-origin: bottom center;
            gap: 0; height: auto;
        }
        #app .face-wrap{ position: relative; display: inline-block; }
        #app .face-img{
            width: 200px; height: 267px;
            transition: transform 0.18s ease, filter 0.25s ease;
        }

        /* ---- 道具（锤子 / 戒尺）---- */
        #app .weapon{
            position: absolute; left: 0; top: 0; margin: 0;
            width: 130px; height: 130px;
            background-size: contain; background-position: center;
            transform-origin: 50% 50%;
            transform: translate(-50%, -50%) scale(0.6);
            opacity: 0; z-index: 4;
            transition: transform 0.28s cubic-bezier(0.34,1.3,0.64,1), opacity 0.2s ease;
        }
        #app .weapon.is-ruler{ width: 104px; height: 104px; }

        /* 举锤：竖着立在头的右侧（锤头与头齐高） */
        #app .weapon.st-windup-hammer{
            opacity: 1;
            transform: translate(calc(182px - 50%), calc(76px - 50%)) rotate(-12deg) scale(0.9);
        }
        /* 落锤：锤头正砸在头顶中线 */
        #app .weapon.st-hit-hammer{
            opacity: 1;
            transform: translate(calc(144px - 50%), calc(26px - 50%)) rotate(-8deg) scale(1);
            filter: drop-shadow(0 0 26px rgba(248,113,113,0.95));
            transition: transform 0.11s cubic-bezier(0.5,0,0.4,1), opacity 0.1s;
        }
        /* 举尺：竖着立在他身子左侧 */
        #app .weapon.st-windup-ruler{
            opacity: 1;
            transform: translate(calc(36px - 50%), calc(92px - 50%)) rotate(-10deg) scale(0.9);
        }
        /* 落尺：横着打在手心 */
        #app .weapon.st-hit-ruler{
            opacity: 1;
            transform: translate(calc(62px - 50%), calc(149px - 50%)) rotate(4deg) scale(1);
            filter: drop-shadow(0 0 26px rgba(248,113,113,0.95));
            transition: transform 0.11s cubic-bezier(0.5,0,0.4,1), opacity 0.1s;
        }
        #app .weapon.st-gone{ opacity: 0; transform: translate(-50%, -50%) scale(0.7); transition: all 0.25s ease; }

        /* ---- 打击火花 ---- */
        #app .impact{ left: 50%; top: 11%; width: 160px; height: 160px; }
        #app .impact.at-palm{ left: 30%; top: 56%; width: 108px; height: 108px; }

        /* ---- 玫瑰 ---- */
        #app .rose{
            position: absolute; left: 77%; top: 40%;
            width: 96px; height: 96px;
            margin: -48px 0 0 -48px; z-index: 4;
        }

        /* ---- 受击抖动 ---- */
        @keyframes stageShake{
            0%,100%{ transform: translateX(-50%) scale(var(--faceScale)) translate(0,0); }
            20%{ transform: translateX(-50%) scale(var(--faceScale)) translate(-7px,3px); }
            45%{ transform: translateX(-50%) scale(var(--faceScale)) translate(6px,-3px); }
            70%{ transform: translateX(-50%) scale(var(--faceScale)) translate(-4px,2px); }
        }
        #app .punish-stage.shake{ animation: stageShake 0.34s ease-out; }

        /* ---- 泼水 ---- */
        #app .water-splash{
            position: absolute; left: 50%; top: 6%;
            width: 196px; height: 126px;
            margin: -63px 0 0 -98px;
            background:
                radial-gradient(ellipse 50% 52% at 50% 58%,
                    rgba(245,253,255,0.98) 0%, rgba(168,226,253,0.8) 28%,
                    rgba(122,192,242,0.3) 56%, rgba(122,192,242,0) 80%);
            border-radius: 50%;
            filter: blur(1px);
            pointer-events: none; z-index: 5;
            animation: waterSplash 0.85s ease-out forwards;
        }
        @keyframes waterSplash{
            0%{ opacity: 0; transform: scale(0.45); }
            20%{ opacity: 1; transform: scale(0.86); }
            58%{ opacity: 1; transform: scale(1.12); }
            100%{ opacity: 0; transform: scale(1.34); }
        }
        #app .water-drop{
            position: absolute; width: 6px; height: 12px;
            border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
            background: linear-gradient(180deg, #f2fbff, #74bdec);
            box-shadow: 0 0 6px rgba(160,220,255,0.7);
            opacity: 0; pointer-events: none; z-index: 5;
            animation: waterDrop 0.8s ease-in forwards;
        }
        @keyframes waterDrop{
            0%{ opacity: 0; transform: translate(0,0) scale(0.5); }
            16%{ opacity: 1; }
            100%{ opacity: 0; transform: translate(var(--ddx), var(--ddy)) scale(1); }
        }

        @media (max-width: 550px){
            #app .face-img{ width: 150px; height: 200px; }
            #app .weapon{ width: 98px; height: 98px; }
            #app .weapon.is-ruler{ width: 78px; height: 78px; }
            #app .weapon.st-windup-hammer{ transform: translate(calc(137px - 50%), calc(57px - 50%)) rotate(-12deg) scale(0.9); }
            #app .weapon.st-hit-hammer{ transform: translate(calc(108px - 50%), calc(20px - 50%)) rotate(-8deg) scale(1); }
            #app .weapon.st-windup-ruler{ transform: translate(calc(27px - 50%), calc(69px - 50%)) rotate(-10deg) scale(0.9); }
            #app .weapon.st-hit-ruler{ transform: translate(calc(47px - 50%), calc(112px - 50%)) rotate(4deg) scale(1); }
            #app .impact{ width: 120px; height: 120px; }
            #app .rose{ width: 88px; height: 88px; margin: -44px 0 0 -44px; }
            #app .water-splash{ width: 148px; height: 96px; margin: -48px 0 0 -74px; }
        }

        /* ================= 舞台字体方案 · 仪式感 + 远看清 =================
           字重阶梯：单词 900 / 提示 700 / 选项 700 / 小标签 700
           深色舞台上白字统一加 1px 黑描边 + 下沉阴影，聚光灯扫过也不糊 */

        #app,
        #app button,
        #app .hint-text,
        #app .target-word,
        #app .option-btn {
            font-family: 'Montserrat', 'PingFang SC', 'HarmonyOS Sans SC',
                         'Source Han Sans SC', 'Noto Sans SC', 'Microsoft YaHei',
                         system-ui, -apple-system, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        /* ① 单词大标题：白色 ExtraBold + 黑描边 + 紫光晕 */
        #app .target-word {
            font-size: clamp(38px, 4.7vw, 62px);
            font-weight: 900;
            letter-spacing: -0.6px;
            line-height: 1.15;
            color: #ffffff;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.45);
            paint-order: stroke fill;
            text-shadow:
                0 3px 0 rgba(0, 0, 0, 0.42),
                0 9px 28px rgba(88, 60, 190, 0.55),
                0 0 52px rgba(150, 120, 255, 0.26);
            overflow-wrap: anywhere;
        }
        #app .target-meaning {
            font-size: clamp(13px, 1.15vw, 17px);
            font-weight: 600;
            letter-spacing: 0.5px;
            background: transparent;
            border-color: transparent;
        }
        #app .target-meaning.show {
            color: #c7c2e0;
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.10);
        }

        /* ② 题干提示：浅黄橙 + 加粗，和红色错误提示拉开 */
        #app .hint-text {
            font-size: clamp(17px, 2.05vw, 26px);
            font-weight: 700;
            letter-spacing: 0.4px;
            line-height: 1.5;
            color: #fcd34d;
            min-height: 0;
            padding: 7px 18px;
            background: rgba(10, 6, 22, 0.44);
            border: 1px solid rgba(252, 211, 77, 0.16);
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.5);
        }
        #app .hint-text .highlight {
            color: #ffffff;
            font-weight: 800;
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 22px rgba(252, 211, 77, 0.45);
        }
        #app .hint-text .meaning-text { color: #93c5fd; font-weight: 700; }
        /* 答对/答错时整条换成绿/红，别一律黄色 */
        #app .hint-text.correct-feedback { color: #86efac; border-color: rgba(52, 211, 153, 0.28); }
        #app .hint-text.wrong-feedback   { color: #fca5a5; border-color: rgba(248, 113, 113, 0.30); }

        /* ③ 选项按钮：半透深色底 + 30px 粗体 + 悬浮提亮 */
        #app .option-btn {
            font-size: clamp(19px, 2.34vw, 30px);
            font-weight: 700;
            letter-spacing: 0.2px;
            line-height: 1.3;
            color: #f4f2ff;
            padding: 13px 18px;
            border-radius: 16px;
            background: rgba(10, 6, 22, 0.56);
            border: 1px solid rgba(255, 255, 255, 0.10);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
            -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.32);
            paint-order: stroke fill;
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
        }
        #app .option-btn:hover:not(.disabled) {
            background: rgba(40, 26, 74, 0.80);
            border-color: rgba(167, 139, 250, 0.55);
            box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22),
                        0 10px 32px rgba(110, 70, 240, 0.24),
                        inset 0 1px 0 rgba(255, 255, 255, 0.09);
            transform: translateY(-2px) scale(1.015);
            color: #ffffff;
        }
        #app .option-btn .option-meaning {
            font-size: clamp(12px, 1.25vw, 16px);
            font-weight: 600;
            margin-top: 3px;
        }
        #app .option-btn.correct .option-meaning,
        #app .option-btn.reveal-correct .option-meaning {
            font-size: clamp(12px, 1.25vw, 16px) !important;
        }

        /* 描边/阴影是继承属性，会把原本 color:transparent 的中文释义"描"成黑影，
           这里显式清掉（答对后要显示的绿色释义单独放行） */
        #app .option-btn .option-meaning,
        #app .target-meaning {
            -webkit-text-stroke: 0 !important;
            text-shadow: none !important;
        }
        #app .option-btn.correct .option-meaning,
        #app .option-btn.reveal-correct .option-meaning {
            text-shadow: 0 0 20px rgba(52, 211, 153, 0.6) !important;
        }

        /* grid 的 1fr 最小宽度是 auto，长单词会把整行撑破（手机端 430 视口被撑到 492），
           换成 minmax(0,1fr) 强制列可收缩 */
        #app .options-grid {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }
        #app .option-btn {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        /* ④ 题头小标签：字幕感 */
        #app .question-type {
            font-size: clamp(11px, 1.08vw, 14px);
            font-weight: 700;
            letter-spacing: 3.2px;
            color: #a78bfa;
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
            margin-top: 6px;
            margin-bottom: 2px;
        }

        /* 大字号后需要的呼吸感：单词块上下各让出一点，别贴住小标签和提示条 */
        #app .word-display {
            margin-top: 15px;
            margin-bottom: 12px;
            row-gap: 6px;
        }
        #app .hint-text { margin-bottom: 12px; }

        /* ⑤ 窄屏：下限压小，避免长单词撑破 430px 宽 */
        @media (max-width: 560px) {
            #app .target-word { font-size: clamp(30px, 8.2vw, 42px); letter-spacing: -0.4px; }
            #app .hint-text { font-size: clamp(14px, 3.9vw, 19px); padding: 6px 12px; letter-spacing: 0.2px; }
            #app .option-btn { font-size: clamp(16px, 4.3vw, 22px); padding: 10px 10px; border-radius: 13px; }
            #app .option-btn .option-meaning,
            #app .option-btn.correct .option-meaning,
            #app .option-btn.reveal-correct .option-meaning { font-size: 12px !important; }
            #app .question-type { font-size: 10px; letter-spacing: 2px; }
            #app .target-meaning { font-size: 12px; }
        }

        /* ================= 生命值（错两次出局） ================= */
        #app .lives-badge {
            font-size: 0.85rem; line-height: 1; letter-spacing: 2px;
            padding: 4px 9px; border-radius: 20px;
            background: rgba(248, 113, 113, 0.16);
            border: 1px solid rgba(248, 113, 113, 0.35);
            filter: none;
        }
        #app .lives-badge.danger {
            background: rgba(248, 113, 113, 0.2);
            border-color: rgba(248, 113, 113, 0.6);
            box-shadow: 0 0 18px rgba(248, 113, 113, 0.45);
            animation: livesPulse 1.05s ease-in-out infinite;
        }
        @keyframes livesPulse {
            0%, 100% { transform: scale(1); filter: brightness(1); }
            50%      { transform: scale(1.09); filter: brightness(1.25); }
        }

        /* ================= 结算面板 v2 · 金色舞台卡片 ================= */
        #app #resultPanel {
            position: fixed;
            left: 50%;
            bottom: 6.5%;
            transform: translateX(-50%);
            width: min(780px, calc(100% - 36px));
            margin: 0;
            padding: 24px 40px 20px;
            z-index: 80;
            text-align: center;
            border-radius: 26px;
            background: linear-gradient(180deg, #21143c 0%, #0b0716 100%);
            border: 2px solid rgba(250, 204, 21, 0.55);
            box-shadow:
                inset 0 1px 0 rgba(255, 225, 140, 0.16),
                0 0 64px rgba(250, 204, 21, 0.16),
                0 28px 80px rgba(0, 0, 0, 0.72);
            animation: rpIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
        }
        @keyframes rpIn {
            from { opacity: 0; transform: translate(-50%, 34px) scale(0.955); }
            to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
        }
        #app #resultPanel .rp-corner {
            position: absolute; top: -17px; font-size: 30px; line-height: 1;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
            pointer-events: none;
        }
        #app #resultPanel .rp-left  { left: 26px; transform: rotate(-8deg); }
        #app #resultPanel .rp-right { right: 26px; transform: rotate(10deg); }
        #app #resultPanel .big-icon { display: none; }
        #app #resultPanel .result-title {
            font-size: clamp(26px, 3.5vw, 42px);
            font-weight: 900;
            letter-spacing: 0.5px;
            line-height: 1.15;
            color: #ffffff;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.45);
            paint-order: stroke fill;
            text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 36px rgba(250, 204, 21, 0.26);
        }
        #app #resultPanel .result-title.lose { color: #ffffff; }
        #app #resultPanel .result-title.win  { color: #6ee7b7; }
        #app #resultPanel .result-sub {
            font-size: clamp(14px, 1.55vw, 20px);
            font-weight: 800;
            color: #fbbf24;
            margin-top: 8px;
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
        }
        #app #resultPanel .result-stats {
            display: flex; justify-content: center; flex-wrap: wrap;
            gap: clamp(20px, 3.4vw, 52px);
            margin: 16px 0 10px; color: #94a3b8;
        }
        #app #resultPanel .result-stats .number {
            font-size: clamp(18px, 2vw, 26px); font-weight: 900; color: #e9e6f5;
        }
        #app #resultPanel .result-stats .label {
            font-size: 11px; letter-spacing: 1.4px; margin-top: 2px; opacity: 0.8;
        }
        #app #resultPanel .result-time {
            font-size: clamp(12px, 1.3vw, 15px); color: #8b93a7; margin-bottom: 16px;
        }
        #app #resultPanel .result-time span { color: #7dd3fc; font-weight: 700; }
        #app #resultPanel #restartBtn {
            padding: 12px 46px;
            font-size: clamp(15px, 1.5vw, 19px);
            font-weight: 800;
            letter-spacing: 1px;
            color: #fff;
            border: none;
            border-radius: 40px;
            background: linear-gradient(180deg, #7c8bff 0%, #4f46e5 100%);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
        }
        #app #resultPanel #restartBtn:hover {
            transform: translateY(-2px);
            filter: brightness(1.08);
            box-shadow: 0 14px 38px rgba(99, 102, 241, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        }
        #app #resultPanel #restartBtn:active { transform: translateY(0) scale(0.98); }

        /* ---- 结算面板：本局错题提醒 ---- */
        #app #resultPanel .wrong-review {
            margin: 0 auto 14px;
            max-width: 560px;
            text-align: left;
            background: rgba(248, 113, 113, 0.08);
            border: 1px solid rgba(248, 113, 113, 0.28);
            border-radius: 14px;
            padding: 9px 14px 10px;
        }
        #app #resultPanel .wr-head {
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px; flex-wrap: wrap;
        }
        #app #resultPanel .wr-title {
            font-size: 14px; font-weight: 800; color: #fca5a5; letter-spacing: 0.3px;
        }
        #app #resultPanel .wr-title b { color: #fecaca; font-size: 16px; }
        #app #resultPanel .wr-tip {
            font-size: 11px; font-weight: 700; color: #86efac;
            background: rgba(52, 211, 153, 0.12);
            border: 1px solid rgba(52, 211, 153, 0.3);
            border-radius: 20px; padding: 2px 9px; white-space: nowrap;
        }
        #app #resultPanel .wr-list {
            list-style: none; margin: 7px 0 0; padding: 0;
            display: flex; flex-direction: column; gap: 5px;
        }
        #app #resultPanel .wr-list li {
            font-size: 13px; line-height: 1.35; color: #d7d3e6;
            display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
        }
        #app #resultPanel .wr-list .wr-word { font-weight: 800; color: #ffffff; }
        #app #resultPanel .wr-list .wr-arrow { color: #64748b; font-size: 11px; }
        #app #resultPanel .wr-list .wr-ans { font-weight: 800; color: #86efac; }
        #app #resultPanel .wr-list .wr-mean { color: #94a3b8; font-size: 12px; }
        #app #resultPanel .wr-total {
            margin-top: 7px; font-size: 12px; color: #94a3b8;
        }
        #app #resultPanel .wr-total b { color: #fbbf24; }

        /* ---- 结算面板：底部按钮组 ---- */
        #app #resultPanel .result-btns {
            display: flex; align-items: center; justify-content: center;
            gap: 12px; flex-wrap: wrap;
        }
        #app #resultPanel .btn-ghost {
            display: inline-block; text-decoration: none;
            padding: 12px 30px;
            font-size: clamp(14px, 1.4vw, 17px); font-weight: 800; letter-spacing: 1px;
            color: #e9e6f5;
            border: 1.5px solid rgba(250, 204, 21, 0.45);
            border-radius: 40px;
            background: rgba(250, 204, 21, 0.08);
            transition: transform 0.15s, background 0.2s, border-color 0.2s;
        }
        #app #resultPanel .btn-ghost:hover {
            transform: translateY(-2px);
            background: rgba(250, 204, 21, 0.16);
            border-color: rgba(250, 204, 21, 0.75);
        }
        #app #resultPanel .btn-ghost:active { transform: translateY(0) scale(0.98); }

        /* 结算时人物留在台上：居中、抬高、放大，面板压住下半身 */
        #app.is-over .punish-stage {
            bottom: 26%;   /* 仅作兜底，实际值由 engine.js 量面板高度后内联覆盖 */
            transform: translateX(-50%) scale(var(--faceScale, 1));
            transition: bottom 0.55s cubic-bezier(0.3, 0.9, 0.3, 1), transform 0.55s cubic-bezier(0.3, 0.9, 0.3, 1);
        }
        #app.is-over .face-img { width: 250px; height: 333px; }

        @media (max-width: 560px) {
            #app #resultPanel { bottom: 5%; padding: 20px 20px 18px; border-radius: 20px; }
            #app #resultPanel .rp-corner { font-size: 24px; top: -13px; }
            #app #resultPanel .rp-left { left: 16px; }
            #app #resultPanel .rp-right { right: 16px; }
            #app #resultPanel .result-stats { gap: 18px; margin: 12px 0 8px; }
            #app #resultPanel .result-time { margin-bottom: 12px; }
            #app #resultPanel #restartBtn { padding: 11px 34px; }
            /* 关末错题区在小屏收紧，别把「再来一局」顶出屏幕 */
            #app #resultPanel .wrong-review { padding: 7px 11px 8px; margin-bottom: 10px; border-radius: 11px; }
            #app #resultPanel .wr-list { margin-top: 5px; gap: 3px; }
            #app #resultPanel .wr-list li { font-size: 12px; }
            #app #resultPanel .wr-total { margin-top: 5px; font-size: 11px; }
            #app #resultPanel .result-btns { gap: 8px; }
            #app #resultPanel #restartBtn { padding: 11px 24px; }
            #app #resultPanel .btn-ghost { padding: 11px 16px; font-size: 13px; }
            #app.is-over .punish-stage { bottom: 33%; }
            #app.is-over .face-img { width: 196px; height: 261px; }
            #app .lives-badge { font-size: 0.72rem; padding: 3px 6px; letter-spacing: 1px; }
        }

        /* ================= 时间到：贴一只会摇的闹钟 ================= */
        #app .time-up-overlay {
            position: relative; z-index: 35;
            display: none; text-align: center;
            padding: 22px 20px 0;
        }
        #app .alarm-clock {
            width: clamp(120px, 15vw, 178px);
            aspect-ratio: 1 / 1;
            margin: 0 auto 2px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            background-image: url('/mz_art/prop-alarm.png');
            background-image: image-set(
                url('/mz_art/prop-alarm.webp') type('image/webp'),
                url('/mz_art/prop-alarm.png') type('image/png')
            );
            filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
            animation: alarmRing 0.42s ease-in-out infinite;
            transform-origin: 50% 30%;
        }
        @keyframes alarmRing {
            0%, 100% { transform: rotate(-4deg) scale(1); }
            50%      { transform: rotate(4deg) scale(1.03); }
        }
        #app .time-up-overlay h2 {
            font-size: clamp(26px, 3.4vw, 42px);
            font-weight: 900;
            color: #ffffff;
            letter-spacing: 1px;
            line-height: 1.15;
            margin: 0;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.45);
            paint-order: stroke fill;
            text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), 0 0 40px rgba(248, 113, 113, 0.45);
        }
        #app .time-up-overlay p {
            font-size: clamp(14px, 1.5vw, 20px);
            font-weight: 700;
            color: #c7c2e0;
            margin-top: 8px;
        }
        #app .time-up-overlay #timeUpResultBtn {
            margin-top: 18px;
            padding: 12px 40px;
            font-size: clamp(15px, 1.5vw, 19px);
            font-weight: 800;
            letter-spacing: 1px;
            color: #fff;
            border: none;
            border-radius: 40px;
            background: linear-gradient(180deg, #7c8bff 0%, #4f46e5 100%);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: transform 0.15s, filter 0.2s;
        }
        #app .time-up-overlay #timeUpResultBtn:hover { transform: translateY(-2px); filter: brightness(1.08); }

        /* 时间到时人物在下面，稍微放大一点，别显得空 */
        #app.is-timeup .face-img { width: 234px; height: 312px; }
        #app #muteBtn { padding: 8px 15px; font-size: 0.95rem; line-height: 1; }
        #app #muteBtn.muted { opacity: 0.55; }
        @media (max-width: 560px) {
            #app.is-timeup .face-img { width: 186px; height: 248px; }
            #app .time-up-overlay { padding-top: 16px; }
        }
        /* ================= 矮窗口：结算面板收紧，给上面的人像腾地方 ================= */
        @media (min-width: 561px) and (max-height: 660px) {
            #app #resultPanel { padding: 14px 30px 12px; border-radius: 20px; }
            #app #resultPanel .rp-corner { font-size: 24px; top: -14px; }
            #app #resultPanel .rp-left { left: 18px; }
            #app #resultPanel .rp-right { right: 18px; }
            #app #resultPanel .result-title { font-size: 1.16rem; margin: 3px 0 2px; }
            #app #resultPanel .result-sub { font-size: 0.76rem; margin-bottom: 4px; }
            #app #resultPanel .result-stats { margin: 7px 0 8px; gap: 20px; }
            #app #resultPanel .result-stats .number { font-size: 1.02rem; }
            #app #resultPanel .result-stats .label { font-size: 0.6rem; letter-spacing: 0.5px; }
            #app #resultPanel .result-time { margin-bottom: 7px; font-size: 0.74rem; }
            #app #resultPanel .wrong-review { padding: 6px 10px 7px; margin-bottom: 7px; border-radius: 10px; }
            #app #resultPanel .wr-head { font-size: 0.72rem; }
            #app #resultPanel .wr-list { margin-top: 4px; gap: 2px; }
            #app #resultPanel .wr-list li { font-size: 11.5px; }
            #app #resultPanel .wr-total { margin-top: 3px; font-size: 10.5px; }
            #app #resultPanel .result-btns { gap: 10px; }
            #app #resultPanel #restartBtn,
            #app #resultPanel .btn-ghost { padding: 9px 24px; font-size: 13px; }
        }

        /* ================= 封面认输：吓一跳 → 转身跑没影 ================= */
        #warningOverlay .hero.hero-alt { animation: none; }
        /* 跑完偷偷溜回来，别硬生生跳出来 */
        #warningOverlay .hero.hero-back { animation: heroBack 0.62s cubic-bezier(0.22, 0.9, 0.3, 1.2) both; }
        @keyframes heroBack {
            from { opacity: 0; transform: translateY(14px) scale(0.94); }
            60%  { opacity: 1; transform: translateY(-3px) scale(1.012); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        /* 一哆嗦 */
        #warningOverlay .hero.hero-scare { animation: heroScare 0.62s ease-in-out; }
        @keyframes heroScare {
            0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
            14% { transform: translate(-8px, 3px) scale(1.05) rotate(-2.4deg); }
            32% { transform: translate(8px, -3px) scale(1.065) rotate(2.4deg); }
            52% { transform: translate(-6px, 2px) scale(1.045) rotate(-1.4deg); }
            74% { transform: translate(5px, -1px) scale(1.03) rotate(0.8deg); }
        }
        /* 越跑越远：先顿一下再窜出去，末了缩成一个小点淡掉 */
        #warningOverlay .hero.hero-run { animation: heroRunAway 1.4s cubic-bezier(0.45, 0.03, 0.85, 0.35) forwards; }
        @keyframes heroRunAway {
            0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
            14%  { transform: translate(1.2vw, -0.8vh) scale(0.94) rotate(-3deg); opacity: 1; }
            42%  { transform: translate(11vw, -6vh) scale(0.52) rotate(-5deg); opacity: 0.92; }
            72%  { transform: translate(23vw, -13vh) scale(0.27) rotate(-6deg); opacity: 0.7; }
            100% { transform: translate(33vw, -19vh) scale(0.12) rotate(-7deg); opacity: 0; }
        }
