:root {
  color-scheme: dark;
  --ink: #020922;
  --deep: #040d2c;
  --navy: #002273;
  --blue: #0729f4;
  --cyan: #00befa;
  --violet: #5b1bd8;
  --white: #f8fbff;
  --muted: #a9b9d9;
  --line: rgba(154, 192, 255, 0.19);
  --line-bright: rgba(0, 190, 250, 0.42);
  --display: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); color: var(--white); font-family: var(--body); font-size: 16px; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.site-header, main, footer { position: relative; z-index: 1; }
.site-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 9, 34, .88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { justify-self: start; display: flex; align-items: center; gap: 13px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.brand-logo-frame { display: grid; place-items: center; padding: 5px 8px; border-radius: 4px; background: white; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.brand-logo { display: block; width: clamp(128px, 11vw, 158px); height: auto; }
.brand-copy { font: 800 .76rem/1.05 var(--body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.brand-copy strong { color: white; }
.event-chip { justify-self: end; font: 800 .74rem var(--body); letter-spacing: .12em; color: #ddecff; }
.event-chip span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); margin-right: 8px; }
.top-nav { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 6px; }
.nav-button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.nav-button.is-active { background: var(--blue); color: white; }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding: 78px clamp(20px, 7vw, 108px) 92px;
  overflow: hidden;
  background: radial-gradient(circle at 78% 40%, rgba(0,190,250,.18), transparent 28%), linear-gradient(112deg, rgba(7,41,244,.35), transparent 51%);
}
.hero::after { content: "2026"; position: absolute; right: -30px; bottom: -85px; font: 900 18rem/.8 var(--display); color: rgba(255,255,255,.025); }
.hero-copy, .hero-bracket { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 13px; color: var(--cyan); font: 800 .82rem var(--body); letter-spacing: .16em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .012em; }
h1 { max-width: 780px; font-size: clamp(4.7rem, 9vw, 8.3rem); line-height: .78; }
h1 em { color: var(--cyan); font-style: italic; }
.hero-intro { max-width: 560px; margin: 28px 0; color: #c5d5f2; font-size: 1.05rem; line-height: 1.65; }
.entry-card { max-width: 690px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 10px; background: rgba(0,34,115,.42); border: 1px solid rgba(0,190,250,.28); border-radius: 8px; }
.entry-card label { display: grid; gap: 6px; padding: 2px 8px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.entry-card input { width: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: white; font: 600 .94rem var(--body); }
.entry-card input::placeholder { color: #6f80a5; }
.entry-card .consent-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px 2px; color: #aabbd9; font-size: .72rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.entry-card .consent-row input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--cyan); }
.primary-button { min-height: 46px; border: 0; border-radius: 5px; padding: 0 20px; color: white; background: var(--blue); font: 800 .78rem var(--body); letter-spacing: .07em; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: #2545ff; transform: translateY(-1px); }
.primary-button:focus-visible, .nav-button:focus-visible, .text-button:focus-visible, .score-select:focus-visible, .final-team-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.primary-button span { color: var(--cyan); font-size: 1.2rem; }
.entry-note { margin: 12px 0 0; color: #7386ab; font-size: .75rem; }
.resume-button { margin-top: 14px; border: 0; padding: 0; background: transparent; color: var(--cyan); font-weight: 700; cursor: pointer; }

.hero-bracket { padding: 28px; border: 1px solid rgba(0,190,250,.35); background: linear-gradient(145deg, rgba(0,34,115,.7), rgba(3,11,39,.86)); box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(1.2deg); }
.scoreboard-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font: 800 .74rem var(--body); letter-spacing: .1em; }
.scoreboard-label b { color: var(--cyan); }
.preview-match { border-top: 3px solid var(--cyan); background: white; color: var(--ink); }
.preview-match > div { display: grid; grid-template-columns: 40px 1fr 50px; align-items: center; min-height: 72px; padding: 0 16px; border-bottom: 1px solid #dbe5f6; }
.preview-match strong { font: 900 1.4rem var(--display); text-transform: uppercase; }
.preview-match b { font: 900 2rem var(--display); color: var(--blue); text-align: right; }
.seed { color: #6e7b95; font: 800 .8rem var(--body); }
.advance-line { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; background: var(--blue); }
.advance-line span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.advance-line strong { font: 900 1.3rem var(--display); }
.format-note { display: grid; gap: 7px; margin-top: 24px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.format-note b { color: white; }

.landing-rules { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(20px, 7vw, 108px); background: var(--blue); }
.landing-rules article { min-height: 144px; display: flex; align-items: center; gap: 18px; padding: 25px 30px; border-right: 1px solid rgba(255,255,255,.18); }
.landing-rules article:last-child { border: 0; }
.landing-rules article > span { color: var(--cyan); font: 900 2.3rem var(--display); }
.landing-rules strong { font: 900 1.22rem var(--display); letter-spacing: .03em; }
.landing-rules p { margin: 5px 0 0; color: #cbd5ff; font-size: .82rem; line-height: 1.5; }
.schedule-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: end; padding: 95px clamp(20px, 7vw, 108px); background: var(--deep); }
h2 { font-size: clamp(3.3rem, 6vw, 5.8rem); line-height: .88; }
.schedule-list { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.schedule-list > div { min-height: 130px; display: grid; align-content: center; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,34,115,.17); }
.schedule-list time { color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.schedule-list strong { margin-top: 8px; font: 900 1.3rem var(--display); }
.schedule-list span { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.schedule-final { background: linear-gradient(135deg, rgba(7,41,244,.7), rgba(91,27,216,.55)) !important; }

.challenge-shell { min-height: calc(100vh - 78px); background: radial-gradient(circle at 50% 5%, rgba(7,41,244,.17), transparent 28%), var(--deep); }
.challenge-toolbar { min-height: 82px; display: grid; grid-template-columns: 1fr minmax(280px, 480px) 1fr; align-items: center; gap: 35px; padding: 14px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(0,34,115,.2); }
.challenge-toolbar > div:first-child { display: grid; gap: 4px; }
.toolbar-kicker { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
#participant-name { font: 900 1.16rem var(--display); text-transform: uppercase; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 700; }
.progress-copy strong { color: white; }
.progress-track { height: 5px; margin-top: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s ease; }
.text-button { justify-self: end; border: 0; background: none; color: var(--muted); font-size: .75rem; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.view-panel { padding: 68px clamp(20px, 5vw, 72px) 92px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading > p { max-width: 520px; color: var(--muted); line-height: 1.6; }
.app-heading h2 { font-size: clamp(3rem, 5.5vw, 5.2rem); }
.score-key { display: flex; gap: 10px; flex-wrap: wrap; }
.score-key span { padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.score-key b { margin-right: 5px; color: var(--cyan); }
.bracket-help { display: flex; align-items: center; gap: 10px; margin: -10px 0 28px; color: #b5c5e3; font-size: .82rem; }
.bracket-help p { margin: 0; }
.help-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.bracket-board { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bracket-half { min-width: 0; border: 1px solid var(--line); background: rgba(2,9,34,.68); }
.half-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.half-heading span { color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.half-heading strong { font: 900 1rem var(--display); }
.half-lanes { min-height: 900px; display: grid; grid-template-columns: minmax(210px, 1.15fr) minmax(210px, 1fr) minmax(210px, .95fr); gap: 14px; padding: 14px; overflow-x: auto; }
.round-column { min-width: 210px; display: flex; flex-direction: column; gap: 14px; }
.round-column[data-stage="r16"] { justify-content: space-around; }
.round-column[data-stage="qf"] { justify-content: space-around; }
.round-column[data-stage="sf"] { justify-content: center; }
.round-column-title { display: flex; justify-content: space-between; margin: 4px 2px 0; color: #788cad; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-card { position: relative; min-height: 177px; border: 1px solid var(--line); border-top: 2px solid var(--cyan); background: linear-gradient(160deg, rgba(0,34,115,.45), rgba(3,11,39,.8)); transition: border-color .2s ease, opacity .2s ease, transform .2s ease; }
.match-card:hover:not(.is-locked) { border-color: var(--line-bright); transform: translateY(-1px); }
.match-card.is-locked { opacity: .72; border-top-color: #445573; }
.match-card.is-complete { border-color: rgba(0,190,250,.55); }
.match-card.match-error { animation: nudge .28s ease 2; border-color: #ff6e91; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.match-date { display: flex; justify-content: space-between; padding: 9px 11px; color: #8295b8; font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-date > span { display: flex; align-items: center; gap: 6px; }
.match-date time { line-height: 1.35; text-align: right; }
.lock-badge { display: inline-flex; align-items: center; min-height: 18px; padding: 2px 6px; border: 1px solid rgba(0,190,250,.32); border-radius: 999px; color: #9cecff; font: 800 .5rem var(--body); letter-spacing: .06em; white-space: nowrap; }
.lock-badge.is-closed { border-color: rgba(255,110,145,.42); color: #ff9bb4; }
.match-team { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; min-height: 41px; padding: 0 11px; border-top: 1px solid var(--line); }
.match-team.is-winner { background: rgba(7,41,244,.36); }
.match-team .team-seed { color: var(--cyan); font-size: .64rem; font-weight: 800; }
.match-team .team-name { overflow: hidden; font: 900 1rem var(--display); text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.winner-tag { color: var(--cyan); font-size: .58rem; font-weight: 800; letter-spacing: .06em; }
.match-control { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 9px 11px 11px; border-top: 1px solid var(--line); }
.score-select { width: 100%; min-height: 35px; border: 1px solid var(--line); border-radius: 3px; padding: 0 9px; background: #071438; color: white; font-size: .75rem; font-weight: 700; }
.score-select:disabled { color: #6c7895; cursor: not-allowed; }
.tiebreak-row { display: flex; gap: 5px; }
.tiebreak-row > span { display: flex; align-items: center; padding-right: 2px; color: #8091b0; font-size: .61rem; font-weight: 800; }
.tiebreak-option { flex: 1; min-height: 29px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: .65rem; font-weight: 800; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiebreak-option.is-selected { border-color: var(--cyan); background: rgba(0,190,250,.16); color: var(--cyan); }
.locked-copy { min-height: 35px; display: grid; place-items: center; color: #6f80a3; font-size: .66rem; font-weight: 700; }

.final-zone { grid-column: 1 / -1; max-width: 640px; width: 100%; margin: 0 auto; border: 1px solid var(--line-bright); background: linear-gradient(135deg, rgba(7,41,244,.52), rgba(91,27,216,.45)); }
.final-zone-heading { display: flex; justify-content: space-between; align-items: center; padding: 14px 17px; border-bottom: 1px solid rgba(255,255,255,.18); }
.final-zone-heading span { color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.final-zone-heading strong { font: 900 1.25rem var(--display); }
.final-match { padding: 20px; }
.final-lock-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 13px; color: #a9b9d8; font-size: .68rem; }
.final-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.final-team-button { min-height: 78px; border: 1px solid rgba(255,255,255,.22); background: rgba(2,9,34,.55); text-align: left; padding: 12px; cursor: pointer; }
.final-team-button span { display: block; color: var(--cyan); font-size: .62rem; font-weight: 800; }
.final-team-button strong { display: block; margin-top: 5px; font: 900 1.2rem var(--display); text-transform: uppercase; }
.final-team-button.is-selected { border-color: var(--cyan); background: var(--blue); }
.final-vs { align-self: center; color: #9bb0d6; font: 900 1rem var(--display); }
.final-controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 14px; }
.final-controls label { color: #becaec; font-size: .72rem; font-weight: 700; }
.final-controls select { min-width: 145px; }

.submit-dock { position: sticky; bottom: 18px; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 780px; margin: 40px auto 0; padding: 14px 16px 14px 20px; border: 1px solid var(--line-bright); background: rgba(2,9,34,.94); box-shadow: 0 20px 60px rgba(0,0,0,.42); backdrop-filter: blur(15px); }
.submit-dock > div { display: grid; gap: 3px; }
.submit-dock span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.submit-dock strong { font: 900 1.2rem var(--display); }
.submit-button { min-width: 190px; }

.leaderboard-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 20px; }
.leaderboard-card { border: 1px solid var(--line); background: rgba(2,9,34,.72); }
.leaderboard-head, .leaderboard-row { display: grid; grid-template-columns: 72px 1fr 90px 90px; align-items: center; }
.leaderboard-head { min-height: 48px; padding: 0 22px; color: #7185a9; background: rgba(0,34,115,.25); font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.leaderboard-row { min-height: 76px; padding: 0 22px; border-top: 1px solid var(--line); }
.leaderboard-row.is-user { background: rgba(7,41,244,.18); }
.leaderboard-rank { font: 900 1.4rem var(--display); color: var(--cyan); }
.leaderboard-player { display: grid; gap: 4px; }
.leaderboard-player strong { font: 900 1.1rem var(--display); text-transform: uppercase; }
.leaderboard-player span { color: #788bac; font-size: .68rem; }
.leaderboard-stat { font-weight: 800; }
.leaderboard-points { color: var(--cyan); font: 900 1.5rem var(--display); }
.scoring-card { padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(7,41,244,.5), rgba(91,27,216,.3)); }
.scoring-card h3 { margin-top: 12px; font-size: 2.5rem; line-height: .9; }
.scoring-card dl { margin: 28px 0 0; }
.scoring-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.scoring-card dt { color: #becbed; font-size: .8rem; }
.scoring-card dd { margin: 0; color: var(--cyan); font-weight: 800; }

.admin-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 14px 16px; border: 1px solid rgba(0,190,250,.28); background: rgba(0,190,250,.07); }
.admin-banner span { flex: 0 0 auto; padding: 7px 9px; background: var(--cyan); color: var(--ink); font-size: .64rem; font-weight: 900; letter-spacing: .08em; }
.admin-banner p { margin: 0; color: #b9c7e4; font-size: .8rem; }
.admin-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-round { border: 1px solid var(--line); background: rgba(2,9,34,.68); }
.admin-round h3 { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--cyan); font-size: 1rem; }
.admin-round .match-card { margin: 12px; }
.admin-save { display: block; min-width: 220px; margin: 28px auto 0; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; max-width: calc(100vw - 32px); transform: translate(-50%, 24px); padding: 13px 18px; border: 1px solid var(--line-bright); background: #06143f; color: white; box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.success-dialog { width: min(520px, calc(100vw - 30px)); border: 1px solid var(--line-bright); padding: 46px; background: linear-gradient(145deg, #071a67, #040b29 70%); color: white; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.success-dialog::backdrop { background: rgba(0,5,22,.78); backdrop-filter: blur(5px); }
.success-dialog h2 { font-size: 4rem; }
.success-dialog > p:not(.eyebrow) { color: #bfcae6; line-height: 1.6; }
.success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%; background: var(--cyan); color: var(--ink); font-size: 2rem; font-weight: 900; }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: none; color: #91a4ca; font-size: 1.8rem; cursor: pointer; }

footer { display: flex; justify-content: space-between; padding: 30px clamp(20px, 7vw, 108px); color: #67799d; font-size: .7rem; font-weight: 800; letter-spacing: .1em; border-top: 1px solid var(--line); background: var(--ink); }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .top-nav { justify-self: center; }
  .bracket-board { grid-template-columns: 1fr; }
  .final-zone { grid-column: 1; }
  .admin-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-bracket { max-width: 620px; transform: none; }
  .landing-rules { grid-template-columns: 1fr; }
  .landing-rules article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .schedule-section { grid-template-columns: 1fr; gap: 35px; }
  .site-header { grid-template-columns: auto 1fr; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; margin-bottom: 9px; }
  .event-chip { justify-self: end; }
  .site-header:has(.top-nav:not([hidden])) { padding-top: 10px; }
  .challenge-toolbar { grid-template-columns: 1fr 1.4fr auto; }
  .leaderboard-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; }
  .event-chip { font-size: .62rem; }
  .brand-logo-frame { padding: 4px 6px; }
  .brand-logo { width: 112px; }
  .brand-copy { display: none; }
  .hero { min-height: auto; padding-top: 46px; }
  h1 { font-size: clamp(3.4rem, 17vw, 4.7rem); }
  .entry-card { grid-template-columns: 1fr; padding: 15px; }
  .entry-card label { min-height: 58px; justify-content: center; border-bottom: 1px solid var(--line); }
  .entry-card .consent-row { min-height: auto; justify-content: flex-start; border-bottom: 0; padding-top: 9px; }
  .primary-button { min-height: 50px; }
  .hero-bracket { padding: 18px; }
  .schedule-list { grid-template-columns: 1fr; }
  .challenge-toolbar { grid-template-columns: 1fr auto; gap: 12px; }
  .progress-cluster { grid-column: 1 / -1; grid-row: 2; }
  .text-button { grid-column: 2; grid-row: 1; }
  .view-panel { padding-top: 48px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .half-lanes { min-height: auto; grid-template-columns: 1fr; overflow: visible; }
  .round-column { min-width: 0; }
  .round-column-title { margin-top: 14px; }
  .final-teams { grid-template-columns: 1fr; }
  .final-vs { justify-self: center; }
  .final-controls { grid-template-columns: 1fr; }
  .submit-dock { position: static; align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .leaderboard-head, .leaderboard-row { grid-template-columns: 50px 1fr 60px; padding: 0 14px; }
  .leaderboard-head span:nth-child(3), .leaderboard-row > :nth-child(3) { display: none; }
  .admin-results { grid-template-columns: 1fr; }
  .success-dialog { padding: 40px 22px 30px; }
  footer { flex-direction: column; gap: 8px; }
}

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