/* Landing page at /. The dashboard rules below are a verbatim port of the production firepoop.com
   dashboard (legacy repo styles/game.css, v3.42.3), so fonts, colours, spacing and radii match it.
   Only the block at the end is new: the stretched Journey card link, the FirePoop Classic text link,
   keyboard focus preview and reduced motion. */
:root{ --r-lg:18px; }
*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body{ height:100%; overflow:hidden; background:#04040a; font-family:'VT323','VT323-fallback',monospace; overscroll-behavior:none; }
.fp-h1{ margin:0; font-size:inherit; line-height:0; }

.fp-root{
  font-family:'VT323','VT323-fallback',monospace;
  background:#0b0604; color:#f3e9dd;
  position:fixed; inset:0; z-index:50;
  min-height:100vh; width:100%;
  display:flex; flex-direction:column;
  overflow-y:auto; overflow-x:hidden; touch-action:pan-y; -webkit-overflow-scrolling:touch;
}
.fp-root.fp-hidden{ display:none; }
/* v3.40.0: /game direct-load route (set by the inline script at the top of
   <head>, before this render-blocking <style> is even reached, so this
   rule is already active the instant #dashboardScreen is parsed below --
   no flash). #startScreen already renders underneath at all times (see
   note above), so hiding the dashboard here reveals it immediately,
   exactly the same end state as clicking "Play now". */
html.fp-route-game .fp-root{ display:none; }
.fp-topbar{ padding:24px 36px 8px; }
.fp-wordmark{ width:150px; height:auto; display:block; }
.fp-deck{
  position:relative; flex:1; display:flex; gap:22px;
  padding:14px 22px 22px; min-height:600px;
}
.fp-external{ display:inline-flex; width:22px; height:22px; }
/* v3.39.1: .fp-card-wrap carries the flex sizing that used to live
   directly on .fp-card. .fp-card is itself an <a> (see the note below),
   and the Spotify corner badge added in v3.39.1 must NOT be a descendant
   of that anchor -- a nested <a> inside an <a> is invalid HTML and the
   parser's adoption-agency algorithm silently breaks the nesting, which
   would make the badge misbehave (wrong click target, broken tap area).
   So the badge is a sibling <a> instead, absolutely positioned inside
   this wrap, painted after (so visually above) .fp-card. The wrap takes
   over flex:1 so .fp-card can switch to position:absolute; inset:0 and
   keep filling exactly the same box it always did. */
.fp-card-wrap{ position:relative; flex:1; min-width:0; }
.fp-card{
  position:absolute; inset:0; border-radius:var(--r-lg); overflow:hidden;
  display:block; border:1px solid rgba(255,255,255,0.06);
  background:#140c09;
  transition:transform 320ms ease, border-color 320ms ease;
  will-change:transform;
}
/* v3.36.1: .fp-card is itself an <a>, so the browser's default UA stylesheet
   (a:link{text-decoration:underline}) underlined every text node inside it --
   the game page never links an external stylesheet with a general `a{}` reset
   (that only exists in styles/seo.css, used by the separate blog pages, not
   this one), and the dashboard's own inline <style> block never set
   text-decoration on .fp-card. Scoped to every descendant, not just the
   anchor itself, since an underline drawn by an ancestor anchor still paints
   across nested inline/text content unless each piece explicitly opts out. */
.fp-card, .fp-card:link, .fp-card:visited, .fp-card:hover, .fp-card:focus, .fp-card *{
  text-decoration:none;
}
.fp-card:hover, .fp-card:focus-visible{
  transform:translateY(-6px) scale(1.012);
  border-color:var(--accent);
}
.fp-card-bg{
  position:absolute; inset:0; background-size:cover; background-position:center;
  transition:transform 900ms ease, opacity 500ms ease; transform:scale(1.04);
}
.fp-card:hover .fp-card-bg{ transform:scale(1.1); opacity:0; }
.fp-card-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 500ms ease; pointer-events:none;
}
.fp-card:hover .fp-card-video{ opacity:1; }
/* v3.41.4: Carl reported the Game card's video (real gameplay footage of
   the dark title/skin-select screen) reads noticeably darker than the
   Album card's (bright neon swirl/tunnel), on mobile where both autoplay
   without a hover. Root cause measured via pixel-luminance sampling
   (Rec.709 luma, 0-255): Game ~24 vs Album ~98 on mobile, ~20 vs ~72 on
   desktop hover -- so the gap exists in both contexts, not just touch.
   It's two stacked factors: (1) the source footage is inherently darker
   (dark title screen vs bright tunnel) and (2) only the Game card carries
   .fp-card-scrim below, a gradient that darkens it further with no
   equivalent on the Album card (which instead gets a *brightening*
   .fp-album-glow). Scoped to #fpPlayCard only -- the Album card's video,
   which Carl said already looks right, is untouched.
   Only `brightness()` is used here, not `contrast()`: the footage is
   mostly near-black background, and CSS contrast(>1) actually pushes
   already-dark pixels (below the 50% midpoint) further toward black --
   it would have fought the brightness gain instead of adding to it. A
   multiplicative filter alone barely lifts near-zero pixels either way
   (0 * 1.35 is still ~0), which is why most of the real lift comes from
   .fp-game-glow below -- a plain alpha-composited radial wash, the same
   technique the Album card's .fp-album-glow already uses, which raises
   even true-black pixels because it is mixing in a non-black color, not
   scaling the existing one. */
