/* ===== 以下为破冰大师 css/style.css 复用部分（皮肤变量 + 基础组件），原样拷贝；年会专用样式见文件后半 ===== */
/* ===================================================================
   破冰大师 · 设计系统
   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; }

/* ---------- 底部弹层（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; }
@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; }
}
