:root {
  color-scheme: dark;
  --bg: #07100f;
  --panel: rgba(12, 26, 23, 0.86);
  --panel-strong: #0f201d;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #97a9a4;
  --text: #f4f8f6;
  --lime: #c6ff3d;
  --teal: #43d3aa;
  --blue: #68a8ff;
  --violet: #b79cff;
  --orange: #ffad66;
  --sidebar: 238px;
  --theme-color: #07100f;
  --body-orb-teal: rgba(67, 211, 170, 0.08);
  --body-orb-blue: rgba(104, 168, 255, 0.055);
  --body-grid-line: rgba(255, 255, 255, 0.018);
  --chrome-bg: rgba(6, 16, 15, 0.9);
  --chrome-bg-strong: rgba(6, 16, 15, 0.98);
  --surface-border: rgba(255, 255, 255, 0.105);
  --surface-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  --surface-highlight: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.035);
  --control-bg: rgba(255, 255, 255, 0.03);
  --control-hover-bg: rgba(198, 255, 61, 0.055);
  --control-text: #aab9b5;
  --subtle-text: #899894;
  --eyebrow-text: #71817d;
  --chip-text: #a9b9b4;
  --match-hover-bg: rgba(255, 255, 255, 0.018);
  --flag-border: rgba(255, 255, 255, 0.12);
  --flag-bg: rgba(255, 255, 255, 0.06);
  --flag-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  --accent: var(--lime);
  --accent-rgb: 198 255 61;
  --accent-contrast: #10200b;
  --accent-soft-bg: rgb(var(--accent-rgb) / 0.06);
  --accent-soft-border: rgb(var(--accent-rgb) / 0.18);
  --nav-muted: #899995;
  --nav-active: var(--accent);
  --nav-active-bg: rgb(var(--accent-rgb) / 0.11);
  --nav-active-border: rgb(var(--accent-rgb) / 0.32);
  --nav-indicator-shadow: 0 0 14px var(--nav-active);
  --topbar-bg:
    radial-gradient(circle at 84% 16%, rgb(var(--accent-rgb) / 0.075), transparent 25%),
    radial-gradient(circle at 48% 130%, rgba(67, 211, 170, 0.075), transparent 42%),
    linear-gradient(115deg, rgba(16, 34, 31, 0.98), rgba(6, 17, 15, 0.94));
  --topbar-scrim:
    linear-gradient(90deg, rgba(5, 14, 13, 0.68), rgba(5, 14, 13, 0.34) 56%, rgba(5, 14, 13, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%);
  --topbar-ring: rgb(var(--accent-rgb) / 0.08);
  --topbar-ring-shadow:
    0 0 0 34px rgb(var(--accent-rgb) / 0.025),
    0 0 0 70px rgb(var(--accent-rgb) / 0.018);
  --topbar-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
  --settings-bg: rgba(8, 20, 18, 0.98);
  --spotlight-bg:
    radial-gradient(circle at 50% 120%, rgba(198, 255, 61, 0.105), transparent 45%),
    linear-gradient(135deg, rgba(18, 43, 36, 0.96), rgba(8, 22, 20, 0.9));
  --host-bg:
    linear-gradient(100deg, rgba(16, 35, 31, 0.97), rgba(10, 25, 23, 0.72)),
    var(--panel);
  --drawer-backdrop: rgba(2, 8, 7, 0.72);
  --drawer-bg:
    radial-gradient(circle at 50% 0, rgba(198, 255, 61, 0.1), transparent 30%),
    #091613;
  --drawer-border: rgba(198, 255, 61, 0.14);
  --drawer-shadow: -24px 0 70px rgba(0, 0, 0, 0.4);
  --drawer-toolbar-bg: rgba(9, 22, 19, 0.94);
  --detail-card-bg: rgba(255, 255, 255, 0.025);
  --detail-card-subtle-bg: rgba(255, 255, 255, 0.02);
  --stat-track-bg: rgba(255, 255, 255, 0.05);
  --warning-text: #ffd2aa;
  --warning-bg: rgba(255, 173, 102, 0.055);
  --warning-border: rgba(255, 173, 102, 0.2);
  --danger-text: #ff8d8d;
  --danger-border: rgba(255, 141, 141, 0.32);
  --venue-hero-bg: #102a24;
  --venue-hero-fallback-bg:
    radial-gradient(circle at 72% 28%, rgba(198, 255, 61, 0.18), transparent 28%),
    repeating-linear-gradient(
      125deg,
      transparent 0 28px,
      rgba(255, 255, 255, 0.025) 28px 29px
    ),
    linear-gradient(135deg, #163c33, #071714);
  --venue-hero-shade: linear-gradient(180deg, transparent 30%, rgba(4, 13, 11, 0.94));
  --venue-hero-copy-text: #ffffff;
  --venue-hero-muted: #a6b6b1;
  --venue-fallback-muted: #8ba099;
  --pitch-line: rgba(255, 255, 255, 0.38);
  --pitch-goal-line: rgba(255, 255, 255, 0.32);
  --pitch-border: rgba(255, 255, 255, 0.3);
  --player-marker-text: #10200b;
  --player-label-bg: rgba(4, 20, 13, 0.78);
  --player-label-text: #ffffff;
  --player-small-text: rgba(255, 255, 255, 0.76);
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8f4;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(17, 54, 49, 0.16);
  --muted: #526c66;
  --text: #10201d;
  --lime: #0f766e;
  --teal: #087f70;
  --blue: #1f5fa8;
  --violet: #7257b8;
  --orange: #a65a1a;
  --theme-color: #f6f8f4;
  --body-orb-teal: rgba(15, 118, 110, 0.13);
  --body-orb-blue: rgba(31, 95, 168, 0.08);
  --body-grid-line: rgba(17, 54, 49, 0.018);
  --chrome-bg: rgba(255, 255, 255, 0.82);
  --chrome-bg-strong: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(17, 54, 49, 0.16);
  --surface-shadow: 0 18px 42px rgba(21, 54, 49, 0.12);
  --surface-highlight: rgba(17, 54, 49, 0.045);
  --surface-hover: rgba(15, 118, 110, 0.07);
  --control-bg: rgba(255, 255, 255, 0.72);
  --control-hover-bg: rgba(15, 118, 110, 0.09);
  --control-text: #38544e;
  --subtle-text: #5d746f;
  --eyebrow-text: #62766f;
  --chip-text: #49605a;
  --match-hover-bg: rgba(15, 118, 110, 0.055);
  --flag-border: rgba(17, 54, 49, 0.18);
  --flag-bg: rgba(255, 255, 255, 0.86);
  --flag-shadow: 0 4px 12px rgba(21, 54, 49, 0.12);
  --accent: #0f766e;
  --accent-rgb: 15 118 110;
  --accent-contrast: #ffffff;
  --accent-soft-bg: rgb(var(--accent-rgb) / 0.08);
  --accent-soft-border: rgb(var(--accent-rgb) / 0.22);
  --nav-muted: #5a716b;
  --nav-active: #0f766e;
  --nav-active-bg: rgba(15, 118, 110, 0.1);
  --nav-active-border: rgba(15, 118, 110, 0.28);
  --nav-indicator-shadow: 0 0 12px rgba(15, 118, 110, 0.34);
  --topbar-bg:
    radial-gradient(circle at 82% 14%, rgba(15, 118, 110, 0.12), transparent 27%),
    radial-gradient(circle at 52% 125%, rgba(31, 95, 168, 0.08), transparent 42%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 235, 0.88));
  --topbar-scrim:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7) 58%, rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 45%);
  --topbar-ring: rgba(15, 118, 110, 0.14);
  --topbar-ring-shadow:
    0 0 0 34px rgba(15, 118, 110, 0.055),
    0 0 0 70px rgba(31, 95, 168, 0.035);
  --topbar-shadow: 0 18px 42px rgba(21, 54, 49, 0.13);
  --settings-bg: rgba(255, 255, 255, 0.97);
  --spotlight-bg:
    radial-gradient(circle at 50% 120%, rgba(15, 118, 110, 0.105), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 235, 0.9));
  --host-bg:
    linear-gradient(100deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 235, 0.76)),
    var(--panel);
  --drawer-backdrop: rgba(8, 25, 22, 0.32);
  --drawer-bg:
    radial-gradient(circle at 50% 0, rgba(15, 118, 110, 0.105), transparent 32%),
    #f8faf6;
  --drawer-border: rgba(17, 54, 49, 0.16);
  --drawer-shadow: -24px 0 60px rgba(21, 54, 49, 0.2);
  --drawer-toolbar-bg: rgba(255, 255, 255, 0.92);
  --detail-card-bg: rgba(255, 255, 255, 0.82);
  --detail-card-subtle-bg: rgba(17, 54, 49, 0.045);
  --stat-track-bg: rgba(17, 54, 49, 0.08);
  --warning-text: #8a4b16;
  --warning-bg: rgba(166, 90, 26, 0.09);
  --warning-border: rgba(166, 90, 26, 0.22);
  --danger-text: #9b2f2f;
  --danger-border: rgba(155, 47, 47, 0.28);
  --venue-hero-bg: #eef5ef;
  --venue-hero-fallback-bg:
    radial-gradient(circle at 72% 28%, rgba(15, 118, 110, 0.16), transparent 30%),
    repeating-linear-gradient(
      125deg,
      transparent 0 28px,
      rgba(17, 54, 49, 0.045) 28px 29px
    ),
    linear-gradient(135deg, #f9fbf7, #dceae1);
  --venue-hero-shade: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 20%, rgba(14, 37, 33, 0.5));
  --venue-hero-copy-text: #ffffff;
  --venue-hero-muted: rgba(255, 255, 255, 0.84);
  --venue-fallback-muted: #5d746f;
  --pitch-line: rgba(255, 255, 255, 0.46);
  --pitch-goal-line: rgba(255, 255, 255, 0.38);
  --pitch-border: rgba(17, 54, 49, 0.22);
  --player-marker-text: #ffffff;
  --player-label-bg: rgba(255, 255, 255, 0.86);
  --player-label-text: #10201d;
  --player-small-text: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -12%, var(--body-orb-teal), transparent 30%),
    radial-gradient(circle at 18% 12%, var(--body-orb-blue), transparent 28%),
    linear-gradient(var(--body-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--body-grid-line) 1px, transparent 1px),
    var(--bg);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: -160px;
  right: 8%;
  background: var(--lime);
}

