/*
 * Crook Crew LP - vanilla CSS (ported from a Next.js/Tailwind landing
 * page). No build step. Mobile-first with three
 * breakpoints (sm 640px, md 768px, lg 1024px) mirroring the Tailwind
 * defaults used in the React source.
 *
 * Color tokens kept as CSS custom properties so the theme dev / Customizer
 * can override per-property without re-declaring rules.
 *
 * License: GPL-2.0-or-later
 */

/* ============================================================
 * 0. Reset / base
 * ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cclp-bg);
  color: #fff;
  font-family: var(--cclp-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

/* ============================================================
 * 1. Tokens
 * ============================================================ */

:root {
  --cclp-bg: #0b0f14;
  --cclp-bg-rgb: 11 15 20;
  --cclp-accent: #3fa9f5;          /* rain-blue */
  --cclp-accent-rgb: 63 169 245;
  --cclp-cta: #ffb01f;             /* sodium-amber CTA */
  --cclp-cta-rgb: 255 176 31;

  /* Display face. Anton (single 400 weight) is self-hosted and inlined
   * by inc/enqueue.php; the condensed system fallbacks keep the poster
   * look if the woff2 is blocked (in-app browsers, ad-block). */
  --cclp-font-display: 'Anton', 'Impact', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  --cclp-font-sans:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji';
}

/* ============================================================
 * 2. Layout primitives
 * ============================================================ */

.cclp-root {
  background: var(--cclp-bg);
  color: #fff;
  /* Triple fallback: bare vh for old browsers, dvh for modern, finally
   * the JS-set --app-height for iOS in-app webviews (where dvh is still
   * computed against the largest viewport at first paint). Same pattern
   * as .cclp-hero / .cclp-squeeze - keeps the long-LP footer anchored
   * at the visible bottom on Instagram/TikTok/Facebook. */
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
}

/* Hero gradient (radial + linear). Eased from the stops inherited from
 * landing-page.tsx (radial .35/.7/.92, linear .85/.2/.4/.95) for the
 * illustrated hero (assets/img/hero-nadbrzeze.svg): the SVG already keeps
 * its center dark and fades its bottom into --cclp-bg, so the veil only
 * settles the top band and the corners. The crew, the car and the shop
 * signs on the flanks stay readable; the H1, subhead and CTA still sit on
 * a dark centre. */
.cclp-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(11, 15, 20, 0.15) 0%,
      rgba(11, 15, 20, 0.35) 60%,
      rgba(11, 15, 20, 0.6) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 15, 20, 0.55) 0%,
      rgba(11, 15, 20, 0) 35%,
      rgba(11, 15, 20, 0.1) 60%,
      rgba(11, 15, 20, 0.85) 100%
    );
}

/* Squeeze variant: denser stops than the long-LP hero (more bg coverage
 * on a small viewport), eased by the same steps. */
.cclp-hero-gradient--squeeze {
  background:
    radial-gradient(
      ellipse at center,
      rgba(11, 15, 20, 0.25) 0%,
      rgba(11, 15, 20, 0.5) 65%,
      rgba(11, 15, 20, 0.75) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 15, 20, 0.6) 0%,
      rgba(11, 15, 20, 0.1) 30%,
      rgba(11, 15, 20, 0.25) 70%,
      rgba(11, 15, 20, 0.9) 100%
    );
}

/* Portrait phones (<= 767 px wide AND <= 3:5 - the same query as the
 * squeeze <picture> source): the squeeze <picture> swaps in the portrait art
 * (assets/img/hero-nadbrzeze-mobile.svg, 1080x1920 = 9:16). object-fit:
 * cover fits it to the height on phones taller than 9:16 (only the sides
 * are cropped, so these % stops land exactly on the art's bands) and to the
 * width on wider viewports such as 360x612 or 393x659, which lose up to ~3%
 * at the top and at the bottom by 3:5 - the bands still fall inside the
 * stops; stubbier viewports lose more. The art keeps its text band
 * (~24-73%) dark by itself, so one vertical veil replaces the radial +
 * linear pair above: it settles the shop signs at the top, holds the
 * wordmark / H1 / subhead / CTA zone at ~40% (white text stays far above
 * 7:1 over the lightest pixel behind it), clears the crew band under the
 * trust chips (~78-93%) and darkens again under the legal line - anchored
 * to the bottom edge in px, because the legal line is pinned there (on
 * short in-app viewports it rises over the crew band). */
@media (max-width: 767px) and (max-aspect-ratio: 3/5) {
  .cclp-hero-gradient--squeeze {
    background: linear-gradient(
      180deg,
      rgba(11, 15, 20, 0.45) 0%,
      rgba(11, 15, 20, 0.25) 9%,
      rgba(11, 15, 20, 0.32) 16%,
      rgba(11, 15, 20, 0.42) 40%,
      rgba(11, 15, 20, 0.42) 62%,
      rgba(11, 15, 20, 0.28) 71%,
      rgba(11, 15, 20, 0.05) 76.5%,
      rgba(11, 15, 20, 0.05) calc(100% - 70px),
      rgba(11, 15, 20, 0.6) calc(100% - 30px),
      rgba(11, 15, 20, 0.85) 100%
    );
  }
}

/* ============================================================
 * 3. Hero (long LP)
 * ============================================================ */

.cclp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Top padding clears the fixed-top header (.cclp-nav, 64px). The flex
   * vertical-center then operates on the area BELOW the header instead
   * of the full viewport - without this, the hero capsule visually
   * collides with the menu and the user sees content jammed to the top.
   * Background image keeps full-bleed because .cclp-hero__bg is
   * absolute-positioned at inset:0 (unaffected by padding). */
  padding: 64px 1.5rem 0;
  text-align: center;
  /* dvh first; vh fallback; finally JS-set --app-height for iOS in-app
   * browsers (set by lp/layout.tsx boot - ported in inc/enqueue). */
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
}

