/* Friendly Fire — shared chrome (footer, consent banner, legal helpers) */
:root {
  --ff-bg-card: #0E1520;
  --ff-bg-card2: #111927;
  --ff-border: rgba(0, 229, 255, 0.15);
  --ff-text: #E8EDF3;
  --ff-dim: #7A8FA6;
  --ff-cyan: #00E5FF;
  --ff-red: #E31837;
}

/* Safe-area insets for iOS */
@supports (padding: max(0px)) {
  body { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
}

/* ── Footer ── */
.ff-footer {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ff-border);
  color: var(--ff-dim);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.ff-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}
.ff-footer-nav a,
.ff-footer-nav button {
  color: var(--ff-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  font-family: inherit;
  min-height: 32px;
}
.ff-footer-nav a:hover,
.ff-footer-nav button:hover,
.ff-footer-nav a:focus-visible,
.ff-footer-nav button:focus-visible {
  color: var(--ff-cyan);
  outline: none;
}
.ff-footer-nav a:focus-visible,
.ff-footer-nav button:focus-visible {
  text-decoration: underline;
}
.ff-footer-copy {
  font-size: 11px;
  color: var(--ff-dim);
  opacity: 0.7;
}

/* ── Consent banner ── */
.ff-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(8, 12, 16, 0.96);
  border-top: 1px solid var(--ff-border);
  backdrop-filter: blur(8px);
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  color: var(--ff-text);
  font-size: 13px;
  max-height: 70vh;
  overflow-y: auto;
  animation: ffConsentIn 0.25s ease;
}
@keyframes ffConsentIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ff-consent-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ff-consent-text strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}
.ff-consent-text p {
  font-size: 12px;
  color: var(--ff-dim);
  line-height: 1.55;
  margin: 0;
}
.ff-consent-text a {
  color: var(--ff-cyan);
  text-decoration: underline;
}
.ff-consent-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ff-consent-btns .ff-btn {
  flex: 1 1 auto;
  min-height: 44px;
}
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ff-btn:focus-visible { outline: 2px solid var(--ff-cyan); outline-offset: 2px; }
.ff-btn-primary { background: linear-gradient(135deg, var(--ff-red), #b5001a); color: #fff; }
.ff-btn-primary:hover { transform: translateY(-1px); }
.ff-btn-ghost { background: transparent; color: var(--ff-text); border-color: rgba(255, 255, 255, 0.12); }
.ff-btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }

@media (min-width: 600px) {
  .ff-consent-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .ff-consent-text { flex: 1; }
  .ff-consent-btns { flex-shrink: 0; }
}

/* ── Consent checkbox on quiz contact step ── */
.ff-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 6px;
  font-size: 12px;
  color: var(--ff-dim);
  line-height: 1.5;
  width: 100%;
}
.ff-consent-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--ff-cyan);
  flex-shrink: 0;
}
.ff-consent-check a { color: var(--ff-cyan); }
.ff-inline-error {
  display: none;
  font-size: 12px;
  color: #ff6b7a;
  margin: 6px 0 0;
  font-weight: 600;
  width: 100%;
}
.ff-inline-error.show { display: block; }

/* ── Noscript ── */
.ff-noscript {
  display: block;
  padding: 24px;
  margin: 24px auto;
  max-width: 520px;
  background: var(--ff-bg-card);
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  color: var(--ff-text);
  font-size: 14px;
  text-align: center;
}

/* ── Desktop: keep quiz centered, don't widen ── */
@media (min-width: 768px) {
  .wrapper { margin: 0 auto; }
}

