/* ==========================================================================
   Game pages. Shared layout for every game's promo page; each page sets its
   own colours on <body class="game-page"> with --accent, --accent-soft and
   --game-sky.
   ========================================================================== */

.game-page { --accent-ink: #fff; }

/* ---------- Hero ---------- */
.game-hero {
  position: relative; overflow: hidden;
  margin-top: -65px;
  padding: calc(clamp(40px, 7vh, 88px) + 65px) 0 0;
  background: var(--game-sky);
}
.game-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.game-hero-copy { padding-bottom: clamp(48px, 8vh, 96px); }
.back-link { display: inline-block; margin-bottom: 28px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }
.game-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-title img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 24px -10px rgb(35 52 43 / .45); }
.game-title h1 { margin: 0; }
.game-tagline { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; color: var(--accent); margin-bottom: .6em; letter-spacing: -.01em; }
.game-hero .lede { max-width: 540px; font-size: 1.12rem; color: var(--muted); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-soft { background: rgb(255 255 255 / .7); color: var(--text); }

/* Phone frames */
.phone {
  position: relative; border-radius: 38px; padding: 10px; background: #1d2621;
  box-shadow: 0 30px 60px -24px rgb(35 52 43 / .55);
}
.phone img { width: 100%; height: auto; border-radius: 29px; aspect-ratio: 590 / 1278; object-fit: cover; }
.game-hero-shots { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.game-hero-shots .phone { width: min(260px, 46%); margin-bottom: -60px; z-index: 2; }
.game-hero-shots .phone + .phone { margin-left: -40px; margin-bottom: -110px; transform: rotate(4deg); z-index: 1; }

/* ---------- Moments: when you might ride ---------- */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.moment { margin: 0; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.moment-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.moment-shot img { width: 100%; height: 100%; object-fit: cover; }
.moment-shot .len { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .9); font-weight: 700; font-size: .8rem; color: var(--accent); }
.moment figcaption { padding: 20px 22px 24px; }
.moment h3 { font-size: 1.3rem; margin-bottom: 6px; }
.moment p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; margin: 0 -4px;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: 38px; }
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.gallery figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--text); font-size: .95rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 460px); }
.lightbox::backdrop { background: rgb(29 38 33 / .82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 24px; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); font-size: 1.3rem; cursor: pointer; }

/* ---------- Video ---------- */
.video-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.muted-copy { color: var(--muted); }
.video-phone { width: min(320px, 100%); justify-self: center; }
.video-phone video { display: block; width: 100%; aspect-ratio: 590 / 1278; object-fit: cover; border-radius: 29px; background: #1d2621; }
@media (max-width: 860px) { .video-split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Visual snippets (cropped moments) ---------- */
.snippets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 760px) { .snippets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.snippet { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.snippet img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.snippet figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: rgb(255 255 255 / .88); color: var(--text);
}

/* ---------- Gestures ---------- */
.gestures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.gestures li { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .gestures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gestures { grid-template-columns: 1fr; } }
.gestures strong { display: block; color: var(--accent); margin-bottom: 2px; }
.gestures span { color: var(--muted); }
.gesture-icon {
  display: block; width: 52px; height: 52px; padding: 7px; margin-bottom: 12px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.gesture-icon .fill { fill: currentColor; stroke: none; }

/* ---------- Trails ---------- */
.trail-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.trail-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.trail-group h3 { font-size: 1.2rem; }
.trail-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trail-group li { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.trail-group li strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .88rem; }

/* ---------- Ways to play: grouped by why you'd play ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.why-art { display: block; width: 100%; height: 150px; }
.why-body { padding: 22px 24px 26px; }
.why-body h3 { font-size: 1.45rem; margin-bottom: 4px; }
.why-body > p { color: var(--muted); margin-bottom: 18px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { padding-left: 18px; position: relative; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.why-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); }
.why-list strong { display: block; color: var(--text); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Promise ---------- */
.promise { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.promise-copy > p:not(.eyebrow) { color: var(--muted); }
.promise .principles li::before { background: var(--accent); }
.promise-art { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 360px; justify-self: center; box-shadow: var(--shadow); }
.promise-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 32px; } .promise-art { max-width: 280px; } }

/* ---------- Closing CTA ---------- */
.game-cta { text-align: center; }
.game-cta .btn { margin: 8px 6px 0; }

@media (max-width: 860px) {
  .game-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .game-hero-copy { padding-bottom: 32px; }
  .game-hero-shots .phone { width: min(220px, 52%); margin-bottom: -40px; }
  .game-hero-shots .phone + .phone { margin-bottom: -80px; }
}