.cclp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.cclp-hero__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
  /* Tight on small screens so the entire stack (wordmark → badge → H1
   * → subhead → Wishlist CTA) fits above the fold on a 640-720px tall
   * smartphone viewport once the 64px fixed header is subtracted. */
  padding: 0.75rem 0;
}

@media (min-width: 640px) {
  .cclp-hero__inner {
    padding: 2rem 0;
  }
}
@media (min-width: 768px) {
  .cclp-hero__inner {
    padding: 3rem 0;
  }
}

/* Wordmark CTA (clickable game logo). */
.cclp-wordmark {
  display: inline-block;
  border-radius: 0.25rem;
  /* Trimmed on mobile (was 1.5rem) so wordmark + badge + H1 + subhead
   * + CTA stack still leaves the Wishlist button above-the-fold on a
   * 640-720px portrait smartphone viewport. */
  margin-bottom: 0.75rem;
  transition: transform 200ms ease-out;
}
/* Sticky-hover guard: only apply zoom on devices that have a real
 * hover capability. On iOS in-app webviews tapping triggers :hover
 * and the scale stays applied until the user taps elsewhere - which
 * inside the LP often means another CTA, breaking the visual flow. */
@media (hover: hover) {
  .cclp-wordmark:hover {
    transform: scale(1.03);
  }
}
.cclp-wordmark:focus-visible {
  /* Transparent outline: invisible normally, drawn in Windows
   * forced-colors mode where box-shadow rings are removed. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px var(--cclp-bg),
    0 0 0 4px rgba(255, 176, 31, 0.6);
}
.cclp-wordmark__img {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.9));
}

@media (min-width: 640px) {
  .cclp-wordmark { margin-bottom: 1.5rem; }
  .cclp-wordmark__img { width: 320px; }
  .cclp-badge { margin-bottom: 1.25rem; }
}
@media (min-width: 768px) {
  .cclp-wordmark__img { width: 380px; }
}

/* Release badge (rain-blue dot + uppercase eyebrow text). */
.cclp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(63, 169, 245, 0.4);
  border-radius: 9999px;
  background: rgba(10, 32, 56, 0.45); /* blue-950/45 */
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cfe7ff; /* blue-200 */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
  .cclp-badge { font-size: 0.875rem; }
}
.cclp-badge__dot {
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--cclp-accent);
  box-shadow: 0 0 8px rgba(63, 169, 245, 0.9);
}
/* Phones: the 32-character status label would wrap and leave a word alone
 * in the pill at 12px / .2em - use the squeeze badge's sizing instead. */
@media (max-width: 639px) {
  .cclp-badge {
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .cclp-badge__dot {
    width: 0.25rem;
    height: 0.25rem;
  }
}

/* H1 - Anton display face, uppercase, dramatic shadow. */
.cclp-hero__title {
  font-family: var(--cclp-font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(0, 0, 0, 0.6);
  /* Even line lengths instead of a one-word widow ("BIG / TROUBLE.");
   * ignored by browsers without support. */
  text-wrap: balance;
}

.cclp-hero__subhead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.375;
  color: #e5e7eb; /* gray-200 */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}
@media (min-width: 640px) {
  .cclp-hero__subhead { font-size: 1.125rem; }
}

/* Trust strip (uppercase factoids under CTA). */
.cclp-trust {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d1d5db; /* gray-300 */
}
@media (min-width: 640px) {
  .cclp-trust { font-size: 0.875rem; }
}
.cclp-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.cclp-trust__dot {
  display: block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--cclp-accent);
  box-shadow: 0 0 4px rgba(63, 169, 245, 0.8);
}

/* Scroll hint (bottom of hero, sm+ only). */
.cclp-scroll-hint {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 640px) {
  .cclp-scroll-hint { display: block; }
}
.cclp-scroll-hint__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cclp-scroll-hint__line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    transparent
  );
}
/* Laptop-height desktops (< 900 px tall): the absolutely positioned SCROLL
 * hint would land inside the flex-centred hero content, over the trust
 * strip - hide it there. */
@media (min-width: 640px) and (max-height: 899px) {
  .cclp-scroll-hint { display: none; }
}
/* Short desktops (<= 760 px tall, e.g. 1366x657 in a browser): tighten the
 * hero stack so the Wishlist button stays above the fold. */
@media (min-width: 768px) and (max-height: 760px) {
  .cclp-hero__inner { padding: 1.25rem 0; }
  .cclp-wordmark { margin-bottom: 1rem; }
  .cclp-wordmark__img { width: 300px; }
}

/* ============================================================
 * 4. CTA button (yellow Steam button)
 * ============================================================ */

.cclp-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.25rem 2rem;
  min-height: 56px;
  border-radius: 0.375rem;
  background: var(--cclp-cta);
  color: #000;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(255, 176, 31, 0.35);
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out,
    transform 200ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.cclp-cta:hover {
  background: #fff;
  box-shadow: 0 0 60px rgba(255, 176, 31, 0.55);
}
.cclp-cta:focus-visible {
  /* Transparent outline: invisible normally, drawn in Windows
   * forced-colors mode where box-shadow rings are removed. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(255, 176, 31, 0.5),
    0 0 60px rgba(255, 176, 31, 0.55);
}
@media (min-width: 640px) {
  .cclp-cta {
    padding: 1.5rem 2.5rem;
    font-size: 1.25rem;
  }
}
.cclp-cta__icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  -webkit-mask: url('../img/steam-icon.svg') center / contain no-repeat;
  mask: url('../img/steam-icon.svg') center / contain no-repeat;
}
@media (min-width: 640px) {
  .cclp-cta__icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* ============================================================
 * 5. Trailer section
 * ============================================================ */

.cclp-section {
  position: relative;
  padding: 5rem 1.5rem;
}
@media (min-width: 640px) {
  .cclp-section { padding: 6rem 1.5rem; }
}

.cclp-section__container {
  max-width: 64rem; /* max-w-4xl */
  margin: 0 auto;
}
.cclp-section__container--wide {
  max-width: 72rem; /* max-w-6xl */
}

.cclp-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.8); /* blue-300/80 */
}

