:root {
  --bg: #1b1941;
  --surface: #303b6a;
  --surface-deep: #171b3d;
  --surface-soft: #3d4b80;
  --line: #7280ae;
  --line-soft: #4a5989;
  --ink: #fbfbff;
  --muted: #c3cada;
  --cyan: #2bdce6;
  --pink: #f13da6;
  --yellow: #f7d957;
  --green: #35d59a;
  --red: #ef5d79;
  --purple: #8d63ff;
  --orange: #ff914d;
  --pixel: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  background:
    radial-gradient(circle at 14% 12%, rgba(43, 220, 230, .22), transparent 31%),
    radial-gradient(circle at 88% 42%, rgba(241, 61, 166, .18), transparent 34%),
    linear-gradient(rgba(93, 112, 183, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 112, 183, .11) 1px, transparent 1px),
    var(--bg);
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(105px);
  opacity: .24;
  pointer-events: none;
}

.ambient-one {
  top: 170px;
  left: -150px;
  background: var(--cyan);
}

.ambient-two {
  top: 430px;
  right: -160px;
  background: var(--pink);
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  width: min(980px, calc(100% - 40px));
  min-height: 150px;
  margin-top: 20px;
  padding: 18px 28px 16px;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 15px;
  border: 4px solid var(--cyan);
  background:
    linear-gradient(90deg, rgba(241, 61, 166, .18), transparent 28%, transparent 72%, rgba(43, 220, 230, .18)),
    linear-gradient(180deg, #41306f, #292650);
  box-shadow:
    0 0 0 4px #161333,
    0 0 0 7px var(--pink),
    0 0 28px rgba(43, 220, 230, .55),
    inset 0 0 28px rgba(241, 61, 166, .16);
  border-radius: 8px 8px 3px 3px;
}

.site-header::before,
.site-header::after {
  position: absolute;
  top: 13px;
  bottom: 13px;
  width: 9px;
  background: linear-gradient(var(--pink), var(--yellow), var(--cyan));
  box-shadow: 0 0 13px currentColor;
  content: "";
}

.site-header::before {
  left: -16px;
  color: var(--pink);
  transform: skewY(-13deg);
}

.site-header::after {
  right: -16px;
  color: var(--cyan);
  transform: skewY(13deg);
}

.brand {
  display: grid;
  grid-template-columns: 62px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 15px;
  color: var(--yellow);
  font-family: var(--pixel);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
}

.brand::after {
  grid-column: 2;
  grid-row: 2;
  color: var(--cyan);
  content: "HIGH SCORE ARCADE";
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .42em;
  text-shadow: 0 0 9px rgba(43, 220, 230, .9);
}

.brand > span {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(34px, 5.2vw, 54px);
  letter-spacing: .09em;
  line-height: .95;
  text-shadow:
    4px 3px 0 var(--pink),
    -3px -2px 0 var(--cyan),
    0 0 14px rgba(247, 217, 87, .95),
    0 0 30px rgba(241, 61, 166, .7);
}

.brand-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 62px;
  height: 62px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 9px rgba(43, 220, 230, .95));
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 2px solid #5f4f96;
  background: #17162f;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .45);
}

.site-header nav a {
  position: relative;
  padding: 9px 16px;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: #14152b;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(43, 220, 230, .8);
}

