/* JENNA's ROOM — "The Story" redesign (Builder, Oct 2026, at Luna's pick of Concept 3).
   Loads LAST (after base/app/pot). Chaptered, filtered, typographic:
   warm black, hairlines instead of cards, giant Bricolage statements,
   Manrope text. The banner carousel + sliding columns are untouched. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../brand/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../brand/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --paper: #0C0906;
  --surface: #14100B;
  --surface-2: #1C1712;
  --surface-3: #282019;
  --ink: #F3EDE2;
  --ink-2: #D9D0BE;
  --muted: #A79B83;
  --line: #2A2115;
  --line-strong: #4A3A22;
  --accent: #F2B705;
  --accent-hover: #FFC929;
  --accent-ink: #F2C94C;
  --accent-wash: #2A2110;
  --on-accent: #191104;
  --gold-deep: #C99A1E;
  --gold-light: #FFE9A8;
  --page-glow: radial-gradient(900px 380px at 50% -160px, rgba(242, 183, 5, .10), transparent 70%);
}

body { background: var(--paper); }

/* --- chrome as material: header + tab bar float over the story --- */
.app-header {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(243, 237, 226, .07);
}
@media (max-width: 959px) {
  .tabbar {
    left: 14px; right: 14px; bottom: 12px;
    border-radius: 26px;
    background: color-mix(in srgb, #171208 78%, transparent);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(243, 237, 226, .12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    overflow: hidden;
  }
}

/* --- chapter scaffolding (Home): visual order = the story's order --- */
section[data-view="home"]:not([hidden]) { display: flex; flex-direction: column; }
[data-view="home"] .wrap.block { padding-top: clamp(2.6rem, 9vw, 4.2rem); }
[data-view="home"] .wrap.block:has(#featuredGrid) { order: 1; }
[data-view="home"] .wrap.block:has(#homeFacts) { order: 2; }
[data-view="home"] #homeRewardBlock { order: 3; }
[data-view="home"] .wrap.block:has(.link-card) { order: 4; }
[data-view="home"] .block-head {
  display: block; margin-bottom: 1rem;
}
[data-view="home"] .block-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 4.5vw, 2.9rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.04;
}
[data-view="home"] .block-head h2::before {
  display: block;
  font-family: var(--body);
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  color: var(--gold-deep);
  margin-bottom: .55rem;
}
[data-view="home"] .wrap.block:has(#featuredGrid) .block-head h2::before { content: "01"; }
[data-view="home"] .wrap.block:has(#homeFacts) .block-head h2::before { content: "02"; }
[data-view="home"] #homeRewardBlock .block-head h2::before { content: "03"; }
[data-view="home"] .block-head .link-arrow { margin-top: .5rem; }

/* --- onboarding checklist joins the story: no card, just steps --- */
.checklist {
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}

/* --- the pot panel becomes the prologue: no card, hairline, giant title --- */
.pot-panel {
  background: none; box-shadow: none; border-radius: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  text-align: left;
  margin-top: var(--sp-2);
  padding-left: 0; padding-right: 0;
}
.pot-title { font-size: clamp(2rem, 1.3rem + 4.5vw, 3rem); letter-spacing: -.025em; text-shadow: none; }
.pot-blurb { margin-left: 0; max-width: 36rem; font-size: 1.05rem; color: var(--ink-2); }
.pot-ctas { justify-content: flex-start; }
.pot-steps {
  background: none; border: 0; border-radius: 0; padding: 0;
  max-width: 38rem; margin-left: 0;
}
.pot-steps li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.pot-steps li:first-child { border-top: 1px solid var(--line); }
.pot-step-n {
  background: none; color: var(--gold-deep);
  font-family: var(--display); font-size: 1.3rem; font-weight: 800;
  width: auto; height: auto; margin: 0;
}
.pot-claim { margin-left: 0; max-width: 38rem; }

/* --- Chapter 01: games as a snap rail (Home featured only) --- */
[data-view="home"] #featuredGrid {
  display: flex; gap: .9rem;
  overflow-x: auto; padding: .2rem .1rem 1rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
[data-view="home"] #featuredGrid::-webkit-scrollbar { display: none; }
[data-view="home"] #featuredGrid > li {
  flex: 0 0 148px; scroll-snap-align: start;
}
[data-view="home"] #featuredGrid img { border-radius: 20px; }

/* --- rewards: the number IS the design --- */
.reward-card .benefit, .reward-benefit {
  font-family: var(--display);
  letter-spacing: -.02em;
}

/* --- why-us: hairline rows, not tiles --- */
.fact-tiles { grid-template-columns: 1fr; gap: 0; }
.fact-tiles > li {
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid var(--line) !important;
}
.fact-tiles > li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 960px) { .fact-tiles { grid-template-columns: 1fr; } }

/* --- reviews doorway: a quiet hairline row --- */
.link-card {
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  padding-left: 0 !important; padding-right: 0 !important;
}

/* --- footer: a whisper --- */
.app-footer { color: var(--muted); }

/* --- press feedback everywhere (Apple: answer on touch-down) --- */
.btn:active, .tabbar a:active .ti { transform: scale(.96); }

/* --- reduced motion: cross-fade, never travel --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}
