/* ================================================================
   Game landing pages — /games/<game>
   Loaded after styles.css. Each page sets --g-a / --g-b on <body>.
   ================================================================ */

.gl-body { --g-a: #6366f1; --g-b: #fbbf24; }

.gl-main { position: relative; z-index: 2; padding-top: 68px; }

/* ── Hero ──────────────────────────────────────────────────── */
.gl-hero { padding: 72px 0 56px; }
.gl-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.gl-id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.gl-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--hair-2), 0 18px 40px -16px var(--g-a);
}
.gl-id .eyebrow { margin-bottom: 6px; }
.gl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.gl-hero h1 .dot { color: var(--g-b); }
.gl-sub {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.3;
  font-weight: 500;
  color: var(--g-b);
}
.gl-pitch {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--txt-2);
  max-width: 34ch;
  margin: 20px 0 32px;
}

/* ── Store badges ──────────────────────────────────────────── */
.gl-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gl-badge { display: inline-flex; border-radius: 9px; transition: transform 0.2s var(--ease); }
.gl-badge:hover { transform: translateY(-2px); }
.gl-badge:focus-visible { outline: 2px solid var(--g-b); outline-offset: 3px; }
.gl-badge img { height: 52px; width: auto; }
.gl-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border: 1px dashed var(--hair-3);
  border-radius: 9px;
  color: var(--txt-2);
  font-size: 14px;
  font-weight: 500;
}
.gl-soon svg { width: 22px; height: 22px; color: var(--txt-3); }
.gl-badge-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-3);
}

/* Device order: set on <html data-os> by the inline head script.
   No script → desktop layout (both badges, App Store first). */
html[data-os="android"] .gl-badge-apple,
html[data-os="android"] .gl-soon { order: 2; }
html[data-os="ios"] .gl-badge-google { order: 2; }
html[data-os="ios"] .gl-badge-apple img,
html[data-os="android"] .gl-badge-google img { height: 60px; }
html[data-os="ios"] .gl-badge-google img,
html[data-os="android"] .gl-badge-apple img { height: 44px; opacity: 0.85; }

/* ── Feature art ───────────────────────────────────────────── */
.gl-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair-2), 0 40px 80px -40px var(--g-a);
  aspect-ratio: 1024 / 500;
  background: var(--bg-card);
}
.gl-art img { width: 100%; height: 100%; object-fit: cover; }

/* ── Features ──────────────────────────────────────────────── */
.gl-section { padding: 56px 0; border-top: 1px solid var(--hair); }
.gl-section > .wrap > .eyebrow { margin-bottom: 28px; }
.gl-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gl-feature {
  background: var(--bg-card);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 22px 20px;
}
.gl-feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.gl-feature p { font-size: 14px; color: var(--txt-2); line-height: 1.6; }
.gl-feature .k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--g-b);
  margin-bottom: 14px;
}

/* ── Screenshots ───────────────────────────────────────────── */
.gl-shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.gl-shots img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  aspect-ratio: 480 / 989;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
  scroll-snap-align: start;
  background: var(--bg-card);
}

/* ── Shared-result callout ─────────────────────────────────── */
.gl-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  padding: 28px 32px;
}
.gl-cta h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.gl-cta p { color: var(--txt-2); font-size: 15px; }

/* ── Footer ────────────────────────────────────────────────── */
.gl-footer { padding: 48px 0 40px; }
.gl-footer .footer-bottom { border-top: 0; padding-top: 0; }
.gl-footer .gl-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.gl-footer .gl-links a { font-size: 14px; color: var(--txt-2); }
.gl-footer .gl-links a:hover { color: var(--txt); }
.gl-tm { font-size: 12px; color: var(--txt-3); line-height: 1.6; margin-bottom: 24px; max-width: 70ch; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .gl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gl-hero { padding: 40px 0 40px; }
  .gl-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 520px) {
  .gl-features { grid-template-columns: minmax(0, 1fr); }
  .gl-icon { width: 72px; height: 72px; border-radius: 18px; }
  .gl-badge img { height: 48px; }
  html[data-os="ios"] .gl-badge-apple img,
  html[data-os="android"] .gl-badge-google img { height: 56px; }
  html[data-os="ios"] .gl-badge-google img,
  html[data-os="android"] .gl-badge-apple img { height: 42px; }
  .gl-cta { padding: 22px 20px; }
  .gl-shots img { width: 180px; }
}
@media (max-width: 760px) {
  .gl-nav .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-aurora .a1, .bg-aurora .a2, .bg-aurora .a3 { animation: none; }
  .gl-badge, .gl-badge:hover { transition: none; transform: none; }
}
