:root {
  color-scheme: light;
  --ink: #151516;
  --muted: #5d625f;
  --paper: #f8efdc;
  --panel: #fff8e8;
  --line: #151516;
  --navy: #132b57;
  --sky: #00a7b5;
  --red: #f24738;
  --gold: #f3c02f;
  --pink: #e46aa9;
  --green: #23765c;
  --shadow: 10px 10px 0 rgba(21, 21, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 167, 181, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(315deg, rgba(242, 71, 56, 0.12) 0 13%, transparent 13% 100%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.is-scroll-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(21, 21, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 22, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
  z-index: 2;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 8px solid var(--line);
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 13px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 108px,
    var(--red) 108px 176px,
    var(--sky) 176px 286px,
    var(--navy) 286px 396px,
    var(--gold) 396px 470px,
    var(--red) 470px 584px,
    var(--sky) 584px 652px,
    var(--navy) 652px 782px
  );
}

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--navy);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(1.22) contrast(1.06) sepia(0.08);
  opacity: 1;
  transition: opacity 1450ms ease-in-out;
}

.hero__image--current {
  z-index: 0;
}

.hero__image--next {
  z-index: 1;
  opacity: 0;
}

.hero__image--next.is-visible {
  opacity: 1;
}

.hero__image--still {
  animation-duration: 7.5s;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}

.hero__image--still[data-motion="0"] {
  animation-name: hero-drift-in;
}

.hero__image--still[data-motion="1"] {
  animation-name: hero-drift-right;
}

.hero__image--still[data-motion="2"] {
  animation-name: hero-drift-up;
}

.hero__image--still[data-motion="3"] {
  animation-name: hero-drift-left;
}

@keyframes hero-drift-in {
  from {
    transform: scale(1.01);
  }

  to {
    transform: scale(1.1) translate(-1.2%, -0.8%);
  }
}

@keyframes hero-drift-right {
  from {
    transform: scale(1.08) translate(-1.6%, 0.25%);
  }

  to {
    transform: scale(1.025) translate(1.45%, -0.7%);
  }
}

@keyframes hero-drift-up {
  from {
    transform: scale(1.025) translate(-0.2%, 1.3%);
  }

  to {
    transform: scale(1.095) translate(0.65%, -1.5%);
  }
}

@keyframes hero-drift-left {
  from {
    transform: scale(1.085) translate(1.6%, -0.35%);
  }

  to {
    transform: scale(1.025) translate(-1.4%, 0.65%);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 600px 330px at 18% 74%, rgba(12, 24, 45, 0.66), transparent 72%),
    linear-gradient(90deg, rgba(12, 24, 45, 0.9), rgba(12, 24, 45, 0.54) 40%, rgba(12, 24, 45, 0.1) 76%),
    linear-gradient(0deg, rgba(12, 24, 45, 0.86), rgba(12, 24, 45, 0.1) 64%);
}

.hero__ribbon {
  position: absolute;
  top: 30px;
  left: -12px;
  z-index: 2;
  max-width: min(560px, calc(100% - 28px));
  padding: 12px 28px 12px 38px;
  border: 3px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 7px 7px 0 rgba(21, 21, 22, 0.26);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(82px, 12vh, 118px);
  color: white;
}

.eyebrow,
.label,
.team-card__meta {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid var(--gold);
  background: rgba(19, 43, 87, 0.78);
  color: var(--gold);
}

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

h1,
h2 {
  font-family: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  margin-bottom: 16px;
  font-size: clamp(2.65rem, 5.8vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(21, 21, 22, 0.72), 7px 7px 0 rgba(242, 71, 56, 0.9);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 580px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  font-weight: 700;
}

.section__actions,
.controls,
.match__tools,
.winner-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 2px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 5px 5px 0 rgba(21, 21, 22, 0.2);
}

.button[hidden] {
  display: none;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 rgba(21, 21, 22, 0.24);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.button--primary {
  background: var(--gold);
  color: #201504;
}

.button--ghost {
  border-color: white;
  color: white;
  background: rgba(0, 167, 181, 0.32);
}

.button--quiet {
  background: var(--panel);
  color: var(--navy);
}

.button--danger {
  background: var(--red);
  color: white;
}

.victory {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 98px) 0 clamp(26px, 4vw, 42px);
  display: grid;
  justify-items: center;
  gap: clamp(34px, 5vw, 52px);
}

.victory__visual {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: min(680px, 88vw);
  padding: clamp(18px, 3vw, 28px);
}