/* ── Promotion Terms modal ── */
.ff-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ff-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.ff-modal-panel { position: relative; max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; background: #0f1419; color: #e6edf3; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 24px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.ff-modal-title { font-size: 18px; font-weight: 800; margin: 0 0 12px; padding-right: 28px; }
.ff-modal-body { font-size: 14px; line-height: 1.6; color: #cfd6dd; }
.ff-modal-body ul { padding-left: 20px; margin: 8px 0; }
.ff-modal-body li { margin-bottom: 6px; }
.ff-modal-body a { color: #00E5FF; }
.ff-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.ff-modal-link { font-size: 13px; color: #00E5FF; text-decoration: none; }
.ff-modal-link:hover { text-decoration: underline; }
.ff-modal-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: #cfd6dd; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.ff-modal-close:hover { color: #fff; }

/* ── Promo terms inline link on reward screen ── */
.ff-promo-line { font-size: 12px; color: #b3bcc4; margin-top: 10px; text-align: center; line-height: 1.5; }
.ff-promo-line a, .ff-promo-line button { color: #00E5FF; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* ════════════════════════════════════════════════════════════════════════
   POLISH LAYER — overrides on top of inline page styles.
   Reference: Friendly Fire Booking brand (FF red, dark warm bg, neon cyan accent).
   Edit the tokens below to retune the campaign look.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* — Brand colors — */
  --ff-brand-red: #E31837;
  --ff-brand-red-deep: #8b0000;
  --ff-brand-blue: #006491;
  --ff-accent-cyan: #00E5FF;
  --ff-accent-green: #39FF14;
  --ff-amber: #FFB020;

  /* — Surfaces — */
  --ff-bg: #080C10;
  --ff-bg-2: #0E1520;
  --ff-bg-3: #111927;

  /* — Gradients — */
  --ff-grad-cta: linear-gradient(135deg, #E31837 0%, #c0001f 50%, #006491 100%);
  --ff-grad-headline: linear-gradient(90deg, #E31837, #00E5FF);
  --ff-grad-ambient: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(227,24,55,0.18), transparent 70%);

  /* — Radius rhythm — */
  --ff-r-sm: 10px;
  --ff-r-md: 14px;
  --ff-r-lg: 18px;

  /* — Shadows / glow — */
  --ff-shadow-card: 0 10px 30px -12px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.03) inset;
  --ff-glow-red: 0 0 32px rgba(227,24,55,0.45);
  --ff-glow-cyan: 0 0 24px rgba(0,229,255,0.35);

  /* — Motion — */
  --ff-ease: cubic-bezier(.4,0,.2,1);
}

/* — Premium ambient backdrop above the existing grid — */
body::before { opacity: 0.85; }
body::after {
  width: 720px; height: 720px; top: -260px; left: 50%;
  transform: translateX(-50%);
  background: var(--ff-grad-ambient);
}

/* — Hero / start screen polish — */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; margin-bottom: 14px;
  border-radius: 99px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ff-accent-cyan);
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.22);
  text-shadow: 0 0 10px rgba(0,229,255,0.4);
}
.start-title { font-size: 30px !important; letter-spacing: -0.7px !important; }
@media (min-width: 480px) { .start-title { font-size: 36px !important; } }
.start-subtitle { font-size: 15.5px !important; max-width: 360px !important; }
.stat-pill {
  transition: transform 0.2s var(--ff-ease), border-color 0.2s var(--ff-ease);
  box-shadow: var(--ff-shadow-card);
}
.stat-pill:hover { transform: translateY(-2px); border-color: rgba(0,229,255,0.35); }
.start-btn {
  background: var(--ff-grad-cta) !important;
  box-shadow: 0 10px 30px -8px rgba(227,24,55,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
}
.start-btn:hover { box-shadow: 0 16px 40px -10px rgba(227,24,55,0.7), 0 0 0 1px rgba(255,255,255,0.08) inset !important; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 10px; margin-top: 18px;
  font-size: 11px; font-weight: 600; color: var(--ff-dim);
  letter-spacing: 0.4px;
}
.hero-trust-item { white-space: nowrap; }
.hero-trust-dot { opacity: 0.4; }

/* — Card surface refinement (question + bonus + reward) — */
.question-card, .bonus-card, .reward-card { box-shadow: var(--ff-shadow-card); }

/* — Option button polish (selected + hover crispness) — */
.option-btn { min-height: 56px; }
.option-btn:hover:not(:disabled) { box-shadow: 0 6px 18px -10px rgba(0,229,255,0.6); }

/* — Form polish — */
.form-input { min-height: 50px; }
.form-input:focus { box-shadow: 0 0 0 3px rgba(0,229,255,0.18) !important; }

/* — Reward code: more "premium chip" look — */
.reward-claim-code {
  font-size: 18px !important;
  padding: 14px 22px !important;
  background: linear-gradient(180deg, rgba(57,255,20,0.08), rgba(57,255,20,0.03)) !important;
  box-shadow: 0 0 24px -6px rgba(57,255,20,0.35), 0 1px 0 rgba(255,255,255,0.05) inset;
}

/* — Promo info line on reward screen — */
.ff-promo-line { padding-top: 4px; }

/* — Focus visibility (accessibility) — */
button:focus-visible,
a:focus-visible,
.option-btn:focus-visible,
.chip:focus-visible,
.bonus-card:focus-visible,
.form-input:focus-visible {
  outline: 2px solid var(--ff-accent-cyan);
  outline-offset: 2px;
}

/* — Footer polish — */
.ff-footer { border-top-color: rgba(0,229,255,0.12); }
.ff-footer-nav a, .ff-footer-nav button { letter-spacing: 0.8px; }

/* — Desktop framing: keep quiz centered with subtle elevation — */
@media (min-width: 768px) {
  .wrapper {
    max-width: 560px !important;
    margin-top: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(14,21,32,0.6), rgba(8,12,16,0.6));
    border: 1px solid rgba(0,229,255,0.08);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
    padding: 8px 28px 48px !important;
    backdrop-filter: blur(8px);
  }
}

/* — Reduced motion: respect user preference — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* — Prevent horizontal scroll — */
html, body { max-width: 100%; overflow-x: hidden; }

/* ════════════════════════════════════════════════════════════════════════
   DESKTOP STAGE — two-column campaign layout.
   Mobile: marketing aside hidden, quiz wrapper unchanged.
   Desktop (≥980px): aside on the left, quiz card on the right, centered.
   Edit --ff-stage-max to retune total width.
   ════════════════════════════════════════════════════════════════════════ */
:root { --ff-stage-max: 1120px; --ff-stage-gap: 56px; }

.ff-stage { width: 100%; display: contents; }
.ff-marketing { display: none; }

@media (min-width: 980px) {
  body { justify-content: center; }
  .ff-stage {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(440px, 520px);
    align-items: center;
    gap: var(--ff-stage-gap);
    max-width: var(--ff-stage-max);
    width: 100%;
    margin: 0 auto;
    padding: 40px 32px;
    min-height: 100vh;
  }
  .ff-marketing {
    display: block;
    color: var(--ff-text);
    padding-right: 8px;
    animation: ffMkIn 0.6s var(--ff-ease) both;
  }
  .ff-mk-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ff-accent-cyan);
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.22);
    margin-bottom: 22px;
  }
  .ff-mk-title {
    font-size: 56px; line-height: 1.02; letter-spacing: -1.4px;
    font-weight: 900; margin: 0 0 22px; color: #fff;
  }
  .ff-mk-title span {
    background: var(--ff-grad-headline);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .ff-mk-lede {
    font-size: 17px; line-height: 1.6; color: var(--ff-dim);
    max-width: 460px; margin: 0 0 28px;
  }
  .ff-mk-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
  .ff-mk-list li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(14,21,32,0.6), rgba(8,12,16,0.4));
    border: 1px solid rgba(0,229,255,0.10);
    border-radius: var(--ff-r-md);
    transition: border-color 0.2s var(--ff-ease), transform 0.2s var(--ff-ease);
  }
  .ff-mk-list li:hover { border-color: rgba(0,229,255,0.28); transform: translateX(3px); }
  .ff-mk-ic {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center; font-size: 18px;
    background: rgba(227,24,55,0.10);
    border: 1px solid rgba(227,24,55,0.25);
  }
  .ff-mk-list strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; font-weight: 700; }
  .ff-mk-list span { font-size: 13px; color: var(--ff-dim); line-height: 1.45; }
  .ff-mk-foot {
    font-size: 12px; color: var(--ff-dim); letter-spacing: 0.4px;
    padding-top: 18px; border-top: 1px solid rgba(0,229,255,0.10);
  }

  /* Quiz card: tighter inside the stage, no longer needs to be full viewport */
  .wrapper {
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 28px 28px 36px !important;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(14,21,32,0.7), rgba(8,12,16,0.7));
    border: 1px solid rgba(0,229,255,0.10);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.02) inset;
    backdrop-filter: blur(10px);
  }

  /* Footer stretches across full stage width below */
  .ff-footer { grid-column: 1 / -1; max-width: var(--ff-stage-max); margin: 8px auto 0; }
}

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

