:root {
  --bg:           #0D0B1E;
  --surface:      #1A1630;
  --surface-2:    #231E45;
  --surface-3:    #2D2760;
  --border:       rgba(255,255,255,0.08);
  --purple-primary: #7C3AED;
  --purple-mid:     #A78BFA;
  --purple-light:   #C4B5FD;
  --purple-pale:    rgba(124,58,237,0.16);
  --green: #22C55E;
  --text:   #FFFFFF;
  --text-2: rgba(255,255,255,0.70);
  --text-3: rgba(255,255,255,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; margin: 0 0 12px; }
p { margin: 0 0 12px; color: var(--text-2); }
a { color: var(--purple-light); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--surface); }
.section-title { font-size: 30px; margin-bottom: 8px; }
.section-lead { color: var(--text-3); margin-bottom: 32px; max-width: 640px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,11,30,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

/* ── Legal pages (privacy.html / terms.html) ────────────────────────── */
.legal-page .container { max-width: 760px; }
.legal-back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--text-3); }
.legal-back:hover { color: var(--purple-light); }
.legal-page .updated { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.legal-page h3 { font-size: 18px; margin: 30px 0 10px; color: var(--text); }
.legal-page h3:first-of-type { margin-top: 8px; }
.legal-page p { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { margin: 0 0 14px 22px; color: var(--text-2); }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { display: block; padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ── Hero (split) ────────────────────────────────────────────────────── */
.hero { display: flex; min-height: calc(100vh - 60px); }
.hero-half {
  flex: 1; min-width: 0; padding: 64px 48px;
  display: flex; flex-direction: column; justify-content: flex-start;
}

.hero-promo .wordmark { max-width: 320px; height: auto; margin-bottom: 18px; display: block; }
.hero-tagline { font-size: 17px; color: var(--text-2); max-width: 420px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-promo, .hero-organiser {
  position: relative; color: #fff;
  background-size: cover; background-position: center;
}
.hero-promo::before, .hero-organiser::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,11,30,0.55) 0%, rgba(13,11,30,0.88) 100%);
}
.hero-promo > *, .hero-organiser > * { position: relative; z-index: 1; }
.hero-organiser .badge-logo { max-width: 320px; height: auto; display: block; margin-bottom: 18px; }
.hero-organiser .eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px;
  font-weight: 700; color: var(--purple-light); margin-bottom: 10px;
}
.hero-organiser h2 { font-size: 30px; max-width: 360px; }
.hero-organiser p { max-width: 380px; color: rgba(255,255,255,0.85); margin-bottom: 26px; }

@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero-half { padding: 56px 24px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none; font-family: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--purple-primary), var(--purple-mid)); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-disabled { background: rgba(255,255,255,0.06); color: var(--text-3); cursor: not-allowed; }
.btn-white { background: #fff; color: var(--bg); }
.btn-white:hover { opacity: 0.9; }

/* ── Game mode chips (hero + FAQ) ───────────────────────────────────── */
.modes-row { display: flex; gap: 14px; flex-wrap: wrap; }
.mode-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px 8px 8px; font-size: 13.5px; font-weight: 500;
}
.mode-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 44px; }
.faq-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px;
}
.faq-card img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; margin-bottom: 12px; }
.faq-card h3 { font-size: 16px; margin-bottom: 4px; }
.faq-card p { font-size: 13.5px; margin: 0; }

.faq-qa { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-qa:first-child { border-top: none; }
.faq-qa h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-qa p { font-size: 14px; margin: 0; }

/* ── Support forms ───────────────────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.form-card h3 { font-size: 18px; margin-bottom: 4px; }
.form-card p.hint { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 14.5px;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 11px 12px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--purple-primary); }
.form-msg { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #F87171; }

/* ── Placeholder legal sections ─────────────────────────────────────── */
.placeholder-notice {
  background: var(--purple-pale); border: 1px solid rgba(124,58,237,0.35);
  border-radius: 12px; padding: 14px 18px; font-size: 13.5px; color: var(--purple-light);
  margin-bottom: 20px;
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; max-width: 480px;
}
.contact-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.contact-card .row:first-of-type { border-top: none; }
.contact-card .row span:first-child { color: var(--text-3); }

footer {
  border-top: 1px solid var(--border); padding: 28px 0; text-align: center;
  color: var(--text-3); font-size: 13px;
}
