:root {
  --ink: #17201d;
  --muted: #66706b;
  --paper: #f5f2e9;
  --paper-deep: #e9e4d7;
  --white: #fffdf8;
  --on-dark: #fffdf8;
  --forest: #10241e;
  --forest-soft: #1a382f;
  --forest-light: #285748;
  --gold: #d6a84c;
  --gold-light: #f0ce7b;
  --line: rgba(23, 32, 29, 0.14);
  --danger: #9e3f36;
  --success: #24634e;
  --shadow: 0 20px 50px rgba(28, 38, 34, 0.11);
  --shadow-soft: 0 8px 26px rgba(28, 38, 34, 0.08);
  --radius: 22px;
  --radius-small: 13px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 15%, rgba(214, 168, 76, 0.08), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  color: var(--gold-light);
  background: var(--forest);
  box-shadow: 0 7px 17px rgba(16, 36, 30, 0.18);
  font-family: Georgia, serif;
  font-size: 25px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(14px);
}

.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--on-dark);
  background: var(--forest);
}

.main-nav .nav-admin {
  color: var(--forest-light);
}

main {
  min-height: calc(100vh - 190px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 615px;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--forest);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(214, 168, 76, 0.13), transparent 27rem),
    linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, 0.025) 48%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 660px);
  margin-left: max(20px, calc((100vw - var(--max-width)) / 2));
  padding: 78px 50px 92px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--forest-light);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(214, 168, 76, 0.13);
}

.hero h1,
.page-hero h1,
.admin-header h1,
.auth-card h1,
.error-page h1 {
  margin: 20px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--forest);
  background: var(--gold-light);
  box-shadow: 0 8px 22px rgba(214, 168, 76, 0.17);
}

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--on-dark);
  background: transparent;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.07);
}

.button-on-dark {
  white-space: nowrap;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
}

.button-full {
  width: 100%;
}

.button-quiet {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.hero-board {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: #0b1b16;
}

.board-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(214, 168, 76, 0.14);
  filter: blur(75px);
}

.chessboard {
  position: relative;
  display: grid;
  width: min(36vw, 500px);
  aspect-ratio: 1;
  grid-template-columns: repeat(8, 1fr);
  overflow: hidden;
  border: 1px solid rgba(240, 206, 123, 0.24);
  border-radius: 5px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(-5deg);
}

.chessboard span {
  background: #d8c8a6;
}

.chessboard span:nth-child(16n + 2),
.chessboard span:nth-child(16n + 4),
.chessboard span:nth-child(16n + 6),
.chessboard span:nth-child(16n + 8),
.chessboard span:nth-child(16n + 9),
.chessboard span:nth-child(16n + 11),
.chessboard span:nth-child(16n + 13),
.chessboard span:nth-child(16n + 15) {
  background: #24483c;
}

.hero-king,
.hero-knight {
  position: absolute;
  display: grid;
  width: 12.5%;
  aspect-ratio: 1;
  place-items: center;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  text-shadow: 0 10px 16px rgba(0, 0, 0, 0.23);
}

.hero-king {
  right: 25%;
  bottom: 12.5%;
  color: #14271f;
}

.hero-knight {
  top: 25%;
  left: 37.5%;
  color: #fff4d9;
}

.board-caption {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.status-strip {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(calc(100% - 40px), 1040px);
  grid-template-columns: 1.25fr 0.8fr 1fr;
  margin: -42px auto 0;
  border: 1px solid rgba(23, 32, 29, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.status-strip > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 27px 30px;
}

.status-strip > div + div {
  border-left: 1px solid var(--line);
}

.meta-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-strip strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-strip small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 86px 0 20px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 28px;
}

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

.section-heading h2,
.day-heading h2,
.admin-stage-heading h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.text-link {
  color: var(--forest-light);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.match-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.match-card-top,
.match-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.match-card-top {
  border-bottom: 1px solid var(--line);
}

.match-card-top span:first-child {
  color: var(--forest-light);
}

.match-card-bottom {
  border-top: 1px solid var(--line);
}

.match-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 142px;
  padding: 25px 28px;
}

.player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 600;
}

.player:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.piece {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
}

