/* =============================================================
   Side Quest — Landing page styles (index.php)
   ============================================================= */

:root {
  --green: #42BC00;
  --green-dark: #1B4E00;
  --bg: #1D1D1D;
  --panel: #2D2D2D;
  --recess: #161616;
  --text: #F0F0F0;
  --text-2: #A0A0A0;
  --text-dis: #606060;
  --line: #4a4a4a;
  --line-2: #606060;
  --ff-display: 'Orbitron', sans-serif;
  --ff-body: 'Nunito', sans-serif;

  --g-trivia:   #00CFFF;
  --g-whos:     #A855F7;
  --g-feud:     #FF6B00;
  --g-blitz:    #39FF14;
  --g-twenty:   #FFB800;
  --g-timeline: #6366F1;
  --g-closest:  #FF2D55;
  --g-snipe:    #FF006E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: -1px -1px;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--green); color: #0d0d0d; }
a { text-decoration: none; color: inherit; }

/* ── header ── */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 32px; height: 32px; flex: none;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
  box-shadow: 0 0 18px rgba(66,188,0,0.55);
}
.brand-name { font-family: var(--ff-display); font-weight: 900; font-size: 22px; letter-spacing: 1.5px; }
.brand-name .q { color: var(--green); }
.top-meta {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: 2px; color: var(--text-2); text-transform: uppercase;
}
.top-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pip 1.6s ease-in-out infinite;
}
@keyframes pip { 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* ── hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  text-align: left;
  padding: 120px clamp(24px, 6vw, 88px) clamp(64px, 9vh, 110px);
  overflow: hidden;
}
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center 22%; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-bg.active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(95% 85% at 14% 92%, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.25) 58%, transparent 72%),
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 30%, rgba(0,0,0,0.38) 58%, rgba(15,15,15,0.9) 86%, var(--bg) 100%);
}
.bloom { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bloom span {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  animation: drift 18s ease-in-out infinite;
}
.bloom .b1 { width: 560px; height: 560px; background: var(--green);   top: -160px; left: -120px; opacity: .26; }
.bloom .b3 { width: 420px; height: 420px; background: var(--g-snipe); bottom: -160px; left: 16%; opacity: .18; animation-delay: -8s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(28px,-22px) scale(1.08); }
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 30%, rgba(0,0,0,0.68) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.12) 2px 3px);
}
.hero-inner { position: relative; z-index: 2; max-width: 580px; display: flex; flex-direction: column; align-items: flex-start; }

.kicker {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(10px, 1.4vw, 12.5px); letter-spacing: 4px;
  color: var(--green); text-transform: uppercase;
  margin-bottom: 26px;
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before, .kicker::after { content: ''; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--green)); }
.kicker::after { background: linear-gradient(90deg, var(--green), transparent); }

.wordmark {
  font-family: var(--ff-display); font-weight: 900;
  font-size: clamp(56px, 11vw, 132px);
  line-height: 0.9; letter-spacing: 2px;
}
.wordmark .l1 { color: var(--text); display: block; }
.wordmark .l2 { color: var(--green); display: block; text-shadow: 0 0 60px rgba(66,188,0,0.5), 0 0 24px rgba(66,188,0,0.4); }

.tagline {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(20px, 3.4vw, 38px); letter-spacing: 0.5px;
  margin-top: 34px; line-height: 1.15;
}
.tagline .dim { color: var(--text-2); }
.lede {
  margin-top: 22px; max-width: 460px;
  color: var(--text-2); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6;
}

/* CTA */
.cta {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(16px, 2vw, 20px); letter-spacing: 1px;
  color: #0d1a06; background: var(--green);
  border: none; border-radius: 12px;
  padding: 20px 38px; margin-top: 44px; cursor: pointer;
  box-shadow: 0 0 0 6px rgba(66,188,0,0.14), 0 0 44px 4px rgba(66,188,0,0.5), 0 10px 30px rgba(0,0,0,0.5);
  transition: transform .12s ease, box-shadow .18s ease, background .15s ease, color .15s ease;
  animation: ctaGlow 2.6s ease-in-out infinite;
}
.cta i { font-size: 0.92em; }
.cta:hover { background: #000; color: var(--green); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(66,188,0,0.2), 0 0 60px 8px rgba(66,188,0,0.6), 0 14px 34px rgba(0,0,0,0.55); }
.cta:active { transform: translateY(0); }
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 0 0 6px rgba(66,188,0,0.12), 0 0 36px 2px rgba(66,188,0,0.42), 0 10px 30px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(66,188,0,0.08), 0 0 56px 8px rgba(66,188,0,0.6), 0 10px 30px rgba(0,0,0,0.5); }
}

