.panel,
.ticker,
.scoreboard,
.card,
.story-card,
.stat-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--edge);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.boot-loader,
.skeleton-stack {
  display: grid;
  gap: var(--space-3);
}

.boot-loader {
  position: relative;
  place-items: center;
  min-height: min(720px, calc(100svh - var(--space-6) * 2));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong), transparent 14%);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 8vw, var(--space-9)) var(--space-5);
  background:
    linear-gradient(90deg, rgba(143, 216, 255, 0.88) 0 4px, transparent 4px),
    linear-gradient(135deg, rgba(143, 216, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 28%, rgba(143, 216, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.99), rgba(3, 4, 7, 1));
  box-shadow: var(--shadow-2), var(--edge), 0 0 48px rgba(143, 216, 255, 0.08);
  isolation: isolate;
}

.boot-loader::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 43%, rgba(143, 216, 255, 0.07) 49%, transparent 55%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

html[data-startup-shell="intro"] .boot-loader {
  display: none;
}

.boot-loader-mark {
  position: relative;
  width: clamp(224px, 21vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 1;
}

.boot-loader-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143, 216, 255, 0.16), rgba(143, 216, 255, 0.045) 46%, transparent 72%),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.11), transparent 34%);
  filter: blur(12px);
  opacity: 0.62;
  pointer-events: none;
  animation: boot-loader-bloom 3.2s ease-in-out infinite;
}

.boot-loader-logo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(143, 216, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    #05070a;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.76), 0 0 34px rgba(143, 216, 255, 0.12);
  isolation: isolate;
}

.boot-loader-logo-stage::before {
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  content: "";
  pointer-events: none;
}

/* boot-loader slash line removed — clean logo + halo only, no line across the mark */

.boot-loader-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

.boot-loader-copy {
  display: grid;
  gap: 10px;
  width: min(100%, 42rem);
  justify-items: center;
  align-content: start;
  text-align: center;
  z-index: 1;
}

.boot-loader-copy strong {
  color: var(--text);
  font-family: var(--font-broadcast, var(--font-display));
  font-size: clamp(2.45rem, 5.4vw, 4.45rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  font-feature-settings: "kern" 1, "liga" 1;
  text-shadow: 0 0 28px rgba(143, 216, 255, 0.14), 0 8px 28px rgba(0, 0, 0, 0.66);
}

.boot-loader .eyebrow {
  margin: 0;
  color: color-mix(in srgb, var(--muted), transparent 2%);
  font-size: var(--type-label-min);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.boot-loader-copy h1,
.boot-loader-copy p {
  margin: 0;
}

.boot-loader-copy h1 {
  max-width: 14ch;
  color: var(--text);
  font-family: var(--font-broadcast, var(--font-display));
  font-size: clamp(1.4rem, 2vw, 1.92rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

.boot-loader-copy p:not(.eyebrow) {
  max-width: 40ch;
  color: color-mix(in srgb, var(--text), transparent 22%);
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  line-height: 1.55;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--edge);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 30%,
      rgba(143, 216, 255, 0.04) 45%,
      rgba(143, 216, 255, 0.035) 55%,
      transparent 70%
    );
  content: "";
  transform: translateX(-100%);
  animation: skeleton-sweep 1.8s ease-in-out infinite;
}

.skeleton-title {
  width: min(520px, 88%);
  height: 54px;
}

.skeleton-card {
  min-height: 92px;
}

.skeleton-row {
  min-height: 44px;
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

@keyframes boot-loader-bloom {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.74;
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-loader-halo {
    animation: none;
    opacity: 0.42;
    transform: none;
  }
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #05070a;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease);
}

.intro-overlay-startup,
[data-startup-surface] {
  display: none;
}

html[data-startup-shell="intro"] .intro-overlay-startup,
html[data-startup-shell="intro"] [data-startup-surface] {
  display: flex;
}

.intro-overlay.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05070a;
}

.intro-overlay.is-reduced-motion .intro-overlay-video {
  background: #05070a url("../../../assets/motion/ovrwire-5gdasd-app-loader-poster.webp?v=5gdasd-clean-20260624") center / cover no-repeat;
}

.intro-overlay-browser {
  flex-direction: column;
  background: #05070a;
}

/* Sticky header is the only frosted-glass surface after the R1 editorial pass. */
.site-header {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-3), transparent 10%);
  box-shadow: var(--shadow-2), var(--edge), 0 1px 0 var(--line);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: none;
}

