/* 听声辨枪皮 · Valorant 视觉语言：深海军蓝 + 瓦红 + 米白 + 切角造型
   移动优先，适配 320px 起的各种手机宽度，刘海屏安全区已处理 */

:root {
  --bg: #0f1923;          /* Valorant 深海军蓝 */
  --panel: #1a2733;
  --panel-2: #223140;
  --line: #33424f;
  --red: #ff4655;         /* Valorant 红 */
  --red-deep: #bd3944;
  --ink: #ece8e1;         /* Valorant 米白 */
  --ink-dim: #8b9aa7;
  --ok: #23d6a3;
  --cut: 12px;            /* 切角尺寸 */
  --bracket: rgba(236, 232, 225, 0.25); /* HUD 四角括号默认色 */
  --font-display: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Arial Narrow", "PingFang SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;  /* 老内核回退 */
  min-height: 100dvh;
  /* 点阵网格 + 斜向细线，压得极淡，只做质感不抢戏 */
  background-image:
    radial-gradient(rgba(236, 232, 225, 0.035) 1px, transparent 1.5px),
    repeating-linear-gradient(115deg, rgba(236, 232, 225, 0.02) 0 1px, transparent 1px 96px);
  background-size: 26px 26px, auto;
  overflow-x: hidden;
}

/* 流动背景：两团低透明度光晕缓慢漂移（transform 驱动，GPU 合成，不影响滚动性能） */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background: radial-gradient(circle, rgba(255, 70, 85, 0.09) 0%, transparent 55%);
  top: -30vmax;
  right: -25vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
body::after {
  background: radial-gradient(circle, rgba(35, 214, 163, 0.06) 0%, transparent 55%);
  bottom: -30vmax;
  left: -25vmax;
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-16vmax, 14vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(15vmax, -12vmax) scale(1.08); } }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; }

.frame {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;  /* 老内核回退 */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(20px + env(safe-area-inset-top)) clamp(16px, 4.5vw, 28px) calc(24px + env(safe-area-inset-bottom));
}
.screen { display: flex; flex-direction: column; flex: 1; }
.screen[hidden] { display: none; }

/* ---------- 切角按钮 ---------- */
/* 锐利直角矩形 + HUD 四角括号（瓦客户端按钮语言） */
.btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.97) translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary::before,
.btn-primary::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
}
.btn-primary::before { top: 4px; left: 4px; border-top: 2px solid rgba(255, 255, 255, 0.85); border-left: 2px solid rgba(255, 255, 255, 0.85); }
.btn-primary::after { bottom: 4px; right: 4px; border-bottom: 2px solid rgba(255, 255, 255, 0.85); border-right: 2px solid rgba(255, 255, 255, 0.85); }
.btn-primary:active { filter: brightness(1.15); }
.btn-primary:disabled { background: var(--panel-2); color: var(--ink-dim); cursor: not-allowed; }
.btn-primary:disabled::before, .btn-primary:disabled::after { border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--ink-dim); border: 1px solid var(--line); margin-top: 10px; }
.btn-ghost:active { color: var(--ink); border-color: var(--red); }

/* ---------- 首页 ---------- */
.brand { margin-top: clamp(24px, 9vh, 72px); }
.brand-en {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--red);
  font-weight: 600;
  font-style: italic;
}
.brand-en::after { content: ' //'; color: var(--ink-dim); }
.brand-cn {
  font-size: clamp(40px, 12vw, 60px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 6px 0 8px;
}
.brand-sub { color: var(--ink-dim); font-size: 14px; letter-spacing: 0.2em; }
.my-name-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--ink-dim); letter-spacing: 0.1em; }
.my-name-row b { color: var(--ink); font-size: 14px; }
.btn-edit-name { font-size: 11px; color: var(--ink-dim); border: 1px solid var(--line); padding: 2px 9px; letter-spacing: 0.1em; transition: color 0.15s, border-color 0.15s; }
.btn-edit-name:active { color: var(--red); border-color: var(--red); }

