/* ============================================================
   AuraDraw2 · 全局样式（三主题自适应：暗夜极光 / 晴空浅色 / 水墨丹青）
   字体：Noto Sans SC + Noto Serif SC（水墨展示字）+ Space Grotesk。
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
    --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
    --font-num: "Space Grotesk", "Noto Sans SC", ui-monospace, "SF Mono",
        SFMono-Regular, Menlo, Consolas, monospace;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;
    --dur: 0.22s;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 主题变量：暗夜极光 ---------- */
:root,
[data-theme="dark"] {
    --bg: #05060d;
    --bg-grid: rgba(148, 163, 184, 0.08);
    --orb-1: rgba(139, 92, 246, 0.28);
    --orb-2: rgba(34, 211, 238, 0.22);
    --orb-3: rgba(244, 114, 182, 0.16);
    --surface: rgba(17, 20, 36, 0.62);
    --surface-2: rgba(25, 30, 52, 0.78);
    --surface-3: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(167, 139, 250, 0.36);
    --specular: inset 0 1px 0 rgba(255, 255, 255, 0.13);
    --text-1: #f4f6ff;
    --text-2: #a5aec9;
    --text-3: #6c7592;
    --text-on-accent: #ffffff;
    --accent-a: #a78bfa;
    --accent-b: #22d3ee;
    --accent-gold: #fbbf24;
    --accent-warm: #f97316;
    --accent-emerald: #10b981;
    --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 42%, #22d3ee 100%);
    --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ec4899 100%);
    --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --hero-title-grad: linear-gradient(125deg, #c4b5fd 0%, #8b5cf6 32%, #38bdf8 72%, #34d399 100%);
    --hero-title-shadow: drop-shadow(0 8px 28px rgba(139, 92, 246, 0.35));
    --accent-shadow: 0 6px 20px rgba(99, 102, 241, 0.40);
    --accent-shadow-hover: 0 10px 30px rgba(99, 102, 241, 0.50);
    --logo-shadow: drop-shadow(0 3px 10px rgba(99, 102, 241, 0.42));
    --hero-logo-shadow: drop-shadow(0 10px 26px rgba(99, 102, 241, 0.42));
    --success: #34d399;
    --danger: #fb7185;
    --danger-bg: rgba(251, 113, 133, 0.13);
    --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.32);
    --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.48), var(--specular);
    --glow: 0 0 0 1px rgba(139, 92, 246, 0.32), 0 14px 40px rgba(99, 102, 241, 0.28);
    --modal-backdrop: rgba(4, 6, 16, 0.72);
    --modal-bg: color-mix(in srgb, var(--surface-2) 92%, var(--bg));
    --modal-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), var(--specular);
    --drum-bg: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.65) 65%, rgba(5, 8, 22, 0.92));
    --reactor-ring-grad: conic-gradient(from 0deg, transparent 0%, var(--accent-a) 30%, var(--accent-b) 62%, #34d399 84%, transparent 100%);
    --drum-back-ring: conic-gradient(from 120deg, transparent 0%, #f59e0b 32%, #ec4899 65%, transparent 90%);
    --mini-ball-front: radial-gradient(circle at 32% 28%, #c4b5fd, #6366f1 48%, #312e81 100%);
    --mini-ball-back: radial-gradient(circle at 32% 28%, #fde68a, #f97316 48%, #b91c1c 100%);
    --ball-front-bg: radial-gradient(circle at 32% 28%, #a78bfa 0%, #6366f1 46%, #2563eb 100%);
    --ball-front-shadow: inset 0 -5px 10px rgba(15, 23, 42, 0.38), 0 6px 16px rgba(99, 102, 241, 0.40);
    --ball-back-bg: radial-gradient(circle at 32% 28%, #fcd34d 0%, #f97316 48%, #dc2626 100%);
    --ball-back-shadow: inset 0 -5px 10px rgba(124, 45, 18, 0.42), 0 6px 16px rgba(249, 115, 22, 0.42);
    --die-bg: linear-gradient(145deg, #ffffff 0%, #e8edf9 100%);
    --die-border: rgba(255, 255, 255, 0.85);
    --die-shadow: 0 10px 24px rgba(15, 23, 42, 0.32), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    --die-3d-bg: linear-gradient(145deg, #ffffff 0%, #edf2fc 62%, #d8e1f3 100%);
    --die-3d-border: rgba(148, 163, 184, 0.55);
    --die-pip: #1e293b;
    --die-pip-accent: #e11d48;
    --coin-heads-bg: linear-gradient(145deg, #fbbf24 0%, #f59e0b 48%, #d97706 100%);
    --coin-tails-bg: linear-gradient(145deg, #8b5cf6 0%, #4f46e5 52%, #06b6d4 100%);
    --coin-idle-bg: linear-gradient(145deg, rgba(148, 163, 184, 0.45), rgba(71, 85, 105, 0.65));
    --coin-edge-bg: linear-gradient(90deg, #b45309 0%, #fde68a 35%, #92400e 65%, #f59e0b 100%);
    --coin-ring-border: rgba(255, 255, 255, 0.48);
    --arena-dice-bg: radial-gradient(circle at 50% 68%, rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0.38) 72%);
    --arena-coin-bg: radial-gradient(circle at 50% 72%, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.38) 72%);
    --tray-bg: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.22) 0%, rgba(15, 23, 42, 0.55) 72%);
    --tray-border: rgba(168, 85, 247, 0.42);
    --coin-pad-bg: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.24) 0%, rgba(15, 23, 42, 0.50) 72%);
    --coin-pad-border: rgba(251, 191, 36, 0.38);
    --wheel-0: #7c3aed;
    --wheel-1: #0891b2;
    --wheel-2: #f59e0b;
    --wheel-3: #ec4899;
    --wheel-4: #10b981;
    --wheel-5: #4f46e5;
    --wheel-6: #f97316;
    --wheel-7: #06b6d4;
    --wheel-stroke: rgba(255, 255, 255, 0.28);
    --wheel-text: #ffffff;
    --wheel-hub-bg: #0f172a;
    --wheel-hub-stroke: rgba(255, 255, 255, 0.65);
    --wheel-hub-dot: #22d3ee;
    --wheel-ring-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(34, 211, 238, 0.45));
    --wheel-pointer: #fbbf24;
    --logo-bg-1: #8b5cf6;
    --logo-bg-2: #4f46e5;
    --logo-bg-3: #06b6d4;
    --logo-ring-1: #e9d5ff;
    --logo-ring-2: #ffffff;
    --logo-ring-3: #67e8f9;
    --logo-wave-1: #67e8f9;
    --logo-wave-2: #ffffff;
    --logo-wave-3: #fde68a;
    --logo-frame: rgba(255, 255, 255, 0.22);
    --logo-a: #ffffff;
    --logo-dot-1: #ffffff;
    --logo-dot-2: #67e8f9;
    --logo-dot-3: #e9d5ff;
    --cup-body-1: #3a2d6e;
    --cup-body-2: #291f52;
    --cup-body-3: #473884;
    --cup-body-4: #1e163d;
    --cup-gold-1: #d97706;
    --cup-gold-2: #fde047;
    --cup-gold-3: #fbbf24;
    --cup-gold-4: #b45309;
    --cup-rim-fill: #231a45;
    --cup-stroke: #17112e;
    --cup-gloss: rgba(139, 92, 246, 0.22);
    --cup-band-stroke: #78350f;
    --cup-bottom-fill: #17112b;
    --cup-bottom-stroke: #92400e;
    --cup-shadow: rgba(10, 8, 24, 0.35);
    --wave-primary: #e2e8f0;
    --wave-accent: #22d3ee;
    --spark-1: #fde68a;
    --spark-2: #fbbf24;
    --sleeve-cuff-1: #ffffff;
    --sleeve-cuff-2: #cbd5e1;
    --sleeve-cuff-stroke: #334155;
    --sleeve-coat-1: #364152;
    --sleeve-coat-2: #232b38;
    --sleeve-coat-stroke: #475569;
    color-scheme: dark;
}

/* ---------- 主题变量：晴空浅色 ---------- */
[data-theme="light"] {
    --bg: #f1f4fc;
    --bg-grid: rgba(71, 85, 105, 0.11);
    --orb-1: rgba(139, 92, 246, 0.20);
    --orb-2: rgba(34, 211, 238, 0.20);
    --orb-3: rgba(251, 146, 60, 0.16);
    --surface: rgba(255, 255, 255, 0.76);
    --surface-2: rgba(255, 255, 255, 0.94);
    --surface-3: rgba(15, 23, 42, 0.08);
    --border: rgba(30, 41, 59, 0.10);
    --border-strong: rgba(124, 58, 237, 0.34);
    --specular: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    --text-1: #141827;
    --text-2: #475069;
    --text-3: #7f88a3;
    --text-on-accent: #ffffff;
    --accent-a: #7c3aed;
    --accent-b: #0891b2;
    --accent-gold: #d97706;
    --accent-warm: #ea580c;
    --accent-emerald: #059669;
    --grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #0891b2 100%);
    --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ea580c 52%, #db2777 100%);
    --grad-emerald: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    --hero-title-grad: linear-gradient(125deg, #6d28d9 0%, #4f46e5 40%, #0284c7 80%, #059669 100%);
    --hero-title-shadow: drop-shadow(0 6px 20px rgba(79, 70, 229, 0.18));
    --accent-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
    --accent-shadow-hover: 0 10px 26px rgba(79, 70, 229, 0.38);
    --logo-shadow: drop-shadow(0 3px 8px rgba(79, 70, 229, 0.28));
    --hero-logo-shadow: drop-shadow(0 10px 22px rgba(79, 70, 229, 0.26));
    --success: #059669;
    --danger: #e11d48;
    --danger-bg: rgba(225, 29, 72, 0.08);
    --shadow-1: 0 2px 10px rgba(30, 41, 59, 0.08);
    --shadow-2: 0 14px 36px rgba(30, 41, 59, 0.10), var(--specular);
    --glow: 0 0 0 1px rgba(124, 58, 237, 0.22), 0 14px 36px rgba(124, 58, 237, 0.16);
    --modal-backdrop: rgba(15, 23, 42, 0.42);
    --modal-bg: rgba(255, 255, 255, 0.94);
    --modal-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), var(--specular);
    --drum-bg: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), rgba(226, 232, 252, 0.72) 68%, rgba(199, 210, 254, 0.58));
    --reactor-ring-grad: conic-gradient(from 0deg, transparent 0%, #7c3aed 30%, #0891b2 62%, #059669 84%, transparent 100%);
    --drum-back-ring: conic-gradient(from 120deg, transparent 0%, #f59e0b 32%, #db2777 65%, transparent 90%);
    --mini-ball-front: radial-gradient(circle at 32% 28%, #c4b5fd, #6366f1 48%, #3730a3 100%);
    --mini-ball-back: radial-gradient(circle at 32% 28%, #fde68a, #f97316 48%, #c2410c 100%);
    --ball-front-bg: radial-gradient(circle at 32% 28%, #a78bfa 0%, #6366f1 46%, #2563eb 100%);
    --ball-front-shadow: inset 0 -5px 10px rgba(30, 41, 59, 0.28), 0 6px 14px rgba(79, 70, 229, 0.28);
    --ball-back-bg: radial-gradient(circle at 32% 28%, #fcd34d 0%, #f97316 48%, #dc2626 100%);
    --ball-back-shadow: inset 0 -5px 10px rgba(124, 45, 18, 0.30), 0 6px 14px rgba(234, 88, 12, 0.28);
    --die-bg: linear-gradient(145deg, #ffffff 0%, #eef2fb 100%);
    --die-border: rgba(148, 163, 184, 0.35);
    --die-shadow: 0 8px 20px rgba(30, 41, 59, 0.16), inset 0 2px 4px rgba(255, 255, 255, 0.95);
    --die-3d-bg: linear-gradient(145deg, #ffffff 0%, #f1f5fd 62%, #dde6f7 100%);
    --die-3d-border: rgba(148, 163, 184, 0.55);
    --die-pip: #1e293b;
    --die-pip-accent: #e11d48;
    --coin-heads-bg: linear-gradient(145deg, #fbbf24 0%, #f59e0b 48%, #d97706 100%);
    --coin-tails-bg: linear-gradient(145deg, #8b5cf6 0%, #4f46e5 52%, #0891b2 100%);
    --coin-idle-bg: linear-gradient(145deg, #cbd5e1, #94a3b8);
    --coin-edge-bg: linear-gradient(90deg, #b45309 0%, #fde68a 35%, #92400e 65%, #f59e0b 100%);
    --coin-ring-border: rgba(255, 255, 255, 0.55);
    --arena-dice-bg: radial-gradient(circle at 50% 68%, rgba(124, 58, 237, 0.11), rgba(241, 245, 249, 0.88) 75%);
    --arena-coin-bg: radial-gradient(circle at 50% 72%, rgba(245, 158, 11, 0.12), rgba(241, 245, 249, 0.88) 75%);
    --tray-bg: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.14) 0%, rgba(203, 213, 225, 0.72) 74%);
    --tray-border: rgba(124, 58, 237, 0.34);
    --coin-pad-bg: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.18) 0%, rgba(203, 213, 225, 0.68) 74%);
    --coin-pad-border: rgba(217, 119, 6, 0.38);
    --wheel-0: #7c3aed;
    --wheel-1: #0891b2;
    --wheel-2: #f59e0b;
    --wheel-3: #ec4899;
    --wheel-4: #10b981;
    --wheel-5: #4f46e5;
    --wheel-6: #f97316;
    --wheel-7: #06b6d4;
    --wheel-stroke: rgba(255, 255, 255, 0.45);
    --wheel-text: #ffffff;
    --wheel-hub-bg: #1e293b;
    --wheel-hub-stroke: rgba(255, 255, 255, 0.85);
    --wheel-hub-dot: #38bdf8;
    --wheel-ring-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(8, 145, 178, 0.34));
    --wheel-pointer: #ea580c;
    --logo-bg-1: #7c3aed;
    --logo-bg-2: #4f46e5;
    --logo-bg-3: #0891b2;
    --logo-ring-1: #ede9fe;
    --logo-ring-2: #ffffff;
    --logo-ring-3: #a5f3fc;
    --logo-wave-1: #a5f3fc;
    --logo-wave-2: #ffffff;
    --logo-wave-3: #fde68a;
    --logo-frame: rgba(255, 255, 255, 0.30);
    --logo-a: #ffffff;
    --logo-dot-1: #ffffff;
    --logo-dot-2: #a5f3fc;
    --logo-dot-3: #ede9fe;
    --cup-body-1: #4c3b8e;
    --cup-body-2: #36286b;
    --cup-body-3: #5b48a3;
    --cup-body-4: #271c52;
    --cup-gold-1: #d97706;
    --cup-gold-2: #fde047;
    --cup-gold-3: #fbbf24;
    --cup-gold-4: #b45309;
    --cup-rim-fill: #2e225c;
    --cup-stroke: #1e1640;
    --cup-gloss: rgba(167, 139, 250, 0.28);
    --cup-band-stroke: #78350f;
    --cup-bottom-fill: #1f1740;
    --cup-bottom-stroke: #92400e;
    --cup-shadow: rgba(15, 23, 42, 0.25);
    --wave-primary: #475569;
    --wave-accent: #0891b2;
    --spark-1: #ea580c;
    --spark-2: #d97706;
    --sleeve-cuff-1: #ffffff;
    --sleeve-cuff-2: #e2e8f0;
    --sleeve-cuff-stroke: #475569;
    --sleeve-coat-1: #475569;
    --sleeve-coat-2: #334155;
    --sleeve-coat-stroke: #1e293b;
    color-scheme: light;
}

/* ---------- 主题变量：水墨丹青 ---------- */
[data-theme="ink"] {
    --font-display: "Noto Serif SC", "Songti SC", "STSong", "Kaiti SC", Georgia, serif;
    --bg: #f4efe6;
    --bg-grid: rgba(44, 48, 50, 0.08);
    --orb-1: rgba(42, 49, 52, 0.14);
    --orb-2: rgba(56, 90, 104, 0.13);
    --orb-3: rgba(181, 56, 42, 0.09);
    --surface: rgba(251, 248, 242, 0.86);
    --surface-2: rgba(246, 240, 230, 0.96);
    --surface-3: rgba(31, 35, 38, 0.08);
    --border: rgba(31, 35, 38, 0.15);
    --border-strong: rgba(31, 35, 38, 0.36);
    --specular: inset 0 1px 0 rgba(255, 253, 248, 0.85);
    --text-1: #1f2326;
    --text-2: #4b5256;
    --text-3: #7d8386;
    --text-on-accent: #fbf8f2;
    --accent-a: #2c3135;
    --accent-b: #385a68;
    --accent-gold: #a67c37;
    --accent-warm: #b5382a;
    --accent-emerald: #446552;
    --grad: linear-gradient(135deg, #2b3033 0%, #1d2124 55%, #384a52 100%);
    --grad-warm: linear-gradient(135deg, #c44636 0%, #a83226 55%, #84251c 100%);
    --grad-emerald: linear-gradient(135deg, #4b6e58 0%, #34524a 100%);
    --hero-title-grad: linear-gradient(130deg, #171a1c 0%, #2d3438 52%, #4a5a60 82%, #b5382a 100%);
    --hero-title-shadow: drop-shadow(0 4px 12px rgba(31, 35, 38, 0.14));
    --accent-shadow: 0 6px 16px rgba(31, 35, 38, 0.22);
    --accent-shadow-hover: 0 10px 24px rgba(31, 35, 38, 0.30);
    --logo-shadow: drop-shadow(0 3px 8px rgba(31, 35, 38, 0.22));
    --hero-logo-shadow: drop-shadow(0 8px 18px rgba(31, 35, 38, 0.20));
    --success: #3e6b53;
    --danger: #b5382a;
    --danger-bg: rgba(181, 56, 42, 0.09);
    --shadow-1: 0 2px 10px rgba(31, 35, 38, 0.08);
    --shadow-2: 0 12px 30px rgba(31, 35, 38, 0.09), var(--specular);
    --glow: 0 0 0 1px rgba(181, 56, 42, 0.28), 0 12px 28px rgba(31, 35, 38, 0.12);
    --modal-backdrop: rgba(24, 27, 29, 0.52);
    --modal-bg: #faf6ee;
    --modal-shadow: 0 24px 60px rgba(24, 27, 29, 0.26), var(--specular);
    --drum-bg: radial-gradient(circle at 32% 28%, rgba(255, 253, 248, 0.96), rgba(235, 228, 216, 0.85) 68%, rgba(214, 206, 194, 0.72));
    --reactor-ring-grad: conic-gradient(from 0deg, transparent 0%, #2c3135 28%, #385a68 58%, #b5382a 82%, transparent 100%);
    --drum-back-ring: conic-gradient(from 120deg, transparent 0%, #c44636 32%, #8e281d 68%, transparent 92%);
    --mini-ball-front: radial-gradient(circle at 32% 28%, #646c70, #2c3135 50%, #141719 100%);
    --mini-ball-back: radial-gradient(circle at 32% 28%, #df7a6b, #b5382a 50%, #741f16 100%);
    --ball-front-bg: radial-gradient(circle at 32% 28%, #5e666a 0%, #2b3033 48%, #141719 100%);
    --ball-front-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.42), 0 5px 14px rgba(31, 35, 38, 0.26);
    --ball-back-bg: radial-gradient(circle at 32% 28%, #e27a6a 0%, #b5382a 48%, #7a2117 100%);
    --ball-back-shadow: inset 0 -5px 10px rgba(84, 18, 12, 0.40), 0 5px 14px rgba(181, 56, 42, 0.28);
    --die-bg: linear-gradient(145deg, #fdfbf6 0%, #ece4d6 100%);
    --die-border: rgba(44, 48, 50, 0.24);
    --die-shadow: 0 8px 18px rgba(31, 35, 38, 0.16), inset 0 2px 4px rgba(255, 253, 248, 0.95);
    --die-3d-bg: linear-gradient(145deg, #fdfbf6 0%, #f1eadc 62%, #ded5c4 100%);
    --die-3d-border: rgba(44, 48, 50, 0.34);
    --die-pip: #1f2326;
    --die-pip-accent: #b5382a;
    --coin-heads-bg: linear-gradient(145deg, #c9a15a 0%, #9f7736 52%, #755320 100%);
    --coin-tails-bg: linear-gradient(145deg, #4b5d66 0%, #2e3c42 52%, #1d262b 100%);
    --coin-idle-bg: linear-gradient(145deg, #c7bfb2, #9b9284);
    --coin-edge-bg: linear-gradient(90deg, #6e5022 0%, #d9bc82 35%, #5c431b 65%, #a67c37 100%);
    --coin-ring-border: rgba(251, 248, 242, 0.56);
    --arena-dice-bg: radial-gradient(circle at 50% 68%, rgba(56, 90, 104, 0.10), rgba(235, 228, 215, 0.90) 76%);
    --arena-coin-bg: radial-gradient(circle at 50% 72%, rgba(166, 124, 55, 0.12), rgba(235, 228, 215, 0.90) 76%);
    --tray-bg: radial-gradient(ellipse at center, rgba(44, 49, 53, 0.12) 0%, rgba(206, 198, 185, 0.72) 74%);
    --tray-border: rgba(44, 49, 53, 0.30);
    --coin-pad-bg: radial-gradient(ellipse at center, rgba(166, 124, 55, 0.18) 0%, rgba(206, 198, 185, 0.72) 74%);
    --coin-pad-border: rgba(166, 124, 55, 0.42);
    --wheel-0: #2b3033;
    --wheel-1: #b5382a;
    --wheel-2: #3b5a68;
    --wheel-3: #9c6644;
    --wheel-4: #4b6e58;
    --wheel-5: #a67c37;
    --wheel-6: #6d4c5c;
    --wheel-7: #586366;
    --wheel-stroke: rgba(251, 248, 242, 0.62);
    --wheel-text: #fbf8f2;
    --wheel-hub-bg: #1f2326;
    --wheel-hub-stroke: #f4efe6;
    --wheel-hub-dot: #c94636;
    --wheel-ring-bg: linear-gradient(135deg, rgba(43, 48, 51, 0.45), rgba(181, 56, 42, 0.35));
    --wheel-pointer: #b5382a;
    --logo-bg-1: #343b3f;
    --logo-bg-2: #1f2326;
    --logo-bg-3: #2f4750;
    --logo-ring-1: #e8e1d5;
    --logo-ring-2: #fbf8f2;
    --logo-ring-3: #d99b91;
    --logo-wave-1: #e5d4b7;
    --logo-wave-2: #fbf8f2;
    --logo-wave-3: #d95d4c;
    --logo-frame: rgba(251, 248, 242, 0.28);
    --logo-a: #fbf8f2;
    --logo-dot-1: #fbf8f2;
    --logo-dot-2: #d95d4c;
    --logo-dot-3: #d8cfc0;
    --cup-body-1: #393f42;
    --cup-body-2: #24282b;
    --cup-body-3: #495154;
    --cup-body-4: #181b1d;
    --cup-gold-1: #9a7435;
    --cup-gold-2: #e0c58e;
    --cup-gold-3: #b8914c;
    --cup-gold-4: #6b4e1f;
    --cup-rim-fill: #1f2326;
    --cup-stroke: #131618;
    --cup-gloss: rgba(251, 248, 242, 0.16);
    --cup-band-stroke: #5c4119;
    --cup-bottom-fill: #15181a;
    --cup-bottom-stroke: #6e4e1e;
    --cup-shadow: rgba(20, 23, 25, 0.28);
    --wave-primary: #2c3135;
    --wave-accent: #b5382a;
    --spark-1: #b5382a;
    --spark-2: #a67c37;
    --sleeve-cuff-1: #f7f2e8;
    --sleeve-cuff-2: #ddd4c4;
    --sleeve-cuff-stroke: #495054;
    --sleeve-coat-1: #3b5058;
    --sleeve-coat-2: #28383f;
    --sleeve-coat-stroke: #1f2b30;
    color-scheme: light;
}

/* ---------- 基础 ---------- */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

::selection {
    background: color-mix(in srgb, var(--accent-a) 35%, transparent);
}

button {
    font: inherit;
}

a {
    color: var(--accent-a);
}

:focus-visible {
    outline: 2px solid var(--accent-a);
    outline-offset: 2px;
}

@media (pointer: fine) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-thumb {
        background: var(--surface-3);
        border-radius: 5px;
        border: 2px solid transparent;
        background-clip: content-box;
    }
    ::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* ---------- 极光动态背景 ---------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(86px);
    opacity: 0.9;
    will-change: transform;
}

.ambient-orb.orb-1 {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: var(--orb-1);
    animation: drift-a 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-2 {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -120px;
    background: var(--orb-2);
    animation: drift-b 22s ease-in-out infinite alternate;
}

.ambient-orb.orb-3 {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: 34%;
    background: var(--orb-3);
    animation: drift-a 25s ease-in-out infinite alternate-reverse;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--bg-grid) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 35%, transparent 100%);
}

@keyframes drift-a {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(42px, 28px, 0) scale(1.08);
    }
}

@keyframes drift-b {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-44px, 36px, 0) scale(1.06);
    }
}

/* ---------- 应用外壳 ---------- */
.app {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.page {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 106px 20px 56px;
}

.page-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-title {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.4px;
    background: linear-gradient(120deg, var(--text-1) 30%, var(--accent-a));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-sub {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
}

/* ---------- 导航（悬浮玻璃胶囊） ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 14px 20px 0;
    pointer-events: none;
}

.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    background: color-mix(in srgb, var(--surface-2) 76%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: var(--shadow-1), var(--specular);
    pointer-events: auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-1);
    padding: 6px 12px 6px 7px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.2px;
    transition: background var(--dur) var(--ease);
}

.nav-brand:hover {
    background: var(--surface);
}

.nav-brand.active {
    background: color-mix(in srgb, var(--accent-a) 16%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-a) 35%, transparent);
}

.brand-logo {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    filter: var(--logo-shadow);
    transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.nav-brand:hover .brand-logo {
    transform: scale(1.06);
}

.hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    filter: var(--hero-logo-shadow);
}

/* 品牌 Logo SVG 主题色映射 */
.logo-bg-1 { stop-color: var(--logo-bg-1); }
.logo-bg-2 { stop-color: var(--logo-bg-2); }
.logo-bg-3 { stop-color: var(--logo-bg-3); }
.logo-ring-1 { stop-color: var(--logo-ring-1); }
.logo-ring-2 { stop-color: var(--logo-ring-2); }
.logo-ring-3 { stop-color: var(--logo-ring-3); }
.logo-wave-1 { stop-color: var(--logo-wave-1); }
.logo-wave-2 { stop-color: var(--logo-wave-2); }
.logo-wave-3 { stop-color: var(--logo-wave-3); }
.logo-frame { stroke: var(--logo-frame); }
.logo-a { stroke: var(--logo-a); }
.logo-dot-1 { fill: var(--logo-dot-1); }
.logo-dot-2 { fill: var(--logo-dot-2); }
.logo-dot-3 { fill: var(--logo-dot-3); }

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-links button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.nav-links button:hover {
    color: var(--text-1);
    background: var(--surface);
}

.nav-links button.active {
    color: var(--text-on-accent);
    background: var(--grad);
    box-shadow: var(--accent-shadow);
}

/* 三主题切换胶囊（暗夜 / 浅色 / 水墨） */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    flex-shrink: 0;
}

.theme-opt {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    height: 30px;
    padding: 0 9px;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.theme-opt:hover {
    color: var(--text-1);
    background: var(--surface-3);
}

.theme-opt.active {
    color: var(--text-on-accent);
    background: var(--grad);
    box-shadow: var(--accent-shadow);
}

.nav .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ---------- 玻璃卡片 ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* ---------- 表单 ---------- */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.2px;
}

.input {
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    color: var(--text-1);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    outline: none;
    font-variant-numeric: tabular-nums;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease);
}

.input::placeholder {
    color: var(--text-3);
}

.input:hover:not(:disabled) {
    border-color: var(--border-strong);
}

.input:focus {
    border-color: var(--accent-a);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-a) 24%, transparent);
}

.input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.select-wrap {
    position: relative;
}

.select-wrap select.input {
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.select-wrap .chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-3);
    pointer-events: none;
}

.form .row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.form-error {
    margin: 0;
    font-size: 13px;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    word-break: break-word;
    animation: rise 0.25s var(--ease) both;
}

/* ---------- 按钮 ---------- */
.btn {
    position: relative;
    overflow: hidden;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--r-md);
    padding: 13px 26px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    transition: transform 0.14s var(--ease), box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease), border-color var(--dur) var(--ease),
        filter var(--dur) var(--ease);
}

.btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.985);
}

.btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.btn-primary {
    color: var(--text-on-accent);
    background: var(--grad);
    box-shadow: var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.65s var(--ease);
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: var(--accent-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover:not(:disabled)::after {
    transform: translateX(120%);
}

.btn-ghost {
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--text-1);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.btn-sm {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-weight: 600;
}

/* ---------- 加载动画 ---------- */
.spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- 首页 ---------- */
.home {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero {
    text-align: center;
    padding: 36px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-a);
    border: 1px solid color-mix(in srgb, var(--accent-a) 38%, transparent);
    background: color-mix(in srgb, var(--accent-a) 11%, transparent);
    border-radius: var(--r-pill);
    padding: 6px 16px;
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent-a) 18%, transparent);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 70%, transparent);
    animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 70%, transparent);
    }
    70% {
        box-shadow: 0 0 0 8px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.hero .title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(48px, 9.5vw, 72px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.04;
    background: var(--hero-title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: var(--hero-title-shadow);
}

.hero .subtitle {
    margin: 0;
    max-width: 520px;
    font-size: 15px;
    color: var(--text-2);
}

.entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.entry {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: var(--text-1);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.22s var(--ease), border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.entry::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}

.entry-random::before {
    background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent-a) 22%, transparent), transparent 65%);
}

.entry-lottery::before {
    background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent-warm) 22%, transparent), transparent 65%);
}

.entry-games::before {
    background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent-emerald) 22%, transparent), transparent 65%);
}

.entry:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--glow);
}

