/* =========================================================
   NSS Talent Hunt 2083 — Stylesheet
   Mobile-first · Apple/Linear/Stripe inspired
   ========================================================= */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff4ff;
  --ink: #0b1220;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --muted-2: #9aa3b2;
  --line: #e8ebf1;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #f5f7fb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm:
    0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 4px rgba(16, 24, 40, 0.04);
  --shadow-lg:
    0 18px 40px -12px rgba(16, 24, 40, 0.18), 0 6px 16px rgba(16, 24, 40, 0.06);
  --shadow-blue: 0 10px 24px -6px rgba(37, 99, 235, 0.45);

  --container: 900px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(232, 235, 241, 0.8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.logo-text {
  font-size: 15px;
}
.logo-text .muted {
  color: var(--muted-2);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a:not(.btn) {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn):hover {
  color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
  min-height: 46px;
  white-space: nowrap;
}
.btn-sm {
  padding: 9px 16px;
  min-height: 38px;
  font-size: 13.5px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--blue) 0%,
    #3b82f6 50%,
    #60a5fa 100%
  );
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(37, 99, 235, 0.55);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#heroCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  animation: pulse 1.8s var(--ease-soft) infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--ink);
}
.gradient-text {
  background: linear-gradient(
    118deg,
    #1d4ed8 0%,
    #2563eb 30%,
    #7c3aed 65%,
    #a855f7 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  background-size: 200% auto;
  animation: gradientShift 6s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 100% center;
  }
}

.hero-subtitle {
  max-width: 580px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.hero-stats:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(37, 99, 235, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

/* Marquee */
.hero-clubs-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  padding: 6px 0;
}
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.06);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .hero {
    padding: 64px 0 48px;
  }
  .hero-stats {
    gap: 16px;
    padding: 10px 20px;
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .stat-num {
    font-size: 17px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-divider {
    height: 22px;
  }
  .hero-title {
    letter-spacing: -0.025em;
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 104px 0 80px;
  }
}
@media (min-width: 900px) {
  .hero {
    padding: 120px 0 88px;
  }
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- Clubs preview ---------- */
.clubs-preview {
  padding: 64px 0;
}
.club-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.club-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.club-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}
.club-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 14px;
}
.club-tile h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.club-tile p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Register section ---------- */
.register {
  padding: 64px 0 96px;
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Stepper */
.stepper {
  margin-bottom: 32px;
}
.step-track {
  position: relative;
  height: 4px;
  background: var(--line-2);
  border-radius: 999px;
  margin-bottom: 16px;
  overflow: hidden;
}
.step-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  border-radius: 999px;
  transition: width 0.55s var(--ease);
}
.step-list {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s var(--ease);
  padding: 4px 0;
  flex: 1;
  min-width: 0;
}
.step .step-bullet {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  flex-shrink: 0;
}
.step.active {
  color: var(--ink);
}
.step.active .step-bullet {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.step.done .step-bullet {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}
.step.done .step-bullet::after {
  content: "✓";
}
.step.done .step-bullet-num {
  display: none;
}
.step-label {
  display: none;
}

/* Form steps */
.form-step {
  border: none;
  padding: 0;
  display: none;
  animation: slideUp 0.5s var(--ease) both;
}
.form-step.is-active {
  display: block;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

/* Fields */
.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  font-size: 15px;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  outline: none;
}
.field input::placeholder {
  color: var(--muted-2);
}
.field input:hover,
.field select:hover {
  border-color: #d4d9e3;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.field input.invalid,
.field select.invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.field input.invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 6px;
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.field-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* Form nav */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.form-nav .btn {
  flex: 1;
  max-width: 200px;
}
.form-nav .btn-ghost {
  margin-right: auto;
}
.form-nav .btn-primary {
  margin-left: auto;
}

/* ---------- Club cards (Step 2) ---------- */
.club-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.club-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  user-select: none;
}
.club-card:hover {
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.club-card.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, #f5f8ff 0%, #eef2ff 100%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.club-card.selected .club-check {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  border-color: transparent;
  color: #fff;
  transform: scale(1);
}
.club-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.club-emoji {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
}
.club-info {
  flex: 1;
  min-width: 0;
}
.club-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1px;
  letter-spacing: -0.01em;
}
.club-info p {
  font-size: 13px;
  color: var(--muted);
}
.club-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
  flex-shrink: 0;
  transform: scale(0.85);
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.club-counter {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  font-weight: 500;
}
.club-counter.warn {
  color: var(--danger);
}

/* ---------- Dynamic questions ---------- */
.question-block {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: slideUp 0.4s var(--ease) both;
}
.question-block label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.question-block .examples {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.55;
}
.question-block textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.question-block textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.empty-note {
  text-align: center;
  color: var(--muted);
  padding: 30px 10px;
  font-size: 14px;
}

/* ---------- Rating ---------- */
.rating-wrap {
  text-align: center;
  padding: 30px 0;
}
.stars {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 14px;
}
.star {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.star svg {
  width: 26px;
  height: 26px;
  transition: transform 0.2s var(--ease);
}
.star svg path {
  fill: #d1d5db;
  stroke: #d1d5db;
  transition:
    fill 0.2s var(--ease),
    stroke 0.2s var(--ease);
}
.star:hover {
  transform: translateY(-3px) scale(1.05);
}
.star.active svg path {
  fill: #fbbf24;
  stroke: #f59e0b;
}
.star.active {
  background: #fffbeb;
  border-color: #fde68a;
}
.rating-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  min-height: 20px;
}

/* ---------- Spinner ---------- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner {
  display: inline-block;
}
.btn.is-loading .btn-label {
  opacity: 0.8;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Form alert ---------- */
.form-alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s var(--ease) both;
}
.form-alert.error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* ---------- Success screen ---------- */
.success-screen {
  padding: 80px 0;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.success-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.success-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  border-radius: 50%;
}
.check-circle {
  stroke: var(--ok);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawCircle 0.6s var(--ease) forwards;
}
.check-mark {
  stroke: var(--ok);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: drawCheck 0.4s var(--ease) 0.5s forwards;
}
@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.success-message {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
}
.reg-id-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.reg-id-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.reg-id {
  font-family: "SF Mono", ui-monospace, "Menlo", monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.copy-btn {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.copy-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.success-footnote {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 28px;
  font-weight: 500;
}
.signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.signature-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.signature-role {
  font-size: 12.5px;
  color: var(--muted);
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .step-label {
    display: inline;
  }
  .club-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 720px) {
  .hero {
    padding: 96px 0 72px;
  }
  .form-card {
    padding: 40px 44px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .club-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .club-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .success-card {
    padding: 56px 48px;
  }
}
@media (min-width: 900px) {
  .hero-title {
    font-size: 4.4rem;
  }
}
