:root {
  --ink: #0c1020;
  --ink-soft: #141a2d;
  --ink-card: #191f34;
  --ink-lift: #222940;
  --lime: #c7ff32;
  --lime-soft: #e2ff8a;
  --paper: #f5f5ee;
  --white: #ffffff;
  --muted: #aeb5c8;
  --line: rgba(255, 255, 255, 0.11);
  --danger: #ff6b5f;
  --success: #72e7a5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 7%, rgba(199, 255, 50, 0.1), transparent 25rem),
    var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 900;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 32, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell,
.container {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(199, 255, 50, 0.35);
  background: var(--ink-card);
  color: var(--lime);
  box-shadow: inset 0 -4px 0 rgba(199, 255, 50, 0.08);
  font-size: 16px;
  font-style: italic;
}

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

.brand-copy small {
  margin-top: 5px;
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  border-radius: 999px;
  color: var(--muted);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 750;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  outline: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 17px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 5px 0 #719414;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--lime-soft);
  box-shadow: 0 7px 0 #719414;
  outline: none;
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #719414;
}

.button.secondary {
  border-color: var(--line);
  background: var(--ink-card);
  color: var(--white);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(199, 255, 50, 0.55);
  background: var(--ink-lift);
  box-shadow: none;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--lime);
  box-shadow: none;
}

.button.small {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: none;
}

.button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 82px);
  padding-block: clamp(76px, 10vw, 130px) 84px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -160px;
  top: 80px;
  border: 1px solid rgba(199, 255, 50, 0.18);
  border-radius: 50%;
  content: "";
}

.eyebrow,
.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(199, 255, 50, 0.25);
  border-radius: 999px;
  background: rgba(199, 255, 50, 0.08);
  color: var(--lime);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(199, 255, 50, 0.12);
}

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

.hero h1,
.page-hero h1,
.tournament-hero h1 {
  margin: 24px 0 22px;
  max-width: 830px;
  color: var(--white);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--lime);
}

.hero-copy > p,
.page-hero > p,
.tournament-hero > p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.micro-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.proof-bubbles {
  display: flex;
}

.proof-bubbles span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink-lift);
  color: var(--lime);
  font-size: 10px;
  font-weight: 950;
}

.proof-bubbles span:first-child {
  margin-left: 0;
}

.bracket-showcase {
  position: relative;
  border: 1px solid rgba(199, 255, 50, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(rgba(199, 255, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 255, 50, 0.035) 1px, transparent 1px),
    var(--ink-card);
  background-size: 22px 22px;
  padding: 25px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 255, 50, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(199, 255, 50, 0); }
}

.mini-bracket {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  gap: 10px;
}

.mini-round {
  display: grid;
  gap: 18px;
}

.mini-match,
.match-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(12, 16, 32, 0.78);
  overflow: hidden;
}

.mini-team,
.match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 800;
}

.mini-team + .mini-team,
.match-team + .match-team {
  border-top: 1px solid var(--line);
}

.mini-team strong,
.match-team strong {
  color: var(--lime);
}

.mini-line {
  height: 60%;
  border-top: 2px solid rgba(199, 255, 50, 0.45);
  border-right: 2px solid rgba(199, 255, 50, 0.45);
  border-bottom: 2px solid rgba(199, 255, 50, 0.45);
  border-radius: 0 10px 10px 0;
}

.showcase-caption {
  margin: 25px -25px -25px;
  border-radius: 0 0 27px 27px;
  background: var(--lime);
  color: var(--ink);
  padding: 13px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.section {
  padding-block: clamp(74px, 9vw, 116px);
}

.section.compact {
  padding-block: 62px;
}

.section-kicker {
  margin-bottom: 11px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 17px;
}

.steps-grid,
.feature-grid,
.guide-grid,
.sports-grid,
.summary-grid {
  display: grid;
  gap: 16px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.guide-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sports-grid {
  grid-template-columns: repeat(4, 1fr);
}

.step-card,
.feature-card,
.guide-card,
.sport-card,
.panel,
.form-card,
.summary-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card,
.feature-card,
.guide-card,
.sport-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.step-card:hover,
.feature-card:hover,
.guide-card:hover,
.sport-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 255, 50, 0.34);
  background: var(--ink-lift);
}

.step-number,
.feature-icon,
.sport-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.step-card h3,
.feature-card h3,
.guide-card h3,
.sport-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.step-card p,
.feature-card p,
.guide-card p,
.sport-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.sport-card {
  min-height: 160px;
}

.sport-icon {
  margin-bottom: 18px;
  background: rgba(199, 255, 50, 0.1);
  color: var(--lime);
  font-size: 21px;
}

.contrast-band {
  border-block: 1px solid rgba(199, 255, 50, 0.15);
  background: #101526;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(199, 255, 50, 0.35);
  border-radius: 28px;
  background: var(--lime);
  color: var(--ink);
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
}