.entry-lottery:hover {
    border-color: color-mix(in srgb, var(--accent-warm) 45%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-warm) 28%, transparent),
        0 14px 40px color-mix(in srgb, var(--accent-warm) 20%, transparent);
}

.entry-games:hover {
    border-color: color-mix(in srgb, var(--accent-emerald) 45%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-emerald) 28%, transparent),
        0 14px 40px color-mix(in srgb, var(--accent-emerald) 20%, transparent);
}

.entry:hover::before {
    opacity: 1;
}

.entry-head {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.entry-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-accent);
    box-shadow: var(--accent-shadow);
}

.entry-lottery .entry-icon {
    background: var(--grad-warm);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-warm) 36%, transparent);
}

.entry-games .entry-icon {
    background: var(--grad-emerald);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-emerald) 34%, transparent);
}

.entry-icon .icon {
    width: 22px;
    height: 22px;
}

.entry-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-a);
    background: color-mix(in srgb, var(--accent-a) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-a) 30%, transparent);
    border-radius: var(--r-pill);
    padding: 3px 10px;
}

.entry-lottery .entry-pill {
    color: var(--accent-warm);
    background: color-mix(in srgb, var(--accent-warm) 13%, transparent);
    border-color: color-mix(in srgb, var(--accent-warm) 34%, transparent);
}

