/* ============================================================================
   FLOOR IS LAVA — HELP SITE VISUAL SYSTEM  (v2, dark volcanic)
   Design handed over by Claude Design, July 2026. See
   /site-style-guide/Design Style Guide (standalone).html for the full writeup.
   ----------------------------------------------------------------------------
   STYLE GUIDE — how to apply this to any page:

   PAGE SHELL (every page)
     <header class="site-header"> … brand link (.flame emoji span) + a
                                     .header-cta "Play Floor Is Lava" button
     <nav class="breadcrumbs">    … help pages: mono HUD strip breadcrumb
     <nav class="legal-nav">      … root pages (about/terms/privacy/refund):
                                     pill cross-links instead of a breadcrumb
     <main>                       … article column, max 800px
     <footer class="site-footer">

   ARTICLE PAGES (help/*.html)
     h1          — big blocky display heading, gold with lava glow
     .lede       — intro paragraph, larger, brighter
     h2          — section heading, gold, lava underline bar
     ol / ul     — numbered steps get gold ring markers automatically
     ul.tips     — tip list, each item gets a subtle card treatment
     .callout    — warm-orange callout panel (#ff9944 accent)
     figure.screenshot   — game-chrome framed screenshot + mono caption
     .needs-screenshot   — dashed placeholder panel for missing shots
     .related-list       — link cards, game-chrome style

   HUB / INDEX PAGES (help/index.html, help/account/index.html)
     .hub-grid   — responsive card grid
     .hub-card   — game-UI card (#1a1a3e fill, #4a5fd4 border). Category
                   accent colors assigned by source order via :nth-child —
                   1 red · 2 blue · 3 yellow · 4 green · 5 purple · 6 ice.
                   Pin explicitly with .accent-red / -blue / -yellow /
                   -green / -purple / -ice.
     .coming-soon — muted mono tag inside a card h3
     .badge-note  — small navy pill badge

   LEGAL / ROOT PAGES (about.html, terms.html, privacy.html, refund.html)
     .legal-nav   — pill cross-links between the 4 root pages
     h2 .n        — numbered section chip (gold-ringed, mono digit)
     table        — policy tables (privacy)
     .mode        — game-mode card grid (about.html)
     .kbd         — keyboard-key badge (about.html controls list)
     .callout     — reused for statutory-rights / delete-data notices

   CALL TO ACTION
     Any <a><strong>…</strong></a> that is a direct child of a top-level
     <p> inside <main> renders as a pulsing lava-gradient pill button
     (mirrors the game's own ▶ PLAY button). Use this for "Play Floor Is
     Lava" prompts at the top and/or bottom of any page's content.
     .header-cta is the equivalent treatment sized for the header bar.

   ATMOSPHERE
     Background = layered radial lava-glow gradients on <body> plus a
     CSS-only ember drift (body::before/::after, pure CSS, no JS, disabled
     under prefers-reduced-motion). Text always sits on solid/scrimmed
     panels or the dark base so WCAG AA contrast holds.

   FONTS  Space Grotesk (body/UI) · Arial Black (display) · JetBrains Mono
          (breadcrumbs, captions, meta/HUD text) — loaded via Google Fonts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* official palette v50 */
  --bg-page: #0d0d2b;
  --bg-deep: #0a0a1a;
  --panel: #1a1a3e;
  --panel-modal: #12122a;
  --border-ui: #4a5fd4;
  --gold: #ffe066;
  --gold-dark: #f5a000;
  --lava: #ff5500;
  --lava-bright: #ff8811;
  --lava-glow: #ff6a00;
  --warm: #ff9944;
  --coin: #FFD700;
  --text: #e8e0ff;
  --muted: #b9b3cf;
  /* platform / category accents */
  --acc-red: #e02060;
  --acc-blue: #2980e8;
  --acc-yellow: #e8b400;
  --acc-green: #27ae60;
  --acc-purple: #9b27af;
  --acc-ice: #aaddff;

  --font-body: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Arial Black", "Space Grotesk", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scrollbar-color: var(--border-ui) var(--bg-deep); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(1200px 500px at 50% -180px, rgba(255,106,0,0.16), transparent 70%),
    radial-gradient(700px 320px at 12% 0%, rgba(74,95,212,0.18), transparent 70%),
    radial-gradient(900px 600px at 88% 105%, rgba(255,85,0,0.10), transparent 65%),
    linear-gradient(180deg, #0a0a1a 0%, #0d0d2b 32%, #0d0d2b 78%, #150d24 100%);
  background-attachment: fixed;
  position: relative;
}

