/* exp-arcade-lore.css
   Stitch "Soft-Modernist" reskin for five extra in-game surfaces that the main
   experience.css did not cover:

     1. ARCADE START GATE   (light)  the per-game "how to play" start card
     2. ARCADE BEST SCORES  (light)  the arcade hub menu with each game's best
     3. LORE COLLECTION     (dark)   the collectible fact-card grid
     4. STORY LOG           (dark)   the narration transcript, as a timeline
     5. MEMORY REEL         (dark)   the saga-reel keepsake cinema
     6. GAME MASTER SCRIPT  (light)  the day-by-day run sheet / running order

   Design language (matched to the shipped stitch.css + experience.css):
     LIGHT chrome     surface #F9F9F7, ink #1E293B, muted #64748B, hairline
                      #E2E8F0, pure-white cards.
     DARK immersive   #0F172A to near-black base, on-dark text #F8FAFC, muted
                      rgba(248,250,252,0.72), scrim rgba(15,23,42,0.9).
     ACCENT           var(--amber) fill with var(--on-amber) ink, exactly as the
                      app's own .btn-amber. The accent is read from the active
                      pack's injected tokens with a safe fallback, so every pack
                      recolours itself and no accent is ever hard-coded. On the
                      dark surfaces the accent is only ever a FILL, a hairline or
                      a small eyebrow, never a block of body text.
     Geometry         24px cards, 9999px pills, gentle lift 0 4px 20px
                      rgba(0,0,0,0.05), 44px minimum tap.
     Type             Plus Jakarta Sans display, Be Vietnam Pro body (already
                      loaded by the app).

   Scope: keyed on each feature's REAL component root (never .platform-screen and
   never the per-pack theme blocks in themes.css). The panels mount inside the
   app's <main id="screen"> host, so the full-bleed backgrounds are painted with
   #screen:has(<root>) just as experience.css does; the arcade surfaces are body
   level overlays and are scoped on their own roots. Additive and reversible:
   link this file LAST so its root-scoped, compound selectors win by source order.
   No em or en dashes anywhere in this file. */

/* ================================================================== *
 *  Shared accent + geometry tokens for all six surfaces.
 * ================================================================== */
.arcade-overlay,
.arcade-hub-overlay,
.story-lore,
.story-log,
.memory-panel,
.gm-script {
  --xa-accent: var(--amber, #f59e0b);
  --xa-on-accent: var(--on-amber, #2a1a00);
  --xa-accent-soft: rgba(245, 158, 11, 0.14);
  --xa-lift: 0 4px 20px rgba(0, 0, 0, 0.05);
  --xa-lift-dark: 0 18px 48px rgba(0, 0, 0, 0.5);
  --xa-radius: 24px;
  --xa-radius-md: 16px;

  /* Light chrome anchors. */
  --xa-surface: #f9f9f7;
  --xa-card: #ffffff;
  --xa-ink: #1e293b;
  --xa-muted: #64748b;
  --xa-hairline: #e2e8f0;

  /* Dark immersive anchors. */
  --xa-on-dark: #f8fafc;
  --xa-on-dark-muted: rgba(248, 250, 252, 0.72);
  --xa-panel-dark: rgba(15, 23, 42, 0.66);
  --xa-hairline-dark: rgba(248, 250, 252, 0.12);
}

/* A deep slate to near-black stage, reused by every dark surface below so the
   lore, log and reel read as one immersive world whatever palette the pack ships
   (including a light "day" theme). */
#screen:has(.story-lore),
#screen:has(.story-log),
#screen:has(.memory-panel) {
  background:
    radial-gradient(120% 78% at 50% 0%, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0) 60%),
    linear-gradient(180deg, #0f172a 0%, #0a0f1e 55%, #05070d 100%);
}

/* ================================================================== *
 *  1. ARCADE START GATE  ~  the per-game "how to play" card (light)
 *  Root: .arcade-overlay > .arcade-frame > .arcade-intro (full cover).
 *  The card fully covers the cabinet before play, so a warm off-white start
 *  gate reads cleanly and hands off to the dark game on Start.
 * ================================================================== */
.arcade-overlay .arcade-intro {
  background: radial-gradient(130% 90% at 50% 12%, #ffffff 0%, #f9f9f7 62%, #f4f4f1 100%);
  color: var(--xa-ink);
  gap: 10px;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
}
/* The emoji becomes a soft amber "spark of discovery" badge, as in the mock. */
.arcade-overlay .arcade-intro-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--xa-accent-soft);
  font-size: 46px;
}
.arcade-overlay .arcade-intro-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 27px;
  color: var(--xa-ink);
}
.arcade-overlay .arcade-intro-head {
  color: var(--xa-muted);
  opacity: 1;
  font-weight: 700;
}
.arcade-overlay .arcade-intro-text {
  color: #475569;
  font-size: 16px;
  line-height: 1.5;
}
/* The "best so far" line reads as a soft info card, echoing the mock's PRO TIP. */
.arcade-overlay .arcade-intro-best {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--xa-radius-md);
  background: var(--xa-accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #7a4d00;
  font-weight: 700;
}
/* The Play tap is the big accent pill from the mock. It is already .btn-amber, so
   the amber fill and on-amber ink carry through; we just size it up. */