/* 用户名门 */
.name-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 25, 35, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gate-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 22px 22px;
  animation: hero-in 0.3s ease;
}
.gate-panel::before, .gate-panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.gate-panel::before { top: 5px; left: 5px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.gate-panel::after { bottom: 5px; right: 5px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.gate-title { font-size: 22px; font-weight: 900; letter-spacing: 0.08em; margin: 6px 0 16px; }
.gate-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 0.1em;
  caret-color: var(--red);
  outline: none;
  transition: border-color 0.15s;
}
.gate-input:focus { border-color: var(--red); }
.gate-hint { font-size: 11px; color: var(--ink-dim); margin: 10px 0 16px; letter-spacing: 0.06em; }

/* 玩法说明：紧凑版 */
.rules { list-style: none; margin: clamp(18px, 4vh, 32px) 0 auto; display: grid; gap: 7px; }
.rules li {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 12px; color: var(--ink-dim);
  padding: 7px 11px;
  background: var(--panel);
  border-left: 2px solid var(--red);
}
.rule-num { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 12px; letter-spacing: 0.05em; }

/* 我的数据（首页） */
.my-stats { margin-top: clamp(20px, 4vh, 32px); }
.my-stats-label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink); margin-bottom: 10px; }
.my-stats-label::before { content: '// '; color: var(--red); font-family: var(--font-display); font-style: italic; }
.my-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.my-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 13px 6px 11px;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.my-stat b { display: block; font-family: var(--font-display); font-size: clamp(20px, 6vw, 26px); font-weight: 700; }
.my-stat span { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.16em; }