/* ---- CSS-only ember drift (no markup, no JS) ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(2px 2px at 12% 88%, rgba(255,136,17,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(255,224,102,0.8), transparent 60%),
    radial-gradient(2px 2px at 71% 79%, rgba(255,106,0,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 89% 55%, rgba(255,153,68,0.7), transparent 60%);
  background-size: 900px 900px;
  animation: ember-rise 26s linear infinite;
  opacity: 0.55;
}
body::after {
  background-image:
    radial-gradient(1.5px 1.5px at 22% 70%, rgba(255,224,102,0.7), transparent 60%),
    radial-gradient(2px 2px at 56% 92%, rgba(255,106,0,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 66%, rgba(255,136,17,0.6), transparent 60%);
  background-size: 700px 700px;
  animation: ember-rise 38s linear infinite reverse;
  opacity: 0.4;
}
@keyframes ember-rise {
  from { background-position: 0 0; }
  to   { background-position: -120px -900px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

header, nav, main, footer { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; transition: color 0.15s, text-shadow 0.15s; }
a:hover { color: var(--lava-bright); text-shadow: 0 0 14px rgba(255,106,0,0.55); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* ---------------- HEADER ---------------- */
header.site-header {
  background: linear-gradient(180deg, #12122a 0%, #0a0a1a 100%);
  border-bottom: 2px solid var(--border-ui);
  box-shadow: 0 2px 24px rgba(74,95,212,0.25), 0 6px 40px rgba(255,106,0,0.08);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

header.site-header a.brand {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(255,106,0,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
header.site-header a.brand:hover { color: var(--gold); text-shadow: 0 0 26px rgba(255,106,0,0.95); }
header.site-header .flame { filter: drop-shadow(0 0 8px rgba(255,106,0,0.8)); }

/* persistent header "Play Floor Is Lava" CTA */
.header-cta {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #1a0800 !important;
  background: linear-gradient(180deg, var(--lava-bright), var(--lava));
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-dark);
  box-shadow: 0 0 14px rgba(255,106,0,0.4);
  white-space: nowrap;
  transition: filter 0.15s, box-shadow 0.15s, transform 0.15s;
}
.header-cta:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 24px rgba(255,106,0,0.7);
  text-shadow: none;
  transform: translateY(-1px);
}

/* ---------------- BREADCRUMBS (HUD strip, help pages) ---------------- */
nav.breadcrumbs {
  max-width: 800px;
  margin: 22px auto 0;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(18,18,42,0.7);
  border: 1px solid rgba(74,95,212,0.45);
  border-radius: 8px;
  width: fit-content;
  min-width: min(800px, calc(100% - 40px));
}
nav.breadcrumbs a { color: var(--acc-ice); }
nav.breadcrumbs a:hover { color: var(--gold); text-shadow: none; }

/* ---------------- LEGAL NAV (root pages: about/terms/privacy/refund) ---------------- */
nav.legal-nav {
  max-width: 800px;
  margin: 22px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
nav.legal-nav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acc-ice);
  background: rgba(18,18,42,0.7);
  border: 1px solid rgba(74,95,212,0.45);
  border-radius: 20px;
  padding: 6px 14px;
}
nav.legal-nav a:hover { color: var(--gold); text-shadow: none; border-color: var(--lava-bright); }
nav.legal-nav a.cur {
  background: rgba(255,85,0,0.14);
  border-color: var(--lava-bright);
  color: var(--gold);
}

/* ---------------- MAIN COLUMN ---------------- */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  line-height: 1.15;
  color: var(--gold);
  text-shadow: 0 0 24px #ff6a00, 0 2px 0 rgba(0,0,0,0.4);
  letter-spacing: 0.01em;
  margin: 0.6em 0 0.4em;
  text-wrap: balance;
}
h1 span { color: var(--lava-bright); }

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255,106,0,0.45);
  margin: 2.1em 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 0;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lava) 0%, var(--lava-bright) 22%, rgba(74,95,212,0.6) 60%, transparent 100%);
  border-radius: 2px;
}
/* numbered legal-section chip, e.g. <h2><span class="n">1.</span>Eligibility</h2> */
h2 .n {
  font-family: var(--font-mono);
  color: var(--lava-bright);
  text-shadow: 0 0 10px rgba(255,106,0,0.5);
  margin-right: 8px;
}

