/* ============================================================
   识之卷 · 全局样式
   移动端优先 + 桌面端自适应
   ============================================================ */
:root {
  --bg-deep: #0e1a35;
  --bg-mid: #16254d;
  --bg-card: #1e3058;
  --bg-card-hover: #26396a;
  --bg-input: #12203f;
  --line: rgba(255, 255, 255, .12);
  --text-main: #f0f4ff;
  --text-dim: #9fb0d4;
  --text-faint: #6b7ba3;
  --accent: #ff6fb5;
  --accent-2: #7eb3ff;
  --accent-3: #ffd166;
  --gold: #ffd166;
  --green: #6ee7a0;
  --red: #ff6b6b;
  --star: #ffe9a8;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --header-h: 56px;
  --tab-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text-main);
  background: radial-gradient(1200px 600px at 80% -10%, #243a6e 0%, transparent 55%),
              radial-gradient(900px 500px at -10% 110%, #3a1f4d 0%, transparent 50%),
              linear-gradient(160deg, var(--bg-deep) 0%, #101c38 55%, #0b1428 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
body.noscroll { overflow: hidden; }
img { -webkit-user-drag: none; user-select: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(255, 111, 181, .4); }

/* 滚动条（桌面） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #31477c; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

#app { min-height: 100dvh; display: flex; flex-direction: column; }

/* 容器：移动端全宽，桌面端居中限宽 */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px calc(var(--tab-h) + 20px);
  flex: 1;
}
@media (min-width: 768px) {
  .container { padding: 20px 24px calc(var(--tab-h) + 28px); }
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: rgba(14, 26, 53, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  font-size: 22px; line-height: 1; padding: 6px 10px 6px 4px; color: var(--text-dim);
  border-radius: 8px; transition: .15s;
}
.topbar .back:active { background: var(--bg-card); }
.topbar .title {
  flex: 1; font-size: 17px; font-weight: 700; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar .title .sub { font-size: 12px; font-weight: 400; color: var(--text-faint); margin-left: 8px; }
.topbar .badge {
  font-size: 12px; color: var(--accent-2); background: rgba(126, 179, 255, .14);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* ---------------- 底部导航（移动端） ---------------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(13, 22, 44, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottomnav .nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; color: var(--text-faint); transition: .15s;
}
.bottomnav .nav-item .ico { font-size: 21px; line-height: 1; }
.bottomnav .nav-item.active { color: var(--accent); }
.bottomnav .nav-item.active .ico { transform: translateY(-1px); }
@media (min-width: 768px) {
  .bottomnav { max-width: 560px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; }
}

/* ---------------- 通用卡片 ---------------- */
.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #1a2a52 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 15px; font-weight: 700; color: var(--text-dim);
  margin: 18px 2px 10px; display: flex; align-items: center; gap: 8px;
}
.section-title::before { content: "◆"; color: var(--accent); font-size: 11px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, #ff6fb5 0%, #e94e96 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(255, 111, 181, .35);
  transition: transform .12s, box-shadow .12s, filter .12s;
  min-height: 46px;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.secondary {
  background: linear-gradient(135deg, #7eb3ff 0%, #4d7fe0 100%);
  box-shadow: 0 6px 18px rgba(126, 179, 255, .3);
}
.btn.ghost {
  background: rgba(255, 255, 255, .08); color: var(--text-main);
  box-shadow: none; border: 1px solid var(--line);
}
.btn.small { padding: 8px 14px; font-size: 13px; min-height: 36px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > * { flex: 1; min-width: 110px; }

/* ---------------- 封面 ---------------- */
.cover {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(800px 500px at 50% 20%, #2a3f77 0%, transparent 60%),
              radial-gradient(700px 400px at 80% 90%, #55295f 0%, transparent 55%),
              linear-gradient(170deg, #0b1530 0%, #131f42 60%, #0a1226 100%);
}
.cover .stars { position: absolute; inset: 0; pointer-events: none; }
.cover .star {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--star); animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7);} 50% { opacity: 1; transform: scale(1.15);} }
@keyframes floaty { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
.cover .slogan { margin-top: 10px; font-size: 14px; color: var(--text-dim); letter-spacing: 2px; }
.cover .entry { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; width: min(320px, 86vw); }
.cover .credit {
  position: absolute; bottom: calc(env(safe-area-inset-bottom) + 14px);
  font-size: 12px; color: var(--text-faint); letter-spacing: 1px;
}
.cover .credit b { color: var(--accent-3); font-weight: 600; }
.cover .version { position: absolute; top: calc(env(safe-area-inset-top) + 12px); font-size: 11px; color: var(--text-faint); }

/* —— 封面：成员头像星光（每颗星都是一个小偶像） —— */
.cover .cover-star {
  position: absolute; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 14px rgba(255, 190, 220, .35), 0 0 4px rgba(126, 179, 255, .4);
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
}
.cover .cover-star img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* —— 封面：底部星河（缓缓流动的光带 + 顺流而下的星光） —— */
.cover .cover-river {
  position: absolute; left: -12%; right: -12%; bottom: calc(env(safe-area-inset-bottom) + 92px);
  height: 64px; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(126, 179, 255, .10) 45%, rgba(255, 179, 209, .08) 60%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.cover .river-shine {
  position: absolute; top: 6px; bottom: 6px; left: -30%; width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  animation: riverflow 7s linear infinite;
}
@keyframes riverflow { 0% { transform: translateX(0); } 100% { transform: translateX(540%); } }
.cover .river-star {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 12px rgba(255, 190, 220, .4);
  animation: drift 18s linear infinite;
}
.cover .river-star img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes drift { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: .9; } 92% { opacity: .9; } 100% { transform: translateX(1150%); opacity: 0; } }

/* —— 封面：卷轴标题（卷杆滑入 + 纸面展开 + 逐字浮现） —— */
.cover .logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cover .logo-sub {
  font-size: 13px; color: rgba(255, 255, 255, .55); letter-spacing: 10px; font-weight: 300;
  padding-left: 10px;
}
.cover .cover-quote {
  margin-top: 26px; max-width: 86vw;
  font-size: 14px; color: rgba(255, 255, 255, .78);
  letter-spacing: 1px; line-height: 1.8;
  text-shadow: 0 0 18px rgba(126, 179, 255, .5);
  transition: opacity .32s ease;
  min-height: 26px;
}
.cover .cover-quote::before { content: '❝ '; color: var(--accent-3); }
.cover .cover-quote::after { content: ' ❞'; color: var(--accent-3); }
.cover-quote.fade, .menu-quote.fade { opacity: 0; transform: translateY(4px); }

/* —— 大厅语录 —— */
.menu-quote {
  margin: 4px 0 14px; padding: 12px 16px; text-align: center;
  font-size: 13px; color: rgba(255, 255, 255, .75); letter-spacing: 1px; line-height: 1.7;
  background: linear-gradient(120deg, rgba(255, 111, 181, .10), rgba(126, 179, 255, .10));
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
  transition: opacity .32s ease, transform .32s ease;
}

/* —— 揭晓卡语录 —— */
.pc-quote {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-dim);
  letter-spacing: 1px; text-align: center; line-height: 1.7;
}

/* ---------------- 主菜单 ---------------- */
.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.mode-card {
  position: relative; padding: 18px 14px 14px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card) 0%, #182847 100%);
  border: 1px solid var(--line); cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; min-height: 128px;
  transition: transform .15s, border-color .15s;
  overflow: hidden;
}
.mode-card:active { transform: scale(.97); }
.mode-card .emoji { font-size: 34px; line-height: 1.2; }
.mode-card .mc-name { font-size: 16px; font-weight: 700; }
.mode-card .mc-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; flex: 1; }
.mode-card .mc-tag {
  align-self: flex-start; font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: rgba(126, 179, 255, .15); color: var(--accent-2);
}
.mode-card .mc-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 18, 40, .75); backdrop-filter: blur(3px);
  color: var(--text-faint); font-size: 13px; flex-direction: column; gap: 6px;
}

/* ---------------- 对局屏通用 ---------------- */
.game-stage {
  display: flex; flex-direction: column; gap: 12px;
  min-height: calc(100dvh - var(--header-h) - var(--tab-h) - 40px);
}
.gs-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--text-dim);
  flex-wrap: wrap;
}
.gs-top .chip {
  background: rgba(255, 255, 255, .07); padding: 5px 12px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.gs-top .chip b { color: var(--text-main); }
.gs-top .chip.score b { color: var(--accent-3); }
.gs-top .chip.lives b { color: var(--red); }
.gs-top .chip.phase b { color: var(--accent-2); }

.progress-track { height: 6px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .4s; }

/* 图片猜人：照片舞台 */
.photo-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0a1226; border: 1px solid var(--line);
  aspect-ratio: 4 / 4.6; display: flex; align-items: center; justify-content: center;
}
.photo-stage .pimg {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter .9s ease, transform .9s ease;
}
.photo-stage .pimg.blur-40 { filter: blur(40px) saturate(1.3); transform: scale(1.18); }
.photo-stage .pimg.blur-15 { filter: blur(15px) saturate(1.2); transform: scale(1.1); }
.photo-stage .pimg.noise { filter: contrast(1.1) brightness(.9); opacity: .8; }
.photo-stage .pimg.mask-top { clip-path: inset(0 0 52% 0); }
.photo-stage .pimg.silhouette { filter: brightness(0.16) contrast(1.7) saturate(0.2); }
/* 考古模式题面：低亮度彩色模糊（能看到轮廓与发色，不黑屏） */
.photo-stage .pimg.dim { filter: brightness(0.5) blur(6px) saturate(1.3); }
/* 第一阶段「谜雾」：超大颗粒马赛克（15px/块，仅剩大色块分布，五官不可辨，不黑屏） */
.photo-stage .pixel-layer {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.photo-stage .pixel-layer img {
  width: 6.67%; height: 6.67%; object-fit: cover;
  image-rendering: pixelated; image-rendering: crisp-edges;
  transform: scale(15); transform-origin: top left;
  filter: saturate(.7) brightness(1.06);
}
.photo-stage .pixel-layer img.err { width: 100%; height: 100%; transform: none; filter: none; }
.photo-stage .pimg.full { filter: none; transform: none; }
.photo-stage .phase-badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; padding: 4px 10px;
  background: rgba(10, 18, 40, .75); border-radius: 20px; color: var(--text-dim);
}
/* 考古泛黄滤镜层（mix-blend 与阶段滤镜叠加，不冲突） */
.photo-stage .vintage-layer {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(168,128,64,.22), rgba(120,90,45,.30));
  mix-blend-mode: multiply; z-index: 2;
}
.photo-stage .mask-layer {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(45deg, rgba(20,30,60,.85) 25%, transparent 25%),
                    linear-gradient(-45deg, rgba(20,30,60,.85) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgba(20,30,60,.85) 75%),
                    linear-gradient(-45deg, transparent 75%, rgba(20,30,60,.85) 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  opacity: .55;
}
.photo-stage .pimg-err {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 10px; color: var(--text-faint); font-size: 14px; width: 100%; height: 100%;
}
.photo-stage .pimg-err .big { font-size: 46px; }

/* 抢答输入 */
.answer-bar { display: flex; gap: 8px; }
.answer-bar input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  background: var(--bg-input); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text-main); font-size: 15px; outline: none;
}
.answer-bar input:focus { border-color: var(--accent-2); }
.answer-bar .btn { padding: 0 20px; }

