:root {
  color-scheme: dark;
  --ink: #06080c;
  --panel: rgba(15, 19, 27, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7f8fb;
  --muted: #9da7b6;
  --electric: #5ce1e6;
  --violet: #8b5cf6;
  --gold: #e7c36b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(92, 225, 230, 0.14), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.16), transparent 32rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin: auto; position: relative; }
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.03em; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(92,225,230,.2), rgba(139,92,246,.2)); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 10px 14px; color: var(--muted); border-radius: 999px; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.07); }

.hero { padding: clamp(70px, 11vw, 150px) 0 92px; }
.hero h1 { max-width: 960px; margin: 0; font-size: clamp(58px, 10vw, 138px); line-height: .84; letter-spacing: -.075em; text-transform: uppercase; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.62); }
.hero-copy { max-width: 680px; margin: 38px 0 0 auto; color: var(--muted); font-size: clamp(18px, 2.2vw, 27px); line-height: 1.45; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 0; padding: 15px 21px; font-weight: 850; cursor: pointer; background: var(--electric); color: #041013; }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 24px; font-size: clamp(35px, 5vw, 68px); letter-spacing: -.055em; }
.lead { color: var(--muted); max-width: 760px; font-size: 19px; line-height: 1.65; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.card { padding: 25px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); }
.card h3 { margin: 0 0 12px; font-size: 22px; }
.card p { color: var(--muted); line-height: 1.55; margin: 0; }
.card.disabled { opacity: .48; }
.status { display: inline-block; margin-top: 18px; color: var(--electric); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.page-title { padding: 70px 0 38px; }
.page-title h1 { margin: 0; font-size: clamp(48px, 8vw, 100px); line-height: .9; letter-spacing: -.065em; }
.page-title p { color: var(--muted); font-size: 19px; max-width: 720px; line-height: 1.55; }
.form-card { border: 1px solid var(--line); background: var(--panel); padding: clamp(22px, 5vw, 52px); margin-bottom: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 13px; font-weight: 750; }
.field input, .field select { width: 100%; color: var(--text); background: #090c12; border: 1px solid var(--line); padding: 14px 15px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(92,225,230,.1); }
.checks { display: flex; flex-wrap: wrap; gap: 18px; padding: 8px 0; }
.checks label { display: flex; align-items: center; gap: 8px; color: var(--text); }
.form-note, .message { color: var(--muted); line-height: 1.5; }
.message { margin-top: 18px; padding: 15px; border: 1px solid var(--line); display: none; }
.message.visible { display: block; }
.message.success { border-color: rgba(92,225,230,.5); color: var(--electric); }
.message.error { border-color: rgba(239,68,68,.5); color: #fda4af; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filters select { min-width: 220px; color: var(--text); background: #090c12; border: 1px solid var(--line); padding: 13px; }
.rankings { border: 1px solid var(--line); background: var(--panel); margin-bottom: 80px; }
.ranking-row { display: grid; grid-template-columns: 64px 1fr minmax(120px, .6fr) 110px; gap: 16px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.ranking-row:last-child { border-bottom: 0; }
.rank { color: var(--gold); font-size: 23px; font-weight: 900; }
.fighter { font-weight: 850; }
.team, .points { color: var(--muted); }
.points { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 45px 20px; color: var(--muted); text-align: center; }

footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .ranking-row { grid-template-columns: 45px 1fr 80px; }
  .ranking-row .team { display: none; }
  .nav .brand span:last-child { display: none; }
}
