:root {
  color-scheme: dark;
  --bg: #080b0d;
  --surface: #101519;
  --surface-strong: #151c20;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f7f2;
  --muted: #9faa9d;
  --green: #73c683;
  --red: #d94e42;
  --blue: #70a7d9;
  --cyan: #4fe6ff;
  --gold: #e3ca76;
  --focus: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(79, 230, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(115, 198, 131, 0.08), transparent 26%, transparent 74%, rgba(112, 167, 217, 0.08)),
    var(--bg);
  color: var(--text);
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  width: min(1800px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.mobile-dock {
  display: none;
}

.loading-screen,
.error-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.loading-mark {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  min-height: 286px;
  padding: 34px 0 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.topbar::before {
  inset: -28px -24px -30px clamp(280px, 34vw, 620px);
  z-index: -2;
  background: url("../assets/brand/world-cup-header-backdrop.png") right center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.88;
}

.topbar::after {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 32%, rgba(79, 230, 255, 0.22), transparent 34%),
    radial-gradient(circle at 98% 14%, rgba(227, 202, 118, 0.1), transparent 22%),
    linear-gradient(90deg, rgba(8, 11, 13, 0.96) 0%, rgba(8, 11, 13, 0.78) 45%, rgba(8, 11, 13, 0.9) 100%);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-block {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 6vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.action-row,
.filter-row,
.panel-heading,
.round-heading,
.match-topline,
.match-footer,
.selected-meta,
.timeline-head {
  display: flex;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.action-row {
  gap: 10px;
}

.ghost-button,
.filter-button,
.group-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.ghost-button {
  min-height: 40px;
  padding: 0 14px;
}

.ghost-button:hover,
.filter-button:hover,
.group-tab:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.ghost-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(227, 202, 118, 0.35);
  border-radius: 8px;
  color: #f3df9a;
  background: rgba(227, 202, 118, 0.08);
}

.command-globe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.4fr) minmax(0, 1.6fr);
  gap: clamp(18px, 2.6vw, 42px);
  min-height: max(820px, calc(100svh - 32px));
  margin: 18px calc(50% - 50vw) 20px;
  padding: clamp(22px, 3vw, 42px) max(24px, calc((100vw - 1800px) / 2 + 24px));
  overflow: hidden;
  border-block: 1px solid rgba(79, 230, 255, 0.18);
  background:
    radial-gradient(circle at 72% 42%, rgba(26, 109, 158, 0.5), transparent 32%),
    radial-gradient(circle at 24% 72%, rgba(55, 128, 105, 0.22), transparent 30%),
    linear-gradient(115deg, rgba(2, 9, 14, 0.98) 0%, rgba(6, 30, 52, 0.88) 48%, rgba(3, 7, 11, 0.98) 100%);
  isolation: isolate;
  scroll-margin-top: 12px;
}

.command-globe::before,
.command-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.command-globe::before {
  background:
    radial-gradient(circle at 62% 35%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(79, 230, 255, 0.12) 0 1px, transparent 2px);
  background-size: 160px 130px, 210px 180px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.command-globe::after {
  background:
    radial-gradient(circle at 70% 36%, rgba(79, 230, 255, 0.26), transparent 30%),
    radial-gradient(circle at 20% 72%, rgba(115, 198, 131, 0.16), transparent 26%);
  filter: blur(4px);
}

.globe-copy {
  position: relative;
  align-self: center;
  min-width: 0;
  max-width: 540px;
  width: 100%;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 10, 16, 0.46);
  backdrop-filter: blur(16px);
  z-index: 4;
}

.globe-copy h2 {
  max-width: 100%;
  margin-bottom: 14px;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  font-size: clamp(2rem, 2.45vw, 2.85rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.command-globe.map-view .globe-copy h2 {
  font-size: clamp(2rem, 2.45vw, 2.85rem);
}

.command-globe.grid-view .globe-copy h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.55rem);
}

.command-globe.live-view .globe-copy h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.55rem);
}

.globe-subtitle {
  max-width: 560px;
  margin-bottom: 18px;
  color: #bdd4dd;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.5;
}

