:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0c1017;
  --panel: #111722;
  --panel-2: #151c27;
  --text: #f5f7fb;
  --muted: #96a0b0;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --orange: #ff5a1f;
  --orange-light: #ff8659;
  --blue: #55c7ff;
  --green: #4ae09a;
  --red: #ff6470;
  --yellow: #ffc857;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --pad: clamp(1.15rem, 4vw, 4.5rem);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, 0.012) 4px);
  opacity: 0.28;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  background: var(--orange);
  color: #fff;
  font-weight: 850;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  min-height: 5rem;
  padding: 0 var(--pad);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.17em;
}

.logo-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  clip-path: polygon(10% 0, 100% 0, 74% 36%, 98% 36%, 46% 100%, 0 100%, 31% 58%, 7% 58%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.7rem);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav > a:not(.nav-button) {
  color: rgba(255, 255, 255, 0.66);
  transition: color 160ms ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible {
  color: #fff;
}

.nav-button {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 90, 31, 0.7);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 3.6rem;
  padding: 0.95rem 1.35rem;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:focus-visible,
.icon-button:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(85, 199, 255, 0.45);
  outline-offset: 2px;
}

.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 34px rgba(255, 90, 31, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--orange-light);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(8, 11, 16, 0.56);
  color: #fff;
}

.button-secondary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.42);
}

.button-muted {
  color: rgba(255, 255, 255, 0.5);
}

.kicker {
  display: block;
  color: var(--orange-light);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  padding: clamp(8rem, 15vh, 11rem) var(--pad) clamp(4rem, 9vh, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(85, 199, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-light {
  position: absolute;
  z-index: -2;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.13;
}

.hero-light-blue {
  top: 8%;
  left: -24%;
  background: var(--blue);
}

.hero-light-orange {
  right: -20%;
  bottom: -30%;
  background: var(--orange);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.status-pill {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(74, 224, 154, 0.25);
  background: rgba(74, 224, 154, 0.06);
  color: #bcf7d9;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 224, 154, 0.5);
  animation: ping 2s infinite;
}

@keyframes ping {
  70% { box-shadow: 0 0 0 10px rgba(74, 224, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 224, 154, 0); }
}

.hero-title {
  margin: 1.2rem 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(7rem, 16vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title span {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.86);
}

.hero-lead {
  max-width: 650px;
  margin: clamp(1.8rem, 4vh, 3.5rem) 0 0;
  color: #c1c8d3;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 650;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.hero-metrics {
  display: grid;
  max-width: 690px;
  margin-top: clamp(3rem, 7vh, 5.5rem);
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.hero-metrics > div {
  display: flex;
  min-height: 95px;
  padding: 1.15rem 1.25rem 0 0;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
}

.hero-metrics > div + div {
  padding-left: 1.25rem;
}

.hero-metrics > div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
}

.hero-metrics span {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 560px;
  border: 1px solid var(--line-strong);
  background: #0b0f15;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: 4;
  content: "";
  pointer-events: none;
}

.hero-visual::before {
  inset: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual::after {
  top: 0;
  left: 14%;
  width: 5px;
  height: 36%;
  background: var(--orange);
  box-shadow: 0 0 34px rgba(255, 90, 31, 0.75);
}

.arena-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 9, 13, 0.05), rgba(7, 9, 13, 0.12) 45%, rgba(7, 9, 13, 0.95)),
    linear-gradient(90deg, rgba(30, 129, 207, 0.18), transparent 45%, rgba(255, 90, 31, 0.2)),
    url("../img/arena.png") center 45% / cover no-repeat;
  filter: contrast(1.08) saturate(0.86);
  transform: scale(1.02);
  animation: visualDrift 14s ease-in-out infinite alternate;
}

@keyframes visualDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-0.7%, -0.6%, 0); }
}

.visual-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.visual-index {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  z-index: 5;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.match-card {
  position: absolute;
  right: 2.2rem;
  bottom: 2.2rem;
  left: 2.2rem;
  z-index: 5;
  display: grid;
  padding: 1.5rem;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 16, 0.8);
  backdrop-filter: blur(16px);
}