.ambient-two {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: 28%;
  background: #007c69;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--chrome-bg);
  backdrop-filter: blur(20px);
}

.brand {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  perspective: 460px;
}

.brand-trophy-stage {
  position: relative;
  width: 72px;
  height: 88px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transform-style: preserve-3d;
}

.brand-trophy-halo {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 55px;
  height: 15px;
  border: 1px solid rgba(198, 255, 61, 0.4);
  border-radius: 50%;
  background: rgba(198, 255, 61, 0.08);
  transform: translateX(-50%) rotateX(66deg);
  box-shadow: 0 0 18px rgba(198, 255, 61, 0.2);
}

.brand-trophy {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 86px;
  object-fit: contain;
  transform-origin: center 65%;
  filter:
    drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 8px rgba(255, 204, 70, 0.14));
  animation: trophy-turn 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes trophy-turn {
  0%, 100% { transform: rotateY(-16deg) rotateZ(-1deg) translateY(1px); }
  50% { transform: rotateY(16deg) rotateZ(1deg) translateY(-2px); }
}

.brand-copy {
  min-width: 0;
}

.brand-monogram {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.brand-monogram::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -12px;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(198, 255, 61, 0),
    var(--lime) 35%,
    var(--lime) 65%,
    rgba(198, 255, 61, 0)
  );
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.55);
  animation: brand-underline-travel 2.8s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes brand-underline-travel {
  0% { opacity: 0.45; transform: translateX(0); }
  50% { opacity: 1; }
  100% { opacity: 0.45; transform: translateX(76px); }
}

.brand-monogram strong,
.brand-monogram b {
  display: block;
}

.brand-monogram strong {
  position: relative;
  color: var(--text);
  font: 700 38px/0.86 "Space Grotesk";
  letter-spacing: -0.07em;
}

.brand-monogram b {
  color: transparent;
  font: 700 35px/0.86 "Space Grotesk";
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1.4px var(--lime);
  text-shadow: 0 0 14px rgba(198, 255, 61, 0.15);
}

.main-nav {
  position: relative;
  margin-top: 37px;
  display: grid;
  gap: 6px;
}

.nav-active-indicator {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -20px;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  background: var(--nav-active);
  box-shadow: var(--nav-indicator-shadow);
  transform: translateY(0);
  transition:
    opacity 160ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}

.nav-item {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 10px;
  color: var(--nav-muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--nav-active);
  background: var(--nav-active-bg);
}

.nav-item.active .nav-icon {
  color: var(--nav-active);
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 18px;
}

.sidebar-card {
  margin-top: auto;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-highlight);
}