/* AI 探案 */
.ai-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: linear-gradient(135deg, #4d7fe0, #8f5fd8); box-shadow: 0 6px 18px rgba(77,127,224,.4);
}
.ai-bubble {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; padding: 14px 16px; font-size: 15px; line-height: 1.6;
  max-width: calc(100% - 70px);
}
.ai-row { display: flex; align-items: flex-start; gap: 12px; }
.ai-answers { display: flex; gap: 10px; flex-wrap: wrap; margin-left: 68px; }
.ai-answers .btn.picked {
  border-color: var(--accent-2); color: var(--accent-2);
  background: rgba(126, 179, 255, .14); box-shadow: 0 0 0 1px rgba(126, 179, 255, .35);
}
.cand-count {
  font-size: 11px; color: var(--text-faint); white-space: nowrap;
  padding: 0 4px; align-self: center; flex-shrink: 0;
}

/* ---------------- 连击温度计（节奏引擎） ---------------- */
.combo-meter {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--gold);
  padding: 4px 14px; border-radius: 20px;
  background: rgba(255, 209, 102, .12); border: 1px solid rgba(255, 209, 102, .35);
  animation: comboPulse .5s ease;
}
.combo-meter.lv2 { color: #ff9f43; border-color: rgba(255, 159, 67, .5); }
.combo-meter.lv3 { color: #ff6fb5; border-color: rgba(255, 111, 181, .55); animation: comboPulse .4s ease infinite; }
@keyframes comboPulse {
  0% { transform: scale(.82); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ---------------- 图片骨架屏（加载前微光） ---------------- */
.g-img, .pimg, .avatar, .pc-avatar {
  background:
    linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from { background-position: 130% 0; }
  to { background-position: -90% 0; }
}

/* ---------------- 公式照视觉统一（圆角+内阴影） ---------------- */
.g-img { border-radius: 10px 10px 0 0; }
.gal-card .g-img {
  box-shadow: inset 0 -14px 18px -12px rgba(0, 0, 0, .5);
}
.photo-stage .pimg { box-shadow: inset 0 0 26px rgba(0, 0, 0, .45); }
.pc-avatar { border: 2px solid rgba(255,255,255,.12); }
.ai-think {
  margin: -6px 0 4px 68px; font-size: 12px; line-height: 1.8; color: var(--text-faint);
  padding: 8px 12px; border-radius: 10px; background: rgba(126,179,255,.07);
  border-left: 2px solid var(--accent-2);
}
.knowledge-card {
  border-left: 3px solid var(--accent-3); background: linear-gradient(180deg, rgba(255,209,102,.07), var(--bg-card));
}

/* ---------------- 揭晓时刻动画（全局） ---------------- */
@keyframes revealPop {
  from { transform: scale(.55); opacity: 0; filter: blur(8px); }
  to { transform: scale(1); opacity: 1; filter: none; }
}
@keyframes burstGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .65); }
  100% { box-shadow: 0 0 34px 8px rgba(255, 209, 102, 0); }
}
.result-card .r-score {
  animation: revealPop .55s cubic-bezier(.2, 1.4, .4, 1) both, burstGlow 1s ease-out .2s;
}
@keyframes nameFloat {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.reveal-name { animation: revealPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ---------------- 照片变体（慧眼识珠：同一张照片多种题面） ---------------- */
.pimg.mirror { transform: scaleX(-1); }
.pimg.duotone { filter: sepia(.5) hue-rotate(160deg) saturate(2.4) contrast(1.1); }
.pimg.crop-eyes {
  transform: scale(2.4); transform-origin: 50% 24%;
}
.pimg.crop-hair {
  transform: scale(1.9) grayscale(.9) brightness(1.05); transform-origin: 50% 8%;
}
.pimg.crop-mouth {
  transform: scale(2.6); transform-origin: 50% 78%;
}
/* 特写档的模糊阶段：轻微模糊保留五官轮廓 */
.pimg.crop-eyes.blur-15 { filter: blur(6px) saturate(1.2); }
.pimg.crop-hair.blur-15 { filter: blur(8px) brightness(1.05); }
.pimg.crop-mouth.blur-15 { filter: blur(7px) saturate(1.2); }

/* ---------------- 侦探卷宗纸纹（线索卡品质升级） ---------------- */
.clue-card {
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 255, 255, .025) 26px 27px),
    linear-gradient(180deg, rgba(233, 214, 170, .05), rgba(233, 214, 170, .02)), var(--bg-card);
}

/* ---------------- 翻牌 3D（档案拼图） ---------------- */
.flip-card {
  perspective: 800px; border-radius: var(--radius-s);
  background: var(--bg-card); border: 1px solid var(--line); overflow: hidden;
}
.flip-inner {
  transition: transform .35s ease; transform-style: preserve-3d;
  display: grid; min-height: 84px;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face, .flip-back {
  grid-area: 1 / 1;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); }

/* ---------------- 寿星蜡烛仪式 ---------------- */
@keyframes candleFlicker {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.25); }
}
.candle-celebrate { font-size: 56px; display: inline-block; animation: candleFlicker .6s ease-in-out infinite; }

