@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;600;700&display=swap');

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

:root {
  --gold:        #d4af37;
  --gold-light:  #f5d060;
  --gold-dark:   #a07c10;
  --bg-deep:     #08060f;
  --bg-mid:      #0e0c1a;
  --bg-card:     rgba(255, 255, 255, 0.045);
  --border-gold: rgba(212, 175, 55, 0.30);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-white:  #f4eedc;
  --text-muted:  rgba(244, 238, 220, 0.50);
  --text-hint:   rgba(255, 255, 255, 0.25);
  --error:       #f09595;
  --success:     #5dcaa5;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
}

html, body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* ── Background atmosphere ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,175,55,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(30,15,60,0.8) 0%, transparent 70%),
    linear-gradient(160deg, #110820 0%, #080614 40%, #050d18 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle particle dots */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(212,175,55,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, rgba(212,175,55,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.1) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(212,175,55,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 2rem;
  gap: 0;
}

/* ── Logo ── */
.logo-wrap {
  text-align: center;
  margin-bottom: 1.6rem;
  animation: fadeDown 0.7s ease both;
}

.logo-wrap img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(212,175,55,0.45)) drop-shadow(0 0 8px rgba(255,255,255,0.15));
}

.tagline {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.75;
}

/* ── Stars ── */
.stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 1.4rem;
  animation: fadeDown 0.7s 0.1s ease both;
}

.star {
  color: var(--gold);
  font-size: 13px;
  animation: starPulse 2.4s ease-in-out infinite;
}
.star:nth-child(2) { animation-delay: 0.15s; }
.star:nth-child(3) { animation-delay: 0.30s; }
.star:nth-child(4) { animation-delay: 0.45s; }
.star:nth-child(5) { animation-delay: 0.60s; }

/* ── Card ── */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeUp 0.7s 0.15s ease both;
  position: relative;
  overflow: hidden;
}

/* Gold top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.4rem;
  font-weight: 300;
}

/* ── Age warning ── */
.warning-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 1.3rem;
}

.warning-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.warning-text {
  font-size: 12px;
  color: rgba(212,175,55,0.85);
  line-height: 1.5;
}

/* ── Form inputs ── */
.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input-field {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-field::placeholder {
  color: var(--text-hint);
}

.input-field:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

.input-field.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(240,149,149,0.10);
}

/* ── Checkbox ── */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 1.1rem 0 0.2rem;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.checkbox-label strong {
  color: var(--gold);
  font-weight: 600;
}

/* ── Error messages ── */
.error-msg {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  display: none;
  animation: shake 0.3s ease;
}

.error-msg.visible {
  display: block;
}

/* ── Register button ── */
.btn-register {
  width: 100%;
  padding: 15px;
  margin-top: 1.3rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 45%, var(--gold-light) 100%);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #15100a;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  /* touch-friendly */
  min-height: 52px;
  touch-action: manipulation;
}

.btn-register::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-register:hover::after {
  left: 130%;
}

.btn-register:hover {
  opacity: 0.93;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

.btn-register:active {
  transform: scale(0.98) translateY(0);
  box-shadow: none;
}

.btn-register:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.4rem 0 1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.divider-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-hint);
}

/* ── Platform badges ── */
.platforms {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 11px;
  letter-spacing: 0.5px;
}

/* ── Footer ── */
.footer-note {
  margin-top: 1.5rem;
  font-size: 11px;
  color: var(--text-hint);
  text-align: center;
  max-width: 420px;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* ── Success state ── */
.btn-register.sending {
  background: linear-gradient(135deg, #1d6e50, #2a9e75);
  color: #fff;
  pointer-events: none;
}

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes starPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.85); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

/* ── Responsive / Mobile-first ── */
@media (max-width: 480px) {
  .page {
    padding: 1.8rem 0.9rem 1.5rem;
  }

  .logo-wrap img {
    width: 190px;
  }

  .card {
    padding: 1.5rem 1.1rem 1.3rem;
    border-radius: 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .input-field {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 13px 14px;
  }

  .btn-register {
    font-size: 15px;
    min-height: 54px;
  }

  .checkbox-label {
    font-size: 13px;
  }
}