#fpPlayCard .fp-card-video{ filter:brightness(1.35); }
/* v3.38.0: touch devices autoplay the preview video directly as the
   default visible state (see initDashboard()'s touch branch below)
   instead of waiting for a hover that can never fire. This class is
   added only once the video actually starts playing, so a slow or
   failed load still shows the static poster instead of a blank frame. */
.fp-card-video.fp-video-active{ opacity:1; }
.fp-card-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,6,4,0.15) 0%, rgba(10,6,4,0.55) 55%, rgba(8,5,3,0.92) 100%);
  transition:background 320ms ease;
}
.fp-card:hover .fp-card-scrim{ background:linear-gradient(180deg, rgba(10,6,4,0.05) 0%, rgba(10,6,4,0.4) 55%, rgba(8,5,3,0.88) 100%); }
/* v3.41.4: see the #fpPlayCard .fp-card-video comment above. .fp-card-scrim
   only exists on the Game card today (the Album card has no scrim div at
   all), so this gradient was uniquely crushing the Game card's already-
   darker footage. Softened here, scoped to #fpPlayCard so a future reuse
   of .fp-card-scrim elsewhere keeps the original darker look. */
#fpPlayCard .fp-card-scrim{ background:linear-gradient(180deg, rgba(10,6,4,0.08) 0%, rgba(10,6,4,0.32) 55%, rgba(8,5,3,0.58) 100%); }
#fpPlayCard.fp-card:hover .fp-card-scrim{ background:linear-gradient(180deg, rgba(10,6,4,0.03) 0%, rgba(10,6,4,0.24) 55%, rgba(8,5,3,0.5) 100%); }
.fp-card-body{
  position:relative; height:100%; display:flex; flex-direction:column;
  justify-content:flex-end; padding:36px; gap:14px;
}
/* QA P2: the Album card has no .fp-card-scrim, so its caption sat straight on the
   bright video and the last words washed out. A bottom-weighted gradient on the body
   (which fills the card, so it inherits the card's own clipping) gives it a backdrop. */
#fpAlbumCard .fp-card-body{ background:linear-gradient(180deg, rgba(8,5,3,0) 40%, rgba(8,5,3,0.72) 100%); }
/* QA 2026-11-13: house rule, no shadows. The text-shadows that kept the captions legible on the
   video are gone, so the Game card's caption gets the same bottom backdrop as the Album card. */
#fpPlayCard .fp-card-body{ background:linear-gradient(180deg, rgba(8,5,3,0) 40%, rgba(8,5,3,0.72) 100%); }
/* v3.36.2: contrast fix. Eyebrow/title/tagline previously filled with the
   per-card --accent (purple on the Album card) or a muted tan (#d9c7b6),
   both of which can wash out against the busy video/photo background --
   especially the purple eyebrow, which sits close in hue to the warm
   background itself. Text is now a near-white/cream fill (max achievable
   luminance) for maximum contrast against the busy art. Since QA 2026-11-13
   the backdrop gradient on .fp-card-body carries contrast, not shadows. */