.globe-ticker,
.globe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.globe-ticker {
  margin-bottom: 12px;
}

.world-view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.world-view-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.world-view-tabs button.active,
.world-view-tabs button:hover,
.world-view-tabs button:focus-visible {
  color: #06121a;
  background: var(--cyan);
}

.jump-bracket-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 0 14px 8px;
  padding: 0 14px;
  border: 1px solid rgba(79, 230, 255, 0.32);
  border-radius: 999px;
  color: var(--text);
  background: rgba(79, 230, 255, 0.1);
  cursor: pointer;
}

.jump-bracket-button::after {
  content: "↓";
  margin-left: 8px;
}

.jump-bracket-button:hover,
.jump-bracket-button:focus-visible {
  border-color: var(--cyan);
  background: rgba(79, 230, 255, 0.18);
}

.globe-ticker span,
.globe-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d9ecf3;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
}

.globe-ticker strong {
  margin-right: 5px;
  color: var(--cyan);
  font-size: 1rem;
}

.legend-dot {
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 999px;
  box-shadow: 0 0 14px currentColor;
}

.legend-dot.live {
  color: #ff4f5e;
  background: #ff4f5e;
}

.legend-dot.upcoming {
  color: var(--cyan);
  background: var(--cyan);
}

.legend-dot.scheduled {
  color: var(--green);
  background: var(--green);
}

.legend-dot.complete {
  color: var(--gold);
  background: var(--gold);
}

.globe-stage {
  position: relative;
  min-width: 0;
  min-height: calc(100svh - 108px);
  overflow: hidden;
  z-index: 1;
}

.live-globe-stage {
  border: 1px solid rgba(79, 230, 255, 0.14);
  border-radius: 10px;
  background:
    radial-gradient(circle at 64% 40%, rgba(79, 230, 255, 0.18), transparent 32%),
    rgba(2, 12, 20, 0.18);
}

.globe-canvas {
  position: absolute;
  inset: -34px 0 -34px 0;
}

.globe-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.globe-status-strip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  pointer-events: none;
}

.live-globe-overlay {
  position: absolute;
  z-index: 4;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  left: clamp(14px, 2.4vw, 28px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

.world-grid-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 12px;
  align-content: start;
  max-height: calc(100svh - 100px);
  overflow: auto;
  padding: 6px 4px 6px 18px;
}

.live-location-panel {
  position: relative;
  z-index: 2;
  align-self: start;
  width: min(860px, 100%);
  max-height: calc(100svh - 100px);
  overflow: auto;
  padding: 6px 4px 6px 0;
}

.live-globe-overlay .live-location-panel {
  max-height: min(54svh, 540px);
  padding: 0;
  pointer-events: auto;
}

.live-location-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(79, 230, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 79, 94, 0.16), transparent 28%),
    rgba(3, 13, 20, 0.78);
  backdrop-filter: blur(16px);
}

.live-location-heading h3 {
  margin-top: 4px;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.live-location-heading > span {
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 79, 94, 0.28);
  border-radius: 999px;
  color: #ffd5d9;
  background: rgba(255, 79, 94, 0.08);
  font-weight: 900;
}

.live-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, min(100%, 760px)));
  gap: 12px;
}

.live-location-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(79, 230, 255, 0.18);
  border-left: 3px solid #ff4f5e;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 94, 0.12), transparent 44%),
    rgba(5, 17, 26, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.live-card-topline span {
  color: var(--muted);
  font-size: 0.78rem;
}

.live-card-topline strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: #06121a;
  background: #ff4f5e;
  font-size: 0.78rem;
}

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

.live-score-team {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
}

.live-score-team:hover,
.live-score-team:focus-visible {
  border-color: var(--cyan);
  background: rgba(79, 230, 255, 0.1);
}

.live-score-team img,
.live-score-team .team-initial {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.live-score-team span {
  font-weight: 900;
}

.live-score-team strong {
  font-size: 1.42rem;
}

.live-location-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.live-location-meta div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
}

.live-location-meta dt {
  color: var(--muted);
  font-size: 0.74rem;
}

