/* ============================================================
 * 斗球场 BALL PIT — 界面样式
 * 暗色像素街机柜：暖近黑底 / 钠灯橙 / 黑光紫 / 硬边面板
 * 结构：marquee（柜头） → screens（屏幕） → console（控制台）
 * ============================================================ */

/* ---------------- 0. 变量与基础 ---------------- */
:root {
  --ink: #0A0910;
  --ink-2: #100E18;
  --panel: #151220;
  --panel-2: #1B1728;
  --line: #312A42;
  --cream: #FFF4DC;
  --muted: #A89DBB;
  --orange: #FF6B1A;
  --orange-2: #FFB347;
  --violet: #B060FF;
  --violet-2: #D9A8FF;
  --cyan: #54E6FF;
  --danger: #FF4F6D;
  --gold: #FFC24B;
  --good: #7CFF9E;

  --o-glow: rgba(255, 107, 26, 0.35);
  --v-glow: rgba(176, 96, 255, 0.35);
  --edge: #4A405D;
  --shadow-hard: 0 3px 0 #05040A;

  --dossier-w: 352px;
  --marquee-min: 78px;
  --console-min: 52px;
  --screen-pad: 14px 18px 12px;
  --gap: 10px;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  background: #05040A;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  background:
    radial-gradient(1100px 760px at 12% -12%, rgba(255, 107, 26, 0.10), transparent 62%),
    radial-gradient(1000px 860px at 102% 112%, rgba(176, 96, 255, 0.13), transparent 64%),
    radial-gradient(700px 500px at 50% 120%, rgba(84, 230, 255, 0.04), transparent 70%),
    linear-gradient(180deg, #0B0912 0%, #07060B 58%, #0A0811 100%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 背景细扫描线（只压在柜体之下，不糊 UI 文字） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
  opacity: 0.42;
}

/* 暗角 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 44%, transparent 52%, rgba(2, 1, 5, 0.55) 100%);
}

[hidden] { display: none !important; }

::selection { background: var(--orange); color: var(--ink); }

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 通用组件 ---------- */
.btn {
  --btn-bg: linear-gradient(180deg, #241E31 0%, #171221 100%);
  --btn-bd: #4A405D;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1px #05040A, 0 2px 0 #05040A;
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  cursor: pointer;
  user-select: none;
  transition: transform 70ms steps(2, end), border-color 120ms linear, background 120ms linear;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 244, 220, 0.06);
  pointer-events: none;
}

.btn:hover { border-color: var(--orange-2); color: #fff; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px #05040A, 0 0 0 #05040A; }

.btn--primary {
  --btn-bg: linear-gradient(180deg, #FF8A3D 0%, var(--orange) 55%, #D64D00 100%);
  --btn-bd: #FFC48A;
  color: #1A0A02;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px #05040A, inset 0 -4px 0 rgba(0, 0, 0, 0.28), 0 3px 0 #05040A;
  font-weight: 400;
}
.btn--primary::before { border-color: rgba(26, 10, 2, 0.22); }
.btn--primary:hover { --btn-bg: linear-gradient(180deg, #FFA063 0%, #FF7A2E 55%, #E35600 100%); color: #140800; }

.btn--ghost { --btn-bg: linear-gradient(180deg, rgba(36, 30, 49, 0.6), rgba(18, 14, 26, 0.85)); }

.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 12px; letter-spacing: 0.08em; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  filter: saturate(0.5);
  transform: none;
}
.btn[disabled]:hover { border-color: var(--btn-bd); color: var(--cream); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  background: rgba(21, 18, 32, 0.7);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.led {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--line);
  box-shadow: 0 0 0 1px #05040A;
  vertical-align: 1px;
}
.led.is-on { background: var(--good); box-shadow: 0 0 6px rgba(124, 255, 158, 0.65); }

.kbd,
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 2px;
  background: #0D0A14;
  color: var(--cream);
  font-family: var(--font-pixel-en);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  vertical-align: 1px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 1. 柜体 / 柜头 / 控制台 ---------------- */
.cabinet {
  position: relative;
  z-index: 1;
  width: min(100%, 1800px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, rgba(20, 16, 30, 0.55) 0%, rgba(7, 6, 12, 0.72) 100%);
  border-left: 3px solid #241D33;
  border-right: 3px solid #241D33;
  box-shadow:
    0 0 0 1px #000,
    0 0 80px rgba(0, 0, 0, 0.9),
    inset 0 0 90px rgba(0, 0, 0, 0.55);
}

/* 柜头 */
.marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--marquee-min);
  padding: 9px 18px;
  background:
    linear-gradient(180deg, rgba(255, 107, 26, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #181327 0%, #100D19 100%);
  border-bottom: 3px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.06);
  z-index: 12;
}

.marquee::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 18px, transparent 18px 36px);
  opacity: 0.55;
  pointer-events: none;
}

.marquee::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 244, 220, 0.12) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.marquee__brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-en {
  font-family: var(--font-pixel-en);
  font-size: clamp(18px, 1.85vw, 30px);
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow:
    2px 2px 0 #7A2A00,
    4px 4px 0 rgba(255, 107, 26, 0.28),
    0 0 18px rgba(255, 107, 26, 0.22);
  white-space: nowrap;
}
.brand-en em {
  font-style: normal;
  color: var(--orange);
  text-shadow:
    2px 2px 0 #3A1000,
    4px 4px 0 rgba(255, 107, 26, 0.35);
}

.brand-han {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.62em;
  color: var(--orange-2);
  text-shadow: 0 0 8px rgba(255, 107, 26, 0.4);
  white-space: nowrap;
  padding-left: 2px;
}

.marquee__center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.marquee__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 2px solid var(--line);
  background: rgba(10, 9, 16, 0.55);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.mode-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line);
}
.mode-chip--hot { color: var(--orange-2); border-color: rgba(255, 107, 26, 0.45); }
.mode-chip--hot::before { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.mode-chip--violet { color: var(--violet-2); border-color: rgba(176, 96, 255, 0.42); }
.mode-chip--violet::before { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.mode-chip--gold { color: var(--gold); border-color: rgba(255, 194, 75, 0.5); }
.mode-chip--gold::before { background: var(--gold); }
.mode-chip .digits {
  font-family: var(--font-pixel-en);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--orange-2);
  margin-left: 2px;
}

.marquee-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #1C1729, #100D19);
  color: var(--muted);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #05040A;
}
.marquee-btn:hover { color: var(--cream); border-color: var(--edge); }
.marquee-btn[aria-pressed="true"] { color: var(--cream); border-color: rgba(124, 255, 158, 0.4); }
.marquee-btn--icon { min-width: 36px; justify-content: center; font-family: var(--font-pixel-en); font-size: 12px; padding: 6px; }

/* 计时器 */
.timer {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 2px 12px 2px 13px;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(255, 107, 26, 0.03)),
    #0C0A12;
  box-shadow: inset 0 0 0 1px #05040A, inset 0 0 22px rgba(0, 0, 0, 0.65);
}
.timer__label {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.timer__value {
  font-family: var(--font-pixel-en);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 0 12px rgba(255, 244, 220, 0.28);
  font-variant-numeric: tabular-nums;
  min-width: 86px;
  text-align: center;
}
.timer.is-storm { border-color: rgba(255, 79, 109, 0.6); }
.timer.is-storm .timer__value { color: var(--danger); text-shadow: 0 0 14px rgba(255, 79, 109, 0.5); }

.battle-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.battle-meta b { color: var(--cream); font-weight: 400; }

.battle-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn--ctrl {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  --btn-bg: linear-gradient(180deg, #221C30, #14101F);
}

.pause-bars {
  display: inline-flex;
  gap: 3px;
}
.pause-bars i {
  display: block;
  width: 3px;
  height: 11px;
  background: currentColor;
}
.btn--ctrl.is-paused .pause-bars i {
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  background: none;
}
.btn--ctrl.is-paused .pause-bars i + i { display: none; }

.speed-group {
  display: inline-flex;
  border: 2px solid var(--line);
  background: #0C0A12;
  box-shadow: inset 0 0 0 1px #05040A;
}
.speed-btn {
  min-width: 38px;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-right: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-pixel-en);
  font-size: 12px;
  letter-spacing: 0;
  cursor: pointer;
}
.speed-btn:last-child { border-right: 0; }
.speed-btn:hover { color: var(--cream); background: rgba(255, 107, 26, 0.1); }
.speed-btn[aria-pressed="true"] {
  background: var(--orange);
  color: #180A02;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.btn--danger {
  --btn-bg: linear-gradient(180deg, #2A1420, #170C12);
  --btn-bd: #5A2735;
  color: var(--danger);
}
.btn--danger:hover { border-color: var(--danger); color: #FFD9E0; }

/* 控制台 */
.console {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--console-min);
  padding: 7px 18px;
  border-top: 3px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #14101E 0%, #0C0A12 100%);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.55);
  z-index: 11;
}

.console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 107, 26, 0.4) 0 8px, transparent 8px 16px);
  opacity: 0.6;
  pointer-events: none;
}

.console__coin {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.coin__slot {
  width: 22px;
  height: 7px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: inset 0 0 4px #000, 0 1px 0 rgba(255, 255, 255, 0.06);
}
.coin__label {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #5B4E72;
  animation: blink 2.4s steps(2, end) infinite;
  white-space: nowrap;
}

.console__hint {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.console__hint em { color: var(--orange-2); font-style: normal; }
.console__hint i { font-style: normal; color: var(--line); }

.console__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.console__leds {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}
.console__leds i {
  width: 4px;
  height: 10px;
  background: #241D33;
}
.console__leds i:nth-child(1) { background: var(--orange); opacity: 0.8; }
.console__leds i:nth-child(2) { background: var(--violet); opacity: 0.7; }
.console__leds i:nth-child(3) { background: var(--cyan); opacity: 0.45; }
.console__leds i:nth-child(4) { background: #241D33; }

.btn--deck {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
  letter-spacing: 0.1em;
  --btn-bg: linear-gradient(180deg, #1E1929, #120F1A);
}

/* ---------------- 2. 屏幕容器 ---------------- */
.screens {
  position: relative;
  min-height: 0;
  z-index: 2;
}

.screen {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: var(--screen-pad);
}

.screen.is-enter { animation: channel-switch 260ms steps(5, end) both; }

@keyframes channel-switch {
  0% { opacity: 0; filter: brightness(1.7) contrast(1.2); transform: translateY(3px); }
  35% { opacity: 0.55; filter: brightness(1.15); }
  100% { opacity: 1; filter: none; transform: none; }
}

.screen--roster { display: flex; }
.screen--home { display: flex; }
.screen--tournament { display: flex; padding: 12px 16px 10px; }

.screen--battle { display: flex; padding: 12px 14px 10px; }

/* 结算页覆盖在战场之上（战场最后一帧留在背后暗下） */
.screen--result {
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 30;
  padding: 0;
  background:
    radial-gradient(900px 560px at 50% 0%, rgba(255, 107, 26, 0.10), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(176, 96, 255, 0.12), transparent 62%),
    rgba(6, 5, 10, 0.9);
  backdrop-filter: none;
}
.screen--result::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.screen--battle.is-backdrop { pointer-events: none; }
.screen--battle.is-backdrop .hp-row,
.screen--battle.is-backdrop .feed__item { opacity: 0.55; }

/* ---------------- 3. 选球页 ---------------- */
.roster {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
}

.roster__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 2px;
}

.roster__title { min-width: 0; }
.roster__kicker {
  display: block;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--orange-2);
  margin-bottom: 3px;
}
.roster__kicker .k-en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: 8px;
}
.roster h1 {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow:
    2px 2px 0 #3A1608,
    4px 4px 0 rgba(255, 107, 26, 0.2);
}
.roster h1 .title-mark { color: var(--orange); }
.roster__sub {
  margin: 5px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.roster__counter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 9, 16, 0.8), rgba(21, 18, 32, 0.6));
  box-shadow: inset 0 0 0 1px #05040A;
}
.counter__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.counter__num {
  font-family: var(--font-pixel-en);
  font-size: 22px;
  line-height: 1;
  color: var(--orange-2);
  text-shadow: 0 0 12px rgba(255, 107, 26, 0.4);
}
.counter__max {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  color: var(--muted);
}
.pips {
  display: flex;
  gap: 3px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.pip {
  width: 8px;
  height: 14px;
  background: #1D1829;
  border: 1px solid #2B2438;
}
.pip.is-on { border-color: rgba(255, 244, 220, 0.35); background: var(--pip-color, var(--orange)); }

.roster__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dossier-w);
  gap: 14px;
  min-height: 0;
}

.roster__gridcol { min-height: 0; display: flex; flex-direction: column; }

.roster__grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(236px, 1fr);
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
  align-content: start;
}
.roster__grid::-webkit-scrollbar { width: 8px; }
.roster__grid::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); }
.roster__grid::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }

/* ---- 球卡 ---- */
.card-shell { position: relative; min-width: 0; }

.ball-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px 11px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(27, 23, 40, 0.92) 0%, rgba(18, 15, 27, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px #05040A,
    inset 0 14px 30px -20px rgba(255, 244, 220, 0.18),
    0 3px 0 rgba(0, 0, 0, 0.55);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 110ms linear, transform 90ms steps(2, end), background 110ms linear;
}

.ball-card::before,
.ball-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--edge);
  pointer-events: none;
  transition: border-color 110ms linear;
}
.ball-card::before { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; }
.ball-card::after { right: -2px; bottom: -2px; border-bottom-width: 3px; border-right-width: 3px; }

.ball-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
}

.ball-card__ident { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-right: 38px; }
.ball-card__name {
  font-family: var(--font-pixel-han);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-shadow: 1px 1px 0 #05040A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ball-card__en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ball-card__tags { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 3px; overflow: hidden; }

.tag {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #3A3150;
  background: rgba(10, 9, 16, 0.5);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tag--arch { color: var(--violet-2); border-color: rgba(176, 96, 255, 0.4); }
.tag--species { color: var(--cyan); border-color: rgba(84, 230, 255, 0.32); }

.ball-card__order {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 34px;
  height: 34px;
  padding: 2px 3px;
  border: 2px solid var(--orange-2);
  background: var(--orange);
  color: #170A02;
  box-shadow: 0 0 0 2px #05040A, 0 0 14px rgba(255, 107, 26, 0.45);
  line-height: 1;
  z-index: 2;
}
.order__n {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}
.order__t {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  margin-top: 2px;
}
.ball-card.is-selected .ball-card__order { display: flex; }

/* 属性 */
.ball-card__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 6px 0 5px;
  border-top: 1px dashed #302945;
  border-bottom: 1px dashed #302945;
}
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat__k {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.25;
  color: #8C7FA5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.stat__v {
  font-family: var(--font-pixel-en);
  font-size: 12px;
  line-height: 1.35;
  color: var(--cream);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.stat__bar {
  display: block;
  height: 3px;
  background: #0A0810;
  box-shadow: inset 0 0 0 1px #241D33;
  overflow: hidden;
}
.stat__bar i {
  display: block;
  height: 100%;
  width: var(--fill, 50%);
  background: linear-gradient(90deg, var(--stat-color, var(--orange)), rgba(255, 244, 220, 0.75));
}

/* 技能 */
.ball-card__skills {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}
.skillline {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}
.skillline__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.skillline__head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.skillline__kind {
  flex: 0 0 auto;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #7E7195;
  border: 1px solid #322A44;
  padding: 0 3px;
}
.skillline--active .skillline__kind { color: var(--orange-2); border-color: rgba(255, 107, 26, 0.4); }
.skillline__name {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skillline__desc {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  color: #9C90B2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 技能印章 */
.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  background: rgba(10, 9, 16, 0.65);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1;
  color: var(--violet-2);
  box-shadow: inset 0 0 0 1px #05040A;
  flex: 0 0 auto;
}
.sigil--passive { color: var(--cyan); }
.sigil--active { color: var(--orange-2); background: rgba(255, 107, 26, 0.1); }
.sigil--lg { width: 34px; height: 34px; font-size: 16px; border-width: 2px; }

.ball-card__bio {
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px dotted #2C2540;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: #867AA0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 选中状态：橙色描边 + 球色顶条 + 外圈 + 上场印章 */
.ball-card.is-selected {
  border-color: var(--orange);
  background:
    linear-gradient(180deg, rgba(255, 107, 26, 0.17) 0%, rgba(26, 18, 34, 0.95) 42%, rgba(18, 15, 27, 0.98) 100%);
  box-shadow:
    inset 0 4px 0 var(--ball-color, var(--orange)),
    inset 0 0 0 1px #05040A,
    inset 0 0 38px rgba(255, 107, 26, 0.13),
    0 0 0 1px var(--orange),
    0 4px 0 rgba(0, 0, 0, 0.55);
}
.ball-card.is-selected::before,
.ball-card.is-selected::after {
  width: 16px;
  height: 16px;
  border-color: var(--orange);
}
.ball-card.is-selected .ball-card__name {
  color: #FFF8E8;
  text-shadow: 0 0 10px rgba(255, 107, 26, 0.35), 1px 1px 0 #05040A;
}
.ball-card.is-selected .orb {
  box-shadow:
    inset -5px -7px 0 rgba(0, 0, 0, 0.3),
    inset 3px 4px 0 rgba(255, 255, 255, 0.16),
    0 0 0 3px #05040A,
    0 0 0 5px var(--orange),
    0 0 22px -8px var(--c);
}

/* 未上场：降低一点存在感，但保持可读 */
.ball-card:not(.is-selected) {
  border-color: #2B2438;
  background:
    linear-gradient(180deg, rgba(22, 18, 31, 0.92) 0%, rgba(15, 12, 22, 0.97) 100%);
}
.ball-card:not(.is-selected) .ball-card__name { color: #DED2BE; }
.ball-card:not(.is-selected) .orb { filter: saturate(0.72) brightness(0.9); }
.ball-card:not(.is-selected) .ball-card__top { opacity: 0.88; }
.ball-card:not(.is-selected) .ball-card__skills { opacity: 0.82; }
.ball-card.is-locked { opacity: 0.46; }

/* 移动端档案按钮 */
.card-detail {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid #4A405D;
  background: rgba(10, 9, 16, 0.88);
  color: var(--muted);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.card-detail:hover { color: var(--cream); border-color: var(--cyan); }

/* ---- 球体 ---- */
.orb {
  --c: #FF6B1A;
  --c2: #FFC24B;
  --cd: #551D00;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85) 0 5%, transparent 6%),
    radial-gradient(circle at 36% 30%, var(--c2) 0%, var(--c) 44%, var(--cd) 100%);
  box-shadow:
    inset -5px -7px 0 rgba(0, 0, 0, 0.3),
    inset 3px 4px 0 rgba(255, 255, 255, 0.14),
    0 0 0 3px #05040A,
    0 0 0 5px #241D33,
    0 0 22px -10px var(--c);
}
.orb::after {
  content: "";
  position: absolute;
  inset: 84% 22% 6% 24%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(1px);
}
.orb--card { width: 46px; height: 46px; }

.orb__face {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb__face i {
  position: absolute;
  top: 40%;
  width: 14%;
  height: 18%;
  background: rgba(9, 8, 14, 0.82);
  border-radius: 1px;
}
.orb__face i:first-child { left: 29%; }
.orb__face i:nth-child(2) { right: 29%; }
.orb__face b {
  position: absolute;
  top: 62%;
  left: 50%;
  width: 16%;
  height: 5%;
  min-height: 2px;
  transform: translateX(-50%);
  background: rgba(9, 8, 14, 0.7);
  border-radius: 1px;
}
.orb--big { width: 152px; height: 152px; }
.orb--big .orb__face i { width: 13%; height: 17%; }
.orb--mid { width: 84px; height: 84px; }

.orb__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel-en);
  font-size: 14px;
  color: #fff;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.orb--big .orb__num { font-size: 34px; }

/* ---- 档案面板 ---- */
.dossier {
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(27, 23, 40, 0.9) 0%, rgba(14, 11, 21, 0.96) 100%);
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
  position: relative;
}
.dossier::-webkit-scrollbar { width: 8px; }
.dossier::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); }
.dossier::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }

.dossier__empty {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.dossier__empty .orb {
  width: 74px;
  height: 74px;
  --c: #241D33;
  --c2: #3A3150;
  --cd: #0A0810;
  box-shadow: inset 0 0 0 2px #0A0810, 0 0 0 3px #05040A, 0 0 0 5px #241D33;
}
.dossier__empty .orb::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel-en);
  font-size: 24px;
  color: #6E6088;
}
.dossier__empty p { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.14em; }
.dossier__empty small { font-family: var(--font-body); font-size: 11px; color: #6E6088; letter-spacing: 0.02em; }

.dossier__inner { padding: 14px; display: flex; flex-direction: column; gap: 12px; }

.dossier__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A2338;
}
.dossier__ident { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dossier__tagline {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--orange-2);
}
.dossier__name {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-shadow: 2px 2px 0 #2A1608;
}
.dossier__en {
  display: block;
  font-family: var(--font-pixel-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 2px;
}
.dossier__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }

.dossier__bio {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.65;
  color: #C9BEDC;
}
.dossier__quote {
  margin: 0;
  padding: 6px 0 0 10px;
  border-left: 2px solid rgba(255, 107, 26, 0.45);
  font-family: var(--font-body);
  font-size: 12px;
  color: #9C90B2;
  letter-spacing: 0.02em;
}

.dossier__stats { display: flex; flex-direction: column; gap: 6px; }
.dstat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
}
.dstat__k { font-size: 12px; color: #8C7FA5; letter-spacing: 0.04em; }
.dstat__bar {
  height: 6px;
  background: #0A0810;
  box-shadow: inset 0 0 0 1px #241D33;
  overflow: hidden;
}
.dstat__bar i {
  display: block;
  height: 100%;
  width: var(--fill, 50%);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 6px),
    linear-gradient(90deg, var(--stat-color, var(--orange)), rgba(255, 244, 220, 0.8));
}
.dstat__v {
  font-family: var(--font-pixel-en);
  font-size: 12px;
  color: var(--cream);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dossier__skills { display: flex; flex-direction: column; gap: 8px; }
.skill-block {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border: 1px solid #302945;
  background: rgba(10, 9, 16, 0.42);
}
.skill-block__head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.skill-block__kind {
  font-size: 12px;
  color: #7E7195;
  letter-spacing: 0.04em;
}
.skill-block--active .skill-block__kind { color: var(--orange-2); }
.skill-block__name {
  font-size: 14px;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.skill-block__en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  color: #6E6088;
  letter-spacing: 0.06em;
}
.skill-block__desc {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: #A99CBD;
}
.skill-block__cd {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.dossier__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.dossier__foot .btn { flex: 1 1 auto; }
.dossier__hint { font-family: var(--font-body); font-size: 11px; color: #6E6088; }

/* ---- 阵容条 ---- */
.lineup-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.72), rgba(10, 8, 16, 0.85));
  box-shadow: inset 0 0 0 1px #05040A;
  min-height: 50px;
  max-width: 100%;
  overflow: hidden;
}
.lineup-strip__label {
  flex: 0 0 auto;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--orange-2);
  letter-spacing: 0.24em;
  border-right: 1px solid #2A2338;
  padding-right: 10px;
}
.lineup-strip__slots {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.lineup-strip__slots::-webkit-scrollbar { height: 6px; }
.lineup-strip__slots::-webkit-scrollbar-thumb { background: #332B45; }

.slot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px 0 5px;
  border: 1px solid #3A3150;
  background: #120F1B;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.02em;
  position: relative;
}
.slot:hover { border-color: var(--danger); }
.slot__orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2), var(--c) 55%, var(--cd) 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.slot__name { white-space: nowrap; }
.slot__x {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  color: #7E7195;
  margin-left: 2px;
}
.slot:hover .slot__x { color: var(--danger); }
.slot.is-empty {
  width: 40px;
  justify-content: center;
  color: #4E4363;
  border-style: dashed;
  cursor: default;
  padding: 0;
  font-size: 14px;
}
.slot.is-empty:hover { border-color: #3A3150; }

/* ---- 底部操作条 ---- */
.roster__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.roster__hint {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.roster__hint.is-warn { color: var(--orange-2); }
.roster__hint.is-ready { color: var(--good); }
.roster__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* ---------------- 4. 战斗页 ---------------- */
.battle {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.battle__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
}

/* 战场机框 */
.arena-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 2px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 107, 26, 0.07), transparent 60%),
    linear-gradient(180deg, #191426 0%, #0B0912 100%);
  box-shadow:
    inset 0 0 0 1px #05040A,
    inset 0 0 60px rgba(0, 0, 0, 0.6),
    0 4px 0 rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.arena-shell::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 244, 220, 0.08);
  pointer-events: none;
}
.arena-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(10px 10px at 12px 12px, #4A405D 2px, transparent 2.5px),
    radial-gradient(10px 10px at calc(100% - 12px) 12px, #4A405D 2px, transparent 2.5px),
    radial-gradient(10px 10px at 12px calc(100% - 12px), #4A405D 2px, transparent 2.5px),
    radial-gradient(10px 10px at calc(100% - 12px) calc(100% - 12px), #4A405D 2px, transparent 2.5px);
}
.arena-shell.is-storm { border-color: rgba(255, 79, 109, 0.65); animation: storm-pulse 1.1s steps(2, end) infinite; }

/* 机框两侧竖排装饰（宽屏时填满正方形两侧的余地） */
.arena-shell__tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: #4A3F61;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.arena-shell__tag--l { left: 14px; }
.arena-shell__tag--r { right: 14px; color: #4F3040; }
@media (max-width: 1080px) {
  .arena-shell__tag { display: none; }
}

@keyframes storm-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px #05040A, inset 0 0 60px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 79, 109, 0.16); }
  50% { box-shadow: inset 0 0 0 1px #05040A, inset 0 0 80px rgba(255, 79, 109, 0.16), 0 0 40px rgba(255, 79, 109, 0.32); }
}

.arena-frame {
  position: relative;
  width: 320px;
  height: 320px;
  /* 实际尺寸由 ui.js 按可用空间钳制为正方形 */
  background: #06050B;
  box-shadow:
    0 0 0 3px #05040A,
    0 0 0 5px var(--line),
    0 0 44px -8px rgba(255, 107, 26, 0.25);
}
.arena-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #06050B;
}
.arena-frame__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.42) 100%);
  opacity: 0.7;
  mix-blend-mode: multiply;
}
.arena-frame__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--cream);
  pointer-events: none;
  opacity: 0.8;
}
.arena-frame__corner--tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.arena-frame__corner--tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.arena-frame__corner--bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.arena-frame__corner--br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

/* 覆盖层 */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px),
    rgba(6, 5, 10, 0.72);
  text-align: center;
}

.overlay--countdown { pointer-events: none; background: transparent; }
.countdown__stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 20px 4px;
  border: 3px solid var(--orange);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    rgba(8, 6, 14, 0.66);
  box-shadow:
    0 0 0 3px rgba(5, 4, 10, 0.7),
    0 0 34px rgba(255, 107, 26, 0.22),
    inset 0 0 22px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.5deg);
  animation: count-stamp 380ms steps(4, end) both;
}
.countdown__num {
  display: block;
  font-family: var(--font-pixel-en);
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1;
  color: var(--cream);
  text-shadow:
    2px 2px 0 #7A2A00,
    4px 4px 0 rgba(255, 107, 26, 0.32);
}
.countdown__num.is-go {
  font-family: var(--font-pixel-han);
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: 0.14em;
  color: var(--orange-2);
}
.countdown__label {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: rgba(255, 244, 220, 0.7);
  margin-top: 2px;
}

