/* LAST QUARTER · 最后一节 · KUARTER TERAKHIR
   1995 Kaigan High Hardwood, Crimson Jersey, Aged Brass & Coach's Clipboard Vertical 9:16 Cabinet
   Zero web-app SaaS cards, zero border-radius fluff, strict pixel typography throughout:
   PressStart 8px-18px; Sembako 12px-16px; Fusion Pixel ZH 12px-16px under html[data-lang="zh"]. */

@font-face {
  font-family: 'PressStart';
  src: url('fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Sembako';
  src: url('fonts/sembako-pixel-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Sembako';
  src: url('fonts/sembako-pixel-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fusion Pixel Latin';
  src: url('fonts/fusion-pixel-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+00A0-024F, U+2000-2BFF;
}
@font-face {
  font-family: 'Fusion Pixel ZH';
  src: url('fonts/fusion-pixel-zh.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+00B7, U+2014, U+2018-2019, U+201C-201D, U+2026, U+2E80-9FFF, U+3000-303F, U+FF00-FFEF;
}

:root {
  --abyss: #110a09;
  --wood-dk: #221411;
  --wood: #47281e;
  --wood-lt: #6b3d2d;
  --court-dk: #171014;
  --court-card: #22171d;
  --crimson-dk: #631618;
  --crimson: #9e2324;
  --crimson-hi: #d63a35;
  --navy-dk: #162234;
  --navy: #22354f;
  --navy-lt: #335075;
  --brass-dk: #6f4a17;
  --brass: #c5953c;
  --brass-hi: #f6da82;
  --paper: #f3e8ce;
  --paper-dk: #dfd1ae;
  --paper-line: #bfa97c;
  --ink: #231510;
  --ink-soft: #5c4334;
  --good: #256e43;
  --good-hi: #48c77f;
  --warn: #b85d14;
  --warn-hi: #ff9f43;
  --danger: #b5242c;
  --danger-hi: #ff5e6c;
  --sky: #255a8f;
  --sky-hi: #7cc4fa;
  --cjk: 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Sembako', 'Fusion Pixel Latin', var(--cjk), monospace;
  --font-px: 'PressStart', var(--cjk), monospace;
  --font-title: 'PressStart', var(--cjk), monospace;
  --vvh: 100dvh;
}

html[data-lang="zh"] {
  --cjk: 'Fusion Pixel ZH', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --font-body: 'Fusion Pixel ZH', 'Sembako', 'Fusion Pixel Latin', var(--cjk), monospace;
  --font-px: 'Fusion Pixel ZH', 'PressStart', monospace;
  --font-title: 'Fusion Pixel ZH', 'PressStart', monospace;
}
html[data-lang="zh"] * {
  line-break: strict;
  word-break: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }
button, [role="tab"] { touch-action: manipulation; }
textarea, input { user-select: text; -webkit-user-select: text; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, [tabindex]:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 1px; }
.clip-body :focus-visible, .card :focus-visible { outline: 3px solid var(--crimson); outline-offset: 1px; }
#dlg-box:focus { outline: none; }

html, body {
  width: 100%;
  height: 100%;
  background: var(--abyss);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  image-rendering: pixelated;
}

.hidden { display: none !important; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }

/* VERTICAL 9:16 TACTILE 1995 CABINET */
#cabinet {
  position: relative;
  width: min(100vw, 440px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 880px;
  background: var(--wood-dk);
  border: 3px solid var(--brass-dk);
  box-shadow: inset 0 0 0 2px var(--wood), inset 0 0 0 4px #140b09, 0 0 38px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 460px) {
  #cabinet { width: 100vw; max-height: none; border-width: 2px; }
}

/* TACTILE PIXEL BUTTONS — zero border-radius, hard 2px bevels */
.btn {
  appearance: none;
  border: 2px solid #160c09;
  background: var(--wood);
  color: var(--paper);
  font-family: var(--font-px);
  font-size: 9px;
  letter-spacing: 0.3px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: center;
  min-height: 36px;
  line-height: 1.35;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.38);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35);
}
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn.primary {
  background: var(--crimson);
  border-color: #2b090a;
  color: #fff8ea;
  box-shadow: inset 0 2px 0 rgba(255, 196, 176, 0.28), inset 0 -2px 0 rgba(48, 8, 10, 0.55);
}
.btn.gold {
  background: var(--brass);
  border-color: #2c1a05;
  color: #1c1006;
  box-shadow: inset 0 2px 0 rgba(255, 246, 200, 0.45), inset 0 -2px 0 rgba(70, 42, 8, 0.45);
}
.btn.ghost { background: transparent; border-color: var(--wood-lt); color: var(--paper-dk); box-shadow: none; }
.btn.warn { background: #4a1410; border-color: #2b090a; color: #ffd9c9; }
.btn.warn.armed { background: var(--crimson); color: #fff8ea; border-color: var(--brass-hi); }
.btn.full { width: 100%; }
.btn.grow { flex: 1 1 auto; }
.btn.tiny { font-size: 8px; padding: 6px 8px; min-height: 30px; }
.btn.big-cta { font-size: 10px; padding: 11px 12px; min-height: 42px; }
.btn.active {
  border-color: var(--brass-hi);
  background: var(--crimson-dk);
  color: var(--brass-hi);
}
.btn.alert-dot {
  border-color: var(--warn-hi);
  background: #4e230d;
  color: var(--brass-hi);
}
html[data-lang="zh"] .btn { font-size: 12px; padding: 7px 10px; }
html[data-lang="zh"] .btn.tiny { font-size: 11px; padding: 5px 7px; }
html[data-lang="zh"] .btn.big-cta { font-size: 13px; }

/* BOOT GATE */
#boot {
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: repeating-linear-gradient(0deg, #1b100e 0px, #1b100e 16px, #160d0b 16px, #160d0b 32px);
}
.boot-card {
  width: 100%;
  max-width: 348px;
  padding: 18px 16px;
  text-align: center;
  background: var(--wood-dk);
  border: 3px solid var(--brass);
  box-shadow: inset 0 0 0 2px var(--crimson-dk), 0 12px 32px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.boot-eyebrow { font-family: var(--font-px); font-size: 8px; color: var(--brass-hi); letter-spacing: 0.6px; }
.boot-coach { image-rendering: pixelated; border: 2px solid var(--brass); background: #140c0a; }
.boot-title { margin: 2px 0 0; font-family: var(--font-title); font-size: 16px; color: #fff5d6; text-shadow: 2px 2px 0 var(--crimson-dk); }
.boot-zh { font-family: var(--font-px); font-size: 10px; color: var(--brass-hi); }
.boot-bar { width: 100%; height: 12px; background: #120a09; border: 2px solid var(--brass-dk); overflow: hidden; }
#boot-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--crimson-hi) 0%, var(--brass-hi) 100%); transition: width 0.2s steps(12); }
.boot-status { font-family: var(--font-px); font-size: 9px; color: var(--paper); }
.boot-tip { font-family: var(--font-body); font-size: 13px; color: var(--paper-dk); line-height: 1.4; min-height: 36px; }

/* TITLE SCREEN */
#title { background: #12243d; }
#title-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.title-overlay {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.title-overlay > * { pointer-events: auto; }
.title-spacer { flex: 1; pointer-events: none; }
.title-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.lang-row { display: flex; justify-content: flex-end; gap: 5px; }
.lang-pill {
  border: 2px solid var(--brass-dk);
  background: rgba(24, 14, 12, 0.9);
  color: var(--paper);
  font-family: var(--font-px);
  font-size: 9px;
  padding: 5px 8px;
  cursor: pointer;
}
.lang-pill.active { background: var(--crimson); border-color: var(--brass-hi); color: #fff8ea; }
.lang-pill { min-height: 34px; }
.menu-pill { background: rgba(24, 14, 12, 0.9); border-color: var(--brass); color: var(--brass-hi); padding: 5px 10px; }
html[data-lang="zh"] .lang-pill { font-size: 11px; }

.title-panel {
  /* fades in from clear at the top so the train and the crossing read through the card */
  background: linear-gradient(180deg, rgba(24, 14, 12, 0.5) 0%, rgba(24, 14, 12, 0.88) 34%, rgba(24, 14, 12, 0.94) 100%);
  border: 3px solid var(--brass);
  box-shadow: inset 0 0 0 2px var(--wood), 0 8px 26px rgba(0, 0, 0, 0.6);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.title-sub { font-family: var(--font-body); font-size: 13px; line-height: 1.25; font-weight: 700; color: var(--brass-hi); text-align: center; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.slot-card {
  border: 2px solid var(--wood-lt);
  background: #2b1915;
  color: var(--paper);
  padding: 6px 4px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.slot-card.active { border-color: var(--brass-hi); background: #4a1c1d; }
.slot-card.bad { border-color: var(--danger-hi); }
.slot-head { font-family: var(--font-px); font-size: 7px; color: var(--brass-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-body { font-family: var(--font-body); font-size: 12px; color: var(--paper-dk); margin-top: 3px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-lang="zh"] .slot-head { font-size: 10px; }
.ow-box { background: #401317; border: 2px solid var(--danger-hi); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ow-msg { font-family: var(--font-body); font-size: 13px; color: #ffe5e5; line-height: 1.35; }
.ow-btns { display: flex; gap: 6px; justify-content: flex-end; }
.title-actions { display: flex; flex-direction: column; gap: 6px; }
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mode-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 6px 6px; }
.mode-main { font-size: 9px; }
.mode-sub { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0; opacity: 0.85; }
html[data-lang="zh"] .mode-main { font-size: 12px; }
.maker-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.maker-links a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px; font-family: var(--font-px); font-size: 8px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.maker-x { color: var(--paper); background: #120c0a; border: 2px solid var(--wood-lt); }
.maker-x span { font: 15px system-ui, sans-serif; }
.maker-kofi { color: #fff9f0; background: #bd2642; border: 2px solid #2b090a; box-shadow: inset 2px 2px 0 #ff8a9b, inset -2px -2px 0 #691022; text-shadow: 1px 1px 0 #520b19; }
.maker-kofi img { image-rendering: pixelated; }
.maker-links a:active { transform: translateY(1px); }
.title-daily { font-family: var(--font-body); font-size: 12px; color: var(--sky-hi); text-align: center; }

/* GAME CABINET LAYOUT */
#game { display: flex; flex-direction: column; background: var(--wood-dk); }

/* TOP SCOREBOARD HUD — hard 1995 cedar & brass frame */
#hud {
  flex: 0 0 auto;
  background: var(--wood-dk);
  border-bottom: 2px solid var(--brass-dk);
  padding: max(5px, env(safe-area-inset-top)) 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.hud-date {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: #fff4d8;
  background: var(--crimson-dk);
  border: 2px solid var(--brass-dk);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-lang="zh"] .hud-date { font-size: 11px; padding: 3px 6px; }
.hud-btns { display: flex; gap: 4px; flex: 0 0 auto; }
.hud-btn {
  min-height: 34px;
  border: 2px solid #140b09;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-px);
  font-size: 8px;
  padding: 4px 7px;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14);
}
html[data-lang="zh"] .hud-btn { font-size: 11px; padding: 3px 7px; }
.hud-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.hm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #170e0c;
  border: 2px solid var(--wood);
  color: var(--paper);
  padding: 2px 1px 1px;
  line-height: 1.15;
  min-width: 0;
}
.hm-l { font-family: var(--font-px); font-size: 6px; opacity: 0.82; white-space: nowrap; max-width: 100%; overflow: hidden; }
.hm-v { font-family: var(--font-body); font-weight: 700; font-size: 13px; white-space: nowrap; }
html[data-lang="zh"] .hm-l { font-size: 10px; }
.hm.rec { color: var(--brass-hi); border-color: var(--brass-dk); }
.hm.warn { color: var(--warn-hi); border-color: var(--warn); }
.hm.danger { color: var(--danger-hi); border-color: var(--danger); }

/* STAGE VIEWPORT — generous 44% vertical gym/court viewport framed in recessed hardwood */
#stage-wrap {
  flex: 0 0 43%;
  min-height: 215px;
  max-height: 368px;
  background:
    linear-gradient(180deg, rgba(16, 9, 7, 0.55) 0%, rgba(16, 9, 7, 0.18) 50%, rgba(16, 9, 7, 0.62) 100%),
    repeating-linear-gradient(90deg, #1b100d 0px, #1b100d 16px, #241611 16px, #241611 32px);
  border-bottom: 3px solid var(--brass-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 3px 0;
}
#stage {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 240 / 360;
  image-rendering: pixelated;
  display: block;
  border: 2px solid var(--brass-dk);
  box-shadow: 0 0 0 2px #120907, 0 4px 18px rgba(0, 0, 0, 0.72);
}
@media (max-height: 700px) {
  #stage-wrap { flex: 0 0 36%; min-height: 170px; }
}

/* COACH'S CLIPBOARD DECK — authentic warm cream paper & cedar tabs (like GADAI / SIHAOLOU!) */
#clipboard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--wood-dk);
  overflow: hidden;
}
.tab-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 4px 0;
  background: var(--wood-dk);
  border-bottom: 2px solid var(--wood-dk);
}
.tab-btn {
  min-height: 40px;
  border: 2px solid #140b09;
  border-bottom: none;
  background: var(--wood);
  color: var(--paper-dk);
  font-family: var(--font-px);
  font-size: 7.5px;
  padding: 7px 2px 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab-btn.active {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--wood-dk);
  box-shadow: inset 0 3px 0 var(--crimson);
}
html[data-lang="zh"] .tab-btn { font-size: 11px; padding: 6px 2px; }

.clip-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  border-top: 2px solid var(--paper-line);
  padding: 8px 8px max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-title {
  font-family: var(--font-px);
  font-size: 8.5px;
  color: var(--crimson-dk);
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--paper-line);
  padding-bottom: 3px;
  margin-top: 2px;
}
html[data-lang="zh"] .sec-title { font-size: 11.5px; }

.card {
  background: #fbf4e2;
  border: 2px solid var(--wood);
  box-shadow: 2px 2px 0 rgba(35, 21, 16, 0.16);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-card {
  border-color: var(--crimson-dk);
  background: #fdf6e4;
  box-shadow: inset 0 0 0 1px var(--paper-line), 2px 2px 0 rgba(99, 22, 24, 0.22);
}
.hero-card.warm {
  border-color: var(--brass-dk);
  background: #fff6dc;
}
.card-eyebrow { font-family: var(--font-px); font-size: 8px; color: var(--crimson); }
.card-title { font-family: var(--font-px); font-size: 10px; color: var(--ink); line-height: 1.4; }
.card-sub { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); line-height: 1.38; }
html[data-lang="zh"] .card-eyebrow { font-size: 11px; }
html[data-lang="zh"] .card-title { font-size: 13px; }

.match-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rival-name { font-family: var(--font-px); font-size: 11px; color: var(--ink); line-height: 1.35; }
.rival-style { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.rival-ovr-pill {
  font-family: var(--font-px);
  font-size: 7.5px;
  color: var(--paper);
  background: var(--navy);
  border: 2px solid var(--navy-dk);
  padding: 4px 6px;
  text-align: right;
  flex: 0 0 auto;
  max-width: 52%;
  line-height: 1.35;
}
html[data-lang="zh"] .rival-name { font-size: 14px; }
html[data-lang="zh"] .rival-ovr-pill { font-size: 10px; }

.scout-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: #f9eac2;
  border: 2px dashed var(--brass-dk);
  padding: 6px 8px;
  line-height: 1.35;
}
.tac-summary { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--paper-dk);
  border: 1.5px solid var(--paper-line);
  color: var(--ink-soft);
}
.chip.ok { color: var(--good); border-color: var(--good); background: #d9f0e1; }
.warn-strip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #6b1116;
  background: #f9d6d8;
  border: 2px solid var(--danger);
  padding: 5px 7px;
}

/* TRAINING PLANS — tactile clipboard checkboxes */
.plan-list { display: flex; flex-direction: column; gap: 5px; }
.plan-card {
  width: 100%;
  text-align: left;
  border: 2px solid var(--paper-line);
  background: #fbf4e2;
  color: var(--ink);
  padding: 7px 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-card.active {
  border-color: var(--crimson-dk);
  background: #fff3d1;
  box-shadow: inset 4px 0 0 var(--crimson);
}
.plan-name { font-family: var(--font-px); font-size: 8.5px; color: var(--ink); line-height: 1.35; }
.plan-desc { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); }
.plan-hint { font-family: var(--font-body); font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; margin-top: -2px; }
html[data-lang="zh"] .plan-name { font-size: 12px; }

/* PORTRAITS & ROSTER — sports-manga player cards */
.por-badge {
  display: inline-block;
  flex: 0 0 auto;
  image-rendering: pixelated;
  border: 2px solid var(--wood-dk);
  box-shadow: inset 0 0 0 1px var(--brass);
  background-color: #19100e;
  background-repeat: no-repeat;
}
.swap-banner {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-dk);
  border: 2px dashed var(--paper-line);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.swap-banner.active { border-style: solid; border-color: var(--crimson); color: var(--crimson-dk); background: #fff0cc; font-weight: 700; }
.roster-list { display: flex; flex-direction: column; gap: 6px; }
.pl-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbf4e2;
  border: 2px solid var(--paper-line);
  box-shadow: 2px 2px 0 rgba(35, 21, 16, 0.12);
  padding: 7px;
}
.pl-card.picked { border-color: var(--crimson); background: #fce7d6; }
.pl-card.swap-target { border-color: var(--brass-dk); background: #fff5d6; }
.pl-card.susp { opacity: 0.72; border-style: dashed; border-color: var(--danger); }
.pl-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pl-num { font-family: var(--font-px); font-size: 8.5px; color: var(--crimson); }
.pl-name { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-pos { font-family: var(--font-px); font-size: 7.5px; color: var(--ink-soft); }
.pl-ovr { margin-left: auto; font-family: var(--font-px); font-size: 9.5px; color: var(--wood-dk); background: var(--brass-hi); border: 1.5px solid var(--brass-dk); padding: 1px 4px; }
.pl-role { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--sky); }
.pl-bio { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); line-height: 1.28; }
.pl-stats { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--wood); letter-spacing: 0.1px; margin-top: 1px; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.pill { font-family: var(--font-body); font-size: 12px; font-weight: 700; padding: 1px 5px; border: 1.5px solid var(--paper-line); background: var(--paper-dk); color: var(--ink); }
.pill.ok { color: var(--good); border-color: var(--good); background: #ddf2e4; }
.pill.warn { color: var(--warn); border-color: var(--warn); background: #fcebd4; }
.pill.danger { color: var(--danger); border-color: var(--danger); background: #fadadd; }
.pill.bond { color: #8c2345; border-color: #c4748d; background: #fae4ec; }
.pl-avg { font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); }

/* TACTICS */
.tac-list { display: flex; flex-direction: column; gap: 5px; }
.tac-card {
  width: 100%;
  text-align: left;
  border: 2px solid var(--paper-line);
  background: #fbf4e2;
  color: var(--ink);
  padding: 7px 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tac-card.active { border-color: var(--crimson-dk); background: #fcebd8; box-shadow: inset 4px 0 0 var(--crimson); }
.tac-card.counter { box-shadow: inset 4px 0 0 var(--brass); }
.tac-card.active.counter { box-shadow: inset 4px 0 0 var(--crimson), inset -4px 0 0 var(--brass); }
.tac-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tac-name { font-family: var(--font-px); font-size: 8.5px; color: var(--ink); }
html[data-lang="zh"] .tac-name { font-size: 12px; }
.star-tag { color: var(--warn); font-size: 14px; font-weight: 700; }
.tac-desc { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); line-height: 1.3; }

/* LEAGUE STANDINGS & TEAM DIARY */
.standings { display: flex; flex-direction: column; gap: 3px; }
.st-row {
  display: grid;
  grid-template-columns: 24px 1fr 52px;
  align-items: center;
  background: #fbf4e2;
  border: 1.5px solid var(--paper-line);
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.st-row.me { background: #fff0c2; border: 2px solid var(--crimson); color: var(--crimson-dk); font-weight: 700; }
.st-rk, .st-wl { font-family: var(--font-px); font-size: 8.5px; }
.st-wl { text-align: right; }
.hist-list { display: flex; flex-direction: column; gap: 4px; }
.hist-row {
  display: grid;
  grid-template-columns: 24px 1fr 58px;
  align-items: center;
  gap: 6px;
  background: #fbf4e2;
  border: 1.5px solid var(--paper-line);
  padding: 5px 7px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
}
.hist-res { font-family: var(--font-px); font-size: 8.5px; text-align: center; padding: 3px 0; border: 1.5px solid transparent; }
.hist-row.win .hist-res { background: #d6f0de; border-color: var(--good); color: var(--good); }
.hist-row.loss .hist-res { background: #f8d8dc; border-color: var(--danger); color: var(--danger); }
.hist-sc { font-family: var(--font-px); font-size: 8.5px; text-align: right; }
.empty-msg { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-soft); padding: 8px; text-align: center; }

.promise-list { display: flex; flex-direction: column; gap: 4px; }
.promise-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #faecc4;
  border: 2px solid var(--brass-dk);
  padding: 5px 7px;
}
.bond-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bond-cell {
  background: #fbf4e2;
  border: 1.5px solid var(--paper-line);
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bond-nm { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bond-val { font-family: var(--font-px); font-size: 8px; color: #8c2345; }
.log-list { display: flex; flex-direction: column; gap: 4px; }
.log-row {
  display: flex;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  background: #fbf4e2;
  border: 1.5px solid var(--paper-line);
  border-left: 4px solid var(--wood-lt);
  padding: 5px 7px;
  line-height: 1.32;
  color: var(--ink);
}
.log-row.warm { border-left-color: var(--brass-dk); background: #fff7df; }
.log-row.warn { border-left-color: var(--danger); background: #fceaea; }
.log-row.story { border-left-color: var(--sky); }
.log-row.finale { border-left-color: #b8336a; background: #fae6ef; }
.log-wk { font-family: var(--font-px); font-size: 7.5px; color: var(--crimson-dk); flex: 0 0 auto; padding-top: 3px; }

/* LIVE MATCH COACHING DECK — high-contrast 1995 Gymnasium Scoreboard & Sideline Chalkboard */
.match-deck {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--court-dk);
  color: var(--paper);
  padding: 7px 8px max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.live-sb {
  background: #120b0e;
  border: 2px solid var(--brass);
  box-shadow: inset 0 0 0 2px var(--crimson-dk);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sb-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.sb-q { font-family: var(--font-px); font-size: 8.5px; color: var(--brass-hi); }
.sb-mom { font-family: var(--font-px); font-size: 7.5px; padding: 3px 6px; border: 1.5px solid transparent; }
.sb-mom.hot { background: #3b260b; border-color: var(--brass-hi); color: var(--brass-hi); }
.sb-mom.cold { background: #3f1116; border-color: var(--danger-hi); color: var(--danger-hi); }
.sb-mom.even { background: #22171d; border-color: var(--wood-lt); color: var(--paper-dk); }
html[data-lang="zh"] .sb-q { font-size: 11px; }
html[data-lang="zh"] .sb-mom { font-size: 10px; }

.sb-scores { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.sb-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-side.home { justify-content: flex-start; }
.sb-side.away { justify-content: flex-end; }
.sb-team { font-family: var(--font-px); font-size: 8.5px; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-lang="zh"] .sb-team { font-size: 11.5px; }
.sb-num { font-family: var(--font-title); font-size: 18px; color: #fff6de; }
.sb-side.home .sb-num { color: var(--brass-hi); }
.sb-vs { font-family: var(--font-px); font-size: 10px; color: var(--wood-lt); }
.sb-qline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  font-family: var(--font-px);
  font-size: 7.5px;
  color: var(--paper-dk);
  padding-top: 4px;
  border-top: 1px solid rgba(197, 149, 60, 0.25);
}
.sb-qpill { background: #1f1419; border: 1px solid var(--wood); padding: 2px 5px; }
.sb-qpill.cur { color: var(--brass-hi); border-color: var(--brass); background: #33191c; }
.sb-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; font-family: var(--font-body); font-size: 12.5px; color: var(--paper-dk); }
.clutch-badge { color: var(--brass-hi); font-weight: 700; }

.match-actions { display: flex; gap: 5px; }
.coach-bar { display: grid; grid-template-columns: 1.35fr 0.9fr 0.9fr 0.85fr; gap: 4px; }
.coach-bar .btn { font-size: 7.5px; padding: 6px 4px; white-space: nowrap; min-height: 40px; }
html[data-lang="zh"] .coach-bar .btn { font-size: 11px; }
.drawer {
  background: #1d1317;
  border: 2px solid var(--brass);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-title { font-family: var(--font-px); font-size: 8.5px; color: var(--brass-hi); }
html[data-lang="zh"] .drawer-title { font-size: 11px; }
.to-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.sub-group { display: flex; flex-wrap: wrap; gap: 4px; }
.sub-chip {
  border: 2px solid var(--wood-lt);
  background: #2b1a1e;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 7px;
  cursor: pointer;
}
.sub-chip.active { border-color: var(--brass-hi); background: var(--crimson-dk); color: var(--brass-hi); }
.sub-chip.ready { border-color: var(--good-hi); color: var(--good-hi); }
.sub-chip.warn { border-color: var(--warn-hi); color: var(--warn-hi); }
.sub-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.bs-row { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 13px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bs-row.on { color: var(--brass-hi); font-weight: 700; }
.bs-stat { font-family: var(--font-body); font-size: 12.5px; color: var(--paper-dk); }

.final-box { padding: 10px; display: flex; flex-direction: column; gap: 6px; text-align: center; border: 2px solid var(--brass); }
.final-box.win { background: #142c1f; border-color: var(--good-hi); }
.final-box.loss { background: #361318; border-color: var(--danger-hi); }
.final-head { font-family: var(--font-px); font-size: 10px; color: var(--brass-hi); }
.final-mvp { font-family: var(--font-body); font-size: 14px; color: var(--paper); }

.pbp-list { display: flex; flex-direction: column; gap: 4px; }
.pbp-row {
  display: flex;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--court-card);
  border: 1.5px solid #35242b;
  border-left: 4px solid #59444e;
  padding: 5px 7px;
  line-height: 1.3;
  color: var(--paper);
}
.pbp-q { font-family: var(--font-px); font-size: 7.5px; color: var(--brass-hi); flex: 0 0 auto; padding-top: 3px; }
.pbp-row.hot { border-left-color: var(--brass-hi); background: #322417; color: #fff6dc; }
.pbp-row.warm { border-left-color: var(--good-hi); }
.pbp-row.warn { border-left-color: var(--warn-hi); }
.pbp-row.alert { border-left-color: var(--danger-hi); background: #38161c; }
.pbp-row.sub { border-left-color: var(--sky-hi); color: var(--paper-dk); }
.pbp-row.story { border-left-color: #6b5660; }
.pbp-row.timeout { border-left-color: var(--sky-hi); background: #192438; }

/* MODALS & SEISHUUN DIALOGUE — 1995 Sports-Manga / SNES Box */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(12, 7, 7, 0.80);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 8px max(12px, env(safe-area-inset-bottom));
}
#review, #options { align-items: center; }
.dlg-card, .modal-card {
  width: 100%;
  max-width: 416px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--wood-dk);
  border: 3px solid var(--brass);
  box-shadow: inset 0 0 0 2px var(--wood), 0 14px 40px rgba(0, 0, 0, 0.85);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--paper);
}
.dlg-head { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--wood); padding-bottom: 8px; }
.dlg-meta { min-width: 0; flex: 1; }
.dlg-speaker { font-family: var(--font-px); font-size: 8.5px; color: var(--brass-hi); }
.dlg-title { font-family: var(--font-px); font-size: 10px; color: #fff6e0; margin-top: 4px; line-height: 1.35; }
html[data-lang="zh"] .dlg-speaker { font-size: 11px; }
html[data-lang="zh"] .dlg-title { font-size: 13px; }
.dlg-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
  background: #170e0c;
  border: 2px solid var(--wood);
  padding: 9px 10px;
  min-height: 62px;
}
.dlg-choices { display: flex; flex-direction: column; gap: 6px; }
.dlg-choices.dim { opacity: 0.72; }
.btn.choice-btn, .choice-btn {
  min-height: 44px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 10px;
  background: #2f1b17;
  border: 2px solid var(--brass-dk);
  color: #fff6df;
}
.choice-btn:active { background: var(--crimson-dk); border-color: var(--brass-hi); }

/* GRADUATION EPILOGUE REVIEW CARD */
.modal-title { font-family: var(--font-px); font-size: 9px; color: var(--brass-hi); line-height: 1.4; }
html[data-lang="zh"] .modal-title { font-size: 12px; }
.rev-rank { font-family: var(--font-title); font-size: 12px; color: #fff5d6; text-align: center; text-shadow: 2px 2px 0 var(--crimson-dk); }
.rev-total { font-family: var(--font-title); font-size: 18px; color: var(--brass-hi); text-align: center; }
.rev-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.48;
  color: var(--paper);
  background: #170e0c;
  border: 2px solid var(--wood);
  padding: 8px 9px;
}
.rev-bars { display: flex; flex-direction: column; gap: 7px; }
.rev-bar-lbl { display: flex; justify-content: space-between; font-family: var(--font-px); font-size: 8px; color: var(--paper-dk); margin-bottom: 3px; }
html[data-lang="zh"] .rev-bar-lbl { font-size: 11px; }
.rev-track { height: 10px; background: #120908; border: 2px solid var(--wood-lt); overflow: hidden; }
.rev-fill { height: 100%; background: linear-gradient(90deg, var(--crimson-hi) 0%, var(--brass-hi) 100%); }
.rev-stats { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--brass-hi); text-align: center; }
.rev-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }

/* COACH OPTIONS */
.opt-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--wood); padding-bottom: 6px; }
.opt-sec { display: flex; flex-direction: column; gap: 5px; }
.opt-lbl { font-family: var(--font-px); font-size: 8px; color: var(--brass-hi); line-height: 1.6; }
html[data-lang="zh"] .opt-lbl { font-size: 11px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 5px; }
.opt-pill {
  min-height: 40px;
  border: 2px solid var(--wood-lt);
  background: #2b1a16;
  color: var(--paper-dk);
  font-family: var(--font-px);
  font-size: 8px;
  padding: 6px 8px;
  cursor: pointer;
}
.opt-rows { display: flex; flex-direction: column; gap: 6px; }
.opt-line { display: grid; grid-template-columns: minmax(78px, 30%) 1fr; align-items: center; gap: 6px; }
.opt-line .opt-row { gap: 4px; }
.opt-line .opt-pill { flex: 1 1 0; min-width: 0; padding: 6px 4px; }
.opt-name { font-family: var(--font-px); font-size: 8px; color: var(--paper-dk); line-height: 1.5; }
html[data-lang="zh"] .opt-name { font-size: 11px; }
.opt-body { display: flex; flex-direction: column; gap: 12px; }
.opt-sec .btn.tiny { min-height: 40px; flex: 1 1 auto; }
.opt-hint { font-family: var(--font-body); font-size: 12px; color: var(--paper-dk); line-height: 1.4; }
.opt-about { font-family: var(--font-body); font-size: 12px; color: var(--paper-dk); text-align: center; line-height: 1.5; opacity: 0.85; }
.opt-pill.active { border-color: var(--brass-hi); background: var(--crimson-dk); color: var(--brass-hi); }
html[data-lang="zh"] .opt-pill {
  min-height: 40px; font-size: 11px; }
.opt-ta {
  width: 100%;
  background: #120a09;
  color: var(--paper);
  border: 2px solid var(--wood-lt);
  padding: 6px;
  font-family: monospace;
  font-size: 10px;
  resize: none;
}

/* TOAST & ROTATE HINT */
#toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 16px);
  z-index: 60;
  background: var(--wood-dk);
  border: 2px solid var(--brass-hi);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
  color: var(--brass-hi);
  font-family: var(--font-px);
  font-size: 8px;
  padding: 7px 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  max-width: 92%;
  text-align: center;
  line-height: 1.4;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
html[data-lang="zh"] #toast { font-size: 11px; }

#rotate-hint { display: none; }
@media (orientation: landscape) and (max-height: 460px) {
  #rotate-hint {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(17, 10, 9, 0.96);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-family: var(--font-px);
    font-size: 10px;
    color: var(--brass-hi);
    line-height: 1.6;
  }
}

/* NARROW PHONES (320px - 360px) */
@media (max-width: 360px) {
  .hud-metrics { gap: 2px; }
  .hm { font-size: 6.5px; padding: 3px 1px; }
  .tab-btn { font-size: 6.5px; }
  .btn { font-size: 8px; padding: 8px 6px; }
  .btn.choice-btn { font-size: 13px; padding: 8px 9px; }
  .hm-v { font-size: 12px; }
  .hm-l { font-size: 5.5px; }
  .slot-grid { gap: 4px; }
  .slot-head { font-size: 7px; }
  .slot-body { font-size: 11px; }
  .sb-num { font-size: 15px; }
  .to-grid { grid-template-columns: 1fr; }
}

html[data-lang="zh"] .btn.choice-btn { font-size: 14px; }

/* ================================================================== REVIEW INTEGRATION COMPONENTS */
/* Hana's one-time notes (onboarding) */
.note-card {
  background: #e9f3ff;
  border: 2px solid var(--sky);
  box-shadow: 2px 2px 0 rgba(37, 90, 143, 0.25);
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.match-deck .note-card { background: #13233a; border-color: var(--sky-hi); }
.note-eyebrow { font-family: var(--font-px); font-size: 7.5px; color: var(--sky); }
.match-deck .note-eyebrow { color: var(--sky-hi); }
.note-text { font-family: var(--font-body); font-size: 13.5px; line-height: 1.38; color: var(--ink); }
.match-deck .note-text { color: var(--paper); }
.note-card .btn { align-self: flex-end; }
html[data-lang="zh"] .note-eyebrow { font-size: 11px; }

/* Week card: rival sets, binder, plan */
.seed-line { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--crimson-dk); }
.rival-sets { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; color: var(--navy); }
.binder-note { font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); border-left: 3px solid var(--brass); padding: 2px 0 2px 7px; }
.binder-note.locked { opacity: 0.75; font-style: italic; }
.chip.bad { color: var(--danger); border-color: var(--danger); background: #f8d8dc; }
.chip.rot { color: var(--navy); border-color: var(--navy); background: #e1e8f5; }
.plan-mast { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--navy); }

/* Tactics: matchup marks & mastery bars */
.tac-legend { font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); }
.tac-card.weak { box-shadow: inset 4px 0 0 var(--danger); }
.tac-card.active.weak { box-shadow: inset 4px 0 0 var(--crimson), inset -4px 0 0 var(--danger); }
.weak-tag { color: var(--danger); font-size: 13px; font-weight: 700; }
.mast-num { margin-left: auto; font-family: var(--font-body); font-weight: 700; font-size: 12.5px; color: var(--navy); }
.mast-bar { height: 5px; background: var(--paper-dk); border: 1px solid var(--paper-line); }
.mast-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--sky-hi)); }

/* Live match: matchup strip, drawer hints, debrief */
.sb-matchup { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mu-chip {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper-dk);
  background: #1f1419;
  border: 1.5px solid var(--wood);
  padding: 3px 5px;
  overflow-wrap: anywhere;
}
.mu-chip.ok { color: var(--good-hi); border-color: var(--good-hi); }
.mu-chip.bad { color: var(--danger-hi); border-color: var(--danger-hi); }
.drawer-hint { font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; color: var(--paper-dk); }
.sub-chip.ok { border-color: var(--good-hi); }
.sub-chip.bad { border-color: var(--danger-hi); }
.debrief { text-align: left; display: flex; flex-direction: column; gap: 4px; background: rgba(0, 0, 0, 0.25); border: 1.5px solid var(--brass-dk); padding: 6px 8px; }
.debrief-title { font-family: var(--font-px); font-size: 7.5px; color: var(--brass-hi); }
html[data-lang="zh"] .debrief-title { font-size: 11px; }
.debrief-line { font-family: var(--font-body); font-size: 13px; line-height: 1.35; color: var(--paper); padding-left: 10px; position: relative; }
.debrief-line::before { content: '•'; position: absolute; left: 0; }
.debrief-line.good::before { color: var(--good-hi); }
.debrief-line.bad::before { color: var(--danger-hi); }
.debrief-line.warm::before { content: '★'; color: var(--brass-hi); }

/* League & diary */
.st-row.top:not(.me) { border-color: var(--brass-dk); }
.legacy-line { font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; color: var(--navy); background: #e1e8f5; border: 1.5px solid var(--navy); padding: 5px 7px; }
.promise-pill.open { background: #f3ead6; border-style: dashed; color: var(--ink-soft); }
.bond-cell.trust { border-color: var(--brass-dk); background: #fff3cf; }
.pill.trust { border-color: var(--brass-dk); }
.log-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.log-row.train { opacity: 0.7; }

/* Graduation review: promises & epilogue */
.rev-promises { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--brass-hi); text-align: center; }
.homage { margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.45; color: var(--paper-dk); text-align: center; font-style: italic; border-top: 1px solid var(--wood-lt); padding-top: 7px; }
.rev-epi { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.rev-epi-title { font-family: var(--font-px); font-size: 7.5px; color: var(--brass-hi); }
html[data-lang="zh"] .rev-epi-title { font-size: 11px; }
.rev-epi-row { display: flex; gap: 7px; align-items: flex-start; }
.rev-epi-row .por-badge { flex: 0 0 auto; }
.rev-epi-txt { font-family: var(--font-body); font-size: 13px; line-height: 1.35; color: var(--paper); }