.victory__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  border: clamp(8px, 1.2vw, 12px) solid white;
  border-radius: 2px;
  padding: 0;
  background: white;
  color: var(--muted);
  box-shadow:
    0 0 0 3px var(--line),
    14px 16px 0 rgba(21, 21, 22, 0.16);
  transform: rotate(-0.9deg);
}

.victory__frame[hidden] {
  display: none;
}

.victory__frame:not(.victory__frame--empty) {
  cursor: pointer;
}

.victory__frame:not(.victory__frame--empty):hover,
.victory__frame:not(.victory__frame--empty):focus-visible {
  transform: translate(-1px, -2px) rotate(-0.9deg);
}

.victory__frame:not(.victory__frame--empty):focus-visible {
  outline: 4px solid rgba(0, 167, 181, 0.48);
  outline-offset: 5px;
}

.victory__frame img {
  display: block;
  width: 100%;
  max-height: min(64vh, 560px);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.victory__frame--empty {
  min-height: clamp(250px, 47vw, 430px);
  display: grid;
  place-items: center;
  padding: 30px;
  background: #fffdf7;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.victory__message {
  position: relative;
  z-index: 2;
  width: min(850px, 100%);
  text-align: center;
}

.victory__label {
  position: absolute;
  top: clamp(28px, 4.2vw, 40px);
  left: 50%;
  z-index: 2;
  margin: 0;
  padding: clamp(14px, 2vw, 19px) clamp(30px, 6vw, 54px) clamp(13px, 1.9vw, 18px);
  border: 3px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  font-weight: 950;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-0.6deg);
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(21, 21, 22, 0.14);
}

.victory__message h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.92;
  text-shadow: 3px 3px 0 rgba(243, 192, 47, 0.72);
}

.victory__signatures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 30px) clamp(34px, 6vw, 68px);
  width: min(670px, 100%);
  margin: clamp(22px, 4vw, 34px) auto 0;
  padding: 0 clamp(10px, 2vw, 18px);
}

.victory__signatures[hidden] {
  display: none;
}

.victory__signature {
  position: static;
  flex: 0 1 auto;
  max-width: min(100%, 18ch);
  display: block;
  color: var(--navy);
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.victory__signature.is-no-show,
.player-input.is-no-show > :first-child {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.victory__signature:nth-child(6n + 1) {
  transform: rotate(-7deg);
}

.victory__signature:nth-child(6n + 2) {
  transform: rotate(5deg);
}

.victory__signature:nth-child(6n + 3) {
  transform: rotate(-4deg);
}

.victory__signature:nth-child(6n + 4) {
  transform: rotate(7deg);
}

.victory__signature:nth-child(6n + 5) {
  transform: rotate(-2deg);
}

.victory__signature:nth-child(6n + 6) {
  transform: rotate(3deg);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 92px) 0 0;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}

.section--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.section--stacked > * {
  min-width: 0;
}

.section--compact {
  padding-bottom: 72px;
}

.section__intro {
  position: sticky;
  top: 18px;
  padding: 18px 0;
}

.section--stacked .section__intro {
  position: static;
  padding: 0;
}

.section__intro p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
}

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

.section__actions {
  justify-content: flex-end;
}

.results-section {
  padding-top: clamp(58px, 7vw, 76px);
}

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

.team-card,
.match,
.rules {
  border: 3px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.team-card {
  overflow: hidden;
}

.team-card__bar {
  min-height: 12px;
  border-bottom: 3px solid var(--line);
}

.team-card__body {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 167, 181, 0.12), transparent 38%),
    var(--panel);
}

.team-card__meta {
  color: var(--navy);
}

.team-name {
  width: 100%;
  margin: 0;
  border-bottom: 3px solid transparent;
  padding: 0 0 8px;
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 950;
  text-transform: uppercase;
}

.player-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.player-input {
  width: 100%;
  min-height: 40px;
  padding: 5px 0;
  font-weight: 700;
}

.player-input__status {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 650;
}

.bracket {
  padding: 8px 0 14px;
}

.play-order {
  border: 3px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 248, 232, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.play-order__header {
  border-bottom: 3px solid var(--line);
  padding: 10px 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 10px, transparent 10px 20px),
    var(--navy);
  color: white;
}

.play-order__header h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.play-order__matches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.phase-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid rgba(21, 21, 22, 0.72);
  border-radius: 2px;
  padding: 8px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(21, 21, 22, 0.06) 0 10px, transparent 10px 20px),
    #fff1ae;
  color: var(--ink);
}

.phase-divider span {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}

.phase-divider strong {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: right;
}

.match--w4,
.match--l2,
.match--l3,
.match--gf1,
.match--gf2,
.champion-card {
  grid-column: span 1;
}

.match {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  z-index: 1;
  box-shadow: none;
}