.cclp-section__title {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--cclp-font-display);
  font-size: 1.875rem; /* 3xl */
  font-weight: 400;
  text-transform: uppercase;
  /* Even line lengths instead of a one-word widow ("BIG / TROUBLE.");
   * ignored by browsers without support. */
  text-wrap: balance;
}
@media (min-width: 640px) {
  .cclp-section__title { font-size: 3rem; } /* 5xl */
}

.cclp-trailer-card {
  position: relative;
  display: block;
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 200ms ease-out;
}
@media (hover: hover) {
  .cclp-trailer-card:hover {
    transform: scale(1.01);
  }
}
.cclp-trailer-card__poster {
  width: 100%;
  height: auto;
}
.cclp-trailer-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background-color 200ms ease-out;
}
@media (hover: hover) {
  .cclp-trailer-card:hover .cclp-trailer-card__overlay {
    background: rgba(0, 0, 0, 0.15);
  }
}
.cclp-trailer-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: var(--cclp-cta);
  color: #000;
  box-shadow: 0 0 50px rgba(255, 176, 31, 0.6);
  transition: transform 200ms ease-out;
}
@media (min-width: 640px) {
  .cclp-trailer-card__play {
    width: 6rem;
    height: 6rem;
  }
}
@media (hover: hover) {
  .cclp-trailer-card:hover .cclp-trailer-card__play {
    transform: scale(1.1);
  }
}
.cclp-trailer-card__play-icon {
  width: 2rem;
  height: 2rem;
  margin-left: 0.25rem; /* optical centering */
}
@media (min-width: 640px) {
  .cclp-trailer-card__play-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ============================================================
 * 6. Pillars
 * ============================================================ */

.cclp-pillars {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
/* Three columns only from 1024 px: with the Crook Crew copy the cards get
 * far too narrow on landscape phones / tablets (4-line titles). In between,
 * one centred column of readable width. */
@media (min-width: 640px) and (max-width: 1023px) {
  .cclp-pillars {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1024px) {
  .cclp-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.cclp-pillar {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
  .cclp-pillar { padding: 2rem; }
}
.cclp-pillar__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--cclp-cta);
}
.cclp-pillar__title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  /* Even line lengths instead of a one-word widow ("BIG / TROUBLE.");
   * ignored by browsers without support. */
  text-wrap: balance;
}
@media (min-width: 640px) {
  .cclp-pillar__title { font-size: 1.25rem; }
}
.cclp-pillar__body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #d1d5db; /* gray-300 */
}
@media (min-width: 640px) {
  .cclp-pillar__body { font-size: 1rem; }
}

/* ============================================================
 * 7. Screenshot grid
 * ============================================================ */

.cclp-shots {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cclp-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
.cclp-shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
.cclp-shot__img {
  width: 100%;
  height: auto;
  transition: transform 700ms ease-out;
}
@media (hover: hover) {
  .cclp-shot:hover .cclp-shot__img {
    transform: scale(1.05);
  }
}

/* ============================================================
 * 8. Final CTA
 * ============================================================ */

.cclp-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6rem 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .cclp-final { padding: 8rem 1.5rem; }
}
.cclp-final__bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  background-size: cover;
  background-position: center;
}
.cclp-final__veil {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: rgba(11, 15, 20, 0.85);
}
.cclp-final__inner {
  max-width: 48rem;
  margin: 0 auto;
}
.cclp-final__title {
  font-family: var(--cclp-font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
  /* Even line lengths instead of a one-word widow ("BIG / TROUBLE.");
   * ignored by browsers without support. */
  text-wrap: balance;
}
.cclp-final__title-br {
  display: none;
}
@media (min-width: 640px) {
  .cclp-final__title-br { display: inline; }
}
.cclp-final__copy {
  margin-top: 1.5rem;
  color: #d1d5db;
  font-size: 1rem;
}
@media (min-width: 640px) {
  .cclp-final__copy { font-size: 1.125rem; }
}
.cclp-final .cclp-cta { margin-top: 2.5rem; }

/* ============================================================
 * 9. Footer (long LP)
 * ============================================================ */

.cclp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  padding: 2.5rem 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af; /* gray-400 */
}
.cclp-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
/* Desktop ≥640px: 3-column CSS Grid `1fr auto 1fr` so the social-icon
 * cluster (middle column) sits at the GEOMETRIC CENTRE of the viewport
 * regardless of brand-block or nav-block width. The previous flex
 * `space-between` distributed children equally between siblings, which
 * pushed socials right whenever the brand-block grew (e.g. with the
 * "Powered by Gamosy" credit line). Industry-standard pattern (Discord,
 * Linear, Notion footers). 1fr edge columns = mirrored gutters. */
@media (min-width: 640px) {
  .cclp-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }
  .cclp-footer__inner > div:first-child { justify-self: start; }
  .cclp-footer__inner > .cclp-socials { justify-self: center; }
  /* grid-column: 3 keeps the nav right-aligned even when the social row
   * (column 2) is not rendered because every social URL is blank. */
  .cclp-footer__inner > .cclp-footer__nav { justify-self: end; text-align: right; grid-column: 3; }
}
.cclp-footer__brand {
  font-family: var(--cclp-font-display);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}
.cclp-footer__credit {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}
.cclp-footer__credit a {
  text-underline-offset: 2px;
}
.cclp-footer__credit a:hover {
  text-decoration: underline;
}
.cclp-footer__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cclp-footer__nav a {
  /* WCAG AA: lift to ~70% white so contrast against bg-black/60 still
   * passes 4.5:1 for body text. Matches the squeeze footer fix. */
  color: rgba(255, 255, 255, 0.7);
  transition: color 150ms ease-out;
}
.cclp-footer__nav a:hover {
  color: #fff;
}