/* Larger desktops: a bit more breathing room */
@media (min-width: 1280px) {
  :root { --ff-stage-max: 1200px; --ff-stage-gap: 72px; }
  .ff-mk-title { font-size: 64px; }
}

/* ───────────── SEO content block (visible, tasteful) ───────────── */
.ff-seo {
  width: 100%;
  max-width: 720px;
  margin: 8px auto 28px;
  padding: 22px 20px;
  background: rgba(14,21,32,0.55);
  border: 1px solid var(--border, rgba(0,229,255,0.12));
  border-radius: 14px;
  color: var(--text-dim, #7A8FA6);
  font-size: 14px;
  line-height: 1.65;
  backdrop-filter: blur(4px);
}
.ff-seo h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #E8EDF3;
  margin: 0 0 10px;
  text-transform: none;
}
.ff-seo p { margin: 0 0 10px; }
.ff-seo p:last-child { margin: 0; }
.ff-seo-links { font-size: 13px; }
.ff-seo-links a {
  color: var(--neon-cyan, #00E5FF);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,229,255,0.3);
}
.ff-seo-links a:hover { border-bottom-color: var(--neon-cyan, #00E5FF); }
.ff-seo-lede { color: #B8C5D3; }

/* Accordion */
.ff-seo-acc {
  border-top: 1px solid rgba(0,229,255,0.10);
  margin: 0;
}
.ff-seo-acc:first-of-type { border-top: 1px solid rgba(0,229,255,0.18); margin-top: 14px; }
.ff-seo-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 36px 14px 4px;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #E8EDF3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease;
}
.ff-seo-acc > summary::-webkit-details-marker { display: none; }
.ff-seo-acc > summary::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--neon-cyan, #00E5FF);
  border-bottom: 2px solid var(--neon-cyan, #00E5FF);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s ease;
}
.ff-seo-acc[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.ff-seo-acc > summary:hover { color: var(--neon-cyan, #00E5FF); }
.ff-seo-acc > *:not(summary) { padding: 0 4px 14px; margin: 0; }
.ff-seo-acc ul.ff-seo-list { padding: 0 4px 14px 22px; }
.ff-seo-acc ul.ff-seo-list li { margin-bottom: 6px; }

@media (min-width: 980px) {
  .ff-seo { grid-column: 1 / -1; max-width: var(--ff-stage-max, 1120px); }
}

/* ───────────── Mobile-friendly language switcher ───────────── */
.ff-lang {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 50;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: rgba(8,12,16,0.78);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.ff-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #B8C5D3;
  text-decoration: none;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ff-lang-btn:hover { color: #fff; }
.ff-lang-btn.is-active {
  background: linear-gradient(135deg, var(--neon-cyan, #00E5FF), #007a99);
  color: #061015;
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}
@media (min-width: 980px) {
  .ff-lang { top: 18px; right: 22px; }
  .ff-lang-btn { min-width: 44px; height: 34px; font-size: 13px; }
}
