/* Trivia Go — game landing page (intesseract.games/trivia-go/)
   Look & feel follows the in-game art: a TV quiz-show stage (royal blue, gold, neon)
   and a warm, sunset-lit home for the character & pet sections. */

:root {
  --stage-900: #070d3a;
  --stage-800: #0c1760;
  --stage-700: #13228a;
  --stage-600: #1d34b8;
  --neon: #5fd0ff;
  --gold: #ffcc2e;
  --gold-2: #ffa41b;
  --gold-3: #d9730b;
  --gold-4: #9c4a06;
  --magenta: #ff4fb8;
  --home-900: #3a160b;
  --home-800: #5b2412;
  --home-600: #c2521f;
  --home-400: #f79a4f;
  --home-200: #ffd7b0;
  --text: #ffffff;
  --text-dim: #cfd8ff;
  --text-warm: #ffe6cf;
  --radius: 24px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--stage-900);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 400; line-height: 1.02; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Chunky 3D title text (matches the store art) ---------- */
.chunky {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: 2px rgba(10, 20, 90, .35);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #c9d4ff,
    0 4px 0 #8e9ee8,
    0 6px 0 #25318f,
    0 8px 0 #121a5c,
    0 14px 24px rgba(0, 0, 0, .45);
}
.chunky .gold,
.chunky.gold {
  color: var(--gold);
  -webkit-text-stroke: 2px rgba(120, 50, 0, .35);
  text-shadow:
    0 2px 0 var(--gold-2),
    0 4px 0 var(--gold-3),
    0 6px 0 #b85a07,
    0 8px 0 var(--gold-4),
    0 14px 24px rgba(0, 0, 0, .45);
}

/* ---------- Top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto; z-index: 10; padding: 18px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.mini { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; }
.mini img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.by { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .9rem; text-decoration: none; font-weight: 700; }
.by:hover { color: #fff; }

/* ---------- Stage backdrop (spotlights, truss glow, neon floor) ---------- */
.stage {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 520px at 50% 108%, rgba(95, 208, 255, .22), transparent 60%),
    radial-gradient(900px 600px at 50% -10%, rgba(29, 52, 184, .9), transparent 70%),
    linear-gradient(180deg, var(--stage-800) 0%, var(--stage-900) 100%);
  overflow: hidden;
}
.stage::before { /* spotlight beams */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 160deg at 12% -5%, transparent 0 8deg, rgba(255, 255, 255, .10) 14deg, transparent 22deg),
    conic-gradient(from 176deg at 50% -8%, transparent 0 6deg, rgba(255, 255, 255, .08) 12deg, transparent 18deg),
    conic-gradient(from 184deg at 88% -5%, transparent 0 8deg, rgba(255, 255, 255, .10) 14deg, transparent 22deg);
}
.stage::after { /* neon floor ring */
  content: ""; position: absolute; left: 50%; bottom: -160px; z-index: -1; pointer-events: none;
  width: 1400px; height: 320px; transform: translateX(-50%);
  border-radius: 50%;
  border: 3px solid rgba(95, 208, 255, .55);
  box-shadow: 0 0 30px rgba(95, 208, 255, .45), inset 0 0 40px rgba(95, 208, 255, .25);
}

/* Bulb strip, like the studio light rows */
.bulbs {
  height: 14px;
  background: radial-gradient(circle, #fff6c8 0 3px, rgba(255, 204, 46, .6) 4px, transparent 7px) 0 50% / 34px 14px repeat-x;
  filter: drop-shadow(0 0 6px rgba(255, 204, 46, .8));
  opacity: .9;
}

/* Confetti */
.confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.confetti i {
  position: absolute; width: 14px; height: 8px; border-radius: 2px; opacity: .85;
  animation: fall 9s linear infinite;
}
.confetti i:nth-child(4n+1) { background: var(--gold); }
.confetti i:nth-child(4n+2) { background: var(--magenta); }
.confetti i:nth-child(4n+3) { background: var(--neon); }
.confetti i:nth-child(4n)   { background: #ff8a3d; }
@keyframes fall {
  from { transform: translateY(-40px) rotate(0deg); }
  to   { transform: translateY(110vh) rotate(720deg); }
}
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; } }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 110px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(255, 204, 46, .14); border: 1px solid rgba(255, 204, 46, .45);
  color: var(--gold); font-weight: 900; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }
.hero h1 { font-size: clamp(3.6rem, 9vw, 6.6rem); margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero .tagline { font-size: 1.25rem; color: var(--text-dim); max-width: 30ch; margin-bottom: 30px; font-weight: 600; }
.hero .tagline strong { color: #fff; }

/* Store buttons — PLACEHOLDER. Replace with the official badges:
   Apple:  https://developer.apple.com/app-store/marketing/guidelines/
   Google: https://play.google.com/intl/en_us/badges/ */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-2px); border-color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .7rem; line-height: 1.1; opacity: .8; }
.store-btn strong { display: block; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; }