h3 { color: var(--text); font-family: var(--font-display); font-weight: 900; font-size: 1rem; margin: 1.6em 0 0.4em; }
h3.kbd-title { font-family: var(--font-body); font-weight: 700; color: var(--lava-bright); }

.lede {
  font-size: 1.12rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(26,26,62,0.85), rgba(18,18,42,0.85));
  border: 1.5px solid var(--border-ui);
  border-left: 4px solid var(--lava-bright);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 26px rgba(10,10,26,0.6), inset 0 1px 0 rgba(232,224,255,0.06);
}

p strong, li strong { color: var(--gold); font-weight: 700; }

/* numbered steps */
main ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
main ol > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 0.9em;
}
main ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.05em;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  background: var(--panel-modal);
  border: 1.5px solid var(--gold-dark);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245,160,0,0.35);
}

main ul li { margin-bottom: 0.5em; }

/* ---------------- CALLOUT ---------------- */
.callout {
  background: linear-gradient(180deg, rgba(255,153,68,0.12), rgba(255,85,0,0.07));
  border: 1.5px solid rgba(255,153,68,0.6);
  border-left: 4px solid var(--warm);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 1.3em 0;
}
.callout strong { color: var(--gold); }

/* ---------------- SCREENSHOT FIGURE ---------------- */
figure.screenshot {
  margin: 1.8em 0;
  text-align: center;
}
figure.screenshot img {
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: 14px;
  border: 2px solid var(--border-ui);
  box-shadow: 0 0 0 4px rgba(13,13,43,0.9), 0 8px 40px rgba(0,0,0,0.6), 0 0 34px rgba(74,95,212,0.28);
  background: var(--bg-deep);
}
figure.screenshot figcaption {
  margin: 12px auto 0;
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.needs-screenshot {
  background: rgba(18,18,42,0.7);
  border: 1.5px dashed rgba(74,95,212,0.6);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin: 1.5em 0;
}
.needs-screenshot code { color: var(--acc-ice); }

/* ---------------- TIPS ---------------- */
ul.tips {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
ul.tips li {
  background: linear-gradient(180deg, rgba(26,26,62,0.75), rgba(18,18,42,0.75));
  border: 1px solid rgba(74,95,212,0.5);
  border-radius: 10px;
  padding: 11px 16px 11px 40px;
  position: relative;
  margin-bottom: 0;
}
ul.tips li::before {
  content: "◆";
  position: absolute;
  left: 16px;
  top: 11px;
  color: var(--lava-bright);
  text-shadow: 0 0 10px rgba(255,106,0,0.7);
  font-size: 0.8rem;
}

/* ---------------- RELATED LINKS ---------------- */
.related-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.related-list li {
  background: var(--panel);
  border: 1.5px solid var(--border-ui);
  border-radius: 10px;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.related-list li:hover {
  transform: translateX(4px);
  border-color: var(--lava-bright);
  box-shadow: 0 0 22px rgba(255,106,0,0.25);
}
.related-list li a {
  display: block;
  padding: 13px 18px;
  color: var(--text);
  font-weight: 500;
}
.related-list li a::before {
  content: "▶ ";
  color: var(--lava-bright);
  font-size: 0.75em;
  margin-right: 6px;
}
.related-list li a:hover { color: var(--gold); text-shadow: none; }

/* ---------------- HUB GRID (index pages) ---------------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 1.4em;
}

.hub-card {
  --accent: var(--border-ui);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-modal) 100%);
  border: 1.5px solid var(--border-ui);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 24px rgba(10,10,26,0.55), inset 0 1px 0 rgba(232,224,255,0.05);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(10,10,26,0.7), 0 0 26px color-mix(in oklab, var(--accent) 40%, transparent);
}

/* category accents by source order (or pin with .accent-* classes) */
.hub-card:nth-child(1), .hub-card.accent-red    { --accent: var(--acc-red); }
.hub-card:nth-child(2), .hub-card.accent-blue   { --accent: var(--acc-blue); }
.hub-card:nth-child(3), .hub-card.accent-yellow { --accent: var(--acc-yellow); }
.hub-card:nth-child(4), .hub-card.accent-green  { --accent: var(--acc-green); }
.hub-card:nth-child(5), .hub-card.accent-purple { --accent: var(--acc-purple); }
.hub-card:nth-child(6), .hub-card.accent-ice    { --accent: var(--acc-ice); }

.hub-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}
.hub-card h3 a { color: var(--gold); text-shadow: 0 0 14px rgba(255,106,0,0.35); }
.hub-card h3 a:hover { color: var(--lava-bright); }
.hub-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

.category-block { margin-top: 2.2em; }
.category-block h2 { border: none; padding-bottom: 0.35em; }

.coming-soon {
  color: var(--muted);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(74,95,212,0.18);
  border: 1px solid rgba(74,95,212,0.5);
  border-radius: 20px;
  padding: 2px 9px;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-note {
  display: inline-block;
  background: var(--panel-modal);
  border: 1px solid var(--border-ui);
  color: var(--acc-ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

/* prominent inline CTA links (e.g. "New here? Start with…" / "Play Floor Is Lava") */
main > p > a > strong,
main > p > strong > a {
  display: inline-block;
  background: linear-gradient(180deg, var(--lava-bright), var(--lava));
  color: #1a0800;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-dark);
  box-shadow: 0 0 18px rgba(255,106,0,0.45);
  animation: cta-pulse 2.6s ease-in-out infinite;
}
main > p > a:hover > strong { text-shadow: none; filter: brightness(1.1); }
main > p.center { text-align: center; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255,106,0,0.35); }
  50%      { box-shadow: 0 0 30px rgba(255,106,0,0.7); }
}
@media (prefers-reduced-motion: reduce) {
  main > p > a > strong, main > p > strong > a { animation: none; }
}

/* ---------------- FUTURE NATIVE-APP DOWNLOAD CTA ----------------
   A "Get the App" pill for the eventual Google Play / App Store listing.
   Kept hidden on every page until the store URL exists. To switch it on
   site-wide, delete the `hidden` attribute (and the `is-hidden` class) on
   each <p class="app-cta"> block and fill in its href. When revealed it
   inherits the same pulsing lava-pill styling as the "Play Now" CTA above. */
.app-cta.is-hidden,
.app-cta[hidden] { display: none !important; }

/* ---------------- LEGAL-PAGE COMPONENTS (about/terms/privacy/refund) ---------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0 1.4em;
  font-size: 0.9rem;
  background: rgba(18,18,42,0.5);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(74,95,212,0.35);
  vertical-align: top;
  color: var(--text);
}
th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--panel-modal);
}
tr:last-child td { border-bottom: none; }

.modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 1em 0;
}
.mode {
  background: linear-gradient(180deg, rgba(26,26,62,0.75), rgba(18,18,42,0.75));
  border: 1px solid rgba(74,95,212,0.5);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
}
.mode b { color: var(--gold); }

.page-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0.4em 0 1.2em;
}

.kbd {
  font-family: var(--font-mono);
  background: var(--panel-modal);
  border: 1px solid rgba(74,95,212,0.6);
  border-radius: 5px;
  padding: 1px 8px;
  font-size: 0.85em;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------------- FOOTER ---------------- */
footer.site-footer {
  text-align: center;
  padding: 34px 20px 40px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-top: 1px solid rgba(74,95,212,0.4);
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(10,10,26,0.85));
}
footer.site-footer a { color: var(--acc-ice); }
footer.site-footer a:hover { color: var(--gold); text-shadow: none; }

/* ---------------- SMALL SCREENS ---------------- */
@media (max-width: 480px) {
  nav.breadcrumbs { margin: 14px 20px 0; }
  nav.legal-nav { margin: 14px auto 0; }
  main { padding: 16px 16px 60px; }
  .hub-grid { grid-template-columns: 1fr; }
  main ol > li { padding-left: 42px; }
  header.site-header { padding: 12px 16px; }
  .header-cta { font-size: 0.76rem; padding: 8px 14px; }
}