.arcade-overlay .arcade-intro-play {
  margin-top: 18px;
  min-width: 220px;
  min-height: 56px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(133, 83, 0, 0.2), 0 16px 32px rgba(245, 158, 11, 0.3);
}

/* ------ Arcade cabinet chrome polish (kept dark: it frames the live game) ---- */
.arcade-overlay .arcade-hud {
  gap: 8px;
  border-bottom: 1px solid var(--xa-hairline-dark);
}
.arcade-overlay .arcade-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--xa-accent);
}
/* HUD buttons as quiet pills that read on the dark cabinet. */
.arcade-overlay .arcade-hud .arcade-btn {
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.24);
  color: var(--xa-on-dark);
}
.arcade-overlay .arcade-hud .arcade-btn:hover {
  border-color: var(--xa-accent);
  background: rgba(248, 250, 252, 0.14);
}
.arcade-overlay .arcade-close {
  border-radius: 999px;
  width: 40px;
  height: 40px;
  min-height: 40px;
}
.arcade-overlay .arcade-close:hover,
.arcade-overlay .arcade-close:focus-visible {
  background: rgba(248, 250, 252, 0.14);
  outline: none;
}

/* ================================================================== *
 *  2. ARCADE BEST SCORES  ~  the arcade hub menu (light)
 *  Root: .arcade-hub-overlay > .arcade-hub-card (.overlay-card base).
 *  Each game tile carries its personal best, so the hub reads as a clean
 *  scored collection: soft amber badges and amber best pills on white cards.
 * ================================================================== */
.arcade-hub-overlay .arcade-hub-card {
  background: var(--xa-surface);
  border: 1px solid var(--xa-hairline);
  border-radius: var(--xa-radius);
  box-shadow: 0 1px 3px rgba(26, 28, 27, 0.04), 0 20px 48px rgba(26, 28, 27, 0.16);
  color: var(--xa-ink);
}
.arcade-hub-overlay .menu-header {
  background: transparent;
  border-bottom: 1px solid var(--xa-hairline);
}
.arcade-hub-overlay .panel-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--xa-ink);
}
.arcade-hub-overlay .panel-note {
  color: var(--xa-muted);
}
.arcade-hub-overlay .menu-close {
  background: #ffffff;
  border: 1px solid var(--xa-hairline);
  color: var(--xa-ink);
  border-radius: 999px;
}
.arcade-hub-overlay .menu-close:hover,
.arcade-hub-overlay .menu-close:focus-visible {
  border-color: var(--xa-accent);
  background: var(--xa-accent-soft);
}
.arcade-hub-overlay .arcade-hub-grid {
  gap: 12px;
}
.arcade-hub-overlay .arcade-hub-tile {
  background: var(--xa-card);
  border: 1px solid var(--xa-hairline);
  border-radius: var(--xa-radius-md);
  box-shadow: var(--xa-lift);
  color: var(--xa-ink);
  padding: 16px 12px;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.arcade-hub-overlay .arcade-hub-tile:hover,
.arcade-hub-overlay .arcade-hub-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--xa-accent);
  box-shadow: 0 2px 6px rgba(26, 28, 27, 0.06), 0 22px 44px rgba(245, 158, 11, 0.16);
  outline: none;
}
/* The emoji becomes the tile's rank-style badge (a soft amber disc). */
.arcade-hub-overlay .arcade-hub-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--xa-accent-soft);
  font-size: 30px;
}
.arcade-hub-overlay .arcade-hub-name {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--xa-ink);
}
.arcade-hub-overlay .arcade-hub-blurb {
  color: var(--xa-muted);
}
/* The personal best is the tile's "score", shown as an amber pill. */
.arcade-hub-overlay .arcade-hub-best {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--xa-accent-soft);
  color: #7a4d00;
  font-size: 12px;
  font-weight: 800;
}