.cta-panel::after {
  position: absolute;
  right: 27%;
  bottom: -76px;
  color: rgba(12, 16, 32, 0.08);
  content: "★";
  font-size: 190px;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-weight: 650;
}

.cta-panel .button {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 5px 0 #4d6411;
}

.page-hero,
.tournament-hero {
  padding-block: clamp(70px, 9vw, 110px) 44px;
}

.page-hero h1,
.tournament-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 72px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--lime);
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 24px;
  padding-bottom: 100px;
}

.form-card,
.panel,
.summary-card {
  padding: clamp(22px, 4vw, 34px);
}

.summary-card {
  position: sticky;
  top: 98px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.progress-step {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-step.active {
  background: var(--lime);
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step h2 {
  margin-bottom: 8px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.wizard-step > p {
  margin-bottom: 28px;
  color: var(--muted);
}

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

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

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

.field label,
.field-label {
  font-size: 14px;
  font-weight: 850;
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #101526;
  color: var(--white);
  padding: 13px 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 255, 50, 0.1);
}

.textarea {
  min-height: 260px;
  resize: vertical;
}

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

.choice-card {
  position: relative;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101526;
  padding: 18px;
  cursor: pointer;
  transition: 160ms ease;
}

.choice-card:hover {
  border-color: rgba(199, 255, 50, 0.45);
}

.choice-card:has(input:checked) {
  border-color: var(--lime);
  background: rgba(199, 255, 50, 0.08);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card strong {
  font-size: 15px;
}

.choice-card span {
  color: var(--muted);
  font-size: 12px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.check-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 22px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.summary-row strong {
  max-width: 60%;
  color: var(--white);
  text-align: right;
}

.notice,
.result-banner {
  border: 1px solid rgba(199, 255, 50, 0.25);
  border-radius: 14px;
  background: rgba(199, 255, 50, 0.08);
  color: var(--lime-soft);
  padding: 14px 16px;
  font-size: 13px;
}

.notice.error {
  border-color: rgba(255, 107, 95, 0.35);
  background: rgba(255, 107, 95, 0.08);
  color: #ffb1ab;
}

.success-view {
  text-align: center;
}

.success-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 23px;
  background: var(--lime);
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  transform: rotate(-4deg);
}

.link-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 18px;
}

.link-box .input {
  min-width: 0;
  font-size: 13px;
}

.tournament-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(199, 255, 50, 0.1);
  color: var(--lime);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.finished {
  background: var(--lime);
  color: var(--ink);
}

.tournament-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.tournament-summary .pill {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.champion-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(199, 255, 50, 0.18), rgba(199, 255, 50, 0.04));
  padding: 26px;
}

.champion-trophy {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--lime);
  color: var(--ink);
  font-size: 32px;
}

.champion-panel small {
  color: var(--lime);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.champion-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.04em;
}

.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-button {
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 850;
}

.tab-button.active {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.tab-panel[hidden] {
  display: none;
}

.bracket-explainer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(199, 255, 50, 0.2);
  border-radius: 15px;
  background: rgba(199, 255, 50, 0.06);
  padding: 13px 15px;
}

.bracket-explainer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--lime);
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.bracket-explainer strong,
.bracket-explainer small {
  display: block;
}

.bracket-explainer small {
  margin-top: 2px;
  color: var(--muted);
}

.bracket-scroll {
  overflow-x: auto;
  padding: 4px 4px 20px;
  scrollbar-color: var(--lime) var(--ink-card);
}

.bracket-stage {
  position: relative;
  width: max-content;
  display: flex;
  align-items: flex-start;
  gap: 92px;
  padding-inline: 5px 20px;
}

.bracket-round {
  position: relative;
  z-index: 2;
  width: 276px;
  flex: 0 0 276px;
}

.bracket-round-track {
  position: relative;
  height: var(--bracket-height);
}

.bracket-match-slot {
  position: absolute;
  right: 0;
  left: 0;
  transform: translateY(-50%);
}

.round-title {
  height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.round-title span,
.round-title strong {
  display: block;
}

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

.round-title strong {
  margin-top: 3px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bracket-connectors {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.bracket-path {
  fill: none;
  stroke: rgba(174, 181, 200, 0.35);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.bracket-path.advanced {
  stroke: var(--lime);
  filter: drop-shadow(0 0 4px rgba(199, 255, 50, 0.28));
}

.bracket-dot {
  fill: var(--muted);
}

.bracket-dot.advanced {
  fill: var(--lime);
}

.match-card {
  position: relative;
  min-height: 111px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.match-card.done {
  border-color: rgba(199, 255, 50, 0.26);
}

.match-card .match-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.match-team.winner {
  background: rgba(199, 255, 50, 0.08);
  color: var(--lime-soft);
}

.match-team .team-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-color {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--team-color, var(--muted));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--team-color, var(--muted)) 18%, transparent);
}

.third-place-panel {
  display: grid;
  grid-template-columns: 180px minmax(240px, 360px);
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}

.third-place-panel > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.third-place-panel h3 {
  margin: 3px 0 0;
  color: var(--lime);
  font-size: 18px;
}

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

.match-list-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101526;
  padding: 17px;
}

.match-list-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.match-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-weight: 850;
}

