/* 幻界奇点 · 无限动效街机（正式版）
   明日方舟平面设计语言：深炭底、细边框、锐利切角、琥珀主色 + 青色辅助、
   角标/菱形/编号码，同时保留毛玻璃（backdrop-filter）半透明质感。 */

:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", system-ui, sans-serif;
  background: #0b0d10;
  color: #e8eaec;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --muted: #8a9099;
  --dim: #5c6168;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --io: cubic-bezier(0.76, 0, 0.24, 1);

  /* JS 会读取 --acc-1..4 */
  --acc-1: #ff9d2e; /* 琥珀 主 */
  --acc-2: #f7c05a; /* 浅金 */
  --acc-3: #59c2c9; /* 青 辅助 */
  --acc-4: #e05a3c; /* 锈红 */
  --glow: rgba(255, 157, 46, 0.4);
  --page-bg: #0b0d10;
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 46%, rgba(26, 30, 39, 0.42));
}

html[data-theme="rhodes"]  { --acc-1:#ff9d2e; --acc-2:#f7c05a; --acc-3:#59c2c9; --acc-4:#e05a3c; --glow:rgba(255,157,46,.4); }
html[data-theme="azure"]   { --acc-1:#4aa8c9; --acc-2:#8fd3e0; --acc-3:#59c2c9; --acc-4:#2e6b9e; --glow:rgba(74,168,201,.42); }
html[data-theme="verdict"] { --acc-1:#b891e0; --acc-2:#d7b8f0; --acc-3:#7fb2e6; --acc-4:#8a5cc0; --glow:rgba(184,145,224,.42); }
html[data-theme="verdant"] { --acc-1:#7fc98a; --acc-2:#b4e0b8; --acc-3:#59c2c9; --acc-4:#3f8f5a; --glow:rgba(127,201,138,.42); }
html[data-theme="ember"]   { --acc-1:#ff8a4a; --acc-2:#ffb37a; --acc-3:#ffd27a; --acc-4:#d4482e; --glow:rgba(255,138,74,.42); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh; background: var(--page-bg); color: #e8eaec;
  overflow: hidden; transition: background 900ms var(--ease);
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---- 背景层 ---- */
.nebula { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.nebula i { position: absolute; width: 64vmax; height: 64vmax; border-radius: 50%; filter: blur(66px); opacity: .28; mix-blend-mode: screen; transition: background 900ms var(--ease); }
.nebula .n1 { top:-24%; left:-16%; background: radial-gradient(circle, var(--acc-1), transparent 62%); animation: neb-a 40s ease-in-out infinite alternate; }
.nebula .n2 { top:4%; right:-22%; background: radial-gradient(circle, var(--acc-3), transparent 62%); animation: neb-a 48s ease-in-out infinite alternate-reverse; }
.nebula .n3 { bottom:-30%; left:16%; background: radial-gradient(circle, var(--acc-1), transparent 60%); opacity:.13; animation: neb-a 52s ease-in-out infinite alternate; }
@keyframes neb-a { from { transform: translate3d(-4%,-3%,0) scale(1); } to { transform: translate3d(5%,4%,0) scale(1.14); } }

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 100%);
}
#cv-ambient { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* ---- 光标（菱形） ---- */
.cursor-dot, .cursor-ring { position: fixed; z-index: 300; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; background: var(--acc-1); box-shadow: 0 0 12px var(--glow); }
.cursor-ring { width: 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--acc-1) 55%, transparent); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- 转场门 ---- */
.veil {
  position: fixed; inset: 0; z-index: 250; pointer-events: none; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, color-mix(in srgb, var(--acc-1) 10%, #0b0d10), #07080a 72%);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path .56s var(--io);
}
.veil.show { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.veil-glyph { color: var(--acc-1); font-size: 30px; opacity: 0; transform: rotate(-45deg) scale(.6); transition: opacity .3s ease, transform .5s var(--spring); }
.veil.show .veil-glyph { opacity: 1; transform: rotate(0) scale(1); }

/* ---- HUD ---- */
.hud {
  position: fixed; z-index: 120; top: calc(16px + env(safe-area-inset-top)); left: clamp(14px, 4vw, 60px); right: clamp(14px, 4vw, 60px);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.island {
  position: relative; width: fit-content; max-width: max-content; min-height: 42px; padding: 6px 10px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--glass);
  box-shadow: 0 8px 28px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); pointer-events: auto;
}
.island::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 1px; background: var(--acc-1); }
.brand { display: flex; align-items: center; min-height: 34px; color: #eceef0; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--acc-1); transform: rotate(45deg); box-shadow: 0 0 10px var(--glow); }
.divider { display: block; width: 1px; height: 15px; flex: none; background: var(--line-strong); }
.hud-back {
  display: none; align-items: center; height: 28px; padding: 0 10px; border-radius: 2px;
  border: 1px solid var(--line-strong); color: #c9ccd0; font-size: 11px; letter-spacing: .12em;
  background: rgba(255,255,255,.04); white-space: nowrap; transition: background .2s, color .2s;
}
.hud-back.visible { display: inline-flex; }
.hud-back:hover { background: color-mix(in srgb, var(--acc-1) 16%, transparent); color: var(--acc-1); border-color: color-mix(in srgb, var(--acc-1) 50%, transparent); }
.version-switch { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(0,0,0,.2); overflow: hidden; }
.version-switch a { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; transition: color .2s, background .2s; }
.version-switch a.on { background: var(--acc-1); color: #0b0d10; }
.version-switch a:not(.on):hover { color: #fff; background: rgba(255,255,255,.08); }
.mute-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 2px; border: 1px solid var(--line-strong); color: #c9ccd0; font-size: 13px; background: rgba(255,255,255,.04); transition: background .2s, color .2s; }
.mute-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.mute-btn.off { color: var(--dim); text-decoration: line-through; }

/* ---- 场景 ---- */
.scene { position: fixed; inset: 0; z-index: 10; opacity: 0; pointer-events: none; transform: scale(1.035); transition: opacity .55s var(--ease), transform .65s var(--ease); }
.scene.is-active { opacity: 1; pointer-events: auto; transform: scale(1); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-head {
  position: absolute; z-index: 5; left: clamp(16px, 4vw, 60px); top: calc(84px + env(safe-area-inset-top));
  display: flex; align-items: flex-start; gap: 14px; padding: 10px 16px 10px 12px; pointer-events: none;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--glass);
  box-shadow: 0 12px 36px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.scene-head::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 1px; background: var(--acc-1); }
.scene-index { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--acc-1); padding-top: 6px; font-variant-numeric: tabular-nums; }
.scene-head h2 { margin: 0; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: .02em; font-weight: 700; }
.scene-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.footer-fixed {
  position: fixed; z-index: 60; left: clamp(14px, 4vw, 60px); right: clamp(14px, 4vw, 60px); bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 16px; pointer-events: none; color: var(--dim); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.footer-fixed strong { color: color-mix(in srgb, var(--acc-1) 80%, transparent); font-weight: 600; }

/* ---- 大厅 ---- */
.hub { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; width: 100%; height: 100%; overflow: hidden; }
.hub-left {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: calc(84px + env(safe-area-inset-top)) clamp(20px, 3.5vw, 54px) calc(56px + env(safe-area-inset-bottom));
  border-right: 1px solid var(--line);
}
.hub-kicker { color: var(--acc-1); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.hub-kicker::before { content: ""; width: 22px; height: 1px; background: var(--acc-1); }
.hub-title { margin: 0; font-size: clamp(54px, 7.5vw, 108px); font-weight: 800; line-height: .95; letter-spacing: -.03em; }
.hub-title .line { display: block; overflow: hidden; }
.hub-title .clip { display: inline-block; color: #e8eaec; }
.hub-title .clip.accent { color: var(--acc-1); text-shadow: 0 0 26px var(--glow); }
.hub-sub { margin: 0; max-width: 36ch; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hub-sub b { color: #e8eaec; font-weight: 600; }
.hub-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.chip-game { border-color: color-mix(in srgb, var(--acc-4) 55%, transparent); color: var(--acc-4); }
.chip-play { border-color: color-mix(in srgb, var(--acc-3) 55%, transparent); color: var(--acc-3); }
.chip-immersive { border-color: color-mix(in srgb, var(--acc-2) 55%, transparent); color: var(--acc-2); }
.hub-credit { color: var(--dim); font-size: 11px; letter-spacing: .1em; }
.hub-credit strong { color: var(--acc-1); font-weight: 700; }
.credit-mark { color: var(--acc-1); }
.theme-dock { display: flex; gap: 8px; align-items: center; }
.theme-label { color: var(--dim); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.theme-dot { width: 15px; height: 15px; padding: 0; transform: rotate(45deg); border: 1px solid transparent; background: transparent; transition: transform .3s var(--spring), border-color .3s; }
.theme-dot i { display: block; width: 100%; height: 100%; }
.theme-dot[data-theme="rhodes"] i { background: #ff9d2e; }
.theme-dot[data-theme="azure"] i { background: #4aa8c9; }
.theme-dot[data-theme="verdict"] i { background: #b891e0; }
.theme-dot[data-theme="verdant"] i { background: #7fc98a; }
.theme-dot[data-theme="ember"] i { background: #ff8a4a; }
.theme-dot:hover { transform: rotate(45deg) scale(1.25); }
.theme-dot.active { border-color: #eceef0; }

.hub-right { overflow-y: auto; padding: calc(84px + env(safe-area-inset-top)) clamp(22px, 5vw, 84px) calc(56px + env(safe-area-inset-bottom)); }
.menu-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.menu-head span:first-child { color: #eceef0; }
.menu {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--glass);
  box-shadow: 0 20px 60px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
}
.menu::before, .menu::after { content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none; }
.menu::before { top: -1px; left: -1px; border-top: 2px solid var(--acc-1); border-left: 2px solid var(--acc-1); }
.menu::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--acc-1); border-right: 2px solid var(--acc-1); }
.menu-item {
  position: relative; display: grid; grid-template-columns: 52px 1fr auto auto; gap: 0 16px; align-items: center;
  width: 100%; padding: 17px 14px; text-align: left; border-radius: 0; border: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.menu-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--acc-1); transform: translateY(-50%); transition: height .28s var(--ease); }
.menu-item:hover { background: rgba(255,255,255,.04); }
.menu-item:hover::before { height: 60%; }
.mi-index { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--dim); font-variant-numeric: tabular-nums; transition: color .2s; }
.menu-item:hover .mi-index { color: var(--acc-1); }
.mi-titles { display: flex; flex-direction: column; gap: 4px; }
.mi-titles b { font-size: 17px; letter-spacing: .02em; color: #e8eaec; }
.mi-titles i { font-style: normal; font-size: 9px; letter-spacing: .26em; color: var(--dim); text-transform: uppercase; }
.mi-tag { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.tag-game { color: var(--acc-4); border-color: color-mix(in srgb, var(--acc-4) 45%, transparent); }
.tag-play { color: var(--acc-3); border-color: color-mix(in srgb, var(--acc-3) 45%, transparent); }
.tag-immersive { color: var(--acc-2); border-color: color-mix(in srgb, var(--acc-2) 45%, transparent); }
.tag-quiz { color: var(--acc-1); border-color: color-mix(in srgb, var(--acc-1) 45%, transparent); }
.mi-desc { color: var(--muted); font-size: 11px; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.menu-item:hover .mi-desc { opacity: 1; transform: translateX(0); }
.mi-arrow { font-size: 15px; color: var(--acc-1); opacity: 0; transform: translate(-6px, 6px); transition: opacity .25s, transform .3s var(--spring); }
.menu-item:hover .mi-arrow { opacity: 1; transform: translate(0, 0); }

/* ---- 游戏遮罩 ---- */
.game-overlay {
  position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 24px;
  background: rgba(7,8,10,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: opacity .4s var(--ease), visibility .4s;
}
.game-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ov-card {
  position: relative; max-width: 420px; width: 100%; padding: 30px 30px 26px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--glass);
  box-shadow: 0 30px 90px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
}
.ov-card::before, .ov-card::after { content: ""; position: absolute; width: 15px; height: 15px; pointer-events: none; }
.ov-card::before { top: -1px; left: -1px; border-top: 2px solid var(--acc-1); border-left: 2px solid var(--acc-1); }
.ov-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--acc-1); border-right: 2px solid var(--acc-1); }
.ov-kicker { display: block; color: var(--acc-1); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; }
.ov-card h3 { margin: 10px 0 10px; font-size: 27px; letter-spacing: .02em; }
.ov-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ov-btn {
  display: inline-grid; place-items: center; min-width: 150px; height: 44px; padding: 0 22px;
  background: var(--acc-1); color: #0b0d10; font-weight: 700; font-size: 14px; letter-spacing: .1em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter .25s, transform .25s;
}
.ov-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }

/* ---- Simon ---- */
.simon-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-top: 50px; }
.simon-status { font-size: 11px; letter-spacing: .34em; color: var(--acc-1); text-transform: uppercase; }
.simon-score { font-size: 12px; color: var(--muted); letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.simon-pads { display: grid; grid-template-columns: repeat(2, 116px); grid-template-rows: repeat(2, 116px); gap: 12px; }
.pad { border-radius: 2px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); transition: transform .18s var(--spring), filter .18s, box-shadow .18s; }
.pad:hover { transform: scale(1.03); }
.pad.lit { filter: brightness(1.6); transform: scale(1.05); box-shadow: 0 0 36px var(--pad-glow, rgba(255,255,255,.4)); }
.pad[data-i="0"].lit { background: var(--acc-1); --pad-glow: color-mix(in srgb, var(--acc-1) 70%, transparent); }
.pad[data-i="1"].lit { background: var(--acc-3); --pad-glow: color-mix(in srgb, var(--acc-3) 70%, transparent); }
.pad[data-i="2"].lit { background: var(--acc-2); --pad-glow: color-mix(in srgb, var(--acc-2) 70%, transparent); }
.pad[data-i="3"].lit { background: var(--acc-4); --pad-glow: color-mix(in srgb, var(--acc-4) 70%, transparent); }

/* ---- 问卷 / 雷达图 ---- */
.quiz-stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 96px 24px 48px; overflow-y: auto;
}
.quiz-frame {
  position: relative; width: min(560px, 100%); padding: 26px 28px 24px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--glass);
  box-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.quiz-frame::before, .quiz-frame::after { content: ""; position: absolute; width: 15px; height: 15px; pointer-events: none; }
.quiz-frame::before { top: -1px; left: -1px; border-top: 2px solid var(--acc-1); border-left: 2px solid var(--acc-1); }
.quiz-frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--acc-1); border-right: 2px solid var(--acc-1); }
.quiz-progress { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 18px; }
.quiz-progress i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.quiz-progress i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--acc-1); transition: width .4s var(--ease); }
.quiz-q { margin: 0 0 18px; font-size: 19px; line-height: 1.5; letter-spacing: .02em; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; text-align: left;
  border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,.02); color: #c9ccd0;
  font-size: 14px; line-height: 1.5; transition: border-color .2s, background .2s, color .2s;
}
.quiz-opt::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--dim); flex: none; transition: background .2s; }
.quiz-opt:hover { border-color: color-mix(in srgb, var(--acc-1) 50%, transparent); color: #fff; }
.quiz-opt:hover::before { background: var(--acc-1); }
.quiz-result { text-align: center; }
.quiz-result h3 { margin: 6px 0 4px; font-size: 24px; letter-spacing: .04em; }
.quiz-result .quiz-rank { color: var(--acc-1); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.quiz-result p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
#cv-radar { width: 100%; height: 300px; display: block; }
.quiz-again { margin-top: 18px; }

/* ---- 入场动画 ---- */
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes clip-in { from { transform: translateY(108%); } to { transform: translateY(0); } }
.scene.is-active .reveal { animation: reveal-up .8s var(--spring) both; animation-delay: var(--d, 0s); }
.scene.is-active .hub-title .clip { animation: clip-in .95s var(--io) both; }
.scene.is-active .hub-title .line:nth-child(1) .clip { animation-delay: .06s; }
.scene.is-active .hub-title .line:nth-child(2) .clip { animation-delay: .14s; }

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  .hub { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .hub-left { flex: none; border-right: 0; border-bottom: 1px solid var(--line); padding: calc(72px + env(safe-area-inset-top)) 18px 20px; gap: 13px; }
  .hub-title { font-size: clamp(42px, 15vw, 64px); }
  .hub-sub { font-size: 13px; }
  .hub-right { flex: 1 0 auto; overflow: visible; padding: 14px 12px calc(28px + env(safe-area-inset-bottom)); }
  .menu-head { margin-bottom: 12px; }
  .mi-desc { display: none; }
  .menu-item { grid-template-columns: 40px 1fr auto; padding: 14px 10px; }
  .mi-arrow { display: none; }
  .footer-fixed { display: none; }
  .scene-head { top: calc(76px + env(safe-area-inset-top)); }
}
@media (max-width: 640px) {
  .hud { top: 10px; left: 10px; right: 10px; }
  .island { min-height: 40px; padding: 6px 8px; }
  .brand { font-size: 10px; letter-spacing: .14em; }
  .hud .divider { display: none; }
  .version-switch a { height: 24px; padding: 0 10px; font-size: 10px; }
  .hub-title { font-size: clamp(40px, 15vw, 56px); }
  .simon-pads { grid-template-columns: repeat(2, 92px); grid-template-rows: repeat(2, 92px); gap: 10px; }
  .scene-head p { display: none; }
  .quiz-stage { padding: 84px 14px 30px; }
  .quiz-frame { padding: 20px 18px 18px; }
  #cv-radar { height: 240px; }
}

/* ---- 无障碍 ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .veil { transition: none !important; }
  .nebula i { animation: none !important; }
}