.entry-games .entry-pill {
    color: var(--accent-emerald);
    background: color-mix(in srgb, var(--accent-emerald) 13%, transparent);
    border-color: color-mix(in srgb, var(--accent-emerald) 34%, transparent);
}

.entry-title {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 800;
}

.entry-desc {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
}

.entry-arrow {
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--text-3);
    transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.entry-arrow .icon {
    width: 18px;
    height: 18px;
}

.entry:hover .entry-arrow {
    transform: translateX(4px);
    color: var(--accent-a);
}

.entry-lottery:hover .entry-arrow {
    color: var(--accent-warm);
}

.entry-games:hover .entry-arrow {
    color: var(--accent-emerald);
}

.intro h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
}

.intro p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
}

.intro p:last-child {
    margin-bottom: 0;
}

.strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.strip-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--specular);
}

.strip-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-a);
    background: color-mix(in srgb, var(--accent-a) 14%, transparent);
    margin-bottom: 2px;
}

.strip-icon .icon {
    width: 16px;
    height: 16px;
}

.strip-item b {
    font-size: 13px;
    font-weight: 700;
}

.strip-item span {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.55;
}

.foot {
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    padding: 8px 0 4px;
}

/* ---------- 动画弹窗通用容器 ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--modal-backdrop);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: modal-fade 0.22s var(--ease) both;
}

.modal-dialog {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: var(--modal-bg);
    box-shadow: var(--modal-shadow);
    animation: modal-pop 0.3s var(--ease) both;
}

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.modal-hint {
    font-size: 12px;
    color: var(--text-3);
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 随机数极光熵源采样弹窗 ---------- */
.random-stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-color: color-mix(in srgb, var(--accent-a) 32%, var(--border));
    background-image: radial-gradient(ellipse 90% 55% at 50% 0%, color-mix(in srgb, var(--accent-b) 14%, transparent), transparent 68%);
}

