/* =========================================================
   雷电竞数据 · 赛季档案
   共享站级样式 /assets/site.css
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070B16;
  --panel: #0E1526;
  --panel-2: #16203A;
  --line: #1B2B4D;
  --paper: #E7ECF7;
  --mist: #8FA0C4;
  --violet: #7B4DFF;
  --cyan: #2EE6D6;
  --gold: #FF9A2E;
  --red: #FF4D6D;
  --green: #3DF08A;
  --paper-plain: #F4F6FB;

  --font-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", "Courier New", monospace;

  --shell-max: 1512px;
  --gutter: clamp(18px, 6vw, 96px);
  --cut: 14px;
  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 10px;
  --dur: .18s;
  --dur-data: .32s;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ring: 2px solid var(--cyan);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .92);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 17px; } }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 84% -10%, rgba(123, 77, 255, .17), transparent 62%),
    radial-gradient(760px 480px at 2% 10%, rgba(46, 230, 214, .08), transparent 60%),
    linear-gradient(180deg, #070B16, #050810 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(27, 43, 77, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 43, 77, .3) 1px, transparent 1px);
  background-size: 128px 128px;
}

::selection { background: var(--violet); color: #FFFFFF; }
:focus-visible { outline: var(--ring); outline-offset: 3px; border-radius: 4px; }

main { display: block; }

/* ---------- 4. Skip link & progress ---------- */
.skip-link {
  position: absolute;
  left: clamp(14px, 3vw, 40px);
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 14px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(27, 43, 77, .6);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 62%, var(--gold));
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-bottom: 6px;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  background: linear-gradient(180deg, rgba(7, 11, 22, .94), rgba(7, 11, 22, .6) 62%, transparent);
}
.site-header[data-condensed]::after { opacity: 1; }

.header-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 14px clamp(14px, 3vw, 40px) 12px;
  transition: padding .22s var(--ease);
}
.site-header[data-condensed] .header-shell { padding-top: 8px; padding-bottom: 6px; }

.nav-island {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(27, 43, 77, .92);
  border-radius: 999px;
  background: rgba(14, 21, 38, .74);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), padding .2s var(--ease);
}
.nav-island--brand { padding: 6px 18px 6px 6px; gap: 10px; }
.nav-island--main { padding: 5px; margin-inline: auto; }
.nav-island--utility { padding: 6px; gap: 6px; margin-left: auto; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 999px;
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--violet), var(--cyan));
  color: #050810;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
}
.brand-descriptor {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}
.brand-mark--footer { padding: 0; }

.nav-current {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--cyan);
  white-space: nowrap;
}
.site-header[data-condensed] .nav-current { display: inline-block; }
.site-header[data-condensed] .brand-descriptor { display: none; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(123, 77, 255, .18); }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(46, 230, 214, .13);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 214, .48);
  font-weight: 700;
}
.site-header[data-condensed] .nav-link { height: 34px; padding: 0 12px; }

.nav-toggle,
.drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .08em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle:hover,
.drawer-toggle:hover { color: var(--paper); border-color: rgba(46, 230, 214, .45); }
.nav-toggle[aria-expanded="true"],
.drawer-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: rgba(46, 230, 214, .55);
  background: rgba(46, 230, 214, .1);
}
.nav-toggle { display: none; }
.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}
.nav-toggle__label { letter-spacing: .08em; }
.drawer-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--dur) var(--ease);
}
.drawer-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }

/* ---------- 6. Season drawer ---------- */
.season-drawer {
  position: absolute;
  top: calc(100% - 4px);
  right: clamp(14px, 3vw, 40px);
  z-index: 3;
  width: min(680px, calc(100% - 28px));
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  background: rgba(10, 16, 30, .97);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.season-drawer[data-open] { opacity: 1; visibility: visible; transform: none; }

.drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
}
.drawer-meta { font-size: 12px; letter-spacing: .08em; color: var(--mist); }