/* Phone frames */
.phone {
  position: relative;
  width: 100%; aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 9px;
  background: linear-gradient(145deg, #2a2f4a, #0b0d18);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

.phone-fan { position: relative; height: 560px; }
.phone-fan .phone { position: absolute; top: 50%; left: 50%; width: 270px; }
.phone-fan .p1 { transform: translate(-112%, -46%) rotate(-10deg) scale(.86); }
.phone-fan .p3 { transform: translate(12%, -46%) rotate(10deg) scale(.86); }
.phone-fan .p2 { transform: translate(-50%, -52%); z-index: 2; box-shadow: 0 0 0 2px rgba(255, 204, 46, .6), 0 0 50px rgba(95, 208, 255, .35), 0 40px 80px rgba(0, 0, 0, .6); }

/* ---------- Section divider label ---------- */
.zone-label { text-align: center; padding: 72px 0 8px; }
.zone-label span {
  display: inline-block; font-family: var(--display); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 22px; border-radius: 999px;
}
.zone-stage .zone-label span { color: var(--neon); border: 2px solid rgba(95, 208, 255, .5); box-shadow: 0 0 20px rgba(95, 208, 255, .25); }
.zone-home  .zone-label span { color: var(--home-200); border: 2px solid rgba(255, 215, 176, .5); }

/* ---------- Feature rows ---------- */
.feature { padding: 64px 0; }
.feature .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: grid; place-items: center; }
.feature-media .phone { max-width: 320px; }
.feature h2 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
.feature p { font-size: 1.15rem; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; }

.zone-stage { background: linear-gradient(180deg, var(--stage-900), #0a1450 50%, var(--stage-900)); }
.zone-stage .feature p { color: var(--text-dim); }
.zone-stage .chips li { background: rgba(95, 208, 255, .12); color: #bfeaff; border: 1px solid rgba(95, 208, 255, .35); }

.zone-home {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255, 170, 90, .35), transparent 60%),
    linear-gradient(180deg, var(--home-800), var(--home-900));
}
.zone-home::before { /* soft window light */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 220, 170, .05) 140px 220px);
}
.zone-home .container { position: relative; }
.zone-home .feature p { color: var(--text-warm); }
.zone-home .chips li { background: rgba(255, 215, 176, .12); color: var(--home-200); border: 1px solid rgba(255, 215, 176, .35); }
.zone-home .chunky {
  -webkit-text-stroke: 2px rgba(90, 30, 5, .35);
  text-shadow: 0 2px 0 #ffe3c8, 0 4px 0 #e8a978, 0 6px 0 #8a3a14, 0 8px 0 #5b2412, 0 14px 24px rgba(0, 0, 0, .4);
}
.zone-home .phone { box-shadow: 0 0 0 2px rgba(255, 215, 176, .3), 0 0 60px rgba(247, 154, 79, .3), 0 30px 60px rgba(0, 0, 0, .5); }

/* ---------- Gallery ---------- */
.gallery { padding: 88px 0 96px; }
.gallery h2 { text-align: center; font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 36px; }
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 24px; margin: 0 auto; max-width: 1400px;
  scrollbar-width: thin; scrollbar-color: var(--stage-600) transparent;
}
.shots figure { margin: 0; flex: 0 0 230px; scroll-snap-align: center; }
.shots .phone { padding: 7px; border-radius: 28px; }
.shots .phone img { border-radius: 22px; }
@media (min-width: 1300px) { .shots { justify-content: center; } }

/* ---------- CTA ---------- */
.cta { padding: 110px 0 150px; text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
.cta p { color: var(--text-dim); font-size: 1.2rem; margin-bottom: 30px; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #050926; border-top: 1px solid rgba(255, 255, 255, .08); padding: 32px 0; color: #8e99d6; font-size: .9rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.notfound .big { font-size: clamp(6rem, 22vw, 11rem); margin-bottom: 8px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { color: var(--text-dim); margin-bottom: 30px; font-size: 1.15rem; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-size: 1.2rem; letter-spacing: .04em; color: #5a2a00;
  background: linear-gradient(180deg, #ffe066, var(--gold) 50%, var(--gold-2));
  box-shadow: 0 5px 0 var(--gold-3), 0 12px 24px rgba(0, 0, 0, .35);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-3), 0 6px 12px rgba(0, 0, 0, .35); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { padding: 100px 0 90px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .phone-fan { height: 440px; }
  .phone-fan .phone { width: 210px; }
  .feature .container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .feature.flip .feature-media { order: 0; }
  .feature p { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .feature-media .phone { max-width: 260px; }
}
@media (max-width: 480px) {
  .phone-fan { height: 380px; }
  .phone-fan .phone { width: 180px; }
  .phone-fan .p1 { transform: translate(-100%, -46%) rotate(-10deg) scale(.82); }
  .phone-fan .p3 { transform: translate(0%, -46%) rotate(10deg) scale(.82); }
  .store-btn { min-width: 0; flex: 1 1 160px; justify-content: center; }
  .shots figure { flex-basis: 200px; }
}