@keyframes count-stamp {
  0% { transform: scale(1.7) rotate(-6deg); opacity: 0; }
  50% { transform: scale(1) rotate(-1.5deg); opacity: 1; }
  75% { transform: scale(0.97) rotate(-1.5deg); }
  100% { transform: scale(1) rotate(-1.5deg); opacity: 1; }
}

.overlay--pause { background: rgba(6, 5, 10, 0.82); }
.pause__stamp {
  display: block;
  padding: 6px 18px;
  border: 3px solid var(--orange);
  color: var(--orange-2);
  font-family: var(--font-pixel-han);
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.4em;
  padding-left: calc(18px + 0.4em);
  text-shadow: 2px 2px 0 #3A1608;
  box-shadow: 0 0 24px rgba(255, 107, 26, 0.22), inset 0 0 0 1px #05040A;
  transform: rotate(-2deg);
}
.pause__hint {
  margin: 2px 0 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.pause__hint kbd { font-size: 8px; }

/* 血条监控 */
.hp-board {
  flex: 0 0 auto;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.85), rgba(10, 8, 16, 0.92));
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.5);
  padding: 6px 8px 8px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 5px;
  border-bottom: 1px solid #2A2338;
  margin-bottom: 6px;
}
.panel-head__title {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.panel-head__en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #6E6088;
}
.alive-count {
  margin-left: auto;
  font-family: var(--font-pixel-en);
  font-size: 10px;
  color: var(--good);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.alive-count.is-danger { color: var(--danger); }

.storm-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #2A2338;
}
.storm__label {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: #8C7FA5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.storm__label.is-storm { color: var(--danger); }
.storm__label.is-off { color: #6E6088; }
.storm__bar {
  display: block;
  width: 72px;
  height: 5px;
  background: #0A0810;
  box-shadow: inset 0 0 0 1px #241D33;
  overflow: hidden;
}
.storm__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #7A2A00, var(--danger));
  transform-origin: left center;
  transform: scaleX(0);
}

.hp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 8px;
}
.hp-row {
  display: grid;
  grid-template-columns: 8px 52px minmax(30px, 1fr) 46px 56px;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 6px;
  border: 1px solid #2A2338;
  background: rgba(10, 8, 16, 0.55);
  transition: opacity 180ms linear;
}
.hp-row.is-dead { opacity: 0.32; filter: grayscale(0.65); }
.hp-row.is-hit { animation: row-hit 160ms steps(2, end); }
@keyframes row-hit {
  0% { background: rgba(255, 79, 109, 0.35); }
  100% { background: rgba(10, 8, 16, 0.55); }
}
.hp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--orange));
  box-shadow: 0 0 6px var(--c, var(--orange)), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.hp-name {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.2;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.hp-num {
  font-family: var(--font-pixel-en);
  font-size: 12px;
  line-height: 1;
  color: var(--cream);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hp-row.is-low .hp-num { color: var(--danger); }
.hp-bar {
  position: relative;
  display: block;
  height: 12px;
  background: #0A0810;
  box-shadow: inset 0 0 0 1px #241D33;
  overflow: hidden;
}
.hp-bar__fill {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(10, 9, 16, 0.75) 8px 10px),
    linear-gradient(90deg, #D94A00, var(--orange) 55%, var(--gold));
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 140ms linear;
}
.hp-bar__shield {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(10, 9, 16, 0.7) 8px 10px),
    linear-gradient(90deg, #1E7A92, var(--cyan));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.85;
  z-index: 1;
  mix-blend-mode: screen;
}
.hp-bar.is-low .hp-bar__fill {
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(10, 9, 16, 0.75) 8px 10px),
    linear-gradient(90deg, #9A0E28, var(--danger));
}
.hp-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 18px;
}
.st {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  background: rgba(10, 9, 16, 0.8);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1;
  color: var(--violet-2);
  flex: 0 0 auto;
}
.st--burn { color: var(--orange-2); }
.st--poison { color: var(--good); }
.st--slow { color: var(--cyan); }
.st--root { color: var(--gold); }
.st--haste { color: var(--cream); }
.st--spike { color: var(--danger); }
.st--invuln { color: var(--violet); }
.st--atkUp { color: var(--orange); }
.st--out {
  width: auto;
  padding: 0 4px;
  color: var(--danger);
  border-color: var(--danger);
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.02em;
}

/* 右侧战况 */
.battle__side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.panel {
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.85), rgba(10, 8, 16, 0.92));
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.5);
  padding: 6px 8px 8px;
  min-height: 0;
}
.feed { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.feed__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--danger);
}
.feed__live i {
  width: 5px;
  height: 5px;
  background: var(--danger);
  animation: blink 1.2s steps(2, end) infinite;
  box-shadow: 0 0 6px var(--danger);
}
.feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.feed__list::-webkit-scrollbar { width: 6px; }
.feed__list::-webkit-scrollbar-thumb { background: #332B45; }
.feed__item {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  padding: 3px 5px 3px 0;
  border-bottom: 1px solid rgba(49, 42, 66, 0.55);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.4;
  color: #C2B6D6;
  animation: feed-in 180ms steps(3, end) both;
}
.feed__item::before {
  content: "";
  background: var(--feed-color, var(--line));
  box-shadow: 0 0 5px var(--feed-color, transparent);
}
.feed__item--cast { color: var(--violet-2); }
.feed__item--kill { color: var(--danger); }
.feed__item--info { color: var(--gold); }
.feed__item--hit { color: var(--muted); }
.feed__item--empty {
  display: block;
  border-bottom: 0;
  color: #5E5375;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.7;
}
.feed__item--empty::before { display: none; }
@keyframes feed-in {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}

/* 参战名单 */
.roster-mini { flex: 0 0 auto; }
.roster-mini__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.roster-mini__item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 2px 4px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: #B7AACB;
  border: 1px solid #241D33;
  background: rgba(10, 8, 16, 0.45);
}
.roster-mini__item i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 5px -1px var(--c);
}
.roster-mini__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-mini__item.is-dead { opacity: 0.4; }
.roster-mini__item.is-dead span { text-decoration: line-through; }

/* ---------------- 5. 结算页 ---------------- */
.result {
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.result::-webkit-scrollbar { width: 8px; }
.result::-webkit-scrollbar-thumb { background: #332B45; }

.result__panel {
  position: relative;
  width: min(1060px, 100%);
  border: 3px solid var(--line);
  background:
    radial-gradient(600px 260px at 18% 0%, rgba(255, 107, 26, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(27, 23, 40, 0.97), rgba(12, 10, 18, 0.98));
  box-shadow:
    inset 0 0 0 1px #05040A,
    0 0 60px rgba(0, 0, 0, 0.8),
    0 6px 0 rgba(0, 0, 0, 0.55);
  padding: 20px 24px 18px;
}
.result__panel::before,
.result__panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--orange);
  pointer-events: none;
}
.result__panel::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.result__panel::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

.result__hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #2A2338;
}
.result__orb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}
.result__orb-wrap::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255, 194, 75, 0.28);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result__crown {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 2px 8px;
  background: var(--gold);
  color: #211301;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.14em;
  box-shadow: 0 2px 0 #05040A;
}
.orb--winner {
  width: 148px;
  height: 148px;
  box-shadow:
    inset -7px -9px 0 rgba(0, 0, 0, 0.32),
    inset 4px 5px 0 rgba(255, 255, 255, 0.16),
    0 0 0 4px #05040A,
    0 0 0 7px var(--line),
    0 0 40px -2px var(--c);
}
.orb--winner .orb__face i { width: 12%; height: 16%; top: 38%; }
.orb--winner .orb__face b { top: 60%; height: 5%; }
.orb--winner .orb__num { font-size: 38px; }
.orb--draw {
  --c: #3A3150;
  --c2: #6E6088;
  --cd: #0A0810;
}
.orb--draw .orb__num { font-size: 22px; }

.result__hero-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.result__kicker {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--orange-2);
}
.result__kicker .k-en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  color: #6E6088;
  letter-spacing: 0.14em;
  margin-left: 8px;
}
.result__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-pixel-han);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.result__name {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--gold);
  letter-spacing: 0.06em;
  text-shadow:
    3px 3px 0 #4A3200,
    6px 6px 0 rgba(255, 194, 75, 0.22),
    0 0 34px rgba(255, 194, 75, 0.3);
}
.result__name .en {
  display: block;
  font-family: var(--font-pixel-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange-2);
  text-shadow: none;
  margin-top: 6px;
  margin-left: 2px;
}
.result__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.result__quote {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: #B7AACB;
  letter-spacing: 0.02em;
}
.result__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.meta-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 8px;
  border: 2px solid var(--line);
  background: rgba(10, 8, 16, 0.55);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.meta-chip b {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.meta-chip em {
  font-style: normal;
  font-family: var(--font-pixel-en);
  font-size: 10px;
  color: var(--orange-2);
}

.result__body { padding-top: 14px; }

.standings {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-pixel-han);
  font-size: 12px;
}
.standings caption { text-align: left; }
.standings thead th {
  padding: 5px 8px;
  border-bottom: 2px solid var(--line);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #8C7FA5;
  text-align: left;
  white-space: nowrap;
}
.standings thead th.th-num { text-align: right; }
.standings tbody tr {
  border-bottom: 1px solid rgba(49, 42, 66, 0.6);
}
.standings tbody tr.is-winner {
  background: linear-gradient(90deg, rgba(255, 194, 75, 0.12), transparent 70%);
  box-shadow: inset 3px 0 0 var(--gold);
}
.standings tbody tr.is-out { color: #8C7FA5; }
.standings td {
  padding: 7px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.standings td.rank {
  width: 44px;
  font-family: var(--font-pixel-en);
  font-size: 14px;
  color: var(--muted);
}
.standings tr.is-winner td.rank { color: var(--gold); text-shadow: 0 0 10px rgba(255, 194, 75, 0.45); }
.standings tr.rank-2 td.rank { color: var(--cream); }
.standings tr.rank-3 td.rank { color: var(--orange-2); }
.standings td.fighter { width: auto; }
.fighter__wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fighter__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2), var(--c) 60%, var(--cd));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 6px -1px var(--c);
  flex: 0 0 auto;
}
.fighter__name { color: var(--cream); letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; }
.fighter__en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #6E6088;
}
.standings tr.is-out .fighter__name { color: #B0A3C4; }
.standings td.num {
  text-align: right;
  font-family: var(--font-pixel-en);
  font-size: 12px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.standings td.state { width: 64px; }
.stamp {
  display: inline-block;
  padding: 1px 5px;
  border: 2px solid currentColor;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.stamp--alive { color: var(--good); }
.stamp--out { color: #8C7FA5; }
.stamp--draw { color: var(--danger); }

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid #2A2338;
}
.result__actions .btn { flex: 1 1 200px; min-height: 46px; font-size: 14px; letter-spacing: 0.16em; }

/* ---------------- 6. Toast / 模态 / 档案弹层 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 560px);
  padding: 9px 16px;
  border: 2px solid var(--orange);
  background: #14101E;
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
  box-shadow:
    0 0 0 2px #05040A,
    0 0 30px rgba(255, 107, 26, 0.25);
  animation: toast-in 180ms steps(3, end) both;
}
/* 结算页：Toast 放到最底部（控制台区域），不遮胜者信息与按钮 */
body[data-screen="result"] .toast {
  top: auto;
  bottom: 4px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px),
    rgba(5, 4, 9, 0.82);
}
.modal__panel {
  position: relative;
  width: min(600px, 100%);
  max-height: min(84vh, 720px);
  overflow-y: auto;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #1B1728 0%, #0E0B16 100%);
  box-shadow:
    inset 0 0 0 1px #05040A,
    0 0 0 3px rgba(255, 107, 26, 0.18),
    0 18px 60px rgba(0, 0, 0, 0.8);
  padding: 18px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.modal__panel::before,
.modal__panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--orange);
}
.modal__panel::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.modal__panel::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.modal__panel--wide { width: min(720px, 100%); }

.modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2A2338;
}
.modal__kicker {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--orange-2);
}
.modal__title {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
}
.modal__close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--line);
  background: #0E0B16;
  color: var(--muted);
  font-family: var(--font-pixel-en);
  font-size: 12px;
  cursor: pointer;
}
.modal__close:hover { color: var(--cream); border-color: var(--danger); }

.guide__section { margin: 0 0 14px; }
.guide__section h3 {
  margin: 0 0 6px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--orange-2);
}
.guide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.6;
  color: #C2B6D6;
}
.guide__list li { display: flex; gap: 8px; align-items: baseline; }
.guide__list li b { font-weight: 400; color: var(--cream); flex: 0 0 auto; min-width: 74px; }
.guide__rule {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.7;
  color: #A99CBD;
}
.guide__rule strong { color: var(--gold); font-weight: 400; }

/* 移动端档案弹层里的 dossier 复用 */
.modal .dossier {
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  min-height: 0;
}
.modal .dossier__inner { padding: 0; }
.modal .dossier__head { grid-template-columns: auto minmax(0, 1fr); }
.modal .dossier__foot { display: none; }
.modal__foot { display: flex; gap: 10px; margin-top: 14px; }
.modal__foot .btn { flex: 1; min-height: 44px; }

.noscript {
  position: fixed;
  inset: auto 0 50% 0;
  text-align: center;
  color: var(--cream);
  font-family: var(--font-body);
}

/* ---------------- 7. 响应式：宽度 ---------------- */
@media (max-width: 1580px) {
  :root { --dossier-w: 330px; }
  .roster__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat__v { font-size: 10px; }
}

@media (max-width: 1440px) {
  :root { --dossier-w: 312px; --screen-pad: 12px 14px 10px; }
  .battle { grid-template-columns: minmax(0, 1fr) 310px; }
  .hp-grid { gap: 5px 6px; }
  .hp-row { grid-template-columns: 8px 46px minmax(24px, 1fr) 42px 48px; gap: 5px; }
  .ball-card { padding: 9px 9px 10px; gap: 6px; }
  .ball-card__top { gap: 7px; min-height: 44px; }
  .orb--card { width: 42px; height: 42px; }
  .ball-card__name { font-size: 14px; }
  .ball-card__ident { padding-right: 36px; }
}

@media (max-width: 1240px) {
  :root { --dossier-w: 0px; }
  .roster__body { grid-template-columns: minmax(0, 1fr); }
  .dossier { display: none; }
  .card-detail { display: inline-flex; }
  .ball-card { padding-bottom: 46px; }
  .roster__grid { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); grid-auto-rows: minmax(310px, 1fr); }
  .result__hero { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; }
  .orb--winner { width: 128px; height: 128px; }
  .result__orb-wrap { min-height: 165px; }
}

@media (max-width: 1080px) {
  .battle { grid-template-columns: minmax(0, 1fr); }
  .battle__side { flex-direction: row; flex-wrap: nowrap; height: 120px; min-height: 120px; max-height: 120px; flex: 0 0 120px; }
  .feed { flex: 1 1 auto; }
  .roster-mini { display: none; }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed__list { flex-direction: row; flex-wrap: wrap; overflow-y: hidden; align-content: flex-start; }
  .feed__item { flex: 1 1 180px; border-bottom: 0; }
}

@media (max-width: 960px) {
  .marquee { flex-wrap: wrap; row-gap: 8px; }
  .marquee__center { justify-content: flex-start; order: 3; flex-basis: 100%; }
  .marquee__right { margin-left: auto; }
  .roster__grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); grid-auto-rows: minmax(310px, 1fr); }
  .result__panel { padding: 16px; }
}

@media (max-width: 720px) {
  :root { --screen-pad: 10px 10px 8px; --gap: 8px; }
  .cabinet { border-left: 0; border-right: 0; }
  .marquee { padding: 8px 10px; gap: 10px; min-height: 0; }
  .brand-en { font-size: 20px; text-shadow: 2px 2px 0 #7A2A00; }
  .brand-han { font-size: 12px; letter-spacing: 0.4em; }
  .marquee__right { gap: 6px; }
  .marquee-btn { min-height: 40px; }
  .marquee-btn--icon { min-width: 40px; }
  .console { padding: 6px 10px; gap: 10px; min-height: 46px; }
  .console__coin { display: none; }
  .console__hint { font-size: 12px; gap: 4px; }
  .console__leds { display: none; }
  .console__actions .btn--deck { min-height: 38px; }

  .roster__head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .roster__counter { align-self: flex-start; }
  .roster__sub { display: none; }
  .roster h1 { font-size: 24px; }
  .roster__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
    padding-right: 2px;
  }
  .card-shell { min-height: 0; }
  .ball-card {
    gap: 8px;
    padding: 10px 10px 12px;
  }
  .ball-card__top { min-height: 0; }
  .orb--card { width: 52px; height: 52px; }
  .ball-card__name { font-size: 16px; }
  .ball-card__bio { display: none; }
  .card-detail { right: 10px; bottom: 10px; }

  .roster__bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .roster__hint { font-size: 12px; }
  .roster__actions { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
  .roster__actions .btn { min-height: 48px; padding: 8px 6px; letter-spacing: 0.06em; }
  .lineup-strip { padding: 5px 8px; min-height: 48px; }
  .lineup-strip__label { font-size: 12px; padding-right: 8px; letter-spacing: 0.14em; }
  .slot { min-height: 40px; }

  .timer__value { font-size: 18px; min-width: 68px; }
  .battle-meta { display: none; }
  .battle-controls { gap: 5px; width: 100%; justify-content: space-between; }
  .btn--ctrl { flex: 1 1 auto; min-width: 62px; min-height: 40px; }
  .speed-group { flex: 0 0 auto; }
  .speed-btn { min-width: 40px; min-height: 40px; font-size: 10px; }
  .btn--danger { flex: 0 0 auto; }
  .battle { gap: 8px; }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-areas:
      "dot name status"
      "bar bar num";
    row-gap: 4px;
    padding: 5px 6px;
    min-height: 42px;
  }
  .hp-dot { grid-area: dot; align-self: center; }
  .hp-name { grid-area: name; }
  .hp-bar { grid-area: bar; height: 9px; }
  .hp-num { grid-area: num; font-size: 10px; }
  .hp-status { grid-area: status; min-height: 16px; }
  .st { width: 15px; height: 15px; font-size: 12px; }
  .storm-wrap { display: none; }
  .battle__side { min-height: 0; max-height: 96px; }
  .feed__list { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; }
  .feed__item { flex: 0 0 auto; }
  .panel-head { padding-bottom: 4px; margin-bottom: 5px; }

  .result { padding: 10px; }
  .result__panel { padding: 14px 12px 12px; }
  .result__hero { grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: center; }
  .result__orb-wrap { min-height: 128px; }
  .orb--winner { width: 104px; height: 104px; }
  .result__title { justify-content: center; font-size: 18px; }
  .result__name { font-size: 32px; }
  .result__tags, .result__meta { justify-content: center; }
  .result__quote { font-size: 12px; }
  .result__actions .btn { flex: 1 1 100%; min-height: 48px; }
  .result__actions { gap: 8px; }
  .standings { font-size: 12px; }
  .standings td, .standings thead th { padding: 5px 3px; }
  .standings td.rank { width: 28px; font-size: 11px; }
  .standings td.state { width: 50px; }
  .standings td.num { font-size: 10px; }
  .standings thead th { font-size: 12px; letter-spacing: 0.02em; }
  .fighter__en { display: none; }
  .fighter__wrap { gap: 6px; }
  .stamp { font-size: 12px; padding: 0 3px; border-width: 1px; }
  .meta-chip { font-size: 12px; }

  .toast { bottom: 62px; }

  .modal { padding: 10px; }
  .modal__panel { padding: 14px 12px 16px; max-height: 88vh; }
  .modal__title { font-size: 18px; }
}

@media (max-width: 420px) {
  .roster__actions { grid-template-columns: 1fr 1fr 1.15fr; }
  .roster__actions .btn { font-size: 12px; }
  .result__orb-wrap { min-height: 116px; }
  .orb--winner { width: 96px; height: 96px; }
  .result__name { font-size: 28px; }
  .lineup-strip__label { display: none; }
  .lineup-strip { gap: 0; }
}