/* WCAG 2.4.7 - keyboard users must see a focus indicator on every
 * interactive element. Tailwind's reset (and ours) removes the UA
 * outline; restore it for keyboard navigation only via :focus-visible.
 * One canonical style applied to every clickable element in the LP. */
.cclp-footer__nav a:focus-visible,
.cclp-footer__credit a:focus-visible,
.cclp-trailer-card:focus-visible,
.cclp-shot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
 * 10. Squeeze (page-steam.php) - single-screen mobile
 * ============================================================ */

.cclp-squeeze {
  position: relative;
  /* Match the long LP hero - isolate the stacking context so the
   * negative-z gradient overlay sits ABOVE the bg image but BELOW
   * the .cclp-squeeze__main content (z-index: 10). Without this the
   * gradient escaped the page stacking and the bright Steam screenshot
   * showed through unmuted. */
  isolation: isolate;
  background: var(--cclp-bg);
  color: #fff;
  /* One screen tall where the content fits, taller - and scrollable -
   * where it does not (landscape phones, desktop zoom 200-400%): the
   * Wishlist button and the legal line must never be clipped
   * (WCAG 1.4.4 / 1.4.10). No fixed height, no overflow:hidden. */
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
  /* Safety net against sideways overflow. `clip` (unlike hidden) creates no
   * scroll container, so the vertical growth above keeps working. */
  overflow-x: clip;
}
.cclp-squeeze__bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.cclp-squeeze__main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* Same min-height as .cclp-squeeze, so space-between still pins the
   * legal line to the bottom of the screen when the content is shorter. */
  min-height: inherit;
  max-width: 28rem; /* max-w-md */
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: max(env(safe-area-inset-top), 12px);
  padding-bottom: max(env(safe-area-inset-bottom), 12px);
  text-align: center;
}
.cclp-squeeze__hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cclp-squeeze__hero { gap: 1rem; }
}

.cclp-squeeze__wordmark-img {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.9));
}
@media (min-width: 640px) {
  .cclp-squeeze__wordmark-img { width: 300px; }
}

.cclp-squeeze__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(63, 169, 245, 0.4);
  border-radius: 9999px;
  background: rgba(10, 32, 56, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfe7ff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
  .cclp-squeeze__badge { font-size: 0.75rem; }
}
.cclp-squeeze__badge-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--cclp-accent);
  box-shadow: 0 0 6px rgba(63, 169, 245, 0.9);
}