.eyebrow {
  color: var(--eyebrow-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.progress-copy {
  margin: 14px 0 11px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.progress-copy strong {
  font: 700 25px "Space Grotesk";
}

.progress-copy span,
.sidebar-card small {
  color: var(--muted);
  font-size: 10px;
}

.progress-track {
  height: 4px;
  margin-bottom: 11px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-highlight);
}

.progress-track span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: var(--accent);
}

.sidebar-footer {
  margin-top: 22px;
  padding: 0 5px;
  display: flex;
  gap: 9px;
  align-items: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.sidebar-footer strong,
.sidebar-footer small {
  display: block;
  font-size: 9px;
}

.sidebar-footer small {
  margin-top: 2px;
  color: var(--muted);
}

.main-content {
  margin-left: var(--sidebar);
  padding: 34px 38px 22px;
  max-width: 1600px;
}

.topbar {
  position: relative;
  z-index: 20;
  isolation: isolate;
  min-height: 190px;
  padding: 30px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  background: var(--topbar-bg);
  box-shadow: var(--topbar-shadow);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: var(--topbar-scrim);
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -54px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--topbar-ring);
  border-radius: 50%;
  box-shadow: var(--topbar-ring-shadow);
  opacity: 0.66;
  pointer-events: none;
}

.masthead-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.masthead-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--chip-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.host-markers {
  display: flex;
  gap: 4px;
}

.host-markers i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: 0 0 7px currentColor;
}

.host-canada { color: #ff5e68; background: currentColor; }
.host-mexico { color: var(--teal); background: currentColor; }
.host-usa { color: var(--blue); background: currentColor; }

.masthead-copy p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin-top: 13px;
  font-size: clamp(31px, 4vw, 51px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--accent);
  text-shadow: 0 0 26px rgb(var(--accent-rgb) / 0.14);
}

h2 {
  margin-top: 5px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.topbar-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  align-items: center;
}

.masthead-meta {
  margin-top: 19px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.date-chip,
.format-chip {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--chip-text);
  background: var(--surface-highlight);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.date-chip {
  border-color: var(--nav-active-border);
  color: var(--nav-active);
  background: var(--nav-active-bg);
}

.search-box {
  position: relative;
  width: 235px;
  padding: 10px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control-bg);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
}

.search-box input::placeholder {
  color: var(--subtle-text);
}

.global-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: min(390px, calc(100vw - 40px));
  max-height: 440px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--nav-active-border);
  border-radius: 12px;
  background: var(--settings-bg);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(20px);
}

.global-search-results[hidden] {
  display: none;
}

.search-result-heading {
  padding: 8px 9px 5px;
  color: var(--subtle-text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.search-result {
  width: 100%;
  min-height: 48px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  outline: none;
  background: var(--surface-hover);
}

.search-result-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--nav-active);
  background: var(--surface-highlight);
  font-size: 8px;
  font-weight: 700;
}

.search-result-copy {
  min-width: 0;
  flex: 1;
}

.search-result-copy strong,
.search-result-copy small {
  display: block;
}

.search-result-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-empty {
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
}

.toolbar-button {
  width: 38px;
  height: 38px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--control-text);
  background: var(--control-bg);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.toolbar-button:hover,
.toolbar-button:focus-visible,
.toolbar-button[aria-expanded="true"] {
  outline: none;
  border-color: var(--nav-active-border);
  color: var(--nav-active);
  background: var(--control-hover-bg);
}

.toolbar-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-button.refreshing svg {
  animation: toolbar-spin 800ms linear infinite;
}

@keyframes toolbar-spin {
  to { transform: rotate(360deg); }
}

.settings-control {
  position: relative;
}

.settings-menu {
  position: fixed;
  z-index: 30;
  top: var(--settings-menu-top, 108px);
  right: var(--settings-menu-right, 32px);
  width: 280px;
  max-height: calc(100vh - var(--settings-menu-top, 108px) - 12px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--nav-active-border);
  border-radius: 13px;
  background: var(--settings-bg);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(20px);
}

.settings-menu-head {
  padding: 8px 9px 10px;
  border-bottom: 1px solid var(--line);
}

.settings-menu-head strong,
.settings-menu-head small,
.settings-row strong,
.settings-row small {
  display: block;
}

.settings-menu-head strong {
  font: 600 12px "Space Grotesk";
}

.settings-menu-head small,
.settings-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.settings-row {
  min-height: 58px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 9px;
  cursor: pointer;
}

.settings-row:hover {
  background: var(--surface-hover);
}

.settings-row strong {
  color: var(--text);
  font-size: 10px;
}

