/* ===== 听伴奏猜歌名 · 三套皮肤 ===== */

/* ---------- 皮肤：经典磁带 ---------- */
body[data-skin="tape"] {
  --bg: #efe3cb;
  --bg2: #e3d3b4;
  --ink: #2a1f16;
  --dim: #7d6a52;
  --line: rgba(42, 31, 22, .16);
  --card: #fbf3e2;
  --accent: #c4562f;
  --accent2: #1f7a5a;
  --glow: rgba(196, 86, 47, .30);
  --radius: 20px;
  --font: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, monospace;
}
/* ---------- 皮肤：赛博霓虹 ---------- */
body[data-skin="neon"] {
  --bg: #05060e;
  --bg2: #0b0f20;
  --ink: #dff5ff;
  --dim: #6b83a8;
  --line: rgba(60, 200, 255, .22);
  --card: rgba(10, 18, 34, .86);
  --accent: #22e6ff;
  --accent2: #ff2fb9;
  --glow: rgba(34, 230, 255, .45);
  --radius: 6px;
  --font: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, monospace;
}
/* ---------- 皮肤：复古黑胶 ---------- */
body[data-skin="vinyl"] {
  --bg: #15100c;
  --bg2: #1e1712;
  --ink: #f2dcc0;
  --dim: #9c8264;
  --line: rgba(224, 161, 60, .26);
  --card: #201811;
  --accent: #e0a13c;
  --accent2: #b3563a;
  --glow: rgba(224, 161, 60, .30);
  --radius: 4px;
  --font: "Songti SC", "Noto Serif SC", Georgia, serif;
  --mono: "SF Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  transition: background .45s, color .45s;
  -webkit-user-select: none;
  user-select: none;
}

/* 皮肤专属底纹 */
body[data-skin="tape"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.55), transparent 46%),
    radial-gradient(circle at 84% 88%, rgba(196,86,47,.10), transparent 52%),
    repeating-linear-gradient(92deg, rgba(120,90,55,.055) 0 1px, transparent 1px 4px);
}
body[data-skin="neon"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34,230,255,.16), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255,47,185,.13), transparent 55%),
    linear-gradient(transparent 0 96%, rgba(34,230,255,.06) 96% 100%);
  background-size: 100% 100%, 100% 100%, 100% 5px;
}
body[data-skin="vinyl"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(224,161,60,.10), transparent 60%),
    repeating-radial-gradient(circle at 50% 42%, rgba(255,255,255,.022) 0 1px, transparent 1px 5px);
}

.fx-grain { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
body[data-skin="tape"] .fx-grain { opacity: .10; mix-blend-mode: multiply; }
.fx-scan { position: fixed; inset: 0; z-index: 9; pointer-events: none; display: none; }
body[data-skin="neon"] .fx-scan { display: block;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.22) 2px 4px); opacity: .5; }

