:root {
  --bg: #09090b;
  --bg2: #111827;
  --card: rgba(15, 23, 42, 0.72);
  --card-strong: rgba(30, 41, 59, 0.9);
  --text: #e5eefb;
  --muted: #a5b4cc;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --critical: #ef4444;
}

body.fan-home {
  --fire-red: #d71920;
  --fire-deep: #210f12;
  --fire-brown: #4b2a1f;
  --fire-pink: #f2b7cc;
  --fire-blue: #b9e5ef;
  --fire-cream: #fff5ec;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.22) 0 14%, transparent 14% 100%),
    linear-gradient(315deg, rgba(185, 229, 239, 0.16) 0 10%, transparent 10% 100%),
    #130b0d;
  color: var(--fire-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.fan-home a { color: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--fire-deep);
  background: var(--fire-blue);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease;
}

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

.fire-orbit {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(150deg, transparent 0 58%, rgba(215, 25, 32, 0.18) 58% 66%, transparent 66% 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}

.fan-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.fan-nav,
.fan-hero,
.fan-panel,
.hero-score-card,
.game-card,
.roster-card,
.metric-flame,
.injury-card {
  border: 1px solid rgba(255, 245, 236, 0.14);
  border-radius: 8px;
  background: rgba(33, 15, 18, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.fan-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 12px;
  position: sticky;
  top: 10px;
  z-index: 5;
  backdrop-filter: blur(18px);
}

.fan-mark,
.fan-nav-links,
.fan-actions,
.fan-section-head,
.hero-mini-stats,
.standing-row,
.mini-game {
  display: flex;
  align-items: center;
}

.fan-mark {
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.fan-nav-links {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fan-nav-links a,
.fan-button,
.fan-section-head a,
.endpoint-list a {
  border: 1px solid rgba(255, 245, 236, 0.16);
  border-radius: 999px;
  padding: 8px 11px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.fan-nav-links a:hover,
.fan-nav-links a:focus-visible,
.fan-button:hover,
.fan-button:focus-visible,
.fan-section-head a:hover,
.fan-section-head a:focus-visible,
.endpoint-list a:hover,
.endpoint-list a:focus-visible {
  border-color: rgba(185, 229, 239, 0.48);
  background: rgba(185, 229, 239, 0.1);
  outline: none;
}

.nav-app-button {
  display: inline-flex;
  width: min(170px, 100%);
  margin-left: auto;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  line-height: 0;
  text-decoration: none;
}

.nav-app-button:hover,
.nav-app-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(185, 229, 239, 0.62);
  outline-offset: 3px;
}

.nav-app-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.fan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  margin: 18px 0;
  padding: 22px;
  background:
    linear-gradient(115deg, rgba(215, 25, 32, 0.28), rgba(75, 42, 31, 0.74) 52%, rgba(185, 229, 239, 0.12)),
    rgba(33, 15, 18, 0.9);
}

.fan-kicker {
  margin: 0 0 8px;
  color: var(--fire-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fan-hero h1 {
  margin: 0 0 14px;
  white-space: normal;
  font-size: 3.25rem;
  line-height: 1;
}

.hero-title-lockup {
  display: grid;
  grid-template-columns: clamp(112px, 14vw, 178px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}

.hero-title-lockup h1 {
  margin: 0;
  align-self: center;
}

.hero-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  border: 1px solid rgba(255, 245, 236, 0.16);
  border-radius: 8px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(215, 25, 32, 0.24),
    0 16px 30px rgba(0, 0, 0, 0.32);
}

.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fan-lede,
.hero-score-card p,
.game-card p,
.game-card small,
.roster-card p,
.injury-card p,
.empty-note,
.fan-footer {
  color: rgba(255, 245, 236, 0.74);
  line-height: 1.5;
}

.fan-actions { gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fan-button.primary { background: var(--fire-red); border-color: transparent; color: #fff; font-weight: 900; }

.hero-score-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(13, 8, 9, 0.3), rgba(13, 8, 9, 0.82)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 18px);
}

.hero-matchup { display: flex; gap: 12px; align-items: baseline; margin: 8px 0; }
.hero-matchup strong { font-size: 2.2rem; line-height: 1; }
.hero-side { color: var(--fire-pink); font-weight: 900; }
.hero-live-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 10px;
}
.hero-live-scoreboard .live-team {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.hero-live-scoreboard .live-team-name {
  max-width: 100%;
  text-align: center;
}
.hero-live-scoreboard .live-team-abbr {
  display: none;
}
.hero-live-scoreboard .live-team-score {
  min-width: 0;
  max-width: 100%;
  text-align: center;
  font-size: clamp(2.35rem, 5.8vw, 3.4rem);
}
.hero-live-status {
  margin: 10px 0 0;
  font-weight: 850;
  color: rgba(255, 245, 236, 0.9);
}
.hero-leaders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.hero-leader {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 245, 236, 0.84);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
}
.hero-leader b {
  color: var(--fire-blue);
}
.hero-leader span,
.hero-leader em {
  display: block;
  min-width: 0;
  font-style: normal;
}
.hero-leader em {
  color: #fff;
}
.hero-mini-stats { gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-mini-stats span { padding: 9px 10px; border-radius: 8px; background: rgba(255,255,255,0.07); }
.hero-mini-stats b { display: block; color: var(--fire-blue); }

.broadcast-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.broadcast-pills span,
.broadcast-pills i {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid rgba(185, 229, 239, 0.22);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--fire-blue);
  background: rgba(185, 229, 239, 0.08);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.broadcast-pills.mini { margin-top: 10px; }

.fan-grid,
.roster-grid,
.metric-flames,
.game-rail {
  display: grid;
  gap: 12px;
}

.metric-flame span,
.standing-row small { color: var(--fire-pink); font-size: 0.82rem; font-weight: 800; }

.fan-panel { padding: 18px; margin: 18px 0; }
.fan-section-head { justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.fan-section-head.compact h2 { margin-bottom: 0; }
.fan-section-head h2 { margin: 0; font-size: 1.6rem; }

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
}

.segmented button {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--fire-cream);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.segmented button.active { background: var(--fire-red); }

.game-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card {
  padding: 14px;
  min-height: 156px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.game-card:hover,
.game-card:focus-visible,
.game-card.active {
  border-color: rgba(185, 229, 239, 0.64);
  background: rgba(59, 24, 28, 0.9);
  outline: none;
}
.game-card[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px rgba(185, 229, 239, 0.42), 0 18px 44px rgba(0, 0, 0, 0.28);
}
.game-card span { color: var(--fire-blue); font-weight: 900; }
.game-card strong { display: block; margin: 16px 0 8px; font-size: 1.18rem; }
.game-card.win { border-color: rgba(185, 229, 239, 0.46); }
.game-card.loss { border-color: rgba(215, 25, 32, 0.52); }

.game-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(185, 229, 239, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(185, 229, 239, 0.12), rgba(215, 25, 32, 0.08)),
    rgba(17, 8, 10, 0.72);
}

.api-insight {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.api-insight.muted {
  display: block;
  color: rgba(255, 245, 236, 0.68);
}

.load-error {
  border: 1px solid rgba(215, 25, 32, 0.4);
  border-radius: 8px;
  padding: 14px;
  background: rgba(215, 25, 32, 0.1);
  color: rgba(255, 245, 236, 0.84);
}

.api-insight h4 {
  margin: 0;
  font-size: 1.15rem;
}

.api-insight p {
  max-width: 86ch;
  margin: 0;
  color: rgba(255, 245, 236, 0.76);
}

.matchup-notes,
.api-matchup,
.key-player-grid,
.api-stat-line {
  display: grid;
  gap: 8px;
}

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

.matchup-notes span,
.api-matchup article,
.key-player-card {
  border: 1px solid rgba(255, 245, 236, 0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.matchup-notes span {
  padding: 10px;
  color: rgba(255, 245, 236, 0.82);
}

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

.api-matchup article {
  padding: 12px;
}

.api-team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.api-team-head img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.api-team-head strong {
  flex: 1;
}

.api-team-head span {
  color: var(--fire-blue);
  font-weight: 900;
}

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

.api-stat-line span {
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.16);
}

.api-stat-line b {
  display: block;
  color: var(--fire-blue);
  font-size: 1.08rem;
}

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

.key-player-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.player-photo.small {
  width: 46px;
  height: 46px;
}

.key-player-card span {
  color: var(--fire-pink);
  font-size: 0.78rem;
  font-weight: 900;
}

.key-player-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-player-card p {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

.game-detail-copy {
  align-self: center;
}

.game-detail h3 {
  margin: 0;
  font-size: 1.35rem;
}

.game-detail p { margin: 6px 0 0; color: rgba(255, 245, 236, 0.74); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid span {
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  color: rgba(255, 245, 236, 0.82);
  background: rgba(255,255,255,0.06);
  overflow-wrap: anywhere;
}

.game-detail > .fan-button {
  align-self: center;
  white-space: nowrap;
}

.detail-grid b {
  display: block;
  margin-bottom: 3px;
  color: var(--fire-pink);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.fan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.standing-row { gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.standing-row span { width: 26px; color: var(--fire-blue); font-weight: 900; }
.standing-row strong { flex: 1; }
.standing-row em { font-style: normal; color: var(--fire-cream); }
.standing-row.is-fire { color: var(--fire-pink); }

.injury-card { padding: 12px; margin-bottom: 10px; }
.injury-card span { color: var(--fire-blue); font-weight: 900; }
.injury-card strong { display: block; margin: 4px 0; }
.injury-card p { margin: 0; font-size: 0.94rem; }

.search-box { display: flex; gap: 8px; align-items: center; }
.search-box span { color: var(--fire-blue); font-weight: 900; }
.search-box input {
  width: 220px;
  max-width: 100%;
  border: 1px solid rgba(255, 245, 236, 0.2);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--fire-cream);
  background: rgba(0,0,0,0.22);
}

.roster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.roster-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 10px; align-items: center; }
.player-photo { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; background: rgba(185,229,239,0.12); display: grid; place-items: center; color: var(--fire-blue); font-weight: 900; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.roster-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-card p { margin: 4px 0 0; font-size: 0.88rem; }

.metric-flames { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-flame { padding: 13px; }
.metric-flame strong { display: block; margin-top: 8px; font-size: 1.55rem; }

.mini-game-list { display: grid; gap: 8px; }
.mini-game { justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mini-game.is-fire { color: var(--fire-pink); }

.endpoint-list { display: grid; gap: 8px; }
.endpoint-list a { font-family: "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.fan-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0 0; font-size: 0.92rem; }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fire-pink);
  box-shadow: 0 0 0 4px rgba(242, 183, 204, 0.12);
}
.status-dot.ok::before {
  background: var(--fire-blue);
  box-shadow: 0 0 0 4px rgba(185, 229, 239, 0.12);
}
.status-dot.warn::before {
  background: var(--fire-red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.14);
}

body.fan-home .fan-live {
  border-color: rgba(185, 229, 239, 0.34);
  border-radius: 8px;
  background: rgba(33, 15, 18, 0.9);
}

@media (max-width: 920px) {
  .fan-hero,
  .fan-grid,
  .bottom-grid,
  .game-detail { grid-template-columns: 1fr; }
  .game-rail,
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-flames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matchup-notes { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .fan-shell { width: min(100% - 18px, 1180px); }
  .fan-nav {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 148px);
    align-items: center;
    gap: 10px 12px;
  }
  .fan-section-head,
  .fan-footer { flex-direction: column; }
  .fan-mark {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .fan-mark span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fan-footer { align-items: flex-start; }
  .fan-hero { padding: 16px; }
  .fan-hero h1 { font-size: 2rem; }
  .hero-title-lockup {
    grid-template-columns: clamp(78px, 23vw, 92px) minmax(0, 1fr);
    gap: 12px;
  }
  .fan-nav-links,
  .fan-actions,
  .segmented { width: 100%; }
  .fan-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fan-nav-links a,
  .fan-actions a,
  .segmented button { flex: 1; text-align: center; }
  .fan-nav-links a {
    padding-inline: 8px;
  }
  .nav-app-button {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
    justify-self: end;
    align-self: center;
  }
  .game-rail,
  .roster-grid,
  .metric-flames,
  .api-matchup,
  .api-stat-line,
  .key-player-grid { grid-template-columns: 1fr; }
  .search-box { width: 100%; align-items: flex-start; flex-direction: column; }
  .search-box input { width: 100%; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

main:not(.shell) {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 20px;
  margin: 12px 0;
}

.live-game-widget {
  margin: 10px 0 18px;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(6, 182, 212, 0.08)),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.live-game-widget[hidden] {
  display: none;
}

.live-heading {
  margin-bottom: 12px;
}

.live-heading h2 {
  margin-bottom: 4px;
}

.live-heading p {
  margin: 0;
}

.live-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.live-game-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: rgba(8, 15, 31, 0.72);
}

.live-game-topline,
.live-game-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.live-game-footer {
  justify-content: space-between;
  margin-top: 10px;
}

.live-game-footer a {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.live-matchup {
  margin-left: auto;
  color: var(--text);
  font-weight: 800;
}

.live-scoreboard {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.live-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
}

.live-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--text);
}

.live-team-abbr {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.live-team-score {
  min-width: 2ch;
  text-align: right;
  font-size: clamp(1.75rem, 6vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
  color: #f8fafc;
}

.hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
  filter: blur(8px);
}

.avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.summary-wrap { display: flex; gap: 12px; align-items: center; }
.tagline { margin: 0; color: #cbd5e1; font-style: italic; }
.update-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 14px;
}
.eyebrow {
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin: 0 0 12px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
  margin-bottom: 18px;
}
h2 { margin-bottom: 12px; }
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.top-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
}
.top-links a:hover {
  transform: translateY(-2px);
}

.collapsible-card summary {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.collapsible-card summary::-webkit-details-marker {
  display: none;
}

.collapsible-card summary::before {
  content: '▸';
  font-size: 1rem;
  color: var(--muted);
}

.collapsible-card[open] summary::before {
  content: '▾';
}

.collapsible-card summary::after {
  content: none;
}

.collapsible-card > :not(summary) {
  margin-top: 14px;
}
.lede, .card p, li, .muted-line {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover, .project:hover, .card a:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  border-color: transparent;
}

.button.ghost {
  background: rgba(255,255,255,0.03);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.spark-list {
  padding-left: 20px;
  margin: 0;
}

.tilt { transform: rotate(-1deg); }
.accent {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.82), rgba(49, 46, 129, 0.75));
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dbe6ff;
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.project h3 { margin-bottom: 8px; }
.project span {
  font-size: 1.6rem;
  color: var(--accent-3);
}

.report-panel {
  display: block;
}

.report-body {
  margin-top: 14px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  border-radius: 0;
  overflow: visible;
  max-height: none;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 22px;
  background: rgba(8, 15, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.report-table th, .report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.report-table th {
  color: #9ca3af;
  font-size: 13px;
}

.report-table td {
  font-size: 14px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #dbe6ff;
  font: 0.98rem/1.8 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.stocks-shell {
  display: grid;
  gap: 24px;
}

.stocks-hero {
  padding: 28px 28px 24px;
}

.stocks-hero .tagline {
  max-width: 60ch;
}

.hero-actions {
  margin-top: 18px;
}

.button.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.02);
}

.stocks-meta-grid {
  align-items: start;
}

.stocks-summary-card,
.stocks-section-card {
  padding: 24px;
}

.stocks-summary-card h2,
.stocks-section-card h2 {
  margin-bottom: 10px;
}

#latestMeta p {
  margin: 6px 0;
  color: var(--text);
}

.muted-line {
  color: var(--muted);
}

.compact-table table {
  background: transparent;
}

.compact-table th,
.compact-table td {
  font-size: 13px;
  padding: 8px 10px;
}

.stocks-table-block + .stocks-table-block {
  margin-top: 26px;
}

.stocks-table-block h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  background: rgba(8, 15, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.report-table thead th {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-table th,
.report-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.report-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table th:first-child,
.report-table td:first-child {
  width: 40%;
}

.report-table th:not(:first-child),
.report-table td:not(:first-child) {
  width: 15%;
  text-align: right;
}

.report-table td:first-child {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.report-table td:not(:first-child) {
  color: #e5eefc;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 15, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.table-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  height: 100%;
}

.grid.two-up {
  align-items: stretch;
}

.grid.two-up .table-card table {
  height: 100%;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  text-align: left;
}

th {
  color: #dbe6ff;
  background: rgba(255,255,255,0.04);
}

.portland-fire-line td {
  color: #d4a017 !important;
  font-weight: 800 !important;
  background: rgba(212, 160, 23, 0.12) !important;
  text-shadow: 0 0 0.01px currentColor;
}

a:link, a:visited {
  color: #ffffff;
  text-decoration: none;
}

a:hover, a:active {
  opacity: .95;
  text-decoration: none;
}

#transactionsTable a,
#transactionsTable a:link,
#transactionsTable a:visited,
#transactionsTable a:hover,
#transactionsTable a:active,
#overviewTable a,
#overviewTable a:link,
#overviewTable a:visited,
#overviewTable a:hover,
#overviewTable a:active,
#rosterTable a,
#rosterTable a:link,
#rosterTable a:visited,
#rosterTable a:hover,
#rosterTable a:active,
#injuryReportTable a,
#injuryReportTable a:link,
#injuryReportTable a:visited,
#injuryReportTable a:hover,
#injuryReportTable a:active {
  text-decoration: underline;
}

#injuryReportTable th:nth-child(1),
#injuryReportTable td:nth-child(1) {
  width: 18%;
}

#injuryReportTable th:nth-child(2),
#injuryReportTable td:nth-child(2) {
  width: 18%;
}

#injuryReportTable th:nth-child(3),
#injuryReportTable td:nth-child(3) {
  width: 12%;
}

#injuryReportTable th:nth-child(4),
#injuryReportTable td:nth-child(4) {
  width: 16%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.standings-team-short {
  display: none;
}

.games-date-short,
.games-tipoff-short,
.schedule-date-short,
.schedule-opponent-short,
.schedule-homeaway-short,
.schedule-venue-short,
.schedule-status-short,
.schedule-outcome-short {
  display: none;
}

.link-list a { display: inline-block; margin: 4px 0; }
.link-table { border: none; background: transparent; }
.link-table th, .link-table td { border: none; padding: 6px 0; }
.ok { color: var(--success); }
.warning { color: var(--warning); }
.critical { color: var(--critical); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; width: 100%; align-items: stretch; }
.metric { background: #0b1220; border: 1px solid #1f2937; border-radius: 10px; padding: 10px; min-width: 0; width: 100%; height: 100%; box-sizing: border-box; }
.metric-label { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.metric-value { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

#overviewTable th:first-child,
#overviewTable td:first-child {
  width: 32%;
  color: #dbe6ff;
  font-weight: 800;
}

#overviewTable td:last-child {
  font-size: 15px;
}

.footer {
  text-align: center;
  padding: 26px 8px 0;
}

.footer p {
  color: rgba(229, 238, 251, 0.7);
}

body.minimal-table-mode {
  --fire-red: #c8102e;
  --fire-blue: #cee5eb;
  --fire-ink: #201a1c;
  --fire-smoke: #f5f8f9;
  min-height: 100vh;
  background: var(--fire-smoke);
  color: var(--fire-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body.minimal-table-mode .noise,
body.minimal-table-mode .subsite-shell > p:first-child,
body.minimal-table-mode .section-heading {
  display: none;
}

body.minimal-table-mode .shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.minimal-table-mode .card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

body.minimal-table-mode .table-card {
  height: auto;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

body.minimal-table-mode table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  background: #fff;
  color: var(--fire-ink);
  font-variant-numeric: tabular-nums;
}

body.minimal-table-mode th,
body.minimal-table-mode td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(32, 26, 28, 0.16);
  color: var(--fire-ink);
  font-size: 14px;
  line-height: 1.35;
}

body.minimal-table-mode th {
  background: var(--fire-red);
  color: var(--fire-blue);
  font-family: Impact, "Arial Narrow", "Roboto Condensed", "Aptos Narrow", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.minimal-table-mode[data-view="overview"] #overviewTable thead {
  display: none;
}

body.minimal-table-mode tr:nth-child(even) td {
  background: rgba(206, 229, 235, 0.36);
}

body.minimal-table-mode a,
body.minimal-table-mode a:link,
body.minimal-table-mode a:visited,
body.minimal-table-mode a:hover,
body.minimal-table-mode a:active {
  color: var(--fire-red);
  text-decoration: underline;
}

body.minimal-table-mode .portland-fire-line td {
  color: var(--fire-red) !important;
  background: var(--fire-blue) !important;
  font-weight: 900 !important;
}

body.minimal-table-mode .status-pill {
  min-width: 0;
  padding: 2px 7px;
  border-color: var(--fire-red);
  border-radius: 2px;
  background: var(--fire-blue);
  color: var(--fire-red);
  font-size: 12px;
}

#cockpit-headline p,
#cockpit-insights li,
#cockpit-jobs li,
#cockpit-activity-list li {
  color: var(--muted);
  line-height: 1.6;
}

#cockpit-insights,
#cockpit-jobs,
#cockpit-activity-list {
  margin: 0;
  padding-left: 20px;
}

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

@media (max-width: 820px) {
  .two-up,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
    display: block;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shell { width: min(1100px, calc(100% - 20px)); }
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  td {
    border-bottom: none;
    padding: 6px 12px;
  }
}

@media (max-width: 640px) {
  body[data-view] {
    overflow-x: hidden;
  }

  body[data-view] .shell {
    width: min(100%, calc(100% - 16px));
    padding: 12px 0 28px;
  }

  body[data-view] .card {
    padding: 12px;
    border-radius: 16px;
  }

  body[data-view] .table-card {
    overflow: visible;
    border-radius: 12px;
  }

  body[data-view] table,
  body.minimal-table-mode table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  body[data-view] thead,
  body.minimal-table-mode thead {
    display: none;
  }

  body[data-view] tbody,
  body.minimal-table-mode tbody {
    display: grid;
    gap: 10px;
  }

  body[data-view] tr,
  body.minimal-table-mode tr {
    display: grid;
    gap: 0;
    padding: 8px 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(8, 15, 31, 0.72);
    overflow: hidden;
  }

  body[data-view] td,
  body.minimal-table-mode td {
    display: grid !important;
    grid-template-columns: minmax(82px, 36%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100% !important;
    min-width: 0;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  body[data-view] td:last-child,
  body.minimal-table-mode td:last-child {
    border-bottom: 0;
  }

  body[data-view] td::before,
  body.minimal-table-mode td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  body.minimal-table-mode .shell {
    width: 100%;
    padding: 0;
  }

  body.minimal-table-mode .card {
    padding: 0;
    border-radius: 0;
  }

  body.minimal-table-mode .table-card {
    border-radius: 0;
  }

  body.minimal-table-mode tbody {
    gap: 8px;
    padding: 8px;
    background: var(--fire-smoke);
  }

  body.minimal-table-mode tr {
    border-color: rgba(200, 16, 46, 0.26);
    border-radius: 6px;
    background: #fff;
  }

  body.minimal-table-mode th,
  body.minimal-table-mode td {
    border-bottom: 1px solid rgba(32, 26, 28, 0.16);
  }

  body.minimal-table-mode td::before {
    color: var(--fire-red);
    font-family: Impact, "Arial Narrow", "Roboto Condensed", "Aptos Narrow", Arial, sans-serif;
    letter-spacing: 0.04em;
  }

  body.minimal-table-mode .portland-fire-line td {
    background: var(--fire-blue) !important;
  }

  body[data-view="standings"] .card {
    padding: 10px;
  }

  body[data-view="standings"] .table-card {
    border-radius: 8px;
  }

  body[data-view="standings"] table,
  body[data-view="standings"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="standings"] tbody {
    gap: 0;
  }

  body[data-view="standings"] tr,
  body.minimal-table-mode[data-view="standings"] tr {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 48px 34px 46px;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="standings"] td,
  body.minimal-table-mode[data-view="standings"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 3px;
    border-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="standings"] td:nth-child(2),
  body.minimal-table-mode[data-view="standings"] td:nth-child(2) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="standings"] td::before,
  body.minimal-table-mode[data-view="standings"] td::before {
    content: none;
  }

  body[data-view="standings"] .standings-team-full {
    display: none;
  }

  body[data-view="standings"] .standings-team-short {
    display: inline;
  }

  body.minimal-table-mode[data-view="standings"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="standings"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="standings"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="standings"] td {
    color: var(--fire-ink);
  }

  body[data-view="schedule"] .card {
    padding: 10px;
  }

  body[data-view="schedule"] .table-card {
    border-radius: 8px;
  }

  body[data-view="schedule"] table,
  body[data-view="schedule"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="schedule"] tbody {
    gap: 0;
  }

  body[data-view="schedule"] tr,
  body.minimal-table-mode[data-view="schedule"] tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px minmax(46px, 0.7fr) 52px 58px;
    align-items: center;
    gap: 3px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="schedule"] td,
  body.minimal-table-mode[data-view="schedule"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 2px;
    border-bottom: 0;
    font-size: 11px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="schedule"] td:nth-child(2),
  body.minimal-table-mode[data-view="schedule"] td:nth-child(2),
  body[data-view="schedule"] td:nth-child(4),
  body.minimal-table-mode[data-view="schedule"] td:nth-child(4) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="schedule"] td::before,
  body.minimal-table-mode[data-view="schedule"] td::before {
    content: none;
  }

  body[data-view="schedule"] .schedule-date-full,
  body[data-view="schedule"] .schedule-opponent-full,
  body[data-view="schedule"] .schedule-homeaway-full,
  body[data-view="schedule"] .schedule-venue-full,
  body[data-view="schedule"] .schedule-status-full,
  body[data-view="schedule"] .schedule-outcome-full {
    display: none;
  }

  body[data-view="schedule"] .schedule-date-short,
  body[data-view="schedule"] .schedule-opponent-short,
  body[data-view="schedule"] .schedule-homeaway-short,
  body[data-view="schedule"] .schedule-venue-short,
  body[data-view="schedule"] .schedule-status-short,
  body[data-view="schedule"] .schedule-outcome-short {
    display: inline;
  }

  body.minimal-table-mode[data-view="schedule"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="schedule"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="schedule"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="schedule"] td {
    color: var(--fire-ink);
  }

  body[data-view="games"] .card {
    padding: 10px;
  }

  body[data-view="games"] .table-card {
    border-radius: 8px;
  }

  body[data-view="games"] table,
  body[data-view="games"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="games"] tbody {
    gap: 0;
  }

  body[data-view="games"] tr,
  body.minimal-table-mode[data-view="games"] tr {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 76px;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="games"] td,
  body.minimal-table-mode[data-view="games"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 3px;
    border-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="games"] td:nth-child(2),
  body.minimal-table-mode[data-view="games"] td:nth-child(2) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="games"] td::before,
  body.minimal-table-mode[data-view="games"] td::before {
    content: none;
  }

  body[data-view="games"] .games-date-full,
  body[data-view="games"] .games-tipoff-full {
    display: none;
  }

  body[data-view="games"] .games-date-short,
  body[data-view="games"] .games-tipoff-short {
    display: inline;
  }

  body.minimal-table-mode[data-view="games"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="games"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="games"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="games"] td {
    color: var(--fire-ink);
  }

  body[data-view="roster"] .card {
    padding: 10px;
  }

  body[data-view="roster"] .table-card {
    border-radius: 8px;
  }

  body[data-view="roster"] table,
  body[data-view="roster"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="roster"] tbody {
    gap: 0;
  }

  body[data-view="roster"] tr,
  body.minimal-table-mode[data-view="roster"] tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 42px 52px 58px;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="roster"] td,
  body.minimal-table-mode[data-view="roster"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 3px;
    border-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="roster"] td:nth-child(2),
  body.minimal-table-mode[data-view="roster"] td:nth-child(2) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="roster"] td::before,
  body.minimal-table-mode[data-view="roster"] td::before {
    content: none;
  }

  body.minimal-table-mode[data-view="roster"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="roster"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="roster"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="roster"] td {
    color: var(--fire-ink);
  }
}

@media (max-width: 640px) {
  body[data-view="overview"] table,
  body.minimal-table-mode[data-view="overview"] table {
    display: table;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 15, 31, 0.72);
    overflow: hidden;
  }

  body[data-view="overview"] thead,
  body.minimal-table-mode[data-view="overview"] thead {
    display: table-header-group;
  }

  body[data-view="overview"] tbody,
  body.minimal-table-mode[data-view="overview"] tbody {
    display: table-row-group;
    padding: 0;
    background: transparent;
  }

  body[data-view="overview"] tr,
  body.minimal-table-mode[data-view="overview"] tr {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-view="overview"] th,
  body[data-view="overview"] td,
  body.minimal-table-mode[data-view="overview"] th,
  body.minimal-table-mode[data-view="overview"] td {
    display: table-cell !important;
    width: auto !important;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12px;
    line-height: 1.25;
    text-align: left !important;
    overflow-wrap: normal;
  }

  body[data-view="overview"] td::before,
  body.minimal-table-mode[data-view="overview"] td::before {
    content: none;
  }

  body[data-view="overview"] th:first-child,
  body[data-view="overview"] td:first-child,
  body.minimal-table-mode[data-view="overview"] th:first-child,
  body.minimal-table-mode[data-view="overview"] td:first-child {
    width: 34% !important;
  }

  body.minimal-table-mode[data-view="overview"] table {
    border-color: rgba(200, 16, 46, 0.24);
    background: #fff;
  }

  body.minimal-table-mode[data-view="overview"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="overview"] #overviewTable td:first-child {
    color: var(--fire-red);
    font-weight: 900;
  }

  body.minimal-table-mode[data-view="overview"] #overviewTable th:first-child {
    color: var(--fire-blue);
    font-weight: 900;
  }

  body.minimal-table-mode[data-view="overview"] #overviewTable td:last-child {
    color: var(--fire-ink);
  }
}