.settings-row input {
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  accent-color: var(--nav-active);
  background: var(--control-bg);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.settings-row input::before {
  content: "";
  width: 14px;
  height: 14px;
  margin: 2px;
  display: block;
  border-radius: 50%;
  background: var(--control-text);
  transition: transform 160ms ease, background 160ms ease;
}

.settings-row input:checked {
  border-color: var(--nav-active-border);
  background: var(--nav-active);
}

.settings-row input:checked::before {
  background: var(--accent-contrast);
  transform: translateX(16px);
}

.settings-row input:focus-visible {
  outline: 2px solid var(--nav-active-border);
  outline-offset: 2px;
}

.settings-row-select select {
  min-width: 92px;
  padding: 7px 26px 7px 10px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

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

body.compact-layout .workspace-view {
  min-height: auto;
  padding: 20px;
}

body.compact-layout .workspace-stack {
  gap: 20px;
}

body.compact-layout .match-row {
  min-height: 58px;
}

body.compact-layout .team-workspace-card {
  min-height: 62px;
  padding: 10px;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body.reduce-motion .brand-monogram::after {
  width: calc(100% - 2px);
  opacity: 0.8;
  transform: none;
}

.panel {
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(15px);
  box-shadow:
    var(--surface-shadow),
    inset 0 1px 0 var(--surface-highlight);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
}

.spotlight-card {
  min-height: 245px;
  padding: 21px 24px;
  background: var(--spotlight-bg);
}

.spotlight-head,
.spotlight-footer,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spotlight-head > span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-pill {
  padding: 6px 9px;
  border-radius: 20px;
  color: var(--nav-active);
  background: var(--nav-active-bg);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-pill i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--nav-active);
  box-shadow: 0 0 8px rgb(var(--accent-rgb) / 0.42);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.spotlight-match {
  min-height: 145px;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 22px;
}

.spotlight-team {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 12px;
}

.spotlight-team:last-child {
  grid-template-columns: auto 1fr 50px;
}

.spotlight-team:last-child .flag {
  grid-column: 3;
  grid-row: 1;
}

.spotlight-team:last-child div {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.spotlight-team:last-child > b {
  grid-column: 1;
  grid-row: 1;
}

.flag {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--flag-border);
  border-radius: 4px;
  background: var(--flag-bg);
  box-shadow: var(--flag-shadow);
}

.flag-large {
  width: 44px;
  height: 30px;
}

.flag-small {
  width: 23px;
  height: 16px;
  vertical-align: middle;
}

.flag img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.flag-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.spotlight-team strong,
.spotlight-team small {
  display: block;
}

.spotlight-team strong {
  font: 600 17px "Space Grotesk";
}

.spotlight-team small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.spotlight-team > b {
  font: 700 42px "Space Grotesk";
}

.match-minute {
  display: grid;
  place-items: center;
  gap: 6px;
}

.match-minute span {
  color: var(--lime);
  font: 700 14px "Space Grotesk";
}

.match-minute small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.spotlight-footer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--control-text);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.text-button b {
  margin-left: 5px;
  color: var(--nav-active);
}

.next-card {
  padding: 21px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 110%, rgba(104, 168, 255, 0.075), transparent 48%),
    var(--panel);
}

.timezone,
.counter {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.next-match {
  margin: 22px 0 15px;
}

.next-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.next-match-teams > div {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.next-match-teams strong {
  font: 600 12px "Space Grotesk";
}

.versus {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.kickoff-venue {
  margin: 16px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control-bg);
  text-align: left;
}

.venue-pin {
  color: var(--lime);
  font-size: 16px;
}

.kickoff-venue strong,
.kickoff-venue small {
  display: block;
}

.kickoff-venue strong {
  font: 600 10px "Space Grotesk";
}

.kickoff-venue small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.countdown {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.countdown span {
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 7px;
}

.countdown strong {
  color: var(--text);
  font: 600 20px "Space Grotesk";
}

.countdown > b {
  margin-top: -8px;
  color: var(--subtle-text);
}

.metrics-grid {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  position: relative;
  min-height: 93px;
  padding: 16px 18px;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -36px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0.065;
  background: currentColor;
  filter: blur(8px);
}

.metric-card.lime { color: var(--lime); }
.metric-card.blue { color: var(--blue); }
.metric-card.violet { color: var(--violet); }
.metric-card.orange { color: var(--orange); }

.metric-card > div {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-card strong {
  color: var(--text);
  font: 700 25px "Space Grotesk";
}

.metric-card small {
  color: var(--muted);
  font-size: 9px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
}

.schedule-card,
.standings-card,
.third-place-card,
.host-card {
  padding: 21px 24px;
}

.date-tabs {
  margin: 18px 0 5px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.date-tabs button {
  padding: 11px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--subtle-text);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.date-tabs button.active {
  color: var(--nav-active);
  border-color: var(--nav-active);
}

.match-row {
  width: 100%;
  min-height: 66px;
  padding: 8px 4px;
  display: grid;
  grid-template-columns: 28px 1fr 70px 1fr 125px 14px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.match-row:hover {
  background: var(--match-hover-bg);
}

.match-group,
.venue,
.row-score small {
  color: var(--subtle-text);
  font-size: 10px;
}

.team {
  font-size: 12px;
  font-weight: 600;
}

.team.home {
  text-align: right;
}

.team .flag {
  margin: 0 6px;
}

.row-score {
  text-align: center;
}

.row-score strong {
  font: 600 15px "Space Grotesk";
}

.row-score strong span {
  color: var(--muted);
}

.row-score small {
  display: block;
  margin-top: 3px;
}

.row-score.live strong,
.row-score.live small {
  color: var(--lime);
}

.venue {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-arrow {
  color: var(--subtle-text);
  font-size: 17px;
}

.empty-state {
  padding: 40px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.spotlight-empty {
  grid-column: 1 / -1;
  align-self: center;
}

select {
  padding: 8px 28px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  appearance: none;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--control-text) 50%),
    linear-gradient(135deg, var(--control-text) 50%, transparent 50%),
    var(--panel-strong);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%,
    0 0;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  font-size: 11px;
}

select:hover,
select:focus-visible {
  border-color: var(--nav-active-border);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.08);
}

select option {
  color: var(--text);
  background: var(--panel-strong);
}

.standings {
  margin-top: 20px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 30px 1fr 34px 40px 38px;
  align-items: center;
}

.table-head {
  padding: 0 9px 10px;
  color: var(--subtle-text);
  font-size: 9px;
  font-weight: 700;
}

.table-head span:first-child {
  grid-column: 2;
}

.table-row {
  min-height: 58px;
  padding: 0 9px;
  border-top: 1px solid var(--line);
  color: var(--subtle-text);
  font-size: 11px;
}

.position {
  width: 20px;
  height: 27px;
  display: grid;
  place-items: center;
  border-left: 2px solid transparent;
}

.position.qualified {
  border-color: var(--lime);
}

.position.third {
  border-color: var(--orange);
}

.table-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-team strong,
.table-row > strong {
  color: var(--text);
}

.table-team strong {
  font-size: 12px;
}

.legend {
  padding-top: 15px;
  display: flex;
  gap: 17px;
  border-top: 1px solid var(--line);
  color: var(--subtle-text);
  font-size: 9px;
}

.legend i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
}

.legend .qualified { background: var(--lime); }
.legend .third { background: var(--orange); }

.lower-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.third-place-card p {
  max-width: 490px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.third-place-visual {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
}

.third-place-visual span {
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--subtle-text);
  background: var(--control-bg);
  font: 600 9px "Space Grotesk";
}

.third-place-visual span.safe {
  border-color: var(--accent-soft-border);
  color: var(--lime);
  background: var(--accent-soft-bg);
}

.primary-button {
  padding: 10px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--accent-contrast);
  background: var(--accent);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.host-card {
  position: relative;
  min-height: 195px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--host-bg);
}

.host-copy {
  position: relative;
  z-index: 2;
}

.host-copy h2 {
  margin: 11px 0 20px;
  font-size: 28px;
  line-height: 1.08;
}

.host-rings {
  position: absolute;
  right: 50px;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.host-rings strong {
  color: var(--lime);
  font: 700 28px "Space Grotesk";
}

.ring {
  position: absolute;
  border: 1px solid var(--accent-soft-border);
  border-radius: 50%;
}

.ring-one { inset: 24px; }
.ring-two { inset: 8px; opacity: 0.65; }
.ring-three { inset: -12px; opacity: 0.3; }

.page-footer {
  padding: 22px 2px 0;
  display: flex;
  justify-content: space-between;
  color: var(--subtle-text);
  font-size: 8px;
}

.public-page {
  min-height: 100vh;
  background: var(--bg);
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-bg-strong);
}

.public-brand,
.public-nav nav,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-brand {
  color: var(--text);
  text-decoration: none;
  font: 700 18px/1 "Space Grotesk";
}

.public-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.public-nav a,
.public-footer a {
  color: var(--control-text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.public-nav a:hover,
.public-nav a:focus-visible,
.public-footer a:hover,
.public-footer a:focus-visible {
  color: var(--nav-active);
}

.public-hero {
  position: relative;
  min-height: min(78svh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.public-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 9, 0.88), rgba(3, 10, 9, 0.5) 54%, rgba(3, 10, 9, 0.1)),
    linear-gradient(0deg, rgba(3, 10, 9, 0.84), transparent 48%);
}

.public-hero-copy {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 5vw, 76px) clamp(32px, 7vw, 84px);
  color: #ffffff;
}

.public-hero-copy h1,
.public-document-hero h1 {
  margin: 10px 0 0;
  font: 700 clamp(44px, 8vw, 92px)/0.95 "Space Grotesk";
}

.public-hero-copy p,
.public-document-hero p {
  max-width: 660px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.public-hero-copy small {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

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

.public-section,
.public-document {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.public-product-strip {
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: center;
}

.public-product-strip h2,
.public-copy-block h2 {
  margin: 8px 0 0;
  font: 700 30px/1.05 "Space Grotesk";
}

.public-product-strip p,
.public-feature-grid p,
.public-copy-block p,
.public-copy-block li,
.public-pricing-card p,
.public-pricing-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.public-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.public-proof-grid div,
.public-feature-grid article,
.public-pricing-card,
.public-copy-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.public-proof-grid div {
  padding: 16px;
}

.public-proof-grid strong {
  display: block;
  font: 700 30px/1 "Space Grotesk";
}

.public-proof-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.public-feature-grid {
  padding: 8px 0 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.public-feature-grid article,
.public-copy-block {
  padding: 22px;
}

.public-feature-grid h3 {
  margin: 0;
  font: 700 17px/1.1 "Space Grotesk";
}

.public-document {
  padding: 54px 0 64px;
}

.public-document-hero {
  min-height: 230px;
  padding: 38px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(14, 33, 29, 0.95), rgba(7, 16, 15, 0.88)),
    var(--panel-strong);
}

.public-pricing-card {
  margin-top: 18px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.public-pricing-card strong {
  font: 700 44px/1 "Space Grotesk";
}

.public-copy-block {
  margin-top: 18px;
}

.public-copy-block h2 {
  margin-top: 22px;
  font-size: 20px;
}

.public-copy-block h2:first-child {
  margin-top: 0;
}

.public-copy-block a {
  color: var(--nav-active);
}

.public-footer {
  min-height: 78px;
  padding: 20px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--chrome-bg);
  font-size: 11px;
}

.overview-section,
.workspace-view {
  scroll-margin-top: 18px;
}

.overview-section {
  min-height: calc(100vh - 56px);
}

.workspace-stack {
  margin-top: 28px;
  display: grid;
  gap: 28px;
}

.workspace-view {
  position: relative;
  min-height: calc(100vh - 56px);
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0, rgb(var(--accent-rgb) / 0.045), transparent 28%),
    var(--panel);
  box-shadow:
    var(--surface-shadow),
    inset 0 1px 0 var(--surface-highlight);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.workspace-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 72px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--nav-active), rgb(var(--accent-rgb) / 0));
  opacity: 0.45;
}

.workspace-view.section-current {
  border-color: var(--nav-active-border);
  box-shadow:
    var(--surface-shadow),
    0 0 35px rgb(var(--accent-rgb) / 0.035);
}

.workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.workspace-heading h2 {
  margin-top: 7px;
  font-size: 28px;
}

.workspace-heading p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.workspace-close {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--control-text);
  background: var(--control-bg);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.workspace-close:hover,
.workspace-close:focus-visible {
  outline: none;
  border-color: var(--nav-active-border);
  color: var(--nav-active);
  background: var(--control-hover-bg);
}

.workspace-controls {
  margin: 24px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-filter { min-width: 130px; }

.workspace-summary {
  margin-left: auto;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-soft-border);
  border-radius: 8px;
  color: var(--nav-active);
  background: var(--accent-soft-bg);
  font-size: 9px;
  font-weight: 700;
}

.admin-nav-item .nav-icon {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-workspace {
  background:
    radial-gradient(circle at 85% 0, rgb(var(--accent-rgb) / 0.055), transparent 30%),
    var(--panel);
}

.ops-shell {
  display: grid;
  gap: 16px;
}

.ops-hero {
  min-height: 158px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--surface-highlight), transparent),
    var(--panel-strong);
}

.ops-hero.ok { border-color: var(--accent-soft-border); }
.ops-hero.warn { border-color: var(--warning-border); }
.ops-hero.danger { border-color: var(--danger-border); }

.ops-hero h3 {
  margin: 8px 0 0;
  font: 700 30px/1 "Space Grotesk";
}

.ops-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.ops-status-pill {
  align-self: flex-start;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-status-pill.ok { color: var(--lime); border-color: var(--accent-soft-border); }
.ops-status-pill.warn { color: var(--orange); border-color: var(--warning-border); }
.ops-status-pill.danger { color: var(--danger-text); border-color: var(--danger-border); }

.ops-metrics-grid,
.ops-card-grid {
  display: grid;
  gap: 12px;
}

.ops-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

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

.ops-metric,
.ops-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-highlight);
}

.ops-metric span,
.ops-card h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-metric strong {
  display: block;
  font: 700 22px/1 "Space Grotesk";
}

.ops-metric small {
  display: block;
  min-height: 14px;
  margin-top: 7px;
  color: var(--subtle-text);
  font-size: 9px;
}

.ops-flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-flag {
  min-height: 32px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--control-text);
  background: var(--control-bg);
  font-size: 9px;
  font-weight: 800;
}

.ops-flag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ops-flag.ok i { background: var(--lime); box-shadow: 0 0 8px rgba(198, 255, 61, 0.5); }
.ops-flag.warn i { background: var(--orange); box-shadow: 0 0 8px rgba(255, 173, 102, 0.4); }

.ops-warning-list {
  display: grid;
  gap: 8px;
}

.ops-warning-list span {
  padding: 10px 12px;
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  color: var(--warning-text);
  background: var(--warning-bg);
  font-size: 10px;
}

.ops-rows {
  display: grid;
  gap: 9px;
}

.ops-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--control-text);
  font-size: 10px;
}