.random-stage.is-sampling {
    border-color: color-mix(in srgb, var(--accent-b) 50%, transparent);
}

.random-stage.is-sampling .status-dot {
    background: var(--accent-b);
    box-shadow: 0 0 10px var(--accent-b);
    animation: pulse-dot 1.1s ease-out infinite;
}

.random-stage.is-revealing .status-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.random-stage.is-done {
    border-color: color-mix(in srgb, var(--success) 46%, transparent);
}

.random-stage.is-done .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.random-range-pill {
    align-self: center;
    font-family: var(--font-num);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 5px 14px;
    font-variant-numeric: tabular-nums;
}

.reactor {
    position: relative;
    width: 100%;
    min-height: 224px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.reactor-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.reactor-ring-outer {
    width: 214px;
    height: 214px;
    border: 1.5px dashed color-mix(in srgb, var(--accent-a) 40%, transparent);
    animation: spin 16s linear infinite;
}

.reactor-ring-inner {
    width: 186px;
    height: 186px;
    padding: 2.5px;
    background: var(--reactor-ring-grad);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.72;
    animation: spin 4.5s linear infinite reverse;
}

.random-stage.is-sampling .reactor-ring-outer {
    animation-duration: 3.4s;
    border-color: color-mix(in srgb, var(--accent-b) 55%, transparent);
}

.random-stage.is-sampling .reactor-ring-inner {
    opacity: 1;
    animation-duration: 1.25s;
}

.random-stage.is-done .reactor-ring-inner {
    opacity: 0.9;
    animation-duration: 9s;
}

.reactor-core {
    position: relative;
    z-index: 2;
    min-width: 162px;
    max-width: 100%;
    min-height: 162px;
    padding: 18px 22px;
    border-radius: 26px;
    background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent-a) 16%, var(--surface-2)), var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--accent-a) 30%, var(--border));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), var(--specular);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.spectrum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 44px;
}