.cclp-squeeze__title {
  font-family: var(--cclp-font-display);
  font-size: clamp(2rem, 11vw, 3rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
  /* Even line lengths instead of a one-word widow ("BIG / TROUBLE.");
   * ignored by browsers without support. */
  text-wrap: balance;
}
.cclp-squeeze__subhead {
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.375;
  color: #e5e7eb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}
@media (min-width: 640px) {
  .cclp-squeeze__subhead { font-size: 1rem; }
}

.cclp-squeeze .cclp-cta {
  margin-top: 0.25rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  min-height: 52px;
}
@media (min-width: 640px) {
  .cclp-squeeze .cclp-cta {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
  }
}

.cclp-squeeze__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d1d5db;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
@media (min-width: 640px) {
  .cclp-squeeze__trust { font-size: 0.75rem; }
}
.cclp-squeeze__trust-sep {
  color: rgba(96, 165, 250, 0.8);
}

.cclp-squeeze__legal {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); /* WCAG AA on bg-black/60 - see comment */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
.cclp-squeeze__legal a {
  /* Visually 10px text but a 24px tappable hit-area - WCAG 2.5.5 (24x24)
   * passes, and we avoid accidental tap-and-dismiss when a thumb scrolls
   * over the legal line on iOS in-app webviews. Using inline-block + padding
   * (not min-height on the inline) so the line height of the surrounding
   * <p> doesn't change layout. */
  display: inline-block;
  padding: 6px 4px;
  min-height: 24px;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 150ms ease-out;
}
.cclp-squeeze__legal a:hover {
  color: #fff;
}

/* Small phones (360-440 px): tighter tracking keeps the default trust chips
 * and legal line on ONE line each, whatever the system font (SF Pro on iOS
 * and Roboto on Android set these strings ~5-8% wider than Segoe UI) - a
 * wrapped second line would push the text block into the crew in the
 * portrait background art. No nowrap: non-default strings (developer name,
 * translations) wrap instead of overflowing. Keep this block AFTER the base
 * .cclp-squeeze__trust / .cclp-squeeze__legal rules - same specificity, so
 * source order decides. */
@media (min-width: 360px) and (max-width: 440px) {
  .cclp-squeeze__trust {
    letter-spacing: 0.07em;
  }
  .cclp-squeeze__legal {
    letter-spacing: 0.07em;
    /* Borrow part of the 1.25rem side gutter: the default line keeps
     * ~28 px of slack in SF Pro at 360 px, yet a longer developer name
     * or a translation still wraps instead of scrolling sideways. */
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
}
/* Landscape phones (short + touch): compact squeeze so the Wishlist button
 * stays above the fold. Scoped to coarse pointers so a zoomed desktop keeps
 * its enlarged type (it simply scrolls). */
@media (max-height: 520px) and (pointer: coarse) {
  .cclp-squeeze__main {
    padding-top: max(env(safe-area-inset-top), 8px);
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
  }
  .cclp-squeeze__wordmark-img { width: 120px; }
  .cclp-squeeze__hero { gap: 0.375rem; }
  .cclp-squeeze__title { font-size: 1.75rem; }
  .cclp-squeeze__subhead { font-size: 0.875rem; max-width: 28rem; }
  .cclp-squeeze .cclp-cta { padding: 0.75rem 1.5rem; min-height: 48px; font-size: 1rem; }
}

/* ============================================================
 * 11. Accessibility helpers
 * ============================================================ */

.cclp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced-motion: disable hover scales / 700ms zooms. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cclp-shot__img,
  .cclp-trailer-card,
  .cclp-trailer-card__play,
  .cclp-wordmark {
    transform: none !important;
  }
}

/* ============================================================
 * 12. In-app browser hooks
 *
 * inapp-detect.js tags <html> with one of `ua-instagram`,
 * `ua-facebook`, `ua-tiktok`, `ua-snapchat`, `ua-twitter`,
 * `ua-line`, `ua-kakao`, `ua-whatsapp`, or `ua-wkwebview` when it
 * detects the corresponding webview. We don't ship per-vendor
 * placeholder rulesets here - the classes are stable hooks; if a
 * specific vendor needs a fix, add the rule alongside .ua-inapp
 * below (vendor-specific overrides cascade after the generic).
 * Generic in-app fixes - applied to ANY in-app webview. These are
 * safe baseline tweaks.
 * ============================================================ */
.ua-inapp .cclp-squeeze {
  /* In-app webviews mis-measure 100dvh frequently; rely on JS --app-height. */
  min-height: var(--app-height, 100dvh);
}

/* ============================================================
 * 13. Generic page template (page.php)
 *
 * Used for Privacy Policy, Terms, Contact, etc. - any WP Page
 * that isn't the front page or /steam. Inherits the dark LP bg;
 * tunes typography for body text readability on dark.
 * ============================================================ */

.cclp-page {
  /* Triple viewport fallback (see .cclp-root for rationale). Without
   * --app-height on /privacy-policy and other short content pages, the
   * footer floats above the visible bottom in iOS in-app webviews. */
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
  background-color: var(--cclp-bg, #0b0f14);
  color: rgba(255, 255, 255, 0.92);
  /* 6.5rem top = the fixed 64 px header + 2.5rem of air above the title. */
  padding: 6.5rem 1.25rem 5rem;
}
.cclp-page__article {
  max-width: 720px;
  margin: 0 auto;
}

/* Templates without an explicit .cclp-page__article wrapper (search.php,
 * archive.php, 404.php, index.php) used to render content full-width
 * because .cclp-page only sets padding, not max-width. Constrain direct
 * children to the same 720px reading width as page.php / single.php so
 * search results, post lists, 404 message, and the search form stay
 * visually consistent with the rest of the content site. */
.cclp-page > .cclp-page__header,
.cclp-page > .cclp-archive__list,
.cclp-page > .cclp-no-results,
.cclp-page > .cclp-page__footer,
.cclp-page > .cclp-pagination,
.cclp-page > .cclp-post-nav,
.cclp-page > .cclp-comments {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress-standard visually-hidden utility - hides text from sighted
 * users while keeping it announceable by screen readers. Without this
 * rule the `<span class="screen-reader-text">Submit search</span>` in
 * searchform.php renders as visible text, producing the duplicated
 * "SUBMIT SEARCHSEARCH" label glitch on /?s=… result pages. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  /* Skip-link variant: when receiving focus, become visible at top-left. */
  background-color: var(--cclp-cta, #ffb01f);
  color: #000;
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  padding: 0.5rem 1rem;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  text-decoration: none;
  width: auto;
  z-index: 100000;
}
.cclp-page__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cclp-page__title {
  font-family: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
  color: #fff;
}
.cclp-page__content {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  /* Long plain-text URLs (legal pages) must wrap on phones instead of
   * forcing a sideways scroll (WCAG 1.4.10). */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}
.cclp-page__content > * + * {
  margin-top: 1rem;
}
.cclp-page__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.cclp-page__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.cclp-page__content a {
  color: var(--cclp-cta, #ffb01f);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cclp-page__content a:hover {
  text-decoration: none;
}
.cclp-page__content a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}
.cclp-page__content ul,
.cclp-page__content ol {
  padding-left: 1.5rem;
}
.cclp-page__content ul li,
.cclp-page__content ol li {
  margin-top: 0.4rem;
}
.cclp-page__content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--cclp-cta, #ffb01f);
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
}
.cclp-page__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.cclp-page__content pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cclp-page__content pre code {
  background: transparent;
  padding: 0;
}
.cclp-page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.cclp-page__content hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2rem 0;
}
.cclp-page__footer {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}
.cclp-page__back {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.cclp-page__back:hover {
  color: #fff;
}
.cclp-page__back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
 * 14. Header navigation (fixed top)
 *
 * The header is rendered by header.php on every template. The hero LP
 * keeps body padding-top:0 so the dark header floats over the photo
 * at scroll-top; content templates use the wrapper margin already
 * applied by .cclp-page.
 * ============================================================ */

/* Skip link - visible only on keyboard focus, jumps to #cclp-main. */
.cclp-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--cclp-cta);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: inset(50%);
}
.cclp-skip-link:focus,
.cclp-skip-link:focus-visible {
  top: 0;
  clip-path: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Header container ---------------------------------------------------- */
.cclp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  /* Don't transition `backdrop-filter` - Facebook's Android in-app webview
   * (Chrome WebView 100-110 era) hits a GPU layer crash when an animated
   * backdrop-filter flips on first scroll. Symptom: header turns solid
   * black and never repaints, including the Wishlist mini-CTA which
   * becomes unreadable yellow-on-black. The blur still applies in one
   * frame when .is-scrolled flips - the visual delta is invisible. */
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}
.cclp-nav.is-scrolled {
  background: rgba(11, 15, 20, 0.85);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* WordPress admin bar offset.
 *
 * For logged-in users WP prints a fixed 32px (desktop) / 46px (mobile,
 * <=782px) toolbar at top:0 AND adds `html{margin-top:Npx!important}`,
 * which shifts ALL normal-flow content down by that height. Our header is
 * `position:fixed`, so it ignores that html margin and would sit UNDER the
 * toolbar (the logo gets clipped, the bar reads as overlapping content).
 *
 * Pushing the fixed header down by the same amount restores the exact
 * header-to-content spacing: content already moved down via html margin,
 * so once the header matches, nothing is covered. The `.admin-bar` body
 * class is ONLY present when the toolbar shows (logged-in), so logged-out
 * visitors are completely unaffected - the layout stays as-is for them.
 *
 * Higher specificity (.admin-bar .cclp-nav) than both the base rule above
 * and the inline critical CSS in inc/enqueue.php, so it wins regardless of
 * source order. */
.admin-bar .cclp-nav {
  top: 32px;
}
/* Keep the keyboard skip-link clear of the toolbar too. */
.admin-bar .cclp-skip-link:focus,
.admin-bar .cclp-skip-link:focus-visible {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .cclp-nav {
    top: 46px;
  }
  .admin-bar .cclp-skip-link:focus,
  .admin-bar .cclp-skip-link:focus-visible {
    top: 46px;
  }
}

/* 3-column grid: logo | centered nav | action cluster.
 * Beats the previous flex `space-between` which spread 5 children into
 * uneven gaps once Discord + Wishlist landed in the row. Grid gives the
 * menu a dedicated middle zone (1fr) and the CTA group a clean right
 * cluster, regardless of how many menu items the operator publishes. */
.cclp-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 2rem;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .cclp-nav__inner { padding: 0 1.5rem; }
}

/* Right-side cluster: Discord + Wishlist + Hamburger. Tight gap groups
 * the buttons by Gestalt proximity (read as ONE control). */
.cclp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}
@media (max-width: 767px) {
  /* Below tablet only the hamburger renders inside the cluster - no
   * gap needed, lets it sit flush right. */
  .cclp-nav__actions { gap: 0; }
}