.trust-strip,
.site-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--line), transparent 28%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-2), transparent 18%);
  color: color-mix(in srgb, var(--muted), transparent 10%);
  box-shadow: var(--edge);
  padding: var(--space-2) var(--space-3);
  font-size: var(--type-data-min);
  line-height: 1.35;
}

.trust-strip {
  position: relative;
  z-index: 1;
}

.trust-strip span,
.site-footer span {
  min-width: 0;
}

.trust-strip span:first-child,
.trust-strip-short,
.site-footer span:first-child {
  font-weight: 600;
}

.trust-strip span:last-child,
.site-footer span:last-child {
  text-align: right;
}

.trust-strip-short {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  margin-top: 8px;
  padding: 14px 16px;
}

.site-footer-copy,
.site-footer-links,
.site-footer-link-group,
.site-footer-meta {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.site-footer-copy {
  max-width: 42ch;
}

.site-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding-top: 2px;
}

.site-footer-contact a,
.create-contact-note a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: color-mix(in srgb, var(--data-accent), var(--text) 12%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-footer-contact a:hover,
.site-footer-contact a:focus-visible,
.create-contact-note a:hover,
.create-contact-note a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-footer-copy strong,
.site-footer-heading {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer-copy p,
.site-footer-copy small,
.site-footer-meta span {
  margin: 0;
  color: color-mix(in srgb, var(--muted), transparent 8%);
  font-size: 0.75rem;
  line-height: 1.45;
}

.site-footer-disclaimer {
  margin: var(--space-3) 0 0;
  max-width: 92ch;
  color: color-mix(in srgb, var(--muted), transparent 28%);
  font-size: 0.68rem;
  line-height: 1.5;
}

/* Active-league control reads as a quiet "you're viewing this league" switcher,
   not a brand badge — OVRWire is the identity, the league is context. */
.league-chip-switch {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.league-chip-switch:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 38%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 72%), color-mix(in srgb, var(--accent), transparent 86%));
}

.league-chip-caret {
  font-size: 0.7em;
  opacity: 0.7;
}

.site-footer-links {
  justify-items: end;
}

.site-footer-link-group .chip-row {
  justify-content: flex-end;
}

.site-footer .chip {
  min-height: 38px;
  padding: 0 11px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1) var(--space-2);
  grid-column: 1 / -1;
  min-width: 0;
  padding: 6px 8px 0;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--muted), transparent 8%);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  padding: 0 12px;
  text-align: center;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.utility-link:hover,
.utility-link:focus-visible,
.utility-link.is-active {
  color: var(--text);
}

.utility-link.is-active {
  border-color: color-mix(in srgb, var(--accent), var(--line) 22%);
  background: color-mix(in srgb, var(--panel), transparent 8%);
  box-shadow: var(--edge);
}

.desktop-header-menu {
  grid-column: 1 / -1;
  padding-top: 8px;
}

@supports (view-transition-name: none) {
  .app-shell {
    view-transition-name: ovrwire-app;
  }

  ::view-transition-old(ovrwire-app) {
    animation: fade-scale-out var(--dur-fast) var(--ease) both;
  }

  ::view-transition-new(ovrwire-app) {
    animation: fade-scale-in var(--dur-base) var(--ease) both;
  }
}

@property --stat-value {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

.stat-countup {
  counter-reset: stat var(--stat-value);
}

.stat-countup::after {
  content: counter(stat);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes countup {
  from {
    --stat-value: 0;
  }
}

@keyframes fade-scale-out {
  to {
    opacity: 0;
    transform: translateY(-4px) scale(0.985) translateZ(0);
  }
}

@keyframes fade-scale-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(1.008) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
  }
}

/* Interactive surfaces lift on hover (premium, quick — no bounce). */
.card:hover,
.stat-card:hover,
.story-card:hover,
.ticker-item:hover,
.social-card:hover,
.social-feature-card:hover,
.result-card:hover,
.panel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30), var(--shadow-2), var(--edge);
  transform: translateY(-2px) translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay,
  .intro-overlay * {
    animation: none;
  }
  .skeleton::after {
    animation: none;
    display: none;
  }
  .stat-countup {
    animation: none;
  }
  .site-header {
    transition: none;
  }
  .card,
  .stat-card,
  .story-card,
  .ticker-item,
  .quick-link-card {
    transition: none;
  }
  .card:hover,
  .stat-card:hover,
  .story-card:hover,
  .ticker-item:hover,
  .quick-link-card:hover {
    transform: none;
  }
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 10px;
  display: grid;
  grid-template-columns: minmax(188px, 248px) minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-xl);
}