.match-versus strong {
  color: var(--lime);
  font-size: 18px;
}

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

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

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

.standings-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
}

.standings-table tbody tr:first-child td {
  color: var(--lime-soft);
  font-weight: 850;
}

.group-stack {
  display: grid;
  gap: 20px;
}

.group-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.group-letter {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 950;
}

.poll-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(199, 255, 50, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink-card), #101526);
  padding: 25px;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.poll-option {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  padding: 18px;
  cursor: pointer;
  text-align: left;
}

.poll-option:hover,
.poll-option:focus-visible {
  border-color: var(--lime);
  outline: none;
}

.poll-option strong,
.poll-option span {
  display: block;
}

.poll-option span {
  margin-top: 6px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
}

.supporter-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--team-color) 42%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--team-color) 8%, var(--ink-card));
  padding: 13px 15px;
}

.supporter-avatar,
.supporter-identity > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--team-color);
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.supporter-bar small,
.supporter-bar strong {
  display: block;
}

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

.supporter-bar button,
.supporter-identity button {
  border: 0;
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.banter-section {
  margin-top: 24px;
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
  padding: clamp(22px, 4vw, 34px);
}

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

.banter-heading h2 {
  margin-bottom: 7px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.045em;
}

.banter-heading p:not(.section-kicker) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.wall-counter {
  min-width: max-content;
  border: 1px solid rgba(199, 255, 50, 0.25);
  border-radius: 14px;
  background: rgba(199, 255, 50, 0.07);
  color: var(--muted);
  padding: 10px 13px;
  font-size: 12px;
}

.wall-counter strong {
  display: block;
  color: var(--lime);
  font-size: 22px;
  line-height: 1;
}

.banter-compose {
  display: grid;
  gap: 18px;
  margin: 26px 0 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #101526;
  padding: 18px;
}

.supporter-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.supporter-identity small,
.supporter-identity strong {
  display: block;
}

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

.phrase-picker > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phrase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phrase-grid button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: 150ms ease;
}

.phrase-grid button:hover,
.phrase-grid button:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  border-color: var(--lime);
  color: var(--lime);
  outline: none;
}

.phrase-grid button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.graffiti-wall {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(199, 255, 50, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #080c19;
  background-size: 28px 28px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
}

.wall-spray {
  position: absolute;
  color: rgba(199, 255, 50, 0.045);
  font-weight: 950;
  pointer-events: none;
  user-select: none;
}

.wall-spray-one {
  right: -24px;
  bottom: -45px;
  font-size: clamp(70px, 14vw, 180px);
  letter-spacing: -0.08em;
  transform: rotate(-7deg);
}

.wall-spray-two {
  top: -52px;
  left: 5%;
  font-size: 190px;
  transform: rotate(12deg);
}

.wall-sticker-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px 14px;
}

.wall-sticker {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(12, 16, 32, 0.82);
  border-radius: 18px 14px 20px 12px;
  background: var(--sticker-color);
  color: var(--ink);
  padding: 15px;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.32);
  transform: rotate(var(--sticker-tilt));
}

.wall-sticker.featured {
  grid-column: span 2;
}

.wall-sticker-team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wall-sticker-team i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sticker-color);
  font-size: 8px;
  font-style: normal;
}

.wall-sticker > strong {
  margin-block: 13px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.wall-sticker.compact > strong {
  font-size: 18px;
}

.wall-sticker > small {
  opacity: 0.7;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.wall-empty {
  position: relative;
  z-index: 2;
  min-height: 350px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.wall-empty span {
  color: var(--lime);
  font-size: 48px;
}

.wall-empty strong {
  margin-top: 8px;
  font-size: 24px;
}

.wall-empty p {
  margin: 4px 0 0;
  color: var(--muted);
}

.wall-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-open {
  overflow: hidden;
}

.supporter-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 16, 0.84);
  padding: 18px;
  backdrop-filter: blur(12px);
}

.supporter-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(840px, calc(100vh - 36px));
  overflow-y: auto;
  border: 1px solid rgba(199, 255, 50, 0.25);
  border-radius: 24px;
  background: var(--ink-card);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.supporter-dialog-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 17px;
  background: var(--lime);
  font-size: 28px;
  transform: rotate(-4deg);
}