.live-location-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.live-empty-state {
  padding: 24px;
  border: 1px dashed rgba(79, 230, 255, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.live-empty-state strong,
.live-empty-state span {
  display: block;
}

.live-empty-state strong {
  margin-bottom: 6px;
  color: var(--text);
}

.confed-cluster {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(79, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 24, 0.66);
}

.confed-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.confed-heading h3 {
  color: var(--cyan);
  text-transform: uppercase;
}

.confed-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.world-team-grid {
  display: grid;
  gap: 7px;
}

.world-team-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--team-color, var(--cyan));
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.world-team-card:hover,
.world-team-card:focus-visible,
.world-team-card.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--team-color, var(--cyan)) 68%, white 10%);
  background: color-mix(in srgb, var(--team-color, var(--cyan)) 18%, rgba(255, 255, 255, 0.05));
}

.world-team-card img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.world-team-card strong,
.world-team-card small,
.world-team-card em {
  display: block;
}

.world-team-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-team-card em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #06121a;
  background: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.world-team-card.live em {
  background: #ff4f5e;
}

.world-team-card.upcoming em {
  background: var(--cyan);
}

.world-team-card.complete em {
  background: var(--gold);
}

.team-mini-profile {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--team-color, var(--cyan)) 42%, rgba(255, 255, 255, 0.12));
  border-left: 3px solid var(--team-color, var(--cyan));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color, var(--cyan)) 16%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.team-mini-profile:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 230, 255, 0.18);
}

.team-mini-profile.empty {
  border-left-color: rgba(79, 230, 255, 0.38);
  color: var(--muted);
}

.team-mini-profile + .jump-bracket-button {
  margin-top: 14px;
}

.team-mini-profile h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
  line-height: 1.15;
}

.team-mini-profile p {
  color: var(--muted);
  line-height: 1.45;
}

.mini-profile-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.mini-profile-head img,
.mini-profile-head .team-initial {
  width: 38px;
  height: 38px;
}

.mini-profile-head img {
  object-fit: contain;
}

.mini-profile-head > div {
  min-width: 0;
}

.mini-profile-head span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.mini-profile-stats span {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(2, 9, 14, 0.34);
  font-size: 0.68rem;
  text-align: center;
  text-transform: uppercase;
}

.mini-profile-stats strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.mini-profile-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-profile-details div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
}

.mini-profile-details dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-profile-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.globe-status-strip span {
  max-width: min(560px, 100%);
  padding: 9px 13px;
  border: 1px solid rgba(79, 230, 255, 0.22);
  border-radius: 999px;
  color: #d9ecf3;
  background: rgba(2, 9, 14, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
}

.globe-tooltip {
  position: fixed;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 230, 255, 0.42);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 14, 22, 0.92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  z-index: 30;
}

.globe-tooltip strong,
.globe-tooltip span,
.globe-tooltip small {
  display: block;
}

.globe-tooltip strong {
  margin-bottom: 4px;
}

.globe-tooltip span,
.globe-tooltip small {
  color: var(--muted);
  font-size: 0.78rem;
}

.globe-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  padding: 40px 0;
}

.globe-fallback button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.globe-fallback strong,
.globe-fallback span {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px 0;
  scroll-margin-top: 18px;
}

.metric-card,
.panel,
.round-column,
.match-card,
.selected-match {
  border: 1px solid var(--line);
  background: rgba(16, 21, 25, 0.84);
}

.metric-card {
  min-height: 104px;
  padding: 14px;
  border-radius: 8px;
}

.metric-card span,
.metric-card small,
.match-topline,
.match-footer,
.selected-meta,
.details-list dt,
.timeline-head span,
.round-heading span,
.panel-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(520px, 2.2fr) minmax(320px, 0.98fr);
  gap: 14px;
  align-items: start;
}

.panel {
  min-width: 0;
  border-radius: 8px;
  padding: 14px;
  scroll-margin-top: 18px;
}

.panel-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

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

.filter-button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
}