.site-header-mobile {
  grid-template-columns: 1fr;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker {
    animation: surface-enter var(--dur-base) var(--ease) 70ms both;
  }

  .home-command {
    animation: command-enter var(--dur-base) var(--ease) 110ms both;
  }

  .home-live-score .scoreboard {
    animation: receipt-lock var(--dur-base) var(--ease) 220ms both;
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home-prime-grid.reveal,
    .home-featured-report.reveal,
    .home-section.reveal,
    .quick-link-strip.reveal,
    .quick-link-card.reveal {
      opacity: 1;
      transform: translateY(0) translateZ(0);
      animation: reveal-up-visible var(--dur-base) var(--ease) both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }

    .reveal-stagger > .reveal:nth-child(2) {
      animation-range: entry 6% entry 46%;
    }

    .reveal-stagger > .reveal:nth-child(3) {
      animation-range: entry 12% entry 52%;
    }

    .reveal-stagger > .reveal:nth-child(4) {
      animation-range: entry 18% entry 58%;
    }
  }
}

@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(12px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes command-enter {
  from {
    opacity: 0;
    transform: translateY(18px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes receipt-lock {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes reveal-up-visible {
  from {
    opacity: 0.86;
    transform: translateY(10px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.brand {
  display: flex;
  min-height: 38px;
  min-width: 0;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

/* ─── Brand img (non-header contexts: install prompt, home plate) ─── */
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ─── Interactive animated OVR brand mark (open, no box) ──────────── */
.brand-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 32px;
}

.brand-mark svg {
  display: block;
  height: 100%;
  width: auto;
  overflow: visible;
  transition: transform var(--dur-base) var(--ease);
}

@media (min-width: 721px) {
  .brand-mark {
    height: 36px;
  }
}

/* Whole mark lifts slightly on hover/focus */
.brand:hover .brand-mark svg,
.brand:focus-visible .brand-mark svg {
  transform: scale(1.05);
}

/* ─── Interactive comet logo (desktop masthead) — OVR mark + orbiting comet ─── */
.brand--comet {
  gap: 14px;
}

.brand-comet {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  perspective: 340px;
  --brand-orbit-r: 28px;
}

.brand-comet .brand-mark {
  height: 28px;
}

.brand-comet-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.brand-comet-orbit::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(143, 216, 255, 0.14);
}

.brand-comet-orbit--a {
  transform: rotateX(66deg);
}

.brand-comet-orbit--b {
  transform: rotateX(66deg) rotateZ(62deg);
}

.brand-comet-orbit--b::before {
  border-color: rgba(76, 201, 255, 0.1);
}

.brand-comet-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #8fd8ff 48%, rgba(143, 216, 255, 0) 76%);
  box-shadow: 0 0 8px 2px rgba(143, 216, 255, 0.95), 0 0 20px 6px rgba(143, 216, 255, 0.42);
  animation: brand-comet-orbit 3s linear infinite;
}

.brand-comet-orbit--b .brand-comet-dot {
  width: 4.5px;
  height: 4.5px;
  margin: -2.25px 0 0 -2.25px;
  background: radial-gradient(circle, #ffffff 0%, #4cc9ff 52%, rgba(76, 201, 255, 0) 76%);
  box-shadow: 0 0 7px 2px rgba(76, 201, 255, 0.9), 0 0 16px 5px rgba(76, 201, 255, 0.4);
  animation-duration: 4.4s;
  animation-direction: reverse;
}

@keyframes brand-comet-orbit {
  from {
    transform: rotate(0deg) translateX(var(--brand-orbit-r, 28px)) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(var(--brand-orbit-r, 28px)) rotate(-360deg);
  }
}

/* Interactive: hover/focus accelerates the orbit + lifts the mark */
.brand:hover .brand-comet-orbit--a .brand-comet-dot,
.brand:focus-visible .brand-comet-orbit--a .brand-comet-dot {
  animation-duration: 1.3s;
}

.brand:hover .brand-comet-orbit--b .brand-comet-dot,
.brand:focus-visible .brand-comet-orbit--b .brand-comet-dot {
  animation-duration: 1.9s;
}

.brand:hover .brand-comet .brand-mark svg,
.brand:focus-visible .brand-comet .brand-mark svg {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .brand-comet-dot {
    animation: none;
  }
  .brand-comet-orbit {
    display: none;
  }
}

/* Chrome OVR letters — subtle drop shadow so they read on any header bg */
.bm-ovr {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

/* Soft, edgeless red bloom behind the letters — breathes at rest, flares on hover */
.bm-bloom {
  transform-box: fill-box;
  transform-origin: center;
  animation: bm-breathe 4.4s ease-in-out infinite;
}

@keyframes bm-breathe {
  0%, 100% { opacity: 0.42; transform: scale(0.92); }
  50% { opacity: 0.72; transform: scale(1.03); }
}

.brand:hover .bm-bloom,
.brand:focus-visible .bm-bloom {
  animation-duration: 1.6s;
  opacity: 0.95;
}

/* Chrome sheen sweep across the letters on hover */
.bm-sheen {
  opacity: 0;
}

.brand:hover .bm-sheen,
.brand:focus-visible .bm-sheen {
  animation: bm-sweep 1.5s var(--ease) 0.1s;
}

@keyframes bm-sweep {
  0% { opacity: 0; transform: translateX(0); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translateX(116px); }
}

/* EKG wire — red glow, brightens on hover */
.bm-wire {
  filter: drop-shadow(0 0 2px rgba(255, 31, 61, 0.85)) drop-shadow(0 0 6px rgba(255, 31, 61, 0.45));
  transition: stroke-width var(--dur-base) var(--ease);
}

.brand:hover .bm-wire,
.brand:focus-visible .bm-wire {
  stroke-width: 2.8;
}

/* Heartbeat glint travels along the wire — idle pulse, faster surge on hover */
.bm-wire-pulse {
  filter: drop-shadow(0 0 2px #ffffff);
  animation: bm-heartbeat 3.4s ease-in-out infinite;
}

@keyframes bm-heartbeat {
  0% { stroke-dashoffset: 69; opacity: 0; }
  6% { opacity: 0.95; }
  44% { stroke-dashoffset: 5; opacity: 0.95; }
  56% { stroke-dashoffset: 5; opacity: 0; }
  100% { stroke-dashoffset: 5; opacity: 0; }
}

.brand:hover .bm-wire-pulse,
.brand:focus-visible .bm-wire-pulse {
  animation-duration: 1.1s;
}

/* Click ignition — red bloom flares from the letters */
.brand:active .bm-flash {
  animation: bm-flash-burst 0.34s ease-out forwards;
}

@keyframes bm-flash-burst {
  0%   { opacity: 0; transform: scale(0.8); }
  22%  { opacity: 0.85; }
  100% { opacity: 0; transform: scale(1.15); }
}

.bm-flash {
  transform-box: fill-box;
  transform-origin: center;
}

/* Un-hide the OVRWire text label when using the icon mark */
/* Higher specificity (0,2,0+) beats the responsive.css sr-only rule (0,1,1) */
.brand--mark .brand-copy {
  display: grid;
  gap: 2px;
}

.brand--mark .brand-copy strong {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

/* Reduced motion: freeze to a clean, lit end-state — no looping motion */
@media (prefers-reduced-motion: reduce) {
  .bm-bloom { animation: none; opacity: 0.55; transform: none; }
  .bm-wire-pulse { animation: none; opacity: 0; }
  .brand:hover .brand-mark svg,
  .brand:focus-visible .brand-mark svg { transform: none; }
  .brand:hover .bm-sheen,
  .brand:focus-visible .bm-sheen { animation: none; }
  .brand:active .bm-flash { animation: none; }

  .brand-logo-video {
    display: none !important;
  }

  .brand-logo-poster {
    opacity: 1 !important;
  }
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand > span {
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand strong {
  display: block;
  color: var(--text);
  font-family: var(--font-broadcast, var(--font-display));
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.brand-logo-video-wrap {
  display: inline-grid;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  place-items: center;
  background: transparent;
  pointer-events: none;
}

.brand-logo-video,
.brand-logo-poster,
.brand-logo-poster img {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.brand-logo-video,
.brand-logo-poster img {
  object-fit: contain;
  object-position: center;
}

.brand-logo-video {
  background: transparent;
  mix-blend-mode: screen;
  opacity: 1;
  transform: scale(1.08);
}

.brand-logo-poster {
  opacity: 0;
  pointer-events: none;
}

.header-surface-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 18px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 48%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 86%);
  color: color-mix(in srgb, var(--text), var(--accent) 22%);
  font-size: var(--type-micro-min);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-header-bar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-header-meta {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.mobile-header-actions {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mobile-header-toggle {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line), transparent 8%);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel-2), transparent 12%);
  color: color-mix(in srgb, var(--muted), transparent 2%);
  padding: 0;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.mobile-header-toggle:hover,
.mobile-header-toggle:focus-visible,
.mobile-header-toggle.is-active {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}

.mobile-header-panel {
  display: grid;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line), transparent 42%);
  padding-top: 8px;
}

.mobile-header-panel-grid,
.mobile-header-route-grid {
  display: grid;
  gap: 8px;
}

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

.mobile-header-control-grid {
  gap: 8px;
}

.mobile-header-route-grid + .mobile-header-control-grid {
  border-top: 1px solid color-mix(in srgb, var(--line), transparent 42%);
  padding-top: 8px;
}

.mobile-header-controls .field,
.mobile-header-controls .field > span {
  min-width: 0;
}

.mobile-header-controls .role-field {
  min-width: 0;
}

.tabs,
.controls,
.ticker-track,
.chip-row,
.role-toggle {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.controls,
.controls > * {
  min-width: 0;
}

.controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-header .field {
  gap: 3px;
}

.site-header .field > span {
  color: color-mix(in srgb, var(--muted), transparent 8%);
  font-size: var(--type-micro-min);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tabs {
  align-self: stretch;
  min-width: 0;
  overflow-x: auto;
  border-block: 1px solid color-mix(in srgb, var(--line), transparent 34%);
  padding-block: 1px;
  scrollbar-width: none;
}

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

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

.sparkline {
  width: 64px;
  height: 18px;
  color: var(--data-accent);
  overflow: visible;
}

.sparkline path {
  fill: none;
  opacity: 0.92;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.leader-trend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.leader-trend-label {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.leader-trend-values {
  display: inline-flex;
  gap: 7px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
}

.leader-trend-values b {
  font-weight: 600;
  color: color-mix(in srgb, var(--text), var(--muted) 28%);
}

.leader-trend-values b.is-peak {
  color: var(--data-accent);
  font-weight: 800;
}

.chip,
.role-option,
.icon-button,
.primary,
.secondary {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel-2), transparent 8%);
  color: var(--text);
  padding: 0 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.role-option,
.icon-button,
.primary,
.secondary {
  display: inline-flex;
  gap: 0.48rem;
  align-items: center;
  justify-content: center;
}

.chip,
.role-option,
.icon-button,
.secondary {
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.chip:hover,
.role-option:hover,
.icon-button:hover,
.secondary:hover {
  border-color: var(--line-strong);
  background: var(--panel-3);
}

.role-option.is-active,
.primary {
  border-color: color-mix(in srgb, var(--accent-2), var(--accent) 42%);
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff, transparent 86%), transparent 52%),
    var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent), transparent 72%), var(--edge);
}

.role-option.is-active span,
.primary span {
  color: inherit;
}

.tab {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted), transparent 10%);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0 11px;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}

/* Bigger, more confident header on wide / ultrawide desktops */
@media (min-width: 1280px) {
  .app-shell[data-surface="desktop-browser"] .tabs .tab {
    min-height: 46px;
    font-size: 0.9rem;
    padding: 0 14px;
  }
  .app-shell[data-surface="desktop-browser"] .brand--comet .brand-copy strong {
    font-size: 1.32rem;
  }
}

@media (min-width: 1680px) {
  .app-shell[data-surface="desktop-browser"] .tabs .tab {
    font-size: 1rem;
    padding: 0 18px;
  }
  .app-shell[data-surface="desktop-browser"] .brand--comet .brand-copy strong {
    font-size: 1.5rem;
  }
  .app-shell[data-surface="desktop-browser"] .brand-comet {
    width: 72px;
    height: 72px;
    --brand-orbit-r: 33px;
  }
  .app-shell[data-surface="desktop-browser"] .brand-comet .brand-mark {
    height: 33px;
  }
}

.tab-home {
  padding: 0;
}

.tab-home .icon {
  width: 0.98rem;
  height: 0.98rem;
}

.tab::after {
  position: absolute;
  right: 8px;
  bottom: 2px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.56);
  transform-origin: center;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  color: var(--text);
}

.tab.is-active::after,
.tab:hover::after,
.tab:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.primary:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff, transparent 82%), transparent 52%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent), white 8%), var(--accent-2));
}

.role-toggle {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 3px;
}

.season-select {
  display: none;
}

.season-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 3px;
}

.season-option {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 10px;
}

.season-option.is-active {
  border-color: color-mix(in srgb, var(--accent), var(--line) 26%);
  background: #b90f27;
  color: #ffffff;
  box-shadow: var(--edge);
}

.season-option:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.role-option {
  flex: 1 1 0;
  min-height: 38px;
  border-color: transparent;
  padding: 0 10px;
}

.role-option.is-active {
  border-color: color-mix(in srgb, var(--accent), #ffffff 18%);
  background: #b90f27;
  color: #ffffff;
  box-shadow: var(--edge);
}

.field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field select,
.field input,
.field textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  padding: 0 9px;
}

.league-field {
  min-width: 88px;
}

.league-field select,
.league-chip {
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 80%), color-mix(in srgb, var(--accent), transparent 90%));
  color: color-mix(in srgb, var(--accent), #ffffff 34%);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--edge), inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 72%);
}