.ops-row span {
  color: var(--muted);
}

.ops-row strong {
  text-align: right;
  font-weight: 700;
}

.provider-sandbox-card {
  display: grid;
  gap: 14px;
}

.provider-sandbox-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.provider-sandbox-heading h3 {
  margin-bottom: 6px;
}

.provider-sandbox-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.provider-sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.provider-sandbox-actions .workspace-close {
  margin: 0;
}

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

.provider-sandbox-list {
  display: grid;
  gap: 10px;
}

.provider-sandbox-item,
.provider-sandbox-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control-bg);
}

.provider-sandbox-item strong,
.provider-player-pill strong {
  display: block;
  color: var(--control-text);
  font-size: 11px;
  line-height: 1.35;
}

.provider-sandbox-item small,
.provider-player-pill small,
.provider-sandbox-empty {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.provider-player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-player-pill {
  max-width: 240px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-highlight);
}

.schedule-day { margin-top: 18px; }
.schedule-day:first-child { margin-top: 0; }

.schedule-day-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--control-text);
  background: var(--chrome-bg-strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.schedule-day-heading span:last-child { color: var(--muted); }

.workspace-match {
  min-height: 72px;
  grid-template-columns: 48px minmax(120px, 1fr) 82px minmax(120px, 1fr) 170px 18px;
}

.workspace-match .match-group { text-transform: uppercase; }
.workspace-match .venue { font-size: 9px; }

.qualification-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-highlight);
}