/* Centre the menu within the 1fr middle column rather than letting
 * flex-default left-align it against the logo. */
.cclp-nav__desktop { justify-self: center; }

/* Tablet fold (<900px): hide Discord first so the primary conversion
 * CTA (Wishlist) is never sacrificed when the row gets tight. Discord
 * remains accessible inside the mobile overlay CTA stack. */
@media (max-width: 899px) {
  .cclp-cta-discord.cclp-nav__cta { display: none; }
}

/* Logo wordmark ------------------------------------------------------- */
.cclp-nav__logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 200ms ease-out;
  border-radius: 2px;
}
.cclp-nav__logo:hover { opacity: 1; }
.cclp-nav__logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.cclp-nav__logo-text {
  font-family: var(--cclp-font-display);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

/* Desktop nav --------------------------------------------------------- */
.cclp-nav__desktop { display: none; }
@media (min-width: 768px) {
  .cclp-nav__desktop { display: block; }
}

.cclp-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cclp-nav__list--desktop {
  display: flex;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 767px) {
  .cclp-nav__list--desktop { display: none; }
}

.cclp-nav__item { margin: 0; }

.cclp-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms ease-out;
}
.cclp-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 200ms ease-out, background-color 200ms ease-out;
}
.cclp-nav__link:hover { color: #fff; }
.cclp-nav__link:hover::after { width: 100%; }
.cclp-nav__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}
.cclp-nav__link.current-menu-item,
.cclp-nav__link[aria-current="page"] {
  color: #fff;
}
.cclp-nav__link.current-menu-item::after,
.cclp-nav__link[aria-current="page"]::after {
  width: 100%;
  background: var(--cclp-cta);
}

/* Mini CTA (desktop only). Inherits .cclp-cta yellow/black + Steam icon.
 * `min-width` keeps Discord and Wishlist visually identical-width so the
 * cluster reads as one button group; without it "Discord" (7 chars) and
 * "Wishlist" (8 chars) render different widths and the asymmetry pulls
 * focus away from the labels. */
.cclp-cta-mini {
  margin-top: 0;
  padding: 0 0.875rem;
  min-width: 116px;
  min-height: 36px;
  height: 36px;
  font-size: 0.8125rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(255, 176, 31, 0.25);
}
@media (hover: hover) {
  .cclp-cta-mini:hover {
    box-shadow: 0 0 30px rgba(255, 176, 31, 0.45);
  }
}
/* Touch-device boost: tablets in landscape (≥768px) still see the
 * mini CTA but tap with fingers, not a cursor. Bring up to WCAG
 * 2.5.5 minimum (44x44) on coarse pointers. */
@media (min-width: 768px) and (pointer: coarse) {
  .cclp-cta-mini {
    min-height: 44px;
    height: 44px;
  }
}
.cclp-cta-mini .cclp-cta__icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 767px) {
  .cclp-nav__cta.cclp-cta-mini { display: none; }
}
.cclp-nav__cta.cclp-cta-mini:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Hamburger ----------------------------------------------------------- */
.cclp-nav__hamburger {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .cclp-nav__hamburger { display: none; }
}
/* Mobile: pin hamburger to the viewport top-right at EXACTLY the same
 * coordinates as the overlay close button (.cclp-nav__close uses
 * `position: fixed; top: 12px; right: 12px`). Identical positioning
 * eliminates ALL alignment ambiguity - container padding, scrollbar
 * gutter, grid column boundaries, etc. become irrelevant. The hamburger
 * sits at the viewport corner; toggling to X swaps icons in place
 * without any visual jump. z-index 102 keeps it above the header
 * (z:100) but below the overlay (z:200). */