/* ================================================================== *
 *  3. LORE COLLECTION  ~  collectible fact-card grid (dark)
 *  Root: .story-lore (rendered in .panel-wrap inside #screen).
 *  Cards read as dark collectibles: unlocked ones glow with an accent top
 *  rule and lift on hover; locked ones stay quiet behind a dashed hairline.
 * ================================================================== */
.story-lore .panel-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: var(--xa-on-dark);
}
.story-lore .panel-note {
  color: var(--xa-on-dark-muted);
}
.story-lore .story-lore-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.story-lore .story-lore-card {
  position: relative;
  padding: 16px;
  border-radius: var(--xa-radius);
  background: var(--xa-panel-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--xa-hairline-dark);
  box-shadow: var(--xa-lift-dark);
  color: var(--xa-on-dark);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.story-lore .story-lore-card.unlocked {
  border-color: rgba(245, 158, 11, 0.45);
  border-top: 3px solid var(--xa-accent);
}
.story-lore .story-lore-card.unlocked:hover,
.story-lore .story-lore-card.unlocked:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55);
  border-color: var(--xa-accent);
}
/* Locked cards stay a hidden collectible: dimmed behind a dashed hairline. */
.story-lore .story-lore-card.locked {
  opacity: 1;
  background: rgba(15, 23, 42, 0.42);
  border: 1px dashed rgba(248, 250, 252, 0.22);
  color: var(--xa-on-dark-muted);
}
.story-lore .story-lore-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--xa-accent-soft);
  color: var(--xa-accent);
  font-size: 30px;
}
.story-lore .story-lore-locked-glyph {
  color: rgba(248, 250, 252, 0.5);
  font-size: 2.2rem;
}
.story-lore .story-lore-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  color: var(--xa-on-dark);
}
/* The realm / subtitle reads as an accent pill, as in the mock's "MOUNTAIN REALM". */
.story-lore .story-lore-card.unlocked .story-lore-sub {
  display: inline-block;
  align-self: flex-start;
  margin: 6px 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--xa-accent);
  color: var(--xa-on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 1;
}
.story-lore .story-lore-fact {
  color: var(--xa-on-dark-muted);
}
.story-lore .story-lore-kid {
  color: var(--xa-accent);
  opacity: 1;
}

/* ================================================================== *
 *  4. STORY LOG  ~  narration transcript, as a quiet timeline (dark)
 *  Root: .story-log (rendered in .panel-wrap inside #screen).
 *  A left rail with a node per line turns the transcript into the mock's
 *  adventure-record timeline of quiet dark cards.
 * ================================================================== */