.league-field-static {
  pointer-events: none;
}

.league-chip {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
  border-radius: var(--radius-sm);
  padding: 0 9px;
  white-space: nowrap;
}

.ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.ticker-track {
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  position: relative;
  flex: 0 0 304px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--text), transparent 97%), transparent 48%),
    var(--panel-2);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.ticker-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, 0.08) 50%, transparent 58%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-55%);
}

.eyebrow {
  font-family: var(--font);
  color: var(--muted);
  font-size: var(--type-data-min);
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker-label,
.status {
  font-family: var(--font);
  color: var(--muted);
  font-size: var(--type-data-min);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--font);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.breadcrumb-row > * {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb-row > * + *::before {
  color: var(--line-strong);
  content: "/";
}

.breadcrumb-row strong {
  color: var(--text);
}

.breadcrumb-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  padding: 0 2px;
  text-transform: inherit;
}

.status {
  display: inline-flex;
  min-height: 26px;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0 8px;
}

.status .icon {
  width: 0.9em;
  height: 0.9em;
}

.status-live,
.status-approved,
.status-locked,
.status-published {
  color: var(--good);
}

.status-needs_review,
.status-review {
  color: var(--warn);
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.section-title h1 {
  font-family: var(--font-broadcast, var(--font-display));
}

.section-title p {
  margin: 0 0 4px;
}

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

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

.directory-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(220px, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
}

.directory-controls > * {
  min-width: 0;
}

.directory-controls .field input,
.directory-controls .field select {
  width: 100%;
  min-width: 0;
}

.directory-count {
  display: grid;
  min-height: 38px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  padding: 6px 10px;
}

.directory-count strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.directory-count.is-quiet {
  border-color: color-mix(in srgb, var(--line), transparent 16%);
  background: color-mix(in srgb, var(--panel-2), transparent 8%);
}

.directory-count.is-quiet strong {
  font-size: 0.84rem;
  font-weight: 500;
}

.stat-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.stat-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-feature-settings: "kern" 1, "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.stat-table th,
.stat-table td {
  height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  font-feature-settings: "kern" 1, "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 1101px) {
  .app-shell[data-surface="desktop-browser"] .site-header {
    top: 8px;
    grid-template-columns: minmax(204px, 250px) minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 6px 8px;
    border-radius: var(--radius);
  }

  .app-shell[data-surface="desktop-browser"] .brand {
    min-height: 44px;
    gap: 8px;
  }

  .app-shell[data-surface="desktop-browser"] .brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
  }

  .app-shell[data-surface="desktop-browser"] .brand strong {
    font-size: 1.02rem;
    line-height: 1;
  }

  .app-shell[data-surface="desktop-browser"] .brand span {
    font-size: var(--type-micro-min);
  }

  .app-shell[data-surface="desktop-browser"] .tabs {
    border-block: 0;
    padding-block: 0;
  }

.app-shell[data-surface="desktop-browser"] .tab {
    min-height: 44px;
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .app-shell[data-surface="desktop-browser"] .controls {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .app-shell[data-surface="desktop-browser"] .controls .field > span:not(.league-chip):not(.season-segment) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .app-shell[data-surface="desktop-browser"] .season-segment,
  .app-shell[data-surface="desktop-browser"] .role-toggle {
    min-height: 44px;
    border-radius: var(--radius-sm);
    padding: 2px;
  }

.app-shell[data-surface="desktop-browser"] .season-option,
  .app-shell[data-surface="desktop-browser"] .role-option,
  .app-shell[data-surface="desktop-browser"] .icon-button,
  .app-shell[data-surface="desktop-browser"] .field select,
  .app-shell[data-surface="desktop-browser"] .field input {
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
  }

.app-shell[data-surface="desktop-browser"] .utility-link {
    min-height: 44px;
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .app-shell[data-surface="desktop-browser"] .trust-strip {
    min-height: 28px;
    padding: 5px 10px;
    font-size: var(--type-micro-min);
  }

  .app-shell[data-surface="desktop-browser"] .ticker {
    grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
  }

  .app-shell[data-surface="desktop-browser"] .ticker-item {
    min-height: 44px;
    flex-basis: 264px;
    padding: 9px 10px;
  }
}

.stat-countup,
.score-value,
.matchup-score,
.row-rank,
.home-mobile-score-value,
.playoff-round-badge,
.playoff-series-seed,
.playoff-series-team > strong,
.playoff-game-score,
.rank-drop-card-value,
.rank-drop-card[data-rank]::after,
.rank-drop-metrics strong,
.season-overview-metric strong,
.data-proof-metric strong,
.data-lab-kpi b,
.team-hero-record b,
.player-hero-stat b,
.result-score,
.result-team-score,
.leader-stat-primary,
.hero-inline-stat strong {
  font-family: var(--font-display);
  font-feature-settings: "kern" 1, "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.stat-table th:first-child,
.stat-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--panel-3) 0%, var(--panel-3) 82%, transparent 100%);
  box-shadow: 10px 0 18px rgba(0, 0, 0, 0.16);
  font-family: var(--font);
  font-feature-settings: "kern" 1;
  font-variant-numeric: normal;
  font-weight: 600;
  text-align: left;
}

.stat-table thead th:first-child {
  z-index: 2;
}

.table-link {
  display: inline-flex;
  min-height: 38px;
  min-width: 38px;
  align-items: center;
  border-radius: var(--radius-hud);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: max(0.75rem, 12px);
  font-weight: 880;
  line-height: 1.2;
  padding: 0 2px;
  text-align: inherit;
  text-decoration: none;
}

.table-link strong {
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent), transparent 50%);
  transition: box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.table-link:hover strong {
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent), transparent 22%);
}