@media (max-width: 767px) {
  .cclp-nav__hamburger {
    position: fixed;
    top: 10px;        /* (64px header − 44px button) / 2 = 10px = vertical centre */
    right: 12px;
    z-index: 102;
  }
}
.cclp-nav__hamburger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cclp-nav__hamburger-bar {
  position: absolute;
  left: 50%;
  display: block;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: #fff;
  border-radius: 1px;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cclp-nav__hamburger-bar:nth-child(1) { top: 14px; }
.cclp-nav__hamburger-bar:nth-child(2) { top: 21px; }
.cclp-nav__hamburger-bar:nth-child(3) { top: 28px; }

.cclp-nav__hamburger[aria-expanded="true"] .cclp-nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cclp-nav__hamburger[aria-expanded="true"] .cclp-nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}
.cclp-nav__hamburger[aria-expanded="true"] .cclp-nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay ------------------------------------------------------ */
.cclp-nav__overlay {
  position: fixed;
  inset: 0;
  /* Above header (z:100). The hamburger inside the header is faded to
   * opacity 0 by `.is-nav-open .cclp-nav__hamburger`, so the user only
   * sees the overlay's own close button - no double-X collision. */
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 1.5rem 2rem;
  background: rgba(11, 15, 20, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 250ms ease-out;
}
.cclp-nav__overlay[hidden] { display: none; }
.cclp-nav__overlay.is-open { opacity: 1; }

.cclp-nav__list--mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 480px;
}
.cclp-nav__list--mobile .cclp-nav__link {
  font-family: var(--cclp-font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 0.75rem 1rem;
  min-height: 44px;
  text-align: center;
}
.cclp-nav__list--mobile .cclp-nav__link::after { display: none; }
.cclp-nav__list--mobile .cclp-nav__link:hover,
.cclp-nav__list--mobile .cclp-nav__link:active,
.cclp-nav__list--mobile .cclp-nav__link.current-menu-item,
.cclp-nav__list--mobile .cclp-nav__link[aria-current="page"] {
  color: var(--cclp-cta);
}

.cclp-nav__close {
  /* position: fixed (not absolute) so `right: 12px` references the
   * VIEWPORT, not the overlay's padding box (which has 1.5rem
   * horizontal padding and would otherwise push the button to
   * 24+12 = 36px from the viewport edge - visibly misaligned with
   * the hamburger which sits at 12px from viewport edge in the
   * header). z-index 201 keeps it above the overlay (z:200). */
  position: fixed;
  z-index: 201;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 2px;
}
.cclp-nav__close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}
.cclp-nav__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Body scroll lock while overlay is open (JS adds .is-nav-open on
 * <html>). On iOS WebKit (every in-app webview - Instagram, Facebook,
 * Snapchat, X, Threads, Telegram, WhatsApp), `overflow: hidden` on
 * <html> alone does NOT prevent the document from scrolling - the
 * underlying long LP would still scroll *through* the overlay,
 * dragging the URL bar in/out and re-firing `resize`. Locking BOTH
 * <html> and <body>, plus `touch-action: none` and
 * `overscroll-behavior: contain`, is the canonical iOS recipe. */