.drawer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.drawer-title {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mist);
}
.drawer-list { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--paper);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.drawer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 2px;
  background: var(--line);
  transition: background-color var(--dur) var(--ease);
}
.drawer-link:hover { color: var(--cyan); background: rgba(46, 230, 214, .1); }
.drawer-link:hover::before { background: var(--cyan); }

.drawer-years { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-year {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}
.drawer-year--edge { color: var(--gold); border-color: rgba(255, 154, 46, .5); }

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 12vw, 150px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 21, 38, .92), #050810 68%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 40%, transparent 40%);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -70px;
  width: 540px;
  height: 300px;
  transform: rotate(-9deg);
  background: linear-gradient(120deg, rgba(123, 77, 255, .2), transparent 72%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter) 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-slogan {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 24ch;
}
.footer-coverage {
  font-size: 12.5px;
  letter-spacing: .07em;
  color: var(--mist);
  max-width: 34ch;
}

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--mist);
}
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--paper);
  transition: color var(--dur) var(--ease);
}
.footer-link::before {
  content: "";
  width: 14px;
  height: 1px;
  flex: none;
  background: var(--line);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.footer-link:hover { color: var(--cyan); }
.footer-link:hover::before { width: 24px; background: var(--cyan); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-label { font-size: 11px; letter-spacing: .2em; color: var(--mist); }
.contact-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  letter-spacing: .01em;
  color: var(--paper);
  word-break: break-all;
}
.contact-note { font-size: 12.5px; line-height: 1.7; color: var(--mist); max-width: 34ch; }

.footer-baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .07em;
  color: var(--mist);
}
.footer-legal { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-links a { transition: color var(--dur) var(--ease); }
.footer-legal-links a:hover { color: var(--cyan); }
.footer-icp { font-family: var(--font-num); letter-spacing: .04em; }

/* ---------- 8. Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 21, 38, .92);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .1em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--cyan); border-color: rgba(46, 230, 214, .5); }

/* ---------- 9. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 900px; }
.shell--tight { max-width: 1120px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); }
.grid--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 2fr); }
.grid--duo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 900px) {
  .grid--split, .grid--wide, .grid--duo { grid-template-columns: minmax(0, 1fr); }
}

.section { padding-block: clamp(48px, 8vw, 110px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(20px, 3vw, 40px);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--mist);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); }
.lede { max-width: 64ch; color: var(--mist); font-size: 16.5px; }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.display-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.04em;
}
.divider { height: 1px; border: 0; background: linear-gradient(90deg, var(--line), transparent); }

/* ---------- 10. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { background: var(--cyan); color: #04121A; }
.btn--primary:hover { background: #6BF3E8; }
.btn--violet { background: var(--violet); color: var(--paper-plain); }
.btn--violet:hover { background: #8E66FF; }
.btn--ghost { border-color: var(--line); background: rgba(22, 32, 58, .5); color: var(--paper); }
.btn--ghost:hover { border-color: rgba(46, 230, 214, .55); color: var(--cyan); }
.btn--quiet { height: auto; padding: 0; color: var(--cyan); font-weight: 600; }
.btn--quiet:hover { color: var(--paper); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------- 11. Breadcrumb ---------- */
.breadcrumb { margin-bottom: 22px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--mist);
}
.breadcrumb__link { color: var(--mist); border-bottom: 1px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.breadcrumb__link:hover { color: var(--cyan); border-color: currentColor; }
.breadcrumb__current { color: var(--paper); }
.breadcrumb__sep { color: var(--line); }

/* ---------- 12. Panels / fold / note ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
}
.panel--raised { background: var(--panel-2); }
.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(14, 21, 38, .72);
  overflow: hidden;
}
.fold + .fold { margin-top: 10px; }
.fold__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.fold__summary::-webkit-details-marker { display: none; }
.fold__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-num);
  color: var(--cyan);
}
.fold[open] .fold__summary::after { content: "–"; }
.fold__summary:hover { color: var(--cyan); background: rgba(46, 230, 214, .06); }
.fold__body { padding: 0 18px 18px; color: var(--mist); font-size: 15px; }

.note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  background: rgba(46, 230, 214, .07);
  color: var(--mist);
  font-size: 14px;
}
.note__label { font-size: 11px; letter-spacing: .22em; color: var(--cyan); }
.note--paper { background: var(--paper-plain); color: var(--panel); border-left-color: var(--panel); }
.note--paper .note__label { color: var(--panel); }

/* ---------- 13. Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 32, 58, .6);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .06em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.filter-chip:hover { color: var(--paper); border-color: rgba(46, 230, 214, .5); }
.filter-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}
.filter-chip__count { font-family: var(--font-num); font-size: 12px; opacity: .72; }
.filter-status { font-size: 12.5px; letter-spacing: .08em; color: var(--mist); }

/* ---------- 14. Tables ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
}
.table-scroll:focus-visible { outline: var(--ring); outline-offset: 2px; }
.data-table { width: 100%; min-width: 640px; font-size: 14px; }
.data-table th,
.data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--panel-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--mist);
  white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(123, 77, 255, .1); }
.data-table td.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- 15. Tags & stats ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .1em;
}
.tag--violet { color: var(--violet); background: rgba(123, 77, 255, .12); }
.tag--cyan { color: var(--cyan); background: rgba(46, 230, 214, .1); }
.tag--gold { color: var(--gold); background: rgba(255, 154, 46, .12); }
.tag--red { color: var(--red); background: rgba(255, 77, 109, .12); }
.tag--green { color: var(--green); background: rgba(61, 240, 138, .12); }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}
.stat__label { font-size: 11.5px; letter-spacing: .22em; color: var(--mist); }
.stat--cyan .stat__value { color: var(--cyan); }
.stat--gold .stat__value { color: var(--gold); }
.stat--violet .stat__value { color: var(--violet); }

/* ---------- 16. Media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.media-frame__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}
.media-frame--wide .media-frame__img { aspect-ratio: 21 / 9; }
.media-frame--tall .media-frame__img { aspect-ratio: 4 / 5; }
.media-frame--square .media-frame__img { aspect-ratio: 1 / 1; }
.media-frame__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(46, 230, 214, .07) 0 2px, transparent 2px 12px),
    linear-gradient(140deg, var(--panel-2), var(--panel) 62%);
  color: var(--mist);
  font-size: 11.5px;
  letter-spacing: .22em;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(7, 11, 22, .92));
}

/* ---------- 17. Scanlines & reveal ---------- */
.scanlines { position: relative; overflow: hidden; }
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(231, 236, 247, .055) 0 1px, transparent 1px 5px);
}
.scanlines--drift::after { animation: scan-drift 8s linear infinite; }
@keyframes scan-drift {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

.js-has [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .44s var(--ease), transform .44s var(--ease);
}
.js-has [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1099px) {
  .nav-island--brand { padding: 6px 14px 6px 6px; }
  .nav-island--main {
    position: absolute;
    top: calc(100% + 10px);
    left: clamp(14px, 3vw, 40px);
    right: clamp(14px, 3vw, 40px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-inline: 0;
    padding: 10px;
    border-radius: 22px;
    background: rgba(10, 16, 30, .97);
    box-shadow: var(--shadow);
  }
  .nav-island--main[data-open] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; height: 46px; padding: 0 16px; border-radius: var(--radius-m); font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .nav-current { display: none !important; }
  .drawer-toggle__label { display: none; }
}

@media (max-width: 900px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .season-drawer { left: clamp(14px, 3vw, 40px); right: clamp(14px, 3vw, 40px); width: auto; }
  .drawer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

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

@media (max-width: 719px) {
  .header-cta { display: none; }
  .brand-descriptor { display: none; }
  .nav-toggle { padding: 0 12px; }
  .footer-baseline { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 520px) {
  .nav-toggle__label { display: none; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .to-top { height: 40px; padding: 0 14px; font-size: 12px; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .scanlines--drift::after { animation: none; }
  .js-has [data-reveal] { opacity: 1; transform: none; }
  .to-top { transform: none; }
}