.spec-bar {
    width: 4px;
    height: 14px;
    border-radius: var(--r-pill);
    background: var(--grad);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent-b) 55%, transparent);
    animation: eq-wave 0.9s ease-in-out infinite alternate;
}

.spec-bar.b1 { animation-delay: 0.00s; animation-duration: 0.62s; }
.spec-bar.b2 { animation-delay: 0.12s; animation-duration: 0.78s; }
.spec-bar.b3 { animation-delay: 0.24s; animation-duration: 0.56s; }
.spec-bar.b4 { animation-delay: 0.08s; animation-duration: 0.84s; }
.spec-bar.b5 { animation-delay: 0.18s; animation-duration: 0.52s; }
.spec-bar.b6 { animation-delay: 0.30s; animation-duration: 0.74s; }
.spec-bar.b7 { animation-delay: 0.14s; animation-duration: 0.60s; }
.spec-bar.b8 { animation-delay: 0.26s; animation-duration: 0.80s; }
.spec-bar.b9 { animation-delay: 0.04s; animation-duration: 0.66s; }

@keyframes eq-wave {
    0%   { transform: scaleY(0.45); opacity: 0.55; }
    100% { transform: scaleY(2.6); opacity: 1; }
}

.reel-window {
    width: 152px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.reel-col {
    font-family: var(--font-num);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    white-space: nowrap;
    color: var(--accent-b);
    opacity: 0.85;
}

.reel-col.r1 { animation: reel-left 1.3s linear infinite; }
.reel-col.r2 { color: var(--accent-a); animation: reel-right 1.1s linear infinite; }
.reel-col.r3 { animation: reel-left 1.5s linear infinite; }

@keyframes reel-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes reel-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.reveal-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reveal-digit {
    min-width: 44px;
    height: 58px;
    padding: 0 8px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-on-accent);
    background: var(--grad);
    box-shadow: var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    animation: ball-pop 0.42s var(--bounce) both;
}

.reveal-digit.is-pending {
    color: var(--text-3);
    background: var(--surface);
    border: 1.5px dashed color-mix(in srgb, var(--text-3) 45%, transparent);
    box-shadow: none;
    animation: none;
}

.reveal-digits.is-compact {
    gap: 5px;
}

.reveal-digits.is-compact .reveal-digit {
    min-width: 30px;
    height: 44px;
    font-size: 22px;
    border-radius: 10px;
}

/* ---------- 大乐透开奖舞台 ---------- */
.lotto-stage {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-color: color-mix(in srgb, var(--accent-a) 26%, var(--border));
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--accent-a) 12%, transparent), transparent 68%),
        var(--surface);
}

.lotto-stage.is-spinning {
    border-color: color-mix(in srgb, var(--accent-b) 48%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-b) 25%, transparent),
        0 18px 46px color-mix(in srgb, var(--accent-b) 16%, transparent), var(--specular);
}

.lotto-stage.is-done {
    border-color: color-mix(in srgb, var(--success) 42%, transparent);
}

.stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.stage-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stage-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.stage-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 4px 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-3);
}

.lotto-stage.is-spinning .status-dot {
    background: var(--accent-b);
    box-shadow: 0 0 10px var(--accent-b);
    animation: pulse-dot 1.1s ease-out infinite;
}

.lotto-stage.is-revealing .status-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.lotto-stage.is-done .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.stage-drums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    padding: 4px 0;
}

.drum-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drum-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 0.4px;
}

.drum {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drum-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-a) 32%, var(--accent-b) 62%, transparent 88%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.45;
    transition: opacity 0.3s var(--ease);
}

.drum-back .drum-ring {
    background: var(--drum-back-ring);
}

.lotto-stage.is-spinning .drum-ring {
    opacity: 1;
    animation: spin 1.15s linear infinite;
}

.lotto-stage.is-revealing .drum-ring {
    opacity: 0.85;
    animation: spin 3.2s linear infinite;
}

.drum-glass {
    position: relative;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background: var(--drum-bg);
    border: 1px solid var(--border);
    box-shadow: inset 0 8px 22px rgba(255, 255, 255, 0.14),
        inset 0 -14px 26px rgba(0, 0, 0, 0.34),
        0 10px 26px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

/* 玻璃反光弧 */
.drum-glass::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 20px;
    width: 56px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
    transform: rotate(-24deg);
    pointer-events: none;
}

.mini-ball {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    box-shadow: inset -3px -4px 6px rgba(0, 0, 0, 0.32),
        inset 2px 3px 4px rgba(255, 255, 255, 0.45),
        0 3px 6px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transition: transform 0.4s var(--ease);
}

.drum-front .mini-ball {
    background: var(--mini-ball-front);
}

.drum-back .mini-ball {
    background: var(--mini-ball-back);
}

/* 待机静态球位（按舱体百分比定位，桌面与移动端均不裁切） */
.mini-ball.m1 { left: 18%; top: 67%; }
.mini-ball.m2 { left: 40%; top: 71%; }
.mini-ball.m3 { left: 61%; top: 67%; }
.mini-ball.m4 { left: 26%; top: 53%; }
.mini-ball.m5 { left: 48%; top: 54%; }
.mini-ball.m6 { left: 66%; top: 51%; }
.mini-ball.m7 { left: 36%; top: 38%; }
.mini-ball.m8 { left: 56%; top: 39%; }

/* 摇奖高速搅拌轨道 */
.lotto-stage.is-spinning .mini-ball.m1 { animation: mix-a 0.56s linear infinite; }
.lotto-stage.is-spinning .mini-ball.m2 { animation: mix-b 0.48s linear infinite; }
.lotto-stage.is-spinning .mini-ball.m3 { animation: mix-c 0.62s linear infinite; }
.lotto-stage.is-spinning .mini-ball.m4 { animation: mix-d 0.52s linear infinite; }
.lotto-stage.is-spinning .mini-ball.m5 { animation: mix-a 0.44s linear infinite reverse; }
.lotto-stage.is-spinning .mini-ball.m6 { animation: mix-b 0.58s linear infinite reverse; }
.lotto-stage.is-spinning .mini-ball.m7 { animation: mix-c 0.50s linear infinite reverse; }
.lotto-stage.is-spinning .mini-ball.m8 { animation: mix-d 0.64s linear infinite reverse; }

/* 揭晓期缓速余震搅拌 */
.lotto-stage.is-revealing .mini-ball.m1 { animation: mix-a 1.4s ease-in-out infinite; }
.lotto-stage.is-revealing .mini-ball.m2 { animation: mix-b 1.2s ease-in-out infinite; }
.lotto-stage.is-revealing .mini-ball.m3 { animation: mix-c 1.5s ease-in-out infinite; }
.lotto-stage.is-revealing .mini-ball.m4 { animation: mix-d 1.3s ease-in-out infinite; }
.lotto-stage.is-revealing .mini-ball.m5 { animation: mix-a 1.25s ease-in-out infinite reverse; }
.lotto-stage.is-revealing .mini-ball.m6 { animation: mix-b 1.45s ease-in-out infinite reverse; }
.lotto-stage.is-revealing .mini-ball.m7 { animation: mix-c 1.35s ease-in-out infinite reverse; }
.lotto-stage.is-revealing .mini-ball.m8 { animation: mix-d 1.55s ease-in-out infinite reverse; }

