/* ===================================================================
   破冰大师 · 设计系统
   4 套主题全部通过 CSS 变量实现：lumen（默认免费）/ noir / morandi / washi
   8pt 网格 · 单一强调色 · 低饱和 · 细阴影 · 系统字体
   =================================================================== */
:root, [data-skin="lumen"] {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", serif;
  --num: var(--font);
  --display: var(--font); --display-w: 700; --display-ls: -.02em; --title-ls: -.01em;
  --bg: #F5F5F7; --bg-img: none;
  --surface: #FFFFFF; --surface-2: #F2F2F5; --surface-3: #E8E8ED;
  --line: rgba(0,0,0,.08); --line-strong: rgba(0,0,0,.14);
  --text: #1D1D1F; --text-2: #6E6E73; --text-3: #A1A1A6;
  --accent: #3E5C8A; --accent-soft: #EEF1F6; --on-accent: #FFFFFF;
  --primary: #1D1D1F; --on-primary: #FFFFFF;
  --chip-on: #1D1D1F; --on-chip-on: #FFFFFF;
  --danger: #A0483D; --ok: #4E7A5C;
  --r-xl: 28px; --r-card: 20px; --r-btn: 16px; --r-chip: 999px; --r-sm: 12px;
  --shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.035);
  --shadow-lg: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -12px rgba(0,0,0,.14);
  --deck: 0 12px 0 -6px #EAEAEE, 0 24px 0 -12px #E2E2E7;
  --tab-bg: rgba(249,249,251,.86); --tab-line: rgba(0,0,0,.12);
  --mask: rgba(20,20,24,.32);
  --game-card: #FFFFFF;
  --t1: #3E5C8A; --t2: #9A8466; --t3: #5F7A6A; --t4: #8A6A7E; --t5: #6F7480; --t6: #A07A5A;
  --icon-bg: #F2F2F5; --icon-fg: #1D1D1F;
  color-scheme: light;
}
[data-skin="noir"] {
  --num: "Didot", "Bodoni 72", "Noto Serif Display", "Noto Serif", "Times New Roman", serif;
  --display: var(--serif); --display-w: 500; --display-ls: .04em; --title-ls: .06em;
  --bg: #0B0B0D; --bg-img: radial-gradient(120% 50% at 50% -10%, #17150F 0%, rgba(11,11,13,0) 60%);
  --surface: #141416; --surface-2: #1C1C1F; --surface-3: #26262A;
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.14);
  --text: #F2EEE6; --text-2: #9A958B; --text-3: #66625B;
  --accent: #C8B48F; --accent-soft: rgba(200,180,143,.12); --on-accent: #141210;
  --primary: #C8B48F; --on-primary: #141210;
  --chip-on: #C8B48F; --on-chip-on: #141210;
  --danger: #C98A7A; --ok: #A9B79A;
  --shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  --shadow-lg: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 1px 0 rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.7);
  --deck: 0 12px 0 -6px #18181B, 0 24px 0 -12px #121214;
  --tab-bg: rgba(16,16,18,.76); --tab-line: rgba(255,255,255,.07);
  --mask: rgba(0,0,0,.6);
  --game-card: linear-gradient(180deg, #1D1C1A, #151517);
  --t1: #C8B48F; --t2: #8E9AA8; --t3: #A3AE95; --t4: #B89A9A; --t5: #9C948A; --t6: #8F8AA6;
  --icon-bg: transparent; --icon-fg: #C8B48F;
  color-scheme: dark;
}
[data-skin="morandi"] {
  --display-w: 600; --display-ls: .01em;
  --bg: #EDE8E0;
  --surface: #F7F4EF; --surface-2: #E9E3DA; --surface-3: #DED7CC;
  --line: rgba(61,57,52,.08); --line-strong: rgba(61,57,52,.16);
  --text: #3D3934; --text-2: #857D72; --text-3: #B0A79B;
  --accent: #6E7A69; --accent-soft: #DFE3D6; --on-accent: #F7F4EF;
  --primary: #6E7A69; --on-primary: #F7F4EF;
  --chip-on: #6E7A69; --on-chip-on: #F7F4EF;
  --danger: #A9685A; --ok: #6E7A69;
  --r-xl: 28px; --r-card: 22px;
  --shadow: none; --shadow-lg: none;
  --deck: 0 12px 0 -6px #DDD0C8, 0 24px 0 -12px #D6CCC0;
  --tab-bg: rgba(246,243,238,.9); --tab-line: rgba(61,57,52,.07);
  --mask: rgba(61,57,52,.3);
  --game-card: #E5D6CF;
  --t1: #7F8D79; --t2: #C49A8F; --t3: #8E9EAC; --t4: #B6A06E; --t5: #A391A2; --t6: #8F8E6E;
  --icon-bg: #E9E3DA; --icon-fg: #5A534A;
}
[data-skin="washi"] {
  --display: var(--serif); --display-w: 600; --display-ls: .08em; --title-ls: .12em;
  --num: var(--serif);
  --bg: #F2EDE3; --bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  --surface: #FAF7F0; --surface-2: #E9E2D4; --surface-3: #DDD5C5;
  --line: rgba(36,33,29,.12); --line-strong: rgba(36,33,29,.3);
  --text: #24211D; --text-2: #6F685D; --text-3: #A39B8E;
  --accent: #A5432F; --accent-soft: rgba(165,67,47,.08); --on-accent: #F7ECE2;
  --primary: #24211D; --on-primary: #F2EDE3;
  --chip-on: #24211D; --on-chip-on: #F2EDE3;
  --danger: #A5432F; --ok: #4E5B47;
  --r-xl: 4px; --r-card: 4px; --r-btn: 3px; --r-chip: 2px; --r-sm: 3px;
  --shadow: inset 0 0 0 1px rgba(36,33,29,.1);
  --shadow-lg: 0 0 0 1px rgba(36,33,29,.12), 0 18px 40px -18px rgba(60,45,30,.25);
  --deck: 0 0 0 0 transparent;
  --tab-bg: #F2EDE3; --tab-line: rgba(36,33,29,.14);
  --mask: rgba(36,33,29,.35);
  --game-card: #FAF7F0;
  --t1: #24211D; --t2: #A5432F; --t3: #4E5B47; --t4: #6B5B45; --t5: #3F4A5A; --t6: #7A6A5A;
  --icon-bg: transparent; --icon-fg: #24211D;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); background-image: var(--bg-img); background-attachment: fixed; min-height: 100vh; min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body.lock { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { display: block; flex-shrink: 0; }
i[data-ic] { display: contents; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--display-w); }
p { margin: 0; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }
.num { font-family: var(--num); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* ---------- 布局：手机 ---------- */
.main { padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) calc(120px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); max-width: 680px; margin: 0 auto; }
.view { display: none; } .view.active { display: block; animation: viewFade .28s ease-out both; }
@keyframes viewFade { from { opacity: 0; } to { opacity: 1; } }
.view.active > :not(.dock):not(.tool-seg) { animation: viewIn .32s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 6px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: var(--tab-bg); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 -.5px 0 var(--tab-line); }
[data-skin="washi"] .tabbar { background-image: var(--bg-img); }
.tabbar .brand { display: none; }
.tabbar button { flex: 1; max-width: 120px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .02em; transition: color .2s; position: relative; }
.tabbar button.active { color: var(--accent); }
[data-skin="washi"] .tabbar button { font-family: var(--serif); letter-spacing: .12em; }
[data-skin="washi"] .tabbar button.active { color: var(--text); }
[data-skin="washi"] .tabbar button.active span::after { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 2px auto 0; }

/* ---------- 通用组件 ---------- */
.page-hd { padding: 16px 0; }
.page-hd .eyebrow { font-size: 13px; color: var(--text-2); font-weight: 500; letter-spacing: .02em; }
[data-skin="noir"] .page-hd .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
[data-skin="washi"] .page-hd .eyebrow { font-family: var(--serif); letter-spacing: .2em; }
.page-hd h1 { font-family: var(--display); font-size: 32px; line-height: 1.25; letter-spacing: var(--display-ls); margin-top: 4px; }
[data-skin="washi"] .page-hd { border-bottom: 1px solid var(--text); margin-bottom: 16px; padding-bottom: 20px; }
.page-hd.sub { padding-top: 4px; }
.back-row { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; min-height: 52px; }

.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; gap: 12px; }
.sec h2 { font-family: var(--display); font-size: 20px; letter-spacing: var(--title-ls); }
.sec span { font-size: 12px; color: var(--text-3); }
[data-skin="washi"] .sec h2 { font-size: 15px; letter-spacing: .3em; }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.group-list { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
[data-skin="washi"] .group-list, [data-skin="washi"] .card { background: rgba(250,247,240,.6); }
.row-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; position: relative; text-decoration: none; }
.row-item + .row-item::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.row-item .ri-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); flex-shrink: 0; }
[data-skin="noir"] .ri-ic, [data-skin="washi"] .ri-ic { box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-skin="noir"] .ri-ic { border-radius: 50%; }
.row-item .ri-main { flex: 1; min-width: 0; }
.row-item b { display: block; font-size: 15px; font-weight: 600; }
.row-item small { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .ri-end { color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-btn); font-size: 16px; font-weight: 600; letter-spacing: .01em; transition: transform .14s ease, opacity .2s, background .2s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-skin="noir"] .btn.secondary { background: rgba(255,255,255,.03); }
[data-skin="washi"] .btn.secondary { background: transparent; }
.btn.plain { color: var(--accent); min-height: 44px; padding: 0 8px; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn:disabled { opacity: .38; pointer-events: none; }
[data-skin="washi"] .btn { font-family: var(--serif); letter-spacing: .12em; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 22px; font-size: 14px; font-weight: 500; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: transform .14s; white-space: nowrap; }
.pill:active { transform: scale(.96); }
[data-skin="noir"] .pill { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-skin="washi"] .pill { border-radius: var(--r-btn); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--serif); letter-spacing: .08em; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 36px; padding: 0 16px; border-radius: var(--r-chip); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 .5px var(--line); transition: background .2s, color .2s; position: relative; }
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip.on { background: var(--chip-on); color: var(--on-chip-on); box-shadow: none; }
[data-skin="noir"] .chip { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="noir"] .chip.on { background: var(--chip-on); font-weight: 600; }
[data-skin="morandi"] .chip { background: rgba(255,255,255,.45); box-shadow: none; }
[data-skin="morandi"] .chip.on { background: var(--chip-on); }
[data-skin="washi"] .chips { gap: 20px; }
[data-skin="washi"] .chip { background: none; box-shadow: none; padding: 0; border-radius: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--text-3); }
[data-skin="washi"] .chip.on { color: var(--text); box-shadow: inset 0 -1.5px 0 var(--text); }

.seg { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--surface-3); }
.seg button { flex: 1; min-height: 44px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
[data-skin="noir"] .seg { background: #1A1A1D; box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="noir"] .seg button.on { background: #2A2926; color: var(--accent); box-shadow: none; }
[data-skin="morandi"] .seg { background: var(--surface-2); }
[data-skin="washi"] .seg { background: transparent; border-radius: 0; padding: 0; gap: 0; box-shadow: inset 0 -1px 0 var(--line); }
[data-skin="washi"] .seg button { border-radius: 0; font-family: var(--serif); letter-spacing: .1em; }
[data-skin="washi"] .seg button.on { background: none; box-shadow: inset 0 -2px 0 var(--text); }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 16px; padding: 4px; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: var(--surface); box-shadow: var(--shadow); transition: transform .12s; }
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 64px; text-align: center; font-size: 26px; font-weight: 600; font-family: var(--num); font-variant-numeric: lining-nums tabular-nums; }
[data-skin="noir"] .stepper { background: #18181B; box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="noir"] .stepper button { background: #232326; }
[data-skin="noir"] .stepper output { font-weight: 500; }
[data-skin="washi"] .stepper { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 3px; }
[data-skin="washi"] .stepper button { background: none; box-shadow: none; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 15px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .tg { width: 51px; height: 31px; border-radius: 16px; background: var(--surface-3); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .tg::after { content: ""; position: absolute; width: 27px; height: 27px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.3,1.3,.5,1); }
.switch input:checked + .tg { background: var(--accent); }
.switch input:checked + .tg::after { transform: translateX(20px); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text-2); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; }
.check .bx { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; color: transparent; transition: .2s; }
.check input:checked + .bx { background: var(--accent); color: var(--on-accent); box-shadow: none; }

.input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 0; outline: none; background: var(--surface-2); color: var(--text); font-size: 17px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.input::placeholder { color: var(--text-3); }
textarea.input { line-height: 1.7; resize: none; font-size: 16px; }
.code-input { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; font-size: 16px; }
.code-input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); }
[data-skin="noir"] .input { background: #18181B; box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="noir"] .input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }

.dock { position: fixed; z-index: 35; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); padding: 16px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); display: flex; gap: 12px; justify-content: center; background: linear-gradient(to top, var(--bg) 65%, transparent); pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock .btn.primary, .dock .btn.accent { flex: 1; max-width: 520px; }
.dock .btn.secondary { flex: 0 0 auto; }
.has-dock { padding-bottom: 88px; }
.empty { text-align: center; padding: 40px 24px; color: var(--text-2); }
.empty .e-ic, .lock-cover .e-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.empty b, .lock-cover b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty p, .lock-cover p { font-size: 14px; margin-bottom: 20px; color: var(--text-2); }
.lock-cover { text-align: center; padding: 48px 24px; }
.lock-cover .e-ic { background: var(--accent-soft); color: var(--accent); }