.qualification-banner strong,
.qualification-banner span { display: block; }
.qualification-banner strong { font: 600 13px "Space Grotesk"; }
.qualification-banner span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.qualification-state {
  align-self: center;
  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.qualification-state.resolved { color: var(--lime); }

.qualification-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qualification-row {
  min-height: 53px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 34px 42px minmax(150px, 1fr) repeat(4, 48px) 94px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--control-text);
  font-size: 10px;
}

.qualification-row:first-child { border-top: 0; }

.qualification-row.head {
  min-height: 38px;
  color: var(--muted);
  background: var(--surface-highlight);
  font-size: 8px;
  font-weight: 700;
}

.qualification-row.qualifying {
  background: linear-gradient(90deg, var(--accent-soft-bg), transparent 50%);
}

.qualification-rank { color: var(--lime); font: 700 12px "Space Grotesk"; }

.qualification-team {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qualification-status {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.groups-workspace-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.group-workspace-card,
.team-workspace-card,
.venue-workspace-card {
  width: 100%;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

button.venue-workspace-card:hover {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg);
}

button.venue-workspace-card:focus-visible,
.venue-fixture-button:focus-visible,
.team-fixture-button:focus-visible,
.bracket-match:focus-visible,
.match-row:focus-visible {
  outline: 2px solid var(--nav-active-border);
  outline-offset: 2px;
}

.venue-workspace-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-highlight);
}

.group-workspace-card h3,
.venue-workspace-card h3 {
  margin: 0 0 12px;
  font: 600 14px "Space Grotesk";
}

.group-workspace-row {
  min-height: 39px;
  display: grid;
  grid-template-columns: 22px 1fr 28px 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.group-workspace-row .table-team { gap: 7px; }

.bracket-scroll {
  overflow-x: auto;
  padding: 2px 2px 20px;
  scrollbar-color: var(--nav-active-border) var(--surface-highlight);
}

.bracket-board {
  min-width: 1094px;
  display: grid;
  grid-template-columns: repeat(5, 190px);
  gap: 36px;
  align-items: start;
}

.bracket-stage {
  position: relative;
}

.bracket-stage h3 {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bracket-stage-final h3 {
  color: var(--lime);
}

.bracket-flow-arrow {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: -31px;
  width: 26px;
  height: 12px;
  pointer-events: none;
}

.bracket-flow-arrow::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 211, 170, 0.2), var(--lime));
  box-shadow: 0 0 8px rgba(198, 255, 61, 0.34);
}

.bracket-flow-arrow::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--lime);
  border-right: 1px solid var(--lime);
  transform: rotate(45deg);
}

.bracket-flow-arrow i {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px rgba(198, 255, 61, 0.8);
  animation: bracket-flow 2.2s ease-in-out infinite;
}

@keyframes bracket-flow {
  0% { opacity: 0; transform: translateX(0) scale(0.65); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(20px) scale(1); }
}

.bracket-stage-list { display: grid; gap: 9px; }
.bracket-stage:nth-child(2) .bracket-stage-list { padding-top: 37px; gap: 58px; }
.bracket-stage:nth-child(3) .bracket-stage-list { padding-top: 109px; gap: 154px; }
.bracket-stage:nth-child(4) .bracket-stage-list { padding-top: 255px; gap: 348px; }
.bracket-stage:nth-child(5) .bracket-stage-list { padding-top: 420px; }

.bracket-match {
  position: relative;
  width: 100%;
  min-height: 85px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-highlight);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bracket-match:hover {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.bracket-match small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
}

.bracket-stage-final .bracket-match:first-child {
  border-color: var(--accent-soft-border);
  background:
    linear-gradient(135deg, var(--accent-soft-bg), transparent 65%),
    var(--surface-highlight);
  box-shadow: 0 0 28px rgba(198, 255, 61, 0.06);
}

.bracket-branch-label {
  position: relative;
  min-height: 26px;
  display: flex;
  align-items: flex-end;
}

.bracket-branch-label span {
  position: absolute;
  top: -350px;
  left: -19px;
  width: 19px;
  height: 365px;
  border-left: 1px dashed rgba(104, 168, 255, 0.34);
  border-bottom: 1px dashed rgba(104, 168, 255, 0.34);
  border-radius: 0 0 0 8px;
}

.bracket-branch-label small {
  color: var(--blue);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bracket-match em {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bracket-match-third {
  border-color: color-mix(in srgb, var(--blue) 24%, transparent);
  background: color-mix(in srgb, var(--blue) 7%, transparent);
}

.bracket-team {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 600;
}

.bracket-team:first-of-type { border-top: 0; }

.bracket-team span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-workspace-grid,
.venue-workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.team-workspace-card {
  width: 100%;
  min-height: 76px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-highlight);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button.team-workspace-card:hover {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg);
  transform: translateY(-1px);
}

button.team-workspace-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.team-workspace-card strong,
.team-workspace-card small,
.venue-workspace-card span { display: block; }
.team-workspace-card strong {
  color: var(--text);
  font: 600 12px "Space Grotesk";
}
.team-workspace-card small,
.venue-workspace-card span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.venue-workspace-card .venue-count {
  margin-top: 14px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
}

.team-center {
  width: min(620px, 96vw);
}

.venue-center {
  width: min(650px, 96vw);
}

.venue-center-content {
  min-height: 100%;
}

.venue-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--venue-hero-bg);
}

.venue-hero-image,
.venue-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.venue-hero-image {
  object-fit: cover;
}

.venue-hero-fallback {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--venue-hero-fallback-bg);
}

.venue-hero-fallback::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -70px;
  width: 310px;
  height: 170px;
  border: 2px solid rgba(198, 255, 61, 0.22);
  border-radius: 50% 50% 8px 8px;
  box-shadow:
    0 -22px 0 rgba(198, 255, 61, 0.035),
    0 -44px 0 rgba(198, 255, 61, 0.025);
  transform: rotate(-7deg);
}

.venue-hero-fallback span,
.venue-hero-fallback strong,
.venue-hero-fallback small {
  position: relative;
  z-index: 1;
  display: block;
}

.venue-hero-fallback span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.venue-hero-fallback strong {
  max-width: 360px;
  margin-top: 9px;
  font: 700 32px/1 "Space Grotesk";
}

.venue-hero-fallback small {
  margin-top: 12px;
  color: var(--venue-fallback-muted);
  font-size: 8px;
}

.venue-hero-shade {
  position: absolute;
  inset: 0;
  background: var(--venue-hero-shade);
}

.venue-hero-copy {
  position: absolute;
  z-index: 2;
  inset: auto 26px 24px;
}