.story-log .panel-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: var(--xa-on-dark);
}
.story-log .panel-note {
  color: var(--xa-on-dark-muted);
}
/* The favourites filter is a quiet outline pill on the dark base. */
.story-log .story-log-filter .btn-small {
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.28);
  color: var(--xa-on-dark);
}
.story-log .story-log-filter .btn-small[aria-pressed='true'] {
  background: var(--xa-accent);
  color: var(--xa-on-accent);
  border-color: var(--xa-accent);
}
/* The list carries the vertical timeline rail. */
.story-log .story-log-list {
  position: relative;
  padding-left: 26px;
  gap: 14px;
}
.story-log .story-log-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(248, 250, 252, 0.16);
}
/* Each spoken line becomes a quiet dark card sitting on the rail. */
.story-log .story-log-line {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--xa-hairline-dark);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: var(--xa-on-dark);
}
/* The timeline node: an accent-ringed dot aligned to the rail. */
.story-log .story-log-line::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0f1e;
  border: 2px solid var(--xa-accent);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
}
.story-log .story-log-speaker {
  color: var(--xa-accent);
  font-weight: 800;
}
.story-log .story-log-text {
  color: var(--xa-on-dark);
}
/* The keep (heart) and replay controls read as quiet pills on the dark base. */
.story-log .story-log-fave {
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.22);
  color: var(--xa-on-dark-muted);
}
.story-log .story-log-fave.kept {
  color: #ff8a7a;
  border-color: rgba(255, 138, 122, 0.5);
  background: rgba(255, 138, 122, 0.12);
}
.story-log .story-log-replay {
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.28);
  color: var(--xa-on-dark);
}
.story-log .story-log-foot .btn-small {
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.28);
  color: var(--xa-on-dark);
}

/* ================================================================== *
 *  5. MEMORY REEL  ~  saga-reel keepsake cinema (dark)
 *  Root: .memory-panel (rendered in .panel-wrap inside #screen).
 *  The reel canvas becomes a framed cinema stage on a deep base; the keepsake
 *  makers sit in dark cards with amber "make / share" pills.
 * ================================================================== */
.memory-panel .panel-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: var(--xa-on-dark);
}
.memory-panel .panel-note {
  color: var(--xa-on-dark-muted);
}
.memory-panel .memory-empty {
  color: var(--xa-on-dark-muted);
}
.memory-panel .memory-card {
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--xa-radius);
  border: 1px solid var(--xa-hairline-dark);
  background: var(--xa-panel-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--xa-lift-dark);
  color: var(--xa-on-dark);
}
.memory-panel .memory-card-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--xa-on-dark);
}
.memory-panel .memory-card .panel-note {
  color: var(--xa-on-dark-muted);
}
/* Dark form controls (chapter / photo / filter pickers) with an amber focus. */
.memory-panel .cert-label {
  color: var(--xa-on-dark-muted);
}
.memory-panel .cert-photo-select,
.memory-panel select {
  background: rgba(15, 23, 42, 0.72);
  color: var(--xa-on-dark);
  border: 1px solid rgba(248, 250, 252, 0.24);
  border-radius: 12px;
}
.memory-panel .cert-photo-select:focus,
.memory-panel select:focus {
  outline: none;
  border-color: var(--xa-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.24);
}
/* The saga-reel becomes the cinema stage: a big rounded, accent-framed screen. */
.memory-panel .saga-reel-stage {
  margin-top: 14px;
}
.memory-panel .saga-reel-canvas {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--xa-radius);
  background: #05070d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
/* The make / share action is the accent pill (already .btn-amber.big). */
.memory-panel .memory-card .btn-amber {
  border-radius: 999px;
}

/* ================================================================== *
 *  6. GAME MASTER SCRIPT  ~  day-by-day run sheet / running order (light)
 *  Root: .gm-script (rendered in .panel-wrap inside #screen).
 *  Light chrome: each day is a white card, each beat a running-order row with
 *  an accent marker and a type pill, and the answer sits in a soft amber card.
 * ================================================================== */
#screen:has(.gm-script) {
  background: var(--xa-surface);
}
/* The panel host also holds the shared "Back" pill above the run sheet; make it
   read on the light page (its default styling targets the dark surfaces). */