.fp-eyebrow{
  font-family:'Press Start 2P','PressStart2P-fallback',monospace; font-size:32px; letter-spacing:2px;
  line-height:1.25; color:#fff6ea;
  }
.fp-card-title{
  font-family:'Press Start 2P','PressStart2P-fallback',monospace; font-size:32px; letter-spacing:2px;
  line-height:1.25; color:#fff6ea; margin:0;
}
.fp-tagline{
  font-size:20px; line-height:1.4; color:#f3e9dd; max-width:420px;
}
.fp-cta{
  margin-top:6px; display:inline-flex; align-items:center; gap:14px;
  align-self:flex-start; padding:18px 34px; border-radius:999px;
  font-family:'Press Start 2P','PressStart2P-fallback',monospace; font-size:18px; color:#1a0f08;
  background:var(--accent);
  transition:transform 260ms cubic-bezier(.34,1.56,.64,1), filter 220ms ease;
}
.fp-card:hover .fp-cta{ transform:translateX(4px); filter:brightness(1.08); }
.fp-cta:hover{
  transform:translate(6px,-3px) scale(1.06) !important;
  filter:brightness(1.18) !important;
}
.fp-badge{
  position:absolute; top:36px; left:36px;
  font-family:'Press Start 2P','PressStart2P-fallback',monospace; font-size:9px; letter-spacing:1px;
  color:#0b0604; background:#3ddc84; padding:6px 10px; border-radius:999px;
}
.fp-album-glow{
  position:absolute; inset:0;
  background:radial-gradient(ellipse 60% 50% at 50% 30%, rgba(168,85,247,0.35), transparent 70%);
  opacity:0.8; transition:opacity 320ms ease;
}
.fp-card:hover .fp-album-glow{ opacity:1; }
/* v3.41.4: see the #fpPlayCard .fp-card-video comment above. Same
   plain alpha-composited radial wash as .fp-album-glow, in the card's
   own colour (a neutral lilac white since QA 2026-11-13 retired the orange;
   a green wash tinted the footage), tuned stronger (0.5 vs the Album card's 0.35) since the Game
   footage's near-black background needs more of a lift than the Album
   card's already-bright tunnel does. */
#fpPlayCard .fp-game-glow{
  position:absolute; inset:0;
  background:radial-gradient(ellipse 65% 55% at 50% 32%, rgba(236,228,255,0.4), transparent 72%);
  opacity:0.85; transition:opacity 320ms ease;
}
#fpPlayCard.fp-card:hover .fp-game-glow{ opacity:1; }

/* v3.39.1: persistent bottom-right Spotify corner badge. Added v3.40.2:
   Album card only (removed from the Game card, which should not carry a
   Spotify badge). Sibling of .fp-card (see the .fp-card-wrap comment
   above) so it's never a nested anchor. 44px hit area matches this
   project's touch-target convention (see the .fp-cta mobile comment
   below); the visible glyph inside is smaller. z-index keeps it above
   the card's bg/video/scrim layers; right/bottom offset keeps it clear
   of the Album card's CTA pill, which is left-aligned
   (align-self:flex-start) and content-sized, so it never reaches the
   right edge where this badge sits. */
.fp-spotify-badge{
  position:absolute; right:18px; bottom:18px; z-index:5;
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,6,12,.72); border:1.5px solid rgba(255,255,255,.22);
  transition:transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.fp-spotify-badge:hover, .fp-spotify-badge:focus-visible{
  background:rgba(8,6,12,.9); border-color:rgba(255,255,255,.4); transform:scale(1.08);
}
.fp-spotify-badge:active{ transform:scale(0.96); }
.fp-spotify-icon{ width:24px; height:24px; display:block; }