.venue-hero-copy span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.venue-hero-copy h2 {
  margin: 7px 0 4px;
  color: var(--venue-hero-copy-text);
  font-size: 28px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.44);
}

.venue-hero-copy p {
  margin: 0;
  color: var(--venue-hero-muted);
  font-size: 9px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.venue-detail-body {
  padding: 22px 24px 30px;
}

.venue-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.venue-stat-grid > div {
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--detail-card-subtle-bg);
}

.venue-stat-grid span,
.venue-stat-grid strong {
  display: block;
}

.venue-stat-grid span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.venue-stat-grid strong {
  margin-top: 7px;
  font: 600 11px "Space Grotesk";
}

.venue-description {
  margin: 18px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.venue-actions {
  display: flex;
  gap: 8px;
}

.venue-actions a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--nav-active);
  background: var(--accent-soft-bg);
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}

.venue-actions a:hover,
.venue-actions a:focus-visible {
  outline: none;
  border-color: var(--nav-active-border);
  background: var(--control-hover-bg);
}

.venue-fixtures {
  margin-top: 24px;
}

.venue-fixture-button {
  width: 100%;
  min-height: 61px;
  padding: 9px 3px;
  display: grid;
  grid-template-columns: 55px 1fr 125px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.venue-fixture-button:hover,
.team-fixture-button:hover {
  background: var(--match-hover-bg);
}

.venue-fixture-button span b,
.venue-fixture-button span small {
  display: block;
}

.venue-fixture-button span b {
  color: var(--lime);
  font-size: 9px;
}

.venue-fixture-button span small,
.venue-fixture-button time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.venue-fixture-button > strong {
  font-size: 9px;
}

.venue-fixture-button time {
  text-align: right;
}

.team-tactical-header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.team-tactical-header strong,
.team-tactical-header small {
  display: block;
}

.team-tactical-header strong {
  font: 600 20px "Space Grotesk";
}

.team-tactical-header small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.lineup-status-bar {
  margin: 18px 0 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--detail-card-bg);
}

.lineup-status-bar strong,
.lineup-status-bar small {
  display: block;
}

.lineup-status-bar strong {
  font-size: 10px;
}

.lineup-status-bar small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.formation-badge {
  padding: 7px 9px;
  border: 1px solid var(--accent-soft-border);
  border-radius: 8px;
  color: var(--nav-active);
  background: var(--accent-soft-bg);
  font: 700 11px "Space Grotesk";
}

.tactical-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.football-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 0.72;
  overflow: hidden;
  border: 2px solid var(--pitch-border);
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0 12.5%,
      rgba(0, 0, 0, 0.025) 12.5% 25%
    ),
    linear-gradient(180deg, #176640, #0c4b31);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.18);
}

.pitch-halfway {
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--pitch-line);
}

.pitch-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  border: 1px solid var(--pitch-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-box {
  position: absolute;
  left: 22%;
  width: 56%;
  height: 15%;
  border: 1px solid var(--pitch-line);
}

.pitch-box.top {
  top: -1px;
  border-top: 0;
}

.pitch-box.bottom {
  bottom: -1px;
  border-bottom: 0;
}

.pitch-goal {
  position: absolute;
  left: 39%;
  width: 22%;
  height: 4%;
  border: 1px solid var(--pitch-goal-line);
}

.pitch-goal.top { top: -1px; border-top: 0; }
.pitch-goal.bottom { bottom: -1px; border-bottom: 0; }

.pitch-player {
  position: absolute;
  width: 92px;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pitch-player-marker {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--player-marker-text) 34%, white);
  border-radius: 50%;
  color: var(--player-marker-text);
  background: var(--lime);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.28);
  font: 700 9px "Space Grotesk";
}

.pitch-player strong,
.pitch-player small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-player strong {
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--player-label-text);
  background: var(--player-label-bg);
  font-size: 8px;
}

.pitch-player small {
  margin-top: 2px;
  color: var(--player-small-text);
  font-size: 7px;
}

.team-fixtures {
  margin-top: 22px;
}

.team-fixture-button {
  width: 100%;
  min-height: 50px;
  padding: 8px 4px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.team-fixture-button span {
  font-size: 9px;
}

.team-fixture-button small {
  color: var(--muted);
  font-size: 8px;
}

.team-fixture-button b {
  color: var(--lime);
  font-size: 9px;
}

.match-center-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}

.match-center-shell:not(.open) {
  display: none;
}

.match-center-shell.open {
  visibility: visible;
  pointer-events: auto;
}

.match-center-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  opacity: 0;
  background: var(--drawer-backdrop);
  backdrop-filter: blur(6px);
  transition: opacity 180ms ease;
}

.match-center-shell.open .match-center-backdrop {
  opacity: 1;
}

.match-center {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(520px, 94vw);
  overflow-y: auto;
  border-left: 1px solid var(--drawer-border);
  background: var(--drawer-bg);
  box-shadow: var(--drawer-shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.match-center-shell.open .match-center {
  transform: translateX(0);
}

.match-center-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 66px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--drawer-toolbar-bg);
  backdrop-filter: blur(18px);
}

.match-center-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--control-bg);
  cursor: pointer;
  font-size: 22px;
}

.match-center-content {
  padding: 24px;
}

.match-center-loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}

.match-center-heading {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-center-score {
  margin: 18px 0;
  padding: 26px 18px;
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--detail-card-bg);
}

.match-center-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.match-center-team strong {
  font: 600 15px "Space Grotesk";
}

.match-center-result {
  text-align: center;
}

.match-center-result strong {
  display: block;
  font: 700 32px "Space Grotesk";
}

.match-center-result span {
  display: block;
  margin-top: 5px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.match-center-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-center-fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--detail-card-subtle-bg);
}

.match-center-fact span,
.match-center-fact strong {
  display: block;
}

.match-center-fact span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.match-center-fact strong {
  margin-top: 5px;
  font-size: 10px;
}

.match-center-section {
  margin-top: 26px;
}

.match-center-section h3 {
  margin: 0 0 13px;
  font: 600 15px "Space Grotesk";
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-event {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--detail-card-subtle-bg);
}

.timeline-event time {
  color: var(--lime);
  font: 700 11px "Space Grotesk";
}

.timeline-event strong,
.timeline-event small {
  display: block;
}

.timeline-event strong {
  font-size: 10px;
}

.timeline-event small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.timeline-event b {
  color: var(--muted);
  font-size: 9px;
}

.match-stat {
  margin-bottom: 11px;
}

.match-stat-label,
.match-stat-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
}

.match-stat-label {
  margin-bottom: 6px;
  color: var(--muted);
}

.match-stat-values {
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 700;
}

.match-stat-track {
  height: 5px;
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  background: var(--stat-track-bg);
}

.match-stat-track i:first-child { background: var(--lime); }
.match-stat-track i:last-child { background: var(--blue); }

