:root {
  --bg: #07100d;
  --panel: #0d1915;
  --panel-2: #111f1a;
  --panel-3: #14251e;
  --line: rgba(218, 240, 229, 0.1);
  --line-strong: rgba(218, 240, 229, 0.18);
  --text: #f2f6f3;
  --muted: #8e9c95;
  --soft: #bdc8c1;
  --lime: #c8f65d;
  --lime-dark: #9ec834;
  --orange: #ff9a62;
  --danger: #ff6f6f;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
  font-family: "Manrope", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 0%, rgba(62, 116, 75, 0.14), transparent 32rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one {
  top: 12%;
  left: 23%;
  width: 18rem;
  height: 18rem;
  background: rgba(90, 162, 101, 0.08);
}

.ambient-two {
  right: 3%;
  bottom: 8%;
  width: 24rem;
  height: 24rem;
  background: rgba(187, 239, 80, 0.035);
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 27px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 13, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(200, 246, 93, 0.28);
  border-radius: 12px;
  color: var(--lime);
  background: linear-gradient(145deg, rgba(200, 246, 93, 0.14), rgba(200, 246, 93, 0.02));
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-mark span {
  font-size: 9px;
  vertical-align: top;
}

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

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.2px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tournament-status {
  margin: 30px 8px 24px;
}

.eyebrow-row {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.eyebrow-row span:last-child {
  color: var(--lime);
  font-family: "DM Mono", monospace;
}

.progress-track {
  height: 4px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(200, 246, 93, 0.4);
  transition: width 260ms var(--ease-out);
}

.tournament-status p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.round-nav {
  display: grid;
  gap: 3px;
}

.round-link {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  color: #75827b;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}

.round-link:active,
.side-action:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.text-button:active,
.fixture:active,
.icon-button:active,
.load-more:active,
.danger-button:active {
  transform: scale(0.97);
}

.round-link .round-index {
  color: #5d6a63;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.round-link strong {
  font-size: 12px;
  font-weight: 600;
}

.round-link small {
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.round-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.round-link.active::before {
  position: absolute;
  left: 0;
  width: 2px;
  height: 16px;
  border-radius: 99px;
  background: var(--lime);
  content: "";
}

.round-link.active .round-index,
.round-link.complete .round-index {
  color: var(--lime);
}

.round-link:not(.available) {
  cursor: not-allowed;
}

.sidebar-bottom {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.side-action {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  color: var(--soft);
  background: transparent;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}

.side-icon {
  color: var(--lime);
  font-size: 15px;
}

kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-family: "DM Mono", monospace;
  font-size: 8px;
}

.save-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 10px 0;
  color: #647169;
  font-size: 9px;
}

.save-note span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73b486;
  box-shadow: 0 0 7px #73b486;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 18px clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 13, 0.82);
  backdrop-filter: blur(18px);
}

.page-kicker,
.section-kicker {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: -1.1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 190px;
  height: 37px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.search:focus-within {
  border-color: rgba(200, 246, 93, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

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

.search input::placeholder {
  color: #66736c;
}

.icon-button,
.ghost-button,
.secondary-button,
.text-button,
.primary-button,
.danger-button,
.load-more {
  border: 0;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.icon-button {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.025);
}

.ghost-button {
  height: 37px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.content {
  display: grid;
  grid-template-columns: minmax(580px, 1fr) 268px;
  gap: 22px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px clamp(22px, 3vw, 48px) 60px;
}

.stage-column {
  min-width: 0;
}

.match-stage {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(91, 138, 102, 0.18), transparent 17rem),
    #0c1814;
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.match-stage::after {
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(200, 246, 93, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(200, 246, 93, 0.02),
    0 0 0 110px rgba(200, 246, 93, 0.015);
  content: "";
  pointer-events: none;
}

.stage-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
}

.live-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 154, 98, 0.6);
}

.matchup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  gap: 26px;
  padding: 18px clamp(24px, 5vw, 76px) 30px;
}

.team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.seed {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.8px;
}

.flag-orb {
  display: grid;
  width: clamp(70px, 7vw, 92px);
  height: clamp(70px, 7vw, 92px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.02),
    0 14px 35px rgba(0, 0, 0, 0.24);
  font-size: clamp(36px, 4vw, 48px);
}

.team h2 {
  max-width: 220px;
  margin: 17px 0 8px;
  overflow: hidden;
  font-size: clamp(16px, 1.7vw, 23px);
  letter-spacing: -0.7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating {
  display: flex;
  gap: 3px;
}

.rating i {
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.rating i.on {
  background: var(--lime);
}

.score-zone {
  display: grid;
  justify-items: center;
  align-content: center;
}

.venue {
  color: #718079;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
}

.score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin: 15px 0 8px;
  font-family: "DM Mono", monospace;
}

.score span {
  min-width: 44px;
  font-size: clamp(37px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: -4px;
  text-align: center;
}

.score small {
  color: #68756e;
  font-size: 9px;
  letter-spacing: 1px;
}

.score.concealed span {
  filter: blur(10px);
  opacity: 0.48;
}

.result-note {
  min-height: 15px;
  color: var(--muted);
  font-size: 13px;
}

.stage-action {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 12px 24px 30px;
}

.primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 10px;
  color: #10180c;
  background: var(--lime);
  box-shadow: 0 8px 24px rgba(200, 246, 93, 0.12);
  font-size: 11px;
  font-weight: 800;
}

.play-button {
  min-width: 160px;
}

.play-icon {
  font-size: 9px;
}

.stage-action p {
  margin: 11px 0 0;
  color: #69766f;
  font-size: 9px;
}

.spoiler-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 7px 24px 24px;
  padding: 14px 15px 14px 18px;
  border: 1px solid rgba(200, 246, 93, 0.18);
  border-radius: 12px;
  background: rgba(200, 246, 93, 0.07);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.spoiler-panel[hidden] {
  display: none;
}

.spoiler-panel > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spoiler-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: rgba(200, 246, 93, 0.1);
}

.spoiler-panel strong {
  font-size: 11px;
}

.spoiler-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.reveal-button {
  flex-shrink: 0;
}

.match-events {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin: 0 24px 24px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.08);
}

.match-events[hidden] {
  display: none;
}

.event-side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.event-side.away {
  text-align: right;
}

.event {
  color: var(--soft);
  font-size: 10px;
}

.event b {
  color: var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.event-side.away .event b {
  color: var(--orange);
}

.event-outcome {
  align-self: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 30px;
}

.story-card {
  display: grid;
  min-height: 94px;
  align-content: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.story-card span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.story-card strong {
  margin: 4px 0 1px;
  font-family: "DM Mono", monospace;
  font-size: 24px;
  font-weight: 500;
}

.story-card small {
  color: #738078;
  font-size: 9px;
}

.story-card.accent {
  border-color: rgba(200, 246, 93, 0.15);
  background: linear-gradient(135deg, rgba(200, 246, 93, 0.07), rgba(200, 246, 93, 0.015));
}

.story-card.accent strong {
  color: var(--lime);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

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

.section-heading h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.4px;
}

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

.text-button {
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 600;
}

.text-button.active {
  color: var(--lime);
}

.secondary-button,
.danger-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  font-weight: 700;
}

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

.fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    border-color 160ms ease,
    background-color 160ms ease;
}

.fixture.selected {
  border-color: rgba(200, 246, 93, 0.34);
  background: rgba(200, 246, 93, 0.045);
}

.fixture.complete {
  background: rgba(255, 255, 255, 0.025);
}

.fixture-teams {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.fixture-team {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 10px;
}

.fixture-team .flag {
  font-size: 15px;
}

.fixture-team .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-team.winner {
  color: var(--text);
  font-weight: 700;
}

.fixture-team.winner .name::after {
  margin-left: 5px;
  color: var(--lime);
  content: "✓";
}

.fixture-team b {
  min-width: 10px;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-align: right;
}

.fixture-meta {
  align-self: center;
  color: #627068;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  writing-mode: vertical-rl;
}

.load-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.insight-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.panel-heading strong {
  color: var(--soft);
  font-size: 9px;
}

.queue {
  display: grid;
}

.queue-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.queue-item:last-child {
  border-bottom: 0;
}

.queue-item .queue-number {
  color: #627068;
  font-family: "DM Mono", monospace;
  font-size: 8px;
}

.queue-pair {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.queue-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--soft);
  font-size: 9px;
}

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

.queue-item.current {
  background: rgba(200, 246, 93, 0.05);
}

.queue-item.current .queue-number {
  color: var(--lime);
}

.plot-list {
  display: grid;
}

.empty-story {
  display: grid;
  justify-items: center;
  padding: 35px 24px;
  color: #69766f;
  text-align: center;
}

.empty-story span {
  color: var(--lime);
  font-size: 16px;
}

.empty-story p {
  margin: 9px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

.plot-item {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.plot-item:last-child {
  border-bottom: 0;
}

.plot-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  color: var(--lime);
  background: rgba(200, 246, 93, 0.07);
  font-size: 12px;
}

.plot-item strong {
  display: block;
  color: var(--soft);
  font-size: 9px;
}

.plot-item p {
  margin: 3px 0 0;
  color: #718078;
  font-size: 8px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 300px;
  padding: 12px 15px;
  border: 1px solid rgba(200, 246, 93, 0.18);
  border-radius: 10px;
  color: var(--soft);
  background: #14221c;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.38);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}

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

.modal,
.confirm-modal {
  width: min(620px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  background: #0d1915;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.modal::backdrop,
.confirm-modal::backdrop {
  background: rgba(2, 8, 6, 0.78);
  backdrop-filter: blur(5px);
}

.modal[open],
.confirm-modal[open] {
  animation: modal-in 200ms var(--ease-out);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
}

.modal form {
  padding: 25px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.7px;
}

.close-modal {
  flex-shrink: 0;
  font-size: 20px;
}

.setting-group {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.setting-copy strong,
.switch-row strong {
  font-size: 11px;
}

.setting-copy p,
.switch-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.segmented button {
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button.active {
  color: #15200f;
  background: var(--lime);
}

.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 99px;
  background: #2a3731;
  transition: background-color 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #819087;
  content: "";
  transition: transform 180ms var(--ease-out), background-color 160ms ease;
}

.switch-row input:checked + .switch {
  background: var(--lime);
}

.switch-row input:checked + .switch::after {
  background: #15200f;
  transform: translateX(16px);
}

.modal-save {
  width: 100%;
  margin-top: 13px;
}

.field-modal {
  width: min(760px, calc(100vw - 28px));
}

.field-intro {
  margin: -10px 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.modal-search {
  width: 100%;
  margin-bottom: 14px;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field-team {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.field-team:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.field-team .field-flag {
  font-size: 17px;
}

.field-team small {
  padding: 2px 5px;
  border-radius: 4px;
  color: #738078;
  background: rgba(255, 255, 255, 0.035);
  font-size: 7px;
  text-transform: uppercase;
}

.field-team small.invited {
  color: var(--orange);
  background: rgba(255, 154, 98, 0.07);
}

.confirm-modal {
  width: min(380px, calc(100vw - 28px));
  text-align: center;
}

.confirm-modal form {
  padding: 28px;
}

.confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 154, 98, 0.08);
  font-size: 19px;
}

.confirm-modal h2 {
  margin: 0;
  font-size: 18px;
}

.confirm-modal p {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 10px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.danger-button {
  border-color: rgba(255, 111, 111, 0.2);
  color: #ffd4d4;
  background: rgba(255, 111, 111, 0.1);
}

.champion-stage {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: 50px;
  text-align: center;
}

.champion-stage[hidden] {
  display: none;
}

.champion-stage .flag-orb {
  width: 110px;
  height: 110px;
  margin: 20px auto;
  border-color: rgba(200, 246, 93, 0.28);
  font-size: 57px;
  box-shadow: 0 0 70px rgba(200, 246, 93, 0.12);
}

.champion-stage h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -2px;
}

.champion-stage p {
  color: var(--muted);
  font-size: 11px;
}

.trophy {
  color: var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
}

.search-result-popover {
  position: fixed;
  top: 69px;
  right: 136px;
  z-index: 40;
  display: grid;
  width: 260px;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #111f1a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform-origin: top right;
}

.search-result {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result strong {
  display: block;
  font-size: 9px;
}

.search-result small {
  color: var(--muted);
  font-size: 7px;
}

@media (hover: hover) and (pointer: fine) {
  .round-link:hover,
  .side-action:hover,
  .queue-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
  }

  .fixture:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
  }

  .primary-button:hover {
    background: #d5ff73;
  }

  .secondary-button:hover,
  .ghost-button:hover,
  .icon-button:hover {
    border-color: rgba(218, 240, 229, 0.25);
    background: rgba(255, 255, 255, 0.055);
  }

  .text-button:hover {
    color: var(--text);
  }

  .search-result:hover {
    background: rgba(255, 255, 255, 0.045);
  }
}

@media (max-width: 1120px) {
  .content {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 248px;
    transition: transform 220ms var(--ease-out);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.45);
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    gap: 13px;
  }

  .topbar > div:nth-child(2) {
    margin-right: auto;
  }

  .search,
  .ghost-button {
    display: none;
  }

  .content {
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 72px;
    padding: 13px 15px;
  }

  .page-kicker {
    display: none;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .content {
    padding: 14px 12px 45px;
  }

  .match-stage {
    min-height: 0;
  }

  .stage-topline {
    padding: 16px;
  }

  .matchup {
    grid-template-columns: 1fr 72px 1fr;
    gap: 8px;
    padding: 12px 13px 24px;
  }

  .seed {
    margin-bottom: 9px;
  }

  .flag-orb {
    width: 62px;
    height: 62px;
    font-size: 32px;
  }

  .team h2 {
    max-width: 115px;
    margin-top: 12px;
    font-size: 14px;
  }

  .score {
    gap: 5px;
  }

  .score span {
    min-width: 24px;
    font-size: 32px;
    letter-spacing: -2px;
  }

  .venue {
    display: none;
  }

  .spoiler-panel {
    align-items: stretch;
    flex-direction: column;
    margin: 5px 13px 16px;
  }

  .reveal-button {
    width: 100%;
  }

  .match-events {
    gap: 8px;
    margin: 0 13px 16px;
    padding: 14px 5px;
  }

  .story-strip {
    grid-template-columns: 1fr 1fr;
  }

  .story-card.accent {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .board-actions {
    width: 100%;
    justify-content: space-between;
  }

  .fixture-grid,
  .insight-column,
  .field-list {
    grid-template-columns: 1fr;
  }

  .field-team:nth-child(odd) {
    border-right: 0;
  }

  .setting-group {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
