:root {
  --ink: #062B25;
  --char: #0B0F0E;
  --paper: #F3F7F5;
  --mist: #A7B5AF;
  --cyan: #2BF5C8;
  --orange: #FF7A1A;
  --yellow: #FFD166;
  --red: #FF4D4D;
  --line: #29544C;
  --line-soft: rgba(41, 84, 76, 0.5);
  --dim: #6E847C;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --grid-gap: 24px;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
}

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

figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.coord {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--cyan);
  color: var(--char);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--char);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(6, 43, 37, 0.65);
}

.section--paper :focus-visible {
  outline-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(243, 247, 245, 0.8);
}

.text-link {
  position: relative;
  display: inline-block;
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-bottom: 3px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--signal {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--char);
}

.btn--signal:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--char);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  min-height: 32px;
  padding: 8px 11px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
}

.header-utility {
  background: var(--char);
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-size: 11px;
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-block: 5px;
}

.league-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.league-switcher::-webkit-scrollbar {
  display: none;
}

.league-switcher__label {
  flex: none;
  font-size: 9px;
  color: var(--dim);
  margin-right: 4px;
}

.league-chip {
  flex: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mist);
  padding: 5px 8px;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.league-chip:hover {
  color: var(--cyan);
  border-color: var(--line);
}

.league-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--char);
  font-weight: 700;
}

.header-utility__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 245, 200, 0.12);
  flex: none;
}

.header-masthead {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(43, 245, 200, 0.09), transparent 55%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, transparent 46%, var(--orange) 78%, transparent);
  opacity: 0.45;
  pointer-events: none;
}

.header-masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-block: 20px 17px;
}

.header-masthead__aside {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.header-masthead__aside .coord {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.header-masthead__aside--left {
  justify-self: start;
  text-align: left;
  padding-left: 2px;
}

.header-masthead__aside--right {
  justify-self: end;
  text-align: right;
  padding-right: 2px;
}

.brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 7px;
  text-decoration: none;
  color: var(--paper);
  line-height: 1;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.7rem);
  letter-spacing: -0.07em;
  line-height: 0.82;
  transition: color 0.2s ease;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.28em;
  color: var(--cyan);
  padding-bottom: 0.18em;
}

.brand__tagline {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 7px;
  white-space: normal;
  line-height: 1.5;
}

.brand:hover .brand__mark {
  color: var(--cyan);
}

.header-masthead__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.fav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(43, 245, 200, 0.06);
}

.fav-toggle__star {
  color: var(--yellow);
  font-size: 11px;
  line-height: 1;
}

.fav-toggle__count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  border-left: 1px solid var(--line);
  padding-left: 6px;
  margin-left: 1px;
}

.header-navbar {
  position: relative;
  z-index: 60;
  background: var(--char);
  border-bottom: 1px solid var(--line);
}

.header-navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 70;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__lines span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.nav-toggle__text {
  white-space: nowrap;
}

.site-nav {
  display: block;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 26px);
}

.site-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  color: var(--mist);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.04em;
  padding: 17px 0;
  transition: color 0.2s ease;
}

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

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--cyan);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__index {
  font-size: 9px;
  letter-spacing: 0;
  color: var(--line);
  font-weight: 500;
}

.site-nav a:hover .site-nav__index,
.site-nav a[aria-current="page"] .site-nav__index {
  color: var(--cyan);
}

.header-navbar__edition {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
  pointer-events: none;
}

.favorites-panel {
  background: var(--char);
  border-bottom: 1px solid var(--line);
}

.favorites-panel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-block: 14px;
}

.favorites-panel__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.favorites-panel__empty {
  color: var(--mist);
  font-size: 12px;
}

.favorites-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.favorites-panel__list li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 7px;
}

.favorites-panel .text-link {
  margin-left: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

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

.site-footer {
  position: relative;
  background: var(--char);
  color: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 0, rgba(43, 245, 200, 0.06), transparent 45%),
    radial-gradient(ellipse at 88% 100%, rgba(255, 122, 26, 0.045), transparent 45%);
  pointer-events: none;
}

.footer-rule {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 22px, transparent 22px 32px);
}

.footer-rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: clamp(80px, 12vw, 150px);
  height: 3px;
  background: var(--orange);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 64px) clamp(32px, 4vw, 48px);
}