.match.is-pending {
  background:
    repeating-linear-gradient(-45deg, rgba(21, 21, 22, 0.04) 0 8px, transparent 8px 16px),
    #fffaf0;
}

.match.is-pending .score-row {
  color: var(--muted);
  background: rgba(255, 253, 247, 0.62);
}

.match.is-pending .team-dot {
  background: var(--muted) !important;
}

.match.is-pending .score-value,
.match.is-pending .score-input {
  color: var(--muted);
  background: rgba(255, 253, 247, 0.54);
  border-color: rgba(21, 21, 22, 0.48);
}

.match.is-locked {
  align-content: start;
}

.champion-card {
  position: relative;
  min-height: 88px;
  border: 3px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.42) 0 22px, transparent 23px),
    var(--gold);
  box-shadow: var(--shadow);
}

.champion-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.results-panel {
  min-width: 0;
  margin-top: 0;
  border: 3px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 248, 232, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.results-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--line);
  padding: 10px 14px;
  background:
    repeating-linear-gradient(90deg, rgba(21, 21, 22, 0.08) 0 10px, transparent 10px 20px),
    var(--gold);
}

.results-panel__header h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.results-panel__status {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-empty {
  margin: 0;
  border: 2px dashed rgba(21, 21, 22, 0.28);
  border-radius: 3px;
  padding: 28px;
  background: rgba(255, 248, 232, 0.62);
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.gallery-empty[hidden] {
  display: none;
}

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

.gallery-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 3px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgba(21, 21, 22, 0.18);
}

.gallery-card:focus-visible {
  outline: 3px solid rgba(0, 167, 181, 0.44);
  outline-offset: 2px;
}

.gallery-card__visual {
  position: relative;
  display: block;
  background:
    repeating-linear-gradient(135deg, rgba(21, 21, 22, 0.04) 0 12px, transparent 12px 24px),
    #e5e8e3;
}

.gallery-card img,
.gallery-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e5e8e3;
  object-fit: cover;
}

.gallery-card__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-card--video.is-preview-ready .gallery-card__loading {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.gallery-card__details {
  display: grid;
  gap: 3px;
  border-top: 3px solid var(--line);
  padding: 11px 13px 12px;
}

.gallery-card__details strong {
  font-size: 0.94rem;
  text-transform: uppercase;
}

.gallery-card__details span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.gallery-card--full {
  min-height: 100%;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(26px, 5vw, 48px) 22px;
  background: var(--navy);
  color: white;
  text-align: center;
}

.gallery-card__full-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-card--full strong {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.gallery-card__full-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--gold);
  padding: 9px 13px;
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-card__full-action span {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 0.7;
}

.results-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 253, 247, 0.7);
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  text-align: left;
  font-weight: 850;
}

.results-table thead th {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 10px, transparent 10px 20px),
    var(--navy);
  color: white;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.results-table tbody th {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.results-table td:not(:last-child) {
  width: 76px;
  font-variant-numeric: tabular-nums;
}

.results-table tr {
  border-bottom: 2px solid rgba(21, 21, 22, 0.16);
}

.results-table tr:last-child {
  border-bottom: 0;
}

.match__meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match__meta span:last-child {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 850;
}

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

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid rgba(21, 21, 22, 0.62);
  border-radius: 2px;
  padding: 6px;
  background: #fffdf7;
}

.score-row.is-winner {
  border-color: var(--green);
  background: #e6f5e8;
}

.score-row.is-loser {
  opacity: 0.68;
}

.score-row--placeholder {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.team-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
}

.team-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--muted);
}

.team-chip span:last-child {
  overflow-wrap: anywhere;
}

.score-control {
  display: block;
}

.score-input,
.score-value {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: #fffdf7;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-weight: 950;
}

.score-input:focus {
  outline: 3px solid rgba(0, 167, 181, 0.32);
  outline-offset: 2px;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  margin: 0;
}

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