/* ---------------- 票数条形图（决胜千里） ---------------- */
.vote-bars { display: flex; flex-direction: column; gap: 10px; }
.vote-bar-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.vote-bar-row .vb-name { flex: 0 0 84px; font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-bar-row .vb-track { flex: 1; height: 22px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.vote-bar-row .vb-fill {
  height: 100%; border-radius: 6px; min-width: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .7s cubic-bezier(.2, .8, .3, 1);
}
.vote-bar-row .vb-num { flex: 0 0 64px; font-size: 11px; color: var(--text-faint); }
.vote-bar-row.win .vb-fill { background: linear-gradient(90deg, #ffd166, #ff9f43); }
.ai-answers .btn { flex: 1; min-width: 88px; padding: 10px 12px; font-size: 14px; }
.funnel-wrap { padding: 12px 14px; border-radius: var(--radius-s); background: rgba(255,255,255,.05); }
.funnel { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.funnel .f {
  height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 8px; transition: width .5s ease;
}
.funnel-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.history-log {
  display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto;
  padding-right: 4px;
}
.hlog { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--text-dim); }
.hlog .q { flex: 1; }
.hlog .a { color: var(--accent-2); white-space: nowrap; }

/* 线索 */
.clue-card {
  padding: 14px 16px; border-radius: var(--radius-s);
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.7;
  animation: fadeUp .35s ease;
}
.clue-card .c-num { color: var(--accent); font-weight: 700; margin-right: 8px; }
.clue-card.locked { color: var(--text-faint); border-style: dashed; }
.clue-card.reveal { animation: none; }
.clue-card.flag { border-color: var(--red); background: rgba(255,107,107,.08); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* 结果卡 */
.result-card {
  text-align: center; padding: 24px 18px; animation: popIn .35s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(.92);} to { opacity: 1; transform: scale(1);} }
.result-card .r-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px;
  border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(255,111,181,.15), var(--shadow);
}
.result-card .r-name { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.result-card .r-info { font-size: 13px; color: var(--text-dim); margin-top: 6px; line-height: 1.8; }
.result-card .r-score { font-size: 15px; margin-top: 10px; color: var(--accent-3); font-weight: 700; }
.result-card .r-catch { font-size: 13px; color: var(--accent-2); margin-top: 8px; font-style: italic; }
.result-card .r-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.result-card .r-btns .btn { flex: 0 1 150px; }

/* ---------------- 档案卡 ---------------- */
.profile-card { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.pc-head { display: flex; gap: 14px; align-items: center; }
.pc-avatar {
  width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--line);
}
.pc-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: rgba(126,179,255,.14); color: var(--accent-2);
}
.tag.gold { background: rgba(255,209,102,.16); color: var(--gold); }
.tag.green { background: rgba(110,231,160,.14); color: var(--green); }
.tag.purple { background: rgba(180,140,255,.16); color: #c9a8ff; }
.tag.red { background: rgba(255,107,107,.15); color: var(--red); }
.pc-fields {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (min-width: 768px) { .pc-fields { grid-template-columns: repeat(3, 1fr); } }
.pc-field {
  background: rgba(255,255,255,.05); border-radius: var(--radius-s);
  padding: 8px 10px; font-size: 12px; min-width: 0;
}
.pc-field .k { color: var(--text-faint); font-size: 11px; }
.pc-field .v { color: var(--text-main); margin-top: 2px; word-break: break-word; }
.pc-timeline {
  background: rgba(255,255,255,.05); border-radius: var(--radius-s); padding: 12px;
  font-size: 12px; color: var(--text-dim); line-height: 2; max-height: 220px; overflow-y: auto;
}

/* ---------------- 筛选器 ---------------- */
.filter-section { margin-bottom: 14px; }
.filter-section .fs-title { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip {
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  background: rgba(255,255,255,.07); color: var(--text-dim);
  border: 1px solid transparent; transition: .12s;
}
.fs-chip.on {
  background: linear-gradient(135deg, rgba(255,111,181,.25), rgba(126,179,255,.25));
  color: var(--text-main); border-color: var(--accent);
}
.fs-chip:active { transform: scale(.96); }
.fs-row { display: flex; gap: 8px; align-items: center; }
.fs-row select {
  flex: 1; height: 42px; padding: 0 12px; background: var(--bg-input);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-main); font-size: 14px; outline: none;
}

/* 成员池摘要 */
.pool-summary {
  font-size: 13px; color: var(--text-dim); padding: 10px 14px;
  background: rgba(255,209,102,.08); border: 1px dashed rgba(255,209,102,.35);
  border-radius: var(--radius-s);
}
.pool-summary b { color: var(--gold); }

/* ---------------- 图鉴 ---------------- */
.gal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (min-width: 600px) { .gal-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; } }
@media (min-width: 900px) { .gal-grid { grid-template-columns: repeat(7, 1fr); gap: 12px; } }
.gal-card {
  border-radius: 12px; overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--line); cursor: pointer; transition: .15s;
  aspect-ratio: 3 / 4; display: flex; flex-direction: column;
}
.gal-card:active { transform: scale(.96); }
.gal-card .g-img { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.gal-card .g-name { font-size: 11px; padding: 5px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.gal-card.locked { background: rgba(255,255,255,.04); border-style: dashed; justify-content: center; align-items: center; color: var(--text-faint); font-size: 26px; }
.gal-card.locked .g-name { color: var(--text-faint); }
.gal-card .g-status { position: absolute; }

/* 分组/期数横条：保留细滚动条（桌面可拖拽），包裹层提供左右箭头按钮 */
.gal-scroll-wrap { display: flex; align-items: center; gap: 4px; }
.gal-scroll-wrap .gal-groups { flex: 1; min-width: 0; }
.gal-groups { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.gal-groups::-webkit-scrollbar { height: 4px; display: block; }
.gal-groups::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 2px; }
.gal-groups::-webkit-scrollbar-track { background: transparent; }
.gal-scroll-btn {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.12); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gal-scroll-btn:active { background: rgba(255,255,255,.2); }
.gal-group-chip {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; white-space: nowrap;
  background: rgba(255,255,255,.07); color: var(--text-dim);
}
.gal-group-chip.on { background: linear-gradient(135deg, var(--accent), #e94e96); color: #fff; }
.gal-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); margin: 10px 2px; }
.gal-progress .progress-track { flex: 1; }

/* ---------------- 成就 ---------------- */
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .ach-grid { grid-template-columns: repeat(3, 1fr); } }
.ach-card {
  padding: 12px; border-radius: var(--radius-s); background: var(--bg-card);
  border: 1px solid var(--line); display: flex; gap: 10px; align-items: center;
}
.ach-card .a-ico { font-size: 26px; flex-shrink: 0; }
.ach-card .a-name { font-size: 13px; font-weight: 700; }
.ach-card .a-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.5; }
.ach-card.unlocked { border-color: rgba(255,209,102,.5); background: linear-gradient(180deg, rgba(255,209,102,.12), var(--bg-card)); }
.ach-card.locked { opacity: .55; filter: grayscale(.8); }

/* ---------------- 我的 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box {
  text-align: center; padding: 14px 8px; border-radius: var(--radius-s);
  background: var(--bg-card); border: 1px solid var(--line);
}
.stat-box .sv { font-size: 22px; font-weight: 800; color: var(--accent-3); }
.stat-box .sk { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

/* ---------------- 排行 ---------------- */
.rank-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-s); background: rgba(255,255,255,.05); margin-bottom: 8px;
}
.rank-row .rk { width: 34px; text-align: center; font-weight: 800; font-size: 15px; color: var(--text-faint); }
.rank-row .rk.top1 { color: var(--gold); } .rank-row .rk.top2 { color: #d8e2ff; } .rank-row .rk.top3 { color: #e8a06a; }
.rank-row .rk-name { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rk-val { font-size: 13px; color: var(--accent-3); font-weight: 700; }
.rank-row.me { border: 1px solid var(--accent); }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 12, 28, .7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1;} }
.modal {
  width: min(460px, 100%); max-height: min(84dvh, 720px); overflow-y: auto;
  background: linear-gradient(180deg, #20325e 0%, #182a52 100%);
  border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow); animation: popIn .25s ease;
}
.modal h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.modal .m-body { font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.modal .m-actions { display: flex; gap: 10px; margin-top: 18px; }

/* toast */
#toast-wrap {
  position: fixed; top: calc(env(safe-area-inset-top) + 70px); left: 0; right: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  background: rgba(20, 32, 64, .95); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 24px; font-size: 14px; color: var(--text-main);
  box-shadow: var(--shadow); animation: toastIn .3s ease;
  max-width: 86vw; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px);} to { opacity: 1; transform: none;} }