#screen:has(.gm-script) > .btn-small {
  background: #ffffff;
  color: var(--xa-ink);
  border: 1px solid var(--xa-hairline);
  border-radius: 999px;
}
#screen:has(.gm-script) > .btn-small:hover,
#screen:has(.gm-script) > .btn-small:focus-visible {
  border-color: var(--xa-accent);
  background: var(--xa-accent-soft);
  outline: none;
}
.gm-script {
  color: var(--xa-ink);
}
.gm-script .gm-script-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: var(--xa-ink);
}
.gm-script .gm-script-note {
  color: var(--xa-muted);
}
.gm-script .gm-script-empty {
  color: var(--xa-muted);
}
.gm-script .gm-script-print {
  border-radius: 999px;
  background: #ffffff;
  color: var(--xa-ink);
  border: 1px solid var(--xa-hairline);
}
.gm-script .gm-script-print:hover,
.gm-script .gm-script-print:focus-visible {
  border-color: var(--xa-accent);
  background: var(--xa-accent-soft);
  outline: none;
}
/* Each day is a white running-order card. */
.gm-script .gm-day {
  margin: 16px 0;
  padding: 18px;
  background: var(--xa-card);
  border: 1px solid var(--xa-hairline);
  border-radius: var(--xa-radius);
  box-shadow: var(--xa-lift);
}
.gm-script .gm-day-head {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  color: var(--xa-ink);
  margin: 0 0 4px;
}
.gm-script .gm-day-meta {
  color: var(--xa-muted);
  font-weight: 600;
}
.gm-script .gm-hook {
  color: #475569;
  font-style: italic;
}
/* A beat is a running-order row: a soft inner card with an accent left marker. */
.gm-script .gm-beat {
  position: relative;
  margin: 10px 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--xa-hairline);
  border-left: 4px solid var(--xa-accent);
  border-radius: var(--xa-radius-md);
  background: #fbfbfa;
}
.gm-script .gm-beat-type {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--xa-accent-soft);
  color: #7a4d00;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
/* A choice beat is tinted differently so it stands out in the running order. */
.gm-script .gm-beat-type.type-choice {
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
}
.gm-script .gm-beat-title {
  font-weight: 700;
  color: var(--xa-ink);
  vertical-align: middle;
}
.gm-script .gm-beat-prompt {
  margin-top: 8px;
  color: #475569;
}
.gm-script .gm-opts {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--xa-ink);
}
.gm-script .gm-opts li {
  margin: 3px 0;
}
/* The daily question + answer is the highlighted card, echoing the mock's
   current-beat emphasis: a soft amber field with dark ink. */
.gm-script .gm-question {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--xa-radius-md);
  background: var(--xa-accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.gm-script .gm-q-label {
  color: #7a4d00;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.gm-script .gm-q-prompt {
  color: var(--xa-ink);
  font-weight: 600;
}
.gm-script .gm-q-answer {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #166534;
  font-weight: 700;
}

/* ================================================================== *
 *  Motion safety: the hover lifts and the panel blurs are cosmetic. Drop
 *  the transforms for reduced-motion users, and fall back to a solid dark
 *  panel where backdrop-filter is unsupported (still fully legible).
 * ================================================================== */
@media (prefers-reduced-motion: reduce) {
  .arcade-hub-overlay .arcade-hub-tile,
  .story-lore .story-lore-card {
    transition: none !important;
  }
  .arcade-hub-overlay .arcade-hub-tile:hover,
  .story-lore .story-lore-card.unlocked:hover {
    transform: none !important;
  }
}
body.reduce-motion .arcade-hub-overlay .arcade-hub-tile,
body.reduce-motion .story-lore .story-lore-card {
  transition: none !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .story-lore .story-lore-card,
  .memory-panel .memory-card {
    background: rgba(15, 23, 42, 0.92);
  }
}

/* ================================================================== *
 *  STRUCTURAL mock hooks (added with their live DOM in the components).
 *  Same six surfaces, three new pieces:
 *    A. LORE COLLECTION   progress bar  (dark)   .story-lore-progress
 *    B. MEMORY REEL       transport + thumbs (dark) .saga-reel-controls et al
 *    C. GAME MASTER SCRIPT run header + current day + location (light)
 *  All accent-driven, pill / 44px tap, gentle lift, tokens above. No em or en
 *  dashes anywhere.
 * ================================================================== */

/* ---- A. LORE COLLECTION progress (dark) ---------------------------------- */
.story-lore .story-lore-progress {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--xa-radius);
  background: var(--xa-panel-dark);
  border: 1px solid var(--xa-hairline-dark);
  box-shadow: var(--xa-lift-dark);
}
.story-lore .story-lore-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.story-lore .story-lore-progress-title {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--xa-on-dark);
}
.story-lore .story-lore-progress-count {
  color: var(--xa-on-dark-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.story-lore .story-lore-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  overflow: hidden;
}
.story-lore .story-lore-progress-fill {
  height: 100%;
  min-width: 6px;
  border-radius: 999px;
  background: var(--xa-accent);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  transition: width 0.4s ease;
}

/* ---- B. MEMORY REEL transport + thumbnail strip (dark) ------------------- */
.memory-panel .saga-reel-progress {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.14);
  overflow: hidden;
}
.memory-panel .saga-reel-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--xa-accent);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  transition: width 0.3s ease;
}
.memory-panel .saga-reel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 14px;
}
.memory-panel .saga-reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.24);
  background: rgba(248, 250, 252, 0.08);
  color: var(--xa-on-dark);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.memory-panel .saga-reel-btn:hover,