/* ---------- 屏幕 ---------- */
.screen {
  position: fixed; inset: 0; z-index: 2;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: none; flex-direction: column;
}
.screen.show { display: flex; animation: screenIn .34s cubic-bezier(.2,.9,.3,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 ---------- */
.home-head { text-align: center; margin: 8px 0 18px; }
.kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .34em; color: var(--dim); text-transform: uppercase; }
.home-title { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 8px; }
.home-title em { display: block; font-style: normal; color: var(--accent);
  text-shadow: 0 0 22px var(--glow); }
body[data-skin="vinyl"] .home-title em { text-shadow: 0 0 1px rgba(224,161,60,.9); }
.home-sub { font-size: 13px; color: var(--dim); letter-spacing: .04em; }

/* ---------- 磁带机身 ---------- */
.tape { margin: 0 auto; width: 100%; max-width: 360px; }
.tape-case {
  position: relative; border-radius: var(--radius);
  padding: 16px 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.35) inset;
  transition: background .4s, border-color .4s;
}
body[data-skin="tape"] .tape-case { background: linear-gradient(160deg,#fffaf0,#efe1c6); }
body[data-skin="neon"] .tape-case { background: linear-gradient(160deg, rgba(12,22,40,.95), rgba(6,10,22,.95));
  box-shadow: 0 0 0 1px var(--line), 0 0 28px -6px var(--glow), 0 18px 40px -20px #000; }
body[data-skin="vinyl"] .tape-case { background: linear-gradient(160deg,#241a12,#170f0a);
  border-color: rgba(224,161,60,.35); }

.tape-screws { position: absolute; inset: 8px; pointer-events: none; }
.tape-screws i { position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfc0a6, #8d7b61 70%, #5c4e3a); opacity: .75; }
body[data-skin="neon"] .tape-screws i { background: radial-gradient(circle at 35% 30%, #7fe9ff, #17455c); box-shadow: 0 0 6px var(--glow); }
body[data-skin="vinyl"] .tape-screws i { background: radial-gradient(circle at 35% 30%, #e6c27a, #6e5127); }
.tape-screws i:nth-child(1) { left: 0; top: 0; }
.tape-screws i:nth-child(2) { right: 0; top: 0; }
.tape-screws i:nth-child(3) { left: 0; bottom: 0; }
.tape-screws i:nth-child(4) { right: 0; bottom: 0; }

.tape-label { border-radius: calc(var(--radius) - 6px); padding: 12px 14px 10px;
  background: linear-gradient(180deg,#fdf8ec,#f4e9d4); border: 1px solid rgba(42,31,22,.12); }
body[data-skin="neon"] .tape-label { background: rgba(0,0,0,.5); border-color: var(--line); }
body[data-skin="vinyl"] .tape-label { background: linear-gradient(180deg,#f6e6cc,#e9d3b4); border-color: rgba(0,0,0,.2); }
.label-side { font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: #9c8768; }
.label-title { font-size: 17px; font-weight: 700; margin: 4px 0 8px; color: #2a1f16; }
.label-rule { height: 1px; background: repeating-linear-gradient(90deg, rgba(42,31,22,.32) 0 6px, transparent 6px 10px); margin-bottom: 8px; }
.label-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: #7a6449; letter-spacing: .06em; }
.tape-label.mini { padding: 10px 12px 8px; text-align: center; }
.tape-label.mini .label-title { font-size: 19px; margin: 0 0 6px; letter-spacing: .02em; }

/* 转盘窗口 */
.tape-window { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(42,31,22,.09); border: 1px solid rgba(42,31,22,.14); }
body[data-skin="neon"] .tape-window { background: rgba(34,230,255,.05); border-color: var(--line); }
body[data-skin="vinyl"] .tape-window { background: rgba(0,0,0,.4); border-color: rgba(224,161,60,.2); }

.reel { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #4a3b2a 0 12deg, #2f2418 12deg 24deg);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.4); }
body[data-skin="neon"] .reel { background: repeating-conic-gradient(from 0deg, #1d5d75 0 12deg, #0c2733 12deg 24deg); box-shadow: inset 0 0 0 3px rgba(34,230,255,.18), 0 0 12px -2px var(--glow); }
body[data-skin="vinyl"] .reel { background: repeating-conic-gradient(from 0deg, #6b4c22 0 12deg, #33240f 12deg 24deg); }
.reel span { position: absolute; inset: 30%; border-radius: 50%; background: #e9dcc2; box-shadow: inset 0 0 0 2px rgba(0,0,0,.2); }
body[data-skin="neon"] .reel span { background: #0a1a24; box-shadow: inset 0 0 0 2px rgba(34,230,255,.4); }
body[data-skin="vinyl"] .reel span { background: #d8b878; }
.tape.playing .reel { animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tape-strip { flex: 1; height: 10px; border-radius: 6px; overflow: hidden; position: relative;
  background: rgba(0,0,0,.22); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
body[data-skin="neon"] .tape-strip { background: rgba(34,230,255,.10); box-shadow: inset 0 0 8px rgba(34,230,255,.35); }
.tape-strip i { display: block; height: 100%; width: 0%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .22s linear; box-shadow: 0 0 10px var(--glow); }

.tape-bottom { height: 8px; margin-top: 10px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(42,31,22,.10) 0 3px, transparent 3px 7px); }

/* 频谱 */
.viz-box { position: relative; margin-top: 10px; height: 66px; border-radius: 10px;
  overflow: hidden; background: rgba(42,31,22,.07); border: 1px solid rgba(42,31,22,.10); }
body[data-skin="neon"] .viz-box { background: rgba(0,0,0,.5); border-color: var(--line); }
body[data-skin="vinyl"] .viz-box { background: rgba(0,0,0,.38); border-color: rgba(224,161,60,.16); }
.viz { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; background: transparent; }
.viz-bars { position: absolute; left: 8px; right: 8px; top: 7px; bottom: 7px;
  display: flex; align-items: flex-end; gap: 2px; }
.viz-bars i { flex: 1 1 0; min-height: 4px; height: 32%; height: 4%; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  transition: none; will-change: height; }
body[data-skin="neon"] .viz-bars i { background: linear-gradient(180deg, #ff2fb9, #22e6ff);
  box-shadow: 0 0 7px rgba(34,230,255,.55); }
body[data-skin="vinyl"] .viz-bars i { background: linear-gradient(180deg, #b3563a, #e0a13c); }
body[data-skin="tape"] .viz { display: none; }
body:not([data-skin="tape"]) .viz-bars { display: none; }
.home-viz { height: 42px; }

/* ---------- 难度 ---------- */
.diff-pick { display: flex; gap: 8px; margin: 18px auto 14px; width: 100%; max-width: 360px; }
.diff { flex: 1; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: all .2s; font-family: inherit; }
.diff b { font-size: 14px; }
.diff small { font-size: 10px; color: var(--dim); }
.diff.on { background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 18px -6px var(--glow); }
.diff.on small { color: rgba(255,255,255,.85); }

/* ---------- 按钮 ---------- */
.btn-main { display: block; width: 100%; max-width: 360px; margin: 0 auto; padding: 15px;
  border: none; border-radius: 16px; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 12px 26px -12px var(--glow);
  transition: transform .12s, box-shadow .2s; }
.btn-main:active { transform: scale(.97); }
.btn-ghost { display: block; width: 100%; max-width: 360px; margin: 10px auto 0; padding: 13px;
  border-radius: 16px; cursor: pointer; font-family: inherit; font-size: 14px;
  background: transparent; color: var(--dim); border: 1px solid var(--line); }

/* ---------- 皮肤选择 ---------- */
.skin-bar { margin: 20px auto 4px; width: 100%; max-width: 360px; }
.skin-title { font-family: var(--mono); font-size: 9px; letter-spacing: .28em; color: var(--dim); margin-bottom: 8px; }
.skin-list { display: flex; gap: 8px; }
.skin-item { flex: 1; padding: 9px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 12px; position: relative; transition: all .2s; }
.skin-item.on { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.skin-item.locked { opacity: .45; }
.skin-item small { display: block; font-size: 9px; color: var(--dim); margin-top: 2px; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.tb-left b, .tb-right b { color: var(--ink); font-size: 15px; }
.tb-mid { padding: 3px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .14em;
  border: 1px solid var(--line); color: var(--accent); }

/* ---------- 控制行 ---------- */
.ctl-row { display: flex; align-items: center; gap: 10px; margin: 12px auto 0; width: 100%; max-width: 360px; }
.ctl { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--accent); cursor: pointer;
  display: grid; place-items: center; transition: transform .12s; }
body[data-skin="neon"] .ctl { box-shadow: 0 0 14px -4px var(--glow); }
.ctl:active { transform: scale(.92); }
.ctl.skip { color: var(--dim); }
.heard { flex: 1; min-width: 0; }
.heard-top { font-size: 11px; color: var(--dim); margin-bottom: 5px; }
.heard-top b { color: var(--ink); }
.heard-bar { height: 4px; border-radius: 3px; background: rgba(0,0,0,.14); overflow: hidden; }
body[data-skin="neon"] .heard-bar { background: rgba(34,230,255,.12); }
.heard-bar i { display: block; height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s linear; }

/* ---------- 答题区 ---------- */
.answer-zone { margin: 16px auto 0; width: 100%; max-width: 360px; }
.lbl { font-size: 12px; color: var(--dim); margin-bottom: 8px; letter-spacing: .04em; }
.input-row { display: flex; gap: 8px; }
#guess { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
#guess:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
#guess::placeholder { color: var(--dim); opacity: .7; }
.btn-mic { width: 50px; flex: 0 0 50px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.btn-mic.on { background: var(--accent); color: #fff; animation: micPulse 1s infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 8px transparent, 0 0 0 2px var(--accent); } }
.btn-mic.dead { opacity: .4; }

.hintline { min-height: 20px; font-size: 12.5px; color: var(--dim); margin: 10px 2px; line-height: 1.5; }
.hintline.ok { color: var(--accent2); }
.hintline.warn { color: var(--accent); }

/* ---------- 提示按钮 ---------- */
.tip-row { display: flex; gap: 8px; margin: 14px auto 0; width: 100%; max-width: 360px; }
.btn-tip { flex: 1; padding: 11px 6px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 12px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; transition: all .2s; }
.btn-tip small { font-size: 9px; color: var(--accent); font-family: var(--mono); }
.btn-tip.ghost { color: var(--dim); }
.btn-tip:disabled { opacity: .35; }

/* ---------- 结算 ---------- */
.rs-hd { text-align: center; margin: 22px 0 18px; }
.rs-score { font-family: var(--mono); font-size: 56px; font-weight: 700; line-height: 1; margin: 10px 0 6px; color: var(--accent);
  text-shadow: 0 0 30px var(--glow); }
.rs-score small { font-size: 18px; color: var(--dim); }
.rs-rank { font-size: 15px; font-weight: 600; }
.rs-total { font-size: 11px; color: var(--dim); margin-top: 6px; font-family: var(--mono); }
.rs-list { flex: 1; overflow-y: auto; max-width: 360px; width: 100%; margin: 0 auto; }
.rs-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.rs-mark { width: 22px; text-align: center; font-size: 13px; }
.rs-item.ok .rs-mark { color: var(--accent2); }
.rs-item.no .rs-mark { color: var(--dim); }
.rs-text { flex: 1; min-width: 0; }
.rs-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-artist { font-size: 11px; color: var(--dim); margin-top: 2px; }
.rs-pts { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rs-pts.zero { color: var(--dim); }
.rs-actions { margin-top: 14px; }

/* ---------- 暴击 ---------- */
.crit { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; pointer-events: none; }
.crit.show { display: grid; }
.crit-num { font-family: var(--mono); font-size: 84px; font-weight: 800; color: var(--accent);
  text-shadow: 0 0 40px var(--glow), 0 0 12px rgba(255,255,255,.5);
  animation: critPop .85s cubic-bezier(.2,1.5,.4,1) forwards; }
.crit-tag { position: absolute; top: 56%; font-family: var(--mono); font-size: 13px;
  letter-spacing: .4em; color: var(--accent2); opacity: 0; animation: critTag .85s .12s forwards; }
@keyframes critPop {
  0% { transform: scale(.2) rotate(-8deg); opacity: 0; }
  45% { transform: scale(1.35) rotate(2deg); opacity: 1; }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15) translateY(-26px); opacity: 0; }
}
@keyframes critTag {
  0% { opacity: 0; transform: translateY(10px); letter-spacing: .1em; }
  30% { opacity: 1; letter-spacing: .4em; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.crit .spark { position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--glow); animation: sparkFly .8s ease-out forwards; }
@keyframes sparkFly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
  transform: translateX(-50%) translateY(20px); z-index: 50; opacity: 0;
  padding: 11px 20px; border-radius: 999px; font-size: 13px; pointer-events: none;
  background: var(--ink); color: var(--bg); transition: all .3s; white-space: nowrap; max-width: 88vw;
  overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 首页累计分大字 ---------- */
.home-tape { margin-bottom: 16px; }
.home-tape .label-title {
  font-family: var(--mono); font-size: 36px; line-height: 1.05; font-weight: 700;
  letter-spacing: -.02em; color: #2a1f16; margin: 6px 0 10px;
}
.home-tape .label-title::after {
  content: " PTS"; font-size: 11px; letter-spacing: .2em; color: #9a8266; margin-left: 4px;
}
.home-viz { height: 40px !important; margin-top: 10px; }
body[data-skin="neon"] .home-tape .label-title { color: var(--accent); text-shadow: 0 0 24px var(--glow); }
body[data-skin="vinyl"] .home-tape .label-title { color: #e0a13c; }

/* ---------- 选择块 ---------- */
.pick-block { width: 100%; max-width: 360px; margin: 0 auto 12px; }
.pick-title { font-family: var(--mono); font-size: 9px; letter-spacing: .28em;
  color: var(--dim); margin-bottom: 7px; text-transform: uppercase; }
.chips { display: flex; gap: 7px; }
.chip { flex: 1; padding: 10px 4px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 13px; transition: all .18s; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px -8px var(--glow); font-weight: 600; }
body[data-skin="neon"] .chip.on { color: #041018; }
body[data-skin="vinyl"] .chip.on { color: #1a1208; }

.best-line { text-align: center; font-size: 11px; color: var(--dim);
  margin-top: 10px; font-family: var(--mono); letter-spacing: .06em; }
.best-line b { color: var(--ink); }

/* ---------- 多人计分板 ---------- */
.scoreboard { display: none; gap: 6px; width: 100%; max-width: 360px;
  margin: 0 auto 12px; }
.scoreboard.show { display: flex; }
.pcard { flex: 1; min-width: 0; padding: 8px 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: all .2s; position: relative; }
.pcard.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 18px -10px var(--glow); }
.pcard .pn { font-size: 10px; color: var(--dim); white-space: nowrap; }
.pcard.cur .pn { color: var(--accent); }
.pcard .ps { font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 1.1; }
.pcard .pc { position: absolute; top: -6px; right: -4px; font-size: 9px; font-style: normal;
  font-family: var(--mono); padding: 1px 5px; border-radius: 999px;
  background: var(--accent2); color: var(--bg); }
.pcard .pbar { width: 100%; height: 3px; margin-top: 4px; border-radius: 2px;
  background: rgba(0,0,0,.13); overflow: hidden; }
body[data-skin="neon"] .pcard .pbar { background: rgba(34,230,255,.16); }
.pcard .pbar i { display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .35s; }

/* ---------- 连击大字 ---------- */
.combo-tag { position: absolute; top: 64%; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: .12em;
  color: var(--accent2); text-shadow: 0 0 26px var(--glow), 0 0 8px rgba(255,255,255,.4);
  white-space: nowrap; animation: comboPop .95s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes comboPop {
  0% { opacity: 0; transform: translateX(-50%) scale(.5); }
  35% { opacity: 1; transform: translateX(-50%) scale(1.18); }
  55% { transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.06) translateY(-14px); }
}

/* ---------- 多人排名 ---------- */
.rank-box { width: 100%; margin-top: 4px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px;
  border-bottom: 1px solid var(--line); }
.rank-row:first-child { background: rgba(196,86,47,.08); border-radius: 10px; }
.rank-row .rk { width: 20px; text-align: center; font-family: var(--mono);
  font-size: 13px; color: var(--dim); }
.rank-row:first-child .rk { color: var(--accent); font-weight: 700; }
.rank-row .rn { flex: 1; font-size: 14px; }
.rank-row .rv { font-family: var(--mono); font-size: 17px; color: var(--accent); }

/* ---------- 输入框全宽 ---------- */
#guess { width: 100%; }
.answer-zone .btn-main { margin-top: 10px; }

/* ---------- 下一首按钮高亮 ---------- */
.ctl.skip.hot { color: var(--accent); border-color: var(--accent);
  animation: hotPulse 1.2s infinite; }
@keyframes hotPulse { 50% { box-shadow: 0 0 0 6px rgba(0,0,0,0); transform: scale(1.06); } }

/* 播完/可跳过高亮 */
.ctl.skip.hot { color: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow), 0 0 18px -2px var(--glow);
  animation: skipPulse 1.1s ease-in-out infinite; }
@keyframes skipPulse { 50% { transform: scale(1.08); } }

.btn-tip.ban { opacity: .72; }
.btn-tip.ban:active { opacity: 1; }
#poolCount { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