.toast.err { border-color: rgba(255,107,107,.5); color: #ffb4b4; }
.toast.ok { border-color: rgba(110,231,160,.5); color: #b8f5d2; }

/* ---------------- 空态 ---------------- */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-faint);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.empty .big { font-size: 48px; }

/* 抢答键盘候选 */
.cand-list {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 14px);
  width: min(560px, 94vw); z-index: 90; max-height: 40dvh; overflow-y: auto;
  background: rgba(16, 27, 55, .97); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px;
}
.cand-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  font-size: 14px; cursor: pointer;
}
.cand-item:active { background: var(--bg-card-hover); }
.cand-item img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.cand-item .ci-name { font-weight: 600; }
.cand-item .ci-info { font-size: 11px; color: var(--text-faint); margin-left: auto; white-space: nowrap; }

/* ---------------- 文字谜题 ---------------- */
.word-puzzle {
  text-align: center; padding: 30px 16px; font-size: clamp(18px, 5vw, 26px);
  letter-spacing: 4px; line-height: 2; word-break: break-all;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.word-hint { font-size: 12px; color: var(--text-faint); margin-top: 8px; }

/* ---------------- 列表 ---------------- */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-s); margin-bottom: 8px; cursor: pointer;
}
.list-item:active { background: var(--bg-card-hover); }
.list-item .li-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-name { font-size: 15px; font-weight: 600; }
.list-item .li-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-val { font-size: 13px; color: var(--accent-3); }