/* ---------- 首页 ---------- */
.feat { position: relative; overflow: hidden; margin-top: 16px; padding: 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .2s; text-align: left; width: 100%; display: block; }
.feat:active { transform: scale(.985); }
.feat .f-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent); position: relative; }
.feat h2 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 16px 0 8px; letter-spacing: var(--display-ls); position: relative; }
.feat p { font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 58%; position: relative; }
.feat .f-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; position: relative; gap: 8px; }
.meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.f-go { height: 40px; padding: 0 16px 0 18px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.stack { position: absolute; right: 16px; top: 18px; width: 112px; height: 124px; pointer-events: none; }
.wc { position: absolute; width: 72px; height: 94px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.08); padding: 6px; text-align: center; }
.wc small { font-size: 10px; color: var(--text-3); letter-spacing: .1em; }
.wc b { font-size: 17px; font-weight: 600; line-height: 1.2; word-break: break-all; }
.wc b.e { font-size: 22px; letter-spacing: 0; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.wc.w1 { left: 0; top: 18px; transform: rotate(-7deg); z-index: 1; }
.wc.w2 { right: 0; top: 0; transform: rotate(8deg); background: var(--surface-2); }
.wc.w2 b { color: var(--accent); filter: blur(3.5px); }
[data-skin="noir"] .feat { background: linear-gradient(165deg, #1B1915 0%, #121113 70%); box-shadow: inset 0 0 0 1px rgba(200,180,143,.16), 0 20px 40px rgba(0,0,0,.4); }
[data-skin="noir"] .feat::before { content: ""; position: absolute; right: -80px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200,180,143,.16), transparent); }
[data-skin="noir"] .feat .f-tag { font-size: 10.5px; letter-spacing: .24em; font-weight: 500; }
[data-skin="noir"] .feat h2 { color: #F4EBDA; }
[data-skin="noir"] .wc { background: linear-gradient(180deg, #24211C, #181715); box-shadow: inset 0 0 0 1px rgba(200,180,143,.25), 0 14px 28px rgba(0,0,0,.5); border-radius: 12px; }
[data-skin="noir"] .wc small { color: #8C7F67; }
[data-skin="noir"] .wc b { font-family: var(--serif); font-weight: 500; color: #EADFC8; }
[data-skin="noir"] .wc.w2 b { color: var(--accent); }
[data-skin="morandi"] .feat { background: #C7CDBD; }
[data-skin="morandi"] .feat .f-tag { color: #5C6858; }
[data-skin="morandi"] .feat h2 { color: #33372F; }
[data-skin="morandi"] .feat p, [data-skin="morandi"] .feat .meta { color: #596153; }
[data-skin="morandi"] .f-go { background: #3D3934; color: #F7F4EF; }
[data-skin="morandi"] .stack, [data-skin="washi"] .stack { display: none; }
.vign { display: none; position: absolute; right: 20px; top: 22px; width: 116px; height: 120px; border-radius: 58px 58px 16px 16px; background: #D5DACB; overflow: hidden; pointer-events: none; }
.vign i { position: absolute; display: block; }
.vign .sun { width: 28px; height: 28px; border-radius: 50%; background: #EADCCB; right: 20px; top: 20px; }
.vign .a1 { width: 50px; height: 76px; border-radius: 25px 25px 0 0; background: #A9B39E; left: 12px; bottom: 0; }
.vign .a2 { width: 40px; height: 54px; border-radius: 20px 20px 0 0; background: #D3B5AA; left: 52px; bottom: 0; }
.vign .a3 { width: 26px; height: 34px; border-radius: 13px 13px 0 0; background: #E9E1D3; right: 10px; bottom: 0; }
.vign .gr { left: 0; right: 0; bottom: 0; height: 9px; background: #BFC6B3; }
[data-skin="morandi"] .vign { display: block; }
.enso { display: none; position: absolute; right: -44px; top: -46px; pointer-events: none; fill: none; stroke: var(--text); opacity: .1; }
[data-skin="washi"] .enso { display: block; }
[data-skin="washi"] .feat { background: #E9E2D4; box-shadow: inset 0 0 0 1px rgba(36,33,29,.1); }
[data-skin="washi"] .feat .f-tag { font-family: var(--serif); letter-spacing: .3em; font-weight: 500; }
[data-skin="washi"] .feat h2 { font-size: 32px; letter-spacing: .16em; }
[data-skin="washi"] .f-go { border-radius: 2px; background: var(--primary); color: var(--on-primary); font-family: var(--serif); letter-spacing: .2em; }

.plan-row { margin-top: 12px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: left; transition: transform .15s; }
.plan-row:active { transform: scale(.985); }
.plan-row .p-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); flex-shrink: 0; }
.plan-row .p-main { flex: 1; } .plan-row b { display: block; font-size: 15px; font-weight: 600; } .plan-row small { font-size: 12px; color: var(--text-2); }
.plan-row .p-chev { color: var(--text-3); }
[data-skin="noir"] .plan-row .p-ic { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(200,180,143,.3); }
[data-skin="morandi"] .plan-row .p-ic { background: #E8DCD5; color: #8A6458; }
[data-skin="washi"] .plan-row { background: none; box-shadow: none; border-radius: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
[data-skin="washi"] .plan-row .p-ic { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(165,67,47,.4); border-radius: 2px; background: none; }
[data-skin="washi"] .plan-row b { font-family: var(--serif); letter-spacing: .06em; font-size: 16px; }

.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: g; }
.tile { position: relative; text-align: left; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); min-height: 160px; display: flex; flex-direction: column; transition: transform .16s; counter-increment: g; animation: viewIn .4s both; }
.tile:active { transform: scale(.97); }
.tile .t-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--icon-bg); color: var(--icon-fg); }
.tile b { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.tile small { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.tile .t-meta { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.tile .t-meta span + span::before { content: "·"; margin-right: 6px; }
.tile .t-tag { position: absolute; top: 16px; right: 14px; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
[data-skin="noir"] .tile .t-ic { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(200,180,143,.28); }
[data-skin="noir"] .tile b { font-weight: 500; }
[data-skin="noir"] .tile .t-tag { background: none; box-shadow: inset 0 0 0 1px rgba(200,180,143,.35); font-size: 10.5px; }
[data-skin="morandi"] .tile .t-ic { background: var(--gt-bg, #E9E3DA); color: var(--gt-fg, #5A534A); }
[data-skin="morandi"] .g-draw { --gt-bg: #E7D7D1; --gt-fg: #8F665A; }
[data-skin="morandi"] .g-emoji { --gt-bg: #DFE3D6; --gt-fg: #5F6E58; }
[data-skin="morandi"] .g-undercover { --gt-bg: #D8DFE5; --gt-fg: #566978; }
[data-skin="morandi"] .g-td { --gt-bg: #E1D9E0; --gt-fg: #7A6475; }
[data-skin="morandi"] .g-quick { --gt-bg: #E9E1D1; --gt-fg: #8A7651; }
[data-skin="morandi"] .g-quiz { --gt-bg: #DCE1DA; --gt-fg: #5E6D62; }
[data-skin="morandi"] .g-bomb { --gt-bg: #E4E2D4; --gt-fg: #6E6C4E; }
[data-skin="morandi"] .g-activity { --gt-bg: #E6DAD3; --gt-fg: #84675B; }
[data-skin="morandi"] .tile .t-tag { background: var(--bg); color: var(--text-2); }
@counter-style washi { system: fixed; symbols: 壹 贰 叁 肆 伍 陆 柒 捌 玖 拾; suffix: ""; }
[data-skin="washi"] .games { grid-template-columns: 1fr; gap: 0; }
[data-skin="washi"] .tile { background: none; box-shadow: none; border-radius: 0; min-height: 0; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
[data-skin="washi"] .tile::before { content: counter(g, washi); position: absolute; left: 0; top: 18px; width: 20px; text-align: center; font-family: var(--serif); color: var(--text-3); font-size: 15px; }
[data-skin="washi"] .tile .t-ic { display: none; }
[data-skin="washi"] .tile b { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; grid-column: 1; }
[data-skin="washi"] .tile small { grid-column: 1; }
[data-skin="washi"] .tile .t-meta { grid-column: 2; grid-row: 1; padding: 0; margin: 0; font-size: 12px; color: var(--text-2); justify-content: flex-end; align-self: center; }
[data-skin="washi"] .tile .t-tag { position: static; grid-column: 2; grid-row: 2; justify-self: end; align-self: start; border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px rgba(165,67,47,.45); font-family: var(--serif); letter-spacing: .1em; padding: 0 6px; margin-top: 4px; }

/* ---------- 一键排一场 ---------- */
.field { margin-top: 24px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; letter-spacing: .04em; }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scene { min-height: 76px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: .2s; }
.scene.on { background: var(--chip-on); color: var(--on-chip-on); box-shadow: none; }
[data-skin="washi"] .scene { background: none; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--serif); letter-spacing: .1em; }
[data-skin="washi"] .scene.on { background: var(--primary); }
.size-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.size-row .chips { margin: 0; padding: 0; flex: 1; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; min-height: 68px; position: relative; animation: viewIn .4s both; }
.plan-item + .plan-item::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.plan-item .pi-no { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); flex-shrink: 0; }
[data-skin="noir"] .plan-item .pi-no { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(200,180,143,.28); }
.plan-item .pi-main { flex: 1; min-width: 0; text-align: left; min-height: 48px; display: flex; flex-direction: column; justify-content: center; }
.plan-item b { font-size: 15px; font-weight: 600; } .plan-item small { font-size: 12px; color: var(--text-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-item .pi-min { font-size: 13px; color: var(--text-3); flex-shrink: 0; font-family: var(--num); }
.plan-item .pi-swap { min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--accent); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.plan-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; }
.plan-sum h2 { font-family: var(--display); font-size: 20px; letter-spacing: var(--title-ls); } .plan-sum span { font-size: 13px; color: var(--text-2); }

/* ---------- 工具 ---------- */
.tool-seg { position: sticky; top: 0; z-index: 20; margin: 0 -20px; padding: calc(8px + env(safe-area-inset-top)) 20px 12px; background: var(--bg); background-image: var(--bg-img); }
.tool-seg .seg button { min-height: 44px; }
.tool-panel { display: none; } .tool-panel.active { display: block; }
.stage { border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; position: relative; overflow: hidden; }
[data-skin="noir"] .stage { background: var(--game-card); }
[data-skin="morandi"] .stage { background: #DFE3D6; }
[data-skin="washi"] .stage { background: var(--surface); }
[data-skin="washi"] .stage::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.stage .st-label { font-size: 13px; color: var(--text-2); letter-spacing: .1em; }
.stage .st-names { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; margin: 12px 0; }
.stage .st-name { font-family: var(--display); font-size: clamp(40px, 13vw, 72px); font-weight: var(--display-w); letter-spacing: max(.02em, var(--display-ls)); line-height: 1.15; word-break: break-all; }
.stage.many .st-name { font-size: clamp(28px, 8vw, 44px); }
.stage.rolling .st-name { opacity: .5; }
.stage.done .st-name { animation: pop .45s cubic-bezier(.3,1.5,.5,1); }
.stage .st-sub { font-size: 13px; color: var(--text-3); }
@keyframes pop { 0% { transform: scale(.82); opacity: .3; } 100% { transform: none; opacity: 1; } }
.hist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hist span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.groups { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.grp { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); padding: 16px; animation: viewIn .4s both; }
.grp h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.grp h4 i.sw { width: 10px; height: 10px; border-radius: 50%; background: var(--gc); }
.grp h4 small { color: var(--text-3); font-weight: 400; }
.grp .mem { display: flex; flex-wrap: wrap; gap: 6px; }
.grp .mem span { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: 14px; }
.preview-line { text-align: center; font-size: 15px; color: var(--text-2); }
.preview-line b { font-size: 28px; color: var(--text); font-family: var(--num); font-weight: 600; margin: 0 2px; font-variant-numeric: lining-nums; }
.ring { position: relative; width: min(68vw, 280px); aspect-ratio: 1; margin: 8px auto 0; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring circle, .bt-ring circle, .mt-ring circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.r-bg { stroke: var(--surface-3); } .r-fg { stroke: var(--accent); transition: stroke-dashoffset .35s linear; }
[data-skin="noir"] .r-bg { stroke: rgba(255,255,255,.08); }
[data-skin="washi"] .ring circle, [data-skin="washi"] .mt-ring circle, [data-skin="washi"] .bt-ring circle { stroke-width: 1.5; }
[data-skin="washi"] .r-fg { stroke: var(--text); }
.ring .rn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .rn b { font-family: var(--num); font-size: clamp(48px, 16vw, 72px); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ring .rn small { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.ring.hot .rn b { color: var(--danger); animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.04); } }
.presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 0; }
[data-skin="washi"] .presets { gap: 16px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { position: relative; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); padding: 12px 12px 10px; text-align: center; overflow: hidden; }
.team::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tc); }
.team .tm-hit { display: block; width: 100%; padding: 6px 0 4px; border-radius: 14px; transition: transform .12s; }
.team .tm-hit:active { transform: scale(.96); }
.team .tm-name { font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.team .tm-name i.sw { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.team .tm-score { display: block; font-family: var(--num); font-size: clamp(52px, 16vw, 88px); font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
[data-skin="noir"] .team .tm-score, [data-skin="washi"] .team .tm-score { font-weight: 500; }
.team .tm-hint { font-size: 11px; color: var(--text-3); }
.team .tm-btns { display: flex; gap: 6px; margin-top: 8px; }
.team .tm-btns button { flex: 1; min-height: 44px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); }
[data-skin="washi"] .team .tm-btns button { border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
.team.lead .tm-name::after { content: "领先"; font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.team.bump .tm-score { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.tool-acts { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; flex-wrap: wrap; }
.tool-split > * + * { margin-top: 12px; }

/* ---------- 主题商店 ---------- */
.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.skin-card { text-align: left; display: flex; flex-direction: column; gap: 10px; transition: transform .16s; }
.skin-card:active { transform: scale(.97); }
.skin-card .sc-info b { font-size: 15px; font-weight: 600; color: var(--text); } .skin-card .sc-info b em { font-style: normal; color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 4px; letter-spacing: .04em; }
.skin-card .sc-info small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.skin-card .sc-st { font-size: 12px; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.skin-card .sc-st.on { color: var(--accent); }
.mini { position: relative; aspect-ratio: 390 / 600; border-radius: 22px; overflow: hidden; background: var(--bg); background-image: var(--bg-img); color: var(--text); font-family: var(--font); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 28px -12px rgba(0,0,0,.28); padding: 16% 8% 0; pointer-events: none; transition: box-shadow .2s; }
.skin-card.cur .mini { outline: 2px solid var(--ring-c, #3E5C8A); outline-offset: 3px; }
.mini .m-date { font-size: 7px; color: var(--text-3); letter-spacing: .04em; }
.mini .m-h { font-family: var(--display); font-weight: var(--display-w); font-size: 14px; letter-spacing: var(--display-ls); margin: 2px 0 8px; white-space: nowrap; }
.mini .m-feat { border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); padding: 9px; position: relative; overflow: hidden; }
[data-skin="noir"].mini .m-feat { background: linear-gradient(165deg, #1B1915, #121113); box-shadow: inset 0 0 0 1px rgba(200,180,143,.18); }
[data-skin="morandi"].mini .m-feat { background: #C7CDBD; }
[data-skin="washi"].mini .m-feat { background: #E9E2D4; box-shadow: inset 0 0 0 1px rgba(36,33,29,.1); border-radius: 2px; }
.mini .m-feat i { display: block; font-style: normal; font-size: 6px; color: var(--accent); letter-spacing: .1em; }
.mini .m-feat b { display: block; font-family: var(--display); font-weight: var(--display-w); font-size: 12px; margin: 6px 0 3px; letter-spacing: var(--display-ls); }
.mini .m-feat s { display: block; text-decoration: none; width: 60%; height: 4px; border-radius: 2px; background: var(--text-3); opacity: .5; }
.mini .m-feat u { display: block; margin: 8px 0 0 auto; width: 34px; height: 13px; border-radius: 7px; background: var(--accent); }
[data-skin="morandi"].mini .m-feat u { background: #3D3934; }
[data-skin="washi"].mini .m-feat u { border-radius: 1px; background: var(--primary); }
.mini .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mini .m-grid span { height: 46px; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); position: relative; }
.mini .m-grid span::before { content: ""; position: absolute; left: 6px; top: 6px; width: 11px; height: 11px; border-radius: 4px; background: var(--icon-bg); box-shadow: inset 0 0 0 1px var(--line); }
.mini .m-grid span::after { content: ""; position: absolute; left: 6px; bottom: 8px; width: 50%; height: 3px; border-radius: 2px; background: var(--text); opacity: .55; }
[data-skin="noir"].mini .m-grid span::before { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(200,180,143,.4); }
[data-skin="morandi"].mini .m-grid span:nth-child(1)::before { background: #E7D7D1; box-shadow: none; } [data-skin="morandi"].mini .m-grid span:nth-child(2)::before { background: #DFE3D6; box-shadow: none; }
[data-skin="morandi"].mini .m-grid span:nth-child(3)::before { background: #D8DFE5; box-shadow: none; } [data-skin="morandi"].mini .m-grid span:nth-child(4)::before { background: #E1D9E0; box-shadow: none; }
[data-skin="washi"].mini .m-grid { grid-template-columns: 1fr; gap: 0; }
[data-skin="washi"].mini .m-grid span { height: 22px; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 var(--line); }
[data-skin="washi"].mini .m-grid span::before { display: none; }
[data-skin="washi"].mini .m-grid span::after { left: 2px; bottom: 9px; width: 34%; }
.mini .m-tab { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--tab-bg); box-shadow: 0 -.5px 0 var(--tab-line); display: flex; justify-content: space-around; align-items: center; }
.mini .m-tab i { width: 9px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1.2px var(--text-3); }
.mini .m-tab i:first-child { box-shadow: inset 0 0 0 1.2px var(--accent); }
[data-skin="washi"].mini .m-tab i:first-child { box-shadow: inset 0 0 0 1.2px var(--text); }
.bundles { margin-top: 32px; }
.bundle { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 72px; width: 100%; text-align: left; }
.bundle + .bundle { border-top: 1px solid var(--line); }
.bundle .b-main { flex: 1; min-width: 0; } .bundle b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; } .bundle small { font-size: 12px; color: var(--text-2); }
.badge { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); letter-spacing: .04em; white-space: nowrap; }
.price { font-family: var(--num); font-variant-numeric: lining-nums; font-weight: 600; }
.bundle .b-price { min-height: 40px; padding: 0 14px; border-radius: 20px; display: inline-flex; align-items: center; background: var(--surface-2); font-size: 15px; color: var(--text); }
.bundle .b-own { font-size: 13px; color: var(--text-3); }


/* ---------- 我的 ---------- */
.member { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 24px 20px 20px; background: linear-gradient(160deg, #2C2C30, #1D1D1F); color: #F5F5F7; margin-top: 4px; }
[data-skin="noir"] .member { background: linear-gradient(160deg, #24211B, #141416); color: var(--text); box-shadow: inset 0 0 0 1px rgba(200,180,143,.22); }
[data-skin="morandi"] .member { background: #6E7A69; color: #F7F4EF; }
[data-skin="washi"] .member { background: #24211D; color: #F2EDE3; }
.member .mb-k { font-size: 11px; letter-spacing: .2em; opacity: .65; }
[data-skin="noir"] .member .mb-k { color: var(--accent); opacity: 1; }
.member h2 { font-family: var(--display); font-size: 24px; margin: 8px 0 4px; letter-spacing: var(--display-ls); position: relative; }
.member p { font-size: 13px; opacity: .72; position: relative; }
.member .mb-act { display: flex; gap: 8px; margin-top: 20px; position: relative; }
.member .btn { background: rgba(255,255,255,.12); color: inherit; min-height: 44px; font-size: 15px; flex: 1; }
.member .btn.solid { background: #F5F5F7; color: #1D1D1F; }
[data-skin="noir"] .member .btn.solid { background: var(--accent); color: #141210; }
[data-skin="morandi"] .member .btn.solid { background: #F7F4EF; color: #3D3934; }
[data-skin="washi"] .member .btn.solid { background: #F2EDE3; color: #24211D; }
.member .mb-mark { position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 28px rgba(255,255,255,.03), 0 0 0 56px rgba(255,255,255,.02); }
[data-skin="washi"] .member .mb-mark { width: 40px; height: 40px; right: 20px; top: 20px; border-radius: 3px; box-shadow: none; background: var(--accent); }
.lic-row code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: .04em; }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); margin-left: 6px; vertical-align: middle; }
.foot-note { font-size: 12px; color: var(--text-3); text-align: center; margin: 24px 0 0; line-height: 1.7; }

/* ---------- 底部弹层（sheet） ---------- */
.sheet-mask { position: fixed; inset: 0; z-index: 200; background: var(--mask); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.sheet-mask.show { opacity: 1; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--text); border-radius: 24px 24px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.25,1); }
[data-skin="noir"] .sheet { background: #17171A; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
[data-skin="morandi"] .sheet { background: #F7F4EF; }
[data-skin="washi"] .sheet { background-color: #F7F3EA; background-image: var(--bg-img); border-radius: 6px 6px 0 0; }
.sheet-mask.show .sheet { transform: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 8px; }
.sheet .sh-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.sheet .sh-hd h3 { font-family: var(--display); font-size: 22px; letter-spacing: var(--title-ls); line-height: 1.3; }
.sheet .sh-hd p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.sheet .sh-x { min-width: 44px; height: 44px; margin: -4px -8px 0 0; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; font-size: 10px; gap: 1px; }
.sheet .sh-x .xc { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.sheet .sh-foot { display: flex; gap: 12px; margin-top: 20px; }
.sheet .sh-foot .btn { flex: 1; }
.sheet .field-label { margin-top: 20px; }
.plans { display: grid; gap: 8px; margin-top: 16px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); text-align: left; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background .2s; min-height: 64px; width: 100%; }
[data-skin="washi"] .plan-opt { border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.plan-opt.on { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.plan-opt .po-radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex-shrink: 0; transition: box-shadow .2s; }
.plan-opt.on .po-radio { box-shadow: inset 0 0 0 6px var(--accent); }
.plan-opt .po-main { flex: 1; min-width: 0; } .plan-opt b { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .plan-opt small { font-size: 12px; color: var(--text-2); }
.plan-opt .price { font-size: 18px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.steps3 > div { position: relative; padding: 12px 10px; border-radius: 14px; background: var(--surface-2); font-size: 12px; line-height: 1.5; color: var(--text-2); }
[data-skin="washi"] .steps3 > div { border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.steps3 > div em { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 12px; margin-bottom: 6px; font-style: normal; font-weight: 600; font-family: var(--num); }
.steps3 strong { color: var(--text); font-weight: 600; }
.copy-row { display: flex; gap: 8px; margin-top: 12px; }
.copy-row .btn { flex: 1; padding: 0 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 20px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.redeem { display: flex; gap: 8px; }
.redeem .input { flex: 1; min-width: 0; }
.redeem .btn { flex-shrink: 0; }
.clip-hint { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; text-align: left; min-height: 44px; animation: viewIn .3s both; }
.clip-hint b { font-family: ui-monospace, Menlo, monospace; }
.demo-hint { font-size: 12px; color: var(--text-3); margin-top: 12px; line-height: 1.7; }
.demo-hint code { font-family: ui-monospace, Menlo, monospace; color: var(--text-2); }
.benefits { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.benefits li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.benefits li .ic { color: var(--accent); }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 0; }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); z-index: 400; width: max-content; max-width: min(92vw, 420px); transform: translate(-50%, -16px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 14px; background: rgba(28,28,30,.92); color: #fff; font-size: 14px; line-height: 1.45; text-align: left; display: flex; align-items: flex-start; gap: 8px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.25,1); }
.toast .ic { margin-top: 1px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-skin="noir"] .toast { background: rgba(38,36,32,.96); color: #F2EEE6; box-shadow: inset 0 0 0 1px rgba(200,180,143,.2), 0 10px 30px rgba(0,0,0,.4); }
[data-skin="washi"] .toast { background: #24211D; color: #F2EDE3; border-radius: 3px; }
[data-skin="morandi"] .toast { background: rgba(61,57,52,.94); color: #F7F4EF; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 450; overflow: hidden; }
.confetti i { position: absolute; top: -16px; width: 6px; height: 10px; border-radius: 1px; animation: fall 2.2s cubic-bezier(.3,.6,.6,1) forwards; opacity: .9; }
@keyframes fall { to { top: 104vh; transform: translateX(40px) rotate(540deg); opacity: .5; } }

/* ---------- 全屏游戏模式 ---------- */
.play { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--bg); background-image: var(--bg-img); color: var(--text); padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); opacity: 0; transform: scale(.985); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.play.show { opacity: 1; transform: none; }
.pl-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 12px 0; }
.pl-right { display: flex; gap: 8px; justify-content: flex-end; }
.pl-top .pill { padding: 0 12px 0 10px; }
.pl-top > .pill { justify-self: start; }
.pl-title { text-align: center; min-width: 0; }
.pl-title b { display: block; font-family: var(--display); font-size: 17px; font-weight: var(--display-w); letter-spacing: var(--title-ls); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title small { font-size: 12px; color: var(--text-2); font-variant-numeric: lining-nums; }
.pl-prog { display: flex; gap: 6px; padding: 14px 24px 0; min-height: 17px; max-width: 640px; width: 100%; margin: 0 auto; }
.pl-prog i { flex: 1; height: 3px; border-radius: 2px; background: var(--surface-3); transition: background .3s; }
.pl-prog i.done { background: var(--text); opacity: .8; } .pl-prog i.cur { background: var(--accent); opacity: 1; }
[data-skin="noir"] .pl-prog i { background: rgba(255,255,255,.08); } [data-skin="noir"] .pl-prog i.done { background: rgba(200,180,143,.5); }
[data-skin="noir"] .pl-prog i.cur { background: var(--accent); }
.pl-stage { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; padding: 12px 20px 4px; }
.pl-stage > .sc { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; flex: 1 0 auto; }
.pl-stage > .sc.enter { animation: scIn .38s cubic-bezier(.2,.85,.25,1) both; }
@keyframes scIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.pl-dock { display: flex; gap: 12px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); justify-content: center; }
.pl-dock:empty { display: none; }
.pl-dock .btn { min-height: 56px; font-size: 16px; }
.pl-dock .btn.primary { flex: 1; max-width: 420px; }
.pl-dock .btn.secondary { min-width: 104px; }
.pl-keys { display: none; text-align: center; font-size: 12px; color: var(--text-3); padding-bottom: 12px; }
@media (hover: hover) and (pointer: fine) { .pl-keys { display: block; } }
.only-wide { display: none !important; }

/* 计分条 */
.score-strip { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; min-height: 44px; }
.score-strip button { min-height: 44px; padding: 0 12px; border-radius: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); transition: .2s; }
.score-strip button.on { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); background: var(--surface); }
[data-skin="washi"] .score-strip button { border-radius: 2px; } [data-skin="washi"] .score-strip button.on { background: none; }
.score-strip i.sw, .award i.sw { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); display: inline-block; }
.score-strip b { font-family: var(--num); font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: lining-nums tabular-nums; display: inline-block; }
[data-skin="noir"] .score-strip b { font-weight: 500; font-size: 24px; }
.score-strip button.bump b { animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.award { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; animation: viewIn .3s both; }
.award .lbl { width: 100%; text-align: center; font-size: 13px; color: var(--text-2); }
.award button { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
[data-skin="washi"] .award button { border-radius: 2px; background: none; }
.award button.done { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* 题卡 */
.gcard { position: relative; width: 100%; min-height: 340px; margin: 12px 0 8px; border-radius: var(--r-xl); background: var(--game-card); box-shadow: var(--shadow-lg), var(--deck); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px 52px; transition: transform .2s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-skin="morandi"] .gcard { background: #E5D6CF; box-shadow: var(--deck); overflow: hidden; }
[data-skin="morandi"] .gcard::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 236px; height: 72%; margin-left: -118px; border-radius: 118px 118px 0 0; background: #EADDD6; z-index: 0; }
[data-skin="morandi"] .gcard.alt { background: #DFE3D6; } [data-skin="morandi"] .gcard.alt::after { background: #E8EBE1; }
[data-skin="morandi"] .gcard.blue { background: #D8DFE5; } [data-skin="morandi"] .gcard.blue::after { background: #E3E8EC; }
[data-skin="washi"] .gcard::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }
[data-skin="noir"] .gcard::after { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200,180,143,.10), transparent); pointer-events: none; }
.gcard > * { position: relative; z-index: 1; }
.gcard .c-tag { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
[data-skin="noir"] .gcard .c-tag { background: none; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(200,180,143,.28); }
[data-skin="morandi"] .gcard .c-tag { background: rgba(255,255,255,.5); color: #7E5F55; }
[data-skin="washi"] .gcard .c-tag { background: none; font-family: var(--serif); letter-spacing: .08em; top: auto; bottom: 22px; }
.gcard .c-cat { font-size: 14px; color: var(--text-2); letter-spacing: .1em; margin-bottom: 12px; }
[data-skin="noir"] .gcard .c-cat { letter-spacing: .24em; font-size: 13px; }
[data-skin="washi"] .gcard .c-cat { font-family: var(--serif); letter-spacing: .3em; }
.gcard .c-word { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(44px, 15vw, 72px); line-height: 1.12; letter-spacing: .02em; word-break: break-all; }
[data-skin="noir"] .gcard .c-word { color: #F4EBDA; letter-spacing: .12em; text-shadow: 0 0 40px rgba(200,180,143,.15); }
[data-skin="washi"] .gcard .c-word { letter-spacing: .14em; }
.gcard .c-word.md { font-size: clamp(24px, 7vw, 36px); line-height: 1.45; letter-spacing: .02em; }
[data-skin="noir"] .gcard .c-word.md, [data-skin="washi"] .gcard .c-word.md { letter-spacing: .04em; }
.gcard .c-emoji { font-size: clamp(56px, 17vw, 92px); line-height: 1.15; letter-spacing: .04em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; word-break: break-all; }
.gcard .c-rule { font-size: 13px; color: var(--text-3); margin-top: 20px; }
[data-skin="washi"] .gcard .c-rule { font-family: var(--serif); letter-spacing: .1em; }
.gcard .c-foot { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 12px; color: var(--text-3); display: flex; justify-content: center; align-items: center; gap: 6px; }
.boxes { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.boxes i { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
[data-skin="washi"] .boxes i { border-radius: 1px; }
.vert { position: absolute; left: 26px; top: 30px; writing-mode: vertical-rl; font-family: var(--serif); font-size: 13px; letter-spacing: .5em; color: var(--text-2); display: none; }
.seal { position: absolute; right: 26px; top: 28px; width: 30px; height: 30px; border-radius: 3px; background: var(--accent); color: var(--on-accent); display: none; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 16px; transform: rotate(-4deg); opacity: .92; }
[data-skin="washi"] .vert { display: block; } [data-skin="washi"] .seal { display: grid; }

.peek { cursor: pointer; touch-action: none; }
.peek .pk-cover { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.peek .pk-ring { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); position: relative; margin-bottom: 8px; }
[data-skin="noir"] .peek .pk-ring { background: none; box-shadow: inset 0 0 0 1px rgba(200,180,143,.35); color: var(--accent); }
[data-skin="morandi"] .peek .pk-ring { background: rgba(255,255,255,.55); color: #7E5F55; }
[data-skin="washi"] .peek .pk-ring { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); }
.peek .pk-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .35; } }
.peek .pk-cover b { font-size: 22px; font-weight: var(--display-w); font-family: var(--display); letter-spacing: var(--title-ls); }
.peek .pk-cover small { font-size: 14px; color: var(--text-2); }
.peek .pk-word { display: none; }
.peek.on .pk-cover { display: none; } .peek.on .pk-word { display: block; animation: pop .22s cubic-bezier(.3,1.4,.5,1); }
.peek.on { transform: scale(.985); }
.peek.public .pk-cover { display: none; } .peek.public .pk-word { display: block; }

.flip { position: relative; width: 100%; perspective: 1400px; margin: 12px 0 8px; cursor: pointer; }
.flip .fl-in { position: relative; width: 100%; min-height: 340px; transition: transform .6s cubic-bezier(.3,1.2,.5,1); transform-style: preserve-3d; }
.flip.on .fl-in { transform: rotateY(180deg); }
.flip .gcard { position: absolute; inset: 0; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .gcard.back { transform: rotateY(180deg); }
.ans-k { font-size: 12px; letter-spacing: .3em; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.tap-hint { font-size: 13px; color: var(--text-3); margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; min-height: 20px; }

.mtimer { display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.mt-ring { position: relative; width: 112px; height: 112px; }
.mt-ring svg { width: 100%; height: 100%; display: block; }
[data-skin="morandi"] .mt-ring .r-fg { stroke-width: 4; }
.mt-ring .rn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mt-ring .rn b { font-family: var(--num); font-size: 30px; font-weight: 500; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
[data-skin="noir"] .mt-ring .rn b { font-size: 36px; font-weight: 400; }
.mt-ring .rn small { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mt-ring.hot .rn b { color: var(--danger); }
.mt-ring.idle .rn b { color: var(--text-3); }

.uc-setup { width: 100%; display: grid; gap: 12px; margin-top: 8px; }
.uc-setup .card { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; margin: 0; }
.uc-setup .card b { display: block; font-size: 16px; } .uc-setup .card small { font-size: 12px; color: var(--text-2); }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; margin-top: 16px; }
.seat { aspect-ratio: 1; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--num); font-size: 22px; font-weight: 600; transition: .25s; min-height: 64px; font-variant-numeric: lining-nums; }
[data-skin="washi"] .seat { border-radius: 2px; }
[data-skin="morandi"] .seat { background: #F7F4EF; }
.seat small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--text-3); }
.seat.out { opacity: .5; background: var(--surface-2); box-shadow: none; }
.seat.out.spy { opacity: 1; background: var(--accent); color: var(--on-accent); }
.seat.out.spy small { color: inherit; opacity: .85; }
.banner { width: 100%; text-align: center; padding: 14px; border-radius: var(--r-card); background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-top: 12px; animation: pop .4s both; }
.reveal-pair { display: flex; gap: 12px; width: 100%; margin-top: 12px; animation: viewIn .3s both; }
.reveal-pair div { flex: 1; text-align: center; padding: 16px 8px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.reveal-pair small { font-size: 12px; color: var(--text-2); letter-spacing: .1em; } .reveal-pair b { display: block; font-family: var(--display); font-size: 26px; margin-top: 4px; font-weight: var(--display-w); }
.uc-tip { font-size: 14px; color: var(--text-2); text-align: center; margin-top: 4px; }
.uc-tip b { color: var(--text); }

.td-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 12px; }
.td-card { min-height: 300px; border-radius: var(--r-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--game-card); box-shadow: var(--shadow-lg); transition: transform .2s; position: relative; overflow: hidden; }
.td-card:active { transform: scale(.97); }
.td-card .ic { color: var(--accent); position: relative; }
.td-card b { font-family: var(--display); font-size: 24px; font-weight: var(--display-w); letter-spacing: .08em; position: relative; }
.td-card small { font-size: 12px; color: var(--text-3); position: relative; }
[data-skin="morandi"] .td-card.t { background: #D8DFE5; box-shadow: none; } [data-skin="morandi"] .td-card.d { background: #E5D6CF; box-shadow: none; }
[data-skin="washi"] .td-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); }
.td-card .pat { position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(circle, transparent 50%, var(--line) 52%, transparent 56%); background-size: 32px 32px; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, transparent 40%, #000); mask-image: radial-gradient(closest-side, transparent 40%, #000); }

.bomb-range { display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--num); font-variant-numeric: lining-nums tabular-nums; margin-top: 12px; }
.bomb-range b { font-size: clamp(56px, 18vw, 96px); font-weight: 500; line-height: 1; }
.bomb-range i { font-style: normal; color: var(--text-3); font-size: 28px; }
.bomb-range.boom b { color: var(--danger); }
.bomb-bar { position: relative; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-3); margin: 20px 0 8px; overflow: hidden; }
.bomb-bar span { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; transition: left .35s, right .35s; }
.bomb-in { font-family: var(--num); font-size: 40px; font-weight: 500; min-height: 60px; display: flex; align-items: center; justify-content: center; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.bomb-in.empty { color: var(--text-3); font-size: 15px; font-family: var(--font); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 360px; margin-top: 4px; }
.keypad button { min-height: 54px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-family: var(--num); font-size: 24px; font-weight: 500; display: grid; place-items: center; transition: transform .1s, background .1s; font-variant-numeric: lining-nums; }
.keypad button:active { transform: scale(.94); background: var(--surface-2); }
.keypad button.fn { font-family: var(--font); font-size: 15px; color: var(--text-2); background: transparent; box-shadow: none; }
[data-skin="washi"] .keypad button { border-radius: 2px; }
[data-skin="morandi"] .keypad button { background: #F7F4EF; }
[data-skin="morandi"] .keypad button.fn { background: transparent; }
.boom-anim { animation: shake .45s 2; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.log { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 22px; }
.log span { font-size: 13px; color: var(--text-3); text-decoration: line-through; font-family: var(--num); }

/* 玩法卡 */
.how { width: 100%; padding-bottom: 8px; }
.how .h-k { font-size: 13px; color: var(--accent); letter-spacing: .14em; font-weight: 600; text-align: center; }
.how h2 { font-family: var(--display); font-size: 30px; letter-spacing: var(--display-ls); text-align: center; margin: 6px 0 4px; }
.how .h-sub { text-align: center; color: var(--text-2); font-size: 15px; }
.how .meta { justify-content: center; margin-top: 12px; }
.how-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.how-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); animation: viewIn .45s both; }
.how-steps li:nth-child(2) { animation-delay: .07s; } .how-steps li:nth-child(3) { animation-delay: .14s; }
[data-skin="morandi"] .how-steps li { background: #F7F4EF; }
[data-skin="washi"] .how-steps li { background: none; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 4px; }
.how-steps .hs-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); flex-shrink: 0; position: relative; }
[data-skin="noir"] .how-steps .hs-ic { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(200,180,143,.3); }
[data-skin="morandi"] .how-steps .hs-ic { background: #DFE3D6; color: #5F6E58; }
[data-skin="washi"] .how-steps .hs-ic { box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 2px; }
.how-steps .hs-ic em { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-family: var(--num); }
.how-steps b { display: block; font-size: 16px; margin-bottom: 2px; font-weight: 600; } .how-steps p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
[data-skin="washi"] .how-steps b { font-family: var(--serif); letter-spacing: .06em; }
.how .check { margin: 12px auto 0; display: flex; justify-content: center; }

.endc { text-align: center; width: 100%; margin: auto 0; padding: 24px 0; }
.endc .e-mark { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); animation: pop .5s cubic-bezier(.3,1.5,.5,1) both; }
[data-skin="washi"] .endc .e-mark { border-radius: 3px; background: var(--accent); color: var(--on-accent); transform: rotate(-4deg); }
.endc h2 { font-family: var(--display); font-size: 28px; letter-spacing: var(--display-ls); }
.endc p { color: var(--text-2); margin-top: 8px; font-size: 15px; line-height: 1.6; }
.endc .final { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.endc .final div { min-width: 96px; padding: 12px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.endc .final small { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; } .endc .final b { display: block; font-family: var(--num); font-size: 32px; font-weight: 600; font-variant-numeric: lining-nums; }
.endc .benefits { max-width: 300px; margin: 20px auto 0; }
.intro-c { text-align: center; margin: auto 0; width: 100%; padding: 16px 0; }
.intro-c .i-ic { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); }
[data-skin="noir"] .intro-c .i-ic { border-radius: 50%; color: var(--accent); }
[data-skin="washi"] .intro-c .i-ic { border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line-strong); background: none; }
.intro-c .i-step { font-size: 13px; color: var(--accent); letter-spacing: .14em; font-weight: 600; }
.intro-c h2 { font-family: var(--display); font-size: 32px; margin: 8px 0; letter-spacing: var(--display-ls); }
.intro-c p { color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 30em; margin: 0 auto; }
.intro-c .meta { justify-content: center; margin-top: 16px; }
.act-rules { font-size: 17px; line-height: 1.75; color: var(--text); max-width: 22em; }
.who { margin-top: 8px; font-size: 15px; color: var(--text-2); min-height: 44px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.who b { font-family: var(--display); font-size: 22px; color: var(--accent); animation: pop .35s both; font-weight: var(--display-w); }

/* 全屏计时 */
.bigtimer { position: fixed; inset: 0; z-index: 160; background: var(--bg); background-image: var(--bg-img); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); opacity: 0; transition: opacity .25s; }
.bigtimer.show { opacity: 1; }
.bt-ring { position: relative; width: min(84vw, 64vh); aspect-ratio: 1; }
.bt-ring svg { width: 100%; height: 100%; display: block; } .bt-ring circle { stroke-width: 2; }
.bt-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--num); font-weight: 500; font-size: min(20vw, 16vh); font-variant-numeric: lining-nums tabular-nums; }
.bigtimer.hot .bt-num { color: var(--danger); }
.bigtimer.ended .bt-ring { animation: beat 1s 3; }
.bt-actions { display: flex; gap: 12px; }
.bt-actions .btn { min-width: 104px; min-height: 52px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .main { padding-left: 32px; padding-right: 32px; max-width: 760px; }
  .chips { margin: 0; padding: 4px 0; }
  .tool-seg { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .skins { grid-template-columns: repeat(4, 1fr); }
  .teams { grid-template-columns: repeat(3, 1fr); }
  .groups { grid-template-columns: 1fr 1fr; }
  .sheet-mask { align-items: center; }
  .sheet { border-radius: 24px; max-height: 86vh; padding-bottom: 24px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.2,.9,.25,1), opacity .25s; }
  .sheet-mask.show .sheet { opacity: 1; }
  .sheet .grab { display: none; }
  [data-skin="washi"] .sheet { border-radius: 6px; }
  .only-wide { display: inline-flex !important; }
  .pl-stage > .sc { max-width: 600px; }
  .feat p { max-width: 64%; }
  .ring { width: 300px; }
}
/* ---------- 桌面：左侧导航 + 居中内容列 ---------- */
@media (min-width: 1100px) {
  .tabbar { top: 0; bottom: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 28px 16px; box-shadow: .5px 0 0 var(--tab-line); background: var(--bg); background-image: var(--bg-img); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar .brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 28px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); position: relative; flex-shrink: 0; }
  [data-skin="washi"] .brand-mark { border-radius: 3px; background: var(--accent); }
  .brand-mark::after { content: ""; position: absolute; inset: 10px; border: 1.6px solid var(--on-primary); transform: rotate(45deg); border-radius: 2px; }
  .tabbar .brand b { display: block; font-family: var(--display); font-size: 16px; letter-spacing: var(--title-ls); }
  .tabbar .brand small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; }
  .tabbar button { flex: 0 0 auto; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--text-2); }
  .tabbar button.active { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
  .tabbar button.active .ic { color: var(--accent); }
  [data-skin="washi"] .tabbar button.active { background: none; box-shadow: inset 2px 0 0 var(--accent); border-radius: 0; }
  [data-skin="washi"] .tabbar button.active span::after { display: none; }
  .main { margin-left: 232px; max-width: none; padding: 24px 48px 96px; }
  .main > .view { max-width: 920px; margin: 0 auto; }
  .tool-seg { margin: 0; padding: 16px 0 12px; }
  .games { grid-template-columns: repeat(4, 1fr); }
  .dock { left: 232px; bottom: 0; padding-bottom: 24px; }
  .home-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: stretch; margin-top: 16px; }
  .home-top .feat { margin-top: 0; }
  .home-top .plan-row { margin-top: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 20px; border-radius: var(--r-xl); }
  .home-top .plan-row .p-main b { font-size: 20px; font-family: var(--display); letter-spacing: var(--title-ls); margin: 12px 0 4px; }
  .home-top .plan-row .p-chev { align-self: flex-end; }
  [data-skin="washi"] .home-top .plan-row { border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
  .tool-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
  .tool-split > * + * { margin-top: 0; }
  .teams { grid-template-columns: repeat(4, 1fr); }
  .groups { grid-template-columns: repeat(3, 1fr); }
  .skins { gap: 24px 20px; }
  .pl-stage > .sc { max-width: 680px; }
  .play.cast .pl-stage > .sc { max-width: 1080px; }
  .play.cast .gcard, .play.cast .flip .fl-in { min-height: 54vh; }
  .play.cast .gcard .c-word { font-size: 8vw; } .play.cast .gcard .c-word.md { font-size: 3.2vw; } .play.cast .gcard .c-emoji { font-size: 9vw; }
  .play.cast .intro-c h2, .play.cast .how h2 { font-size: 3.6vw; }
  .play.cast .pl-title b { font-size: 22px; }
  [data-skin="washi"] .games { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.skin-card { --ring-c: var(--accent); }
.stepper output small { font-size: 13px; color: var(--text-3); margin-left: 2px; font-weight: 500; font-family: var(--font); }
.bomb-host { margin-top: 12px; min-height: 44px; padding: 0 14px; border-radius: 22px; font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; user-select: none; -webkit-user-select: none; touch-action: none; }
.bomb-host.on { color: var(--accent); background: var(--accent-soft); }
.bomb-msg { font-size: 15px; color: var(--text-2); min-height: 24px; margin-top: 4px; text-align: center; }
.bomb-msg b { color: var(--text); }
#view-tools:fullscreen { background: var(--bg); background-image: var(--bg-img); padding: 32px 48px; overflow: auto; }
#view-tools:fullscreen .tool-seg, #view-tools:fullscreen .dock { display: none; }
#view-tools:fullscreen .teams { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#view-tools:fullscreen .team .tm-score { font-size: 14vh; }
.stepper output { color: var(--text); }
.link { color: var(--accent); font-weight: 600; }
@media (min-width: 760px) and (max-width: 1099px) { .games { grid-template-columns: repeat(4, 1fr); } }

/* ===================== v2：场景 × 刺激等级 / 新游戏 / 戏剧机制 ===================== */
.chilis { display: inline-flex; gap: 0; vertical-align: -2px; }
.chilis i { display: inline-flex; color: var(--text-3); opacity: .45; }
.chilis i.on { color: #C8432F; opacity: 1; }
[data-skin="noir"] .chilis i.on { color: #E07A5F; }
[data-skin="morandi"] .chilis i.on { color: #B0614F; }
[data-skin="washi"] .chilis i.on { color: var(--accent); }

.new-badge { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: var(--accent); color: var(--on-accent); vertical-align: 1px; position: relative; }
.new-badge::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: #C8432F; box-shadow: 0 0 0 2px var(--bg); }

.scene-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 10px; }
.scn { min-height: 84px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; transition: transform .14s, background .2s; }
.scn:active { transform: scale(.97); }
.scn .scn-e { font-size: 24px; line-height: 1.1; }
.scn b { font-size: 14px; font-weight: 600; }
.scn small { font-size: 11px; color: var(--text-3); }
.scn.on { background: var(--chip-on); color: var(--on-chip-on); box-shadow: none; }
.scn.on small { color: inherit; opacity: .7; }
[data-skin="noir"] .scn { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-skin="noir"] .scn.on { background: var(--accent); }
[data-skin="morandi"] .scn { background: rgba(255,255,255,.5); box-shadow: none; }
[data-skin="washi"] .scn { background: none; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--serif); }
[data-skin="washi"] .scn.on { background: var(--chip-on); }
.scene .scn-e { font-size: 22px; }

.lv-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 18px; background: var(--surface-2); }
.lv { min-height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); transition: background .2s, color .2s, transform .14s; }
.lv:active { transform: scale(.97); }
.lv b { font-size: 15px; font-weight: 600; color: var(--text); }
.lv small { font-size: 11px; display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); }
.lv.on { background: var(--surface); box-shadow: var(--shadow-lg); }
.lv.lv3.on { box-shadow: inset 0 0 0 1.5px rgba(200,67,47,.45), var(--shadow-lg); }
[data-skin="noir"] .lv-pick { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="noir"] .lv.on { background: var(--surface-3); }
[data-skin="washi"] .lv-pick { border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="washi"] .lv { border-radius: 2px; font-family: var(--serif); }
.lv-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 18px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.lv-note > span { display: inline-flex; align-items: center; gap: 6px; }
.lv-note small { width: 100%; color: var(--text-3); font-size: 12px; margin-top: -4px; }
.lv-note.lk { padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.pill.solid { background: var(--accent); color: var(--on-accent); box-shadow: none; min-height: 44px; }
.pill.small { min-height: 44px; padding: 0 12px; font-size: 13px; }
.pill.icon-only { padding: 0; width: 44px; justify-content: center; }
.pill.icon-only.off { color: var(--text-3); }
.tile .t-tag.new { background: #C8432F; color: #fff; }
[data-skin="washi"] .tile .t-tag.new { background: none; color: var(--accent); }
.badge.hot { background: #C8432F; color: #fff; }
.plan-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--text-2); margin: 10px 2px 2px; line-height: 1.5; }
.lv-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }

/* 游戏内 */
.pl-dock.three .btn.secondary { min-width: 0; flex: 0 0 auto; padding: 0 14px; }
.pl-dock.three { gap: 8px; padding-left: 12px; padding-right: 12px; }
.fx { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 2px 0 4px; }
.fx-c { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); animation: pop .3s both; }
.fx-c.final { background: #C8432F; color: #fff; }
.who-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 14px; font-size: 14px; color: var(--text-2); }
.who-row b { font-size: 20px; color: var(--text); font-family: var(--display); }
.who-row.in { margin: 0 0 6px; }
.lv-badge { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.td-c, .soup-c, .spec-c, .ml-c { min-height: 250px; padding: 56px 22px 22px; }
.td-c.hot { box-shadow: inset 0 0 0 1.5px rgba(200,67,47,.35), var(--shadow-lg), var(--deck); }
.td-who { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.skip-cost { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 12.5px; line-height: 1.5; color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; width: 100%; }
.skip-cost b { display: block; color: var(--text); font-size: 12px; }
[data-skin="morandi"] .skip-cost { background: rgba(255,255,255,.45); }
.mt-tap { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px auto 0; background: none; }
.mt-tap small { font-size: 12px; color: var(--text-3); }
.mt-tap .mtimer { margin-top: 0; }
.mt-ring.beat { animation: beat 1s ease-in-out infinite; }
.mt-ring.beat .r-fg { stroke: #C8432F; }
.mt-ring.beat .rn b { color: #C8432F; }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.09); } 28% { transform: scale(1); } 42% { transform: scale(1.06); } 60% { transform: scale(1); } }
.play.pulse::after { content: ""; position: fixed; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(200,67,47,.38); animation: vign 1s ease-in-out infinite; z-index: 5; }
@keyframes vign { 0%, 100% { opacity: .35; } 20% { opacity: 1; } 45% { opacity: .5; } 60% { opacity: .9; } }

.splash { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; background: rgba(0,0,0,.18); animation: fadeIn .2s both; }
.splash.out { opacity: 0; transition: opacity .35s; }
.sp-in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 34px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop .4s cubic-bezier(.3,1.5,.5,1) both; }
.sp-in span { color: #C8432F; }
.sp-in b { font-size: 28px; font-family: var(--display); font-weight: var(--display-w); letter-spacing: .04em; }
.sp-in small { font-size: 14px; color: var(--text-2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.evc { perspective: 900px; margin: 18px 0; }
.ev-in { min-height: 340px; border-radius: var(--r-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 28px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 20% 10%, #E06A4E 0%, #B03A2A 55%, #6E1F17 100%); box-shadow: var(--shadow-lg); animation: evflip .7s cubic-bezier(.2,.9,.3,1.2) both; position: relative; overflow: hidden; }
.ev-in::before { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-xl) - 8px); border: 1.5px dashed rgba(255,255,255,.35); }
[data-skin="noir"] .ev-in { background: radial-gradient(120% 90% at 20% 10%, #3A3227 0%, #1A1712 70%); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(200,180,143,.4); }
[data-skin="morandi"] .ev-in { background: radial-gradient(120% 90% at 20% 10%, #C49A8F 0%, #9C6E63 100%); }
[data-skin="washi"] .ev-in { background: var(--accent); border-radius: 4px; }
.ev-k { font-size: 12px; letter-spacing: .3em; opacity: .85; }
.ev-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.ev-in h2 { font-size: 34px; font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
.ev-in p { font-size: 15px; line-height: 1.6; opacity: .95; max-width: 280px; }
@keyframes evflip { from { transform: rotateY(-100deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

.vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.vote { min-height: 150px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--surface-2); transition: transform .1s; }
.vote:active { transform: scale(.95); }
.vote span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.vote.ok span { background: var(--ok); } .vote.no span { background: var(--danger); }
.vote b { font-size: 34px; font-family: var(--num); }
.vote small { font-size: 13px; color: var(--text-2); }

/* 海龟汤 */
.soup-t { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.soup-peek { min-height: 150px; padding: 22px; margin-top: 4px; }
.soup-peek .pk-ring { width: 60px; height: 60px; margin-bottom: 0; }
.soup-peek .pk-cover b { font-size: 17px; }
.soup-a { font-size: 15px; line-height: 1.65; text-align: left; }
.qa-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.qa { min-height: 54px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qa b { font-size: 18px; font-family: var(--num); }
.qa:active { transform: scale(.96); }

/* 同频挑战 */
.sp-ends { display: flex; justify-content: space-between; width: 100%; gap: 12px; margin: 6px 0 14px; }
.sp-ends b { font-size: 15px; font-weight: 600; max-width: 48%; line-height: 1.35; }
.sp-ends b:first-child { text-align: left; } .sp-ends b:last-child { text-align: right; }
.sp-bar { position: relative; width: 100%; height: 56px; border-radius: 16px; background: linear-gradient(90deg, #5B7FA8, #A7B8C9 45%, #E2C9A2 55%, #D9825F); touch-action: none; cursor: pointer; overflow: hidden; }
[data-skin="noir"] .sp-bar { background: linear-gradient(90deg, #2A3340, #3B3A36 50%, #6B5634); }
.sp-zone { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.sp-bar.peek .sp-zone, .sp-bar.show .sp-zone { opacity: 1; }
.sp-zone i { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); }
.sp-zone .z2 { width: 32%; background: rgba(255,255,255,.3); }
.sp-zone .z3 { width: 20%; background: rgba(255,255,255,.45); }
.sp-zone .z4 { width: 8%; background: rgba(255,255,255,.9); }
.sp-needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: var(--text); border-radius: 2px; transition: left .05s; }
.sp-needle span { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px); font-size: 11px; white-space: nowrap; color: var(--text-2); }
.sp-needle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px var(--text), var(--shadow-lg); }
.sp-scale { display: flex; justify-content: space-between; width: 100%; font-size: 11px; color: var(--text-3); margin-top: 6px; }
.host-peek { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 14px; touch-action: none; -webkit-user-select: none; user-select: none; }
.host-peek.on { background: var(--chip-on); color: var(--on-chip-on); }

/* 谁最可能 */
.cd-big { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 84px; font-size: 26px; font-weight: 600; font-family: var(--display); color: var(--text-2); }
.cd-big b { color: var(--text); }
.cd-big .cd-n { font-size: 60px; color: #C8432F; animation: pop .3s cubic-bezier(.3,1.6,.5,1) both; }
.name-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nm { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 500; }
.nm:active { transform: scale(.95); background: var(--accent-soft); }
.mb-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.mb-o { min-height: 86px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mb-o b { font-size: 20px; } .mb-o span { font-size: 13px; color: var(--text-2); }
.mb-o.win { background: var(--accent); color: var(--on-accent); } .mb-o.win span { color: inherit; }
.mb-o:disabled { opacity: .55; } .mb-o.win:disabled { opacity: 1; }

/* 颁奖海报（适合截图分享） */
.poster { margin: 8px auto 4px; max-width: 420px; border-radius: 28px; padding: 22px 20px 18px; background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; animation: pop .45s cubic-bezier(.3,1.3,.5,1) both; }
.poster::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(200,67,47,.18), transparent 70%); }
[data-skin="washi"] .poster { border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.po-hd { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.po-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.po-brand .brand-mark { width: 18px; height: 18px; }
.po-k { margin-top: 14px; font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.po-t { font-size: 22px; font-family: var(--display); font-weight: var(--display-w); margin: 4px 0 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.po-list { display: flex; flex-direction: column; gap: 8px; }
.po-aw { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.po-aw.mvp { padding: 14px; background: var(--chip-on); color: var(--on-chip-on); }
.po-aw.mvp .po-m small, .po-aw.mvp .po-m em { color: inherit; opacity: .75; }
.po-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.po-aw.mvp .po-ic { width: 48px; height: 48px; background: #E9B949; color: #4A3510; }
.po-m { display: flex; flex-direction: column; min-width: 0; }
.po-m small { font-size: 11px; letter-spacing: .12em; color: var(--text-2); }
.po-m b { font-size: 18px; font-weight: 700; }
.po-aw.mvp .po-m b { font-size: 22px; }
.po-m em { font-style: normal; font-size: 12px; color: var(--text-3); }
.po-empty { font-size: 14px; color: var(--text-2); margin: 10px 0; }
.po-ft { margin-top: 14px; font-size: 11px; color: var(--text-3); text-align: center; letter-spacing: .08em; }
.poster .final { margin-top: 12px; }
.qa-row, .mb-opts, .name-grid, .host-peek, .vote-row, .who-row, .fx { width: 100%; }
.gcard .lv-badge { position: absolute; top: 18px; right: 18px; }
.lv-badge { position: static; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.soup-c .c-foot, .ml-c .c-foot, .spec-c .c-foot { position: static; margin-top: 12px; }
.gcard .soup-q { font-size: 19px; line-height: 1.6; font-weight: 600; text-align: left; letter-spacing: .01em; }
.gcard .c-word.md.long { font-size: clamp(20px, 5.6vw, 26px); line-height: 1.5; }
.soup-c { padding-bottom: 18px; }
.poster .final { display: flex; justify-content: center; gap: 28px; margin-top: 12px; }
.poster .final > div { display: flex; flex-direction: column; align-items: center; }
.poster .final b { font-size: 22px; font-family: var(--num); }
.po-aw { padding: 8px 12px; }
.po-ic { width: 34px; height: 34px; }
.po-m b { font-size: 16px; }

/* ===== v3 综艺动效 ===== */
#fxCanvas { position: fixed; inset: 0; z-index: 460; pointer-events: none; }
.fx-shake { animation: fxShake .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes fxShake { 10%, 90% { transform: translate3d(-2px,1px,0); } 20%, 80% { transform: translate3d(5px,-2px,0) rotate(.3deg); } 30%, 50%, 70% { transform: translate3d(-9px,2px,0) rotate(-.5deg); } 40%, 60% { transform: translate3d(9px,-1px,0) rotate(.5deg); } }
.fx-flash { position: fixed; inset: 0; z-index: 455; pointer-events: none; background: #fff; animation: fxFlash .55s ease-out both; }
@keyframes fxFlash { 0% { opacity: .0; } 12% { opacity: .75; } 100% { opacity: 0; } }
[data-skin="noir"] .fx-flash { background: #E8D6AE; }
.fx-float { position: fixed; z-index: 462; pointer-events: none; transform: translate(-50%, 0); font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--accent); text-shadow: 0 2px 10px rgba(0,0,0,.18); animation: fxFloat 1s cubic-bezier(.2,.8,.3,1) both; white-space: nowrap; }
.fx-float.bad { color: #C8432F; } .fx-float.gold { color: #E0A21B; font-size: 38px; }
@keyframes fxFloat { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -8px) scale(1.25); } 100% { opacity: 0; transform: translate(-50%, -78px) scale(1); } }

/* 卡片：发牌滑入 / 翻入 / 旧卡滑出 */
.pl-stage { position: relative; }
.pl-stage > .sc.enter { animation: none; }
.pl-stage > .sc.enter > .gcard, .pl-stage > .sc.enter > .flip, .pl-stage > .sc.enter > .evc, .pl-stage > .sc.enter > .dial-wrap { animation: cardDeal .52s cubic-bezier(.2,.9,.25,1.12) both; }
.pl-stage > .sc.enter.flipin > .gcard, .pl-stage > .sc.enter.flipin > .flip { animation: cardFlipIn .6s cubic-bezier(.25,.9,.3,1.1) both; transform-origin: 50% 60%; }
.pl-stage > .sc.enter > :not(.gcard):not(.flip):not(.evc):not(.dial-wrap) { animation: rise .45s .12s cubic-bezier(.2,.85,.25,1) both; }
@keyframes cardDeal { 0% { opacity: 0; transform: translate3d(64px,-14px,0) rotate(5deg) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes cardFlipIn { 0% { opacity: 0; transform: perspective(900px) rotateY(-82deg) scale(.9); } 55% { opacity: 1; } 100% { opacity: 1; transform: perspective(900px) rotateY(0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }
.sc-ghost { position: absolute; left: 50%; top: 12px; width: calc(100% - 40px); max-width: 560px; margin-left: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 3; transform: translateX(-50%); animation: ghostOut .32s cubic-bezier(.5,0,.9,.4) both; }
@keyframes ghostOut { to { opacity: 0; transform: translateX(calc(-50% - 90px)) rotate(-7deg) scale(.92); } }
@media (min-width: 700px) { .sc-ghost { max-width: 600px; } }

/* 倒计时：弹跳 + 震动 */
.cd-big .cd-n { animation: cdBounce .75s cubic-bezier(.3,1.5,.5,1) both; display: inline-block; }
.cd-big .cd-n.go { color: var(--accent); font-size: 64px; }
@keyframes cdBounce { 0% { transform: scale(2.6) rotate(-8deg); opacity: 0; } 35% { transform: scale(.88) rotate(3deg); opacity: 1; } 55% { transform: scale(1.12) rotate(-2deg); } 100% { transform: scale(1) rotate(0); } }
.tickpop { animation: tickPop .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes tickPop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.mt-ring.panic { animation: ringShake .35s linear infinite; }
.mt-ring.panic .rn b { color: #C8432F; }
@keyframes ringShake { 0%, 100% { transform: translate3d(0,0,0) rotate(0); } 25% { transform: translate3d(-2px,1px,0) rotate(-2deg); } 75% { transform: translate3d(2px,-1px,0) rotate(2deg); } }
.bigtimer.hot .bt-num { animation: tickPop .5s cubic-bezier(.3,1.6,.5,1) infinite; }

/* 事件卡：戏剧性登场（光芒旋转 + 弹入） */
.ev-in { animation: evDrop .8s cubic-bezier(.2,.95,.3,1.15) both; }
@keyframes evDrop { 0% { transform: translate3d(0,-120%,0) rotateX(40deg) scale(.7); opacity: 0; } 55% { transform: translate3d(0,6%,0) scale(1.04); opacity: 1; } 75% { transform: translate3d(0,-2%,0) scale(.99); } 100% { transform: none; opacity: 1; } }
.ev-in .ev-rays { position: absolute; left: 50%; top: 38%; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgba(255,255,255,.14) 0 8deg, transparent 8deg 24deg); border-radius: 50%; animation: spin 14s linear infinite; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); }
.ev-in > *:not(.ev-rays) { position: relative; z-index: 1; }
.ev-in .ev-ic { animation: icPop .7s .35s cubic-bezier(.3,1.7,.5,1) both; }
.ev-in h2 { animation: icPop .6s .5s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes icPop { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 弹出 splash / 颁奖：更夸张 */
.sp-in { animation: pop .45s cubic-bezier(.3,1.7,.5,1) both; }
.sp-in b { animation: tickPop .5s .15s cubic-bezier(.3,1.6,.5,1) both; display: inline-block; }
.award-in { animation: pop .55s cubic-bezier(.3,1.6,.5,1) both; }

/* 数字：加分跳动 */
.score-strip button.bump, .team.bump { animation: none; }
.score-strip button.bump b, .team.bump .tm-score { animation: scoreBump .55s cubic-bezier(.3,1.8,.5,1); display: inline-block; }
@keyframes scoreBump { 0% { transform: scale(1); } 30% { transform: scale(1.7); color: var(--accent); } 100% { transform: scale(1); } }
.btn-score:active, .qa:active { transform: scale(.94); }

/* 表盘（同频挑战） */
.dial-wrap { width: 100%; margin: 4px 0 2px; }
.sp-dial { position: relative; width: 100%; max-width: 340px; margin: 0 auto; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.sp-dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-dial .d-track { fill: none; stroke: url(#dialGrad); stroke-width: 26; stroke-linecap: round; }
.sp-dial .d-rim { fill: none; stroke: var(--line); stroke-width: 1.5; }
.sp-dial .d-tick { stroke: var(--text-3); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.sp-dial .zn { fill: none; stroke-linecap: butt; opacity: 0; stroke-width: 30; }
.sp-dial .z2 { stroke: rgba(255,255,255,.32); } .sp-dial .z3 { stroke: rgba(255,255,255,.55); } .sp-dial .z4 { stroke: #fff; }
.sp-dial.peek .zn, .sp-dial.show .zn { opacity: 1; }
.sp-dial.peek .zn { transition: opacity .25s; }
.sp-dial.show .z2 { animation: zoneIn .4s 0s both; } .sp-dial.show .z3 { animation: zoneIn .4s .3s both; } .sp-dial.show .z4 { animation: zoneIn .45s .6s both; }
@keyframes zoneIn { from { opacity: 0; } to { opacity: 1; } }
.sp-dial .d-needle { filter: drop-shadow(0 3px 4px rgba(0,0,0,.28)); }
.sp-dial .d-needle line { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.sp-dial .d-hub { fill: var(--surface); stroke: var(--text); stroke-width: 5; }
.sp-dial .d-hint { font-size: 11px; fill: var(--text-3); text-anchor: middle; }
.sp-dial .d-tgt { opacity: 0; fill: var(--text); } .sp-dial.show .d-tgt { animation: zoneIn .3s .9s both; }

/* 设置里的开关 / 小入口 */
.sw-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  #fxCanvas, .fx-flash, .ev-rays { display: none !important; }
  .fx-shake, .mt-ring.panic, .cd-big .cd-n, .tickpop, .ev-in, .sc-ghost { animation: none !important; }
  .sc-ghost { display: none; }
}

.qa.hit { animation: scoreBump .45s cubic-bezier(.3,1.8,.5,1); }
.pulse-in { animation: tickPop .5s cubic-bezier(.3,1.6,.5,1); }
.sp-dial.grab { cursor: grabbing; }
.sp-dial .d-tgt circle { fill: var(--text); }
[data-skin="noir"] #dialGrad stop:nth-child(1) { stop-color: #2A3340; } [data-skin="noir"] #dialGrad stop:nth-child(2) { stop-color: #3B3A36; } [data-skin="noir"] #dialGrad stop:nth-child(3) { stop-color: #5A4A30; } [data-skin="noir"] #dialGrad stop:nth-child(4) { stop-color: #8A6E3E; }
.po-aw { animation: rise .5s cubic-bezier(.2,.85,.25,1) both; }
.po-aw:nth-child(1) { animation-delay: .35s; } .po-aw:nth-child(2) { animation-delay: 1s; } .po-aw:nth-child(3) { animation-delay: 1.65s; } .po-aw:nth-child(4) { animation-delay: 2.3s; } .po-aw:nth-child(5) { animation-delay: 2.95s; }
.po-aw.mvp .po-ic { animation: icPop .7s .35s cubic-bezier(.3,1.7,.5,1) both; }
@media (prefers-reduced-motion: reduce) { .po-aw { animation: none !important; } }

/* ===== v3.1 玩法动画演示 · 每局规则一行 · 卡片「怎么玩」 ===== */
.demo { width: 100%; }
.dm-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); margin: 10px 2px 8px; }
.dm-top .dm-k { color: var(--accent); font-weight: 600; letter-spacing: .12em; }
.dm-stage { position: relative; height: 250px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; }
[data-skin="noir"] .dm-stage { box-shadow: inset 0 0 0 1px rgba(200,180,143,.18); }
[data-skin="washi"] .dm-stage { background: none; box-shadow: none; border: 1px solid var(--line-strong); border-radius: 4px; }
.dm-in { position: relative; width: 320px; height: 250px; flex: none; }
@media (max-width: 359px) { .dm-in { zoom: .86; } }
.dm-bar { display: flex; gap: 6px; margin: 12px 2px 0; }
.dm-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; display: block; cursor: pointer; }
.dm-bar b { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; }
.dm-bar i.done b { width: 100%; }
.dm-bar i.cur b { width: 100%; transition: width var(--ms, 3s) linear; }
.dm-cap { display: flex; gap: 12px; align-items: flex-start; margin: 14px 2px 0; min-height: 84px; }
.dm-cap .dm-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.dm-cap b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.dm-cap p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.dm-cap > div { animation: rise .35s both; }
.dm-ctl { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.dm-ctl button { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.dm-ctl button:disabled { opacity: .35; }
.dm-ctl button.on { background: var(--chip-on); color: var(--on-chip-on); }
.demo-sub { text-align: center; color: var(--text-2); font-size: 14px; margin: 0 0 4px; }
.how .h-k + h2 { margin-bottom: 2px; }
.rule-line { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text-2); font-size: 13px; line-height: 1.45; margin: 2px 0 0; animation: rise .4s both; }
.rule-line svg { flex: none; margin-top: 2px; color: var(--accent); }
.rule-line b { color: var(--text); font-weight: 600; }
.rule-line em { font-style: normal; color: var(--danger); font-weight: 600; }
[data-skin="noir"] .rule-line { background: none; box-shadow: inset 0 0 0 1px rgba(200,180,143,.22); }
[data-skin="washi"] .rule-line { background: none; border-left: 2px solid var(--accent); border-radius: 0; }
.tile .t-how { position: relative; align-self: flex-start; margin-top: 10px; min-height: 28px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
[data-skin="washi"] .tile .t-how { grid-column: 2; justify-self: end; margin-top: 0; }
.tile .t-how:active { background: var(--surface-3); }
.pl-top .pill[data-act="how"] span { white-space: nowrap; }

/* —— 演示元素 —— */
.dm-a { position: absolute; opacity: 0; animation: dmIn .45s var(--d, 0s) cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes dmIn { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.dm-card { background: var(--game-card); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px; overflow: hidden; box-sizing: border-box; border: 1px solid var(--line); }
.dm-card small { font-size: 11px; color: var(--text-3); letter-spacing: .1em; }
.dm-card b { font-size: 17px; font-weight: 600; line-height: 1.4; }
.dm-card b.rv { font-size: 34px; font-family: var(--display); letter-spacing: .08em; }
.dm-card b.rv.long { font-size: 17px; letter-spacing: 0; line-height: 1.4; font-family: inherit; }
.dm-card b.em { font-size: 42px; }
.dm-card .bx { display: flex; gap: 8px; } .dm-card .bx i { width: 26px; height: 26px; border-radius: 8px; border: 1.5px dashed var(--line-strong); display: block; }
.dm-card .cv { position: absolute; inset: 0; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); font-size: 13px; animation: dmCover .5s var(--d, 1s) ease forwards; }
@keyframes dmCover { to { opacity: 0; transform: translateY(-14px); visibility: hidden; } }
.dm-card.flip { animation-name: dmFlip; } @keyframes dmFlip { from { opacity: 0; transform: perspective(500px) rotateY(80deg); } to { opacity: 1; transform: none; } }
.dm-card.swap { animation-name: dmSwapC; } @keyframes dmSwapC { 0% { opacity: 0; transform: translateX(80px) rotate(6deg); } 100% { opacity: 1; transform: none; } }
.dm-fg { position: absolute; color: var(--text); filter: drop-shadow(0 4px 6px rgba(0,0,0,.22)); pointer-events: none; opacity: 0; transform-origin: 50% 20%; }
.dm-fg.tap { animation: dmTap 1.2s var(--d, 0s) ease-in-out 2 both; }
.dm-fg.hold { animation: dmHold 2.6s var(--d, 0s) ease-in-out both; }
.dm-fg.drag { animation: dmIn .4s var(--d, 0s) both; }
.dm-fg::after { content: ""; position: absolute; left: 6px; top: -4px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.dm-fg.tap::after { animation: dmRipple 1.2s var(--d, 0s) ease-out 2; }
.dm-fg.hold::after { animation: dmRipple 1s calc(var(--d, 0s) + .3s) ease-out 2; }
@keyframes dmTap { 0% { opacity: 0; transform: translateY(14px); } 25% { opacity: 1; transform: none; } 45% { opacity: 1; transform: scale(.82) translateY(4px); } 65% { opacity: 1; transform: none; } 100% { opacity: .9; transform: none; } }
@keyframes dmHold { 0% { opacity: 0; transform: translateY(14px); } 18% { opacity: 1; transform: none; } 28%, 100% { opacity: 1; transform: scale(.86) translateY(5px); } }
@keyframes dmRipple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
.dm-bub { background: var(--surface-2); color: var(--text); font-size: 14px; padding: 8px 14px; border-radius: 16px 16px 16px 4px; max-width: 220px; line-height: 1.4; }
.dm-bub.r { border-radius: 16px 16px 4px 16px; background: var(--accent-soft); }
.dm-bub.big { font-size: 17px; padding: 12px 16px; background: var(--accent-soft); animation-name: dmPopB; }
.dm-bub.big b { color: var(--accent); }
.dm-bub.sm { font-size: 12px; padding: 5px 10px; color: var(--text-2); }
@keyframes dmPopB { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
.dm-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.dm-chip.pri { background: var(--chip-on); color: var(--on-chip-on); }
.dm-chip.no { color: var(--danger); background: rgba(160,72,61,.1); }
.dm-chip.no s { text-decoration-thickness: 2px; }
.dm-chip.ok2 { color: var(--ok); background: rgba(78,122,92,.12); } .dm-chip.no2 { color: var(--danger); background: rgba(160,72,61,.1); }
.dm-pop { font-weight: 700; color: var(--text); white-space: nowrap; font-size: 15px; animation-name: dmPopB; }
.dm-pop.gold { color: #B8862B; font-size: 24px; animation-name: dmFloat; font-family: var(--num); }
.dm-pop.gold.big { font-size: 22px; }
.dm-pop.gold.sm { font-size: 15px; animation-name: dmPopB; }
.dm-pop.tip { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dm-pop.beat { animation: dmPopB .4s var(--d, 0s) both, dmBeat .6s calc(var(--d, 0s) + .4s) ease-in-out infinite; }
@keyframes dmFloat { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 40% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes dmBeat { 50% { transform: scale(1.3); } }
.dm-ends { width: 292px; display: flex; justify-content: space-between; } .dm-ends b { font-size: 15px; font-weight: 600; }
.dm-dial { position: absolute; width: 300px; height: 175px; overflow: visible; }
.dm-dial .dd-track { fill: none; stroke: url(#dmGrad); stroke-width: 26; stroke-linecap: round; }
.dm-dial .dz { fill: none; stroke-width: 30; opacity: 0; } .dm-dial .z2 { stroke: rgba(255,255,255,.4); } .dm-dial .z3 { stroke: rgba(255,255,255,.62); } .dm-dial .z4 { stroke: #fff; }
.dm-dial .dz.on { animation: dmZone .45s var(--d, 0s) both; } @keyframes dmZone { from { opacity: 0; } to { opacity: 1; } }
.dm-dial .dd-dot { fill: var(--text); opacity: 0; animation: dmZone .3s var(--d, 0s) both; }
.dm-needle { transform-box: view-box; transform-origin: 150px 150px; transform: rotate(var(--a0)); filter: drop-shadow(0 3px 4px rgba(0,0,0,.28)); }
.dm-needle.mv { animation: dmNeedle 1.7s var(--d, 0s) cubic-bezier(.3,1.45,.5,1) forwards; }
.dm-needle line { stroke: var(--text); stroke-width: 5; stroke-linecap: round; } .dm-needle .dd-hub { fill: var(--surface); stroke: var(--text); stroke-width: 5; }
@keyframes dmNeedle { from { transform: rotate(var(--a0)); } to { transform: rotate(var(--a1)); } }
.dm-arm { position: absolute; width: 0; height: 0; transform-origin: 0 0; transform: rotate(var(--a0)); animation: dmNeedle 1.7s var(--d, 0s) cubic-bezier(.3,1.45,.5,1) forwards; }
.dm-arm .dm-fg { left: -15px; top: -116px; }
.dm-peek { width: 240px; height: 38px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; animation-name: dmIn, dmPeekOn; animation-duration: .45s, .3s; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .5s); animation-fill-mode: both, forwards; }
@keyframes dmPeekOn { to { background: var(--chip-on); color: var(--on-chip-on); } }
.dm-host { width: 38px; height: 38px; border-radius: 50%; background: var(--chip-on); color: var(--on-chip-on); display: grid; place-items: center; }
.dm-rule { width: 284px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
.dm-rule b { font-size: 11px; letter-spacing: .14em; color: var(--accent); } .dm-rule span { font-size: 15px; } .dm-rule em { font-style: normal; color: var(--danger); font-weight: 700; }
.dm-hint { width: 284px; text-align: center; font-size: 13px; color: var(--text-3); }
.dm-leg { width: 306px; display: flex; flex-wrap: nowrap; gap: 4px; justify-content: center; }
.dm-leg span { font-size: 11px; padding: 4px 8px; white-space: nowrap; border-radius: 999px; opacity: 0; animation: dmIn .4s both; font-weight: 600; }
.dm-leg span:nth-child(1) { animation-delay: calc(var(--d) + 0s); background: var(--chip-on); color: var(--on-chip-on); }
.dm-leg span:nth-child(2) { animation-delay: calc(var(--d) + .15s); background: var(--accent-soft); color: var(--accent); }
.dm-leg span:nth-child(3) { animation-delay: calc(var(--d) + .3s); background: var(--surface-2); color: var(--text-2); }
.dm-leg span:nth-child(4) { animation-delay: calc(var(--d) + .45s); background: none; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dm-leg span:nth-child(5) { animation: dmIn .4s calc(var(--d) + .7s) both; background: #F3E3BE; color: #7A5A12; }
.dm-face { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dm-face i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-style: normal; font-weight: 600; display: grid; place-items: center; }
.dm-face small { font-size: 11px; color: var(--text-3); }
.dm-face.hi { animation: dmIn .45s var(--d, 0s) both, dmHi .5s var(--hd, 1.3s) ease-out forwards; }
.dm-face.hi i { animation: dmHiI .3s var(--hd, 1.3s) forwards; }
@keyframes dmHi { 50% { transform: scale(1.25); } 100% { transform: scale(1.12); } } @keyframes dmHiI { to { background: var(--chip-on); color: var(--on-chip-on); } }
.dm-ring { width: 100px; height: 100px; } .dm-ring svg { width: 100%; height: 100%; display: block; }
.dm-ring .rb { fill: none; stroke: var(--line-strong); stroke-width: 7; } .dm-ring .rf { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; animation: dmRing linear forwards; }
.dm-ring.hot .rf { stroke: var(--danger); } .dm-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; font-family: var(--num); }
.dm-ring.hot b { animation: dmBeat .6s ease-in-out infinite; color: var(--danger); }
@keyframes dmRing { to { stroke-dashoffset: 327; } }
.dm-tdc { width: 132px; height: 100px; border-radius: 18px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; } .dm-tdc small { font-size: 11px; color: var(--text-3); }
.dm-tdc.pick { animation: dmIn .45s var(--d, 0s) both, dmPick .5s var(--pd, 1.4s) ease-out forwards; } @keyframes dmPick { 60% { transform: scale(1.1); } 100% { transform: scale(1.06); background: var(--chip-on); color: var(--on-chip-on); } }
.dm-tdc.pick small { color: inherit; opacity: .7; }
.dm-vote { display: flex; gap: 14px; width: 260px; } .dm-vote span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 16px; font-size: 12px; } .dm-vote .ok { background: rgba(78,122,92,.12); color: var(--ok); } .dm-vote .no { background: rgba(160,72,61,.1); color: var(--danger); } .dm-vote b { font-size: 22px; }
.dm-tri { width: 280px; display: flex; justify-content: space-between; gap: 8px; } .dm-tri span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.dm-bowl { font-size: 32px; }
.dm-cd { width: 60px; text-align: center; font-size: 100px; line-height: 1; font-weight: 800; font-family: var(--num); color: var(--text); animation: dmCount .9s var(--d, 0s) ease-out both; }
.dm-cd.go { width: 200px; font-size: 44px; color: var(--accent); animation: dmGo .6s var(--d, 0s) cubic-bezier(.2,1.5,.4,1) both; }
@keyframes dmCount { 0% { opacity: 0; transform: scale(2); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.7); } }
@keyframes dmGo { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
.dm-crown { width: 130px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); } .dm-crown svg { color: #B8862B; } .dm-crown b { white-space: nowrap; color: var(--text); }
.dm-step { width: 100px; height: 80px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--text-3); } .dm-step b { font-size: 32px; color: var(--text); font-family: var(--num); }
.dm-votes { width: 300px; height: 70px; display: flex; gap: 12px; align-items: flex-end; padding: 0 5px; box-sizing: border-box; } .dm-votes i { width: 40px; height: var(--w); background: var(--accent-soft); border-radius: 8px 8px 0 0; transform-origin: bottom; animation: dmGrow .7s .8s ease-out both; display: block; } .dm-votes i:nth-child(4) { background: var(--danger); opacity: .85; }
@keyframes dmGrow { from { transform: scaleY(0); } to { transform: none; } }
.dm-pad { width: 160px; height: 110px; border-radius: 14px; background: var(--surface-2); } .dm-pad svg { width: 100%; height: 100%; } .dm-pad .dp { fill: none; stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: dmDraw 2.4s .3s ease-in-out forwards; } .dm-pad .dp.b { animation-delay: 2s; animation-duration: .8s; } .dm-pad.small { width: 140px; height: 96px; } .dm-pad .dp.s { animation: dmDraw .1s forwards; stroke-dashoffset: 0; }
@keyframes dmDraw { to { stroke-dashoffset: 0; } }
.dm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 14px; background: var(--chip-on); color: var(--on-chip-on); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dm-swap { animation-name: dmIn; color: var(--accent); } .dm-swap svg { animation: dmSpin 1.2s .5s ease-in-out; } @keyframes dmSpin { to { transform: rotate(360deg); } }
.dm-range { width: 280px; display: flex; align-items: center; gap: 10px; } .dm-range b { font-size: 22px; font-family: var(--num); } .dm-range span { flex: 1; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #5B7FA8, #D9825F); transform-origin: left; }
.dm-range.shrink span { animation: dmShrink 2.4s .4s ease-in-out forwards; } @keyframes dmShrink { 0% { transform: none; } 35% { transform: scaleX(.5); } 65% { transform: scaleX(.5); } 100% { transform: scaleX(.2) translateX(120%); } }
.dm-keys { display: flex; gap: 8px; } .dm-keys b { width: 52px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; }
.dm-boom { font-size: 70px; width: 80px; text-align: center; animation: dmIn .4s var(--d, 0s) both, dmWob .15s .4s linear 5; } .dm-boom.b { animation: dmBoom .5s var(--d, 1.2s) cubic-bezier(.2,1.6,.4,1) both; } @keyframes dmBoom { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1.3); } } @keyframes dmWob { 50% { transform: translateX(4px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .dm-a, .dm-a *, .dm-dial *, .dm-leg span { animation-delay: 0s !important; } .dm-bar i.cur b { transition: none; } }

/* 体验期开关（config.js FREE_TRIAL）：首页小字 */
.trial-line { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: var(--ok, var(--accent)); }