.match-label {
  grid-column: 1 / -1;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.match-roster {
  display: flex;
  grid-row: span 2;
  align-items: center;
}

.match-roster i {
  display: block;
  width: clamp(2.1rem, 4vw, 3.2rem);
  aspect-ratio: 1;
  margin-right: -0.4rem;
  border: 2px solid #121821;
  border-radius: 50%;
  background: linear-gradient(135deg, #536273, #1b2634);
}

.match-roster i:nth-child(2) { background: linear-gradient(135deg, #2678a5, #152f45); }
.match-roster i:nth-child(3) { background: linear-gradient(135deg, #f06432, #5f2412); }
.match-roster i:nth-child(4) { background: linear-gradient(135deg, #546d5d, #1b2c22); }
.match-roster i:nth-child(5) { background: linear-gradient(135deg, #7e5d88, #2a2030); }

.match-card strong {
  align-self: end;
  font-size: 1.2rem;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.match-card > span:last-child {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.fee-chip {
  position: absolute;
  top: 30%;
  left: -1px;
  z-index: 5;
  padding: 0.8rem 1rem;
  background: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-section {
  width: min(100%, calc(var(--max) + var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) var(--pad);
}

.flow-heading {
  display: grid;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  grid-template-columns: 0.45fr 1fr;
  align-items: start;
}

.flow-heading h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: uppercase;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.flow-card {
  position: relative;
  min-height: 310px;
  padding: clamp(1.6rem, 3vw, 3rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}

.flow-card::after {
  position: absolute;
  right: -18%;
  bottom: -52%;
  width: 66%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 90, 31, 0.22);
  border-radius: 50%;
  transition: transform 240ms ease, border-color 240ms ease;
}

.flow-card:hover::after {
  border-color: rgba(255, 90, 31, 0.7);
  transform: scale(1.12);
}

.flow-card > span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.flow-card h3 {
  margin: clamp(4rem, 7vw, 6rem) 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.flow-card p {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
}

.large-cta {
  display: flex;
  min-height: 150px;
  margin-top: 2.5rem;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.large-cta:hover {
  background: var(--orange-light);
}

.large-cta strong {
  font-size: 1.5em;
  transition: transform 180ms ease;
}

.large-cta:hover strong {
  transform: translateX(8px);
}

.site-footer {
  display: grid;
  min-height: 150px;
  padding: 2.5rem var(--pad);
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer .logo {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Registration */
.register-page {
  background: #090c11;
}

.register-page .site-header {
  display: none;
}

.registration-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 1fr);
}

.registration-aside {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  padding: clamp(2rem, 5vw, 5rem);
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(to bottom, rgba(7, 9, 13, 0.35), rgba(7, 9, 13, 0.9)),
    linear-gradient(110deg, rgba(28, 134, 207, 0.18), rgba(255, 90, 31, 0.18)),
    url("../img/arena.png") center / cover no-repeat;
  overflow: hidden;
}

.registration-aside::after {
  position: absolute;
  inset: 1.2rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.back-link {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-aside > div {
  position: relative;
  z-index: 1;
}

.registration-aside h1 {
  max-width: 620px;
  margin: 1rem 0 1.25rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.8rem, 7vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.registration-aside p {
  max-width: 30rem;
  color: #bdc5d0;
}

.aside-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.aside-summary div {
  display: flex;
  padding: 1.2rem 1rem 0 0;
  flex-direction: column;
}

.aside-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aside-summary strong {
  margin-top: 0.5rem;
  font-size: 1.35rem;
}

.form-stage {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 6rem);
  align-self: center;
}

.cancel-notice,
.form-error {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 200, 87, 0.38);
  background: rgba(255, 200, 87, 0.08);
  color: #ffe0a0;
  font-size: 0.9rem;
}

.form-error {
  border-color: rgba(255, 100, 112, 0.4);
  background: rgba(255, 100, 112, 0.08);
  color: #ffb6bc;
}

.stepper {
  display: grid;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
}

.stepper > i {
  height: 1px;
  margin: 0 1rem;
  background: var(--line-strong);
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #687383;
}

.stepper-item span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #3a4350;
  font-size: 0.7rem;
  font-weight: 900;
}

.stepper-item strong {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stepper-item.is-active,
.stepper-item.is-complete {
  color: #fff;
}

.stepper-item.is-active span {
  border-color: var(--orange);
  background: var(--orange);
}

.stepper-item.is-complete span {
  border-color: var(--green);
  color: var(--green);
}

.form-panel {
  animation: panelIn 320ms ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-heading > span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.form-heading h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.form-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  margin-top: 3rem;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: #c6ccd5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.panel-toolbar input,
.panel-toolbar select,
.dialog-form textarea,
.dialog-form select {
  width: 100%;
  min-height: 3.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 1rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.field input::placeholder,
.panel-toolbar input::placeholder {
  color: #596371;
}

.field input:hover,
.field input:focus,
.panel-toolbar input:focus,
.panel-toolbar select:focus,
.dialog-form textarea:focus,
.dialog-form select:focus {
  border-color: rgba(85, 199, 255, 0.65);
  background: rgba(85, 199, 255, 0.035);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 100, 112, 0.55);
}

.form-actions {
  display: flex;
  margin-top: 2.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-actions-end {
  justify-content: flex-end;
}

.player-list {
  display: grid;
  margin-top: 2.8rem;
  gap: 1rem;
}

.player-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.player-card legend {
  padding: 0 0.7rem;
  color: #d2d7de;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-card legend span {
  margin-right: 0.55rem;
  color: var(--orange);
}

.player-fields {
  display: grid;
  grid-template-columns: 0.75fr 0.85fr 1.4fr;
  gap: 0.8rem;
}

.player-fields .field input {
  min-height: 3.1rem;
  padding: 0.75rem 0.8rem;
  font-size: 0.92rem;
}

.review-card {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-strong);
}

.review-head {
  display: flex;
  padding: 1.2rem 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.review-head strong {
  font-size: 1.35rem;
}

.review-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.review-player {
  display: grid;
  padding: 0.9rem 0;
  grid-template-columns: 2rem 1fr 1fr;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.review-player > span:first-child {
  color: var(--orange);
  font-weight: 850;
}

.review-player > span:last-child {
  color: var(--muted);
  text-align: right;
}

.terms-check {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  color: #b1bac6;
  font-size: 0.87rem;
  cursor: pointer;
}

.terms-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--orange);
}

.payment-total {
  display: flex;
  margin-top: 2rem;
  padding: 1.4rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 90, 31, 0.42);
  background: rgba(255, 90, 31, 0.06);
}

.payment-total div {
  display: flex;
  flex-direction: column;
}

.payment-total span {
  font-weight: 800;
}

.payment-total small {
  margin-top: 0.3rem;
  color: var(--muted);
}

.payment-total strong {
  color: var(--orange-light);
  font-size: 2rem;
}

.button-pay {
  min-width: 14rem;
}

.button-pay.is-loading span {
  opacity: 0.55;
}

.button-pay .spinner {
  display: none;
}

.button-pay.is-loading .spinner {
  display: block;
}

.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.success-page {
  background:
    radial-gradient(circle at 50% 30%, rgba(85, 199, 255, 0.12), transparent 34%),
    var(--bg);
}

.success-page .site-header,
.success-page .site-footer {
  display: none;
}

.success-shell {
  display: flex;
  width: min(100% - 2rem, 740px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 4rem 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin-bottom: 2rem;
  place-items: center;
  border: 1px solid rgba(74, 224, 154, 0.5);
  border-radius: 50%;
  color: var(--green);
  font-size: 2rem;
}

.success-shell h1 {
  margin: 1rem 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.success-shell > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.success-status {
  display: inline-flex;
  min-width: 180px;
  margin: 2rem 0;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--line-strong);
  color: #c8d0db;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-status.is-paid {
  border-color: rgba(74, 224, 154, 0.4);
  background: rgba(74, 224, 154, 0.07);
  color: var(--green);
}

.success-status.is-error {
  border-color: rgba(255, 100, 112, 0.4);
  color: var(--red);
}

.spinner-dark {
  border-color: rgba(85, 199, 255, 0.25);
  border-top-color: var(--blue);
}

/* Admin */
.admin-page {
  background: #080b10;
}

.admin-login {
  display: grid;
  min-height: 100svh;
  padding: 1rem;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.72)),
    url("../img/arena.png") center / cover no-repeat;
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line-strong);
  background: rgba(9, 12, 17, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.login-card .kicker {
  margin-top: 3.5rem;
}

.login-card h1 {
  margin: 0.8rem 0 2rem;
  font-size: 2.7rem;
  letter-spacing: -0.04em;
}

.login-card .button {
  width: 100%;
  margin-top: 1.2rem;
}

.login-card > a {
  display: block;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.login-error {
  margin: 1rem 0 0;
  color: #ff9da6;
  font-size: 0.85rem;
}

.admin-app {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 235px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  padding: 2rem 1.4rem;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0b0f15;
}

.admin-sidebar nav {
  display: grid;
  margin-top: 4rem;
  gap: 0.4rem;
}

.admin-sidebar nav a {
  padding: 0.8rem 0.85rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.admin-sidebar nav a.is-active {
  border-color: var(--orange);
  background: rgba(255, 90, 31, 0.07);
  color: #fff;
}

.sidebar-logout {
  padding: 0.75rem;
  margin-top: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.admin-main {
  width: 100%;
  max-width: 1700px;
  padding: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.admin-topbar h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-button {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  margin-top: 3rem;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.stats-grid article {
  display: flex;
  min-height: 175px;
  padding: 1.4rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.018);
}

.stats-grid article > span,
.stats-grid article > small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-grid article strong {
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.stats-grid .stat-accent {
  background: var(--orange);
}

.stats-grid .stat-accent > span,
.stats-grid .stat-accent > small {
  color: rgba(255, 255, 255, 0.78);
}

.registrations-panel {
  margin-top: 2rem;
  border: 1px solid var(--line-strong);
  background: #0c1118;
}

.panel-toolbar {
  display: grid;
  padding: 1rem;
  grid-template-columns: minmax(250px, 1fr) 210px;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.panel-toolbar input,
.panel-toolbar select {
  min-height: 3.1rem;
  background: #090d13;
  font-size: 0.9rem;
}

.panel-toolbar select {
  color-scheme: dark;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #758091;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: #cbd1da;
  font-size: 0.86rem;
}

td strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

td small {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line-strong);
  color: #abb4c1;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-badge.paid,
.status-badge.approved {
  border-color: rgba(74, 224, 154, 0.35);
  background: rgba(74, 224, 154, 0.07);
  color: var(--green);
}

.status-badge.unpaid,
.status-badge.pending_review {
  border-color: rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.06);
  color: var(--yellow);
}

.status-badge.rejected,
.status-badge.expired {
  border-color: rgba(255, 100, 112, 0.35);
  background: rgba(255, 100, 112, 0.06);
  color: var(--red);
}

.row-action {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
}

.empty-state strong {
  color: #fff;
  font-size: 1.1rem;
}

.team-dialog {
  width: min(100% - 2rem, 900px);
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: #0c1118;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.team-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.dialog-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.dialog-meta {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dialog-meta div {
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.roster-table {
  margin-top: 2rem;
}

.roster-row {
  display: grid;
  padding: 0.9rem 0;
  grid-template-columns: 2.5rem 0.7fr 1fr 1.3fr;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.85rem;
}

.roster-row > span:first-child {
  color: var(--orange);
  font-weight: 850;
}

.roster-row a {
  color: var(--blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-form {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: 0.45fr 1fr auto;
  gap: 0.8rem;
  align-items: end;
}

.dialog-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dialog-form label > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-form textarea {
  min-height: 3.55rem;
  resize: vertical;
}

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

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: clamp(8rem, 24vw, 15rem);
  }

  .hero-visual {
    height: 680px;
  }

  .registration-shell {
    grid-template-columns: 1fr;
  }

  .registration-aside {
    position: relative;
    height: auto;
    min-height: 580px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 4.5rem;
  }

  .menu-toggle {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    place-content: center;
    gap: 0.4rem;
    border: 1px solid var(--line-strong);
    background: rgba(7, 9, 13, 0.7);
  }

  .menu-toggle i {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: #fff;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] i:first-of-type {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i:last-of-type {
    transform: translateY(-3px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 4.5rem;
    right: 0;
    left: 0;
    display: none;
    padding: 1rem var(--pad) 1.3rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 13, 0.97);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-button {
    border: 0;
    color: var(--orange-light);
  }

  .flow-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

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

  .flow-card {
    min-height: 250px;
  }

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

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

  .field-faceit {
    grid-column: 1 / -1;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 1rem var(--pad);
    flex-direction: row;
    align-items: center;
  }

  .admin-sidebar nav {
    display: none;
  }

  .sidebar-logout {
    margin: 0 0 0 auto;
  }

  .admin-main {
    padding: 1.5rem var(--pad) 3rem;
  }

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

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: clamp(5.5rem, 27vw, 8.5rem);
  }

  .hero-title span {
    -webkit-text-stroke-width: 1px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics > div,
  .hero-metrics > div + div {
    min-height: 76px;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-visual {
    height: 580px;
    min-height: 0;
  }

  .match-card {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 1.1rem;
  }

  .flow-card h3 {
    margin-top: 3rem;
  }

  .registration-aside {
    min-height: 520px;
    padding: 2rem 1.5rem;
  }

  .registration-aside::after {
    inset: 0.8rem;
  }

  .form-stage {
    padding: 2.5rem 1.15rem 4rem;
  }

  .stepper-item strong {
    display: none;
  }

  .field-grid,
  .player-fields {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .field-faceit {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .review-player {
    grid-template-columns: 2rem 1fr;
  }

  .review-player > span:last-child {
    grid-column: 2;
    text-align: left;
  }

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

  .admin-actions {
    justify-content: space-between;
  }

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

  .panel-toolbar {
    grid-template-columns: 1fr;
  }

  .dialog-meta {
    grid-template-columns: 1fr;
  }

  .roster-row {
    grid-template-columns: 2rem 1fr;
  }

  .roster-row > span:nth-child(3),
  .roster-row a {
    grid-column: 2;
  }
}

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