.home-actions { margin-top: 28px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.home-grid .btn-ghost { margin-top: 0; font-size: 14px; padding: 13px 8px; }

/* 耳机提示 */
.hp-hint { text-align: center; font-size: 12px; color: var(--ink); letter-spacing: 0.12em; margin-bottom: 12px; }
.hp-hint::before { content: '// '; color: var(--red); font-family: var(--font-display); font-style: italic; }
.gate-hp { margin: 0 0 14px; }
.disclaimer { margin-top: 20px; text-align: center; font-size: 11px; color: #566573; letter-spacing: 0.08em; }

/* ---------- 答题 ---------- */
.quiz-top { display: flex; align-items: center; gap: 12px; }
/* 返回首页（答题页左上角，双击确认防误触） */
.quiz-home {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quiz-home:active { border-color: var(--red); transform: scale(0.92); }
.quiz-home .chev {
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--ink-dim);
  border-bottom: 2px solid var(--ink-dim);
  transform: rotate(45deg);
  margin-left: 4px;
}
.quiz-progress { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.04em; }
.q-total { color: var(--ink-dim); font-size: 17px; }
.quiz-dots { display: flex; gap: 5px; flex: 1; align-items: center; }
.quiz-dots i { width: 14px; height: 4px; background: var(--line); transform: skewX(-20deg); transition: background 0.3s ease; }
/* 生存模式血量：红菱形，扣血变暗 */
.quiz-dots i.life { width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.quiz-dots i.life.lost { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.quiz-dots i.done-ok { background: var(--ok); }
.quiz-dots i.done-bad { background: var(--red); }
.quiz-dots i.now { background: var(--ink); }
.quiz-score { font-size: 13px; color: var(--ink-dim); }
.quiz-score b { display: inline-block; color: var(--ink); font-size: 17px; margin-left: 2px; }
.quiz-score b.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.5); color: var(--ok); } }

.stage { display: flex; flex-direction: column; align-items: center; padding: clamp(20px, 5vh, 44px) 0 clamp(14px, 3vh, 24px); }
/* 方形 HUD 播放键（瓦不用圆，用直角+括号） */
.play-btn {
  position: relative;
  width: clamp(84px, 24vw, 104px);
  height: clamp(84px, 24vw, 104px);
  background: var(--panel);
  border: 1px solid var(--red);
  display: grid; place-items: center;
  transition: transform 0.1s ease;
}
.play-btn::before,
.play-btn::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.play-btn::before { top: -5px; left: -5px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.play-btn::after { bottom: -5px; right: -5px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.play-btn:active { transform: scale(0.94); }
.play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 5px;
  transition: all 0.15s ease;
}
/* 播放中：声波跳动（按钮语义是"重播"，不是暂停） */
.play-btn.playing .play-icon {
  width: 5px; height: 26px; border: none; margin-left: 0;
  background: var(--ink);
  position: relative;
  animation: eq 0.9s ease-in-out infinite 0.15s;
}
.play-btn.playing .play-icon::before,
.play-btn.playing .play-icon::after {
  content: '';
  position: absolute; top: 0;
  width: 5px; height: 100%;
  background: var(--ink);
  animation: eq 0.9s ease-in-out infinite;
}
.play-btn.playing .play-icon::before { left: -11px; }
.play-btn.playing .play-icon::after { right: -11px; animation-delay: 0.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.play-ring { position: absolute; inset: -1px; border: 2px solid var(--red); opacity: 0; }
.play-btn.playing .play-ring { animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
.stage-hint { margin-top: 10px; font-size: 13px; color: var(--ink-dim); letter-spacing: 0.1em; min-height: 1.4em; }

/* 音量滑杆：小号，细轨道 + 红色方块拇指 */
.vol-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.vol-icon { display: flex; align-items: center; color: var(--ink-dim); }
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 130px;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
.vol-slider::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  background: var(--red);
  transform: rotate(45deg);
}
.vol-slider::-moz-range-track { height: 2px; background: var(--line); }
.vol-slider::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 0; background: var(--red); transform: rotate(45deg); }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fade-up 0.3s ease backwards;
}
.opt:nth-child(1) { animation-delay: 0.02s; }
.opt:nth-child(2) { animation-delay: 0.06s; }
.opt:nth-child(3) { animation-delay: 0.1s; }
.opt:nth-child(4) { animation-delay: 0.14s; }
.opt:nth-child(5) { animation-delay: 0.18s; }
.opt:nth-child(6) { animation-delay: 0.22s; }
.opt:active { transform: scale(0.96); }
.opt img { height: clamp(34px, 10vw, 44px); width: 100%; object-fit: contain; pointer-events: none; }
.opt-name { min-height: 2.7em; display: flex; align-items: center; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
.opt:active { background: var(--panel-2); }
.opt.correct { background: rgba(35, 214, 163, 0.16); border-color: var(--ok); color: var(--ok); }
.opt.wrong { background: rgba(255, 70, 85, 0.14); border-color: var(--red); color: var(--red); animation: shake 0.3s ease; }
.opt.faded { opacity: 0.35; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 揭晓页：清空选项区，整页展示正确答案 + 猜测结果（元素错峰入场） */
.reveal { margin-top: clamp(8px, 2vh, 20px); display: flex; flex-direction: column; gap: 14px; }
.reveal-verdict { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.14em; text-align: center; animation: verdict-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.reveal-verdict.ok { color: var(--ok); }
.reveal-verdict.bad { color: var(--red); animation: verdict-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards, shake 0.3s ease 0.3s; }
.reveal-hero { animation: fade-up 0.4s ease 0.08s backwards; }
.reveal-guess { animation: fade-up 0.4s ease 0.16s backwards; }
.reveal > .btn { animation: fade-up 0.4s ease 0.24s backwards; }
@keyframes verdict-pop { from { opacity: 0; transform: scale(0.55); } }
.reveal-hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 4vw, 28px) 16px;
}
.reveal-hero::before, .reveal-hero::after,
.stat-card::before, .stat-card::after,
.fav-hero::before, .fav-hero::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.reveal-hero::before, .stat-card::before, .fav-hero::before { top: 4px; left: 4px; border-top: 2px solid var(--bracket); border-left: 2px solid var(--bracket); }
.reveal-hero::after, .stat-card::after, .fav-hero::after { bottom: 4px; right: 4px; border-bottom: 2px solid var(--bracket); border-right: 2px solid var(--bracket); }
.fav-hero::before, .fav-hero::after { border-color: var(--red); }
.reveal-hero img { height: clamp(90px, 25vw, 130px); width: 100%; object-fit: contain; }
.reveal-name { font-size: 17px; font-weight: 800; text-align: center; }
.reveal-tags { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.tier-chip { display: inline-block; font-size: 11px; padding: 2px 7px; border: 1px solid currentColor; letter-spacing: 0.08em; transform: skewX(-8deg); }
.tier-chip:empty { display: none; }
.reveal-guess { font-size: 13px; color: var(--ink-dim); text-align: center; min-height: 1.4em; }
.reveal-guess b { color: var(--red); font-weight: 600; }

/* ---------- 结算 ---------- */
.result-head { text-align: center; margin: clamp(14px, 3.5vh, 32px) 0; }
.result-label { font-size: 12px; letter-spacing: 0.34em; color: var(--ink-dim); }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stat-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 10px 14px;
  animation: fade-up 0.4s ease backwards;
}
.stat-card:nth-child(2) { animation-delay: 0.12s; }
.stat-rank { font-family: var(--font-display); font-size: clamp(44px, 13vw, 60px); font-weight: 700; line-height: 1; animation: verdict-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards; }
.stat-rank.r-s { color: #f5c85c; text-shadow: 0 0 18px rgba(245, 200, 92, 0.35); }
.stat-rank.r-a { color: var(--ok); }
.stat-rank.r-b { color: var(--ink); }
.stat-rank.r-c { color: var(--ink-dim); }
.stat-rank.r-d { color: #566573; }
.stat-v { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-top: 8px; }
.stat-v span { color: var(--ink-dim); font-size: 0.7em; }
.stat-k { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-dim); margin-top: 3px; }
.stat-comment { font-size: 12px; color: var(--ink); margin-top: 8px; line-height: 1.4; }
.btn-share { margin-top: 12px; background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-share:active { background: rgba(255, 70, 85, 0.12); }

.challenge-banner {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(255, 70, 85, 0.1);
  border: 1px solid var(--red);
  font-size: 13px;
  line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.challenge-banner b { color: var(--red); }

.section-title { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink); margin-bottom: 12px; }
.section-title::before { content: '// '; color: var(--red); font-family: var(--font-display); font-style: italic; }
.fav-block { display: flex; flex-direction: column; flex: 1; }
.fav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.fav-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 10px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fade-up 0.3s ease backwards;
}
.fav-card:nth-child(2) { animation-delay: 0.05s; }
.fav-card:nth-child(3) { animation-delay: 0.1s; }
.fav-card:nth-child(4) { animation-delay: 0.15s; }
.fav-card:nth-child(5) { animation-delay: 0.2s; }
.fav-card:nth-child(6) { animation-delay: 0.25s; }
.fav-card:active { transform: scale(0.95); }
.fav-card img { height: 44px; width: 100%; object-fit: contain; }
.fav-card .fav-name { font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ink); }
.fav-card { position: relative; }
.fav-card.picked { border-color: var(--red); background: rgba(255, 70, 85, 0.1); box-shadow: inset 0 0 0 1px var(--red); }
/* 选中锁定：红色角标从外收拢（瞄准锁定感） */
.fav-card.picked::before, .fav-card.picked::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  animation: lock-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fav-card.picked::before { top: 3px; left: 3px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.fav-card.picked::after { bottom: 3px; right: 3px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
@keyframes lock-in { from { transform: scale(1.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 底部四角提示块：未选择时呼吸提醒 */
.pick-hint {
  position: relative;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.14em;
  border: 1px dashed var(--line);
  animation: hint-breathe 2s ease-in-out infinite;
}
.pick-hint::before, .pick-hint::after,
.pick-hint i {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  animation: corner-pulse 2s ease-in-out infinite;
}
.pick-hint::before { content: ''; top: -2px; left: -2px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.pick-hint::after { content: ''; bottom: -2px; right: -2px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.pick-hint i:nth-of-type(1) { top: -2px; right: -2px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.pick-hint i:nth-of-type(2) { bottom: -2px; left: -2px; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); }
@keyframes hint-breathe { 0%, 100% { border-color: var(--line); } 50% { border-color: rgba(255, 70, 85, 0.55); } }
@keyframes corner-pulse { 0%, 100% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(0, 0) scale(1.35); opacity: 0.45; } }

/* 确认后：只放大展示你的最爱 */
.fav-final { display: flex; flex-direction: column; flex: 1; }
.fav-hero {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--red);
  box-shadow: 0 0 32px rgba(255, 70, 85, 0.12);
  padding: clamp(24px, 6vw, 40px) 16px;
  margin-bottom: 18px;
  animation: hero-in 0.35s ease;
}
@keyframes hero-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fav-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -6px 0 18px; animation: fade-up 0.4s ease 0.15s backwards; }
.fav-hero img { height: clamp(110px, 32vw, 170px); width: 100%; object-fit: contain; }
.fav-hero-name { font-size: 19px; font-weight: 800; text-align: center; }

/* ---------- 生存模式 ---------- */
.rank-hero {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(28px, 7vw, 44px) 16px;
  margin-top: 14px;
  animation: hero-in 0.35s ease;
}
.rank-hero::before, .rank-hero::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.rank-hero::before { top: 5px; left: 5px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.rank-hero::after { bottom: 5px; right: 5px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.rank-name { font-family: var(--font-display); font-style: italic; font-size: clamp(48px, 15vw, 72px); font-weight: 700; letter-spacing: 0.06em; animation: verdict-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards; }
.rank-streak { margin-top: 8px; font-size: 15px; color: var(--ink-dim); }
.rank-streak b { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); }
#scr-survival .btn-share { margin-top: auto; }

/* ---------- 好友对战 ---------- */
.vs-join-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; margin-top: 12px; }
.vs-join-row .gate-input { text-transform: uppercase; letter-spacing: 0.3em; font-family: var(--font-display); font-size: 18px; }
.vs-join-row .btn-ghost { margin-top: 0; }
.vs-code-label { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.18em; margin-top: 18px; }
.vs-code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(44px, 14vw, 64px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  margin: 2px 0 10px;
}
.versus-live {
  margin-top: 10px;
  padding: 7px 11px;
  background: var(--panel);
  border-left: 2px solid var(--red);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.vs-row-me { color: var(--red); font-weight: 700; }
.board-row .board-medal { font-family: var(--font-display); font-style: italic; font-size: 20px; font-weight: 700; }

/* ---------- 排行榜 ---------- */
.board-head { margin: clamp(12px, 3vh, 28px) 0 16px; }
.board-title { font-size: clamp(28px, 8vw, 36px); font-weight: 900; letter-spacing: 0.08em; margin: 4px 0; }
.board-total { color: var(--ink-dim); font-size: 13px; }
.board-list { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.board-row {
  display: grid;
  grid-template-columns: 34px 96px 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.board-row .bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 70, 85, 0.07); }
.board-row > * { position: relative; }
.board-rank { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink-dim); }
.board-row:nth-child(1) .board-rank { color: var(--red); }
.board-row:nth-child(2) .board-rank, .board-row:nth-child(3) .board-rank { color: var(--ink); }
.board-row img { width: 96px; height: 38px; object-fit: contain; }
.board-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.board-weapon { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.board-votes { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-align: right; }
.board-votes span { display: block; font-family: var(--font-body); font-size: 10px; color: var(--ink-dim); font-weight: 400; }
.board-row.mine { border-color: var(--red); }
.board-empty { text-align: center; color: var(--ink-dim); padding: 40px 0; font-size: 14px; }
.board-actions { margin-top: auto; }
.score-row { grid-template-columns: 34px 1fr auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 13px;
  z-index: 10;
  max-width: 86vw;
}

/* 展示型数字/字母统一斜体窄字（瓦数字语言） */
.quiz-progress, .stat-rank, .stat-v, .board-rank, .board-votes, .rule-num, .result-score { font-style: italic; }

/* ---------- 窄屏（iPhone SE 320-360）---------- */
@media (max-width: 360px) {
  .opt { padding: 10px 6px 8px; }
  .opt-name { min-height: 2.6em; }
  .board-row { grid-template-columns: 26px 72px 1fr auto; }
  .board-row img { width: 72px; }
}

/* ---------- 宽屏（平板 / 桌面）---------- */
@media (min-width: 700px) {
  .frame { max-width: 720px; }
  .options { grid-template-columns: repeat(3, 1fr); }
  .fav-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* hidden 属性全局兜底：优先级高于任何 display 规则 */
[hidden] { display: none !important; }