.memory-panel .saga-reel-btn:focus-visible {
  border-color: var(--xa-accent);
  background: rgba(248, 250, 252, 0.14);
  outline: none;
}
/* The play / pause tap is the big amber transport button from the mock. */
.memory-panel .saga-reel-play {
  min-width: 64px;
  min-height: 64px;
  font-size: 26px;
  background: var(--xa-accent);
  color: var(--xa-on-accent);
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.4);
}
.memory-panel .saga-reel-play:hover,
.memory-panel .saga-reel-play:focus-visible {
  background: var(--xa-accent);
  transform: translateY(-1px);
}
.memory-panel .saga-reel-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.memory-panel .saga-reel-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid rgba(248, 250, 252, 0.18);
  background: #05070d;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.memory-panel .saga-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.memory-panel .saga-reel-thumb:hover,
.memory-panel .saga-reel-thumb:focus-visible {
  border-color: var(--xa-accent);
  outline: none;
}
.memory-panel .saga-reel-thumb.current {
  border-color: var(--xa-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

/* ---- C. GAME MASTER run header + current day + location (light) ---------- */
.gm-script .gm-run-header {
  margin: 16px 0;
  padding: 18px;
  background: var(--xa-card);
  border: 1px solid var(--xa-hairline);
  border-radius: var(--xa-radius);
  box-shadow: var(--xa-lift);
}
.gm-script .gm-run-eyebrow {
  color: #7a4d00;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gm-script .gm-run-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gm-script .gm-run-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: var(--xa-radius-md);
  background: #fbfbfa;
  border: 1px solid var(--xa-hairline);
}
.gm-script .gm-run-stat-value {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--xa-ink);
}
.gm-script .gm-run-stat-label {
  color: var(--xa-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}
.gm-script .gm-location-preview {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: var(--xa-radius);
  background: var(--xa-accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.gm-script .gm-location-eyebrow {
  color: #7a4d00;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gm-script .gm-location-name {
  font-family: var(--font-head, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  color: var(--xa-ink);
}
.gm-script .gm-location-where {
  margin: 6px 0 0;
  color: #475569;
}
.gm-script .gm-location-date {
  margin-top: 6px;
  color: var(--xa-muted);
  font-weight: 600;
  font-size: 0.85rem;
}
/* The current day stands out in the running order with an accent ring and a soft
   lift, echoing the mock's highlighted CURRENT BEAT card at day granularity. */
.gm-script .gm-day--current {
  border-color: var(--xa-accent);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), var(--xa-lift);
}
.gm-script .gm-day-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--xa-accent);
  color: var(--xa-on-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Motion safety for the new interactive lifts (reel transport + thumbnails). */
@media (prefers-reduced-motion: reduce) {
  .memory-panel .saga-reel-btn,
  .memory-panel .saga-reel-thumb {
    transition: none !important;
  }
  .memory-panel .saga-reel-play:hover,
  .memory-panel .saga-reel-thumb.current {
    transform: none !important;
  }
}
body.reduce-motion .memory-panel .saga-reel-btn,
body.reduce-motion .memory-panel .saga-reel-thumb {
  transition: none !important;
}