@keyframes mix-a {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(52px, -64px, 0) rotate(120deg); }
    50%  { transform: translate3d(18px, -78px, 0) rotate(240deg); }
    75%  { transform: translate3d(-16px, -36px, 0) rotate(310deg); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

@keyframes mix-b {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(-44px, -58px, 0) rotate(-110deg); }
    50%  { transform: translate3d(34px, -74px, 0) rotate(-220deg); }
    75%  { transform: translate3d(42px, -22px, 0) rotate(-300deg); }
    100% { transform: translate3d(0, 0, 0) rotate(-360deg); }
}

@keyframes mix-c {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    30%  { transform: translate3d(-60px, -42px, 0) rotate(140deg); }
    60%  { transform: translate3d(-24px, -80px, 0) rotate(260deg); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

@keyframes mix-d {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    33%  { transform: translate3d(48px, -46px, 0) rotate(-150deg); }
    66%  { transform: translate3d(-32px, -54px, 0) rotate(-280deg); }
    100% { transform: translate3d(0, 0, 0) rotate(-360deg); }
}

/* 出球槽位区 */
.stage-tray {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.tray-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tray-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
}

.tray-slots {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.slot {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed color-mix(in srgb, var(--text-3) 45%, transparent);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    color: var(--text-3);
    font-family: var(--font-num);
    font-size: 13px;
}

.slot-ball {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    animation: ball-pop 0.48s var(--bounce) both;
}

.slot-ball::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: ripple-burst 0.65s ease-out both;
    pointer-events: none;
}

@keyframes ball-pop {
    0% {
        opacity: 0;
        transform: translateY(-28px) scale(0.35);
    }
    70% {
        opacity: 1;
        transform: translateY(2px) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ripple-burst {
    0% {
        opacity: 0.7;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

/* ---------- 结果区 ---------- */
.results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.results-count {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.results-count b {
    color: var(--accent-a);
    font-variant-numeric: tabular-nums;
}

.empty-hint {
    text-align: center;
    font-size: 14px;
    color: var(--text-3);
    white-space: pre-line;
    padding: 36px 22px;
    border-style: dashed;
}

/* ---------- 结果卡片 ---------- */
.card.result {
    position: relative;
    padding: 20px 22px;
    animation: rise 0.34s var(--ease) both;
}

.card.result.is-latest {
    border-color: color-mix(in srgb, var(--accent-a) 42%, transparent);
    box-shadow: var(--glow), var(--specular);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--text-3);
    flex-wrap: wrap;
}

.card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-a);
    background: color-mix(in srgb, var(--accent-a) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-a) 30%, transparent);
    border-radius: var(--r-pill);
    padding: 3px 10px;
}

.card-tag.qixing {
    color: var(--accent-warm);
    background: color-mix(in srgb, var(--accent-warm) 13%, transparent);
    border-color: color-mix(in srgb, var(--accent-warm) 34%, transparent);
}

.card-index {
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-b);
    background: color-mix(in srgb, var(--accent-b) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-b) 28%, transparent);
    border-radius: var(--r-pill);
    padding: 3px 10px;
}

.card-num {
    font-family: var(--font-num);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 14px 0 0;
    line-height: 1.15;
    word-break: break-all;
    font-variant-numeric: tabular-nums;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 3D 光泽号码球 */
.balls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ball-group {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.ball-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    margin-right: 4px;
    min-width: 2.2em;
}

.ball {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ball::before,
.slot-ball::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 14px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    transform: rotate(-22deg);
    pointer-events: none;
}

.ball-front {
    background: var(--ball-front-bg);
    box-shadow: var(--ball-front-shadow);
}

.ball-back {
    background: var(--ball-back-bg);
    box-shadow: var(--ball-back-shadow);
}

/* 签名 */
.sig-full {
    margin-top: 12px;
    font-family: var(--font-num);
    font-size: 11px;
    color: var(--text-2);
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.7;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
}

.card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.card-foot .sig {
    flex: 1;
    min-width: 0;
    font-family: var(--font-num);
    font-size: 11px;
    color: var(--text-3);
    word-break: break-all;
}

/* ---------- 趣味游戏页（骰子 / 硬币 / 转盘） ---------- */
.game-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-1), var(--specular);
}

.game-tab {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--r-pill);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.game-tab:hover:not(:disabled) {
    color: var(--text-1);
    background: var(--surface-3);
}

.game-tab.active {
    color: var(--text-on-accent);
    background: var(--grad);
    box-shadow: var(--accent-shadow);
}

.game-tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.game-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 184px;
    padding: 24px 16px;
    border-radius: var(--r-md);
    background: var(--drum-bg);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-readout {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.pill-btn:hover:not(:disabled) {
    color: var(--text-1);
    border-color: var(--border-strong);
}

.pill-btn.active {
    color: var(--text-on-accent);
    background: var(--grad);
    border-color: transparent;
    box-shadow: var(--accent-shadow);
}

.pill-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 骰子 */
.dice-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.die {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--die-bg);
    border: 1px solid var(--die-border);
    box-shadow: var(--die-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s var(--bounce);
}

.die-svg {
    width: 100%;
    height: 100%;
}

.die-pip {
    fill: var(--die-pip);
}

.die-pip-accent {
    fill: var(--die-pip-accent);
}

.die.is-rolling {
    animation: dice-tumble 0.42s ease-in-out infinite;
}

@keyframes dice-tumble {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-16deg) translateY(-6px) scale(0.95);
    }
    50% {
        transform: rotate(18deg) translateY(2px) scale(1.04);
    }
    75% {
        transform: rotate(-10deg) translateY(-4px) scale(0.98);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* 硬币 */
.coin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.coin {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 2px 6px rgba(255, 255, 255, 0.45);
    transition: transform 0.3s var(--bounce);
}

.coin-ring {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1.5px dashed var(--coin-ring-border);
    pointer-events: none;
}

.coin-heads {
    background: var(--coin-heads-bg);
}

.coin-tails {
    background: var(--coin-tails-bg);
}

.coin-idle {
    background: var(--coin-idle-bg);
}

.coin-glyph {
    font-size: 26px;
    line-height: 1;
}

.coin-sub {
    font-size: 11px;
    opacity: 0.9;
}

.coin.is-flipping {
    animation: coin-flip 0.45s linear infinite;
}

/* 结果卡片内紧凑骰子 / 硬币记录 */
.card-visual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 4px 0 2px;
}

.die.die-sm {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.24), inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.coin.coin-sm {
    width: 46px;
    height: 46px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 1px 4px rgba(255, 255, 255, 0.45);
}

.coin.coin-sm .coin-ring {
    inset: 3.5px;
}

.coin.coin-sm .coin-glyph {
    font-size: 18px;
}

/* 2D / 3D 控件并排布局 */
.game-controls-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
}

/* ---------- 3D 立体骰子（真六面 preserve-3d 立方体） ---------- */
.die-3d {
    --die-size: 64px;
    width: var(--die-size);
    height: var(--die-size);
    perspective: 420px;
    margin: 6px;
    filter: drop-shadow(0 12px 16px rgba(15, 23, 42, 0.34));
}

.die-3d.die-3d-sm {
    --die-size: 40px;
    margin: 4px;
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.26));
}

.die-3d-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.die-3d-face {
    position: absolute;
    inset: 0;
    border-radius: calc(var(--die-size) * 0.2);
    background: var(--die-3d-bg);
    border: 1.5px solid var(--die-3d-border);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.95), inset 0 -3px 6px rgba(100, 116, 139, 0.22);
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.die-3d-face.face-1 {
    transform: rotateY(0deg) translateZ(calc(var(--die-size) / 2));
}
.die-3d-face.face-6 {
    transform: rotateY(180deg) translateZ(calc(var(--die-size) / 2));
}
.die-3d-face.face-2 {
    transform: rotateY(90deg) translateZ(calc(var(--die-size) / 2));
}
.die-3d-face.face-5 {
    transform: rotateY(-90deg) translateZ(calc(var(--die-size) / 2));
}
.die-3d-face.face-3 {
    transform: rotateX(90deg) translateZ(calc(var(--die-size) / 2));
}
.die-3d-face.face-4 {
    transform: rotateX(-90deg) translateZ(calc(var(--die-size) / 2));
}