.footer-brand__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-brand__mark span {
  font-family: var(--font-head);
  font-size: 0.6em;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.footer-brand__line {
  max-width: 22ch;
  margin-top: 10px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.6;
}

.footer-brand__meta {
  margin-top: 20px;
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.16em;
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--mist);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-col a:hover {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

.footer-contact__list {
  display: grid;
  gap: 10px;
}

.footer-contact__list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.footer-contact__list dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
}

.footer-contact__list dd {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-contact__link {
  margin-top: 14px;
}

.footer-base {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-block: 16px 26px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 10px;
}

.footer-base p {
  margin: 0;
}

.footer-base__legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-base a {
  color: var(--mist);
  text-decoration: none;
}

.footer-base a:hover {
  color: var(--cyan);
}

.footer-base__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.section {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px);
}

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

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

.section--paper {
  background: var(--paper);
  color: var(--char);
  --mist: #4B5B55;
  --line: #C9D6D0;
  --dim: #7D8D86;
}

.section--edge {
  border-top: 1px solid var(--line);
}

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

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

.title-xl {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-lg {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.title-md {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--mist);
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

.rule-slash {
  height: 6px;
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px);
  opacity: 0.7;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.panel {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(var(--char), var(--char)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--line) 45%, var(--orange)) border-box;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.panel--paper {
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--line) 45%, var(--orange)) border-box;
  color: var(--char);
}

.panel--quiet {
  background: transparent;
  border: 1px solid var(--line);
  clip-path: none;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--char);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 11px);
  border: 1px solid var(--line);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(11, 15, 14, 0.85));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid currentColor;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  flex: none;
}

.tag--live {
  color: var(--orange);
}

.tag--next {
  color: var(--cyan);
}

.tag--done {
  color: var(--mist);
}

.tag--alert {
  color: var(--red);
}

.tag--rank {
  color: var(--yellow);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

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

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.breadcrumbs [aria-current="page"] {
  color: var(--paper);
}

.section--paper .breadcrumbs [aria-current="page"] {
  color: var(--char);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose blockquote {
  margin-block: 0 1.1em;
}

.prose ul {
  list-style: disc;
  padding-left: 1.3em;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-block: 1.6em 0.6em;
  font-family: var(--font-head);
  line-height: 1.1;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.prose h3 {
  font-size: 1.35rem;
}

.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--cyan);
}

.prose blockquote {
  border-left: 2px solid var(--cyan);
  padding-left: 1em;
  color: var(--mist);
}

.prose strong {
  font-weight: 700;
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rail {
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--char);
  border: 1px solid var(--line);
  padding: 16px;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.rail__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.rail__list {
  display: grid;
  gap: 10px;
}

.rail__item {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(41, 84, 76, 0.45);
}

.rail__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rail__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.rail__teams {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--paper);
}

.rail__meta {
  font-size: 10px;
  color: var(--mist);
}

.fav-star {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  padding: 4px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.fav-star:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.fav-star[aria-pressed="true"] {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(255, 209, 102, 0.08);
}

@media (max-width: 980px) {
  .header-masthead__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-block: 18px 16px;
  }

  .header-masthead__aside {
    display: none;
  }

  .header-masthead__actions {
    justify-self: center;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-utility__status {
    display: none;
  }

  .league-switcher {
    width: 100%;
  }

  .header-navbar__inner {
    justify-content: flex-start;
    min-height: 52px;
  }

  .header-navbar__edition {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--char);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--line);
  }

  .site-nav__list li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 18px;
  }

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

  .site-nav a[aria-current="page"] {
    padding-left: 10px;
    border-left: 2px solid var(--cyan);
  }

  .site-nav__index {
    order: 2;
    color: var(--mist);
  }

  .favorites-panel .text-link {
    margin-left: 0;
  }

  .rail {
    position: static;
    margin-inline: calc(var(--gutter) * -1);
    border-left: 0;
    border-right: 0;
    padding: 14px var(--gutter);
  }

  .rail__list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rail__list::-webkit-scrollbar {
    display: none;
  }

  .rail__item {
    flex: 0 0 220px;
    padding-bottom: 0;
    padding-right: 12px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .rail__item:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .favorites-panel__inner {
    align-items: flex-start;
  }
}

@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;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
