/* =========================================================
   B体育看台 · /assets/site.css
   夜战记分册 —— 共享外壳与基础组件
   ========================================================= */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, picture { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; }

table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ink: #081A15;
  --pit: #0F2B23;
  --paper: #F7F2E7;
  --paper-warm: #E8DFC9;
  --cyan: #39E6C3;
  --orange: #FF7A3D;
  --mist: #9DB8AE;
  --black: #04100C;
  --gold: #F2C14E;
  --line: #2E4A41;

  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-head: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 92px;

  --step-0: 1rem;
  --step-1: clamp(1.03rem, 0.4vw + 0.94rem, 1.14rem);
  --step-2: clamp(1.32rem, 1.3vw + 1rem, 1.72rem);
  --step-3: clamp(1.85rem, 2.4vw + 1rem, 2.55rem);
  --step-4: clamp(2.5rem, 5vw + 1rem, 4.4rem);
  --step-5: clamp(2.9rem, 8vw, 6rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cut: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}

/* ---------- base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.35vw + 14.6px, 17px);
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- shell / section ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(38px, 6vw, 86px); }

.section--paper {
  background: var(--paper-warm);
  color: var(--ink);
}

.section-head { max-width: 64ch; margin-bottom: clamp(18px, 3vw, 32px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: 0.45em;
}

.section-lede {
  font-size: var(--step-1);
  line-height: 1.8;
  color: rgba(247, 242, 231, 0.76);
  margin-top: 0.7em;
  max-width: 56ch;
}

.section--paper .eyebrow { color: var(--pit); }
.section--paper .section-lede { color: rgba(8, 26, 21, 0.74); }

/* ---------- stand layout ---------- */
.stand-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.stand-main { min-width: 0; }

.stand-rail { min-width: 0; }

@media (min-width: 900px) {
  .stand-shell { grid-template-columns: 236px minmax(0, 1fr); }
  .stand-rail {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    border-right: 1px solid var(--line);
    padding-right: 18px;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: transparent;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header[data-state="scrolled"] {
  background-color: rgba(15, 43, 35, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -22px #000;
}

.site-header[data-nav-state="open"] {
  background-color: rgba(15, 43, 35, 0.97);
  border-bottom-color: var(--line);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 120;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--cyan);
  clip-path: var(--cut);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 7px var(--gutter) 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 5px;
}

.rail-note { font-size: inherit; letter-spacing: inherit; }

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 2px rgba(57, 230, 195, 0.14);
  animation: lamp-breathe 3.8s ease-in-out infinite;
}

@keyframes lamp-breathe {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 0 2px rgba(57, 230, 195, 0.12); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(57, 230, 195, 0.16); }
}

.rail-round {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(57, 230, 195, 0.36);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.rail-round:hover,
.rail-round:focus-visible {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
}

.header-bar {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px var(--gutter) 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 34px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  background: var(--cyan);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.22s, color 0.22s;
}

.brand:hover .brand-mark { background: var(--gold); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--cut);
  transition: border-color 0.2s, color 0.2s;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.nav-eyebrow,
.nav-note { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.3vw, 18px);
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(247, 242, 231, 0.78);
  transition: color 0.2s;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.2s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.nav-list a:hover { color: var(--paper); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] { color: var(--cyan); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] .nav-idx { color: var(--cyan); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--cyan);
  clip-path: var(--cut);
  transition: background-color 0.2s, color 0.2s;
}

.nav-cta:hover,
.nav-cta:focus-visible { background: var(--gold); color: var(--ink); }

.scroll-progress {
  height: 2px;
  background: rgba(157, 184, 174, 0.14);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

@media (max-width: 1080px) {
  .nav-idx { display: none; }
  .nav-list a { font-size: 0.84rem; }
  .nav-cta { padding: 8px 12px; font-size: 0.78rem; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: block;
    max-height: 82vh;
    overflow-y: auto;
    padding: 16px clamp(16px, 5vw, 30px) calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--pit);
    border-top: 1px solid rgba(57, 230, 195, 0.34);
    box-shadow: 0 -26px 60px -28px #000;
    clip-path: polygon(0 16px, 26px 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(112%);
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--mist);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
  }

  .nav-list li + li { border-top: 1px solid rgba(46, 74, 65, 0.72); }

  .nav-list a {
    width: 100%;
    justify-content: space-between;
    padding: 13px 2px;
    font-size: 1rem;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--cyan);
    padding-left: 12px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 13px 16px;
    font-size: 0.92rem;
  }

  .nav-note {
    display: block;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
    text-align: center;
  }
}

@media (max-width: 560px) {
  .rail-note { display: none; }
  .header-rail { justify-content: flex-end; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  background-image: radial-gradient(120% 90% at 8% 0%, rgba(57, 230, 195, 0.1), transparent 62%);
  color: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 5vw, 60px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 18px);
  background-repeat: repeat-x;
  opacity: 0.9;
}

.footer-deck {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
  border-bottom: 1px dashed var(--line);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.footer-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  background: var(--cyan);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
}

.footer-summary {
  flex-basis: 100%;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.78;
  color: rgba(247, 242, 231, 0.72);
}

.footer-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