.supporter-dialog h2 {
  margin: 5px 0 8px;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.05em;
}

.supporter-dialog > p:not(.section-kicker) {
  color: var(--muted);
}

.supporter-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 24px;
}

.supporter-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.supporter-team-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101526;
  color: var(--white);
  padding: 11px;
  cursor: pointer;
  text-align: left;
}

.supporter-team-option:hover,
.supporter-team-option:focus-visible {
  border-color: var(--team-color);
  background: color-mix(in srgb, var(--team-color) 8%, #101526);
  outline: none;
}

.supporter-team-option i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--team-color);
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.supporter-team-option span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supporter-team-option b {
  color: var(--team-color);
  font-size: 10px;
  text-transform: uppercase;
}

.supporter-note {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 100px;
}

.admin-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: rgba(199, 255, 50, 0.09);
  color: var(--lime);
}

.admin-section[hidden] {
  display: none;
}

.score-form {
  display: grid;
  gap: 16px;
}

.score-pair {
  display: grid;
  grid-template-columns: 1fr 74px auto 74px 1fr;
  align-items: center;
  gap: 10px;
}

.score-pair label:first-child {
  text-align: right;
}

.score-pair .input {
  padding-inline: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.winner-select {
  display: grid;
  gap: 8px;
}

.winner-select[hidden] {
  display: none;
}

.qr-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 24px;
}

.qr-card img {
  border-radius: 14px;
  background: white;
  padding: 8px;
}

.empty-state {
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 19px;
}

.guide-card small {
  color: var(--lime);
  font-weight: 850;
}

.guide-card h3 {
  margin-top: 12px;
}

.guide-card .text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  align-items: start;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 100px;
}

.article-body {
  font-size: 17px;
  line-height: 1.8;
}

.article-body h2 {
  margin: 48px 0 14px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.article-body p,
.article-body li {
  color: #d3d7e2;
}

.article-body a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-aside {
  position: sticky;
  top: 98px;
}

.ssr-content {
  width: min(calc(100% - 36px), 900px);
  margin: 80px auto;
}

.ssr-content h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ssr-content h2 {
  margin-top: 42px;
}

.ssr-content p,
.ssr-content li {
  color: var(--muted);
}

.loading-state {
  min-height: 55vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #090d19;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 50px;
  padding-block: 55px 38px;
}

.footer-copy p {
  max-width: 410px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-column h3 {
  margin-bottom: 14px;
  font-size: 13px;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  color: #7f879c;
  font-size: 12px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 9px;
}

.toast {
  max-width: min(390px, calc(100vw - 36px));
  border: 1px solid rgba(199, 255, 50, 0.35);
  border-radius: 13px;
  background: var(--ink-lift);
  color: var(--white);
  padding: 13px 15px;
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(255, 107, 95, 0.5);
}

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

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

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .bracket-showcase {
    max-width: 720px;
    transform: none;
  }

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

  .sports-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wizard-layout,
  .admin-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .admin-sidebar,
  .article-aside {
    position: static;
  }

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

  .admin-nav {
    display: flex;
    overflow-x: auto;
  }

  .admin-nav button {
    min-width: max-content;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 18px;
    right: 18px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--ink-card);
    padding: 9px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-link {
    width: 100%;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 62px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 67px);
  }

  .steps-grid,
  .feature-grid,
  .guide-grid,
  .sports-grid,
  .matches-list,
  .admin-match-list {
    grid-template-columns: 1fr;
  }

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

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

  .field.full {
    grid-column: auto;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .qr-card img {
    width: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }

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

  .wall-sticker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bracket-stage {
    gap: 76px;
  }

  .bracket-round {
    width: 250px;
    flex-basis: 250px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand-copy {
    font-size: 14px;
  }

  .hero h1,
  .page-hero h1,
  .tournament-hero h1 {
    letter-spacing: -0.055em;
  }

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

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

  .mini-line {
    display: none;
  }

  .wizard-progress {
    gap: 5px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

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

  .link-box {
    grid-template-columns: 1fr;
  }

  .score-pair {
    grid-template-columns: 1fr 60px auto 60px 1fr;
    gap: 6px;
    font-size: 12px;
  }

  .poll-options {
    grid-template-columns: 1fr;
  }

  .supporter-bar,
  .supporter-identity {
    grid-template-columns: auto 1fr;
  }

  .supporter-bar button,
  .supporter-identity button {
    grid-column: 1 / -1;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
  }

  .supporter-team-grid,
  .wall-sticker-grid {
    grid-template-columns: 1fr;
  }

  .wall-sticker.featured {
    grid-column: auto;
  }

  .wall-actions {
    display: grid;
  }

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

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

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

  .phrase-grid button {
    border-radius: 12px;
    text-align: left;
  }
}