.team-token {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color, var(--accent)), transparent 58%) 0 3px, transparent 3px),
    color-mix(in srgb, var(--team-color, var(--panel-2)), transparent 88%);
  color: var(--text);
  padding: 3px 8px 3px 4px;
  text-align: left;
  text-decoration: none;
  vertical-align: middle;
}

button.team-token {
  cursor: pointer;
  min-height: 44px;
}

button.team-token:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.team-token.is-table {
  max-width: 240px;
}

.team-token.is-table .team-logo,
.result-team .team-logo,
.home-standings .team-logo {
  --mark-size: 38px;
}

.team-token.is-table b,
.result-team .team-token b,
.home-standings .team-token b {
  font-size: 0.9rem;
  font-weight: 600;
}

.team-token.is-compact {
  gap: 5px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color, var(--accent)), transparent 54%) 0 2px, transparent 2px),
    color-mix(in srgb, var(--team-color, var(--panel-2)), transparent 92%);
  padding: 2px 6px 2px 3px;
}

.team-token.is-compact .team-logo {
  --mark-size: 26px;
  padding: 0;
}

.team-token.is-compact b {
  font-size: var(--type-label-min);
}

.team-token > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
  line-height: 1;
}

.team-token b {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.team-token small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--type-data-min);
  font-weight: 760;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-token:hover {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color, var(--accent)), transparent 46%) 0 3px, transparent 3px),
    color-mix(in srgb, var(--team-color, var(--panel-2)), transparent 82%);
}