/* 等轴测 3D 展示角：先把目标面转到正前方，再略微俯视与侧倾以凸显立体棱面 */
.die-3d-cube.show-1 {
    transform: rotateX(-16deg) rotateY(-20deg);
}
.die-3d-cube.show-6 {
    transform: rotateX(-16deg) rotateY(-20deg) rotateY(180deg);
}
.die-3d-cube.show-2 {
    transform: rotateX(-16deg) rotateY(-20deg) rotateY(-90deg);
}
.die-3d-cube.show-5 {
    transform: rotateX(-16deg) rotateY(-20deg) rotateY(90deg);
}
.die-3d-cube.show-3 {
    transform: rotateX(-16deg) rotateY(-20deg) rotateX(-90deg);
}
.die-3d-cube.show-4 {
    transform: rotateX(-16deg) rotateY(-20deg) rotateX(90deg);
}

.die-3d.is-rolling .die-3d-cube {
    animation: die-3d-spin 0.65s linear infinite;
}

@keyframes die-3d-spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg);
    }
}

/* ---------- 3D 立体硬币（双面 + 金属厚度层） ---------- */
.coin-3d {
    --coin-size: 82px;
    --coin-depth: 5px;
    width: var(--coin-size);
    height: var(--coin-size);
    perspective: 460px;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.36));
}

.coin-3d.coin-3d-sm {
    --coin-size: 46px;
    --coin-depth: 3px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.coin-3d-body {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.coin-3d-body.show-heads,
.coin-3d-body.show-idle {
    transform: rotateX(22deg) rotateY(-16deg);
}

.coin-3d-body.show-tails {
    transform: rotateX(22deg) rotateY(164deg);
}

.coin-3d-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    font-weight: 800;
    backface-visibility: hidden;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.52), inset 0 -4px 8px rgba(15, 23, 42, 0.32);
}

.coin-3d-front {
    transform: translateZ(var(--coin-depth));
}

.coin-3d-back {
    transform: rotateY(180deg) translateZ(var(--coin-depth));
}

.coin-3d-edge {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--coin-edge-bg);
    pointer-events: none;
}

.coin-3d-edge.e1 {
    transform: translateZ(calc(var(--coin-depth) * -0.65));
}
.coin-3d-edge.e2 {
    transform: translateZ(calc(var(--coin-depth) * -0.2));
}
.coin-3d-edge.e3 {
    transform: translateZ(calc(var(--coin-depth) * 0.2));
}
.coin-3d-edge.e4 {
    transform: translateZ(calc(var(--coin-depth) * 0.65));
}

.coin-3d.coin-3d-sm .coin-ring {
    inset: 3.5px;
}

.coin-3d.coin-3d-sm .coin-glyph {
    font-size: 18px;
}

.coin-3d.is-flipping .coin-3d-body {
    animation: coin-3d-tumble 0.36s linear infinite;
}

@keyframes coin-3d-tumble {
    0% {
        transform: rotateX(0deg) rotateY(-12deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(-12deg);
    }
}

/* ---------- 骰盅 & 抛硬币动画弹窗 ---------- */
.game-modal {
    max-width: 560px;
}

.modal-readout {
    margin: 4px 0 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}

/* 1) 手握骰盅舞台 */
.dice-arena {
    position: relative;
    height: 256px;
    margin: 8px 0 6px;
    border-radius: 20px;
    background: var(--arena-dice-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 34px;
}

.arena-tray {
    position: absolute;
    bottom: 18px;
    width: 280px;
    height: 62px;
    border-radius: 50%;
    background: var(--tray-bg);
    border: 1.5px solid var(--tray-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 2px 10px rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 骰盅与手势 SVG 主题色映射 */
.cup-body-1 { stop-color: var(--cup-body-1); }
.cup-body-2 { stop-color: var(--cup-body-2); }
.cup-body-3 { stop-color: var(--cup-body-3); }
.cup-body-4 { stop-color: var(--cup-body-4); }
.cup-gold-1 { stop-color: var(--cup-gold-1); }
.cup-gold-2 { stop-color: var(--cup-gold-2); }
.cup-gold-3 { stop-color: var(--cup-gold-3); }
.cup-gold-4 { stop-color: var(--cup-gold-4); }
.cup-rim-top { fill: var(--cup-rim-fill); }
.cup-shell { stroke: var(--cup-stroke); }
.cup-gloss { fill: var(--cup-gloss); }
.cup-band { stroke: var(--cup-band-stroke); }
.cup-bottom { fill: var(--cup-bottom-fill); stroke: var(--cup-bottom-stroke); }
.cup-shadow { fill: var(--cup-shadow); }
.wave-primary { stroke: var(--wave-primary); }
.wave-accent { stroke: var(--wave-accent); }
.spark-1 { stroke: var(--spark-1); }
.spark-2 { stroke: var(--spark-2); }
.sleeve-cuff-light { fill: var(--sleeve-cuff-1); }
.sleeve-cuff-shade { fill: var(--sleeve-cuff-2); }
.sleeve-cuff-outline { stroke: var(--sleeve-cuff-stroke); }
.sleeve-coat-light { fill: var(--sleeve-coat-1); }
.sleeve-coat-shade { fill: var(--sleeve-coat-2); }
.sleeve-coat-outline { stroke: var(--sleeve-coat-stroke); }

.arena-dice-layer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 260px;
    margin-bottom: 12px;
    transition: opacity 0.24s ease, transform 0.35s var(--bounce);
}

.cup-hand-rig {
    position: absolute;
    bottom: 22px;
    left: 50%;
    width: 244px;
    height: 178px;
    margin-left: -94px;
    z-index: 4;
    pointer-events: none;
    transform-origin: 40% 74%;
}

.cup-hand-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.38));
}

.shake-waves {
    opacity: 0;
    transition: opacity 0.18s ease;
}