/* ---------------------------------------------------------------------
   v3.38.0: mobile/touch dashboard pass (Carl-requested). Three changes,
   all scoped so the hover-capable desktop rules above are completely
   untouched:
   1) Touch default polish (below, hover:none/pointer:coarse) -- gives
      touch visitors an equivalent "arrived" look since :hover can never
      fire for them.
   2) Cards fit the screen (below, max-width:860px) -- replaces the old
      unconstrained `min-height:420px` stack (which could require
      scrolling to see both cards) with a `100dvh`-driven layout where
      the deck fills the viewport minus the topbar and each card gets an
      equal flex share, so both are visible with minimal/no scroll on a
      real phone.
   3) Autoplaying touch video (JS, initDashboard()) -- this block just
      supplies `.fp-video-active`'s visibility (defined next to
      `.fp-card-video` above) and the compact card sizing it plays into.
   Placed last in this stylesheet (after every base .fp-card-* rule) on
   purpose: CSS gives later same-specificity rules priority, and several
   selectors here (.fp-card-body, .fp-eyebrow, .fp-card-title, .fp-tagline,
   .fp-cta, .fp-badge) match the exact same elements as
   the unscoped base rules declared earlier in the file. */
@media (max-width:860px){
  .fp-root{
    height:100vh; height:100dvh;
    min-height:100vh; min-height:100dvh;
  }
  .fp-topbar{ padding:14px 18px 6px; flex:0 0 auto; }
  .fp-wordmark{ width:104px; }
  .fp-deck{
    flex:1 1 auto; flex-direction:column; min-height:0;
    gap:12px; padding:10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .fp-card-wrap{ flex:1 1 0; min-height:0; }
  .fp-card-body{ padding:20px; gap:8px; }
  .fp-eyebrow, .fp-card-title{ font-size:24px; letter-spacing:1.5px; }
  .fp-tagline{ font-size:15px; max-width:100%; }
  /* min-height:44px keeps the CTA a real tap target (this project's
     accessibility bar) even though the reduced padding alone would
     fall short of it at this font size. */
  .fp-cta{ padding:14px 26px; min-height:44px; font-size:15px; gap:12px; }
  .fp-external{ width:18px; height:18px; }
  .fp-badge{ top:14px; left:14px; font-size:8px; padding:5px 8px; }
}

/* Touch/no-hover default polish. Scoped by input capability (not
   viewport width) so it also applies to a touch tablet wider than the
   860px stacking breakpoint above. Hover-capable desktop is untouched --
   these properties only ever apply where :hover structurally cannot. */
@media (hover:none) and (pointer:coarse){
  .fp-card{
    border-color:rgba(255,255,255,0.16);
  }
  .fp-cta{ filter:brightness(1.04); }
}

/* ---------------------------------------------------------------------
   New for the Journey game card. The card is no longer one big <a>: it holds
   two links (Journey and Classic), and an <a> may not contain another <a>.
   .fp-card-link is an empty anchor stretched over the whole card (the click
   and tap target, and the card's keyboard stop); the visible "Play now" pill
   is an unfocusable duplicate of the same link so its own hover lift still
   works; the Classic link sits above the overlay with its own hit area. */
.fp-card-link{ position:absolute; inset:0; z-index:2; border-radius:var(--r-lg); }
.fp-card-link:focus{ outline:none; }
.fp-card-link:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
#fpPlayCard .fp-card-body{ z-index:3; pointer-events:none; }
#fpPlayCard .fp-cta, #fpPlayCard .fp-classic-link{ pointer-events:auto; }
.fp-card.fp-focus{
  transform:translateY(-6px) scale(1.012);
  border-color:var(--accent);
}
.fp-card .fp-classic-link{
  align-self:flex-start; display:inline-flex; align-items:center; min-height:44px;
  margin-top:-6px; font-size:20px; line-height:1.2; color:#f3e9dd;
  text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px;
}
.fp-card .fp-classic-link:hover{ color:#fff6ea; text-decoration-thickness:2px; }
.fp-card .fp-classic-link:focus{ outline:none; }
.fp-card .fp-classic-link:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width:860px){
  .fp-card .fp-classic-link{ font-size:15px; margin-top:-4px; }
}
/* Keyboard focus previews the video the same way hover does (landing.js sets .fp-focus). */
.fp-card.fp-focus .fp-card-bg{ transform:scale(1.1); opacity:0; }
.fp-card.fp-focus .fp-card-video{ opacity:1; }
@media (prefers-reduced-motion: reduce){
  .fp-card-video{ display:none; }
  .fp-card:hover .fp-card-bg, .fp-card.fp-focus .fp-card-bg{ transform:scale(1.04); opacity:1; }
  .fp-card, .fp-card-bg, .fp-cta{ transition:none; }
}