.matchup-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--text);
}

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

.matchup-separator {
  color: var(--muted);
}

.matchup-chip {
  gap: 7px;
}

.row-rank {
  color: var(--muted);
  font-weight: 600;
}

.empty {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 16px;
  text-align: center;
}

.empty .icon {
  color: var(--accent);
  opacity: 0.86;
}

.box-edit-panel {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 14px;
}

.box-edit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (max-width: 860px) {
  .box-edit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

/* ---- Claude v2 shared page hooks. Render coverage lives in verify-static. ---- */

/* Recent form: last-5 W/L. Codex emits .is-win / .is-loss per result. */
.form-pills {
  display: inline-flex;
  gap: 5px;
}
.form-pill {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.form-pill.is-win {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good), transparent 58%);
  background: color-mix(in srgb, var(--good), transparent 82%);
}
.form-pill.is-loss {
  color: color-mix(in srgb, var(--accent), var(--muted) 35%);
}

/* Badges / awards (player + team). Variants: .is-gold, .is-accent. */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--panel-2);
  box-shadow: var(--edge);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.is-gold {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold), transparent 55%);
  box-shadow: var(--edge), 0 0 18px rgba(244, 197, 66, 0.18);
}
.badge.is-accent {
  color: color-mix(in srgb, var(--accent), white 18%);
  border-color: color-mix(in srgb, var(--accent), var(--line) 30%);
  box-shadow: var(--edge);
}