.filter-button.active,
.group-tab.active {
  border-color: rgba(115, 198, 131, 0.7);
  color: var(--text);
  background: rgba(115, 198, 131, 0.16);
}

.group-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.group-tab {
  min-height: 34px;
  padding: 0;
  font-weight: 800;
}

.standings-table {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.standings-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) 36px 36px 54px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.82rem;
}

.standings-row.headings {
  color: var(--muted);
  background: transparent;
}

button.standings-row {
  width: 100%;
  position: relative;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

button.standings-row:hover,
button.standings-row:focus-visible {
  z-index: 5;
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--team-color, var(--green)) 70%, white 12%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color, var(--green)) 20%, transparent), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 3px 0 0 var(--team-color, var(--green)),
    0 12px 30px rgba(0, 0, 0, 0.28);
}

button.standings-row.active {
  border-color: color-mix(in srgb, var(--team-color, var(--green)) 78%, white 10%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-color, var(--green)) 28%, transparent), rgba(112, 167, 217, 0.08));
  box-shadow: inset 3px 0 0 var(--team-color, var(--green));
}

.standing-team,
.inline-team {
  display: flex;
  align-items: center;
}

.standing-team {
  gap: 7px;
  min-width: 0;
  font-weight: 800;
}

.standing-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.team-initial {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #08100b;
  background: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
}

.team-lens {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: 190px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--team-color, var(--green)) 68%, white 8%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color, var(--green)) 16%, transparent), rgba(9, 17, 22, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

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

.team-lens strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.9rem;
}

.team-lens small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.team-row:hover .team-lens,
.team-row:focus-visible .team-lens {
  opacity: 1;
  transform: translate(0, -50%);
}

.bracket-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.round-column {
  min-width: 210px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.round-heading {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 28px;
}

.round-heading h3 {
  color: var(--green);
  text-transform: uppercase;
}

.match-stack {
  display: grid;
  gap: 8px;
}

.match-stack.compact {
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
}

.match-stack.timeline {
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.match-card {
  width: 100%;
  min-height: 112px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 167, 217, 0.62);
  background: rgba(112, 167, 217, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.match-card.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(227, 202, 118, 0.35);
}

.match-card.live {
  border-color: rgba(217, 78, 66, 0.7);
}

.match-topline,
.match-footer {
  justify-content: space-between;
  gap: 12px;
}

.match-teams {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.inline-team {
  justify-content: space-between;
  gap: 12px;
  min-height: 25px;
  padding: 3px 6px;
  border-radius: 5px;
  border-left: 2px solid transparent;
  font-weight: 760;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.inline-team.winner {
  color: var(--green);
}

.match-card:hover .inline-team,
.match-card:focus-visible .inline-team {
  background: rgba(255, 255, 255, 0.035);
}

.inline-team.active-team {
  border-left-color: var(--team-color, var(--green));
  background: color-mix(in srgb, var(--team-color, var(--green)) 16%, transparent);
}

.inline-team strong {
  min-width: 24px;
  text-align: right;
}

.selected-match {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
}

.selected-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.versus-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.team-detail {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--team-color, var(--blue));
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.team-detail:hover,
.team-detail:focus-visible,
.team-detail.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--team-color, var(--blue)) 70%, white 10%);
  border-left-color: var(--team-color, var(--blue));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color, var(--blue)) 20%, transparent), rgba(255, 255, 255, 0.055));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.team-detail img {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  object-fit: contain;
}

.team-detail span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.team-detail strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1;
}

.team-detail small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.vs-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.details-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
}

.timeline-head {
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
}

.team-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.team-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--team-color, var(--green)) 24%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--team-color, var(--green)) 60%, white 8%);
  font-weight: 900;
}

.team-filter-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.clear-team-button {
  margin-left: auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.clear-team-button:hover,
.clear-team-button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
}

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