/* ---------------- 8. 响应式：高度（紧凑柜体） ---------------- */
@media (max-height: 939px) {
  :root { --marquee-min: 70px; --console-min: 48px; }
  .brand-en { font-size: 24px; }
  .roster__grid { grid-auto-rows: minmax(204px, 1fr); }
  .ball-card { padding: 8px 9px 9px; gap: 6px; }
  .ball-card__top { min-height: 40px; gap: 7px; }
  .orb--card { width: 40px; height: 40px; }
  .ball-card__name { font-size: 14px; }
  .ball-card__bio { display: none; }
  .ball-card__stats { padding: 3px 0; }
  .skillline__desc { -webkit-line-clamp: 1; font-size: 10px; line-height: 1.35; }
  .skillline { grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
  .sigil { width: 22px; height: 22px; font-size: 12px; }
  .skillline { gap: 5px; }
  .ball-card__skills { gap: 4px; }
  .dossier__inner { padding: 11px; gap: 9px; }
  .dossier__head { padding-bottom: 9px; gap: 10px; }
  .orb--big { width: 120px; height: 120px; }
  .orb--big .orb__num { font-size: 28px; }
  .dossier__name { font-size: 24px; }
  .dossier__bio { font-size: 12px; }
  .roster h1 { font-size: 24px; }
  .roster__sub { margin-top: 3px; }
  .lineup-strip { min-height: 44px; padding: 4px 8px; }
  .slot { height: 32px; }
  .result__panel { padding: 16px 20px 14px; }
  .result__orb-wrap { min-height: 170px; }
  .orb--winner { width: 130px; height: 130px; }
  .standings td { padding: 5px 8px; }
}

@media (max-height: 700px) {
  :root { --marquee-min: 58px; --console-min: 42px; --screen-pad: 10px 14px 8px; }
  .brand-en { font-size: 20px; text-shadow: 2px 2px 0 #7A2A00; }
  .brand-han { letter-spacing: 0.42em; }
  .marquee { padding: 6px 14px; gap: 12px; }
  .marquee-btn { min-height: 30px; padding: 4px 8px; }
  .roster__head { align-items: center; }
  .roster__sub { display: none; }
  .roster__kicker { margin-bottom: 1px; }
  .roster h1 { font-size: 20px; }
  .roster__counter { padding: 4px 9px; }
  .counter__num { font-size: 18px; }
  .roster__grid { grid-auto-rows: minmax(150px, 1fr); }
  .ball-card { padding: 7px 8px 8px; gap: 5px; }
  .ball-card__top { min-height: 34px; }
  .orb--card { width: 34px; height: 34px; }
  .ball-card__name { font-size: 13px; }
  .ball-card__en { display: none; }
  .ball-card__tags { margin-top: 1px; }
  .tag { font-size: 12px; padding: 0 3px; line-height: 1.2; }
  .ball-card__stats { padding: 3px 0; }
  .stat__v { font-size: 10px; }
  .skillline__desc { display: none; }
  .skillline__kind { font-size: 12px; }
  .ball-card__skills { gap: 3px; }
  .skillline { grid-template-columns: 20px minmax(0, 1fr); gap: 5px; align-items: center; }
  .sigil { width: 20px; height: 20px; font-size: 12px; }
  .lineup-strip { min-height: 38px; padding: 3px 8px; }
  .slot { height: 28px; padding: 0 6px 0 4px; }
  .slot__orb { width: 18px; height: 18px; }
  .roster__actions .btn { min-height: 34px; padding: 5px 10px; }
  .roster__hint { font-size: 12px; }
  .timer__value { font-size: 18px; min-width: 70px; }
  .mode-chip { padding: 3px 7px; }
  .hp-board { padding: 4px 6px 6px; }
  .hp-row { min-height: 27px; }
  .battle__side { max-height: none; }
  .roster-mini { display: none; }
  .feed { min-height: 0; }
  .result__panel { padding: 12px 16px; }
  .result__orb-wrap { min-height: 150px; }
  .orb--winner { width: 112px; height: 112px; }
  .result__name { font-size: 34px; }
  .result__hero { grid-template-columns: 160px minmax(0, 1fr); }
  .result__meta { margin-top: 2px; }
  .standings td { padding: 4px 6px; }
}

/* 桌面指针悬停 */
@media (hover: hover) and (pointer: fine) {
  .ball-card:hover {
    border-color: var(--edge);
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 1px #05040A,
      inset 0 14px 30px -20px rgba(255, 244, 220, 0.22),
      0 5px 0 rgba(0, 0, 0, 0.55);
  }
  .ball-card.is-selected:hover { border-color: var(--orange-2); }
  .ball-card.is-locked:hover { opacity: 0.62; }
  .ball-card:active { transform: translateY(0); }
  .slot:hover { background: #1A1424; }
}

/* ---------------- 9. 移动端最终修正（必须放在高度查询之后） ---------------- */
@media (max-width: 720px) {
  .marquee__center { display: contents; }
  .marquee__right { display: none; }
  .marquee--roster .mode-chip:nth-child(n+2) { display: none; }
  .marquee--result .mode-chip:nth-child(n+2) { display: none; }
  .marquee { flex-wrap: wrap; gap: 8px 10px; }
  .marquee-btn { display: none; }
  .console { justify-content: flex-end; min-height: 48px; }
  .console__hint { display: none; }
  .console__actions { width: 100%; justify-content: space-between; }
  .console__actions .btn--deck { flex: 1 1 0; min-height: 44px; }
  .roster__grid { grid-auto-rows: max-content; }
  .ball-card { height: auto; padding: 10px 10px 48px; }
  .card-detail { right: 10px; bottom: 10px; }
  .battle-controls { width: 100%; }
  .btn--ctrl { min-height: 44px; }
  .speed-btn { min-height: 44px; }
  .overlay--pause .btn { min-height: 44px; }
  .battle__side { height: 96px; min-height: 96px; max-height: 96px; flex: 0 0 96px; }
  /* 手机血条板压成单行：dot / 名字 / 条 / 数字 / 单个状态点 */
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 5px; }
  .hp-row {
    grid-template-columns: 7px 40px minmax(20px, 1fr) 30px 18px;
    grid-template-areas: "dot name bar num status";
    column-gap: 4px;
    row-gap: 0;
    min-height: 30px;
    padding: 3px 5px;
  }
  .hp-dot { grid-area: dot; align-self: center; }
  .hp-name { grid-area: name; font-size: 12px; }
  .hp-bar { grid-area: bar; height: 8px; }
  .hp-num { grid-area: num; font-size: 10px; }
  .hp-status { grid-area: status; min-height: 14px; gap: 2px; }
  .hp-status .st { width: 14px; height: 14px; font-size: 12px; border-width: 1px; }
  .hp-status .st:nth-child(n+2) { display: none; }
  .lineup-strip { min-height: 54px; }
  .lineup-strip__slots { overflow: hidden; gap: 5px; }
  .slot { width: 34px; min-height: 44px; height: 44px; padding: 0; justify-content: center; flex: 0 0 auto; }
  .slot__name, .slot__x { display: none; }
  .slot.is-empty { width: 34px; }
  .result__hero { gap: 8px; padding-bottom: 10px; }
  .result__orb-wrap { min-height: 112px; }
  .orb--winner { width: 96px; height: 96px; }
  .orb--winner .orb__num { font-size: 26px; }
  .result__name { font-size: 36px; }
  .result__name .en { font-size: 10px; margin-top: 2px; }
  .result__title { font-size: 16px; gap: 8px; }
  .result__quote { margin: 0; font-size: 11px; }
  .result__meta .meta-chip:nth-child(3) { display: none; }
  .result__panel { padding: 12px 12px 10px; }
  .result__body { padding-top: 10px; }
  .standings td { padding: 4px 3px; }
  .result__actions { padding-top: 10px; gap: 8px; }
  .result__actions .btn { min-height: 44px; font-size: 13px; }
  .toast { bottom: 62px; }
  .mode-chip { padding: 3px 7px; }
}

/* 大屏：让卡片内容更饱满（避免 1080p 下卡片内部留白过多） */
@media (min-height: 940px) and (min-width: 1241px) {
  .ball-card {
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 13px 13px;
  }
  .ball-card__bio { margin-top: auto; -webkit-line-clamp: 2; }
  .ball-card__top { min-height: 54px; }
  .orb--card { width: 52px; height: 52px; }
  .ball-card__stats { padding: 7px 0 6px; }
  .skillline__desc { -webkit-line-clamp: 3; }
}

/* ================================================================
 * v1.1：赛事大厅 / 模式地图 / 排位赛程 / 排位结算 / 更新日志
 * ================================================================ */

/* ---------------- 11. 通用小组件 ---------------- */
.mode-chip .chip-en {
  font-family: var(--font-pixel-en);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 2px solid var(--line);
  background: rgba(10, 9, 16, 0.55);
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge i {
  width: 6px;
  height: 6px;
  background: var(--ba, var(--line));
  box-shadow: 0 0 6px var(--ba, transparent);
  flex: 0 0 auto;
}
.badge em {
  font-family: var(--font-pixel-en);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.badge--mode { border-color: rgba(255, 244, 220, 0.22); }
.badge--map { border-color: rgba(84, 230, 255, 0.26); }
.badge--plain { color: var(--muted); border-color: #2B2438; font-size: 12px; }
.badge--mech { border-color: rgba(255, 79, 109, 0.45); color: var(--danger); }
.badge--mech i { background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge--mech em { font-size: 8px; color: #8C7FA5; }
.badge--mech.is-off { border-color: #3A3150; color: #8C7FA5; }
.badge--mech.is-off i { background: #4A405D; box-shadow: none; }

.map-glyph {
  --ga: var(--ba, var(--cyan));
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  vertical-align: -2px;
}
.map-glyph i {
  position: absolute;
  inset: 1px;
  border: 2px solid var(--ga);
  box-shadow: 0 0 6px -2px var(--ga);
}
.map-glyph--circle i { border-radius: 50%; }
.map-glyph--xs { width: 12px; height: 12px; }
.map-glyph--xs i { inset: 0.5px; border-width: 1.5px; }

.led--log { background: var(--cyan); box-shadow: 0 0 6px rgba(84, 230, 255, 0.7); }

/* 选球页：模式 / 地图上下文条 */
.roster__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.7), rgba(10, 8, 16, 0.6));
  box-shadow: inset 0 0 0 1px #05040A;
  min-height: 44px;
}
.roster__badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.roster__badges .badge { padding: 3px 8px; }
.roster__context-actions { flex: 0 0 auto; }
.roster__context .btn { min-height: 34px; }

/* ---------------- 12. 赛事大厅 ---------------- */
.home {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}
.home__head { min-width: 0; }
.home__kicker {
  display: block;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--orange-2);
  margin-bottom: 4px;
}
.home__kicker .k-en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: 10px;
}
.home h1 {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 36px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-shadow: 3px 3px 0 #3A1608, 6px 6px 0 rgba(255, 107, 26, 0.18);
}
.home h1 .title-mark { color: var(--orange); }
.home__sub {
  margin: 7px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.home__body {
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 0.96fr;
  gap: 14px;
  min-height: 0;
}
.home__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 11px 13px 12px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.86), rgba(10, 8, 16, 0.9));
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.5);
}
.home__panel-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #2A2338;
  flex: 0 0 auto;
}
.home__idx {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  color: var(--orange);
  border: 1px solid #3A3150;
  padding: 1px 4px;
  line-height: 1.4;
}
.home__panel-title {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.home__panel-en {
  margin-left: auto;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #6E6088;
}
.mode-cards, .map-cards {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
}
.mode-card, .map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 13px 15px;
  border: 2px solid #2B2438;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(27, 23, 40, 0.94) 0%, rgba(16, 13, 24, 0.96) 100%);
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.45);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms linear, transform 90ms steps(2, end), box-shadow 120ms linear;
}
.mode-card::before, .map-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border-top: 3px solid #3A3150;
  border-left: 3px solid #3A3150;
  pointer-events: none;
}
.mode-card[aria-pressed="true"], .map-card[aria-pressed="true"] {
  border-color: var(--ma, var(--orange));
  background:
    linear-gradient(180deg, rgba(255, 107, 26, 0.1) 0%, rgba(24, 17, 32, 0.96) 46%, rgba(16, 13, 24, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px #05040A,
    inset 0 0 40px rgba(255, 255, 255, 0.04),
    0 0 0 1px var(--ma, var(--orange)),
    0 0 26px -10px var(--ma, var(--orange)),
    0 3px 0 rgba(0, 0, 0, 0.45);
}
.mode-card[aria-pressed="true"]::before, .map-card[aria-pressed="true"]::before {
  border-color: var(--ma, var(--orange));
}
.mode-card__pick, .map-card__pick {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 1px 6px;
  border: 1px solid #3A3150;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6E6088;
  background: rgba(10, 9, 16, 0.6);
}
.mode-card__ghost {
  position: absolute;
  right: 14px;
  bottom: 4px;
  font-family: var(--font-pixel-en);
  font-size: 48px;
  line-height: 1;
  color: rgba(255, 244, 220, 0.055);
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}
.mode-card[aria-pressed="true"] .mode-card__ghost { color: rgba(255, 107, 26, 0.10); }
.mode-card[aria-pressed="true"] .mode-card__pick,
.map-card[aria-pressed="true"] .map-card__pick {
  color: #140800;
  background: var(--ma, var(--orange));
  border-color: var(--ma2, var(--orange-2));
  box-shadow: 0 0 0 1px #05040A;
}
.mode-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 46px;
}
.mode-glyph {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}
.mode-glyph--rumble i {
  position: absolute;
  border-radius: 50%;
  background: var(--ma);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 0 1px #05040A, 0 0 14px -4px var(--ma);
}
.mode-glyph--rumble i:nth-child(1) { width: 26px; height: 26px; left: 0; top: 14px; }
.mode-glyph--rumble i:nth-child(2) { width: 18px; height: 18px; left: 20px; top: 2px; background: var(--ma2); }
.mode-glyph--rumble i:nth-child(3) { width: 14px; height: 14px; left: 30px; top: 30px; background: var(--ma2); opacity: 0.85; }
.mode-glyph--ranked i:first-child {
  position: absolute;
  left: 10px;
  top: 2px;
  width: 30px;
  height: 24px;
  border: 3px solid var(--ma);
  border-bottom: 0;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 0 14px -5px var(--ma);
}
.mode-glyph--ranked i:nth-child(2) {
  position: absolute;
  left: 23px;
  top: 26px;
  width: 4px;
  height: 12px;
  background: var(--ma);
}
.mode-glyph--ranked b {
  position: absolute;
  left: 13px;
  bottom: 4px;
  width: 24px;
  height: 5px;
  background: var(--ma2);
  box-shadow: 0 0 10px var(--ma);
}
.mode-card__ident, .map-card__ident { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mode-card__name, .map-card__name {
  font-family: var(--font-pixel-han);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-shadow: 2px 2px 0 #2A1608;
}
.mode-card__en, .map-card__en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.mode-card__tagline, .map-card__tagline {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--orange-2);
  letter-spacing: 0.05em;
}
.mode-card__desc, .map-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: #A99CBD;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mode-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mode-card__tags .tag { border-color: #3A3150; }
.mode-card__pool { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.mode-card__pool i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, var(--c2, #FFC24B), var(--c, #FF6B1A) 62%, #120D18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 5px -1px var(--c, #FF6B1A);
}
.map-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-areas:
    "preview ident"
    "preview tagline"
    "preview desc"
    "feature feature";
  gap: 4px 12px;
  align-items: center;
  padding-right: 52px;
}
.map-preview {
  grid-area: preview;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  align-self: center;
  border: 1px solid #2A2338;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 13px),
    #0A0812;
  overflow: hidden;
}
.map-preview i, .map-preview b { position: absolute; display: block; }
.map-preview--square i {
  left: 16%;
  top: 12%;
  width: 68%;
  height: 76%;
  border: 2px solid var(--ma);
  box-shadow: 0 0 20px -6px var(--ma), inset 0 0 26px rgba(0, 0, 0, 0.55);
}
.map-preview--square b {
  left: 16%;
  top: 50%;
  width: 68%;
  border-top: 1px dashed rgba(255, 244, 220, 0.16);
}
.map-preview--circle i {
  left: 13%;
  top: 13%;
  width: 74%;
  height: 74%;
  border-radius: 50%;
  border: 2px solid var(--ma);
  box-shadow: 0 0 20px -6px var(--ma), inset 0 0 26px rgba(0, 0, 0, 0.55);
}
.map-preview--circle b {
  left: 30%;
  top: 30%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 244, 220, 0.22);
}
.map-card__ident { grid-area: ident; }
.map-card__tagline { grid-area: tagline; }
.map-card__desc { grid-area: desc; }
.map-card__feature {
  grid-area: feature;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--ma2, var(--cyan));
  letter-spacing: 0.06em;
  border-top: 1px dashed #2C2540;
  padding-top: 6px;
}
.map-card__feature i {
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 机制卡 */
.mech-cards {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
}
.mech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 13px 15px;
  border: 2px solid #2B2438;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(27, 23, 40, 0.94) 0%, rgba(16, 13, 24, 0.96) 100%);
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.45);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms linear, transform 90ms steps(2, end), box-shadow 120ms linear;
}
.mech-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border-top: 3px solid #3A3150;
  border-left: 3px solid #3A3150;
  pointer-events: none;
}
.mech-card--toggle[aria-pressed="true"] {
  border-color: var(--ma, var(--danger));
  background:
    linear-gradient(180deg, rgba(255, 79, 109, 0.10) 0%, rgba(24, 17, 32, 0.96) 48%, rgba(16, 13, 24, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px #05040A,
    inset 0 0 40px rgba(255, 255, 255, 0.04),
    0 0 0 1px var(--ma, var(--danger)),
    0 0 26px -10px var(--ma, var(--danger)),
    0 3px 0 rgba(0, 0, 0, 0.45);
}
.mech-card--toggle[aria-pressed="true"]::before { border-color: var(--ma, var(--danger)); }
.mech-card__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mech-card__ident { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mech-card__name {
  font-family: var(--font-pixel-han);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-shadow: 2px 2px 0 #2A1608;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mech-card__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.1em; color: var(--muted); }
.mech-card__tagline { font-family: var(--font-pixel-han); font-size: 12px; color: var(--ma, var(--danger)); letter-spacing: 0.04em; }
.mech-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: #A99CBD;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mech-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.mech-state {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 1px 8px;
  border: 1px solid currentColor;
  color: var(--muted);
}
.mech-card--toggle[aria-pressed="true"] .mech-state { color: var(--ma, var(--danger)); }
.mech-chip {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #6E6088;
  border: 1px solid #2B2438;
  padding: 1px 5px;
}
.mech-switch { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.mech-switch__track {
  position: relative;
  width: 46px;
  height: 24px;
  border: 2px solid #4A405D;
  background: #0A0810;
  box-shadow: inset 0 0 0 1px #000;
  transition: border-color 120ms linear, background 120ms linear, box-shadow 120ms linear;
}
.mech-switch__track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #5E5375;
  transition: transform 120ms steps(3, end), background 120ms linear, box-shadow 120ms linear;
}
.mech-card--toggle[aria-pressed="true"] .mech-switch__track {
  border-color: var(--ma, var(--danger));
  background: rgba(255, 79, 109, 0.16);
  box-shadow: 0 0 12px -4px var(--ma, var(--danger)), inset 0 0 0 1px #000;
}
.mech-card--toggle[aria-pressed="true"] .mech-switch__track i {
  transform: translateX(21px);
  background: var(--ma, var(--danger));
  box-shadow: 0 0 8px var(--ma, var(--danger));
}
.mech-switch__labels { display: flex; flex-direction: column; gap: 1px; font-family: var(--font-pixel-en); font-size: 8px; line-height: 1.1; letter-spacing: 0.04em; color: #5E5375; }
.mech-switch__labels b { font-weight: 400; }
.mech-switch__labels em { font-style: normal; }
.mech-card--toggle[aria-pressed="true"] .mech-switch__labels b { color: var(--ma, var(--danger)); }
.mech-card--toggle[aria-pressed="false"] .mech-switch__labels em { color: var(--muted); }
.mech-icon {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid var(--ma, var(--danger));
  background: rgba(10, 9, 16, 0.6);
  box-shadow: inset 0 0 0 1px #05040A;
}
.mech-icon--skull::before,
.mech-icon--skull::after { content: ""; position: absolute; top: 11px; width: 8px; height: 8px; background: var(--ma, var(--danger)); }
.mech-icon--skull::before { left: 9px; }
.mech-icon--skull::after { right: 9px; }
.mech-icon--skull i { position: absolute; left: 13px; bottom: 7px; width: 12px; height: 4px; background: var(--ma, var(--danger)); opacity: 0.85; }
.mech-icon--lock { border-color: #6E6088; }
.mech-icon--lock::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  width: 14px;
  height: 11px;
  border: 2px solid #6E6088;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}
.mech-icon--lock::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 22px;
  height: 14px;
  border: 2px solid #6E6088;
  background: rgba(10, 8, 16, 0.85);
}
.mech-card--locked {
  border-style: dashed;
  border-color: #3A3150;
  cursor: not-allowed;
  opacity: 0.62;
}
.mech-card--locked .mech-card__name { color: #B7AACB; }
.mech-card--locked .mech-card__tagline { color: #8C7FA5; }
.mech-card--locked:disabled { cursor: not-allowed; }
.mech-card__lock {
  margin-left: auto;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #8C7FA5;
  border: 1px solid #4A405D;
  padding: 2px 5px;
}

.home__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 107, 26, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(21, 18, 32, 0.8), rgba(10, 8, 16, 0.85));
  box-shadow: inset 0 0 0 1px #05040A;
}
.home__summary { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.home__summary-k { font-family: var(--font-pixel-han); font-size: 12px; letter-spacing: 0.22em; color: #8C7FA5; }
.home__summary-name {
  font-family: var(--font-pixel-han);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-shadow: 2px 2px 0 #2A1608;
}
.home__summary-en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.14em; color: var(--muted); }
.home__summary-mech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--good);
}
.home__summary-mech i {
  width: 6px;
  height: 6px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.home__summary-mech.is-off { color: #8C7FA5; }
.home__summary-mech.is-off i { background: #4A405D; box-shadow: none; }
.home__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.home__actions .btn { min-height: 46px; }
.home__actions .btn--primary {
  min-height: 52px;
  padding: 10px 24px;
  font-size: 14px;
  letter-spacing: 0.16em;
}
.home[data-mode="ranked"] .home__actions .btn--primary {
  --btn-bg: linear-gradient(180deg, #D9A8FF 0%, var(--violet) 55%, #6E2FB5 100%);
  --btn-bd: #E6C8FF;
}

@media (hover: hover) and (pointer: fine) {
  .mode-card:hover, .map-card:hover { border-color: var(--ma, var(--edge)); transform: translateY(-2px); }
  .mode-card[aria-pressed="true"]:hover, .map-card[aria-pressed="true"]:hover { border-color: var(--ma2, var(--orange-2)); }
}

/* ---------------- 13. 排位赛程 / Bracket ---------------- */
.tournament {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.tour__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.tour__kicker {
  display: block;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--violet-2);
  margin-bottom: 3px;
}
.tour__kicker .k-en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 10px;
}
.tour__title h1,
.tour__title h1#tour-title {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 2px 2px 0 #2A1608, 4px 4px 0 rgba(176, 96, 255, 0.20);
}
.tour__title h1 .title-mark { color: var(--violet); }
.tour__sub {
  margin: 5px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tour__sub b { color: var(--cyan); font-weight: 400; }
.tour__progress {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 300px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  background: rgba(10, 9, 16, 0.55);
  box-shadow: inset 0 0 0 1px #05040A;
}
.tour__count { font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.tour__count b { font-family: var(--font-pixel-en); font-size: 14px; color: var(--orange-2); margin: 0 3px; }
.tour__count em { font-style: normal; font-family: var(--font-pixel-en); font-size: 10px; color: #8C7FA5; }
.tour__bar { display: flex; gap: 3px; }
.tour__bar i {
  width: 18px;
  height: 8px;
  background: #1D1829;
  border: 1px solid #2B2438;
}
.tour__bar i.is-on {
  background: var(--orange);
  border-color: var(--orange-2);
  box-shadow: 0 0 8px rgba(255, 107, 26, 0.5);
}
.tour__now { font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.tour__now b { color: var(--violet-2); font-weight: 400; letter-spacing: 0.08em; }
.tour__now em { font-style: normal; color: #6E6088; margin-left: 8px; }
.tour__body { min-height: 0; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #3A3150 transparent; }
.tour__body::-webkit-scrollbar { width: 8px; }
.tour__body::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }

.bracket {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr 0.85fr;
  gap: 16px;
  min-height: 100%;
  padding: 2px 2px 8px;
}
.bracket__col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bracket__col:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 34px;
  bottom: 6px;
  width: 1px;
  background: repeating-linear-gradient(180deg, #4A405D 0 4px, transparent 4px 9px);
  opacity: 0.85;
}
.bracket__head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid #2A2338;
  flex: 0 0 auto;
}
.bracket__idx { font-family: var(--font-pixel-en); font-size: 8px; color: var(--violet); border: 1px solid #3A3150; padding: 1px 3px; }
.bracket__name { font-family: var(--font-pixel-han); font-size: 12px; color: var(--cream); letter-spacing: 0.14em; }
.bracket__en { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; letter-spacing: 0.06em; }
.bracket__count { margin-left: auto; font-style: normal; font-family: var(--font-pixel-han); font-size: 12px; color: #8C7FA5; }
.bracket__matches {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 8px;
  min-height: 0;
}
.match {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 9px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(25, 20, 38, 0.94), rgba(14, 11, 21, 0.97));
  box-shadow: inset 0 0 0 1px #05040A;
  min-width: 0;
}
.bracket__col:not(:first-child) .match::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 9px;
  height: 1px;
  background: #4A405D;
}
.match--ready {
  border-color: rgba(255, 107, 26, 0.72);
  box-shadow: inset 0 0 0 1px #05040A, 0 0 22px -9px rgba(255, 107, 26, 0.65);
}
.match--locked { opacity: 0.66; }
.match--done { border-color: #3A3150; }
.match__head { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.match__idx {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  color: var(--orange-2);
  border: 1px solid #3A3150;
  padding: 1px 3px;
  flex: 0 0 auto;
}
.match__label {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: #B7AACB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.match__status { margin-left: auto; font-family: var(--font-pixel-han); font-size: 12px; color: #7E7195; white-space: nowrap; flex: 0 0 auto; }
.match--ready .match__status { color: var(--orange-2); }
.match--done .match__status { color: var(--good); }
.match__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.match__vs { display: block; text-align: center; font-family: var(--font-pixel-en); font-size: 8px; color: #5E5375; line-height: 1; }
.mfighter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  background: rgba(10, 8, 16, 0.55);
  border: 1px solid transparent;
  min-width: 0;
}
.mfighter__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2, #FFC24B), var(--c, #FF6B1A) 60%, var(--cd, #551D00));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 6px -1px var(--c, #FF6B1A);
  flex: 0 0 auto;
}
.mfighter__dot.is-tbd { background: #1D1829; border: 1px dashed #4A405D; box-shadow: none; }
.mfighter__name {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mfighter__en { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; letter-spacing: 0.04em; overflow: hidden; }
.mfighter__tag {
  margin-left: auto;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  padding: 0 3px;
  border: 1px solid currentColor;
  line-height: 1.35;
  flex: 0 0 auto;
}
.mfighter__tag--win { color: var(--gold); }
.mfighter__tag--lose { color: var(--danger); }
.mfighter.is-winner { background: rgba(255, 194, 75, 0.1); box-shadow: inset 2px 0 0 var(--gold); border-color: rgba(255, 194, 75, 0.35); }
.mfighter.is-winner .mfighter__name { color: var(--gold); }
.mfighter.is-loser { opacity: 0.55; }
.match__foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 22px; }
.match__enter { width: 100%; min-height: 34px; font-size: 12px; letter-spacing: 0.1em; }
.match__wait { font-family: var(--font-pixel-han); font-size: 12px; color: #6E6088; letter-spacing: 0.06em; }
.match__score, .match__time { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-pixel-han); font-size: 12px; color: #8C7FA5; }
.match__score b, .match__time b { font-weight: 400; color: #6E6088; }
.match__score em, .match__time em { font-family: var(--font-pixel-en); font-style: normal; font-size: 8px; color: var(--cream); }

/* 冠军领奖台 */
.champion { display: flex; flex-direction: column; gap: 12px; min-height: 100%; flex: 1 1 auto; padding-bottom: 6px; }
.champion__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
}
.champion__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px 18px;
  border: 2px solid var(--gold);
  background:
    radial-gradient(520px 200px at 50% 0%, rgba(255, 194, 75, 0.13), transparent 68%),
    linear-gradient(180deg, rgba(27, 23, 40, 0.96), rgba(13, 10, 20, 0.97));
  box-shadow: inset 0 0 0 1px #05040A, 0 0 46px -14px rgba(255, 194, 75, 0.55);
}
.champion__kicker {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.champion__kicker .k-en { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; letter-spacing: 0.14em; margin-left: 10px; }
.champion__stage { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.champion__crown {
  padding: 2px 10px;
  background: var(--gold);
  color: #211301;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.16em;
  box-shadow: 0 2px 0 #05040A;
}
.champion__title {
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-pixel-han);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.champion__name {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 3px 3px 0 #4A3200, 6px 6px 0 rgba(255, 194, 75, 0.22), 0 0 34px rgba(255, 194, 75, 0.3);
}
.champion__en { font-family: var(--font-pixel-en); font-size: 12px; letter-spacing: 0.18em; color: var(--orange-2); margin-top: 4px; }
.champion__meta { margin: 0; font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.orb--champion {
  width: 128px;
  height: 128px;
  box-shadow:
    inset -7px -9px 0 rgba(0, 0, 0, 0.32),
    inset 4px 5px 0 rgba(255, 255, 255, 0.16),
    0 0 0 4px #05040A,
    0 0 0 7px var(--gold),
    0 0 40px -4px var(--gold);
}
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; width: min(720px, 100%); }
.podium__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 96px;
  padding: 9px 8px;
  border: 2px solid #3A3150;
  background: linear-gradient(180deg, rgba(27, 23, 40, 0.92), rgba(12, 10, 18, 0.96));
  box-shadow: inset 0 0 0 1px #05040A;
}
.podium__step--center {
  min-height: 122px;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px #05040A, 0 0 28px -10px rgba(255, 194, 75, 0.6);
  background: linear-gradient(180deg, rgba(255, 194, 75, 0.12), rgba(20, 15, 26, 0.96));
}
.podium__step.is-empty { opacity: 0.5; }
.podium__place { font-family: var(--font-pixel-en); font-size: 14px; color: var(--muted); }
.podium__step--center .podium__place { color: var(--gold); }
.podium__orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2, #FFC24B), var(--c, #FF6B1A) 60%, var(--cd, #551D00));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 12px -2px var(--c, #FF6B1A);
}
.podium__step--center .podium__orb { width: 46px; height: 46px; }
.podium__name { font-family: var(--font-pixel-han); font-size: 12px; color: var(--cream); white-space: nowrap; }
.podium__note { font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); }
.champion__body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.75), rgba(10, 8, 16, 0.85));
  box-shadow: inset 0 0 0 1px #05040A;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.champion__body::-webkit-scrollbar { width: 8px; }
.champion__body::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.champion__rank-head { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 6px; flex: 0 0 auto; }
.champion__rank-title { font-family: var(--font-pixel-han); font-size: 12px; letter-spacing: 0.22em; color: var(--cream); }
.standings--ranked { table-layout: fixed; }
.standings--ranked th:nth-child(1) { width: 62px; }
.standings--ranked th:nth-child(2) { width: 42%; }
.standings--ranked th:nth-child(3) { width: 110px; }
.standings--ranked th:nth-child(4) { width: auto; }
.standings--ranked td.note { font-family: var(--font-body); font-size: 12px; color: #9C90B2; white-space: normal; }
.standings--ranked td.record { font-family: var(--font-pixel-han); font-size: 12px; color: #B7AACB; white-space: nowrap; }
.standings--ranked tr.is-champion { background: linear-gradient(90deg, rgba(255, 194, 75, 0.14), transparent 70%); box-shadow: inset 3px 0 0 var(--gold); }
.standings--ranked tr.is-champion td.rank { color: var(--gold); }
.standings--ranked td.rank { width: 56px; }
.champion__path { padding-top: 10px; margin-top: 8px; border-top: 1px dashed #2C2540; }
.path-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.path-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid #241D33;
  background: rgba(10, 8, 16, 0.45);
  font-family: var(--font-pixel-han);
  font-size: 12px;
}
.path__round { color: #8C7FA5; letter-spacing: 0.04em; white-space: nowrap; }
.path__win { color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path__arrow { color: var(--good); border: 1px solid rgba(124, 255, 158, 0.4); padding: 0 3px; font-size: 12px; line-height: 1.3; }
.path__lose { color: #8C7FA5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path__score { font-family: var(--font-pixel-en); font-size: 8px; color: var(--cream); white-space: nowrap; }
.champion__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.champion__actions .btn { flex: 1 1 200px; min-height: 46px; }

/* ---------------- 14. 排位赛单场结算 ---------------- */
.result--ranked .result__panel--ranked {
  width: min(880px, 100%);
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px 22px 16px;
}
.rankedresult__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rankedresult__round {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--violet-2);
  border-right: 1px solid #2A2338;
  padding-right: 10px;
}
.rankedresult__hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A2338;
}
.rankedresult__orb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  min-height: 176px;
}
.orb--duel { width: 132px; height: 132px; }
.advance-stamp {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  padding: 2px 14px 3px;
  border: 3px solid currentColor;
  background: rgba(8, 6, 14, 0.88);
  font-family: var(--font-pixel-han);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.24em;
  padding-left: calc(14px + 0.24em);
  z-index: 3;
  box-shadow: 0 0 0 2px #05040A, 0 0 26px -6px currentColor;
}
.advance-stamp--win { color: var(--good); }
.advance-stamp--champion { color: var(--gold); }
.advance-stamp--bronze { color: var(--orange-2); }
.advance-stamp--draw { color: var(--gold); }
.rankedresult__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rankedresult__advance { margin: 0; font-family: var(--font-pixel-han); font-size: 12px; color: #C9BEDC; letter-spacing: 0.05em; }
.duel-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.duel-fighter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(25, 20, 38, 0.9), rgba(13, 10, 20, 0.95));
  min-width: 0;
}
.duel-fighter.is-winner { border-color: rgba(255, 194, 75, 0.65); box-shadow: inset 0 0 0 1px #05040A, inset 3px 0 0 var(--gold); }
.duel-fighter.is-loser { opacity: 0.66; }
.duel-fighter__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.duel-fighter__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2, #FFC24B), var(--c, #FF6B1A) 60%, var(--cd, #551D00));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 8px -1px var(--c, #FF6B1A);
  flex: 0 0 auto;
}
.duel-fighter__ident { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.duel-fighter__name { font-family: var(--font-pixel-han); font-size: 16px; color: var(--cream); letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel-fighter__en { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; letter-spacing: 0.06em; }
.duel-fighter__tag { margin-left: auto; min-width: 24px; text-align: center; font-family: var(--font-pixel-han); font-size: 12px; line-height: 1.6; border: 2px solid currentColor; padding: 0 4px; flex: 0 0 auto; }
.duel-fighter__tag--win { color: var(--gold); }
.duel-fighter__tag--lose { color: var(--danger); }
.duel-fighter__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.duel-fighter__stats span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.duel-fighter__stats b { font-family: var(--font-pixel-han); font-weight: 400; font-size: 12px; color: #8C7FA5; letter-spacing: 0.02em; }
.duel-fighter__stats em { font-family: var(--font-pixel-en); font-style: normal; font-size: 10px; color: var(--cream); }
.duel-fighter__bar { height: 6px; background: #0A0810; box-shadow: inset 0 0 0 1px #241D33; overflow: hidden; }
.duel-fighter__bar i { display: block; height: 100%; background: linear-gradient(90deg, #D94A00, var(--gold)); }
.duel-fighter.is-winner .duel-fighter__bar i { background: linear-gradient(90deg, #2C7A3C, var(--good)); }
.duel-fighter__status { font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.duel-vs { align-self: center; font-family: var(--font-pixel-en); font-size: 12px; color: #5E5375; }
.result__actions--ranked .btn { flex: 1 1 220px; min-height: 48px; }
body[data-screen="result"] .toast { top: auto; bottom: 4px; }

/* ---------------- 15. 更新日志 ---------------- */
.modal__panel--changelog {
  width: min(820px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  padding: 15px 20px 16px;
}
.modal__panel--changelog .modal__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.changelog { display: flex; flex-direction: column; gap: 9px; min-height: 0; flex: 1 1 auto; }
.clog__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 194, 75, 0.07) 0 6px, transparent 6px 13px),
    linear-gradient(180deg, #1B1728, #120F1A);
  box-shadow: inset 0 0 0 1px #05040A;
}
.clog__id { display: flex; align-items: baseline; gap: 8px; }
.clog__tag { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.16em; color: #8C7FA5; }
.clog__version {
  font-family: var(--font-pixel-en);
  font-size: 18px;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 2px 2px 0 #3A2A00, 0 0 18px rgba(255, 194, 75, 0.3);
}
.clog__source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.clog__source i { width: 5px; height: 5px; background: currentColor; box-shadow: 0 0 6px currentColor; }
.clog__source--loading { color: var(--muted); }
.clog__source--loading i { animation: blink 1s steps(2, end) infinite; }
.clog__source--live { color: var(--good); }
.clog__source--embedded { color: var(--cyan); }
.clog__source--file { color: var(--orange-2); }
.clog__source--error { color: var(--danger); }
.clog__tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.clog__tools .btn { min-height: 34px; }
.clog__note { font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: #8C7FA5; padding: 0 2px; }
.clog__loading { display: flex; align-items: center; gap: 9px; padding: 26px 8px; font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); }
.clog__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #3A3150;
  border-top-color: var(--orange);
  animation: spin 0.8s steps(8, end) infinite;
}
.clog__error {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 2px solid rgba(255, 79, 109, 0.5);
  background: rgba(255, 79, 109, 0.06);
}
.clog__error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-family: var(--font-pixel-en);
  font-size: 12px;
}
.clog__error b { font-family: var(--font-pixel-han); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; color: var(--danger); }
.clog__error p { margin: 4px 0 0; font-family: var(--font-body); font-size: 12px; line-height: 1.65; color: #C2B6D6; }
.clog .md { min-height: 0; overflow-y: auto; padding: 2px 4px 10px; scrollbar-width: thin; scrollbar-color: #3A3150 transparent; }
.clog .md::-webkit-scrollbar { width: 8px; }
.clog .md::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.md { font-family: var(--font-body); }
.md-doc-title { font-family: var(--font-pixel-han); font-size: 12px; letter-spacing: 0.22em; color: #8C7FA5; padding: 2px 0 0; }
.md-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 2px 7px;
  margin-top: 8px;
  border-bottom: 1px solid #2A2338;
  flex-wrap: wrap;
}
.md-version__tag { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.16em; color: #6E6088; }
.md-version__v {
  font-family: var(--font-pixel-en);
  font-size: 20px;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 2px 2px 0 #3A2A00, 0 0 20px rgba(255, 194, 75, 0.28);
}
.md-version__date { font-family: var(--font-pixel-en); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.md-cat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 6px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
}
.md-cat i { width: 10px; height: 10px; border: 2px solid currentColor; transform: rotate(45deg); flex: 0 0 auto; }
.md-cat--add { color: var(--good); }
.md-cat--opt { color: var(--cyan); }
.md-cat--fix { color: var(--orange-2); }
.md-cat--other { color: var(--violet-2); }
.md-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.md-list li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #C2B6D6;
}
.md-list li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 2px; background: var(--orange); }
.md-list strong { color: var(--cream); font-weight: 400; }
.md-list a, .md-p a, .md-quote a { color: var(--orange-2); text-decoration: underline; }
.md-list code, .md-p code, .md-quote code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  color: var(--cyan);
  background: rgba(84, 230, 255, 0.07);
  border: 1px solid rgba(84, 230, 255, 0.2);
  padding: 0 3px;
}
.md-p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.75; color: #C2B6D6; }
.md-quote { margin: 8px 0; padding: 7px 10px; border-left: 2px solid var(--violet); background: rgba(176, 96, 255, 0.06); }
.md-quote p { margin: 0 0 3px; font-size: 12px; line-height: 1.65; color: #A99CBD; }
.md-quote p:last-child { margin-bottom: 0; }
.md-hr { border: 0; border-top: 1px dashed #3A3150; margin: 13px 0; }

/* ---------------- 16. 战斗页 v1.1 小组件 ---------------- */
.battle-meta { align-items: flex-start; gap: 3px; }
.battle-meta__badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.battle-meta__line { font-family: var(--font-pixel-han); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.battle-meta__line b { font-weight: 400; color: var(--cream); }
.battle-meta .badge { padding: 2px 6px; border-width: 1px; }
.battle-meta .badge em { font-size: 8px; }
.hp-grid--duel { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------------- 17. v1.1 响应式 ---------------- */
@media (max-width: 1240px) {
  .bracket { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .bracket__col:not(:first-child)::before { display: none; }
  .bracket__col:not(:first-child) .match::before { display: none; }
  .bracket__matches { justify-content: flex-start; }
  .bracket__col--bronze .bracket__matches,
  .bracket__col--final .bracket__matches { justify-content: flex-start; }
  .home__body { gap: 10px; }
  .map-card { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .screen--home { display: flex; overflow: hidden; }
  .home { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .home__head { flex: 0 0 auto; }
  .home__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
  .home__foot { flex: 0 0 auto; margin-top: 2px; }
  .home__panel { flex: 1 1 0; min-height: 0; }
  .mode-cards, .map-cards, .mech-cards { flex: 1 1 auto; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .mech-card { min-height: 0; }
  .mech-card__desc { -webkit-line-clamp: 2; }
  .mode-card, .map-card { min-height: 0; }
  .mode-card__name, .map-card__name { font-size: 24px; }
  .marquee--tournament .mode-chip:nth-child(n+2) { display: none; }
  .tour__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tour__progress { width: 100%; align-items: flex-start; min-width: 0; }
  .champion__grid { grid-template-columns: minmax(0, 1fr); }
  .champion__hero { padding: 14px; }
  .champion__body { max-height: none; }
  .rankedresult__hero { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
  .rankedresult__orb-wrap { min-width: 160px; min-height: 164px; }
  .orb--duel { width: 116px; height: 116px; }
  .champion__name { font-size: 42px; }
}

@media (max-width: 960px) {
  .home h1 { font-size: 30px; }
  .home__kicker { letter-spacing: 0.2em; }
}

@media (max-width: 720px) {
  .screen--home { padding: 10px; }
  .home { gap: 10px; }
  .home h1 { font-size: 24px; letter-spacing: 0.06em; text-shadow: 2px 2px 0 #3A1608; }
  .home__kicker { font-size: 12px; letter-spacing: 0.14em; }
  .home__kicker .k-en { display: none; }
  .home__sub { font-size: 12px; margin-top: 5px; }
  .home__body { gap: 8px; }
  .home__panel { padding: 9px 10px 10px; gap: 8px; }
  .mode-cards, .map-cards { grid-template-columns: 1fr; grid-template-rows: none; }
  .mode-card, .map-card { padding: 10px 12px; gap: 7px; }
  .mode-card__top { padding-right: 44px; gap: 10px; }
  .mode-glyph { width: 42px; height: 42px; }
  .mode-glyph--rumble i:nth-child(1) { width: 22px; height: 22px; top: 12px; }
  .mode-glyph--rumble i:nth-child(2) { width: 15px; height: 15px; left: 17px; }
  .mode-glyph--rumble i:nth-child(3) { width: 12px; height: 12px; left: 26px; top: 26px; }
  .mode-card__name, .map-card__name { font-size: 24px; }
  .mode-card__desc, .map-card__desc { -webkit-line-clamp: 2; }
  .map-card { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "preview ident" "preview tagline" "desc desc" "feature feature"; padding-right: 44px; gap: 5px 10px; }
  .home__foot { flex-direction: column; align-items: stretch; gap: 9px; padding: 10px 12px; }
  .home__summary-name { font-size: 24px; }
  .home__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
  .home__actions .btn { min-height: 48px; }
  .home__actions .btn--primary { min-height: 48px; padding: 8px 10px; font-size: 12px; letter-spacing: 0.08em; }

  /* 选球上下文条 */
  .roster__context { padding: 4px 8px; min-height: 42px; }
  .roster__badges .badge { padding: 2px 6px; font-size: 12px; }
  .roster__badges .badge em { display: none; }
  .roster__context .btn { min-height: 36px; padding: 4px 8px; font-size: 12px; }

  /* 赛程 */
  .screen--tournament { padding: 10px; }
  .tour__title h1 { font-size: 24px; }
  .tour__kicker { letter-spacing: 0.14em; }
  .tour__kicker .k-en { display: none; }
  .tour__sub { font-size: 12px; }
  .tour__progress { padding: 6px 9px; }
  .tour__bar i { width: 14px; height: 7px; }
  .bracket { grid-template-columns: 1fr; gap: 14px; padding-bottom: 10px; }
  .bracket__col { gap: 8px; }
  .bracket__head { padding-bottom: 5px; }
  .bracket__matches { gap: 8px; }
  .match { padding: 7px 8px; }
  .match__enter { min-height: 40px; }
  .champion { gap: 12px; }
  .champion__hero { padding: 12px 10px 14px; }
  .champion__name { font-size: 36px; }
  .champion__en { font-size: 10px; }
  .champion__meta { font-size: 12px; text-align: center; line-height: 1.6; }
  .orb--champion { width: 96px; height: 96px; }
  .podium { grid-template-columns: 1fr 1.1fr 1fr; gap: 6px; }
  .podium__step { min-height: 84px; padding: 7px 5px; }
  .podium__step--center { min-height: 104px; }
  .podium__step--center .podium__orb { width: 38px; height: 38px; }
  .podium__name { font-size: 12px; }
  .champion__actions .btn { flex: 1 1 100%; min-height: 46px; }
  .standings--ranked td { padding: 5px 4px; }
  .standings--ranked td.note { font-size: 12px; }

  /* 排位结算 */
  .result--ranked .result__panel--ranked { padding: 12px 12px 12px; gap: 10px; }
  .rankedresult__hero { grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: center; }
  .rankedresult__orb-wrap { min-width: 0; min-height: 150px; }
  .orb--duel { width: 108px; height: 108px; }
  .advance-stamp { font-size: 24px; top: -2px; }
  .rankedresult__text { align-items: center; }
  .rankedresult__text .result__title { justify-content: center; }
  .rankedresult__text .result__meta { justify-content: center; }
  .duel-board { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .duel-vs { display: none; }
  .duel-fighter__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .result__actions--ranked .btn { flex: 1 1 100%; min-height: 46px; }
  .rankedresult__round { border-right: 0; padding-right: 0; }

  /* 更新日志 */
  .modal__panel--changelog { width: 100%; max-height: 92vh; padding: 12px 12px 14px; }
  .clog__bar { gap: 7px; padding: 6px 8px; }
  .clog__version { font-size: 16px; }
  .clog__tools { margin-left: 0; width: 100%; }
  .clog__tools .btn { flex: 1 1 0; min-height: 40px; }
  .clog__note { font-size: 12px; }
  .md-version__v { font-size: 18px; }
  .md-list li, .md-p { font-size: 12px; }
  .md-cat { margin: 11px 0 5px; }

  /* 战斗页 meta */
  .battle-meta { display: none; }
  .hp-grid--duel { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* marquee 压缩：手机只保留 1 个模式 chip，地图/种子/进度进正文 */
  .marquee { row-gap: 6px; }
  .marquee .badge--map { display: none; }
  .marquee--home .mode-chip:nth-child(n+2) { display: none; }
  .marquee--roster .mode-chip:nth-child(n+2) { display: none; }
  .marquee--result .mode-chip:nth-child(n+2) { display: none; }
  .marquee--tournament .mode-chip,
  .marquee--tournament .mode-chip .digits,
  .marquee--tournament .badge { display: none; }
  .marquee--tournament .battle-controls { width: auto; margin-left: auto; }
  .marquee--tournament .battle-controls .btn { min-height: 40px; }

  /* 手机触控目标 ≥44px */
  .roster__context .btn { min-height: 44px; }
  .match__enter { min-height: 44px; }
  .clog__tools .btn { min-height: 44px; }
  .clog__source { font-size: 12px; }

  /* 首页：正文滚动，底部 CTA 常驻 */
  .screen--home { display: flex; overflow: hidden; padding: 10px; }
  .home { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 9px; }
  .home__head { flex: 0 0 auto; }
  .home__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
  .home__foot { flex: 0 0 auto; }
  .home__panel { flex: 0 0 auto; }
  .mode-cards, .map-cards, .mech-cards { flex: 0 0 auto; grid-template-rows: none; grid-template-columns: 1fr; }
  .mode-card { min-height: 150px; }
  .map-card { min-height: 128px; }
  .mech-card { min-height: 132px; padding: 11px 12px; gap: 7px; }
  .mech-card__desc { -webkit-line-clamp: 3; }
  .mech-switch__track { width: 50px; height: 26px; }
  .mech-switch__track i { width: 16px; height: 16px; }
  .mech-card--toggle[aria-pressed="true"] .mech-switch__track i { transform: translateX(22px); }
  .mech-card__name { font-size: 24px; }
  .mech-icon { width: 42px; height: 42px; }
  .mode-card__pool i { width: 9px; height: 9px; }

  /* 冠军页手机压缩 */
  .champion__kicker .k-en { display: none; }
  .champion__kicker { letter-spacing: 0.18em; }
  .champion__hero { gap: 8px; padding: 10px 8px 12px; }
  .champion__meta { display: none; }
  .orb--champion { width: 84px; height: 84px; }
  .champion__name { font-size: 36px; }
  .podium__step { min-height: 74px; padding: 6px 4px; }
  .podium__step--center { min-height: 94px; }
  .champion__actions .btn { min-height: 44px; }
  .champion__body { padding: 8px 8px 6px; }
  .standings--ranked td { padding: 5px 3px; }

  /* 排位结算手机压缩（保证两个按钮尽量可见） */
  .rankedresult__head { display: none; }
  .rankedresult__orb-wrap { min-height: 132px; }
  .orb--duel { width: 96px; height: 96px; }
  .advance-stamp { font-size: 24px; top: -8px; }
  .result--ranked .result__panel--ranked { padding: 10px 10px 10px; gap: 8px; }
  .duel-board { gap: 5px; }
  .duel-fighter { padding: 8px 9px; gap: 4px; }
  .result__actions--ranked { gap: 6px; }
  .result__actions--ranked .btn { min-height: 44px; }
}

@media (max-width: 420px) {
  .home h1 { font-size: 24px; }
  .mode-card__name, .map-card__name { font-size: 24px; }
  .home__summary-en { display: none; }
  .podium__note { display: none; }
  .champion__name { font-size: 36px; }
  .advance-stamp { font-size: 24px; letter-spacing: 0.16em; }
}

@media (max-height: 939px) {
  .home {
    gap: 10px;
  }
  .home h1 { font-size: 24px; text-shadow: 2px 2px 0 #3A1608; }
  .home__sub { display: none; }
  .home__panel { padding: 8px 10px 9px; gap: 8px; }
  .home__panel-head { padding-bottom: 5px; }
  .mode-card, .map-card { padding: 9px 12px; gap: 6px; }
  .mode-card__name, .map-card__name { font-size: 24px; }
  .mode-card__desc, .map-card__desc { font-size: 12px; line-height: 1.5; }
  .mode-glyph { width: 42px; height: 42px; }
  .mode-glyph--rumble i:nth-child(1) { width: 22px; height: 22px; top: 11px; }
  .mode-glyph--rumble i:nth-child(2) { width: 15px; height: 15px; left: 17px; }
  .mode-glyph--rumble i:nth-child(3) { width: 12px; height: 12px; left: 26px; top: 25px; }
  .map-preview { min-height: 74px; }
  .home__foot { padding: 8px 12px; }
  .home__summary-name { font-size: 24px; }
  .home__summary-mech { margin-top: 2px; }
  .home__actions .btn--primary { min-height: 46px; }
  .mech-card { padding: 9px 12px; gap: 6px; }
  .mech-icon { width: 34px; height: 34px; }
  .mech-icon--skull::before, .mech-icon--skull::after { top: 8px; width: 7px; height: 7px; }
  .mech-icon--skull::before { left: 7px; }
  .mech-icon--skull::after { right: 7px; }
  .mech-icon--skull i { left: 10px; bottom: 5px; width: 10px; height: 3px; }
  .mech-icon--lock::before { left: 9px; top: 4px; width: 12px; height: 9px; border-radius: 6px 6px 0 0; }
  .mech-icon--lock::after { left: 6px; bottom: 5px; width: 18px; height: 12px; }
  .mech-card__name { font-size: 24px; }
  .mech-card__desc { -webkit-line-clamp: 2; }
  .mech-switch__track { width: 42px; height: 22px; }
  .mech-switch__track i { width: 12px; height: 12px; }
  .mech-card--toggle[aria-pressed="true"] .mech-switch__track i { transform: translateX(20px); }
  .map-card { grid-template-columns: 100px minmax(0, 1fr); grid-template-areas: "preview ident" "preview tagline" "preview desc" "feature feature"; }
  .tour__progress { padding: 5px 10px; }
  .match { padding: 5px 7px; gap: 3px; }
  .match__vs { display: none; }
  .match__label { font-size: 12px; }
  .match__enter { min-height: 28px; }
  .match__foot { min-height: 16px; }
  .bracket__matches { gap: 6px; }
  .mfighter { padding: 2px 4px; }
  .champion__hero { padding: 10px 12px 12px; gap: 8px; }
  .champion__name { font-size: 36px; }
  .orb--champion { width: 100px; height: 100px; }
  .podium__step { min-height: 78px; }
  .podium__step--center { min-height: 96px; }
  .rankedresult__orb-wrap { min-height: 150px; }
  .orb--duel { width: 112px; height: 112px; }
  .advance-stamp { font-size: 24px; }
  .modal__panel--changelog { max-height: 90vh; }
}

@media (max-height: 700px) {
  .screen--home { display: flex; overflow: hidden; }
  .home { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  .home__head { flex: 0 0 auto; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .home__kicker { display: none; }
  .home h1 { font-size: 24px; }
  .home__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; grid-template-columns: 1fr 1fr 1fr; }
  .home__foot { flex: 0 0 auto; }
  .mode-cards, .map-cards { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .home__panel { padding: 6px 8px 7px; gap: 6px; }
  .home__panel-head { padding-bottom: 4px; }
  .mode-card, .map-card { padding: 7px 9px; gap: 4px; }
  .mode-card__top { padding-right: 40px; gap: 8px; }
  .mode-glyph { width: 34px; height: 34px; }
  .mode-glyph--rumble i:nth-child(1) { width: 18px; height: 18px; top: 9px; }
  .mode-glyph--rumble i:nth-child(2) { width: 12px; height: 12px; left: 14px; top: 0; }
  .mode-glyph--rumble i:nth-child(3) { width: 10px; height: 10px; left: 22px; top: 21px; }
  .mode-glyph--ranked i:first-child { width: 22px; height: 18px; left: 6px; top: 1px; }
  .mode-glyph--ranked i:nth-child(2) { left: 16px; top: 19px; height: 9px; }
  .mode-glyph--ranked b { left: 8px; bottom: 2px; width: 20px; height: 4px; }
  .mode-card__name, .map-card__name { font-size: 24px; }
  .mode-card__tagline, .map-card__tagline { font-size: 12px; }
  .mode-card__desc, .map-card__desc { -webkit-line-clamp: 1; font-size: 12px; }
  .mode-card__tags .tag { font-size: 12px; padding: 0 3px; }
  .map-card { grid-template-columns: 110px minmax(0, 1fr); grid-template-areas: "preview ident" "preview tagline" "desc desc" "feature feature"; padding-right: 40px; }
  .map-preview { align-self: start; }
  .map-card__feature { padding-top: 3px; font-size: 12px; }
  .home__foot { padding: 6px 10px; }
  .home__summary-name { font-size: 18px; }
  .home__summary-k, .home__summary-en { font-size: 12px; }
  .home__actions .btn { min-height: 38px; }
  .home__actions .btn--primary { min-height: 42px; padding: 6px 16px; font-size: 14px; }
  .mode-card { min-height: 118px; }
  .map-card { min-height: 112px; }
  .mech-cards { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; flex: 1 1 auto; }
  .mech-card { min-height: 0; padding: 8px 10px; gap: 5px; }
  .mech-card__name { font-size: 24px; }
  .mech-card__desc { -webkit-line-clamp: 1; }
  .mech-icon { width: 34px; height: 34px; }
  .mech-icon--skull::before, .mech-icon--skull::after { top: 8px; width: 7px; height: 7px; }
  .mech-icon--skull::before { left: 7px; }
  .mech-icon--skull::after { right: 7px; }
  .mech-icon--skull i { left: 10px; bottom: 5px; width: 10px; height: 3px; }
  .mech-icon--lock::before { left: 9px; top: 4px; width: 12px; height: 9px; border-radius: 6px 6px 0 0; }
  .mech-icon--lock::after { left: 6px; bottom: 5px; width: 18px; height: 12px; }
  .mech-switch__track { width: 40px; height: 20px; }
  .mech-switch__track i { width: 12px; height: 12px; }
  .mech-card--toggle[aria-pressed="true"] .mech-switch__track i { transform: translateX(18px); }
  .home__summary-mech { margin-top: 1px; }

  .screen--tournament { padding: 8px 10px; }
  .tour__head { flex-direction: row; align-items: center; gap: 12px; }
  .tour__title h1 { font-size: 20px; }
  .tour__sub { display: none; }
  .tour__progress { flex-direction: row; align-items: center; gap: 10px; width: auto; min-width: 0; }
  .tour__bar i { width: 12px; height: 6px; }
  .tour__now em { display: none; }
  .bracket { gap: 10px; }
  .bracket__head { padding-bottom: 3px; }
  .bracket__matches { gap: 5px; }
  .match { padding: 4px 6px; gap: 2px; }
  .match__head { display: none; }
  .match__label { display: none; }
  .match__enter { min-height: 26px; font-size: 12px; }
  .mfighter { padding: 1px 3px; }
  .mfighter__en { display: none; }
  .match__foot { min-height: 16px; }
  .match__score em, .match__time em { font-size: 8px; }
  .champion__hero { padding: 8px 10px; gap: 6px; }
  .champion__name { font-size: 30px; }
  .champion__meta { display: none; }
  .orb--champion { width: 80px; height: 80px; }
  .champion__path { display: none; }
  .podium__step { min-height: 62px; padding: 5px; }
  .podium__step--center { min-height: 78px; }
  .podium__name { font-size: 12px; }
  .podium__note { display: none; }
  .standings--ranked td { padding: 3px 5px; }
  .champion__actions .btn { min-height: 34px; }
  .champion__body { padding: 6px 8px 4px; }
  .rankedresult__head .mode-chip { display: none; }
  .result--ranked .result__panel--ranked { padding: 10px 16px; gap: 8px; }
  .rankedresult__hero { padding-bottom: 8px; }
  .rankedresult__orb-wrap { min-height: 130px; min-width: 160px; }
  .orb--duel { width: 96px; height: 96px; }
  .duel-fighter { padding: 7px 9px; }
  .advance-stamp { font-size: 20px; }
  .md-list li, .md-p { font-size: 12px; }
}

/* ---------------- 18. v1.1 移动端最终修正（放在高度查询之后） ---------------- */
@media (max-width: 720px) {
  /* 触控目标 ≥44px */
  .match__enter { min-height: 44px; }
  .roster__context .btn { min-height: 44px; }
  .clog__tools .btn { min-height: 44px; }
  .marquee--tournament .battle-controls .btn { min-height: 44px; }
  .champion__actions .btn { min-height: 46px; }
  .result__actions--ranked .btn { min-height: 46px; }
  /* 排位结算进一步压缩，尽量露出两个按钮 */
  .rankedresult__hero { gap: 6px; }
  .rankedresult__orb-wrap { min-height: 128px; }
  .advance-stamp { font-size: 22px; top: -8px; }
  .duel-fighter__stats b { font-size: 12px; }
  .duel-fighter__stats em { font-size: 10px; }
  .rankedresult__advance { font-size: 12px; }
  /* 赛程卡紧凑一点 */
  .match__foot { min-height: 24px; }
  .bracket__col { gap: 7px; }

  /* 手机最终排名表列宽：避免「备注」竖排 */
  .standings--ranked th:nth-child(1) { width: 44px; }
  .standings--ranked th:nth-child(2) { width: 112px; }
  .standings--ranked th:nth-child(3) { width: 76px; }
  .standings--ranked th:nth-child(4) { width: 92px; }
  .standings--ranked td, .standings--ranked th { white-space: nowrap; }
}

/* ---------------- 10. 无障碍 / 动效降级 ---------------- */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.18; }
}

/* 程序化聚焦的标题/容器不画焦点框（可交互元素仍然显示） */
.roster h1:focus,
.home h1:focus,
.tour__title h1:focus,
.champion__title:focus,
#screen-battle:focus,
.result__title:focus {
  outline: none;
}

/* 大屏：赛事大厅卡片内容更饱满 */
@media (min-height: 940px) and (min-width: 1081px) {
  .home__panel { padding: 14px 16px 15px; gap: 12px; }
  .home__panel-head { padding-bottom: 9px; }
  .mode-card, .map-card { padding: 18px 20px; gap: 10px; }
  .mode-glyph { width: 62px; height: 62px; }
  .mode-glyph--rumble i:nth-child(1) { width: 32px; height: 32px; top: 17px; }
  .mode-glyph--rumble i:nth-child(2) { width: 22px; height: 22px; left: 25px; top: 2px; }
  .mode-glyph--rumble i:nth-child(3) { width: 17px; height: 17px; left: 37px; top: 37px; }
  .mode-glyph--ranked i:first-child { width: 38px; height: 30px; left: 12px; top: 2px; border-top-left-radius: 17px; border-top-right-radius: 17px; }
  .mode-glyph--ranked i:nth-child(2) { left: 29px; top: 32px; height: 16px; }
  .mode-glyph--ranked b { left: 16px; bottom: 4px; width: 30px; height: 6px; }
  .mode-card__name, .map-card__name { font-size: 36px; }
  .mode-card__tagline, .map-card__tagline { font-size: 14px; }
  .mode-card__desc, .map-card__desc { font-size: 13px; line-height: 1.7; -webkit-line-clamp: 3; }
  .mode-card__tags .tag { font-size: 12px; padding: 2px 7px; }
  .map-card { grid-template-columns: 168px minmax(0, 1fr); gap: 6px 16px; }
  .map-preview--square i { left: 18%; top: 14%; width: 64%; height: 72%; }
  .map-preview--square b { left: 18%; width: 64%; top: 50%; }
  .map-card__feature { font-size: 14px; padding-top: 8px; }
  .home__summary-name { font-size: 36px; }
  .home__actions .btn--primary { min-height: 58px; font-size: 16px; padding: 12px 30px; }
  .mode-card__pool i { width: 12px; height: 12px; }
  .champion__hero { padding: 18px 20px 20px; }
  .champion__name { font-size: 48px; }
  .podium__step { min-height: 106px; }
  .podium__step--center { min-height: 136px; }
  .standings--ranked td { padding: 9px 8px; }
  .path-list li { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .coin__label,
  .feed__live i,
  .arena-shell.is-storm { animation: none !important; }
  .screen.is-enter { animation: none !important; }
}

/* ================================================================
 * 19. v1.2：大厅 / 图鉴 / 地图图鉴 / 玩法 / 更新日志 / 设置
 *      选球详情 / 战斗底部面板 / 底部 Tab / 多端
 * ================================================================ */

/* ---------------- 19.1 柜体 / 柜头 / 底部 Tab ---------------- */
.screens { overflow: hidden; }

.screen {
  min-width: 0;
  overflow: hidden;
}

.marquee {
  gap: 12px;
}
.marquee__brand { flex: 0 0 auto; }
.marquee__center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: hidden;
}
.marquee__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.marquee__ver {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6E6088;
  padding: 2px 6px;
  border: 1px solid #2B2438;
  background: rgba(10, 9, 16, 0.5);
  white-space: nowrap;
}
.marquee-btn--back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 5px 11px;
  border: 2px solid #4A405D;
  border-radius: 2px;
  background: linear-gradient(180deg, #241E31, #171221);
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #05040A, 0 2px 0 #05040A;
}
.marquee-btn--back:hover { border-color: var(--orange-2); }
.marquee-btn--back[hidden] { display: none; }

/* 底部 Tab（默认隐藏，移动端显示） */
.tabbar {
  display: none;
  grid-row: 3;
  align-items: stretch;
  gap: 2px;
  min-height: 56px;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid #2B2438;
  background: linear-gradient(180deg, #14101E 0%, #0A0810 100%);
  box-shadow: inset 0 2px 0 rgba(255, 244, 220, 0.04), 0 -4px 14px rgba(0, 0, 0, 0.55);
  z-index: 30;
  position: relative;
}
.tabbar[hidden] { display: none !important; }
.tabbar__item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #8C7FA5;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.tabbar__item:active { background: rgba(255, 107, 26, 0.1); }
.tabbar__item.is-on {
  color: var(--orange-2);
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.12), transparent);
}
.tabbar__item.is-on .tabbar__icon { border-color: var(--orange-2); }
.tabbar__item.is-on .tabbar__icon::after { background: var(--orange-2); }
.tabbar__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 16px;
  border: 2px solid #4A405D;
  border-radius: 1px;
  box-sizing: border-box;
}
.tabbar__icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 3px;
  background: #4A405D;
}
.tabbar__icon--home { border-top-left-radius: 6px; border-top-right-radius: 6px; }
.tabbar__icon--codex { border-radius: 3px; }
.tabbar__icon--codex::after { left: 2px; right: 2px; bottom: auto; top: 2px; height: 2px; box-shadow: 0 4px 0 #4A405D; background: #4A405D; }
.tabbar__icon--guide { border-radius: 50%; }
.tabbar__icon--guide::after { left: 4px; right: 4px; bottom: 4px; height: 2px; }
.tabbar__icon--setup { border-radius: 4px; }
.tabbar__icon--setup::after { left: 4px; right: 4px; bottom: 4px; height: 2px; }
.tabbar__label { line-height: 1; }
.tabbar__en {
  font-family: var(--font-pixel-en);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #5B4E72;
  line-height: 1;
}
.tabbar__item.is-on .tabbar__en { color: rgba(255, 194, 75, 0.7); }

@media (max-width: 900px) {
  .tabbar { display: flex; }
}

/* ---------------- 19.2 通用页面框架 ---------------- */
.screen--codex,
.screen--maps,
.screen--guide,
.screen--patches,
.screen--settings {
  display: flex;
  flex-direction: column;
}
.screen--home { display: flex; }

.page {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.page__title-wrap { min-width: 0; }
.page__kicker {
  display: block;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--orange-2);
  margin-bottom: 2px;
}
.page__kicker .k-en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 8px;
}
.page__title {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0.1em;
  color: var(--cream);
  font-weight: 400;
  text-shadow: 2px 2px 0 #3A1608, 4px 4px 0 rgba(255, 107, 26, 0.18);
}
.page__title .title-mark { color: var(--orange); }
.page__sub {
  margin: 5px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 78ch;
}
.page__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.page__title:focus { outline: none; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid #2A2338;
  margin-bottom: 10px;
}
.section-head__idx {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.06em;
}
.section-head__title {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
}
.section-head__en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #6E6088;
}
.section-head__note {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 11px;
  color: #6E6088;
}

.panel--note { padding: 12px 14px; }
.note-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.65;
  color: #A99CBD;
}
.note-list b { color: var(--cream); font-weight: 400; }

.empty-state {
  grid-column: 1 / -1;
  padding: 26px 18px;
  border: 2px dashed #322A44;
  background: rgba(10, 8, 16, 0.45);
  text-align: center;
  color: var(--muted);
}
.empty-state b { display: block; font-size: 14px; color: var(--cream); letter-spacing: 0.08em; margin-bottom: 4px; }
.empty-state p { margin: 0; font-family: var(--font-body); font-size: 12px; }

/* 筛选 chip / 搜索 / 下拉 */
.filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 9px;
  border: 2px solid #3A3150;
  border-radius: 2px;
  background: rgba(10, 8, 16, 0.55);
  color: #A99CBD;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip:hover { border-color: #5B4E72; color: var(--cream); }
.filter-chip.is-on {
  border-color: var(--tag-color, var(--orange));
  color: var(--cream);
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.14), rgba(10, 8, 16, 0.6));
  box-shadow: inset 0 0 12px -6px var(--tag-color, var(--orange));
}
.filter-chip b {
  font-family: var(--font-pixel-en);
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}
.filter-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-color, var(--muted));
  box-shadow: 0 0 5px -1px var(--tag-color, transparent);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 420px;
  height: 38px;
  border: 2px solid #3A3150;
  background: rgba(10, 8, 16, 0.65);
  box-shadow: inset 0 0 0 1px #05040A;
}
.search-box:focus-within { border-color: var(--cyan); }
.search-box__icon {
  width: 12px;
  height: 12px;
  margin: 0 9px;
  border: 2px solid #6E6088;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.search-box__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: #6E6088;
  transform: rotate(45deg);
}
.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.02em;
  outline: none;
}
.search-box input::placeholder { color: #6E6088; }
.search-box input::-webkit-search-cancel-button { filter: invert(0.7); }

.select-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.select-box select {
  min-height: 34px;
  padding: 4px 8px;
  border: 2px solid #3A3150;
  border-radius: 0;
  background: #0D0A14;
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.02em;
  outline: none;
}
.select-box select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; }

/* 标签页按钮 */
.tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 2px;
  border-bottom: 2px solid #2A2338;
}
.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #8C7FA5;
  font-family: var(--font-pixel-han);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.tab-btn em {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #5B4E72;
  font-style: normal;
}
.tab-btn:hover { color: var(--cream); }
.tab-btn.is-on {
  color: var(--cream);
  border-color: #3A3150;
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.14), rgba(10, 8, 16, 0.2));
}
.tab-btn.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange);
}
.tab-btn.is-on em { color: var(--orange-2); }

/* 通用面板 */
.panel {
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.85), rgba(12, 10, 18, 0.92));
  box-shadow: inset 0 0 0 1px #05040A, 0 2px 0 rgba(0, 0, 0, 0.4);
}
.panel.guide-panel { padding: 10px 12px 12px; }

/* 开关按钮 */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px;
  border: 2px solid #3A3150;
  background: rgba(10, 8, 16, 0.55);
  color: var(--muted);
  cursor: pointer;
}
.switch__track {
  position: relative;
  display: block;
  width: 42px;
  height: 20px;
  border: 2px solid #4A405D;
  background: #0A0810;
  box-sizing: border-box;
}
.switch__track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #6E6088;
  transition: transform 120ms steps(2, end), background 120ms linear;
}
.switch.is-on .switch__track { border-color: var(--orange); }
.switch.is-on .switch__track i { transform: translateX(18px); background: var(--orange-2); box-shadow: 0 0 8px var(--orange); }
.switch__state {
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.switch.is-on { color: var(--cream); border-color: var(--orange); }

/* 滑块 */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: min(320px, 100%);
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  background: #0A0810;
  border: 1px solid #3A3150;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 22px;
  margin-top: -9px;
  border: 2px solid #05040A;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-2), 0 0 10px -2px var(--orange);
}
.range::-moz-range-track { height: 6px; background: #0A0810; border: 1px solid #3A3150; }
.range::-moz-range-thumb { width: 14px; height: 20px; border: 2px solid #05040A; background: var(--orange); }
.range__val {
  min-width: 34px;
  font-family: var(--font-pixel-en);
  font-size: 13px;
  color: var(--orange-2);
  text-align: right;
}

/* 键值列表 */
.kv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
}
.kv-list li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  padding-bottom: 6px;
  border-bottom: 1px dotted #2A2338;
}
.kv-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-list__k { color: var(--orange-2); letter-spacing: 0.04em; }
.kv-list__v { color: #B6A9C9; min-width: 0; }
.kv-list--tight li { grid-template-columns: 58px minmax(0, 1fr); }
.guide-lead {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.65;
  color: #A99CBD;
}
.guide-lead b { color: var(--cream); font-weight: 400; }
.guide-lead code {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  color: var(--orange-2);
  border: 1px solid #3A3150;
  padding: 0 4px;
  background: #0D0A14;
}
.guide-foot-note {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.6;
  color: #6E6088;
}

/* ---------------- 19.3 大厅 ---------------- */
.screen--home { display: flex; }
.lobby {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.lobby::-webkit-scrollbar { width: 8px; }
.lobby::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }

.lobby__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
  align-items: stretch;
}
.lobby__fav { min-width: 0; min-height: 0; display: flex; }
.lobby__modes {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 12px;
  border: 2px solid #2B2438;
  background:
    linear-gradient(180deg, rgba(24, 20, 34, 0.85), rgba(11, 9, 17, 0.92));
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.45);
}
.mode-cards--lobby {
  flex: 1 1 auto;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.mode-card--lobby { justify-content: center; gap: 6px; }
.mode-card--lobby .mode-card__pick {
  position: static;
  justify-self: flex-end;
  margin-left: auto;
  align-self: center;
  color: var(--ma2, var(--orange-2));
  border-color: var(--ma, var(--orange));
  padding: 2px 8px;
  font-size: 12px;
}
.mode-card--lobby .mode-card__pick b { font-size: 10px; }
.mode-card--lobby:hover { border-color: var(--ma, var(--orange)); transform: translateY(-1px); }
.mode-card--lobby:hover .mode-card__ghost { color: rgba(255, 107, 26, 0.09); }
.lobby__note {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  color: #6E6088;
}
.lobby__note i {
  width: 6px;
  height: 6px;
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
  flex: 0 0 auto;
}
.lobby__nav {
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(21, 18, 32, 0.75), rgba(10, 8, 16, 0.88));
  box-shadow: inset 0 0 0 1px #05040A;
}
.section-head--nav { margin-bottom: 9px; }
.nav-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.nav-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 64px;
  padding: 9px 10px;
  border: 2px solid #2B2438;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(27, 23, 40, 0.9), rgba(15, 12, 22, 0.95));
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms linear, transform 90ms steps(2, end);
}
.nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--na, var(--orange));
  opacity: 0.75;
}
.nav-card:hover { border-color: var(--na, var(--orange)); transform: translateY(-1px); }
.nav-card:active { transform: translateY(1px); }
.nav-card__glyph {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--na, var(--orange));
  color: var(--na, var(--orange));
  font-family: var(--font-pixel-han);
  font-size: 15px;
  background: rgba(10, 8, 16, 0.6);
  box-shadow: inset 0 0 0 1px #05040A;
}
.nav-card__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-card__head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nav-card__name { font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; color: var(--cream); }
.nav-card__en { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.nav-card__desc {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  color: #8C7FA5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-card__arrow {
  position: absolute;
  right: 6px;
  bottom: 2px;
  font-family: var(--font-pixel-en);
  font-size: 16px;
  color: #4A405D;
}
.lobby__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
  font-family: var(--font-body);
  font-size: 10px;
  color: #5B4E72;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.lobby__foot b { color: var(--orange-2); font-weight: 400; }

/* 喜欢的小球 */
.fav-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  border: 2px solid #3A3150;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(27, 23, 40, 0.92) 0%, rgba(12, 10, 18, 0.96) 100%);
  box-shadow: inset 0 0 0 1px #05040A, 0 3px 0 rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.fav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), var(--c2));
  opacity: 0.85;
}
.fav-card__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fav-card__kicker {
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange-2);
}
.fav-card__kicker .k-en {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #6E6088;
  margin-left: 7px;
}
.fav-card__id {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8C7FA5;
  padding: 2px 6px;
  border: 1px solid #3A3150;
  background: rgba(10, 8, 16, 0.55);
}
.fav-card__stage {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 6px 2px 8px;
}
.fav-card__ring {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 128px;
  height: 128px;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 244, 220, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 26px rgba(255, 107, 26, 0.08);
  pointer-events: none;
}
.fav-card__ring::before,
.fav-card__ring::after {
  content: "";
  position: absolute;
  background: rgba(255, 244, 220, 0.1);
}
.fav-card__ring::before { left: 50%; top: -4px; bottom: -4px; width: 1px; }
.fav-card__ring::after { top: 50%; left: -4px; right: -4px; height: 1px; }
.fav-card__halo {
  position: absolute;
  left: 26px;
  top: 46%;
  width: 96px;
  height: 40px;
  transform: translateY(28px);
  background: radial-gradient(50% 50% at 50% 50%, var(--c), transparent 70%);
  opacity: 0.32;
  filter: blur(10px);
  pointer-events: none;
}
.orb--hero {
  width: 118px;
  height: 118px;
  position: relative;
  z-index: 1;
  animation: fav-bob 3.2s steps(24, end) infinite;
}
@keyframes fav-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.fav-card__ident { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fav-card__name {
  margin: 0;
  font-family: var(--font-pixel-han);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 2px 2px 0 #2A1608, 0 0 24px color-mix(in srgb, var(--c) 35%, transparent);
}
.fav-card__name:focus { outline: none; }
.fav-card__en {
  font-family: var(--font-pixel-en);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.fav-card__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.fav-card__bio {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: #B6A9C9;
}
.fav-card__quote {
  flex: 0 0 auto;
  margin: 0;
  padding-left: 9px;
  border-left: 2px solid var(--c);
  font-family: var(--font-body);
  font-size: 12px;
  color: #8C7FA5;
}
.fav-card__stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #302945;
}
.fstat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fstat__k { font-size: 11px; color: #8C7FA5; letter-spacing: 0.02em; white-space: nowrap; }
.fstat__v { font-family: var(--font-pixel-en); font-size: 12px; color: var(--cream); }
.fstat__bar { display: block; height: 3px; background: #0A0810; box-shadow: inset 0 0 0 1px #241D33; overflow: hidden; }
.fstat__bar i { display: block; height: 100%; width: var(--fill, 50%); background: linear-gradient(90deg, var(--stat-color, var(--orange)), rgba(255, 244, 220, 0.7)); }
.fav-card__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.fav-card__actions .btn { flex: 1 1 auto; }

/* tag（技能 tag） */
.tag--skill {
  border-color: color-mix(in srgb, var(--tag-color, var(--muted)) 55%, #3A3150);
  color: var(--tag-color, var(--muted));
  background: color-mix(in srgb, var(--tag-color, var(--muted)) 10%, rgba(10, 9, 16, 0.6));
}
.tag--arch, .tag--species { display: none !important; }

/* ---------------- 19.4 图鉴 ---------------- */
.codex__tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 2px solid #2B2438;
  background: rgba(12, 10, 18, 0.6);
}
.codex__count {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 11px;
  color: #8C7FA5;
  white-space: nowrap;
}
.codex__count b { font-family: var(--font-pixel-en); color: var(--orange-2); font-weight: 400; }
.codex__body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 10px;
}
.codex__grid {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 8px;
  align-content: start;
  padding: 1px 6px 3px 1px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.codex__grid::-webkit-scrollbar { width: 8px; }
.codex__grid::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.codex__detail {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.codex__detail::-webkit-scrollbar { width: 8px; }
.codex__detail::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }

.codex-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px 10px;
  border: 2px solid #2B2438;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(25, 21, 36, 0.92), rgba(14, 11, 20, 0.96));
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color 110ms linear, transform 90ms steps(2, end);
}
.codex-card:hover { border-color: var(--c, var(--orange)); transform: translateY(-1px); }
.codex-card.is-on {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.13), rgba(17, 13, 24, 0.96));
  box-shadow: inset 0 3px 0 var(--c, var(--orange)), 0 0 0 1px var(--orange);
}
.codex-card__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.orb--codex { width: 42px; height: 42px; flex: 0 0 auto; }
.codex-card__ident { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.codex-card__id { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.08em; color: #8C7FA5; }
.codex-card__name { font-family: var(--font-pixel-han); font-size: 15px; line-height: 1.2; letter-spacing: 0.06em; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codex-card__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codex-card__fav { position: absolute; top: 5px; right: 7px; color: var(--gold); font-size: 12px; }
.codex-card__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.codex-card__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #8C7FA5;
  border-top: 1px dashed #302945;
  padding-top: 5px;
}
.codex-card__stats b { color: var(--cream); font-weight: 400; }
.codex-card__stats span { white-space: nowrap; }

/* 详情卡（图鉴 / 选球 / sheet 共用） */
.detail-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 13px 13px;
  border: 2px solid #3A3150;
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(25, 21, 36, 0.94), rgba(12, 10, 18, 0.97));
  box-shadow: inset 0 0 0 1px #05040A;
  min-width: 0;
}
.detail-card__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.detail-card__orb { flex: 0 0 auto; display: flex; }
.orb--detail { width: 86px; height: 86px; }
.detail-card__ident { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.detail-card__id { font-family: var(--font-pixel-en); font-size: 9px; letter-spacing: 0.1em; color: #8C7FA5; }
.detail-card__name { margin: 0; font-family: var(--font-pixel-han); font-size: 26px; line-height: 1.1; font-weight: 400; letter-spacing: 0.1em; color: var(--cream); text-shadow: 2px 2px 0 #2A1608; }
.detail-card__en { font-family: var(--font-pixel-en); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }
.detail-card__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.detail-card__bio { margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #B6A9C9; }
.detail-card__quote { margin: 0; padding-left: 8px; border-left: 2px solid var(--c, var(--orange)); font-family: var(--font-body); font-size: 12px; color: #8C7FA5; }
.detail-card__stats { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px dashed #302945; }
.detail-card__skills { display: flex; flex-direction: column; gap: 8px; }
.detail-card__actions { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.detail-card__actions .btn { width: 100%; min-height: 44px; }
.detail-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #322A44;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}
.detail-empty p { margin: 0; font-size: 13px; color: var(--cream); }
.detail-empty small { font-family: var(--font-body); font-size: 11px; color: #6E6088; }
.detail-empty .orb { opacity: 0.35; }

/* ---------------- 19.5 地图图鉴 ---------------- */
.maps__list {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.map-entry {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(25, 21, 36, 0.9), rgba(12, 10, 18, 0.95));
  box-shadow: inset 0 0 0 1px #05040A;
  min-width: 0;
}
.map-entry__preview { width: 152px; height: 152px; align-self: center; }
.map-entry__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.map-entry__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.map-entry__name { margin: 0; font-family: var(--font-pixel-han); font-size: 24px; font-weight: 400; letter-spacing: 0.1em; color: var(--cream); }
.map-entry__en { font-family: var(--font-pixel-en); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); }
.map-entry__feature {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid var(--ma);
  color: var(--ma2, var(--orange-2));
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.map-entry__feature i { width: 6px; height: 6px; background: var(--ma); }
.map-entry__tagline { margin: 0; font-family: var(--font-pixel-han); font-size: 12px; color: var(--ma2, var(--orange-2)); letter-spacing: 0.04em; }
.map-entry__desc { margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #A99CBD; }
.map-entry__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin: 4px 0 0;
  padding-top: 7px;
  border-top: 1px dashed #302945;
}
.map-entry__facts div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.map-entry__facts dt { font-family: var(--font-body); font-size: 10px; color: #6E6088; white-space: nowrap; }
.map-entry__facts dd { margin: 0; font-family: var(--font-body); font-size: 11px; color: #B6A9C9; }

/* ---------------- 19.6 玩法介绍 ---------------- */
.guide__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.guide__body::-webkit-scrollbar { width: 8px; }
.guide__body::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.mode-guide { padding: 11px 13px; border-top: 3px solid var(--ma, var(--orange)); }
.mode-guide__head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.mode-guide__name { margin: 0; font-family: var(--font-pixel-han); font-size: 18px; font-weight: 400; letter-spacing: 0.1em; color: var(--cream); }
.mode-guide__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.12em; color: var(--muted); }
.mode-guide__tagline { margin: 0 0 3px; font-family: var(--font-pixel-han); font-size: 12px; color: var(--ma2, var(--orange-2)); letter-spacing: 0.04em; }
.mode-guide__desc { margin: 0 0 7px; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #A99CBD; }
.effect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 8px; }
.effect-card {
  padding: 9px 11px 10px;
  border: 2px solid #2B2438;
  border-left: 3px solid #4A405D;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.86), rgba(12, 10, 18, 0.92));
  min-width: 0;
}
.effect-card__head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.effect-card__name { font-family: var(--font-pixel-han); font-size: 15px; font-weight: 400; letter-spacing: 0.06em; color: var(--cream); }
.effect-card__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.1em; color: #6E6088; }
.effect-card__id { margin-left: auto; font-family: var(--font-pixel-en); font-size: 8px; color: #4A405D; }
.effect-card__desc { margin: 4px 0 0; font-family: var(--font-body); font-size: 12px; color: #B6A9C9; line-height: 1.55; }
.effect-card__note { margin: 4px 0 0; font-family: var(--font-body); font-size: 11px; color: #8C7FA5; line-height: 1.55; }
.effect-card__note b { color: var(--orange-2); font-weight: 400; margin-right: 4px; }
.tag-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.tag-guide {
  padding: 10px 12px;
  border: 2px solid #2B2438;
  border-top: 3px solid var(--tag-color, var(--orange));
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.86), rgba(12, 10, 18, 0.92));
  min-width: 0;
}
.tag-guide__head { display: flex; align-items: baseline; gap: 7px; }
.tag-guide__dot { width: 8px; height: 8px; background: var(--tag-color, var(--orange)); box-shadow: 0 0 6px -1px var(--tag-color, var(--orange)); }
.tag-guide__name { font-family: var(--font-pixel-han); font-size: 15px; font-weight: 400; color: var(--cream); letter-spacing: 0.08em; }
.tag-guide__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.tag-guide__desc { margin: 4px 0 8px; font-family: var(--font-body); font-size: 12px; line-height: 1.55; color: #A99CBD; }
.tag-guide__balls { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-ball {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 2px 7px;
  border: 1px solid #3A3150;
  background: rgba(10, 8, 16, 0.55);
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 11px;
  cursor: pointer;
}
.tag-ball:hover { border-color: var(--tag-color, var(--orange)); }
.tag-ball i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2, #FFC24B), var(--c, #FF6B1A) 62%, #120D18);
}
.mech-list { display: flex; flex-direction: column; gap: 6px; }
.mech-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 4px; border-bottom: 1px dotted #2A2338; }
.mech-row:last-child { border-bottom: 0; }
.mech-row.is-locked { opacity: 0.55; }
.mech-row__dot { width: 7px; height: 7px; margin-top: 6px; background: var(--danger); box-shadow: 0 0 5px -1px var(--danger); flex: 0 0 auto; }
.mech-row__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mech-row__name { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-family: var(--font-pixel-han); font-size: 13px; color: var(--cream); letter-spacing: 0.04em; }
.mech-row__name em { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; font-style: normal; letter-spacing: 0.1em; }
.mech-row__chip { font-family: var(--font-body); font-size: 10px; color: var(--muted); border: 1px solid #3A3150; padding: 0 5px; }
.mech-row__chip.is-on { color: var(--orange-2); border-color: rgba(255, 107, 26, 0.4); }
.mech-row__desc { font-family: var(--font-body); font-size: 11px; line-height: 1.55; color: #8C7FA5; }
.guide-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.guide-map {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.86), rgba(12, 10, 18, 0.92));
  color: var(--cream);
  text-align: left;
  cursor: pointer;
}
.guide-map:hover { border-color: var(--ma, var(--orange)); }
.guide-map .map-preview { width: 76px; height: 76px; flex: 0 0 auto; }
.guide-map__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guide-map__body b { font-family: var(--font-pixel-han); font-size: 16px; font-weight: 400; letter-spacing: 0.08em; }
.guide-map__body em { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.guide-map__body span { font-family: var(--font-body); font-size: 11px; color: #A99CBD; }
.guide-map__arrow { margin-left: auto; color: #4A405D; font-family: var(--font-pixel-en); font-size: 18px; }

/* ---------------- 19.7 更新日志 / 数据更新 ---------------- */
.patch-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.patch-body::-webkit-scrollbar { width: 8px; }
.patch-body::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.patch-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 2px solid #2B2438;
  border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, rgba(255, 107, 26, 0.08), rgba(12, 10, 18, 0.6) 42%);
  margin-bottom: 10px;
}
.patch-hero__id { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.patch-hero__tag { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.16em; color: #6E6088; }
.patch-hero__ver { font-family: var(--font-pixel-en); font-size: 20px; color: var(--orange-2); font-weight: 400; letter-spacing: 0.04em; }
.patch-hero__date { font-family: var(--font-body); font-size: 11px; color: #8C7FA5; }
.patch-hero__note { flex: 1 1 320px; margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #A99CBD; }
.patch-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 2px solid #2B2438;
  background: rgba(12, 10, 18, 0.6);
  margin-bottom: 10px;
}
.patch-count { margin-left: auto; font-family: var(--font-body); font-size: 11px; color: #8C7FA5; white-space: nowrap; }
.patch-count b { font-family: var(--font-pixel-en); color: var(--orange-2); font-weight: 400; }
.patch-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}
.patch-legend__item {
  padding: 7px 9px;
  border: 1px solid #2B2438;
  border-left: 3px solid var(--tag-color, var(--orange));
  background: rgba(12, 10, 18, 0.55);
}
.patch-legend__name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.patch-legend__name i { width: 7px; height: 7px; background: var(--tag-color); }
.patch-legend__name em { font-family: var(--font-pixel-en); font-size: 7px; color: #6E6088; font-style: normal; letter-spacing: 0.1em; }
.patch-legend__item p { margin: 3px 0 0; font-family: var(--font-body); font-size: 11px; line-height: 1.45; color: #8C7FA5; }
.patch-group { margin-bottom: 12px; }
.patch-group__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 5px 2px;
  border-bottom: 2px solid #2B2438;
  margin-bottom: 8px;
}
.patch-group__ver { font-family: var(--font-pixel-en); font-size: 15px; color: var(--cream); font-weight: 400; letter-spacing: 0.04em; }
.patch-group__date { font-family: var(--font-body); font-size: 11px; color: #8C7FA5; }
.patch-group__count { margin-left: auto; font-family: var(--font-body); font-size: 10px; color: #6E6088; }
.patch-entry {
  padding: 10px 12px 11px;
  border: 2px solid #2B2438;
  border-left: 3px solid var(--tag-color, #4A405D);
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.82), rgba(11, 9, 17, 0.92));
  margin-bottom: 8px;
  min-width: 0;
}
.patch-entry[data-tag="heat"] { --tag-color: #FF7A1A; }
.patch-entry[data-tag="cool"] { --tag-color: #54E6FF; }
.patch-entry[data-tag="neutral"] { --tag-color: #B060FF; }
.patch-entry[data-tag="rework"] { --tag-color: #FFC24B; }
.patch-entry[data-tag="meta"] { --tag-color: #8C7FA5; }
.patch-entry__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.patch-entry__ident { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.orb--patch { width: 34px; height: 34px; }
.patch-entry__name { font-family: var(--font-pixel-han); font-size: 15px; color: var(--cream); letter-spacing: 0.06em; display: inline-flex; flex-direction: column; line-height: 1.2; }
.patch-entry__name em { font-family: var(--font-pixel-en); font-size: 7px; color: #8C7FA5; font-style: normal; letter-spacing: 0.1em; }
.patch-entry__id { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; letter-spacing: 0.06em; }
.patch-entry__target {
  flex: 1 1 180px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 11px;
  color: #A99CBD;
  padding-left: 9px;
  border-left: 1px solid #302945;
}
.patch-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid var(--tag-color, #4A405D);
  color: var(--tag-color, var(--muted));
  background: color-mix(in srgb, var(--tag-color, #4A405D) 10%, transparent);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.patch-tag em { font-family: var(--font-pixel-en); font-size: 7px; opacity: 0.7; font-style: normal; letter-spacing: 0.08em; }
.change-list {
  list-style: none;
  margin: 7px 0 0;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px dashed #302945;
}
.change-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1fr) auto minmax(0, 1.2fr);
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 0;
}
.change-row__field { color: #8C7FA5; min-width: 0; }
.change-row__before { color: #8C7FA5; text-align: right; text-decoration: line-through; text-decoration-color: rgba(140, 127, 165, 0.55); }
.change-row__arrow { color: #4A405D; font-family: var(--font-pixel-en); font-size: 10px; }
.change-row__after { color: var(--cream); }
.change-row.is-up .change-row__after { color: #FF9A5A; }
.change-row.is-down .change-row__after { color: var(--cyan); }
.change-row.is-flat .change-row__after { color: var(--muted); }
.patch-entry__summary { margin: 7px 0 0; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #B6A9C9; }
.patch-entry__full { margin-top: 6px; }
.patch-entry__full summary {
  cursor: pointer;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  color: var(--orange-2);
  letter-spacing: 0.04em;
  padding: 3px 0;
}
.patch-entry__full p { margin: 4px 0 0; font-family: var(--font-body); font-size: 12px; line-height: 1.65; color: #B6A9C9; white-space: pre-wrap; }
.patch-entry__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px dotted #2A2338;
}
.patch-entry__version { font-family: var(--font-pixel-en); font-size: 8px; color: #6E6088; letter-spacing: 0.06em; }
.patch-entry__modes { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.patch-entry__modes i {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 10px;
  color: #8C7FA5;
  border: 1px solid #3A3150;
  padding: 0 5px;
}

.sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.sys-cat {
  padding: 9px 11px 10px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.82), rgba(11, 9, 17, 0.9));
  min-width: 0;
}
.sys-cat__head { display: flex; align-items: baseline; gap: 7px; padding-bottom: 5px; border-bottom: 1px solid #2A2338; margin-bottom: 5px; }
.sys-cat__name { font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; color: var(--cream); }
.sys-cat__en { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.sys-cat__count { margin-left: auto; font-family: var(--font-pixel-en); font-size: 8px; color: #8C7FA5; }
.sys-list { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-body); font-size: 12px; line-height: 1.55; color: #A99CBD; }
.sys-list li::marker { color: var(--orange); }
.sys-empty { margin: 0; font-family: var(--font-body); font-size: 11px; color: #5B4E72; }
.changelog-source { padding: 10px 12px 12px; }
.clog__source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 1px 7px;
  border: 1px solid #3A3150;
  white-space: nowrap;
}
.clog__source i { width: 6px; height: 6px; background: var(--muted); }
.clog__source--live { color: var(--good); border-color: rgba(124, 255, 158, 0.4); }
.clog__source--live i { background: var(--good); box-shadow: 0 0 5px var(--good); }
.clog__source--error { color: var(--danger); border-color: rgba(255, 79, 109, 0.4); }
.clog__source--error i { background: var(--danger); }
.changelog-source .panel-head { flex-wrap: wrap; }
.changelog-source .clog__source { margin-left: auto; }
.changelog-source__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-bottom: 1px dotted #2A2338;
  margin-bottom: 6px;
}
.changelog-source__note { flex: 1 1 260px; font-family: var(--font-body); font-size: 11px; color: #6E6088; line-height: 1.5; }
.changelog-source__tools { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.changelog-md summary {
  cursor: pointer;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  color: var(--orange-2);
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.changelog-md .md { max-height: 380px; overflow-y: auto; padding-right: 6px; }

/* 通用 markdown（沿用 v1.1 分类样式） */
.md { font-family: var(--font-body); font-size: 12px; line-height: 1.7; color: #B6A9C9; }
.md .md-doc-title { font-family: var(--font-pixel-han); font-size: 18px; color: var(--cream); margin-bottom: 8px; }
.md-version { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; padding-bottom: 4px; border-bottom: 1px solid #2A2338; }
.md-version__tag { font-family: var(--font-pixel-en); font-size: 7px; color: #6E6088; letter-spacing: 0.12em; }
.md-version__v { font-family: var(--font-pixel-en); font-size: 14px; color: var(--orange-2); font-weight: 400; }
.md-version__date { font-size: 10px; color: #6E6088; margin-left: auto; }
.md-cat { margin: 8px 0 3px; font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; color: var(--cream); display: flex; align-items: center; gap: 6px; }
.md-cat i { width: 8px; height: 2px; background: var(--orange); }
.md-cat--add i { background: var(--good); }
.md-cat--opt i { background: var(--cyan); }
.md-cat--fix i { background: var(--danger); }
.md-list { margin: 0 0 6px; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; }
.md-list li::marker { color: var(--orange); }
.md-list code, .md-p code { font-family: var(--font-pixel-en); font-size: 10px; color: var(--orange-2); }
.md-quote { margin: 6px 0; padding: 4px 9px; border-left: 2px solid #3A3150; color: #8C7FA5; }
.md-hr { border: 0; border-top: 1px dashed #2A2338; margin: 8px 0; }

/* ---------------- 19.8 设置 ---------------- */
.settings-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.settings-grid::-webkit-scrollbar { width: 8px; }
.settings-grid::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.settings-panel { padding: 10px 12px 12px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px dotted #2A2338;
}
.setting-row:last-of-type { border-bottom: 0; }
.setting-row__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-pixel-han);
  font-size: 13px;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.setting-row__note { font-family: var(--font-body); font-size: 11px; color: #6E6088; letter-spacing: 0; }
.setting-row__control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setting-row--slider .setting-row__control { flex: 1 1 260px; }
.setting-hint { margin: 8px 0 0; font-family: var(--font-body); font-size: 11px; line-height: 1.6; color: #6E6088; }
.about-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 2px 0 8px; }
.about-list div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.about-list dt { font-family: var(--font-body); font-size: 10px; color: #6E6088; }
.about-list dd { margin: 0; font-family: var(--font-body); font-size: 12px; color: #B6A9C9; }
.settings-links { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 19.9 选球页 v1.2 ---------------- */
.screen--roster { display: flex; }
.roster__context {
  flex-wrap: wrap;
  align-items: center;
}
.roster__picks {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.pick-row { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.pick-row__label {
  font-family: var(--font-pixel-han);
  font-size: 11px;
  color: #8C7FA5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pick-chips { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 8px;
  border: 2px solid #2B2438;
  border-radius: 2px;
  background: rgba(10, 8, 16, 0.5);
  color: #A99CBD;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}
.pick-chip:hover { border-color: #5B4E72; color: var(--cream); }
.pick-chip.is-on {
  border-color: var(--pa, var(--orange));
  color: var(--cream);
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.12), rgba(10, 8, 16, 0.55));
}
.pick-chip em { font-family: var(--font-body); font-size: 10px; color: #6E6088; font-style: normal; }
.pick-chip.is-on em { color: var(--orange-2); }
.pick-chip__led { width: 6px; height: 6px; background: #4A405D; box-shadow: 0 0 0 1px #05040A; }
.pick-chip.is-on .pick-chip__led { background: var(--good); box-shadow: 0 0 6px var(--good); }
.pick-chip--locked { opacity: 0.45; cursor: not-allowed; }
.pick-chip .map-glyph--xs { width: 12px; height: 12px; }
.badge--pool { color: #8C7FA5; border-color: #2B2438; }

.ball-card__ident { padding-right: 40px; }
.ball-card__detail-hint {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-family: var(--font-pixel-han);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6E6088;
  border: 1px solid #2B2438;
  padding: 0 5px;
  background: rgba(10, 8, 16, 0.6);
}
.ball-card:hover .ball-card__detail-hint { color: var(--orange-2); border-color: rgba(255, 107, 26, 0.4); }
.dossier {
  border: 2px solid #2B2438;
  background:
    linear-gradient(180deg, rgba(21, 18, 32, 0.75), rgba(10, 8, 16, 0.9));
  box-shadow: inset 0 0 0 1px #05040A;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
}
.dossier.is-pinned { border-color: rgba(255, 107, 26, 0.6); box-shadow: inset 0 2px 0 var(--orange), inset 0 0 0 1px #05040A; }
.dossier__pinned {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 9px;
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.2), rgba(15, 12, 22, 0.95));
  border-bottom: 1px solid rgba(255, 107, 26, 0.4);
  font-family: var(--font-pixel-han);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--orange-2);
}
.dossier .detail-card { border: 0; background: transparent; box-shadow: none; }
.dossier__empty { min-height: 100%; }
.card-detail { display: none !important; }

/* ---------------- 19.10 战斗 HUD v1.2 ---------------- */
.hp-board { position: relative; }
.hp-hint {
  font-family: var(--font-body);
  font-size: 10px;
  color: #6E6088;
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-row {
  display: grid;
  grid-template-columns: 8px minmax(52px, 0.85fr) minmax(34px, 1.5fr) 40px minmax(0, auto) 14px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 3px 6px;
  border: 1px solid #2A2338;
  border-radius: 0;
  background: rgba(10, 8, 16, 0.55);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms linear, background 120ms linear, opacity 180ms linear;
}
.hp-row:hover,
.hp-row:focus-visible { border-color: var(--orange); background: rgba(255, 107, 26, 0.08); }
.hp-row.is-info { border-color: var(--orange); box-shadow: inset 0 0 12px -6px var(--orange); }
.hp-ident { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.hp-ident .hp-name { font-size: 12px; }
.hp-id { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.06em; color: #6E6088; }
.hp-status { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.hp-status .st {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 4px;
  font-family: var(--font-pixel-han);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
  background: rgba(10, 8, 16, 0.55);
  white-space: nowrap;
}
.hp-status .st--out { color: var(--danger); }
.hp-status .st--burn { color: #FF9A5A; }
.hp-status .st--poison { color: #8BE38A; }
.hp-status .st--slow { color: var(--cyan); }
.hp-status .st--haste { color: var(--gold); }
.hp-status .st--root { color: var(--gold); }
.hp-status .st--weakness,
.hp-status .st--armorBreak { color: var(--violet-2); }
.hp-status .st--shield { color: var(--cyan); }
.hp-status .st--immune,
.hp-status .st--phase { color: #C9C4FF; }
.hp-status .st--superHeavy { color: #B6A9C9; }
.hp-status .st--reflect { color: var(--danger); }
.hp-status .st--more { color: var(--muted); }
.hp-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #4A405D;
  border-radius: 50%;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  color: #8C7FA5;
  flex: 0 0 auto;
}
.hp-row:hover .hp-info { border-color: var(--orange-2); color: var(--orange-2); }

/* 底部详情面板 */
.battle-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  z-index: 20;
  max-height: min(56vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 12px;
  border: 2px solid var(--orange);
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(255, 107, 26, 0.12), transparent 60%),
    linear-gradient(180deg, #191425 0%, #0C0A12 100%);
  box-shadow: 0 0 0 2px #05040A, 0 -10px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #05040A;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.battle-info::-webkit-scrollbar { width: 8px; }
.battle-info::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.battle-info__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.battle-info__orb { flex: 0 0 auto; }
.orb--info { width: 46px; height: 46px; }
.battle-info__ident { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.battle-info__id { font-family: var(--font-pixel-en); font-size: 8px; color: #8C7FA5; letter-spacing: 0.08em; }
.battle-info__name { font-family: var(--font-pixel-han); font-size: 20px; font-weight: 400; letter-spacing: 0.08em; color: var(--cream); line-height: 1.15; }
.battle-info__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.1em; color: var(--muted); }
.battle-info__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.battle-info__hp { margin-left: auto; display: flex; align-items: baseline; gap: 4px; }
.battle-info__hp b { font-family: var(--font-pixel-en); font-size: 26px; color: var(--cream); font-weight: 400; line-height: 1; }
.battle-info__hp em { font-family: var(--font-pixel-en); font-size: 11px; color: #8C7FA5; font-style: normal; }
.battle-info__shield { margin-left: 6px; font-family: var(--font-pixel-han); font-size: 11px; color: var(--cyan); }
.battle-info__actions { display: flex; gap: 5px; align-items: center; margin-left: auto; }
.battle-info__hpbar { margin: 8px 0 0; height: 6px; background: #0A0810; box-shadow: inset 0 0 0 1px #241D33; overflow: hidden; }
.battle-info__hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7A2A00, var(--orange), var(--orange-2)); }
.battle-info__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #302945;
}
.bi-stat { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.bi-stat b { font-family: var(--font-body); font-size: 10px; color: #8C7FA5; font-weight: 400; }
.bi-stat em { font-family: var(--font-pixel-en); font-size: 14px; color: var(--cream); font-style: normal; }
.bi-stat__cur { font-family: var(--font-pixel-en); font-size: 8px; color: var(--orange-2); font-style: normal; }
.battle-info__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.battle-info__skills { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.battle-info__skills .skill-block { padding: 6px 8px; }
.battle-info__sub {
  display: block;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8C7FA5;
  margin-bottom: 4px;
}
.battle-info__status { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; min-width: 0; }
.battle-info__status .battle-info__sub { flex-basis: 100%; }
.bi-status {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid #4A405D;
  background: rgba(10, 8, 16, 0.55);
  font-family: var(--font-pixel-han);
  font-size: 11px;
  color: var(--cream);
  white-space: nowrap;
}
.bi-status em { font-family: var(--font-pixel-en); font-size: 8px; color: var(--muted); font-style: normal; }
.bi-status__none { font-family: var(--font-body); font-size: 11px; color: #5B4E72; }
.battle-info__quote { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 6px; border-top: 1px dotted #2A2338; font-family: var(--font-body); font-size: 11px; color: #8C7FA5; }

.speed-group { display: inline-flex; }
.speed-btn { min-width: 46px; min-height: 38px; }

/* ---------------- 19.11 结算 / 赛程小修 ---------------- */
.result__tags .tag { font-size: 12px; }
.roster-mini__item {
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  min-height: 30px;
  padding: 2px 4px;
  cursor: pointer;
}
.roster-mini__item:hover { color: var(--orange-2); }
.roster-mini__item.is-dead { opacity: 0.4; }

/* ---------------- 19.12 移动端 bottom sheet ---------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 7, 0.72);
}
.sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 84dvh;
  display: flex;
  flex-direction: column;
  border: 2px solid #4A405D;
  border-bottom: 0;
  background: linear-gradient(180deg, #1A1527 0%, #0B0912 100%);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7), inset 0 0 0 1px #05040A;
  animation: sheet-in 160ms steps(3, end) both;
  outline: none;
}
@keyframes sheet-in {
  0% { transform: translateY(18px); opacity: 0.6; }
  100% { transform: none; opacity: 1; }
}
.sheet__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 8px;
  border-bottom: 2px solid #2B2438;
  padding-top: calc(10px + env(safe-area-inset-top, 0px) * 0);
}
.sheet__head-text { min-width: 0; }
.sheet__kicker { display: block; font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.14em; color: #6E6088; }
.sheet__title { margin: 0; font-family: var(--font-pixel-han); font-size: 20px; font-weight: 400; letter-spacing: 0.08em; color: var(--cream); }
.sheet__close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid #4A405D;
  background: rgba(10, 8, 16, 0.6);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.sheet__close:hover { border-color: var(--orange); }
.sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.sheet__body .detail-card { border: 0; background: transparent; box-shadow: none; padding: 0; }
.sheet__body .detail-card__actions { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, rgba(11, 9, 18, 0.95) 30%); padding-top: 10px; }

/* ---------------- 19.13 断点：1440 / 1240 / 1024 / 900 / 768 / 390 ---------------- */
@media (max-width: 1440px) {
  .lobby__grid { grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); }
  .nav-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-card__desc { -webkit-line-clamp: 2; }
  .codex__body { grid-template-columns: minmax(0, 1fr) 344px; }
  .codex__grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
  .fav-card__name { font-size: 30px; }
  .orb--hero { width: 104px; height: 104px; }
  .fav-card__ring { width: 112px; height: 112px; }
  .map-entry { grid-template-columns: 132px minmax(0, 1fr); }
  .map-entry__preview { width: 132px; height: 132px; }
}

@media (max-width: 1240px) {
  /* 1024 桌面仍保留选球详情独立滚动（覆盖 v1.1 的隐藏规则） */
  :root { --dossier-w: 300px; }
  .roster__body { grid-template-columns: minmax(0, 1fr) var(--dossier-w); }
  .dossier { display: block; }
  .card-detail { display: none !important; }
  .ball-card { padding-bottom: 11px; }
  .roster__grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); grid-auto-rows: minmax(250px, 1fr); }
  .lobby__grid { grid-template-columns: minmax(0, 1fr); }
  .lobby { overflow-y: auto; }
  .lobby__fav { min-height: 360px; }
  .lobby__modes { min-height: 360px; }
  .mode-cards--lobby { grid-template-rows: 1fr 1fr; }
  .maps__list { grid-template-columns: minmax(0, 1fr); }
  .codex__body { grid-template-columns: minmax(0, 1fr) 316px; }
  .guide-modes { grid-template-columns: minmax(0, 1fr); }
  .battle-info__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .nav-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .codex__body { grid-template-columns: minmax(0, 1fr); }
  .codex__detail { display: none; }
  .codex__grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .map-entry { grid-template-columns: 112px minmax(0, 1fr); }
  .map-entry__preview { width: 112px; height: 112px; }
}

@media (max-width: 900px) {
  :root { --screen-pad: 10px 10px 10px; }
  .cabinet { border-left: 0; border-right: 0; }
  .marquee { flex-wrap: nowrap; padding: 7px 10px; gap: 8px; min-height: 52px; }
  .brand-en { font-size: 18px; }
  .brand-han { font-size: 11px; }
  .marquee__center { overflow: hidden; }
  .marquee__center .mode-chip { display: none; }
  .marquee__center .mode-chip:first-child { display: inline-flex; }
  .marquee__ver { display: none; }
  .marquee-btn--back { min-height: 40px; }
  .page__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page__actions { width: 100%; justify-content: flex-start; }
  .page__title { font-size: 22px; }
  .page__sub { font-size: 11px; }
  .screen { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px) * 0); }
  .lobby__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lobby__fav { min-height: 0; }
  .lobby__modes { padding: 10px 11px; min-height: 300px; }
  .fav-card { padding: 10px 11px 12px; }
  .fav-card__stage { min-height: 116px; gap: 12px; }
  .fav-card__ring { display: none; }
  .orb--hero { width: 92px; height: 92px; }
  .fav-card__name { font-size: 28px; }
  .fav-card__stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-card { min-height: 70px; }
  .nav-card__desc { -webkit-line-clamp: 2; }
  .lobby__foot { font-size: 9px; }

  .codex__tools { padding: 7px 8px; }
  .search-box { flex-basis: 100%; max-width: none; height: 44px; }
  .codex__count { margin-left: 0; }
  .codex__grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 7px; }
  .filter-chip { min-height: 40px; padding: 6px 10px; }
  .codex-card { padding: 8px 9px 9px; }
  .orb--codex { width: 36px; height: 36px; }
  .codex-card__name { font-size: 14px; }
  .maps__list { gap: 8px; }
  .map-entry { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .map-entry__preview { width: 100%; height: 120px; }
  .guide-grid, .guide-maps, .effect-grid, .tag-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; min-height: 44px; padding: 9px 12px; }
  .patch-toolbar { padding: 7px 8px; }
  .patch-toolbar .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .patch-toolbar .filter-row::-webkit-scrollbar { display: none; }
  .patch-count { margin-left: 0; }
  .patch-hero { padding: 9px 10px; }
  .change-row { grid-template-columns: minmax(72px, 1fr) auto auto minmax(0, 1.2fr); gap: 6px; font-size: 11px; }
  .patch-entry__target { flex-basis: 100%; border-left: 0; padding-left: 0; }
  .sys-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { padding-right: 2px; }
  .setting-row { gap: 6px; padding: 9px 0; }
  .about-list { grid-template-columns: minmax(0, 1fr); }

  /* 选球页移动端：单列卡片 + bottom sheet 详情 */
  .roster { gap: 8px; }
  .roster__head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .roster__counter { align-self: flex-start; }
  .roster__sub { display: none; }
  .roster__context { gap: 7px; }
  .roster__context-actions { width: 100%; }
  .roster__body { display: block; min-height: 0; overflow-y: auto; }
  .dossier { display: none !important; }
  .roster__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 7px; }
  .ball-card { padding: 8px 8px 9px; gap: 6px; }
  .ball-card__name { font-size: 14px; }
  .ball-card__skills .skillline__desc { -webkit-line-clamp: 1; }
  .ball-card__detail-hint { display: none; }
  .roster__actions .btn { min-height: 44px; }
  .pick-chip { min-height: 40px; }
  .lineup-strip { display: none; }
  .roster__bar { flex-direction: column; align-items: stretch; gap: 7px; }
  .roster__actions { width: 100%; }
  .roster__actions .btn { flex: 1 1 0; }

  /* 战斗：底部面板改为贴底 sheet，触控更大 */
  .screen--battle { padding: 8px 8px 6px; }
  .hp-board { padding: 6px 6px 7px; }
  .panel-head { flex-wrap: wrap; gap: 6px; }
  .hp-hint { display: none; }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .hp-grid--duel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-row { min-height: 44px; grid-template-columns: 8px minmax(44px, 0.8fr) minmax(26px, 1.1fr) 34px minmax(0, auto) 14px; gap: 4px; padding: 4px 5px; }
  .hp-ident .hp-name { font-size: 12px; }
  .hp-status .st { font-size: 9px; padding: 0 3px; }
  .battle-info {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    max-height: 62dvh;
    border: 2px solid var(--orange);
  }
  .battle-info__stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .battle-info__hp b { font-size: 22px; }
  .speed-btn { min-width: 52px; min-height: 44px; }
  .btn--ctrl { min-height: 44px; }
  .marquee__center .timer__value { font-size: 16px; }

  .sheet__panel { max-height: 88dvh; border-left: 0; border-right: 0; width: 100%; }
}

@media (max-width: 768px) {
  .nav-cards { grid-template-columns: minmax(0, 1fr); }
  .nav-card { min-height: 62px; }
  .fav-card__stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .fstat__k { font-size: 10px; }
  .roster__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs--guide .tab-btn { padding: 8px 10px; font-size: 12px; }
  .page__actions .btn { flex: 1 1 auto; min-height: 44px; }
}

@media (max-width: 480px) {
  :root { --screen-pad: 8px 8px 8px; }
  .brand-en { font-size: 16px; }
  .brand-han { display: none; }
  .marquee { min-height: 46px; }
  .page__title { font-size: 20px; }
  .lobby__modes { min-height: 0; }
  .fav-card__stage { min-height: 100px; }
  .orb--hero { width: 78px; height: 78px; }
  .fav-card__name { font-size: 24px; }
  .mode-card--lobby { padding: 10px 11px; }
  .mode-card__name { font-size: 20px; }
  .mode-card__desc { -webkit-line-clamp: 2; }
  .nav-card__desc { -webkit-line-clamp: 2; }
  .codex__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orb--codex { width: 32px; height: 32px; }
  .codex-card__stats { gap: 5px; }
  .roster__grid { grid-template-columns: minmax(0, 1fr); }
  .ball-card__skills .skillline__desc { -webkit-line-clamp: 2; }
  .battle-info__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .battle-info__hp { margin-left: 0; }
  .hp-row { grid-template-columns: 8px minmax(40px, 0.8fr) minmax(22px, 1fr) 30px minmax(0, auto); }
  .hp-info { display: none; }
  .hp-status .st:nth-child(n+3) { display: none; }
  .filter-chip { font-size: 11px; padding: 5px 8px; }
}

/* 矮屏：1600×600 这类宽扁视口 */
@media (max-height: 720px) and (min-width: 901px) {
  .lobby__foot { display: none; }
  .fav-card__bio, .fav-card__quote { display: none; }
  .fav-card__stage { min-height: 108px; }
  .nav-card { min-height: 56px; }
  .nav-card__desc { -webkit-line-clamp: 1; }
  .lobby__nav { padding-top: 7px; padding-bottom: 8px; }
  .page__sub { display: none; }
  .codex__tools { padding: 5px 8px; }
  .mode-card--lobby .mode-card__desc { display: none; }
}

@media (max-height: 780px) and (min-width: 901px) {
  .lobby__fav { min-height: 300px; }
  .mode-cards--lobby { grid-template-rows: 1fr 1fr; }
}

/* 减少动效（手动开关 + 系统偏好一致） */
.reduce-motion .orb--hero,
.reduce-motion .sheet__panel,
.reduce-motion .screen.is-enter,
.reduce-motion .fav-card__halo { animation: none !important; }
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* 安全区（刘海屏 / 底部 Home 条） */
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .marquee { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
    .screen { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
    .tabbar { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  }
}


/* ================================================================
 * 20. v1.2 走查修复：滚动容器 / 移动端柜头 / 卡片高度 / 筛选行
 * ================================================================ */

/* 大厅：低于 1240 改为纵向滚动，禁止 flex 收缩造成内容重叠 */
@media (max-width: 1240px) {
  .lobby__grid { flex: 0 0 auto; }
  .lobby__fav { flex: 0 0 auto; min-height: 340px; }
  .lobby__modes { flex: 0 0 auto; }
}
@media (max-width: 900px) {
  .lobby__fav { min-height: 330px; }
  .lobby__grid { gap: 8px; }
  .lobby { gap: 8px; }
}

/* 桌面大厅：喜欢的小球内容垂直居中，避免下半张卡大片留白 */
@media (min-width: 1241px) {
  .fav-card { justify-content: center; }
  .fav-card__actions { margin-top: 4px; }
}

/* 选球卡：加高一点，容纳 tag + 属性 + 双技能；隐藏已废弃的「详情」角标 */
.ball-card__detail-hint { display: none !important; }
@media (min-width: 1241px) {
  .roster__grid { grid-auto-rows: minmax(272px, 1fr); }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .roster__grid { grid-auto-rows: minmax(258px, 1fr); }
}

/* 移动端柜头：普通页面只留品牌 + 返回；战斗页两行紧凑布局 */
@media (max-width: 900px) {
  .marquee { flex-wrap: nowrap; }
  .marquee__center { display: none; }
  .marquee__right { margin-left: auto; }
  .marquee--battle {
    flex-wrap: wrap;
    row-gap: 5px;
    align-items: center;
    padding: 6px 8px;
  }
  .marquee--battle .marquee__brand { display: none; }
  .marquee--battle .marquee__right { display: none; }
  .marquee--battle .marquee__center {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    overflow: visible;
    min-width: 0;
  }
  .marquee--battle .timer {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 2px 9px;
  }
  .marquee--battle .timer__value { font-size: 18px; }
  .marquee--battle .battle-meta { flex: 1 1 120px; min-width: 0; }
  .marquee--battle .battle-meta__badges { display: none; }
  .marquee--battle .battle-meta__line {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .marquee--battle .battle-controls {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
  }
  .marquee--battle .battle-controls .btn--ctrl {
    min-height: 40px;
    padding: 5px 10px;
    font-size: 11px;
  }
  .marquee--battle .speed-group { margin-left: auto; }
  .marquee--battle .speed-btn { min-width: 46px; min-height: 40px; }
  .marquee--battle #btn-pause { flex: 0 0 auto; }
  .marquee-btn__txt { display: none; }
  .marquee-btn--back { min-width: 44px; justify-content: center; }
}

/* 选球页移动端：详情走 bottom sheet，上下文压缩成可滚动一行 */
@media (max-width: 900px) {
  .roster__badges { display: none; }
  .roster__context { flex-direction: column; align-items: stretch; gap: 5px; padding: 6px 8px; }
  .roster__picks { flex-direction: column; gap: 4px; width: 100%; }
  .pick-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .pick-row::-webkit-scrollbar { display: none; }
  .pick-row__label { flex: 0 0 auto; }
  .pick-chips { flex-wrap: nowrap; }
  .roster__context-actions { width: auto; align-self: flex-start; }
  .roster__context-actions .btn { min-height: 34px; padding: 4px 10px; font-size: 11px; }
  .roster__body { padding-right: 0; }
}

/* 玩法 / 更新日志 tab：窄屏换行，避免抽屉外的横向滚动 */
@media (max-width: 900px) {
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tabs--guide .tab-btn { flex: 1 1 30%; justify-content: center; }
  .tabs--patches .tab-btn { flex: 1 1 40%; justify-content: center; }
}

/* 数据更新：字段与数值更紧凑，避免旧值被推到行尾 */
.change-row {
  grid-template-columns: minmax(140px, 220px) minmax(72px, auto) 16px minmax(0, auto);
  justify-content: start;
  column-gap: 8px;
}
.change-row__before { text-align: right; }
@media (max-width: 900px) {
  .change-row { grid-template-columns: minmax(96px, 1fr) auto 14px minmax(0, 1.2fr); column-gap: 6px; }
}

/* 390 手机：战斗页紧凑 */
@media (max-width: 480px) {
  .marquee--battle .battle-meta { display: none; }
  .marquee--battle .timer { flex: 0 0 auto; }
  .marquee--battle .battle-controls { flex-wrap: wrap; }
  .marquee--battle #btn-pause { flex: 1 1 auto; }
  .marquee--battle .btn--danger { flex: 0 0 auto; }
  .marquee--battle .speed-group { margin-left: 0; }
  .battle-info { left: 6px; right: 6px; max-height: 66dvh; }
  .battle-info__actions { margin-left: 0; }
  .battle-info__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .patch-entry__target { display: none; }
}

/* 移动端触控最小 44px 兜底（可点元素） */
@media (max-width: 900px) {
  .tabbar__item,
  .btn,
  .filter-chip,
  .pick-chip,
  .hp-row,
  .sheet__close,
  .marquee-btn--back { min-height: 44px; }
  .speed-btn { min-height: 44px; }
}

/* 选球卡内容顶对齐（不再 space-between 造成大块空隙） */
.ball-card { justify-content: flex-start; }
.ball-card__skills { flex: 0 1 auto; }
.stat__bar { margin-top: 1px; }

/* 大厅喜欢的小球：补充技能行 + 背景 ID 水印，填充纵向空间 */
.fav-card__ghost {
  position: absolute;
  right: 10px;
  bottom: 46px;
  font-family: var(--font-pixel-en);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 244, 220, 0.05);
  pointer-events: none;
  user-select: none;
}
.fav-card__skills { display: flex; gap: 7px; flex-wrap: wrap; }
.fav-skill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 2px 8px 2px 3px;
  border: 1px solid #3A3150;
  background: rgba(10, 8, 16, 0.5);
  font-family: var(--font-body);
  font-size: 11px;
  color: #B6A9C9;
}
.fav-skill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  color: var(--cyan);
  font-family: var(--font-pixel-han);
  font-size: 11px;
  font-style: normal;
}
.fav-skill i.is-active { color: var(--orange-2); }
.orb--hero { width: 128px; height: 128px; }
.fav-card__name { font-size: 38px; }
.fav-card__ring { width: 142px; height: 142px; left: 2px; }
.fav-card__bio { margin-top: 2px; }

/* 选球卡：提示文案贴底 + 属性条加粗 */
.ball-card__bio { margin-top: auto; }
.stat__bar { height: 4px; }

@media (max-width: 900px) {
  .fav-card__ghost { font-size: 46px; bottom: 40px; }
  .orb--hero { width: 92px; height: 92px; }
  .fav-card__name { font-size: 26px; }
  .fav-card__skills { gap: 5px; }
  .fav-skill { font-size: 10px; min-height: 28px; }
}

/* 地图图鉴：.map-preview 的 grid-area:preview 会落到隐式网格，强制归位 */
.map-entry .map-preview {
  grid-area: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.map-entry { align-items: start; }
.map-entry__facts dd { word-break: normal; }
@media (min-width: 601px) and (max-width: 900px) {
  .codex__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 900px) {
  .map-entry__body { gap: 4px; }
  .map-entry__preview { max-width: 220px; }
  .map-entry__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 窄屏数据更新：筛选与图例换行，减少纵向占用 */
@media (max-width: 900px) {
  .patch-toolbar .filter-row { flex-wrap: wrap; overflow: visible; }
  .patch-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .patch-legend__item { padding: 6px 8px; }
  .patch-hero__note { font-size: 11px; }
  .patch-entry { padding: 9px 10px 10px; }
  .patch-entry__summary { font-size: 11px; }
}
@media (max-width: 480px) {
  .patch-legend { grid-template-columns: minmax(0, 1fr); }
}

/* 触控尺寸收口：移动端所有可点控件 >= 44px */
@media (max-width: 900px) {
  .roster__context-actions .btn { min-height: 44px; padding: 6px 12px; }
  .switch { min-height: 44px; }
  .range { height: 44px; }
  .select-box select { min-height: 44px; }
  .marquee--battle .battle-controls .btn--ctrl { min-height: 44px; }
  .marquee--battle .speed-btn { min-height: 44px; }
  .tag-ball { min-height: 44px; padding: 4px 9px; }
  .md-list a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* 设置页：grid 行按内容高度，避免面板被均分拉伸导致内部滑动条溢出 */
.settings-grid { grid-auto-rows: max-content; align-items: start; }
.settings-panel { align-self: start; height: auto; }
.setting-row--slider .setting-row__control { row-gap: 6px; }
.setting-row--slider { align-items: flex-start; }

/* 选球卡在桌面恢复引用文案（v1.1 的矮屏规则会隐藏它） */
@media (min-width: 901px) {
  .ball-card__bio { display: -webkit-box; }
}

/* 选球卡 ID 小标签（避免被「上场」角标裁切） */
.tag--id {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #8C7FA5;
  border-color: #3A3150;
  background: rgba(10, 9, 16, 0.6);
  padding: 1px 4px;
}

/* ================================================================
 * 21. v0.3：战场准备 / 斗士档案 / 像素表情 / 效果提示 / 精简
 * ================================================================ */

/* ---------------- 21.1 共享像素表情画布（BallFaces） ---------------- */
.orb__px {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 84%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  z-index: 1;
}
.orb::after { z-index: 2; }
.orb__face, .orb__num { display: none !important; }
.orb--mini {
  width: 24px;
  height: 24px;
  box-shadow:
    inset -2px -3px 0 rgba(0, 0, 0, 0.3),
    inset 1px 2px 0 rgba(255, 255, 255, 0.14),
    0 0 0 2px #05040A,
    0 0 8px -4px var(--c);
}
.orb--podium {
  width: 40px;
  height: 40px;
  box-shadow:
    inset -3px -4px 0 rgba(0, 0, 0, 0.3),
    inset 2px 3px 0 rgba(255, 255, 255, 0.14),
    0 0 0 2px #05040A;
}
.podium__orb .orb { width: 100%; height: 100%; }
.duel-fighter__face .orb { width: 34px; height: 34px; }
.fighter__wrap .orb--mini { flex: 0 0 auto; }

/* ---------------- 21.2 大厅精简 ---------------- */
.lobby__foot, .lobby__note { display: none !important; }
.section-head__idx, .section-head__note { display: none; }
.section-head { padding-bottom: 5px; margin-bottom: 8px; }
.lobby__nav { padding: 8px 12px 10px; }
.nav-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nav-card {
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  gap: 10px;
}
.nav-card__body { gap: 1px; }
.nav-card__name { font-size: 14px; }
.nav-card__desc { font-size: 11px; line-height: 1.3; color: #8C7FA5; -webkit-line-clamp: 1; }
.nav-card__en, .nav-card__arrow { display: none; }
.nav-card__glyph { width: 34px; height: 34px; font-size: 16px; }
.mode-card--lobby { padding: 12px 14px; }
.mode-card__desc { -webkit-line-clamp: 3; }
.mode-card__tags { display: none; }

/* 大厅展示卡：英文水印 / 收藏状态 / 无 ID */
.fav-card__ghost {
  top: 4px;
  right: 10px;
  bottom: auto;
  font-family: var(--font-pixel-en);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0.03em;
  color: rgba(255, 244, 220, 0.05);
}
.fav-card__state {
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(255, 194, 75, 0.45);
  padding: 1px 7px;
  background: rgba(10, 8, 16, 0.55);
}
.fav-card__state--preview { color: #8C7FA5; border-color: #3A3150; }
.fav-card__id, .tag--id { display: none !important; }
.fav-card.is-swap { animation: fav-swap 240ms steps(3, end) both; }
@keyframes fav-swap {
  0% { opacity: 0.4; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

/* ---------------- 21.3 选球卡矮化 ---------------- */
.ball-card { padding: 8px 9px 9px; gap: 5px; justify-content: flex-start; }
.ball-card__top { min-height: 40px; }
.ball-card__ident { padding-right: 38px; }
.ball-card__tags { margin-top: 1px; }
.ball-card__stats { padding: 4px 0; }
.ball-card__skills { gap: 4px; }
.ball-card__bio { display: none !important; }
.ball-card__detail-hint { display: none !important; }
@media (min-width: 1241px) {
  .roster__grid { grid-auto-rows: minmax(208px, 1fr); }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .roster__grid { grid-auto-rows: minmax(200px, 1fr); }
}
.roster__context { align-items: center; gap: 10px; }
.roster__summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.rs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 2px solid #2B2438;
  background: rgba(10, 8, 16, 0.5);
  color: var(--cream);
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rs-chip--map { color: var(--ma2, var(--cyan)); }
.rs-chip--mech { color: #8C7FA5; }
.rs-chip--mech.is-on { color: var(--danger); border-color: rgba(255, 79, 109, 0.45); }
.rs-chip em { font-family: var(--font-body); font-size: 10px; color: #6E6088; font-style: normal; }
.roster__context-actions { flex: 0 0 auto; }

/* ---------------- 21.4 战场准备 ---------------- */
.screen--prep { display: flex; flex-direction: column; }
.page--prep { flex: 1 1 auto; min-height: 0; }
.prep {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.prep-block__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2A2338;
  margin-bottom: 8px;
}
.prep-block__head b {
  font-family: var(--font-pixel-han);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
}
.prep-block__head em {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #6E6088;
  font-style: normal;
}
.prep__maps {
  min-width: 0;
  padding: 10px 12px 12px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.85), rgba(11, 9, 17, 0.92));
  box-shadow: inset 0 0 0 1px #05040A;
}
.prep-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prep-map {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px 12px;
  border: 2px solid #2B2438;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(25, 21, 36, 0.92), rgba(14, 11, 20, 0.96));
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color 110ms linear, transform 90ms steps(2, end);
}
.prep-map:hover { border-color: var(--ma, var(--orange)); transform: translateY(-1px); }
.prep-map.is-on {
  border-color: var(--ma, var(--orange));
  box-shadow: inset 0 3px 0 var(--ma, var(--orange)), 0 0 0 1px var(--ma, var(--orange)), 0 0 22px -12px var(--ma, var(--orange));
}
.prep-map .map-preview { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.prep-map__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prep-map__top { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.prep-map__name { font-family: var(--font-pixel-han); font-size: 20px; font-weight: 400; letter-spacing: 0.08em; }
.prep-map__en { font-family: var(--font-pixel-en); font-size: 8px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.prep-map__tagline { font-family: var(--font-pixel-han); font-size: 12px; color: var(--ma2, var(--orange-2)); letter-spacing: 0.04em; }
.prep-map__desc { font-family: var(--font-body); font-size: 11px; line-height: 1.5; color: #A99CBD; }
.prep-map__feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  color: var(--ma, var(--orange-2));
  letter-spacing: 0.04em;
}
.prep-map__feature i { width: 6px; height: 6px; background: currentColor; }
.prep-map__pick {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 7px;
  border: 1px solid var(--ma, var(--orange));
  color: var(--ma2, var(--orange-2));
  background: rgba(10, 8, 16, 0.7);
  font-family: var(--font-pixel-han);
  font-size: 11px;
}
.prep__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prep__panel {
  padding: 10px 12px 12px;
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.85), rgba(11, 9, 17, 0.92));
  box-shadow: inset 0 0 0 1px #05040A;
  min-width: 0;
}
.prep-mechs { display: flex; flex-direction: column; gap: 6px; }
.prep-mech {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 2px solid #2B2438;
  background: rgba(10, 8, 16, 0.45);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
}
.prep-mech:hover { border-color: #5B4E72; }
.prep-mech.is-on { border-color: var(--danger); background: rgba(255, 79, 109, 0.07); }
.prep-mech__switch {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #4A405D;
  background: #0A0810;
  box-sizing: border-box;
}
.prep-mech__switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: #6E6088;
  transition: transform 120ms steps(2, end), background 120ms linear;
}
.prep-mech.is-on .prep-mech__switch { border-color: var(--danger); }
.prep-mech.is-on .prep-mech__switch i { transform: translateX(14px); background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.prep-mech__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prep-mech__body b { font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; }
.prep-mech__body em { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.prep-mech__body span { font-family: var(--font-body); font-size: 11px; line-height: 1.5; color: #8C7FA5; }
.prep__summary { display: flex; flex-direction: column; gap: 4px; }
.prep-sum__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted #2A2338;
  font-family: var(--font-body);
  font-size: 12px;
}
.prep-sum__row:last-child { border-bottom: 0; }
.prep-sum__row span { color: #6E6088; min-width: 40px; }
.prep-sum__row b { color: var(--cream); font-weight: 400; }
.prep-sum__row em { color: #8C7FA5; font-size: 11px; font-style: normal; }
.prep__go { min-height: 54px; font-size: 14px; }

/* ---------------- 21.5 斗士 战斗/档案 Tab ---------------- */
.fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 5px 11px;
  border: 2px solid #3A3150;
  background: rgba(10, 8, 16, 0.55);
  color: #A99CBD;
  font-family: var(--font-pixel-han);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.fav-toggle:hover { border-color: var(--gold); color: var(--cream); }
.fav-toggle.is-on { border-color: var(--gold); color: var(--gold); background: rgba(255, 194, 75, 0.08); }
.fav-toggle__star { font-size: 14px; line-height: 1; }
.fighter-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #2A2338;
  margin: 2px 0 8px;
}
.ftab {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: #8C7FA5;
  font-family: var(--font-pixel-han);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ftab em { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.1em; color: #5B4E72; font-style: normal; }
.ftab:hover { color: var(--cream); }
.ftab.is-on { color: var(--cream); border-bottom-color: var(--orange); }
.ftab.is-on em { color: var(--orange-2); }
.fighter-profile { display: flex; flex-direction: column; gap: 9px; }
.fp-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dotted #2A2338;
}
.fp-label {
  flex: 0 0 auto;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange-2);
}
.fp-value { font-family: var(--font-body); font-size: 12px; color: var(--cream); }
.fp-block { display: flex; flex-direction: column; gap: 4px; }
.fp-text { margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.7; color: #B6A9C9; }
.fp-story { color: #A99CBD; }
.fp-relations, .fp-trivia {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fp-relations li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 8px;
  border-left: 2px solid #3A3150;
  background: rgba(10, 8, 16, 0.35);
}
.fp-relations b { font-family: var(--font-pixel-han); font-size: 12px; font-weight: 400; color: var(--cream); }
.fp-relations span { font-family: var(--font-body); font-size: 11px; line-height: 1.6; color: #8C7FA5; }
.fp-trivia { padding-left: 15px; list-style: disc; }
.fp-trivia li { font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #A99CBD; }
.fp-trivia li::marker { color: var(--orange); }
.fp-motto {
  margin: 2px 0 0;
  padding: 6px 10px;
  border-left: 2px solid var(--orange);
  font-family: var(--font-body);
  font-size: 12px;
  color: #8C7FA5;
}
.lore-empty {
  padding: 22px 12px;
  border: 2px dashed #322A44;
  text-align: center;
  color: var(--muted);
}
.lore-empty b { display: block; color: var(--cream); font-size: 13px; margin-bottom: 4px; }
.lore-empty p { margin: 0; font-family: var(--font-body); font-size: 12px; }
.detail-card__id, .codex-card__id, .hp-id, .battle-info__id, .patch-entry__id { display: none !important; }

/* ---------------- 21.6 通用效果词 + tooltip ---------------- */
.fx-word {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  text-decoration: underline dotted;
  text-decoration-color: rgba(84, 230, 255, 0.6);
  text-underline-offset: 2px;
  cursor: help;
  touch-action: manipulation;
}
.fx-word:hover, .fx-word:focus-visible { color: var(--orange-2); text-decoration-color: var(--orange-2); outline: none; }
.fx-tip {
  position: fixed;
  z-index: 300;
  max-width: 280px;
  padding: 8px 10px;
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, #1B1628 0%, #0B0912 100%);
  box-shadow: 0 0 0 2px #05040A, 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.fx-tip[hidden] { display: none !important; }
.fx-tip__head { display: flex; align-items: baseline; gap: 6px; }
.fx-tip__head b { font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; color: var(--cream); }
.fx-tip__head em { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.1em; color: #6E6088; font-style: normal; }
.fx-tip__desc { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 11px; line-height: 1.5; color: #B6A9C9; }
.fx-tip__rule { display: block; margin-top: 4px; padding-top: 4px; border-top: 1px dotted #2A2338; font-family: var(--font-body); font-size: 10px; line-height: 1.5; color: #8C7FA5; }

/* ---------------- 21.7 设置音乐槽 / 杂项 ---------------- */
.music-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.music-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid #3A3150;
  background: rgba(10, 8, 16, 0.5);
  font-family: var(--font-pixel-han);
  font-size: 11px;
  color: #8C7FA5;
}
.music-slot i { width: 6px; height: 6px; background: #4A405D; }
.music-slot em { font-family: var(--font-pixel-body, var(--font-body)); font-size: 10px; font-style: normal; color: #5B4E72; }
.music-slot.is-ready { color: var(--cream); border-color: var(--orange); }
.music-slot.is-ready i { background: var(--good); box-shadow: 0 0 5px var(--good); }
.damage-panel { margin-top: 10px; }
.range[disabled] { opacity: 0.45; cursor: not-allowed; }
.patch-entry__target { flex: 1 1 180px; }
.changelog-source, .changelog-md { display: none !important; }

/* ---------------- 21.8 v0.3 响应式 ---------------- */
@media (max-width: 1240px) {
  .prep { grid-template-columns: minmax(0, 1fr) 280px; }
  .prep-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .prep { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .prep__side { flex-direction: column; }
  .prep__go { position: sticky; bottom: 4px; z-index: 2; }
  .nav-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .screen--prep { padding: 8px 10px; }
  .prep { gap: 8px; padding-right: 0; }
  .prep__maps, .prep__panel { padding: 9px 10px 11px; }
  .prep-maps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prep-map { flex-direction: row; align-items: center; gap: 10px; padding: 8px 9px; }
  .prep-map .map-preview { width: 84px; height: 84px; aspect-ratio: auto; flex: 0 0 auto; }
  .prep-map__body { flex: 1 1 auto; }
  .prep-map__desc { display: none; }
  .prep-map__pick { position: static; align-self: center; margin-left: auto; }
  .prep-mech { min-height: 48px; }
  .prep__go { min-height: 48px; }
  .nav-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-card { min-height: 52px; }
  .nav-card__glyph { width: 30px; height: 30px; font-size: 14px; }
  .fav-card__ghost { font-size: clamp(30px, 9vw, 52px); top: auto; bottom: 8px; right: 8px; }
  .roster__summary { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .roster__summary::-webkit-scrollbar { display: none; }
  .rs-chip { flex: 0 0 auto; min-height: 40px; }
  .fr-tabs, .fighter-tabs { flex-wrap: wrap; }
  .ftab { flex: 1 1 40%; justify-content: center; min-height: 44px; }
  .fx-tip { max-width: min(300px, 78vw); }
  .fx-word { padding: 2px 0; }
}
@media (max-width: 480px) {
  .nav-cards { grid-template-columns: minmax(0, 1fr); }
  .nav-card { min-height: 50px; }
  .prep__summary .prep-sum__row { font-size: 11px; }
  .prep__go { font-size: 13px; }
  .fav-toggle { width: 100%; justify-content: center; }
  .fighter-profile .fp-story { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-word { transition: none; }
  .fav-card.is-swap { animation: none; }
}

/* ---------------- 21.9 走查修复（统计标签 / 选球卡高度） ---------------- */
.ball-card__stats { gap: 4px; padding: 4px 0 5px; }
.ball-card__stats .stat__k {
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ball-card__stats .stat__v { font-size: 12px; line-height: 1.3; }
.ball-card__skills .skillline__desc { -webkit-line-clamp: 2; font-size: 10px; }
@media (min-width: 1241px) {
  .roster__grid { grid-auto-rows: minmax(236px, 240px); align-content: start; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .roster__grid { grid-auto-rows: minmax(232px, 240px); align-content: start; }
}
.dstat { grid-template-columns: 48px minmax(0, 1fr) 40px; }
.dstat__k { white-space: nowrap; font-size: 11px; letter-spacing: 0; }
.dstat__v { font-size: 11px; text-align: right; }
.codex-card__stats { gap: 4px 8px; font-size: 9px; }
.codex-card__stats span { white-space: nowrap; }
.fighter-detail .detail-card__stats { gap: 5px; }
.fighter-detail .detail-card__bio, .fighter-detail .detail-card__quote { margin: 0; }
.fighter-detail .detail-card__skills { margin-top: 2px; }
.fighter-detail .fav-toggle { margin: 1px 0 2px; }

/* 选球卡：紧凑技能 + 标签不叠行 */
.ball-card__skills .skillline { align-items: center; }
.ball-card__stats .stat { gap: 1px; }
.ball-card__stats .stat__k { font-size: 9px; }
.ball-card__stats .stat__v { font-size: 11px; }
.ball-card__stats .stat__bar { height: 3px; }
@media (min-width: 1241px) {
  .roster__grid { grid-auto-rows: minmax(196px, 206px); }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .roster__grid { grid-auto-rows: minmax(192px, 206px); }
}

/* 1024 桌面保留斗士右侧详情（900 以下才走 bottom sheet） */
@media (min-width: 901px) and (max-width: 1080px) {
  .codex__body { grid-template-columns: minmax(0, 1fr) 320px; }
  .codex__detail { display: block; }
  .codex__grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ---------------- 21.10 更新页：历史版本折叠 + CHANGELOG 折叠 ---------------- */
.patch-version {
  border: 2px solid #2B2438;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.82), rgba(11, 9, 17, 0.92));
  margin-bottom: 8px;
  min-width: 0;
}
.patch-version[open] { border-color: #3A3150; }
.patch-version > .patch-version__head {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.patch-version > .patch-version__head::-webkit-details-marker { display: none; }
.patch-version__chev {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--orange-2);
  border-bottom: 2px solid var(--orange-2);
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 120ms steps(2, end);
}
.patch-version[open] > .patch-version__head .patch-version__chev { transform: rotate(45deg) translateY(-1px); }
.patch-version__ver {
  font-family: var(--font-pixel-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.patch-version__date { font-family: var(--font-body); font-size: 11px; color: #8C7FA5; }
.patch-version__count { margin-left: auto; font-family: var(--font-body); font-size: 11px; color: #6E6088; white-space: nowrap; }
.patch-version__body { padding: 2px 12px 12px; min-width: 0; }
.patch-version__note { margin: 0 0 8px; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: #8C7FA5; }
.patch-version__body .sys-grid { margin-bottom: 0; }
.patch-version__body .patch-entry:last-child { margin-bottom: 0; }
.patch-version:hover { border-color: #4A405D; }

/* CHANGELOG 原文恢复：默认折叠，放在系统更新底部 */
.changelog-source { display: block !important; padding: 0; margin-top: 10px; }
.changelog-source > .changelog-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.changelog-source > .changelog-summary::-webkit-details-marker { display: none; }
.changelog-summary__title { font-family: var(--font-pixel-han); font-size: 14px; letter-spacing: 0.08em; color: var(--cream); }
.changelog-source .clog__source { margin-left: auto; }
.changelog-source[open] > .changelog-summary { border-bottom: 1px solid #2A2338; }
.changelog-source__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px dotted #2A2338;
}
.changelog-source__note { flex: 1 1 220px; font-family: var(--font-body); font-size: 11px; color: #6E6088; line-height: 1.5; }
.changelog-source__tools { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.changelog-source .changelog-md { display: block !important; max-height: 360px; overflow-y: auto; padding: 10px 12px; }

@media (max-width: 900px) {
  .patch-version > .patch-version__head { min-height: 48px; padding: 8px 10px; }
  .patch-version__body { padding: 2px 10px 10px; }
  .patch-hero { margin-bottom: 8px; }
  .changelog-source > .changelog-summary { min-height: 48px; padding: 8px 10px; }
  .changelog-source .changelog-md { max-height: 300px; padding: 9px 10px; }
}

/* 结算标题中英分隔：避免“比赛结束FINAL RESULT”粘连 */
.result__kicker .k-en { display: inline-block; margin-left: 6px; }
.rankedresult__text .result__kicker .k-en { margin-left: 6px; }
.champion__kicker .k-en { display: inline-block; margin-left: 8px; }

/* ================================================================
 * 22. v0.4：能量条 / 战斗档案 / 召唤物 / 三角地图 / 边界
 * ================================================================ */

/* ---------------- 22.1 战斗 HUD：能量蓝条 ---------------- */
.hp-bars { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hp-energy {
  position: relative;
  display: block;
  height: 5px;
  background: #071018;
  box-shadow: inset 0 0 0 1px #172433;
  overflow: hidden;
}
.hp-energy__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #1B4F8A, #54E6FF 65%, #BDEFFF);
  transition: transform 120ms linear;
}
.hp-energy.is-near .hp-energy__fill { background: linear-gradient(90deg, #2A6FB8, #7CEBFF 60%, #E8FBFF); box-shadow: 0 0 6px rgba(84, 230, 255, 0.55); }
.hp-energy.is-full .hp-energy__fill { background: linear-gradient(90deg, #54E6FF, #CFFBFF); box-shadow: 0 0 9px rgba(84, 230, 255, 0.9); }
.hp-energy.is-full { box-shadow: inset 0 0 0 1px rgba(84, 230, 255, 0.8), 0 0 8px -2px rgba(84, 230, 255, 0.8); }
.hp-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 0; min-width: 0; }
.hp-enum {
  font-family: var(--font-pixel-en);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #54E6FF;
  font-style: normal;
  white-space: nowrap;
}
.hp-row.is-energy-full { border-color: rgba(84, 230, 255, 0.55); }
.hp-row.is-info { border-color: #54E6FF; box-shadow: inset 0 0 12px -6px #54E6FF; }

/* ---------------- 22.2 技能能量说明 / 卡片能量角标 ---------------- */
.skill-block__energy {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 7px;
  border: 1px solid rgba(84, 230, 255, 0.35);
  background: rgba(84, 230, 255, 0.07);
  color: #8FEBFF;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.skillline__cost {
  margin-left: auto;
  font-family: var(--font-pixel-en);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: #54E6FF;
  white-space: nowrap;
}
.skill-block__cd { display: none !important; }

/* ---------------- 22.3 召唤物栏 ---------------- */
.combat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.combat-grid--solo { grid-template-columns: minmax(0, 1fr); }
.combat-skills { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.combat-summons { min-width: 0; }
.summons-panel {
  border: 2px solid #2B2438;
  background: rgba(10, 8, 16, 0.35);
  padding: 8px 9px 9px;
  min-width: 0;
}
.summons-panel__head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #2A2338;
  margin-bottom: 6px;
}
.summons-panel__head b { font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; color: var(--cream); }
.summons-panel__head em { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.12em; color: #6E6088; font-style: normal; }
.summons-list { display: flex; flex-direction: column; gap: 7px; }
.summon-card {
  border: 1px solid #3A3150;
  border-left: 3px solid var(--st, #8C7FA5);
  background: rgba(10, 8, 16, 0.45);
  padding: 7px 8px 8px;
  min-width: 0;
}
.summon-card__head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.summon-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--st, #8C7FA5);
  color: var(--st, #8C7FA5);
  font-family: var(--font-pixel-han);
  font-size: 13px;
  background: rgba(10, 8, 16, 0.6);
}
.summon-card__ident { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.summon-card__ident b { font-family: var(--font-pixel-han); font-size: 13px; font-weight: 400; letter-spacing: 0.05em; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summon-card__ident em { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.08em; color: #6E6088; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summon-tag {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0 6px;
  border: 1px solid var(--st, #8C7FA5);
  color: var(--st, #8C7FA5);
  background: color-mix(in srgb, var(--st, #8C7FA5) 10%, transparent);
  font-family: var(--font-pixel-han);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.summon-card__desc { margin: 5px 0 0; font-family: var(--font-body); font-size: 11px; line-height: 1.5; color: #8C7FA5; }
.summon-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dotted #2A2338;
}
.summon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: 11px;
}
.summon-row span { color: #6E6088; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summon-row b { color: #D7CCE8; font-weight: 400; text-align: right; white-space: nowrap; }
.summon-live {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dotted #2A2338;
  font-family: var(--font-pixel-han);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #54E6FF;
}

/* ---------------- 22.4 右侧战斗档案 ---------------- */
.battle__side { position: relative; }
.battle__side.has-profile .roster-mini { display: none; }
.battle-profile {
  flex: 0 0 auto;
  min-height: 0;
  max-height: 64%;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid #3A3150;
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(84, 230, 255, 0.07), transparent 62%),
    linear-gradient(180deg, rgba(21, 18, 32, 0.97), rgba(10, 8, 16, 0.99));
  box-shadow: inset 0 0 0 1px #05040A, 0 0 0 1px rgba(84, 230, 255, 0.18);
  padding: 8px 9px 10px;
  scrollbar-width: thin;
  scrollbar-color: #3A3150 transparent;
}
.battle-profile[hidden] { display: none !important; }
.battle-profile::-webkit-scrollbar { width: 7px; }
.battle-profile::-webkit-scrollbar-thumb { background: #332B45; border: 2px solid #100D19; }
.bp-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-head .battle-info__orb { flex: 0 0 auto; }
.bp-close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #4A405D;
  background: rgba(10, 8, 16, 0.6);
  color: var(--cream);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.bp-close:hover { border-color: var(--orange); color: var(--orange-2); }
.bp-vitals { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.bp-hp { font-family: var(--font-pixel-han); font-size: 11px; color: #8C7FA5; }
.bp-hp b { font-family: var(--font-pixel-en); font-size: 15px; color: var(--cream); font-weight: 400; margin-left: 4px; }
.bp-hp em { font-family: var(--font-pixel-en); font-size: 9px; color: #6E6088; font-style: normal; }
.bp-hp i { font-family: var(--font-pixel-han); font-size: 10px; color: #54E6FF; font-style: normal; margin-left: 6px; }
.bp-energy { font-family: var(--font-pixel-han); font-size: 11px; color: #8C7FA5; display: flex; align-items: center; gap: 6px; }
.bp-energy b { font-family: var(--font-pixel-en); font-size: 11px; color: #54E6FF; font-weight: 400; white-space: nowrap; }
.bp-energy__bar { flex: 1 1 auto; height: 5px; background: #071018; box-shadow: inset 0 0 0 1px #172433; overflow: hidden; }
.bp-energy__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1B4F8A, #54E6FF 70%, #CFFBFF); }
.bp-energy.is-full b { color: #CFFBFF; text-shadow: 0 0 8px rgba(84, 230, 255, 0.8); }
.bp-energy.is-full .bp-energy__bar { box-shadow: inset 0 0 0 1px rgba(84, 230, 255, 0.9), 0 0 7px -2px rgba(84, 230, 255, 0.9); }
.battle-profile .battle-info__stats { margin-top: 6px; padding-top: 5px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.battle-profile .bi-stat b { font-size: 9px; }
.battle-profile .bi-stat em { font-size: 12px; }
.battle-profile .bi-stat__cur { font-size: 7px; }
.bp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 7px; min-width: 0; }
.bp-status .battle-info__sub { flex-basis: 100%; margin-bottom: 0; }
.battle-profile .combat-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 7px; }
.battle-profile .skill-block { padding: 5px 6px; gap: 5px; }
.battle-profile .skill-block__name { font-size: 13px; }
.battle-profile .skill-block__desc { font-size: 10px; line-height: 1.45; }
.battle-profile .skill-block__energy { font-size: 10px; margin-top: 3px; }
.battle-profile .summons-panel { padding: 6px 7px 7px; }
.battle-profile .summons-panel__head { margin-bottom: 4px; padding-bottom: 4px; }
.battle-profile .summons-panel__head b { font-size: 12px; }
.battle-profile .summon-card { padding: 5px 6px 6px; }
.battle-profile .summon-card__desc { font-size: 10px; }
.battle-profile .summon-card__head { gap: 5px; }
.battle-profile .summon-card__icon { width: 20px; height: 20px; font-size: 11px; }
.battle-profile .summon-card__ident b { font-size: 12px; }
.battle-profile .summon-tag { font-size: 9px; padding: 0 4px; }
.battle-profile .summon-row { font-size: 10px; }
@media (max-width: 1080px) {
  .battle-profile {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    max-height: min(64dvh, 520px);
    z-index: 90;
    border: 2px solid #54E6FF;
    box-shadow: 0 0 0 2px #05040A, 0 -10px 36px rgba(0, 0, 0, 0.7);
    padding: 10px 11px 12px;
  }
  .battle-profile .combat-grid { grid-template-columns: minmax(0, 1fr); }
  .battle-profile .battle-info__stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bp-close { width: 44px; height: 44px; }
  .battle-profile .battle-info__orb .orb { width: 40px; height: 40px; }
}

/* ---------------- 22.5 三角地图预览 / 图例 ---------------- */
.map-preview--triangle i {
  position: absolute;
  left: 12%;
  top: 9%;
  width: 76%;
  height: 78%;
  background: var(--ma);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: none;
  border: 0;
}
.map-preview--triangle b {
  position: absolute;
  left: 19%;
  top: 22%;
  width: 62%;
  height: 58%;
  background: #0A0812;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: 0;
}
.map-preview--triangle { background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 13px),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 13px),
  #0A0812;
}
.map-glyph--triangle i {
  display: block;
  width: 10px;
  height: 9px;
  background: var(--ba, var(--cyan));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.prep-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1240px) {
  .prep-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .prep-maps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- 22.6 结算：治疗量列 / 排位排名表 ---------------- */
.standings .th-num,
.standings td.num { white-space: nowrap; }
.standings--ranked th,
.standings--ranked td { white-space: nowrap; }
.duel-fighter__stats { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.duel-fighter__stats span { min-width: 56px; }
@media (max-width: 900px) {
  .result__body { overflow-x: auto; }
  .standings { min-width: 520px; }
  .standings--ranked { min-width: 480px; }
  .combat-grid { grid-template-columns: minmax(0, 1fr); }
  .skillline__cost { font-size: 7px; }
}

/* ---------------- 22.7 走查修复：召唤物全宽纵向排列 + 能量条增强 ---------------- */
.combat-grid,
.combat-grid--solo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.combat-skills,
.combat-summons { width: 100%; min-width: 0; }
.combat-skills { display: flex; flex-direction: column; gap: 8px; }
.combat-summons { margin-top: 2px; }
.summons-panel { width: 100%; }
.summons-list { display: flex; flex-direction: column; gap: 8px; }
.summon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
}
.summon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.summon-row span { min-width: 0; }
.summon-row b { flex: 0 0 auto; }
.skill-block { min-width: 0; }
.skill-block > div { min-width: 0; }
.skill-block__desc { overflow-wrap: anywhere; }
.battle-profile .combat-grid { grid-template-columns: none; }
.battle-profile .summon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 能量条更醒目 */
.hp-bars { gap: 3px; }
.hp-energy { height: 7px; box-shadow: inset 0 0 0 1px #1B3042; }
.hp-energy__fill { background: linear-gradient(90deg, #1668B8, #54E6FF 62%, #E6FDFF); }
.hp-energy.is-near { box-shadow: inset 0 0 0 1px rgba(84, 230, 255, 0.65); }
.hp-energy.is-near .hp-energy__fill { box-shadow: 0 0 8px rgba(84, 230, 255, 0.75); }
.hp-energy.is-full { box-shadow: inset 0 0 0 1px #BDF6FF, 0 0 10px rgba(84, 230, 255, 0.85); }
.hp-energy.is-full .hp-energy__fill {
  background: linear-gradient(90deg, #7CEBFF, #E9FEFF 70%, #FFFFFF);
  box-shadow: 0 0 12px rgba(190, 246, 255, 0.95);
  animation: energy-ready 900ms steps(2, end) infinite;
}
@keyframes energy-ready {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}
.hp-row.is-energy-full {
  border-color: rgba(84, 230, 255, 0.7);
  box-shadow: inset 0 0 14px -7px rgba(84, 230, 255, 0.9);
}
.hp-row.is-energy-full .hp-enum { color: #E6FDFF; text-shadow: 0 0 6px rgba(84, 230, 255, 0.9); }
.hp-enum { font-size: 9px; }

/* 斗士详情：右栏召唤物全宽块 */
.fighter-detail .summons-panel,
.recruit-detail .summons-panel { margin-top: 2px; }
@media (min-width: 1241px) {
  .codex__body { grid-template-columns: minmax(0, 1fr) 430px; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .codex__body { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (max-width: 900px) {
  .summon-grid { grid-template-columns: minmax(0, 1fr); }
  .battle-profile .summon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 22.8 能量条最终视觉 + 档案标题 */
.hp-energy { height: 8px; }
.bp-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2A2338;
  font-family: var(--font-pixel-han);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #54E6FF;
}
.bp-kicker em { font-family: var(--font-pixel-en); font-size: 7px; letter-spacing: 0.12em; color: #6E6088; font-style: normal; }
@media (max-width: 900px) {
  .hp-energy { height: 8px; }
  .hp-hint { display: none; }
}

/* ================================================================
 * 23. v0.4.1：技能能量右置 / 选球上下文 / 大厅水印 / 三角细线预览 / 收口
 * ================================================================ */

/* ---------------- 23.1 主动技能：名称右侧能量需求 + 自动释放 ---------------- */
.skill-cost {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(84, 230, 255, 0.42);
  background: rgba(84, 230, 255, 0.07);
  color: #9CEFFF;
  font-family: var(--font-pixel-han);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.skill-cost em {
  font-family: var(--font-pixel-en);
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #54E6FF;
  font-style: normal;
  padding-left: 6px;
  border-left: 1px solid rgba(84, 230, 255, 0.28);
  white-space: nowrap;
}
.skill-cost--mini {
  gap: 4px;
  padding: 0 5px;
  font-size: 8px;
  line-height: 1.5;
  border-color: rgba(84, 230, 255, 0.28);
  background: rgba(84, 230, 255, 0.055);
}
.skill-cost--mini em { font-size: 6px; padding-left: 4px; }
.skill-block__head { align-items: center; row-gap: 3px; }
.skill-block__head .skill-cost { margin-left: auto; }
.skillline__head { align-items: center; }
.skillline__head .skill-cost { margin-left: auto; }
.skill-block__hint {
  display: block;
  margin: 1px 0 4px;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.5;
  color: #B79A5E;
}
.battle-profile .skill-cost { font-size: 9px; padding: 0 5px; gap: 4px; }
.battle-profile .skill-cost em { font-size: 6px; padding-left: 4px; }
.battle-profile .skill-block__hint { font-size: 9px; }
.skill-block__energy, .skillline__cost { display: none !important; }

/* ---------------- 23.2 选球页上下文：只显示已开启机制 ---------------- */
.roster__summary { gap: 6px; }
.rs-chip {
  border-width: 1px;
  padding: 3px 9px;
  border-color: #352C46;
  background: rgba(12, 10, 19, 0.66);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}
.rs-chip--map { border-color: rgba(84, 230, 255, 0.32); background: rgba(84, 230, 255, 0.045); }
.rs-chip--mech.is-on {
  color: #7CFF9E;
  border-color: rgba(124, 255, 158, 0.5);
  background: rgba(124, 255, 158, 0.045);
}
.rs-chip--mech.is-on::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.rs-chip--more { color: #A89DBB; border-color: #3A3150; }
.roster__summary:empty { display: none; }
@media (max-width: 900px) {
  .roster__summary { flex-wrap: wrap; row-gap: 4px; }
  .rs-chip { font-size: 11px; padding: 2px 8px; }
  .roster__context { align-items: flex-start; gap: 8px; }
}

/* ---------------- 23.3 大厅英文水印：移到展示栏底侧，低对比 ---------------- */
.fav-card__ghost {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: block;
  width: 100%;
  margin: 0 0 -2px;
  padding: 0 2px;
  text-align: right;
  font-family: var(--font-pixel-en);
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: rgba(255, 244, 220, 0.045);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.fav-card__actions { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .fav-card__ghost { font-size: clamp(24px, 8vw, 44px); margin-bottom: -1px; }
}

/* ---------------- 23.4 三角地图：细线等边预览 ---------------- */
.map-preview--triangle i,
.map-preview--triangle b { display: none !important; }
.map-preview--triangle { border-color: #2A2338; }
.map-preview__tri {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  overflow: visible;
  display: block;
}
.map-preview__tri-halo {
  fill: none;
  stroke: var(--ma, var(--cyan));
  stroke-width: 6;
  stroke-linejoin: round;
  opacity: 0.12;
  filter: drop-shadow(0 0 5px var(--ma, var(--cyan)));
}
.map-preview__tri-line {
  fill: none;
  stroke: var(--ma, var(--cyan));
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ma, #54E6FF) 55%, transparent));
}
.map-entry__preview { position: relative; }
.map-entry__preview .map-preview { width: 100%; }
.map-glyph--triangle i { display: none; }
.map-glyph--triangle svg { display: block; width: 11px; height: 10px; overflow: visible; }
.map-glyph--triangle polygon {
  fill: none;
  stroke: var(--ba, var(--cyan));
  stroke-width: 1.3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.prep-map.is-on .map-preview__tri-line { stroke: var(--ma2, var(--cream)); }
.prep-map .map-preview { transition: border-color 140ms ease, box-shadow 140ms ease; }
.prep-map.is-on .map-preview { border-color: color-mix(in srgb, var(--ma) 55%, #2A2338); box-shadow: 0 0 18px -10px var(--ma); }

/* ---------------- 23.5 收口：层级 / 留白 / 对比 / 焦点 / 动效 ---------------- */
:root { --focus-ring: #7CEBFF; }
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(84, 230, 255, 0.14);
}
.ball-card:focus-visible,
.prep-map:focus-visible,
.prep-mech:focus-visible,
.nav-card:focus-visible,
.mode-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.section-head { margin-bottom: 2px; }
.page__head { margin-bottom: 4px; }
.panel-head { border-bottom-color: #2A2338; }
.panel-head__en { opacity: 0.9; }
.hp-hint, .roster__hint, .prep-sum__row span, .battle-meta__line { color: #8C7FA5; }
.skill-block__desc, .summon-card__desc, .patch-entry__summary { color: #B6A9C9; }
.btn, .tab-btn, .filter-chip, .speed-btn, .switch, .fav-toggle, .ftab, .sheet__close {
  transition: border-color 130ms ease, background-color 130ms ease, color 130ms ease, box-shadow 130ms ease;
}
.btn:active, .tab-btn:active, .filter-chip:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .tab-btn:hover { border-color: #4A405D; }
  .ball-card:hover { border-color: #4A405D; }
}
@media (prefers-reduced-motion: reduce) {
  .fav-card__ghost, .map-preview__tri-line, .prep-map .map-preview { transition: none !important; animation: none !important; }
}

/* 移动端收口：上下留白与档案安全区 */
@media (max-width: 900px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .page__head { margin-bottom: 6px; }
  .skill-block { padding: 8px 9px; }
  .skill-cost { font-size: 9px; padding: 0 6px; }
  .skill-cost em { font-size: 6px; padding-left: 4px; }
  .battle-profile {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .battle-profile .bp-close { position: sticky; top: 0; z-index: 2; background: #151220; }
}
.map-preview__tri { inset: 2%; width: 96%; height: 96%; }
.map-preview__tri-line { stroke-width: 1.5; }
.map-preview__tri-halo { stroke-width: 5; opacity: 0.10; }

/* 23.6 排位最终排名：输出为主列，治疗量为次列 */
.standings--ranked .num--primary {
  color: var(--cream);
  font-family: var(--font-pixel-en);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(255, 244, 220, 0.18);
}
.standings--ranked th.th-num,
.standings--ranked td.num { text-align: right; }
.standings--ranked td.num:not(.num--primary) { color: #A89DBB; }
.standings--ranked th:nth-child(4),
.standings--ranked td:nth-child(4) { padding-right: 14px; }
.duel-fighter__stats .is-primary { flex: 1 1 72px; }
.duel-fighter__stats .is-primary b { color: var(--gold); }
.duel-fighter__stats .is-primary em { color: var(--cream); font-size: 14px; text-shadow: 0 0 8px rgba(255, 244, 220, 0.15); }
.duel-fighter__stats span:nth-child(4) b { color: #8C7FA5; }
@media (max-width: 900px) {
  .standings--ranked { min-width: 560px; }
  .champion__body { overflow-x: auto; }
  .duel-fighter__stats .is-primary em { font-size: 13px; }
}

/* 23.7 排位最终排名移动端：压缩列宽，保留输出/治疗量 */
@media (max-width: 600px) {
  .standings--ranked { min-width: 0; width: 100%; }
  .standings--ranked th,
  .standings--ranked td { padding: 7px 4px; font-size: 10px; white-space: nowrap; }
  .standings--ranked th:last-child,
  .standings--ranked td.note { display: none; }
  .standings--ranked .fighter__en { display: none; }
  .standings--ranked .fighter__wrap { gap: 4px; }
  .standings--ranked .orb--mini { width: 22px; height: 22px; }
  .standings--ranked td.rank { width: 30px; }
  .standings--ranked .fighter__name { font-size: 10px; }
  .standings--ranked .record { font-size: 10px; }
  .standings--ranked .num--primary { font-size: 11px; }
  .champion__body { overflow-x: visible; }
}

/* ================================================================
 * 24. v0.4.3：技能标签重排 / 能量整备 / 幽灵攻击累积 / 蜂群计数
 * ================================================================ */

/* 24.1 主动技能：kind 与能量一组（上下），名称/英文名在右侧 */
.skill-block__head {
  display: flex;
  align-items: flex-start;
  gap: 2px 8px;
  flex-wrap: wrap;
}
.skill-kind {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.skill-kind .skill-cost {
  margin-left: 0;
  align-self: flex-start;
}
.skill-block__name { align-self: flex-start; }
.skill-block__en { align-self: flex-start; }
.skillline__head {
  display: flex;
  align-items: flex-start;
  gap: 2px 7px;
  flex-wrap: wrap;
}
.skill-kind--mini {
  gap: 1px;
}
.skill-kind--mini .skillline__kind { line-height: 1.3; }
.skill-kind--mini .skill-cost--mini { margin-left: 0; align-self: flex-start; }
.skillline__head .skill-cost { margin-left: 0; }
.skillline__name { align-self: flex-start; }
@media (max-width: 900px) {
  .skill-block__head { gap: 2px 6px; }
  .skill-kind .skill-cost { font-size: 9px; padding: 0 5px; }
  .skill-kind--mini .skill-cost--mini { font-size: 7px; padding: 0 4px; }
}

/* 24.2 战斗档案：幽灵攻击累积 */
.bi-stat__bonus {
  margin-left: 4px;
  font-family: var(--font-pixel-en);
  font-size: 10px;
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 7px rgba(255, 194, 75, 0.3);
  white-space: nowrap;
}
.bp-atk-note {
  margin: 5px 0 0;
  padding: 4px 7px;
  border-left: 2px solid rgba(255, 194, 75, 0.5);
  background: rgba(255, 194, 75, 0.045);
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.5;
  color: #C9B27E;
}
.battle-profile .bi-stat__bonus { font-size: 9px; }

/* 24.3 蜂群召唤物：生成间隔 / 场上数量 */
.summon-live { line-height: 1.5; }
.battle-profile .summon-live { font-size: 10px; }

/* 24.4 模式卡：色点已删除，保持原有纵向节奏 */
.mode-card__pool { display: none !important; }

/* 24. v0.4.3：能量需求移到「主动技能」下方，不再和名称并列 */
.skill-kind {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.skill-kind .skill-cost,
.skill-block__head .skill-cost,
.skillline__head .skill-cost {
  margin-left: 0;
}
.skill-block__head {
  align-items: flex-start;
}
.skillline__head {
  align-items: flex-start;
}
.skill-block__name { line-height: 1.25; }
.skill-block__en { line-height: 1.2; }


/* 24.5 战斗档案五维：3 列布局，攻击力修正值不换行 */
.battle-profile .battle-info__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
}
.battle-profile .bi-stat { min-width: 0; }
.battle-profile .bi-stat b { white-space: nowrap; }
.battle-profile .bi-stat em,
.battle-profile .bi-stat__bonus { white-space: nowrap; }
@media (max-width: 1080px) {
  .battle-profile .battle-info__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bi-stat__val { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; min-width: 0; }
.bi-stat__val em { white-space: nowrap; }
.bi-stat__bonus { margin-left: 0; }

/* 25. v0.4.4：召唤物图案 / 技能名精简 / 蜜蜂尺寸 */
.summon-card__icon {
  width: 32px;
  height: 32px;
  padding: 2px;
  image-rendering: pixelated;
  background: rgba(10, 8, 16, 0.75);
}
.battle-profile .summon-card__icon { width: 28px; height: 28px; }
.summon-card__head .summon-card__icon { image-rendering: pixelated; }