/* 身份卡（数据题「TA 是谁」揭晓用） */
.who-row {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.who-row .who-name { font-size: 15px; font-weight: 700; }
.who-row .who-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* 设置项 */
.set-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-s); margin-bottom: 8px;
}
.set-item .si-name { font-size: 14px; }
.set-item .si-desc { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* 开关 */
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { display: none; }
.switch .track {
  position: absolute; inset: 0; border-radius: 28px; background: rgba(255,255,255,.15);
  transition: .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch input:checked + .track { background: linear-gradient(135deg, var(--accent), #e94e96); }
.switch input:checked + .track::after { left: 23px; }

/* 数字选择器 */
.num-stepper { display: flex; align-items: center; gap: 12px; }
.num-stepper button {
  width: 34px; height: 34px; border-radius: 10px; font-size: 18px;
  background: rgba(255,255,255,.1); color: var(--text-main);
}
.num-stepper button:active { background: var(--bg-card-hover); }
.num-stepper .nv { min-width: 40px; text-align: center; font-size: 16px; font-weight: 700; }

/* 挑战码 */
.code-box {
  font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 2px;
  background: #0a1226; border: 1px dashed var(--accent-2); color: var(--accent-2);
  padding: 12px; border-radius: 12px; text-align: center; word-break: break-all;
  user-select: text;
}

/* 桌面增强 */
@media (min-width: 1024px) {
  .mode-card:hover { transform: translateY(-4px); border-color: rgba(255,111,181,.4); }
  .gal-card:hover { transform: translateY(-2px); border-color: var(--accent-2); }
  .list-item:hover { background: var(--bg-card-hover); }
}

/* ---------------- 队伍应援色主题（皮肤） ----------------
   真实应援色（2026-08 交叉核实）：
   Team SII 水蓝 #a1d5ed · Team NII 丁香紫 #be98c7
   Team HII 阳光橙 #f8941d · Team X 苹果绿 #b1d61b
   深色背景取队伍色暗调变体，强调色取亮化变体 */
body[data-theme="sii"] {
  --accent: #6fc3f0; --accent-2: #a8d8f5; --bg-deep: #0d1b33; --bg-mid: #132542; --bg-card: #1a2f52;
}
body[data-theme="nii"] {
  --accent: #c4a3e0; --accent-2: #dcc3f0; --bg-deep: #1c1230; --bg-mid: #271740; --bg-card: #311f4a;
}
body[data-theme="hii"] {
  --accent: #ffa64d; --accent-2: #ffc98a; --bg-deep: #2e1c0d; --bg-mid: #3d2812; --bg-card: #4a3016;
}
body[data-theme="x"] {
  --accent: #bfe05a; --accent-2: #d8f08f; --bg-deep: #13240c; --bg-mid: #1a3010; --bg-card: #214016;
}

/* 打印与无图模式 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 隐藏元素工具类 */
.hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.dim { color: var(--text-dim); } .faint { color: var(--text-faint); } .gold { color: var(--gold); }
.f12 { font-size: 12px; } .f13 { font-size: 13px; } .f14 { font-size: 14px; } .f16 { font-size: 16px; }
.bold { font-weight: 700; }
.wrap { flex-wrap: wrap; }

/* ============ 封面：卷轴标题动画 ============ */
.cover .scroll {
  display: flex; align-items: stretch; justify-content: center;
  height: clamp(64px, 13vh, 88px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .5));
  animation: floaty 4.5s 3.2s ease-in-out infinite;
}
.cover .scroll-rod {
  position: relative; flex: none; width: clamp(14px, 3.2vw, 22px);
  border-radius: 9px;
  background: linear-gradient(90deg, #6d5322, #c9a24d 28%, #ffe9b0 50%, #c9a24d 72%, #6d5322);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .35);
}
.cover .scroll-rod::before, .cover .scroll-rod::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: calc(100% + 10px); height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, #f4da92, #a07c33);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.cover .scroll-rod::before { top: -5px; }
.cover .scroll-rod::after { bottom: -5px; }
.cover .scroll-rod-l { animation: rod-in-l .8s .05s cubic-bezier(.22, .61, .36, 1) backwards; }
.cover .scroll-rod-r { animation: rod-in-r .8s .05s cubic-bezier(.22, .61, .36, 1) backwards; }
@keyframes rod-in-l { from { transform: translateX(-60px); opacity: 0; } }
@keyframes rod-in-r { from { transform: translateX(60px); opacity: 0; } }

.cover .scroll-paper {
  position: relative; flex: none; width: min(64vw, 250px);
  border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(212, 169, 78, .16), rgba(212, 169, 78, 0) 32%, rgba(212, 169, 78, 0) 68%, rgba(212, 169, 78, .12)),
    linear-gradient(180deg, #1b2c57, #101d3d);
  border: 1px solid rgba(212, 169, 78, .5);
  box-shadow: 0 0 26px rgba(212, 169, 78, .16), inset 0 0 22px rgba(255, 255, 255, .03);
  transform-origin: center;
  animation: unroll 1s .3s cubic-bezier(.22, .61, .36, 1) backwards;
}
.cover .scroll-paper::before, .cover .scroll-paper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0));
}
.cover .scroll-paper::before { left: 0; }
.cover .scroll-paper::after { right: 0; transform: scaleX(-1); }
@keyframes unroll { from { transform: scaleX(0); opacity: 0; } }

.cover .scroll-chars {
  display: flex; align-items: center; justify-content: center; gap: clamp(2px, 1.6vw, 8px);
  height: 100%; padding: 0 18px;
}
.cover .scroll-char {
  font-size: clamp(30px, 8vw, 46px); font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff3cf 0%, #ffd98a 55%, #e0b35a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 217, 138, .35));
  opacity: 0;
  animation: ink-in .8s cubic-bezier(.19, 1, .22, 1) forwards;
}
.cover .scroll-char:nth-child(1) { animation-delay: 1.05s; }
.cover .scroll-char:nth-child(2) { animation-delay: 1.3s; }
.cover .scroll-char:nth-child(3) { animation-delay: 1.55s; }
@keyframes ink-in {
  0% { opacity: 0; transform: scale(1.9); filter: blur(10px) drop-shadow(0 0 14px rgba(255, 217, 138, .35)); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 14px rgba(255, 217, 138, .35)); }
}