.page-shell {
  padding: 44px 0 58px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Accueil : un seul écran de jeu */
.arcade-screen {
  width: min(920px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 9px solid #372c65;
  border-radius: 12px 12px 28px 28px;
  background: var(--surface);
  box-shadow:
    0 0 0 3px var(--cyan),
    0 0 0 7px #181534,
    0 0 0 10px var(--pink),
    0 0 32px rgba(43, 220, 230, .62),
    0 32px 75px rgba(9, 7, 28, .45),
    inset 0 0 35px rgba(141, 99, 255, .16);
}

.arcade-screen-top {
  min-height: 52px;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid var(--pink);
  background:
    linear-gradient(90deg, rgba(43, 220, 230, .13), transparent 38%, rgba(241, 61, 166, .14)),
    var(--surface-deep);
  box-shadow: 0 5px 18px rgba(241, 61, 166, .22);
}

.arcade-screen-top > span,
.arcade-countdown > span {
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.arcade-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.arcade-countdown strong {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .04em;
  text-shadow: 0 0 10px rgba(247, 217, 87, .8);
}

.game-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 35px 24px 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(141, 99, 255, .17), transparent 64%);
}

.game-intro h1 {
  margin: 0;
  color: #fff9d6;
  font-family: var(--pixel);
  font-size: clamp(38px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: .055em;
  line-height: .95;
  text-shadow:
    4px 2px 0 var(--pink),
    -3px -2px 0 var(--cyan),
    0 0 16px rgba(247, 217, 87, .75),
    0 0 30px rgba(141, 99, 255, .55);
  text-transform: uppercase;
}

.game-intro p {
  max-width: 650px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.scoreboard {
  margin: 0 40px;
  border: 2px solid var(--cyan);
  background: #151b3b;
  box-shadow:
    0 0 17px rgba(43, 220, 230, .34),
    inset 0 0 38px rgba(43, 220, 230, .07);
}

.scoreboard-labels,
.ranking-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
}

.scoreboard-labels {
  min-height: 30px;
  padding: 0 17px;
  color: #95a2bb;
  border-bottom: 2px solid var(--purple);
  font-family: var(--pixel);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scoreboard-labels span:last-child {
  text-align: right;
}

.ranking-list {
  display: grid;
}

.ranking-row {
  min-height: 62px;
  padding: 9px 17px;
  gap: 0;
  border-bottom: 1px solid #46578c;
  background: transparent;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row.is-first {
  border-left: 5px solid var(--yellow);
  background: linear-gradient(90deg, rgba(247, 217, 87, .17), rgba(241, 61, 166, .09));
  box-shadow: inset 10px 0 22px rgba(247, 217, 87, .06);
}

.ranking-row.is-placeholder {
  min-height: 48px;
  opacity: .35;
}

.rank-number,
.table-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #10182c;
  background: var(--cyan);
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(43, 220, 230, .52);
}

.is-first .rank-number,
.winner-row .table-rank {
  background: var(--yellow);
  box-shadow: 0 0 13px rgba(247, 217, 87, .72);
}

.rank-player {
  min-width: 0;
}

.rank-player strong,
.rank-player small {
  display: block;
  min-width: 0;
}

.rank-player strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rank-player small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.is-open-place .rank-player strong {
  color: var(--yellow);
  animation: arcade-blink 1.7s steps(2, end) infinite;
}

.player-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.player-link:hover {
  color: var(--cyan);
}

.player-link span {
  font-size: 9px;
}

.rank-amount,
.table-amount {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(247, 217, 87, .48);
}

.scoreboard-meta {
  min-height: 39px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 2px solid var(--purple);
  background: rgba(20, 23, 52, .72);
  font-size: 10px;
}

.scoreboard-meta strong {
  color: var(--yellow);
}

.scoreboard-meta a,
.text-link,
.pagination a,
.static-content a,
.owner-note a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.scoreboard-meta a:hover,
.text-link:hover,
.pagination a:hover,
.static-content a:hover,
.owner-note a:hover {
  text-decoration: underline;
}

.play-drawer {
  margin: 24px 40px 34px;
}

.play-drawer > summary {
  list-style: none;
}

.play-drawer > summary::-webkit-details-marker {
  display: none;
}

.play-trigger {
  min-height: 62px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #101327;
  background: linear-gradient(90deg, #ff38ad, #ff62ca 58%, #f13da6);
  box-shadow: 0 5px 0 #922066, 0 0 20px rgba(241, 61, 166, .58);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.play-trigger:hover {
  background: var(--yellow);
  box-shadow: 0 5px 0 #9a7e1e, 0 0 22px rgba(247, 217, 87, .62);
}

.play-trigger:active {
  box-shadow: 0 2px 0 #922066;
  transform: translateY(3px);
}

.play-trigger strong,
.play-trigger small {
  display: block;
}

.play-trigger strong {
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.play-trigger small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 750;
}

.play-arrow {
  font-family: var(--pixel);
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease;
}

.play-drawer[open] .play-arrow {
  transform: rotate(180deg);
}

.play-drawer[open] .play-trigger {
  box-shadow: none;
}

.join-panel {
  padding: 23px;
  border: 2px solid var(--pink);
  border-top: 0;
  background: var(--surface-deep);
  box-shadow: inset 0 0 28px rgba(141, 99, 255, .12);
}

.join-heading {
  margin-bottom: 18px;
  padding-bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.join-heading h2 {
  margin: 0;
  font-family: var(--pixel);
  font-size: 19px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.join-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.join-form {
  display: grid;
  gap: 13px;
}

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

.join-form label > span,
.inline-admin-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.join-form label > span small {
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 650;
  text-transform: lowercase;
}

.join-form input,
.season-picker select,
.inline-admin-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  border: 2px solid #59699e;
  border-radius: 0;
  background: #1b2348;
}

.join-form input::placeholder,
.inline-admin-form input::placeholder {
  color: #8491aa;
}

.join-form input:hover,
.join-form input:focus,
.season-picker select:focus,
.inline-admin-form input:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 12px rgba(43, 220, 230, .3);
}

.amount-input {
  display: grid;
  grid-template-columns: 1fr 48px;
}

.amount-input input {
  border-right: 0;
}

.amount-input > span {
  display: grid;
  place-items: center;
  color: #11162a;
  background: var(--yellow);
  font-family: var(--pixel);
  font-weight: 900;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

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

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.check-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 2px solid #59699e;
  background: #1b2348;
  cursor: pointer;
}

.check-line input:checked {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px #1b2348, 0 0 10px rgba(43, 220, 230, .55);
}

.check-line span {
  margin: 0 !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.check-line a {
  color: var(--cyan);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 0;
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-button {
  color: #11162a;
  background: var(--pink);
  box-shadow: 0 0 15px rgba(241, 61, 166, .42);
}

.primary-button:hover {
  background: var(--yellow);
}

.primary-button:disabled {
  opacity: .62;
  cursor: wait;
}

.secondary-button {
  color: #11162a;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(43, 220, 230, .36);
}

.secondary-button:hover {
  background: var(--yellow);
}

.payment-button {
  margin-top: 2px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.notice {
  margin-bottom: 15px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
  border: 1px solid var(--cyan);
  background: #183247;
  font-size: 12px;
  line-height: 1.45;
}

.notice-error {
  border-color: var(--red);
  background: #3a1d2b;
}

.notice-success {
  border-color: var(--green);
  background: #18382d;
}

.compact-guide {
  position: relative;
  width: min(850px, calc(100% - 34px));
  margin: 16px auto 0;
  padding: 24px 48px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  border: 3px solid var(--cyan);
  background:
    linear-gradient(90deg, rgba(241, 61, 166, .21), transparent 34%, rgba(43, 220, 230, .18)),
    #41306d;
  box-shadow:
    0 0 0 4px #181534,
    0 0 0 7px var(--purple),
    0 0 24px rgba(141, 99, 255, .55),
    inset 0 0 22px rgba(43, 220, 230, .12);
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}

.compact-guide::before,
.compact-guide::after {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 3px solid #171633;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.compact-guide::before {
  left: 20px;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(241, 61, 166, .95);
}

.compact-guide::after {
  right: 20px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(247, 217, 87, .95);
}

.compact-heading h2,
.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.compact-guide .compact-heading h2 {
  color: var(--yellow);
  font-size: 12px;
  text-shadow: 0 0 9px rgba(247, 217, 87, .7);
  white-space: nowrap;
}

.compact-guide ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
}

.compact-guide li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-guide li > span {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #10182c;
  background: var(--cyan);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 0 11px rgba(43, 220, 230, .68);
}

.compact-guide li strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.35;
}

.hall-section {
  width: min(920px, 100%);
  margin: 30px auto 0;
}

.hall-section .section-heading {
  margin-bottom: 12px;
}

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

.hall-grid article {
  padding: 14px;
  border: 2px solid var(--purple);
  background: var(--surface);
  box-shadow: 0 0 14px rgba(141, 99, 255, .2);
}

.hall-grid article > span,
.hall-grid article > strong,
.hall-grid article > small {
  display: block;
}

.hall-grid article > span,
.hall-grid article > small {
  color: var(--muted);
  font-size: 10px;
}

.hall-grid article > strong {
  margin: 6px 0;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  text-transform: uppercase;
}

/* Panneaux et pages secondaires */
.panel,
.result-card {
  border: 2px solid var(--purple);
  background:
    linear-gradient(135deg, rgba(43, 220, 230, .07), transparent 38%, rgba(241, 61, 166, .08)),
    var(--surface);
  box-shadow:
    0 0 0 3px #1b193d,
    0 0 18px rgba(141, 99, 255, .25),
    0 15px 40px rgba(9, 7, 28, .26);
}

.panel {
  padding: 23px;
}

.panel-heading {
  margin-bottom: 17px;
  padding-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-heading .eyebrow {
  margin-bottom: 4px;
}

.empty-state {
  min-height: 100px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--purple);
  background: var(--surface-deep);
}

.empty-state > span {
  margin-bottom: 7px;
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: 19px;
}

.empty-state strong {
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  text-transform: uppercase;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.secure-chip,
.participant-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  color: #10182c;
  background: var(--cyan);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-heading {
  width: min(880px, 100%);
  margin: 0 auto 19px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  border: 2px solid var(--cyan);
  background: linear-gradient(90deg, rgba(43, 220, 230, .12), rgba(141, 99, 255, .14), rgba(241, 61, 166, .12));
  box-shadow: 0 0 18px rgba(43, 220, 230, .22);
}

.page-heading h1,
.result-card h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--pixel);
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.page-heading h1 {
  font-size: clamp(29px, 5vw, 41px);
  line-height: 1.05;
  text-shadow: 3px 2px 0 rgba(241, 61, 166, .72), -2px -1px 0 rgba(43, 220, 230, .62);
}

.page-heading h1 span {
  color: var(--cyan);
}

.page-heading p {
  max-width: 610px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.small-heading {
  width: min(760px, 100%);
  margin-bottom: 17px;
}

.season-picker {
  flex: 0 0 245px;
}

.season-picker label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-picker select {
  cursor: pointer;
  box-shadow: 0 0 10px rgba(43, 220, 230, .14);
}

.archive-panel,
.admin-panel,
.admin-stats {
  width: min(960px, 100%);
  margin-inline: auto;
}

.participant-chip {
  background: var(--yellow);
}

.archive-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px rgba(43, 220, 230, .18);
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.archive-table th,
.archive-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

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

.archive-table th {
  color: var(--muted);
  background: var(--surface-deep);
  font-family: var(--pixel);
  font-size: 9px;
  text-transform: uppercase;
}

.archive-table tbody tr:hover {
  background: #2b3656;
}

.archive-table .winner-row {
  background: rgba(247, 217, 87, .055);
}

.archive-table td > strong,
.archive-table td > small {
  display: block;
}

.archive-table td > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.archive-table .player-link {
  color: var(--cyan);
}

.table-rank {
  width: 30px;
  height: 30px;
}

.table-amount {
  font-size: 13px;
}

.status-pill {
  color: var(--muted);
  background: var(--line-soft);
}

.status-leader {
  color: #10182c;
  background: var(--cyan);
}

.status-winner {
  color: #10182c;
  background: var(--yellow);
}

.pagination {
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: var(--muted);
  font-size: 11px;
}

.simple-rules {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 0;
}

.simple-rules > section {
  padding: 21px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.simple-rules > section:last-child {
  border-bottom: 0;
}

.simple-rules h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 14px;
  text-transform: uppercase;
}

.simple-rules p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rule-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #10182c;
  background: var(--cyan);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 0 11px rgba(43, 220, 230, .55);
}

.owner-note {
  width: min(760px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.static-content {
  width: min(760px, 100%);
  margin-inline: auto;
}

.compact-legal {
  padding: 25px 28px;
}

.compact-legal p {
  margin: 0;
  padding: 15px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
}

.compact-legal p:first-child {
  padding-top: 0;
}

.compact-legal p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.compact-legal .legal-lead {
  color: var(--ink);
  font-family: var(--pixel);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
}

.identity-list {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.identity-list div {
  padding: 12px 13px;
  border: 1px solid var(--line-soft);
  background: var(--surface-deep);
}

.identity-list dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-list dd {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.result-card {
  width: min(620px, 100%);
  margin: 44px auto;
  padding: 36px 30px;
  text-align: center;
}

.result-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  color: #10182c;
  background: var(--yellow);
  font-family: var(--pixel);
  font-size: 20px;
  font-weight: 900;
}

.result-success .result-icon {
  background: var(--green);
}

.result-error .result-icon,
.result-cancel .result-icon {
  background: var(--red);
}

.result-card h1 {
  font-size: clamp(23px, 4vw, 32px);
  line-height: 1.15;
}

.result-card p {
  max-width: 500px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.result-actions {
  margin-top: 23px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.loading-bar {
  width: min(340px, 100%);
  height: 7px;
  margin: 21px auto 0;
  overflow: hidden;
  background: var(--line-soft);
}

.loading-bar span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--cyan);
  animation: loading 1.4s linear infinite;
}

/* Administration */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  min-width: 0;
  padding: 15px;
  border: 2px solid var(--purple);
  background: var(--surface);
  box-shadow: 0 0 13px rgba(141, 99, 255, .2);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  display: block;
  margin: 6px 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-heading {
  width: min(960px, 100%);
}

.admin-heading form {
  margin: 0;
}

.admin-panel {
  margin-top: 14px;
}

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

.admin-item {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  border: 1px solid var(--line-soft);
  background: var(--surface-deep);
}

.admin-item h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-item code {
  color: var(--cyan);
  font-size: 9px;
}

.inline-admin-form {
  flex: 0 0 280px;
  display: grid;
  gap: 8px;
}

.error-text {
  color: var(--red) !important;
}

.site-footer {
  margin-bottom: 18px;
  padding: 21px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px 25px;
  border-top: 2px solid var(--purple);
}

.site-footer > div strong,
.site-footer > div span {
  display: block;
}

.site-footer > div strong {
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 12px;
}

.site-footer > div span,
.footer-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--cyan);
}

.footer-note {
  grid-column: 1 / -1;
}

@keyframes arcade-blink {
  0%, 75% { opacity: 1; }
  76%, 100% { opacity: .55; }
}

@keyframes loading {
  from { transform: translateX(-120%); }
  to { transform: translateX(390%); }
}

@media (max-width: 820px) {
  .scoreboard,
  .play-drawer {
    margin-right: 24px;
    margin-left: 24px;
  }

  .compact-guide {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 23px 46px;
  }

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

@media (max-width: 650px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    width: min(100% - 34px, 980px);
    min-height: 132px;
    margin-top: 16px;
    padding: 15px 20px 13px;
    gap: 11px;
  }

  .brand {
    grid-template-columns: 48px auto;
    column-gap: 11px;
  }

  .brand > span {
    font-size: clamp(28px, 8.6vw, 40px);
    text-shadow:
      3px 2px 0 var(--pink),
      -2px -2px 0 var(--cyan),
      0 0 12px rgba(247, 217, 87, .88);
  }

  .brand::after {
    font-size: 8px;
    letter-spacing: .3em;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
  }

  .site-header nav {
    gap: 0;
  }

  .site-header nav a {
    padding: 8px 10px;
    font-size: 8px;
  }

  .page-shell {
    padding-top: 34px;
  }

  .arcade-screen-top {
    padding-inline: 15px;
  }

  .arcade-screen-top > span {
    max-width: 45%;
  }

  .arcade-countdown {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
  }

  .game-intro {
    padding: 26px 17px 21px;
  }

  .game-intro h1 {
    font-size: clamp(34px, 11vw, 45px);
  }

  .game-intro p {
    font-size: 13px;
  }

  .scoreboard,
  .play-drawer {
    margin-right: 14px;
    margin-left: 14px;
  }

  .scoreboard-labels,
  .ranking-row {
    grid-template-columns: 51px minmax(0, 1fr) auto;
  }

  .scoreboard-labels,
  .ranking-row {
    padding-right: 10px;
    padding-left: 10px;
  }

  .rank-number {
    width: 31px;
    height: 31px;
  }

  .rank-player strong {
    font-size: 11px;
  }

  .rank-player small {
    font-size: 9px;
  }

  .rank-amount {
    font-size: 12px;
  }

  .scoreboard-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .play-trigger {
    min-height: 58px;
    padding: 11px 13px;
  }

  .play-trigger strong {
    font-size: 11px;
  }

  .play-trigger small {
    font-size: 9px;
  }

  .join-panel,
  .panel {
    padding: 17px;
  }

  .join-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .field-pair,
  .consent-list {
    grid-template-columns: 1fr;
  }

  .compact-guide {
    width: calc(100% - 28px);
    padding: 22px 32px;
  }

  .compact-guide::before,
  .compact-guide::after {
    display: none;
  }

  .compact-guide ol {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .page-heading {
    padding-inline: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .season-picker {
    flex: auto;
    width: 100%;
  }

  .simple-rules > section {
    padding: 17px;
  }

  .compact-legal {
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .result-actions {
    flex-direction: column;
  }

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

  .admin-item {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-admin-form {
    flex: auto;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .site-header {
    width: calc(100% - 26px);
    border-width: 3px;
  }

  .site-header::before,
  .site-header::after {
    display: none;
  }

  .brand {
    grid-template-columns: 40px auto;
    column-gap: 8px;
  }

  .brand > span {
    display: block;
    font-size: clamp(24px, 9.5vw, 32px);
    letter-spacing: .05em;
  }

  .brand::after {
    font-size: 6px;
    letter-spacing: .18em;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .site-header nav a {
    padding: 7px 6px;
    font-size: 7px;
  }

  .arcade-screen-top > span {
    font-size: 8px;
  }

  .arcade-countdown > span {
    display: none;
  }

  .game-intro h1 {
    text-shadow:
      2px 1px 0 var(--pink),
      -2px -1px 0 var(--cyan),
      0 0 12px rgba(247, 217, 87, .65);
  }

  .scoreboard-labels,
  .ranking-row {
    grid-template-columns: 43px minmax(0, 1fr) auto;
  }

  .rank-number {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .rank-player strong {
    font-size: 10px;
  }

  .rank-player small {
    display: none;
  }

  .rank-amount {
    font-size: 10px;
  }

  .play-arrow {
    font-size: 16px;
  }

  .compact-guide {
    width: calc(100% - 22px);
    padding: 20px 24px;
    clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  }

  .archive-table th,
  .archive-table td {
    padding: 10px 7px;
  }

  .archive-table th:nth-child(3),
  .archive-table td:nth-child(3) {
    display: none;
  }

  .simple-rules > section {
    grid-template-columns: 37px minmax(0, 1fr);
    padding: 15px;
  }

  .rule-number {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