@media (max-width: 1180px) {
  .topbar {
    min-height: 252px;
  }

  .topbar::before {
    inset-left: clamp(180px, 30vw, 360px);
    opacity: 0.72;
  }

  .command-globe {
    grid-template-columns: 1fr;
    min-height: max(860px, 100svh);
  }

  .globe-copy {
    max-width: 780px;
  }

  .globe-stage {
    min-height: 620px;
  }

  .live-globe-overlay .live-location-panel {
    max-height: 430px;
  }

  .world-grid-panel,
  .live-location-panel {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-height: none;
    padding-left: 0;
  }

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

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

  .bracket-scroll {
    grid-auto-columns: minmax(240px, 33vw);
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .app-shell {
    padding: 12px 12px 18px;
  }

  .topbar,
  .action-row,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    min-height: 214px;
    padding: 18px 0 20px;
  }

  .topbar::before {
    inset: -36px -260px -24px 12%;
    background-size: auto 100%;
    opacity: 0.48;
  }

  .topbar::after {
    background:
      radial-gradient(circle at 78% 26%, rgba(79, 230, 255, 0.18), transparent 34%),
      linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.82) 62%, rgba(8, 11, 13, 0.92) 100%);
  }

  .brand-block {
    max-width: none;
  }

  .action-row {
    display: none;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(2.12rem, 13vw, 3.05rem);
  }

  .command-globe {
    min-height: auto;
    margin-top: 12px;
    padding: 14px 12px 18px;
    scroll-margin-top: 12px;
  }

  .globe-copy {
    order: 2;
    padding: 16px;
  }

  .globe-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .globe-subtitle {
    margin-bottom: 14px;
    font-size: 0.98rem;
  }

  .globe-stage {
    order: 1;
    min-height: min(58svh, 520px);
    margin-bottom: 14px;
  }

  .live-globe-overlay {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .live-globe-overlay .live-location-panel {
    max-height: 42svh;
  }

  .globe-canvas {
    inset: -18px;
  }

  .world-view-tabs {
    width: 100%;
  }

  .world-view-tabs button,
  .group-tab,
  .filter-button,
  .ghost-button,
  .jump-bracket-button {
    min-height: 44px;
  }

  .jump-bracket-button {
    width: 100%;
    margin-left: 0;
  }

  .world-grid-panel,
  .live-location-panel {
    order: 1;
    max-height: 54svh;
    padding: 0;
  }

  .world-grid-panel {
    grid-template-columns: 1fr;
  }

  .live-location-heading {
    flex-direction: column;
  }

  .live-location-grid {
    grid-template-columns: 1fr;
  }

  .live-scoreline {
    grid-template-columns: 1fr;
  }

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

  .metric-card {
    min-height: 88px;
    padding: 12px;
  }

  .metric-card strong {
    font-size: 1.38rem;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .panel {
    padding: 12px;
    scroll-margin-top: 14px;
    scroll-margin-bottom: 94px;
  }

  .groups-panel,
  .bracket-panel,
  .match-panel {
    min-height: min(88svh, 820px);
  }

  .panel-heading {
    gap: 10px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .filter-button {
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .group-tabs {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .bracket-scroll {
    grid-auto-columns: minmax(230px, 86vw);
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .round-column {
    scroll-snap-align: start;
  }

  .match-stack.compact,
  .match-stack.timeline {
    max-height: 58svh;
  }

  .match-card {
    min-height: 104px;
  }

  .versus-card {
    grid-template-columns: 1fr;
  }

  .vs-label {
    text-align: center;
  }

  .team-lens {
    left: auto;
    right: 8px;
    top: calc(100% + 8px);
    transform: translateY(6px);
  }

  .team-row:hover .team-lens,
  .team-row:focus-visible .team-lens {
    transform: translateY(0);
  }

  .team-filter-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(79, 230, 255, 0.22);
    border-radius: 18px;
    background: rgba(3, 11, 17, 0.88);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    border-radius: 13px;
    color: #d9ecf3;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .mobile-dock a:hover,
  .mobile-dock a:focus-visible {
    color: #06121a;
    background: var(--cyan);
  }

  .mobile-dock a span {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 999px;
    color: #06121a;
    background: var(--cyan);
    font-size: 0.72rem;
  }

  .mobile-dock a:hover span,
  .mobile-dock a:focus-visible span {
    background: rgba(6, 18, 26, 0.16);
  }
}