.hero-credit {
  position: absolute; right: clamp(24px, 6vw, 88px); bottom: clamp(22px, 4vh, 34px); z-index: 2;
  font-family: var(--ff-display); font-weight: 700; font-size: 11px; letter-spacing: 2px;
  color: var(--text-2); text-transform: uppercase; text-align: right;
}
.hero-credit span,
.hero-credit a { color: var(--green); text-decoration: none; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--ff-display); font-weight: 700; font-size: 10px; letter-spacing: 2.5px;
  color: var(--text-dis); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint i { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

/* ── section frame ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
section.block { position: relative; z-index: 2; padding: clamp(70px, 9vw, 120px) 0; background: var(--bg); }
.sec-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-eyebrow {
  font-family: var(--ff-display); font-weight: 700; font-size: 11px; letter-spacing: 3.5px;
  color: var(--green); text-transform: uppercase; margin-bottom: 14px;
}
.sec-title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.5px; }
.sec-sub { margin-top: 14px; color: var(--text-2); font-size: clamp(14px, 1.7vw, 17px); max-width: 540px; margin-left: auto; margin-right: auto; }

.games-divider { position: relative; z-index: 2; border: none; height: 1px; background-color: var(--bg); background-image: linear-gradient(90deg, transparent, #333, transparent); }

/* ── game grid ── */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gcard {
  --gc: var(--green);
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--gc) 14%, transparent), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 188px;
  transition: transform .14s ease, border-color .15s ease, box-shadow .2s ease;
}
.gcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gc); opacity: 0.85;
  box-shadow: 0 0 16px var(--gc);
}
.gcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--gc) 55%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 30px color-mix(in srgb, var(--gc) 22%, transparent);
}
.gcard .gtop { display: flex; align-items: center; justify-content: space-between; }
.gcard .gicon {
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 20px;
  color: var(--gc);
  background: color-mix(in srgb, var(--gc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--gc) 38%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--gc) 16%, transparent);
}
.gcard .gnum { font-family: var(--ff-display); font-weight: 700; font-size: 12px; color: var(--text-dis); letter-spacing: 1px; }
.gcard .gname { font-family: var(--ff-display); font-weight: 700; font-size: 17px; letter-spacing: 0.3px; line-height: 1.2; color: var(--text); }
.gcard .gdesc { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin-top: -4px; }
.gcard .gplay {
  margin-top: auto; font-family: var(--ff-display); font-weight: 700; font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gc);
  opacity: 0; transform: translateX(-6px); transition: opacity .15s ease, transform .15s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.gcard:hover .gplay { opacity: 1; transform: translateX(0); }

/* ── how it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 38px 28px 32px;
}
.step .snum {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--ff-display); font-weight: 900; font-size: 40px;
  color: rgba(255,255,255,0.05); line-height: 1;
}
.step .sic {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 26px;
  color: var(--green); border-radius: 16px;
  background: rgba(66,188,0,0.1); border: 1px solid rgba(66,188,0,0.35);
  box-shadow: inset 0 0 24px rgba(66,188,0,0.12);
}
.step h3 { font-family: var(--ff-display); font-weight: 700; font-size: 18px; letter-spacing: 0.3px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.step-arrow { position: absolute; top: 50%; right: -16px; transform: translateY(-50%); color: #3a3a3a; font-size: 16px; z-index: 3; }

/* ── footer ── */
.footer {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(70px, 9vw, 110px) clamp(20px,5vw,64px) 64px;
  border-top: 1px solid #2a2a2a;
  overflow: hidden;
  background: var(--bg);
}
.footer .fbloom {
  position: absolute; width: 520px; height: 320px; left: 50%; top: -40px;
  transform: translateX(-50%);
  background: var(--green); filter: blur(120px); opacity: 0.16; border-radius: 50%; pointer-events: none;
}
.footer-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.footer .ftag { font-family: var(--ff-display); font-weight: 700; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.2; margin-bottom: 8px; }
.footer .ftag .q { color: var(--green); }
.footer .fsub { color: var(--text-2); font-size: 15px; margin-bottom: 34px; }
.cta.sm { font-size: 15px; padding: 15px 30px; margin-top: 0; }

.footer .fbrand { display: flex; align-items: center; gap: 11px; margin-top: 54px; color: var(--text-dis); }
.footer .fbrand .brand-mark { width: 22px; height: 22px; box-shadow: 0 0 12px rgba(66,188,0,0.4); }
.footer .fbrand .fw { font-family: var(--ff-display); font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--text-2); }
.footer .fcopy { margin-top: 14px; font-size: 11.5px; color: var(--text-dis); letter-spacing: 0.3px; }
.footer .fcopy a { color: var(--text-2); }
.footer .fcopy a:hover { color: var(--green); }

/* ── responsive ── */
@media (max-width: 768px) {
  /* Center hero content vertically and horizontally */
  .hero {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 24px 90px;
  }
  .hero-inner { align-items: center; }
  .lede { max-width: 100%; }

  /* Hide credit — it overlaps scroll-hint and is also in the footer */
  .hero-credit { display: none; }
}

@media (max-width: 1000px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step-arrow { display: none; }
}
@media (max-width: 560px) {
  .games { grid-template-columns: 1fr; }
  .top-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bloom span, .cta, .top-meta .dot, .scroll-hint i { animation: none !important; }
}