.piece-white {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #f6f1e5;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.piece-black {
  color: var(--gold-light);
  background: var(--forest);
}

.versus {
  color: #929a96;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.color-legend {
  font-size: 9px;
}

.result-score {
  display: inline-flex;
  min-width: 54px;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--on-dark);
  background: var(--forest);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.result-scheduled {
  color: var(--muted);
  background: var(--paper-deep);
}

.result-postponed {
  color: #744a11;
  background: #f7e4b9;
}

.result-not_played {
  color: var(--muted);
  background: var(--paper-deep);
}

.status-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.status-upcoming {
  color: var(--forest-light);
  background: #e1ede6;
}

.status-postponed {
  color: #744a11;
  background: #f7e4b9;
}

.status-muted {
  color: var(--muted);
  background: var(--paper-deep);
}

.leader-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
  color: var(--on-dark);
  background: var(--forest);
  box-shadow: var(--shadow);
}

.leader-card::after {
  position: absolute;
  top: -95px;
  right: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(240, 206, 123, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(240, 206, 123, 0.025), 0 0 0 70px rgba(240, 206, 123, 0.018);
  content: "";
}

.leader-card .meta-label {
  color: rgba(255, 255, 255, 0.55);
}

.leader-card > strong {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  font-family: Georgia, serif;
  font-size: 36px;
}

.leader-crown {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 15px;
  color: var(--forest);
  background: var(--gold-light);
  font-size: 31px;
}

.leader-score {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.leader-score b {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 0.85;
}

.leader-score span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
}

.leader-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.leader-card a {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 25px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tie-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(214, 168, 76, 0.35);
  border-radius: 999px;
  color: var(--gold-light);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-section {
  padding-bottom: 96px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.match-card-compact .match-players {
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 150px;
  padding: 21px;
}

.match-card-compact .player,
.match-card-compact .player:last-child {
  flex-direction: row;
  text-align: left;
  font-size: 17px;
}

.match-card-compact .piece {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  font-size: 23px;
}

.match-card-compact .versus {
  display: none;
}

.empty-card,
.empty-inline {
  display: grid;
  min-height: 206px;
  place-items: center;
  padding: 30px;
  border: 1px dashed rgba(23, 32, 29, 0.2);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 253, 248, 0.55);
}

.empty-card > span {
  color: var(--forest-light);
  font-size: 36px;
}

.empty-card h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 23px;
}

.empty-card p {
  margin: 0;
}

.empty-inline {
  min-height: 100px;
}

.page-hero {
  padding: 86px max(20px, calc((100vw - var(--max-width)) / 2)) 78px;
  color: var(--on-dark);
  background:
    radial-gradient(circle at 82% 20%, rgba(214, 168, 76, 0.16), transparent 26rem),
    var(--forest);
}

.page-hero h1 {
  margin-bottom: 17px;
  font-size: clamp(45px, 5vw, 67px);
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 17px;
}

.standings-section {
  padding-bottom: 92px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.standings-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.standings-table thead th {
  padding-top: 15px;
  padding-bottom: 15px;
  color: var(--muted);
  background: #f0ede4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-table abbr {
  text-decoration: none;
}

.standings-table tbody tr:last-child th,
.standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.standings-table .player-column {
  min-width: 190px;
  text-align: left;
}

.standings-table tbody .player-column {
  position: relative;
  font-family: Georgia, serif;
  font-size: 20px;
}

.seed-label {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-number {
  display: inline-grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.rank-crown {
  margin-left: 4px;
  color: var(--gold);
  font-size: 18px;
}

.rank-leader {
  background: rgba(214, 168, 76, 0.085);
}

.rank-leader .rank-number {
  border-color: var(--forest);
  color: var(--gold-light);
  background: var(--forest);
}

.rank-tied .player-column .tie-pill {
  margin-left: 7px;
  color: #815f1f;
}

.points-cell {
  color: var(--forest-light);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.qualification-note,
.finals-preview,
.admin-help {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 22px 25px;
  border: 1px solid rgba(40, 87, 72, 0.17);
  border-radius: var(--radius-small);
  color: var(--forest);
  background: #e4eee8;
}

.qualification-icon,
.finals-preview > span {
  font-size: 30px;
}

.qualification-note strong,
.finals-preview strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.qualification-note p,
.finals-preview p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rules-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 253, 248, 0.7);
}

.rules-card summary {
  padding: 20px 23px;
  cursor: pointer;
  font-weight: 800;
}

.rules-card > div {
  padding: 0 23px 20px;
  color: var(--muted);
  font-size: 14px;
}

.rules-card ol {
  padding-left: 20px;
}

.schedule {
  padding-bottom: 100px;
}

.stage-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 17px 0 28px;
}

.stage-divider::before,
.stage-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.stage-divider span {
  color: var(--forest-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stage-divider small {
  color: var(--muted);
  font-size: 10px;
}

.day-group + .day-group {
  margin-top: 55px;
}

.day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.day-heading h2 {
  font-size: 34px;
}

.day-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.match-list .match-players {
  min-height: 120px;
}

.match-list .player {
  font-size: clamp(17px, 1.7vw, 22px);
}

.match-list .piece {
  width: 43px;
  height: 43px;
  font-size: 26px;
}

.finals-preview {
  margin-top: 64px;
  padding: 28px;
}

.auth-layout {
  display: grid;
  min-height: 700px;
  place-items: center;
  padding: 70px 20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(214, 168, 76, 0.15), transparent 26rem),
    var(--forest);
}

.auth-card {
  width: min(100%, 460px);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
}

.auth-piece {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 17px;
  color: var(--gold-light);
  background: var(--forest);
  font-size: 36px;
}

.auth-card h1 {
  margin: 10px 0 13px;
  font-size: 42px;
}

.auth-card > p {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  margin-top: 27px;
}

.auth-form label,
.result-form label,
.participant-fields label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(23, 32, 29, 0.2);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--white);
}

input:focus,
select:focus {
  border-color: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(40, 87, 72, 0.12);
}

.auth-form input {
  margin-bottom: 14px;
}

.inline-error {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 10px;
  color: #7c2e27;
  background: #f5dcd8;
  font-size: 13px;
  font-weight: 700;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 76px max(20px, calc((100vw - var(--max-width)) / 2)) 72px;
  color: var(--on-dark);
  background: var(--forest);
}

.admin-header h1 {
  margin: 13px 0 12px;
  font-size: clamp(42px, 5vw, 64px);
}

.admin-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.admin-summary {
  display: grid;
  width: min(calc(100% - 40px), 940px);
  grid-template-columns: repeat(3, 1fr);
  margin: -30px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-summary > div {
  display: flex;
  flex-direction: column;
  padding: 21px 25px;
}

.admin-summary > div + div {
  border-left: 1px solid var(--line);
}

.admin-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-summary strong {
  margin-top: 4px;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-summary small {
  color: var(--muted);
  font-size: 11px;
}

.admin-content {
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
  padding: 58px 0 100px;
}

.admin-help {
  align-items: flex-start;
  margin: 0 0 48px;
  padding: 17px 20px;
}

.admin-help strong {
  white-space: nowrap;
}

.admin-help p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-stage + .admin-stage {
  margin-top: 58px;
}

.admin-stage-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 17px;
}

.admin-stage-heading h2 {
  font-size: 34px;
}

.admin-stage-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-match-list {
  display: grid;
  gap: 12px;
}

.admin-match {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(28, 38, 34, 0.04);
  scroll-margin-top: 20px;
}

.admin-match:target {
  border-color: rgba(214, 168, 76, 0.75);
  box-shadow: 0 0 0 4px rgba(214, 168, 76, 0.12);
}

.admin-match-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.admin-match-identity > div {
  display: flex;
  flex-direction: column;
}

.admin-match-identity strong {
  margin-top: 3px;
  font-family: Georgia, serif;
  font-size: 19px;
}

.admin-sequence {
  color: var(--forest-light);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-players {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 17px 0;
  padding: 13px 15px;
  border-radius: 11px;
  background: #f2efe7;
  font-family: Georgia, serif;
  font-weight: 700;
}

.admin-players span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-players small {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.piece-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.piece-dot-white {
  border: 1px solid rgba(23, 32, 29, 0.24);
  background: var(--white);
}

.piece-dot-black {
  background: var(--forest);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.participant-editor {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.participant-editor summary {
  padding-top: 15px;
  cursor: pointer;
  color: var(--forest-light);
  font-size: 12px;
  font-weight: 800;
}

.participant-editor form {
  padding-top: 16px;
}

.participant-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.flash-stack {
  position: fixed;
  z-index: 100;
  top: 86px;
  right: 20px;
  display: grid;
  width: min(calc(100% - 40px), 410px);
  gap: 8px;
}

.flash {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--on-dark);
  background: var(--forest);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  animation: flash-in 220ms ease-out;
}

.flash-error {
  background: var(--danger);
}

.flash-success {
  background: var(--success);
}

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

.error-page {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.error-page > span {
  color: var(--forest-light);
  font-size: 50px;
}

.error-page > strong {
  margin-top: 5px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.error-page h1 {
  margin: 8px 0;
  font-size: 44px;
}

.error-page p {
  margin: 0 0 25px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  padding: 31px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.footer-piece {
  color: var(--forest-light);
  font-size: 19px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a {
  justify-self: end;
  text-decoration: none;
}

.site-footer > a:hover {
  color: var(--forest-light);
  text-decoration: underline;
}

.match-card-next {
  border-color: rgba(214, 168, 76, 0.7);
  box-shadow: 0 0 0 3px rgba(214, 168, 76, 0.11), var(--shadow-soft);
}

.match-card-top > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.next-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--gold-light);
  font-family: Inter, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.match-filters {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin: -25px 0 54px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.match-filters fieldset {
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
}

.match-filters legend,
.player-filter {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.filter-pills label {
  cursor: pointer;
}

.filter-pills input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.filter-pills span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  transition: 150ms ease;
}

.filter-pills input:checked + span {
  border-color: var(--forest);
  color: var(--on-dark);
  background: var(--forest);
}

.filter-pills input:focus-visible + span {
  outline: 3px solid rgba(214, 168, 76, 0.45);
  outline-offset: 2px;
}

.player-filter {
  display: grid;
  width: min(230px, 30%);
  gap: 8px;
}

.player-filter select {
  min-height: 40px;
  font-size: 12px;
  text-transform: none;
}

.filtered-empty {
  margin-bottom: 54px;
}

.finals-section,
.stats-section {
  padding-bottom: 100px;
}

.finals-hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(214, 168, 76, 0.2), transparent 27rem),
    linear-gradient(135deg, #10241e, #0a1814);
}

.champion-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: -28px 0 54px;
  padding: 25px 30px;
  border: 1px solid rgba(214, 168, 76, 0.42);
  border-radius: var(--radius);
  color: var(--on-dark);
  background:
    radial-gradient(circle at 85%, rgba(214, 168, 76, 0.17), transparent 18rem),
    var(--forest);
  box-shadow: var(--shadow);
}

.champion-banner > span {
  display: grid;
  width: 59px;
  height: 59px;
  place-items: center;
  border-radius: 17px;
  color: var(--forest);
  background: var(--gold-light);
  font-size: 35px;
}

.champion-banner div {
  display: flex;
  flex-direction: column;
}

.champion-banner small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.champion-banner strong {
  margin-top: 3px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.champion-banner p {
  margin: 0;
  color: var(--gold-light);
  font-size: 13px;
}

.bracket {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.bracket-column {
  display: grid;
  gap: 16px;
}

.bracket-column-placement {
  padding-top: 92px;
}

.bracket-column-final {
  padding-top: 36px;
}

.bracket-column-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.bracket-column-title > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest-light);
  font-size: 9px;
  font-weight: 900;
}

.bracket-column-title h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.bracket-game {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.bracket-game-next {
  border-color: rgba(214, 168, 76, 0.75);
  box-shadow: 0 0 0 3px rgba(214, 168, 76, 0.1), var(--shadow-soft);
}

.bracket-game-head,
.bracket-game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: var(--muted);
  background: #f0ede4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bracket-game-head b {
  color: var(--forest-light);
  font-size: 8px;
}

.bracket-player {
  display: grid;
  min-height: 53px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.bracket-player + .bracket-player {
  border-top: 1px solid var(--line);
}

.bracket-player strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-player > span:last-child {
  color: var(--forest-light);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.bracket-winner {
  color: var(--forest);
  background: rgba(214, 168, 76, 0.1);
}

.color-chip {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 8px;
  font-weight: 900;
}

.color-chip-white {
  border: 1px solid var(--line);
  background: var(--paper);
}

.color-chip-black {
  color: var(--gold-light);
  background: var(--forest);
}

.bracket-game-foot {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  background: transparent;
  text-transform: none;
}

.bracket-game-foot small {
  overflow: hidden;
  max-width: 55%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-placeholder {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.bracket-placeholder span {
  color: var(--forest-light);
  font-size: 32px;
}

.series-score {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 14px;
  color: var(--on-dark);
  background: var(--forest);
}

.series-score span {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.series-score strong {
  color: var(--gold-light);
  font-size: 13px;
}

.bracket-waiting {
  display: grid;
  max-width: 760px;
  place-items: center;
  margin: -28px auto 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.bracket-waiting > span {
  color: var(--forest-light);
  font-size: 47px;
}

.bracket-waiting h2 {
  margin: 9px 0;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.bracket-waiting > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.seed-preview {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 30px 0;
}

.seed-preview div {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: var(--paper);
}

.seed-preview span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 50%;
  color: var(--gold-light);
  background: var(--forest);
  font-size: 10px;
  font-weight: 850;
}

.seed-preview strong {
  overflow: hidden;
  width: 100%;
  font-family: Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-preview small {
  color: var(--muted);
  font-size: 10px;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -28px;
}

.stats-overview article {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.stats-overview small,
.fun-stat small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-overview strong {
  margin: 5px 0 2px;
  color: var(--forest-light);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 500;
}

.stats-overview span {
  color: var(--muted);
  font-size: 11px;
}

.stats-heading {
  margin-top: 70px;
}

.fun-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fun-stat {
  position: relative;
  display: flex;
  min-height: 215px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 18px;
  color: var(--on-dark);
  background: var(--forest);
}

.fun-stat::after {
  position: absolute;
  top: -35px;
  right: -28px;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(214, 168, 76, 0.16);
  border-radius: 50%;
  content: "";
}

.fun-stat-piece {
  position: absolute;
  top: 16px;
  right: 21px;
  color: rgba(240, 206, 123, 0.28);
  font-family: Georgia, serif;
  font-size: 54px;
}

.fun-stat small {
  position: relative;
  color: rgba(255, 255, 255, 0.5);
}

.fun-stat strong {
  position: relative;
  margin: 8px 0 0;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.15;
}

.fun-stat p {
  position: relative;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.stats-empty-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.stats-empty-note span {
  color: var(--forest-light);
  font-size: 28px;
}

.stats-empty-note p {
  margin: 0;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(28, 38, 34, 0.04);
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.admin-panel-heading > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--gold-light);
  background: var(--forest);
  font-size: 24px;
}

.admin-panel-heading small,
.admin-final-generator small,
.danger-zone small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-panel-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 21px;
}

.stacked-form {
  display: grid;
  gap: 12px;
}

.stacked-form label,
.danger-zone label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stacked-form input,
.stacked-form select,
.danger-zone input {
  margin-top: 5px;
  min-height: 41px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.admin-stage-heading > div,
.admin-match-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-match-badges {
  align-items: flex-end;
}

.match-details-editor .participant-fields {
  grid-template-columns: minmax(130px, 0.3fr) 1fr;
}

.next-match-form {
  padding-top: 8px !important;
}

.admin-final-generator,
.danger-zone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 55px;
  padding: 25px;
  border-radius: var(--radius);
}

.admin-final-generator {
  border: 1px solid rgba(40, 87, 72, 0.2);
  background: #e4eee8;
}

.admin-final-generator > span {
  color: var(--forest-light);
  font-size: 38px;
}

.admin-final-generator h2,
.danger-zone h2 {
  margin: 2px 0 5px;
  font-family: Georgia, serif;
  font-size: 25px;
}

.admin-final-generator p,
.danger-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.danger-zone {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  border: 1px solid rgba(158, 63, 54, 0.25);
  background: #f4e5e1;
}

.danger-zone form {
  display: grid;
  gap: 12px;
}

.confirm-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.confirm-check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--danger);
}

.button-danger {
  color: var(--on-dark);
  background: var(--danger);
}

.button-danger:hover {
  background: #83332c;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(214, 168, 76, 0.58);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 0.75fr;
  }

  .hero-copy {
    padding-right: 25px;
  }

  .chessboard {
    width: 44vw;
  }

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

  .leader-card {
    min-height: 340px;
  }

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

  .results-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .match-list {
    grid-template-columns: 1fr;
  }

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

  .bracket-column-final {
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .bracket-column-final .bracket-game,
  .bracket-column-final .series-score {
    width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
  }

  .stats-overview,
  .fun-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-settings-grid .admin-panel:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: min(calc(100% - 26px), var(--max-width));
    flex-direction: column;
    gap: 14px;
    padding: 15px 0 13px;
  }

  .brand {
    align-self: flex-start;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    font-size: 22px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .main-nav {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    text-align: center;
    white-space: nowrap;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 68px 22px 74px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-board {
    display: none;
  }

  .status-strip {
    width: calc(100% - 26px);
    grid-template-columns: 1fr;
    margin-top: -25px;
  }

  .status-strip > div {
    padding: 19px 21px;
  }

  .status-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .content-section {
    width: calc(100% - 26px);
    padding-top: 65px;
  }

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

  .match-players {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 22px;
  }

  .player,
  .player:last-child {
    flex-direction: row;
    text-align: left;
  }

  .versus {
    display: none;
  }

  .piece {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 26px;
  }

  .match-card-top,
  .match-card-bottom {
    padding-right: 17px;
    padding-left: 17px;
  }

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

  .results-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .page-hero {
    padding: 65px 22px 60px;
  }

  .page-hero h1 {
    font-size: 45px;
  }

  .standings-section {
    padding-top: 45px;
  }

  .qualification-note,
  .finals-preview {
    align-items: flex-start;
  }

  .stage-divider {
    margin-top: 0;
  }

  .stage-divider small {
    display: none;
  }

  .day-group + .day-group {
    margin-top: 43px;
  }

  .match-filters {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: -32px;
    margin-bottom: 42px;
  }

  .player-filter {
    width: 100%;
  }

  .filter-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-pills span {
    width: 100%;
    justify-content: center;
  }

  .match-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .match-card-top > span:last-child {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .champion-banner {
    grid-template-columns: auto 1fr;
    margin-top: -35px;
    padding: 21px;
  }

  .champion-banner p {
    grid-column: 1 / -1;
  }

  .bracket {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .bracket-column-placement,
  .bracket-column-final {
    grid-column: auto;
    padding-top: 0;
  }

  .bracket-column-final .bracket-game,
  .bracket-column-final .series-score {
    width: 100%;
  }

  .bracket-waiting {
    margin-top: -35px;
    padding: 30px 18px;
  }

  .seed-preview {
    grid-template-columns: 1fr 1fr;
  }

  .stats-overview,
  .fun-stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-overview {
    margin-top: -35px;
  }

  .stats-overview article {
    min-height: 125px;
  }

  .auth-layout {
    min-height: 600px;
    padding: 40px 13px;
  }

  .auth-card {
    padding: 30px 23px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 58px 20px 60px;
  }

  .admin-summary {
    width: calc(100% - 26px);
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .admin-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .admin-content {
    width: calc(100% - 26px);
    padding-top: 44px;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-grid .admin-panel:last-child {
    grid-column: auto;
  }

  .admin-help {
    flex-direction: column;
    gap: 5px;
  }

  .admin-players {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-players b {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .participant-fields {
    grid-template-columns: 1fr;
  }

  .match-details-editor .participant-fields {
    grid-template-columns: 1fr;
  }

  .admin-match-identity {
    flex-direction: column;
  }

  .admin-match-badges {
    align-items: flex-start;
    flex-direction: row !important;
  }

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

  .admin-final-generator,
  .danger-zone {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer > a {
    justify-self: center;
  }
}

@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;
  }
}