/* Result accents inside log / standings tables (game log, match log). */
.res-w {
  color: var(--good);
  font-weight: 600;
}
.res-l {
  color: color-mix(in srgb, var(--accent), var(--muted) 35%);
  font-weight: 600;
}

/* ---- Claude v2: stat-table polish (core surface — propagates to standings,
   leaders, directories, box scores). Verified on Home. ---- */
.stat-table thead th {
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--type-data-min);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-color: var(--line-strong);
}
.stat-table thead .table-link {
  color: var(--muted);
  text-decoration: none;
}
.stat-table thead .table-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.stat-table tbody tr {
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.stat-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.stat-table tbody tr.is-sample-watch {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gold), transparent 93%), transparent 54%),
    color-mix(in srgb, var(--panel-2), transparent 18%);
}

.stat-table tbody tr.is-sample-watch:hover {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gold), transparent 89%), transparent 58%),
    rgba(255, 255, 255, 0.045);
}
/* Active-sort caret — requires aria-sort="ascending|descending" on the active <th>. */
.stat-table thead th[aria-sort="ascending"] .table-link::after {
  content: " \25B4";
  color: var(--accent);
}
.stat-table thead th[aria-sort="descending"] .table-link::after {
  content: " \25BE";
  color: var(--accent);
}

.install-prompt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(720px, calc(100vw - 36px));
  border: 1px solid color-mix(in srgb, var(--line-strong), transparent 18%);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 82%), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, #ffffff, transparent 88%), transparent 58%),
    color-mix(in srgb, var(--panel-3), #05070a 18%);
  box-shadow: var(--shadow-2), var(--edge), 0 0 32px color-mix(in srgb, var(--accent), transparent 82%);
  padding: 12px;
}