.match-center-empty {
  padding: 24px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}

body.match-center-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  :root { --sidebar: 78px; }
  .brand-copy,
  .nav-item:not(.active)::after,
  .nav-item { font-size: 0; }
  .brand { justify-content: center; }
  .brand-trophy-stage { width: 64px; height: 82px; }
  .brand-trophy { width: 62px; height: 80px; }
  .main-nav { margin-top: 42px; }
  .nav-item { justify-content: center; }
  .nav-icon { font-size: 18px; }
  .sidebar-card,
  .sidebar-footer span:not(.status-dot) { display: none; }
  .sidebar-footer { justify-content: center; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-metrics-grid,
  .ops-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid,
  .content-grid { grid-template-columns: 1fr; }
  .groups-workspace-grid,
  .team-workspace-grid,
  .venue-workspace-grid { grid-template-columns: repeat(2, 1fr); }
  .public-product-strip,
  .public-feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --sidebar: 0px; }
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  .ambient { display: none; }
  .app-shell { display: block; }
  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 30;
    width: 100%;
    max-width: 100%;
    min-height: 68px;
    padding: 7px 10px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--chrome-bg-strong);
    box-shadow: var(--surface-shadow);
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .brand {
    flex: 0 0 auto;
    gap: 6px;
    padding-right: 4px;
  }
  .brand-trophy-stage {
    width: 40px;
    height: 50px;
  }
  .brand-trophy-halo {
    width: 34px;
    height: 10px;
  }
  .brand-trophy {
    width: 38px;
    height: 48px;
  }
  .brand-copy { display: block; }
  .brand-monogram {
    gap: 3px;
  }
  .brand-monogram::after { display: none; }
  .brand-monogram strong {
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
  }
  .brand-monogram b {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    -webkit-text-stroke-width: 0.8px;
  }
  .public-nav {
    position: relative;
    align-items: flex-start;
    display: grid;
  }
  .public-nav nav,
  .public-footer,
  .public-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .public-hero {
    min-height: 680px;
  }
  .public-hero-copy h1,
  .public-document-hero h1 {
    font-size: clamp(42px, 15vw, 62px);
  }
  .public-hero-copy p,
  .public-document-hero p {
    font-size: 13px;
  }
  .public-proof-grid {
    grid-template-columns: 1fr;
  }
  .public-document {
    padding-top: 24px;
  }
  .public-document-hero {
    min-height: 210px;
    padding: 24px;
  }
  .main-nav {
    min-width: 0;
    flex: 1 1 auto;
    margin-top: 0;
    padding: 2px 2px 4px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-active-indicator { display: none; }
  .nav-item {
    width: auto;
    min-width: 74px;
    min-height: 44px;
    padding: 0 13px;
    justify-content: center;
    gap: 0;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    white-space: nowrap;
    text-align: center;
    font-size: 11.5px;
    background: var(--surface-highlight);
    scroll-snap-align: start;
  }
  .nav-item.active {
    color: var(--nav-active);
    border-color: var(--nav-active-border);
    background: var(--nav-active-bg);
    box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.06);
  }
  .nav-icon { display: none; }
  .sidebar-card,
  .sidebar-footer { display: none; }
  .main-content { margin-left: 0; padding: 12px 14px 22px; }
  .topbar {
    min-height: 0;
    padding: 19px 17px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 14px;
    border-radius: 16px;
  }
  .topbar::after {
    right: -88px;
    bottom: -116px;
    opacity: 0.55;
  }
  .masthead-kicker { flex-wrap: wrap; gap: 6px; }
  .masthead-copy p { margin-top: 8px; font-size: 10.5px; line-height: 1.5; }
  .masthead-meta { margin-top: 13px; gap: 6px; }
  h1 { margin-top: 10px; font-size: clamp(29px, 9.3vw, 38px); line-height: 1.02; }
  .search-box { display: none; }
  .topbar-actions { align-self: flex-end; }
  .settings-menu {
    width: min(280px, calc(100vw - 34px));
  }
  .metrics-grid,
  .lower-grid { grid-template-columns: 1fr; }
  .ops-hero { display: block; }
  .ops-status-pill { margin-top: 14px; display: inline-flex; }
  .ops-metrics-grid,
  .ops-card-grid { grid-template-columns: 1fr; }
  .provider-sandbox-heading { display: block; }
  .provider-sandbox-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .provider-sandbox-metrics { grid-template-columns: 1fr; }
  .spotlight-match { grid-template-columns: 1fr 55px 1fr; gap: 8px; }
  .spotlight-team { grid-template-columns: 1fr; place-items: center; text-align: center; }
  .spotlight-team:last-child { grid-template-columns: 1fr; }
  .spotlight-team:last-child .flag,
  .spotlight-team:last-child div,
  .spotlight-team:last-child > b { grid-column: 1; grid-row: auto; text-align: center; }
  .spotlight-team > b { font-size: 30px; }
  .spotlight-team strong { font-size: 12px; }
  .spotlight-team .flag-large { width: 38px; height: 26px; }
  .match-row { grid-template-columns: 24px 1fr 55px 1fr 12px; }
  .venue { display: none; }
  .match-row { min-height: 61px; }
  .team { font-size: 10px; }
  .match-group,
  .venue,
  .row-score small { font-size: 9px; }
  .row-score strong { font-size: 13px; }
  .table-row { font-size: 10px; }
  .table-team strong { font-size: 11px; }
  .host-rings { right: 8px; width: 96px; height: 96px; opacity: 0.45; }
  .ring-three { inset: -6px; }
  .page-footer { gap: 12px; }
  .workspace-view { padding: 18px 14px; }
  .workspace-heading { display: block; }
  .workspace-close { margin-top: 14px; }
  .workspace-summary { width: 100%; margin-left: 0; }
  .workspace-match { grid-template-columns: 34px 1fr 60px 1fr 12px; }
  .workspace-match .venue { display: none; }
  .qualification-row {
    grid-template-columns: 28px 32px minmax(120px, 1fr) 30px 34px 34px;
  }
  .qualification-row > :nth-child(6),
  .qualification-row > :nth-child(7),
  .qualification-row > :nth-child(8) { display: none; }
  .groups-workspace-grid,
  .team-workspace-grid,
  .venue-workspace-grid { grid-template-columns: 1fr; }
  .venue-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-fixture-button { grid-template-columns: 42px 1fr; }
  .venue-fixture-button time { grid-column: 2; text-align: left; }
  .bracket-flow-arrow i { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bracket-flow-arrow i {
    left: 17px;
    opacity: 1;
    animation: none;
  }

  .brand-monogram::after {
    width: calc(100% - 2px);
    opacity: 0.8;
    transform: none;
    animation: none;
  }

  .nav-active-indicator {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-trophy {
    animation: none;
  }
  .match-center,
  .match-center-backdrop {
    transition: none;
  }
}