.footer-badge-round {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.42);
  background: rgba(242, 193, 78, 0.08);
  padding: 3px 9px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.footer-badge-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-columns {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 34px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 38px);
}

.footer-col { min-width: 0; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-links { display: grid; gap: 5px; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-size: 0.94rem;
  color: rgba(247, 242, 231, 0.82);
  transition: color 0.2s;
}

.footer-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width 0.24s var(--ease), background-color 0.24s;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--cyan); }

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
  width: 18px;
  background: var(--cyan);
}

.footer-meta {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 24px) var(--gutter) clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.footer-contact-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.footer-contact-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, 0.56);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(157, 184, 174, 0.86);
}

@media (max-width: 860px) {
  .footer-deck { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 680px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- buttons / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  clip-path: var(--cut);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover,
.btn--cyan:focus-visible { background: var(--gold); color: var(--ink); }

.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.btn--line { border-color: var(--cyan); color: var(--cyan); }
.btn--line:hover,
.btn--line:focus-visible { background: var(--cyan); color: var(--ink); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag--live {
  color: var(--cyan);
  border-color: rgba(57, 230, 195, 0.45);
  background: rgba(57, 230, 195, 0.08);
}

.tag--alert {
  color: var(--orange);
  border-color: rgba(255, 122, 61, 0.45);
  background: rgba(255, 122, 61, 0.1);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(242, 193, 78, 0.45);
  background: rgba(242, 193, 78, 0.1);
}

/* ---------- cut panel ---------- */
.cut-panel {
  position: relative;
  background: var(--pit);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: border-color 0.25s, background-color 0.25s;
}

.cut-panel:hover { border-color: rgba(57, 230, 195, 0.45); }

.cut-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
}

.cut-panel__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.cut-panel__body {
  padding: clamp(14px, 2vw, 20px);
  font-size: 0.95rem;
  line-height: 1.78;
  color: rgba(247, 242, 231, 0.8);
}

.cut-panel--paper { background: var(--paper); color: var(--ink); border-color: rgba(8, 26, 21, 0.14); }
.cut-panel--paper .cut-panel__head { border-bottom-color: rgba(8, 26, 21, 0.14); }
.cut-panel--paper .cut-panel__body { color: rgba(8, 26, 21, 0.78); }

/* ---------- score bar ---------- */
.score-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: clamp(12px, 2vw, 17px) clamp(14px, 2vw, 22px);
  background: var(--black);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  color: var(--paper);
  transition: border-color 0.25s, background-color 0.25s;
}

.score-bar:hover,
.score-bar:focus-within {
  border-left-color: var(--cyan);
  background: #061612;
}

.score-bar__round {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.score-bar__pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-1);
  min-width: 0;
}

.score-bar__digits {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.score-bar__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-align: right;
}

.score-bar__events {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.score-bar:hover .score-bar__events,
.score-bar:focus-within .score-bar__events { grid-template-rows: 1fr; }

.score-bar__events-inner {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: rgba(247, 242, 231, 0.78);
}

.score-bar__events-inner > * { padding-top: 10px; }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  margin: 0;
  background: var(--pit);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.media-frame[data-ratio="tall"] .media-frame__img { aspect-ratio: 4 / 5; }
.media-frame[data-ratio="wide"] .media-frame__img { aspect-ratio: 21 / 9; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(4, 16, 12, 0.92), rgba(4, 16, 12, 0));
}

.media-frame--wide { grid-column: 1 / -1; }

.media-frame--placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(160px, 26vw, 260px);
  background-color: #0a1e18;
  background-image: repeating-linear-gradient(135deg, #0c231c 0 12px, #0a1e18 12px 24px);
}

.media-frame__hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 10px 16px;
  border: 1px dashed var(--line);
}

/* ---------- grids / typography helpers ---------- */
.grid-duo,
.grid-trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
}

@media (min-width: 760px) {
  .grid-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.stat-figure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  font-size: var(--step-1);
  line-height: 1.85;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.32;
  margin: 1.9em 0 0.6em;
}

.prose h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 1.6em 0 0.5em;
}

.prose p { margin-bottom: 1.05em; }

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

.prose strong { color: #fff; font-weight: 700; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(57, 230, 195, 0.42);
  transition: background-color 0.2s;
}

.prose a:hover { background: rgba(57, 230, 195, 0.14); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 18px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 122, 61, 0.08);
  color: rgba(247, 242, 231, 0.9);
}

.prose--paper { color: rgba(8, 26, 21, 0.86); }
.prose--paper strong { color: var(--ink); }
.prose--paper a { color: #0a6a55; border-bottom-color: rgba(10, 106, 85, 0.36); }
.prose--paper blockquote { background: rgba(255, 122, 61, 0.12); color: var(--ink); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a { color: var(--mist); transition: color 0.2s; }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- reveal / to-top ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(12px, 3vw, 26px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--pit);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  clip-path: var(--cut);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, border-color 0.2s, background-color 0.2s;
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--cyan);
  background: var(--black);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .status-lamp { animation: none; opacity: 1; }

  [data-reveal] { opacity: 1; transform: none; }

  .score-bar__events { transition: none; }

  .to-top { transform: none; }
}