html.is-nav-open,
html.is-nav-open body {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

/* Hide the hamburger when the mobile overlay is open. The overlay's own
 * close (X) button takes over the dismiss role - without this rule both
 * X icons render at top-right (header z:100 sits above overlay z:99) and
 * the user sees a "double X". The animated bars→X transition still
 * runs visually for the half-second the hamburger fades out, which keeps
 * the open/close affordance feeling continuous. */
.is-nav-open .cclp-nav__hamburger {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

/* Reduced motion - kill all nav transitions. */
@media (prefers-reduced-motion: reduce) {
  .cclp-nav,
  .cclp-nav__logo,
  .cclp-nav__link,
  .cclp-nav__link::after,
  .cclp-nav__hamburger-bar,
  .cclp-nav__overlay,
  .cclp-cta-mini {
    transition: none !important;
  }
}

/* ============================================================
 * 15. Discord CTA variant + mobile overlay bottom-CTA section
 *
 * Discord button shares the .cclp-cta dimensions but swaps the
 * accent yellow for the official Discord indigo (#5865F2 → hover
 * #4752c4). The Steam icon mask-image is replaced with the Discord
 * icon. Used in two contexts: as `.cclp-cta-mini.cclp-cta-discord`
 * in the header (left of Wishlist) and as full `.cclp-cta-discord`
 * in the mobile overlay bottom CTA section.
 * ============================================================ */

.cclp-cta-discord {
  background: #5865F2;
  color: #fff;
  /* Hero Discord CTA + mobile overlay variant keep a soft glow. The
   * desktop mini-variant in the header neutralises this below - see
   * the `.cclp-cta-discord.cclp-cta-mini` override - so the right-
   * side cluster reads "Wishlist (primary, glowing) + Discord
   * (secondary, flat)" without changing button geometry. */
  box-shadow: 0 0 32px rgba(88, 101, 242, 0.35);
}
/* Recessive Discord variant for the header cluster: same dimensions
 * as Wishlist but no shadow at rest. Conversion priority via emphasis,
 * not size. Hover restores a smaller indigo glow so the affordance
 * stays. */
.cclp-cta-discord.cclp-cta-mini {
  box-shadow: none;
}
.cclp-cta-discord.cclp-cta-mini:hover {
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.4);
}
.cclp-cta-discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 0 48px rgba(88, 101, 242, 0.55);
}
.cclp-cta-discord:focus-visible {
  /* Transparent outline: invisible normally, drawn in Windows
   * forced-colors mode where box-shadow rings are removed. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(88, 101, 242, 0.5),
    0 0 48px rgba(88, 101, 242, 0.55);
}
.cclp-cta-discord .cclp-cta__icon {
  background-color: currentColor;
  -webkit-mask-image: url("../img/discord-icon.svg");
  mask-image: url("../img/discord-icon.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Kickstarter CTA variant (page-kickstarter.php). Shares the .cclp-cta
 * geometry but swaps the accent for the official Kickstarter green
 * (#05CE78 → hover #04b86a) and the Kickstarter icon mask. Text is dark
 * (#05140d) - white fails WCAG AA on this bright green, dark passes
 * comfortably (the icon inherits the text colour via currentColor). */
.cclp-cta-kickstarter {
  background: #05ce78;
  color: #05140d;
  box-shadow: 0 0 32px rgba(5, 206, 120, 0.35);
}
.cclp-cta-kickstarter:hover {
  background: #04b86a;
  color: #05140d;
  box-shadow: 0 0 48px rgba(5, 206, 120, 0.55);
}
.cclp-cta-kickstarter:focus-visible {
  /* Transparent outline: invisible normally, drawn in Windows
   * forced-colors mode where box-shadow rings are removed. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(5, 206, 120, 0.5),
    0 0 48px rgba(5, 206, 120, 0.55);
}
.cclp-cta-kickstarter .cclp-cta__icon {
  background-color: currentColor;
  -webkit-mask-image: url("../img/kickstarter-icon.svg");
  mask-image: url("../img/kickstarter-icon.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Mobile overlay bottom-CTA section (Discord + Wishlist stacked).
 * Sits BELOW the menu list inside .cclp-nav__overlay. */
.cclp-nav__overlay-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  margin-top: 2rem;
  padding: 0 1rem;
}
.cclp-nav__overlay-cta .cclp-cta {
  width: 100%;
  margin-top: 0;
  padding: 1rem 1.25rem;
  min-height: 56px;
  font-size: 1rem;
  /* Override hero CTA's huge box-shadow on mobile - keeps the visual
   * weight balanced when two large buttons stack. */
  box-shadow: 0 0 16px rgba(255, 176, 31, 0.25);
}
.cclp-nav__overlay-cta .cclp-cta-discord {
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}
/* Keyboard focus for the overlay CTAs: the generic .cclp-cta box-shadow
 * ring is overridden by the overlay's own (more specific) box-shadow above,
 * so give them an explicit outline (WCAG 2.4.7). */
.cclp-nav__overlay-cta .cclp-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Hide the overlay CTA section on desktop - overlay itself is mobile-only
 * (CSS hides it >=768px via .cclp-nav__hamburger media query) but defensive
 * media query here makes the rule self-documenting. */
@media (min-width: 768px) {
  .cclp-nav__overlay-cta { display: none; }
}

/* Reduced motion - disable hover transforms */
@media (prefers-reduced-motion: reduce) {
  .cclp-cta-discord,
  .cclp-cta-kickstarter { transition: none !important; }
}

/* ============================================================
 * 16. Footer social icons row
 *
 * Monochrome white icons by default - fits the night-street
 * aesthetic better than rainbow brand colours. On hover each icon
 * lifts to its brand colour (Discord indigo, Instagram pink, TikTok
 * magenta-cyan won't work in monochrome so falls back to white,
 * YouTube red). Tap target ≥ 44×44 per WCAG 2.5.5 even though the
 * visible icon is 22×22.
 * ============================================================ */

.cclp-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 0.75rem = 12px clear separation between 48px tap targets - clears
   * WCAG 2.5.8 enhanced (24px between centers is comfortably exceeded
   * at 48 + 12 = 60px center-to-center). */
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cclp-socials__item { margin: 0; padding: 0; }

.cclp-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 48×48 satisfies WCAG 2.5.5 AAA (Material/iOS HIG comfort target),
   * not just the 44×44 AA minimum. Visible icon stays 22×22 - extra
   * pixels are invisible hit-slop. */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: color 200ms ease-out, background-color 200ms ease-out, transform 200ms ease-out;
}
.cclp-social:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.cclp-social:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Per-channel hover colour (subtle brand cue). Mask is set per channel
 * below - `currentColor` background fills the mask, so the icon takes
 * whatever colour the link currently has. */
.cclp-social--discord:hover  { color: #5865F2; }
.cclp-social--instagram:hover { color: #E4405F; }
/* TikTok brand is multicolour (cyan + magenta); single-colour mask can't
 * render both. Magenta `#FE2C55` reads as "TikTok" instinctively AND
 * provides a visible state change against the default white-60 (white
 * → white = no perceived hover). */
.cclp-social--tiktok:hover    { color: #FE2C55; }
.cclp-social--youtube:hover   { color: #FF0000; }

/* Icon mask. Width/height stays inside the 44×44 hit area so users get
 * the WCAG touch target while the visible glyph reads at 22px. */
.cclp-social__icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.cclp-social--discord  .cclp-social__icon { -webkit-mask-image: url("../img/discord-icon.svg");   mask-image: url("../img/discord-icon.svg"); }
.cclp-social--instagram .cclp-social__icon { -webkit-mask-image: url("../img/instagram-icon.svg"); mask-image: url("../img/instagram-icon.svg"); }
.cclp-social--tiktok    .cclp-social__icon { -webkit-mask-image: url("../img/tiktok-icon.svg");    mask-image: url("../img/tiktok-icon.svg"); }
.cclp-social--youtube   .cclp-social__icon { -webkit-mask-image: url("../img/youtube-icon.svg");   mask-image: url("../img/youtube-icon.svg"); }

/* Reduced motion - disable hover transform */
@media (prefers-reduced-motion: reduce) {
  .cclp-social { transition: none; }
  .cclp-social:hover { transform: none; }
}

/* ============================================================
 * 17. Typographic polish
 *
 * Progressive enhancement - ignored by browsers without support.
 * `pretty` avoids one-word last lines in body copy; the squeeze
 * subhead is balanced so it breaks between phrases.
 * ============================================================ */
.cclp-pillar__body,
.cclp-hero__subhead,
.cclp-final__copy {
  text-wrap: pretty;
}
.cclp-squeeze__subhead {
  text-wrap: balance;
}