/* 阶段：扣盅 */
.dice-modal.is-covering .cup-hand-rig {
    animation: cup-cover 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dice-modal.is-covering .arena-dice-layer {
    animation: dice-tuck 0.52s ease forwards;
}

/* 阶段：摇盅 */
.dice-modal.is-shaking .cup-hand-rig {
    animation: cup-shake 0.34s ease-in-out infinite;
}

.dice-modal.is-shaking .shake-waves {
    opacity: 1;
}

.dice-modal.is-shaking .arena-dice-layer {
    opacity: 0;
    transform: scale(0.5);
}

.dice-modal.is-shaking .arena-tray {
    animation: tray-pulse 0.34s ease-in-out infinite;
}

/* 阶段：开盅 */
.dice-modal.is-lifting .cup-hand-rig {
    animation: cup-lift 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dice-modal.is-lifting .arena-dice-layer {
    animation: dice-reveal-pop 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

/* 阶段：完成 */
.dice-modal.is-done .cup-hand-rig {
    transform: translate(56px, -172px) rotate(22deg);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dice-modal.is-done .arena-dice-layer {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@keyframes cup-cover {
    0% {
        transform: translate(42px, -165px) rotate(14deg);
        opacity: 0.2;
    }
    70% {
        transform: translate(0, 4px) rotate(-2deg);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes dice-tuck {
    0%, 45% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.62) translateY(6px);
    }
}

@keyframes cup-shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(-22px, -14px) rotate(-14deg);
    }
    50% {
        transform: translate(22px, -6px) rotate(14deg);
    }
    80% {
        transform: translate(-14px, -18px) rotate(-10deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes tray-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes cup-lift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(56px, -172px) rotate(22deg);
        opacity: 0.15;
    }
}

@keyframes dice-reveal-pop {
    0% {
        opacity: 0;
        transform: scale(0.68) translateY(12px);
    }
    70% {
        opacity: 1;
        transform: scale(1.06) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 2) 手弹硬币 + 高抛翻转 + 落地舞台 */
.coin-arena {
    position: relative;
    height: 266px;
    margin: 8px 0 6px;
    border-radius: 20px;
    background: var(--arena-coin-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 34px;
}

.coin-pad {
    position: absolute;
    bottom: 18px;
    width: 280px;
    height: 54px;
    border-radius: 50%;
    background: var(--coin-pad-bg);
    border: 1.5px solid var(--coin-pad-border);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.arena-coins-layer {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.toss-coin-slot {
    --coin-i: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flick-hand-rig {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 228px;
    height: 142px;
    margin-left: -76px;
    z-index: 4;
    pointer-events: none;
    transition: transform 0.38s ease, opacity 0.38s ease;
}

.flick-hand-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.34));
}

.flick-thumb {
    transform-origin: 128px 76px;
}

.flick-sparks {
    opacity: 0;
}

/* 阶段：拇指弹起 */
.coin-modal.is-flicking .flick-thumb {
    animation: thumb-flick 0.48s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.coin-modal.is-flicking .flick-sparks {
    animation: sparks-burst 0.48s ease-out forwards;
}

.coin-modal.is-flicking .toss-coin-slot {
    animation: coin-launch 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 阶段：空中高抛旋转 */
.coin-modal.is-tossing .flick-hand-rig {
    transform: translate(32px, 86px) rotate(14deg);
    opacity: 0.18;
}

.coin-modal.is-tossing .toss-coin-slot {
    animation: coin-soar 0.72s ease-in-out infinite;
    animation-delay: calc(var(--coin-i) * 90ms);
}

/* 阶段：落地回弹 */
.coin-modal.is-landing .flick-hand-rig,
.coin-modal.is-done .flick-hand-rig {
    transform: translate(40px, 118px);
    opacity: 0;
}

.coin-modal.is-landing .toss-coin-slot {
    animation: coin-land 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--coin-i) * 55ms);
}

@keyframes thumb-flick {
    0% {
        transform: rotate(-28deg);
    }
    38% {
        transform: rotate(-33deg);
    }
    74% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes sparks-burst {
    0%, 42% {
        opacity: 0;
        transform: scale(0.5);
    }
    65% {
        opacity: 1;
        transform: scale(1.15);
    }
    100% {
        opacity: 0;
        transform: scale(1.4) translateY(-12px);
    }
}

@keyframes coin-launch {
    0%, 45% {
        transform: translateY(-12px) scale(0.92);
    }
    100% {
        transform: translateY(-118px) scale(1.04);
    }
}

@keyframes coin-soar {
    0%, 100% {
        transform: translateY(-118px) scale(1.04);
    }
    50% {
        transform: translateY(-148px) scale(1.1);
    }
}

@keyframes coin-land {
    0% {
        transform: translateY(-122px) scale(1.04);
    }
    65% {
        transform: translateY(4px) scale(0.96);
    }
    82% {
        transform: translateY(-12px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes coin-flip {
    0% {
        transform: perspective(360px) rotateY(0deg) translateY(0);
    }
    50% {
        transform: perspective(360px) rotateY(180deg) translateY(-10px);
    }
    100% {
        transform: perspective(360px) rotateY(360deg) translateY(0);
    }
}

/* 幸运转盘 */
.wheel-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 14px;
}

.wheel-pointer {
    position: absolute;
    top: 2px;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 20px solid var(--wheel-pointer);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.wheel-ring {
    width: 248px;
    height: 248px;
    border-radius: 50%;
    padding: 6px;
    background: var(--wheel-ring-bg);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    transition: box-shadow 0.3s var(--ease);
}

.wheel-ring.is-waiting {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-b) 35%, transparent),
        0 14px 40px color-mix(in srgb, var(--accent-a) 40%, transparent);
    animation: wheel-pulse 0.9s ease-in-out infinite;
}

.wheel-slice { stroke: var(--wheel-stroke); }
.wheel-slice-0 { fill: var(--wheel-0); }
.wheel-slice-1 { fill: var(--wheel-1); }
.wheel-slice-2 { fill: var(--wheel-2); }
.wheel-slice-3 { fill: var(--wheel-3); }
.wheel-slice-4 { fill: var(--wheel-4); }
.wheel-slice-5 { fill: var(--wheel-5); }
.wheel-slice-6 { fill: var(--wheel-6); }
.wheel-slice-7 { fill: var(--wheel-7); }
.wheel-label { fill: var(--wheel-text); }
.wheel-hub { fill: var(--wheel-hub-bg); stroke: var(--wheel-hub-stroke); }
.wheel-hub-dot { fill: var(--wheel-hub-dot); }

@keyframes wheel-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.025);
    }
}

.wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    transition: transform 3.2s cubic-bezier(0.15, 0.85, 0.2, 1);
    will-change: transform;
}

.wheel-textarea {
    resize: vertical;
    min-height: 98px;
    line-height: 1.6;
    font-family: var(--font-sans);
}

/* ---------- 移动端 ---------- */
@media (max-width: 767px) {
    .nav {
        top: auto;
        bottom: 0;
        padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    }

    .nav-inner {
        border-radius: var(--r-lg);
        padding: 6px;
        box-shadow: var(--shadow-2);
    }

    .nav-brand {
        padding: 6px 8px;
    }

    .nav-brand .brand-name {
        display: none;
    }

    .nav-links {
        justify-content: space-around;
        flex: 1;
    }

    .nav-links button {
        flex: 1;
        padding: 10px 6px;
        font-size: 13px;
    }

    .theme-opt {
        width: 30px;
        padding: 0;
    }

    .theme-opt-label {
        display: none;
    }

    .page {
        padding: 24px 14px calc(108px + env(safe-area-inset-bottom));
    }

    .card {
        padding: 18px;
    }

    .hero {
        padding-top: 22px;
    }

    .entries {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .strip {
        grid-template-columns: 1fr;
    }

    .stage-drums {
        gap: 12px;
    }

    .drum {
        width: 120px;
        height: 120px;
    }

    .drum-glass {
        width: 112px;
        height: 112px;
    }

    .mini-ball {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .stage-tray {
        padding: 12px;
        gap: 10px;
    }

    .tray-group {
        gap: 8px;
    }

    .tray-slots {
        gap: 7px;
    }

    .slot,
    .slot-ball {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .card-num {
        font-size: 32px;
    }

    .ball {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .modal-backdrop {
        padding: 12px;
    }

    .reactor {
        min-height: 196px;
    }

    .reactor-ring-outer {
        width: 184px;
        height: 184px;
    }

    .reactor-ring-inner {
        width: 160px;
        height: 160px;
    }

    .reveal-digit {
        min-width: 38px;
        height: 50px;
        font-size: 26px;
    }

    .die {
        width: 62px;
        height: 62px;
        border-radius: 15px;
    }

    .coin {
        width: 74px;
        height: 74px;
    }

    .die-3d {
        --die-size: 54px;
    }

    .coin-3d {
        --coin-size: 70px;
    }

    .dice-arena,
    .coin-arena {
        height: 232px;
    }

    .wheel-ring {
        width: 224px;
        height: 224px;
    }
}

/* ---------- 水墨丹青主题专属视觉精雕 ---------- */
[data-theme="ink"] .ambient-orb {
    filter: blur(110px);
    opacity: 0.78;
}

/* 宣纸素笺淡格纹理 */
[data-theme="ink"] .ambient-grid {
    background-image:
        linear-gradient(90deg, rgba(44, 48, 50, 0.045) 1px, transparent 1px),
        radial-gradient(rgba(44, 48, 50, 0.055) 0.75px, transparent 0.75px);
    background-size: 48px 48px, 18px 18px;
    mask-image: radial-gradient(ellipse 88% 72% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 30%, #000 40%, transparent 100%);
}

[data-theme="ink"] .page-title,
[data-theme="ink"] .entry-title,
[data-theme="ink"] .stage-title,
[data-theme="ink"] .intro h2 {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

[data-theme="ink"] .hero .title {
    letter-spacing: 0.02em;
}

/* 朱砂落款印章感徽章与最新结果高亮 */
[data-theme="ink"] .hero-badge {
    color: var(--accent-warm);
    border-color: color-mix(in srgb, var(--accent-warm) 42%, transparent);
    background: color-mix(in srgb, var(--accent-warm) 8%, transparent);
    box-shadow: none;
}

[data-theme="ink"] .badge-dot {
    background: var(--accent-warm);
}

[data-theme="ink"] .card,
[data-theme="ink"] .entry,
[data-theme="ink"] .strip-item {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="ink"] .card.result.is-latest {
    border-color: color-mix(in srgb, var(--accent-warm) 42%, transparent);
}

[data-theme="ink"] .nav-inner {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="ink"] .nav-brand.active {
    background: color-mix(in srgb, var(--accent-warm) 10%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-warm) 35%, transparent);
}

[data-theme="ink"] .spec-bar {
    box-shadow: none;
}

[data-theme="ink"] .ball::before,
[data-theme="ink"] .slot-ball::before {
    background: rgba(255, 252, 245, 0.28);
}

[data-theme="ink"] .wheel-label {
    font-family: var(--font-display);
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
