/* ─────────────────────────────────────────────────────────────
   Player survey — tokens
   ───────────────────────────────────────────────────────────── */
:root {
  --black: #000000;
  --panel: #0f1013;
  --field: #16181d;
  --field-hover: #1b1e24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #9aa0a8;
  --dim: #5f656d;
  --green: #00e701;
  --green-hover: #1fff20;
  --blue: #1475e1;
  --blue-soft: rgba(20, 117, 225, 0.14);
  --red: #ff5a5a;
  --radius: 14px;
  --radius-s: 10px;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: var(--black); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--black);
  min-height: 100svh;
}

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

.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ─────────────────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────────────────── */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  align-content: center;
}

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 36px; padding: 28px 18px 48px; }
}

/* ─────────────────────────────────────────────────────────────
   Offer column
   ───────────────────────────────────────────────────────────── */
.offer { position: sticky; top: 40px; }
@media (max-width: 900px) { .offer { position: static; } }

.logo { display: inline-block; width: 220px; }
.logo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .logo { width: 172px; } }

.headline {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(52px, 7.2vw, 100px);
  line-height: 0.96;
  letter-spacing: 0.005em;
  margin: 36px 0 22px;
}
@media (max-width: 900px) { .headline { font-size: clamp(46px, 13.5vw, 72px); margin: 26px 0 16px; } }

.lede {
  max-width: 44ch;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
}
@media (max-width: 900px) { .lede { font-size: 16px; margin-bottom: 22px; } }

.proof {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.proof li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 500;
}
.proof li::before {
  content: '';
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 231, 1, 0.16);
}
@media (max-width: 900px) {
  .page { min-height: 0; align-content: start; }
  .proof { gap: 10px; margin-bottom: 22px; }
  .proof li { font-size: 17px; gap: 12px; }
  .proof li::before { width: 10px; height: 10px; }
}

.fine { font-size: 13px; color: var(--dim); max-width: 46ch; margin: 0; }

/* ─────────────────────────────────────────────────────────────
   Form panel
   ───────────────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
}
@media (max-width: 900px) { .panel { padding: 20px 18px 22px; } }

.progress { margin-bottom: 26px; }
.progress-bar { display: flex; gap: 6px; }
.progress-bar .seg {
  flex: 1; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 220ms ease;
}
.progress-bar .seg.is-active { background: var(--green); }
.progress-bar .seg.is-done { background: var(--green); opacity: 0.55; }
.progress-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.progress-label h2 { margin: 0; font-size: 22px; font-weight: 600; order: -1; }
.progress-label span { font-size: 13px; color: var(--muted); }

/* Steps */
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-current { display: block; }
.step.is-current.enter { animation: step-in 260ms ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.is-current.enter { animation: none; } }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

label, .label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 9px;
}

.hint { font-size: 14px; color: var(--muted); margin: -4px 0 22px; }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, textarea:hover, select:hover { background: var(--field-hover); }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
textarea { resize: vertical; min-height: 110px; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select { padding-right: 40px; cursor: pointer; }
select:invalid { color: var(--dim); }
select option { background: #16181d; color: #fff; }

.field.has-error input, .field.has-error textarea, .field.has-error select,
.field.has-error .segmented, .field.has-error .drop, .field.has-error .cc-face { border-color: var(--red); }

/* Phone: country-code picker + number */
.phone-row { display: flex; gap: 8px; }
.phone-row input[type="tel"] { flex: 1; min-width: 0; }
.cc { position: relative; flex: 0 0 auto; }
.cc-face {
  display: flex; align-items: center; gap: 7px;
  height: 100%;
  padding: 13px 34px 13px 13px;
  font-size: 16px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.cc-face::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.cc-flag { font-size: 20px; line-height: 1; }
.cc-dial { font-variant-numeric: tabular-nums; color: var(--text); }
/* The real <select> sits invisibly on top so the native picker opens on tap. */
.cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.cc:hover .cc-face { background: var(--field-hover); }
.cc:focus-within .cc-face { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.error { display: none; margin: 8px 0 0; font-size: 13px; color: var(--red); }
.error.is-visible { display: block; }
.form-error { margin: 18px 0 0; }

/* Chips (multi-select) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 120ms ease;
}
.chip:hover span { background: var(--field-hover); color: var(--text); }
.chip input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--text); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-soft); }
.chip-other { margin-top: 10px; }

/* Segmented radios */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.segmented label { position: relative; margin: 0; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 7px;
  transition: all 120ms ease;
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--blue); color: #fff; }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-soft); }

/* Upload drop targets */
.drop {
  display: block;
  position: relative;
  margin: 0;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--field);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
  overflow: hidden;
}
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--field-hover); }
.drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.drop-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
}
.drop-empty b { font-weight: 600; color: var(--text); font-size: 15px; margin-top: 6px; }
.drop-empty small { font-size: 13px; }
.drop.has-file .drop-empty { display: none; }
.drop-preview { display: none; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.drop.has-file .drop-preview { display: flex; }
.drop-preview img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--line);
}
.drop-meta { display: grid; gap: 2px; min-width: 0; }
.drop-meta b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-meta small { font-size: 13px; color: var(--blue); }

/* Actions */
.actions { display: flex; gap: 12px; margin-top: 28px; }
.actions .btn-primary { flex: 1; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, transform 80ms ease, border-color 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-primary { background: var(--green); color: #05140a; }
.btn-primary:hover { background: var(--green-hover); }
.btn-primary:disabled { opacity: 0.7; cursor: progress; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); padding: 0 18px; }
.btn-ghost:hover { background: var(--field); }

.btn-busy {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(5, 20, 10, 0.25);
  border-top-color: #05140a;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn.is-busy .btn-label { opacity: 0.6; }
.btn.is-busy .btn-busy { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.done { text-align: center; padding: 28px 8px 8px; }
.done-mark {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #05140a;
  box-shadow: 0 0 0 10px rgba(0, 231, 1, 0.12);
}
.done h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 44px; line-height: 1; margin: 0 0 12px; }
.done p { color: var(--muted); max-width: 40ch; margin: 0 auto 26px; }
.done .btn { width: 100%; }
.done-timer { font-size: 13px; color: var(--dim); margin: 14px 0 0; }

/* Cloudflare Turnstile bot check (only rendered when configured) */
.turnstile-wrap { margin-top: 18px; min-height: 65px; }
.turnstile-wrap[hidden] { display: none; }