.cover .logo-sub { animation: sub-in .9s 1.95s ease backwards; }
@keyframes sub-in { from { opacity: 0; transform: translateY(8px); } }
.cover .slogan { animation: fade-up .9s 2.25s ease backwards; }
.cover .entry { animation: fade-up .9s 2.55s ease backwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .cover .scroll, .cover .scroll-rod, .cover .scroll-paper,
  .cover .scroll-char, .cover .logo-sub, .cover .slogan, .cover .entry {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ============================================================
   2026-08 货币体系·等级兑现新增样式
   图鉴卡牌边框（星光兑换） / 结算卡等级主题（每 10 级）
   ============================================================ */
/* 图鉴边框：仅已认识卡生效（b-gold 鎏金 / b-purple 紫晶 / b-shine 流光） */
.gal-card.b-gold { outline: 2px solid rgba(255, 209, 102, .7); outline-offset: -2px; box-shadow: 0 0 12px rgba(255, 209, 102, .35); }
.gal-card.b-purple { outline: 2px solid rgba(201, 168, 255, .7); outline-offset: -2px; box-shadow: 0 0 12px rgba(201, 168, 255, .35); }
.gal-card.b-shine {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--bg-card), #182847) padding-box, linear-gradient(135deg, #ff6fb5, #ffd166, #7eb3ff, #7ee0d0) border-box;
  box-shadow: 0 0 14px rgba(126, 179, 255, .35);
}
/* 结算卡等级主题：每 10 级解锁一款（Lv10 紫 / Lv20 金 / Lv30 流光粉） */
body[data-lvcard="lv10"] .r-score { box-shadow: 0 0 0 2px rgba(201, 168, 255, .4), 0 0 18px rgba(201, 168, 255, .3); }
body[data-lvcard="lv20"] .r-score { box-shadow: 0 0 0 2px rgba(255, 209, 102, .5), 0 0 22px rgba(255, 209, 102, .35); }
body[data-lvcard="lv30"] .r-score { box-shadow: 0 0 0 3px rgba(255, 158, 203, .6), 0 0 28px rgba(255, 158, 203, .45); }

/* 试玩横幅（B+ 方案）：锁定模式试玩局顶部提示 */
.trial-banner {
  /* 顶部信息横幅：普通流式（非 sticky，不遮挡作答区/输入框） */
  margin: 12px 14px 0; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 209, 102, .14), rgba(255, 209, 102, .06));
  border: 1px solid rgba(255, 209, 102, .35);
  color: var(--gold); font-size: 12px; line-height: 1.7;
}
.tb-title { font-size: 14px; font-weight: 700; color: var(--gold); }
.tb-left { font-size: 12px; font-weight: 400; color: var(--text-dim); margin-left: 6px; }
.tb-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.tb-hint { font-size: 11px; color: rgba(255, 209, 102, .75); margin-top: 4px; }

/* 队伍应援色边框（2026-08-15 扩充）：SII 水蓝 / HII 阳光橙 / X 苹果绿（NII 丁香紫见 .b-purple） */
.gal-card.b-sii { outline: 2px solid rgba(161, 213, 237, .7); outline-offset: -2px; box-shadow: 0 0 12px rgba(161, 213, 237, .35); }
.gal-card.b-hii { outline: 2px solid rgba(248, 148, 29, .7); outline-offset: -2px; box-shadow: 0 0 12px rgba(248, 148, 29, .35); }
.gal-card.b-x { outline: 2px solid rgba(177, 214, 27, .7); outline-offset: -2px; box-shadow: 0 0 12px rgba(177, 214, 27, .35); }