.install-phone-art {
  display: grid;
  place-items: center;
}

.install-phone-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #ffffff, transparent 72%);
  border-radius: var(--radius-xl);
  background: #070b13;
  box-shadow: inset 0 0 0 4px #05070a, 0 14px 28px rgba(0, 0, 0, 0.36);
}

.install-phone-shell img {
  width: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent), transparent 60%));
}

.install-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 28px;
  height: 5px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.install-phone-dock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.install-phone-dock span {
  height: 12px;
  border-radius: var(--radius-hud);
  background: color-mix(in srgb, var(--accent), #ffffff 12%);
  opacity: 0.82;
}

.install-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.install-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.05;
}

.install-copy p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.install-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.install-steps span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--panel-2), transparent 18%);
  color: var(--muted);
  padding: 0 10px;
  font-size: var(--type-label-min);
}

.install-steps strong {
  color: var(--text);
}

.install-guide {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  counter-reset: install-step;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.3;
  list-style: none;
}

.install-guide li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.install-guide li::before {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 38%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--text);
  content: counter(install-step);
  counter-increment: install-step;
  font: 700 var(--type-data-min)/1 var(--font-mono);
}

.install-actions {
  display: grid;
  gap: var(--space-2);
  min-width: 112px;
}

.install-actions .primary,
.install-actions .secondary {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 50ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 150ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--panel-3);
  color: var(--text);
  font-size: var(--text-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-1);
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  box-shadow: var(--edge);
}