.winner-line {
  min-height: 22px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lightbox {
  width: min(1180px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(10, 18, 29, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox__panel {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lightbox__media {
  display: grid;
  max-width: 100%;
  min-height: min(64vh, 500px);
  place-items: center;
}

.lightbox__media img,
.lightbox__media video {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 820px);
  border-radius: 3px;
  object-fit: contain;
}

.lightbox__details {
  width: min(780px, calc(100% - 80px));
  color: white;
  text-align: center;
}

.lightbox__details h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.lightbox__details p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.lightbox__credit {
  font-size: 0.84rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(19, 43, 87, 0.84);
  color: white;
  cursor: pointer;
  line-height: 1;
}

.lightbox__close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
}

.lightbox__nav {
  top: calc(50% - 42px);
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
}

.lightbox__nav--previous {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox__nav[hidden] {
  display: none;
}

.site-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding: 132px 16px 104px;
}

.service-note {
  max-width: 700px;
  margin: 0;
  color: var(--navy);
  font-family: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.credit-roll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 248, 232, 0.64);
  color: rgba(21, 21, 22, 0.58);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.credit-roll:hover,
.credit-roll:focus-visible {
  color: var(--navy);
  background: rgba(255, 248, 232, 0.92);
}

.credit-roll:focus-visible {
  outline: 3px solid rgba(0, 167, 181, 0.32);
  outline-offset: 2px;
}

.credit-roll__dice {
  display: inline-block;
  transform-origin: 50% 58%;
}

.credit-roll.is-rolling .credit-roll__dice {
  animation: dice-roll 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes dice-roll {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  36% {
    transform: translateY(-5px) rotate(122deg);
  }

  72% {
    transform: translateY(1px) rotate(252deg);
  }

  100% {
    transform: translateY(0) rotate(360deg);
  }
}

@media (max-width: 920px) {
  .section--split {
    grid-template-columns: 1fr;
  }

  .section__intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 620px;
    align-items: end;
  }

  .hero__shade {
    background:
      radial-gradient(ellipse 420px 280px at 24% 76%, rgba(12, 24, 45, 0.7), transparent 76%),
      linear-gradient(0deg, rgba(12, 24, 45, 0.92), rgba(12, 24, 45, 0.22) 68%),
      linear-gradient(90deg, rgba(12, 24, 45, 0.78), rgba(12, 24, 45, 0.18));
  }

  .hero__ribbon {
    display: none;
  }

  .hero__content {
    padding-bottom: 78px;
  }

  .hero .eyebrow {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  h1 {
    max-width: 92vw;
    margin-bottom: 12px;
    font-size: clamp(2.15rem, 11.5vw, 3.75rem);
    text-shadow: 3px 3px 0 rgba(21, 21, 22, 0.72), 5px 5px 0 rgba(242, 71, 56, 0.9);
  }

  .hero__copy {
    max-width: 92vw;
    margin-bottom: 0;
    font-size: 1rem;
  }

  .victory,
  .team-grid,
  .gallery-grid,
  .section__title {
    grid-template-columns: 1fr;
  }

  .section__title {
    display: grid;
  }

  .bracket {
    padding-top: 8px;
  }

  .play-order__matches {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .lightbox__media {
    min-height: 44vh;
  }

  .lightbox__nav {
    top: auto;
    bottom: 2px;
  }

  .lightbox__details {
    padding-bottom: 58px;
  }

  .phase-divider {
    display: grid;
    gap: 4px;
  }

  .phase-divider strong {
    text-align: left;
  }

  .play-order__header {
    padding: 9px 12px;
  }

  .play-order__header h3 {
    font-size: 1rem;
  }

  .match {
    padding: 14px;
  }

  .score-row {
    min-height: 42px;
  }

  .team-chip {
    font-size: 0.9rem;
  }

  .score-input {
    height: 32px;
  }

  .champion-card {
    padding: 15px;
  }

  .results-table {
    min-width: 520px;
  }

  .results-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 168px;
    min-width: 168px;
    background:
      linear-gradient(rgba(255, 253, 247, 0.86), rgba(255, 253, 247, 0.86)),
      var(--paper);
    box-shadow: 2px 0 0 rgba(21, 21, 22, 0.08);
  }

  .results-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 168px;
    min-width: 168px;
    box-shadow: 2px 0 0 rgba(21, 21, 22, 0.08);
  }

  .victory {
    padding-top: 48px;
  }

  .victory__visual {
    width: min(100%, 520px);
    padding: 15px;
  }

  .victory__message {
    overflow: clip;
  }

  .victory__signatures {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px 18px;
    width: 100%;
    min-height: 0;
    padding: 0 8px;
  }

  .victory__signature {
    position: static;
    flex: 0 1 auto;
    max-width: min(100%, 15ch);
    font-size: clamp(1.2rem, 6.8vw, 1.65rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
  }

  .victory__signature:nth-child(n) {
    transform: none;
  }

  .section__title {
    display: grid;
    align-items: start;
  }

  .controls,
  .section__actions {
    align-items: stretch;
  }

  .button {
    flex: 1 1 160px;
    min-height: 42px;
    padding: 9px 12px;
    text-align: center;
  }

  .site-credit {
    gap: 40px;
    padding: 88px 16px 64px;
  }

  .service-note {
    max-width: 20ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image,
  .hero__image--still {
    animation: none;
    transition: none;
  }

}
