:root {
  /* Palette: warmer and more mature than a typical "couples app" pastel kit.
     Cream base stays, but the accent moves from bubblegum rose to a deeper
     wine/burgundy — reads as established rather than early-dating. Gold-tinted
     shadows (not grey) throughout — borrowed from what actually made
     trylovely.app feel expensive rather than generic pink-and-white. */
  --cream: #fdf8f2;
  --cream-2: #f7ede2;
  --wine: #9c2b45;
  --wine-deep: #7b1f2c;
  --wine-dark: #5a1825;
  --plum: #5c4438;
  --ink: #2f2420;
  --gold: #c9a961;
  --gold-deep: #a66a22;
  --sage: #5d6e52;
  --white: #fffdfa;
  --shadow: 0 20px 40px -20px rgba(166, 106, 34, 0.28);
  /* Card/opt sheen tints — kept as their own variables (not hardcoded
     rgba(255,255,255,...) inline) so dark mode can flip them without a
     card looking like a washed-out light rectangle sitting on a dark page. */
  --card-sheen-1: rgba(255, 255, 255, 0.9);
  --card-sheen-2: rgba(253, 248, 242, 0.55);
  --card-hairline: rgba(255, 255, 255, 0.7);
  --opt-sheen: rgba(253, 248, 242, 0.6);

  --rose: var(--wine);
  --rose-deep: var(--wine-deep);
  --rose-dark: var(--wine-dark);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

/* ---------- dark mode ----------
   Toggled by enhance.js (adds/removes [data-theme="dark"] on <html>,
   persisted in localStorage). A blocking inline script in <head> reads the
   saved preference (or prefers-color-scheme as a first-visit default)
   before first paint, so there's no light-mode flash. Every existing rule
   in this file reads color from these custom properties, so re-pointing
   them here is enough to re-theme the whole app without touching every
   selector individually. */
html[data-theme="dark"] {
  --cream: #1a1310;
  --cream-2: #241b15;
  --wine: #e8748f;
  --wine-deep: #ef8ba3;
  --wine-dark: #ffb6c6;
  --plum: #cdbcae;
  --ink: #f6ede3;
  --gold: #e8c581;
  --gold-deep: #f3d38f;
  --sage: #9ec288;
  --white: #29201a;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  --card-sheen-1: rgba(255, 255, 255, 0.06);
  --card-sheen-2: rgba(255, 255, 255, 0.01);
  --card-hairline: rgba(255, 255, 255, 0.08);
  --opt-sheen: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] body { background: var(--cream); }
html[data-theme="dark"] .home-btn,
html[data-theme="dark"] .theme-toggle {
  background: var(--white);
  border-color: rgba(246, 237, 227, 0.14);
}
html[data-theme="dark"] .blob { opacity: 0.16; }
html[data-theme="dark"] .card-deco { color: rgba(232, 116, 143, 0.25); }
html[data-theme="dark"] .riddle-input,
html[data-theme="dark"] .tt-input,
html[data-theme="dark"] .quiz-opt,
html[data-theme="dark"] .trivia-face-front,
html[data-theme="dark"] .opt {
  background: var(--cream-2);
}
html[data-theme="dark"] .quiz-opt:focus:not(:focus-visible),
html[data-theme="dark"] .riddle-input:focus,
html[data-theme="dark"] .tt-input:focus { background: var(--white); }

body,
.card,
.game-card,
.hub-note,
.benefit-card,
.how-card,
.chip,
.opt,
.quiz-opt,
.tt-input,
.riddle-input,
.home-btn,
.theme-toggle {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---------- background blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}
.b1 { width: 420px; height: 420px; background: var(--wine); top: -140px; left: -120px; }
.b2 { width: 380px; height: 380px; background: var(--gold); bottom: -160px; right: -100px; opacity: 0.22; }
.b3 { width: 300px; height: 300px; background: var(--sage); top: 45%; left: 60%; opacity: 0.14; }

/* ---------- home button (back to ryantpham.com) ---------- */
.home-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--plum);
  border: 1px solid rgba(92, 68, 56, 0.18);
  box-shadow: 0 6px 18px -10px rgba(166, 106, 34, 0.3);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.18s ease;
}
.home-btn svg { width: 15px; height: 15px; }
.home-btn:hover {
  border-color: var(--wine);
  color: var(--wine-dark);
  transform: translateX(-2px);
}
.home-btn:focus-visible {
  outline: 2px solid var(--wine-deep);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .home-btn { top: 12px; left: 12px; padding: 7px 12px 7px 8px; }
}

/* Game subpages: the fixed top-left button goes back to the Still Curious
   hub (not all the way out to ryantpham.com) — that's the button people
   actually want mid-game, and it used to be mislabeled "RP" pointing at the
   root portfolio, which people kept hitting by accident. */
.back-btn {
  font-size: 0.88rem;
  padding: 8px 16px 8px 12px;
}
.back-btn span { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
@media (max-width: 640px) {
  .back-btn { font-size: 0.82rem; }
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 20px 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--wine-deep);
  display: inline-flex;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wine-dark);
}
.brand-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.6;
}

/* ---------- breadcrumb (game subpages) ---------- */
.breadcrumb {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.82rem;
  color: var(--plum);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a {
  color: var(--wine-dark);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- main / intro ---------- */
/* Was a fixed 640px — comfortable for a single game card, but the hub grid
   (2 cards per row) had almost no breathing room next to that. Widened so
   the hub grid actually reads as a grid, while .intro/.game-header keep
   their own tighter max-widths below so headline/lede text doesn't run
   too wide to read comfortably. */
main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.intro {
  text-align: center;
  padding: 28px 0 12px;
}
.intro h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}
.intro p {
  color: var(--plum);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ---------- game page header (per-game subpages) ---------- */
.game-header {
  text-align: center;
  padding: 24px 0 8px;
}
.game-header .game-icon {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 6px;
}
.game-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.15;
}
.game-header .game-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--wine-dark);
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.game-header .game-intro {
  color: var(--plum);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.92;
}
.game-updated {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--plum);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.game-updated:empty { display: none; }

/* ---------- hub: game picker grid (home page) ----------
   Desktop (>= 641px): unchanged 2-col card grid, exactly as before.
   Mobile (<= 640px): rows, not cards — see the mobile override block
   near the bottom of this file, which turns .game-card into a flat
   horizontal list row with a thin divider instead of a bordered box. */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(92, 68, 56, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: 0 10px 28px -20px rgba(166, 106, 34, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(156, 43, 69, 0.35);
  border-color: rgba(156, 43, 69, 0.25);
}
/* .gc-body / .gc-row-arrow only render as anything on mobile (the row
   layout). On desktop .gc-body is a plain block wrapper (no visual
   change to the existing card) and .gc-row-arrow stays hidden. */
.gc-row-arrow { display: none; }
.game-card:focus-visible {
  outline: 2px solid var(--wine-deep);
  outline-offset: 2px;
}
.game-card .gc-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: var(--sp-3);
}
.game-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 var(--sp-2);
  color: var(--ink);
}
.game-card p {
  margin: 0 0 var(--sp-4);
  color: var(--plum);
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.9;
}
.game-card .gc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.game-card .gc-arrow {
  color: var(--wine-deep);
  transition: transform 0.2s var(--ease);
}
.game-card:hover .gc-arrow { transform: translateX(4px); }
.game-card .gc-updated {
  margin-top: var(--sp-2);
  font-size: 0.68rem;
  color: var(--plum);
  opacity: 0.55;
  letter-spacing: 0.01em;
}

/* ---------- hub: why this exists panel ---------- */
.hub-note {
  background: var(--white);
  border: 1px solid rgba(92, 68, 56, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  margin: var(--sp-7) 0 var(--sp-5);
  text-align: center;
}
.hub-note h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--wine-dark);
  margin: 0 0 var(--sp-3);
}
.hub-note p {
  color: var(--plum);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- game section (per-game subpage widget) ---------- */
.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--sp-6);
}

.sub-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 68, 56, 0.2);
  background: transparent;
  color: var(--plum);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { background: rgba(156, 43, 69, 0.08); }
.chip.active {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}

/* ---------- deck / card ---------- */
.deck-wrap {
  width: 100%;
  max-width: 520px;
  perspective: 1200px;
}
.deck {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.card {
  position: relative;
  width: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.6);
  animation: cardIn 0.32s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-tag {
  position: absolute;
  top: 20px;
  left: 32px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.card-deco {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 26px;
  height: 26px;
  color: rgba(156, 43, 69, 0.2);
}
.card-deco svg { width: 100%; height: 100%; }

.card-split {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 10px;
}
.opt {
  flex: 1;
  padding: 18px 14px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.02rem, 3vw, 1.2rem);
  color: var(--ink);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  font: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .opt:hover { background: var(--cream-2); border-color: rgba(156, 43, 69, 0.2); }
}
.opt:active { background: var(--cream-2); }
.opt.picked { border-color: rgba(156, 43, 69, 0.35); background: var(--cream-2); }
.opt:focus-visible { outline: 2px solid var(--wine-deep); outline-offset: 2px; }
.pick-hearts {
  display: flex;
  gap: 4px;
  font-size: 1.1rem;
  line-height: 1;
}
.pick-heart { display: inline-block; animation: pickHeartIn 0.25s var(--ease) both; }
@keyframes pickHeartIn {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.pick-status {
  text-align: center;
  font-size: 0.8rem;
  color: var(--plum);
  opacity: 0.65;
  margin-top: 10px;
  font-style: italic;
  font-family: var(--serif);
}
.or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  flex-shrink: 0;
}
.or-divider span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--wine-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(156, 43, 69, 0.25);
  flex-shrink: 0;
}

.card-single {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  color: var(--ink);
  line-height: 1.5;
  padding: 6px 4px;
}

/* ---------- controls ---------- */
.controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  min-height: 46px;
}
.ctrl-btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.18s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctrl-btn:focus-visible {
  outline: 2px solid var(--wine-deep);
  outline-offset: 2px;
}
.ctrl-btn.primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #fff;
  font-size: 0.96rem;
  box-shadow: 0 12px 24px -10px rgba(156, 43, 69, 0.45);
}
.ctrl-btn.primary:hover { transform: translateY(-2px); }
.ctrl-btn.primary:active { transform: translateY(0); }
.ctrl-btn.ghost {
  width: 46px;
  height: 46px;
  background: var(--white);
  color: var(--plum);
  border: 1px solid rgba(92, 68, 56, 0.18);
}
.ctrl-btn.ghost svg { width: 20px; height: 20px; }
.ctrl-btn.ghost:hover { background: var(--cream-2); }

.quiz-nav-note {
  font-size: 0.85rem;
  color: var(--plum);
  opacity: 0.6;
  font-style: italic;
  font-family: var(--serif);
}

.progress {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--plum);
  opacity: 0.55;
  letter-spacing: 0.03em;
}

/* ---------- pick status (wyr/tot two-player pick reveal) ---------- */
.pick-status {
  text-align: center;
  margin-top: 10px;
  min-height: 22px;
}
.pick-status-prompt,
.pick-status-result {
  display: inline-block;
  font-size: 0.82rem;
  font-family: var(--serif);
  font-style: italic;
  animation: pickStatusIn 0.28s var(--ease) both;
}
@keyframes pickStatusIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pick-status-prompt { color: var(--plum); opacity: 0.75; }
.pick-status-result { font-style: normal; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.pick-status-match { background: rgba(93, 110, 82, 0.14); color: var(--sage); }
.pick-status-diff { background: rgba(156, 43, 69, 0.08); color: var(--wine-dark); }

/* ---------- deck complete screen (wyr / tot / pillow / quiz) ----------
   Replaces the old behavior where the deck just silently looped back to
   card 1 forever with no sense of finishing. Now clicking Next past the
   last card in a filtered pool lands on an actual completion state with
   a light stat recap and an explicit "shuffle a new round" action. */
.deck-done-card {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 4px;
  animation: deckDoneIn 0.5s var(--ease) both;
}
@keyframes deckDoneIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.deck-done-icon {
  font-size: 2.6rem;
  margin-bottom: 4px;
  animation: heartbeat 2s ease-in-out 0.3s infinite;
}
.deck-done-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.deck-done-sub {
  color: var(--plum);
  font-size: 0.94rem;
  margin: 0 0 6px;
}
.deck-done-stat {
  font-size: 0.86rem;
  color: var(--wine-dark);
  background: var(--cream-2);
  padding: 8px 18px;
  border-radius: 999px;
  margin: 8px 0 18px;
}
.deck-done-stat strong { color: var(--wine-deep); font-family: var(--serif); }
.deck-done-btn { margin-top: 4px; }

/* ---------- quiz mode: Guess Us ---------- */
.quiz-card {
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  align-items: stretch;
}
.quiz-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--sp-5);
}
.quiz-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(92, 68, 56, 0.16);
  transition: all 0.25s var(--ease);
}
.quiz-step-dot.done { background: var(--sage); }
.quiz-step-dot.active {
  background: var(--wine-deep);
  width: 20px;
  border-radius: 4px;
}
.quiz-turn {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--wine-deep);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 6px;
  margin-top: 6px;
}
.quiz-prompt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.08rem, 3.2vw, 1.3rem);
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
}
.quiz-sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--plum);
  opacity: 0.65;
  margin-bottom: 18px;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-opt {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(92, 68, 56, 0.18);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
@media (hover: hover) and (pointer: fine) {
  .quiz-opt:hover {
    border-color: var(--wine);
    background: var(--cream-2);
    transform: translateY(-1px);
  }
}
.quiz-opt:active {
  border-color: var(--wine);
  background: var(--cream-2);
  transform: translateY(0);
}
.quiz-opt:focus:not(:focus-visible) {
  border-color: rgba(92, 68, 56, 0.18);
  background: var(--cream);
  outline: none;
}
.quiz-opt:focus-visible {
  outline: 2px solid var(--wine-deep);
  outline-offset: 2px;
}

.quiz-handoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px 6px;
  text-align: center;
}
.quiz-handoff-icon { font-size: 2rem; }
.quiz-handoff p {
  margin: 0 0 6px;
  color: var(--plum);
  font-size: 0.9rem;
  opacity: 0.8;
}

.quiz-reveal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.quiz-reveal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid rgba(92, 68, 56, 0.12);
  transition: border-color 0.2s var(--ease);
}
.quiz-reveal-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine-dark);
  font-weight: 700;
}
.quiz-reveal-ans {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.quiz-result {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.quiz-result.match {
  background: rgba(93, 110, 82, 0.16);
  color: var(--sage);
}
.quiz-result.nomatch {
  background: rgba(156, 43, 69, 0.1);
  color: var(--wine-dark);
}
.quiz-trivia {
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--plum);
  line-height: 1.55;
  margin-bottom: 14px;
  border: 1px solid rgba(201, 169, 97, 0.3);
}
.quiz-trivia-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.quiz-follow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--wine-dark);
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px dashed rgba(156, 43, 69, 0.25);
}

/* ---------- two truths and a lie ---------- */
.tt-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 var(--sp-5);
}
.tt-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tt-input {
  width: 100%;
  resize: none;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(92, 68, 56, 0.18);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  /* 16px minimum — anything smaller triggers iOS Safari's automatic
     zoom-on-focus for form fields, which felt like a bug (the whole page
     jumps) the first time you tap in to write a statement. */
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 14px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.tt-input:focus {
  outline: none;
  border-color: var(--wine);
  background: var(--white);
}
.tt-lie-toggle {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 68, 56, 0.2);
  background: transparent;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.tt-lie-toggle:hover { border-color: var(--wine); color: var(--wine-dark); }
.tt-lie-toggle.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
.tt-continue {
  width: 100%;
  margin-top: 4px;
}
.tt-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.tt-row-lie { border-color: rgba(156, 43, 69, 0.35); background: rgba(156, 43, 69, 0.06); }
.tt-row-lie .quiz-reveal-tag { color: var(--wine); }
.tt-row-truth { border-color: rgba(93, 110, 82, 0.3); background: rgba(93, 110, 82, 0.06); }
.tt-row-truth .quiz-reveal-tag { color: var(--sage); }
.tt-row-guessed { box-shadow: 0 0 0 2px var(--gold) inset; }

.tt-final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin: var(--sp-3) 0 var(--sp-5);
}
.tt-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tt-score-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--wine-dark);
  line-height: 1;
}
.tt-score-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.7;
}
.tt-score-vs {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1rem;
}

/* ---------- how to play ---------- */
.how {
  margin-top: 56px;
  text-align: center;
}
.how h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--wine-dark);
  margin-bottom: 22px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  box-shadow: 0 8px 20px -14px rgba(166, 106, 34, 0.25);
  text-align: left;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--wine-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.how-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--plum);
  line-height: 1.5;
}

/* ---------- why-panel (per-game subpage, brand differentiator note) ---------- */
.why-panel {
  margin-top: 48px;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: var(--sp-5) var(--sp-5);
}
.why-panel h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wine-dark);
  margin: 0 0 var(--sp-2);
}
.why-panel p {
  margin: 0;
  color: var(--plum);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- explore nav: cross-links to other games ---------- */
.explore {
  margin-top: 56px;
  text-align: center;
}
.explore h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wine-dark);
  margin-bottom: 18px;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.explore-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(92, 68, 56, 0.16);
  background: var(--white);
  color: var(--plum);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s var(--ease);
}
.explore-link:hover {
  border-color: var(--wine);
  color: var(--wine-dark);
  transform: translateY(-2px);
}
.explore-link .ex-icon { font-size: 1rem; }

@media (max-width: 640px) {
  .how-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .card-split { flex-direction: column; gap: 4px; }
  .or-divider { width: 100%; padding: 4px 0; }
  .opt { padding: 12px 6px; }
}

/* ---------- benefits CTA banner (hub page) ---------- */
.benefits-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: 0 0 var(--sp-6);
  box-shadow: 0 14px 32px -16px rgba(123, 31, 44, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.benefits-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(123, 31, 44, 0.6);
}
.benefits-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.benefits-cta-icon { font-size: 1.8rem; flex: none; }
.benefits-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.benefits-cta-text strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #fff;
}
.benefits-cta-text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.benefits-cta-arrow {
  font-size: 1.3rem;
  color: #fff;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.benefits-cta:hover .benefits-cta-arrow { transform: translateX(4px); }
@media (max-width: 34rem) {
  .benefits-cta { flex-wrap: wrap; }
  .benefits-cta-arrow { display: none; }
}

/* ---------- benefits page ---------- */
.benefits-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}
.benefit-card {
  background: var(--white);
  border: 1px solid rgba(92, 68, 56, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: 0 10px 28px -20px rgba(166, 106, 34, 0.3);
}
.benefit-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: var(--sp-3);
}
.benefit-card h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--wine-dark);
  margin: 0 0 var(--sp-3);
  line-height: 1.3;
}
.benefit-card p {
  color: var(--plum);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 var(--sp-3);
}
.benefit-why {
  background: var(--cream-2);
  border-left: 3px solid var(--wine);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9rem !important;
}
.benefit-source {
  font-size: 0.78rem !important;
  color: var(--gold-deep);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 0 !important;
}

/* ---------- riddles game ---------- */
.riddle-card {
  align-items: stretch;
  text-align: center;
}
.riddle-streak {
  align-self: center;
  display: inline-block;
  margin: 0 auto 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201,169,97,0.18), rgba(156,43,69,0.1));
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  animation: pickStatusIn 0.3s var(--ease) both;
}
.riddle-prompt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  color: var(--ink);
  line-height: 1.5;
  margin: 8px 0 var(--sp-6);
}
.riddle-input-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.riddle-input {
  width: 100%;
  border-radius: 999px;
  border: 1.5px solid rgba(92, 68, 56, 0.2);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  text-align: center;
  padding: 14px 20px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.riddle-input:focus {
  outline: none;
  border-color: var(--wine);
  background: var(--white);
}
.riddle-submit { width: 100%; }
.riddle-hint-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.riddle-hint-btn {
  background: none;
  border: 1px solid rgba(92, 68, 56, 0.2);
  border-radius: 999px;
  color: var(--plum);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: opacity 0.18s var(--ease), border-color 0.18s var(--ease);
}
.riddle-hint-btn:hover { border-color: var(--wine); color: var(--wine-dark); }
.riddle-hint-btn:disabled { opacity: 0.55; cursor: default; }
.riddle-hint-text {
  background: var(--cream-2);
  color: var(--plum);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-style: italic;
}
.riddle-reveal-btn {
  background: none;
  border: none;
  color: var(--plum);
  opacity: 0.65;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: var(--sp-4);
  align-self: center;
}
.riddle-reveal-btn:hover { opacity: 1; color: var(--wine-dark); }
.riddle-feedback { display: flex; flex-direction: column; gap: var(--sp-4); align-items: stretch; }
.riddle-result {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.riddle-result.correct { background: rgba(93, 110, 82, 0.14); color: var(--sage); }
.riddle-result.wrong { background: rgba(156, 43, 69, 0.08); color: var(--wine-dark); font-weight: 500; }
.riddle-result.revealed { background: var(--cream-2); color: var(--plum); }
.riddle-next-btn { width: 100%; }

/* ---------- trivia: things you should know ---------- */
.trivia-card { align-items: stretch; }
.trivia-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px dashed rgba(92, 68, 56, 0.16);
}
.trivia-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 4.5rem;
}
.trivia-score-box.active .trivia-score-num { color: var(--wine); }
.trivia-score-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--plum);
  line-height: 1;
}
.trivia-score-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.7;
}
.trivia-vs { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.trivia-turn-banner {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--wine-deep);
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}
.trivia-sub {
  text-align: center;
  font-size: 0.82rem;
  color: var(--plum);
  opacity: 0.65;
  margin-bottom: var(--sp-5);
}
.trivia-qlist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.trivia-qrow {
  perspective: 1400px;
  min-height: 108px;
}
.trivia-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 108px;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
  cursor: pointer;
}
.trivia-qrow.flipped .trivia-flip-inner { transform: rotateY(180deg); }
.trivia-qrow.answered-correct .trivia-flip-inner,
.trivia-qrow.answered-wrong .trivia-flip-inner { cursor: default; }
.trivia-flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(92, 68, 56, 0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.trivia-face-front {
  background: var(--cream);
}
.trivia-face-back {
  background: var(--cream-2);
  transform: rotateY(180deg);
  border-color: rgba(156, 43, 69, 0.2);
}
.trivia-qrow.answered-correct .trivia-face-back { background: rgba(93, 110, 82, 0.14); border-color: rgba(93, 110, 82, 0.35); }
.trivia-qrow.answered-wrong .trivia-face-back { background: rgba(156, 43, 69, 0.1); border-color: rgba(156, 43, 69, 0.3); }
.trivia-face-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.trivia-qnum {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 1rem;
}
.trivia-qtext { flex: 1; font-size: 0.94rem; line-height: 1.5; color: var(--ink); display: flex; align-items: center; }
.trivia-tap-hint {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--plum);
  opacity: 0.5;
  font-style: italic;
  font-family: var(--serif);
}
.trivia-qplayer {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.trivia-qanswer {
  font-size: 0.94rem;
  color: var(--wine-dark);
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
}
.trivia-qbtns { display: flex; gap: 8px; margin-top: 8px; }
.trivia-qbtn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 68, 56, 0.2);
  background: var(--white);
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.trivia-qbtn:hover { border-color: var(--wine); color: var(--wine-dark); }
.trivia-qbtn.correct-btn:hover { background: var(--sage); color: #fff; border-color: var(--sage); }
.trivia-qbtn.wrong-btn:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.trivia-qbtn:disabled { opacity: 0.4; cursor: not-allowed; }
.trivia-next-btn { width: 100%; }
@media (max-width: 640px) {
  .trivia-card { padding: var(--sp-6) var(--sp-4) var(--sp-4); }
  .trivia-scoreboard { gap: var(--sp-3); }
  .trivia-score-box { min-width: 3.6rem; }
  .trivia-score-num { font-size: 1.5rem; }
  .trivia-turn-banner { font-size: 0.88rem; }
  .trivia-sub { font-size: 0.76rem; margin-bottom: var(--sp-4); }
  .trivia-qrow { min-height: 128px; }
  .trivia-flip-inner { min-height: 128px; }
  .trivia-flip-face { padding: 12px; }
  .trivia-qtext { font-size: 0.98rem; }
  .trivia-qanswer { font-size: 1rem; }
  .trivia-qbtn { font-size: 0.85rem; padding: 10px 8px; }
}

/* ---------- category groups (hub page) ---------- */
.category-group { margin-bottom: var(--sp-7); }
.category-group-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wine-dark);
  margin: 0 0 var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.category-group-title .cg-icon { font-size: 1.2rem; }

/* ---------- date night: orange county ---------- */
.dn-card {
  align-items: stretch;
  text-align: center;
  position: relative;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.dn-card.dn-fly-right { transform: translateX(120%) rotate(8deg); opacity: 0; }
.dn-card.dn-fly-left { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
.dn-chip-tag {
  align-self: center;
  display: inline-block;
  margin: 0 auto 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--wine-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dn-icon { font-size: 2.6rem; margin: 10px 0 6px; }
.dn-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.dn-area {
  font-size: 0.82rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}
.dn-desc {
  color: var(--plum);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto var(--sp-6);
}
.dn-btns {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.dn-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(92, 68, 56, 0.18);
  background: var(--white);
  color: var(--plum);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dn-btn-icon { font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .dn-skip:hover { border-color: var(--plum); background: var(--cream-2); }
  .dn-add:hover { border-color: var(--wine); background: rgba(156, 43, 69, 0.08); color: var(--wine-dark); transform: translateY(-2px); }
}
.dn-skip:active { background: var(--cream-2); }
.dn-add:active { background: rgba(156, 43, 69, 0.1); }
.dn-add { border-color: rgba(156, 43, 69, 0.25); color: var(--wine-dark); }

.dn-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--wine-deep);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(123, 31, 44, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 50;
  pointer-events: none;
}
.dn-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- worth knowing: gamified everyday facts ---------- */
.wk-filter-wrap {
  max-width: 520px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}
.field-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum);
  opacity: 0.6;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.wk-card { align-items: stretch; text-align: center; position: relative; transition: transform 0.22s ease, opacity 0.22s ease; }
.wk-chip-tag {
  align-self: center;
  display: inline-block;
  margin: 0 auto 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--wine-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wk-icon { font-size: 2.6rem; margin: 10px 0 6px; }
.wk-fact {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 1.32rem);
  color: var(--ink);
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto var(--sp-4);
}
.wk-tip {
  background: var(--cream-2);
  border-left: 3px solid var(--wine);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--plum);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto var(--sp-6);
}
.wk-tip-label {
  display: inline-block;
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wine-deep);
  margin-right: 6px;
}
.wk-empty .wk-icon { margin-top: 20px; }

.dn-final-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--sp-5);
}
.dn-final-count {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--wine-dark);
  line-height: 1;
}
.dn-final-of { font-size: 0.85rem; color: var(--plum); opacity: 0.7; }
.dn-final-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--sp-5);
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
}
.dn-final-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid rgba(92, 68, 56, 0.1);
}
.dn-final-num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-deep);
  flex: none;
  width: 1.4rem;
  text-align: center;
}
.dn-final-icon { font-size: 1.3rem; flex: none; }
.dn-final-body { flex: 1; min-width: 0; }
.dn-final-title { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.dn-final-area { font-size: 0.76rem; color: var(--plum); opacity: 0.65; }
.dn-final-actions {
  display: flex;
  gap: 12px;
}
.dn-copy-btn { flex: none; }
.dn-restart-btn { flex: 1; }

@media (max-width: 640px) {
  .dn-card { padding: var(--sp-6) var(--sp-4) var(--sp-5); }
  .dn-icon { font-size: 2.2rem; }
  .dn-desc { font-size: 0.92rem; margin-bottom: var(--sp-5); }
  .dn-btns { gap: 8px; }
  .dn-btn { padding: 14px 6px; font-size: 0.88rem; }
  .dn-final-list { max-height: 320px; }
}

/* ---------- love lab game ---------- */
.ll-card {
  align-items: stretch;
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
  animation: llFlipIn 0.45s var(--ease) both;
}
@keyframes llFlipIn {
  from { opacity: 0; transform: rotateY(-8deg) translateY(14px) scale(0.97); }
  to { opacity: 1; transform: rotateY(0) translateY(0) scale(1); }
}
.ll-chip-tag {
  align-self: center;
  display: inline-block;
  margin: 0 auto 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--wine-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ll-icon { font-size: 2.6rem; margin: 10px 0 6px; }
.ll-fact {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.08rem, 3.3vw, 1.3rem);
  color: var(--ink);
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto var(--sp-4);
}
.ll-tip {
  background: var(--cream-2);
  border-left: 3px solid var(--wine);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--plum);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto var(--sp-3);
}
.ll-tip-label {
  display: inline-block;
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wine-deep);
  margin-right: 6px;
}
.ll-source {
  font-size: 0.74rem !important;
  color: var(--gold-deep);
  font-style: italic;
  opacity: 0.85;
  max-width: 460px;
  margin: 0 auto var(--sp-6);
}
.ll-empty .ll-icon { margin-top: 20px; }

/* progress bar (love lab) */
.ll-progress-bar {
  width: 100%;
  max-width: 340px;
  height: 5px;
  border-radius: 999px;
  background: rgba(92, 68, 56, 0.14);
  overflow: hidden;
  margin: 0 auto 8px;
}
.ll-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--wine));
  border-radius: 999px;
  transition: width 0.3s var(--ease);
}
.ll-progress-text {
  font-size: 0.78rem;
  color: var(--plum);
  opacity: 0.55;
  letter-spacing: 0.03em;
}

/* heart-burst particles on save (love lab) */
.ll-burst-heart {
  position: fixed;
  z-index: 50;
  font-size: 1.1rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: llBurst 0.65s ease-out forwards;
}
@keyframes llBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  70% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1.15);
  }
}
.ll-final-row { animation: llRowIn 0.32s var(--ease) both; }
@keyframes llRowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
  .ll-card { padding: var(--sp-6) var(--sp-4) var(--sp-5); }
  .ll-icon { font-size: 2.2rem; }
  .ll-fact { font-size: 1.02rem; }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 48px;
  color: var(--plum);
  opacity: 0.6;
  font-size: 0.82rem;
}
.site-footer .fine { font-size: 0.74rem; margin-top: 4px; }
.site-footer::before {
  content: "♥";
  display: block;
  color: var(--wine);
  opacity: 0.45;
  font-size: 1.05rem;
  margin-bottom: 10px;
  animation: heartbeat 2.6s ease-in-out infinite;
}

/* =====================================================================
   ROMANTIC POLISH LAYER — animations, motion, ambience
   Added in the 2026-09-05 redesign pass. Keeps every existing class name
   and structure intact; this section only adds motion + depth on top.
   ===================================================================== */

html { scroll-behavior: smooth; }

body {
  animation: scPageIn 0.55s var(--ease) both;
}
@keyframes scPageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* floating blobs get slow ambient drift instead of sitting dead-still */
.blob { animation: blobDrift 24s ease-in-out infinite; }
.b1 { animation-duration: 26s; }
.b2 { animation-duration: 30s; animation-delay: -8s; }
.b3 { animation-duration: 34s; animation-delay: -16s; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -28px) scale(1.07); }
  66% { transform: translate(-18px, 20px) scale(0.95); }
}

/* drifting heart/sparkle particle layer, injected by enhance.js */
.sc-hearts {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sc-heart {
  position: absolute;
  bottom: -8%;
  left: var(--l, 50%);
  font-size: var(--size, 1rem);
  color: var(--heart-color, var(--wine));
  opacity: 0;
  will-change: transform, opacity;
  animation: scFloat var(--dur, 20s) linear var(--delay, 0s) infinite;
}
@keyframes scFloat {
  0% { transform: translate(0, 12vh) rotate(0deg); opacity: 0; }
  8% { opacity: 0.4; }
  50% { transform: translate(var(--drift, 20px), -55vh) rotate(10deg); opacity: 0.22; }
  92% { opacity: 0.12; }
  100% { transform: translate(calc(var(--drift, 20px) * 2), -118vh) rotate(-8deg); opacity: 0; }
}

/* heartbeat pulse, used by brand mark + footer heart */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}
.brand-mark { animation: heartbeat 2.6s ease-in-out infinite; transform-origin: center; }

/* shimmering gradient brand wordmark */
.brand-text {
  background: linear-gradient(90deg, var(--wine-dark), var(--gold-deep), var(--wine-dark) 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 7s linear infinite;
}
@keyframes shimmerText { to { background-position: -220% center; } }

/* scroll/entrance reveal — class + .sc-in are added by enhance.js only;
   if JS never runs, these elements simply keep their normal default
   visibility (no class = no rule applies), so nothing is JS-dependent
   for baseline accessibility. */
.sc-reveal { opacity: 0; }
.sc-reveal.sc-in { animation: scRevealIn 0.7s var(--ease) both; }
@keyframes scRevealIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* game-card: shine sweep + icon flourish on hover, gradient top bar */
.game-card { isolation: isolate; }
.game-card .gc-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--wine), var(--gold));
  background-size: 220% auto;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.game-card:hover .gc-bar {
  transform: scaleX(1);
  animation: shimmerText 3s linear infinite;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(156, 43, 69, 0.05), rgba(201, 169, 97, 0.08));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.game-card:hover::before { opacity: 1; }
.game-card::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
.game-card:hover::after { left: 140%; }
.game-card .gc-icon {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.game-card:hover .gc-icon { transform: scale(1.18) rotate(-8deg); }

/* buttons: shine sweep on the primary CTA */
.ctrl-btn.primary { position: relative; overflow: hidden; }
.ctrl-btn.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.ctrl-btn.primary:hover::after { left: 130%; }
.benefits-cta { position: relative; overflow: hidden; }
.benefits-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.benefits-cta:hover::after { left: 140%; }

/* category group title gets a small gradient underline flourish */
.category-group-title { position: relative; padding-bottom: 12px; }
.category-group-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wine), var(--gold));
}

/* subtle lift on hover for static info panels */
.hub-note, .benefit-card, .how-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hub-note:hover, .benefit-card:hover, .how-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(166, 106, 34, 0.35);
}

/* quiz step dot: soft glow ring on the active step */
.quiz-step-dot.active { box-shadow: 0 0 0 4px rgba(156, 43, 69, 0.14); }

/* hero intro stat strip */
.intro-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 22px 0 4px;
}
.intro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.intro-stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--wine-dark);
  line-height: 1;
}
.intro-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.65;
}
.intro-stat-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

/* ---------- unified game progress bar (replaces plain "3 / 12" text) ---------- */
.progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  width: 100%;
  max-width: 340px;
}
.gp-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(92, 68, 56, 0.14);
  overflow: hidden;
}
.gp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--wine));
  border-radius: 999px;
  transition: width 0.35s var(--ease);
  position: relative;
}
.gp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 200% 100%;
  animation: shimmerText 2.4s linear infinite;
}
.gp-text {
  font-size: 0.76rem;
  color: var(--plum);
  opacity: 0.6;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ---------- card entrance / navigation motion ---------- */
.card { animation: cardIn 0.36s var(--ease) both; }
.card.card-slide-next { animation: cardSlideNext 0.4s var(--ease) both; }
.card.card-slide-prev { animation: cardSlidePrev 0.4s var(--ease) both; }
@keyframes cardSlideNext {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes cardSlidePrev {
  from { opacity: 0; transform: translateX(-28px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* card face-lift: layered depth, gradient hairline top edge, softer corners
   read as more "designed" than a flat white rectangle */
.card {
  background:
    linear-gradient(155deg, var(--card-sheen-1), var(--card-sheen-2)),
    var(--white);
  box-shadow:
    0 1px 0 var(--card-hairline) inset,
    0 24px 48px -24px rgba(123, 31, 44, 0.32),
    0 4px 14px -6px rgba(166, 106, 34, 0.18);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--wine), var(--gold), transparent);
  opacity: 0.55;
}

/* option buttons (would-you-rather / this-or-that): richer resting state,
   clearer selected state, subtle press feedback */
.opt {
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--opt-sheen), transparent);
}
@media (hover: hover) and (pointer: fine) {
  .opt:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(156, 43, 69, 0.35); }
}
.opt:active { transform: translateY(0) scale(0.98); }
.opt.picked {
  background: linear-gradient(160deg, rgba(156,43,69,0.1), rgba(201,169,97,0.08));
  box-shadow: 0 0 0 1px rgba(156, 43, 69, 0.18) inset;
}
.pick-heart { animation: pickHeartIn 0.3s var(--ease) both, heartbeat 1.8s ease-in-out 0.3s infinite; }

/* quiz options: directional reveal + hover lift, replacing the flat list */
.quiz-opt {
  animation: qOptIn 0.32s var(--ease) both;
  position: relative;
  overflow: hidden;
}
.quiz-opt::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--wine));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .quiz-opt:hover::before { transform: scaleY(1); }
}
.quiz-opt:nth-child(1) { animation-delay: 0.03s; }
.quiz-opt:nth-child(2) { animation-delay: 0.08s; }
.quiz-opt:nth-child(3) { animation-delay: 0.13s; }
.quiz-opt:nth-child(4) { animation-delay: 0.18s; }
@keyframes qOptIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* riddle wrong-answer shake for tactile feedback */
.riddle-shake { animation: riddleShake 0.4s ease; }
@keyframes riddleShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* trivia score bump when a point lands */
.trivia-score-num.bump, .tt-score-num.bump { animation: scoreBump 0.4s var(--ease); }
@keyframes scoreBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--wine); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .sc-hearts { display: none; }
  .sc-reveal { opacity: 1 !important; }
}

/* ---------- theme toggle button ---------- */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--plum);
  border: 1px solid rgba(92, 68, 56, 0.18);
  box-shadow: 0 6px 18px -10px rgba(166, 106, 34, 0.3);
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { color: var(--wine-dark); border-color: var(--wine); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--wine-deep); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
@media (max-width: 640px) {
  .theme-toggle { top: 12px; right: 12px; width: 36px; height: 36px; }
  .theme-toggle svg { width: 16px; height: 16px; }
}

/* ---------- swipe-deck drag interaction (date-night / worth-knowing / love-lab) ---------- */
.swipeable {
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.swipeable.dragging { cursor: grabbing; animation: none !important; transition: none !important; }
.swipe-stamp {
  position: absolute;
  top: 24px;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border: 3px solid currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s linear;
  z-index: 2;
}
.swipe-stamp-right { right: 20px; color: var(--sage); transform: rotate(8deg); }
.swipe-stamp-left { left: 20px; color: var(--wine); transform: rotate(-8deg); }

/* ---------- surprise-me shuffle button (hub page) ---------- */
.surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--wine-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(201, 169, 97, 0.5);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.surprise-btn:hover { transform: translateY(-2px) scale(1.02); }
.surprise-btn:active { transform: translateY(0) scale(0.99); }
.surprise-btn:focus-visible { outline: 2px solid var(--wine-deep); outline-offset: 3px; }
html[data-theme="dark"] .surprise-btn { color: #3a2410; }
.surprise-btn .sb-dice { font-size: 1.05rem; display: inline-block; }
.surprise-btn:hover .sb-dice { animation: diceSpin 0.5s ease; }
@keyframes diceSpin { to { transform: rotate(360deg); } }
.surprise-wrap { text-align: center; margin: 4px 0 var(--sp-6); }

/* ---------- game-card keyboard focus ring parity with mouse hover ---------- */
.game-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(156, 43, 69, 0.35); }

/* ---------- skip-to-content (a11y) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--wine-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- toast stacking safety (dn-toast reused across 3 games) ---------- */
.dn-toast { max-width: calc(100vw - 40px); text-align: center; }

/* =====================================================================
   HOW TO PLAY — shared bottom-sheet instruction system
   Replaces the old permanent "How to actually play" section that sat at
   the bottom of every game page. Now a trigger pill near the top of the
   game, opening an animated bottom sheet with a visual flow diagram
   (Draw → Read → Answer → Continue, etc.) plus numbered steps specific
   to that game. Built once here, configured per-game via a small JS
   object each game page passes to HowToPlay.mount().
   ===================================================================== */

.htp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 22px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(156, 43, 69, 0.28);
  background: linear-gradient(135deg, rgba(156, 43, 69, 0.08), rgba(201, 169, 97, 0.1));
  color: var(--wine-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.htp-trigger:hover { border-color: var(--wine); background: rgba(156, 43, 69, 0.12); transform: translateY(-1px); }
.htp-trigger:focus-visible { outline: 2px solid var(--wine-deep); outline-offset: 2px; }
.htp-trigger .htp-trigger-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wine-deep);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex: none;
}
.htp-trigger-wrap { text-align: center; }

.htp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(47, 36, 32, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.htp-backdrop.open { opacity: 1; pointer-events: auto; }

.htp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  max-width: 560px;
  margin: 0 auto;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  padding: 14px 26px 30px;
  box-shadow: 0 -20px 60px -20px rgba(47, 36, 32, 0.4);
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.htp-sheet.open { transform: translateY(0); pointer-events: auto; }
.htp-sheet.closing { transform: translateY(100%); }
@media (min-width: 640px) {
  .htp-sheet {
    left: 50%;
    right: auto;
    bottom: 6vh;
    transform: translate(-50%, 40px) scale(0.97);
    border-radius: 26px;
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .htp-sheet.open { transform: translate(-50%, 0) scale(1); opacity: 1; }
  .htp-sheet.closing { transform: translate(-50%, 20px) scale(0.98); opacity: 0; }
}

.htp-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(92, 68, 56, 0.2);
  margin: 6px auto 10px;
}
@media (min-width: 640px) { .htp-handle { display: none; } }

.htp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream-2);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.htp-close svg { width: 16px; height: 16px; }
.htp-close:hover { background: rgba(156, 43, 69, 0.12); color: var(--wine-dark); }
.htp-close:focus-visible { outline: 2px solid var(--wine-deep); outline-offset: 2px; }

.htp-head { text-align: center; padding: 6px 24px 4px; }
.htp-icon { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.htp-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 4px;
}
.htp-tagline {
  font-size: 0.9rem;
  color: var(--plum);
  opacity: 0.85;
  margin: 0;
}

.htp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 20px 0 6px;
  padding: 16px 10px;
  background: var(--cream-2);
  border-radius: var(--radius-md);
}
.htp-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 58px;
  opacity: 0;
  animation: htpStepIn 0.4s var(--ease) both;
  animation-delay: calc(var(--htp-i) * 0.09s + 0.1s);
}
.htp-flow-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid rgba(156, 43, 69, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px -6px rgba(156, 43, 69, 0.3);
}
.htp-flow-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wine-dark);
  text-align: center;
}
.htp-flow-arrow {
  color: var(--gold-deep);
  font-size: 1rem;
  opacity: 0.7;
  align-self: flex-start;
  margin-top: 10px;
}
@keyframes htpStepIn {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.htp-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}
.htp-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  animation: htpRowIn 0.4s var(--ease) both;
  animation-delay: calc(var(--htp-i) * 0.07s + 0.2s);
}
@keyframes htpRowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.htp-step-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--wine-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1px;
}
.htp-step-text {
  margin: 0;
  padding-top: 4px;
  font-size: 0.92rem;
  color: var(--plum);
  line-height: 1.5;
}
.htp-cta { width: 100%; }

body.htp-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .htp-sheet, .htp-backdrop, .htp-flow-step, .htp-step { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- confirm dialog (reset questions, etc.) ---------- */
.cd-sheet { max-width: 420px; padding-bottom: 24px; }
.cd-body { text-align: center; padding: 10px 6px 4px; }
.cd-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 8px;
}
.cd-text {
  font-size: 0.92rem;
  color: var(--plum);
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}
.cd-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.cd-actions .ctrl-btn { flex: 1; padding: 12px 16px; font-size: 0.9rem; }

/* ---------- question-memory controls (reset + seen counter) ---------- */
.qm-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
  font-size: 0.76rem;
  color: var(--plum);
  opacity: 0.7;
}
.qm-reset-btn {
  border: none;
  background: transparent;
  color: var(--wine-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 4px 2px;
  opacity: 0.85;
}
.qm-reset-btn:hover { opacity: 1; }
.qm-reset-btn:focus-visible { outline: 2px solid var(--wine-deep); outline-offset: 2px; }

/* ---------- exhausted pool state ("you've uncovered them all") ---------- */
.qm-exhausted {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 6px;
  animation: deckDoneIn 0.5s var(--ease) both;
}
.qm-exhausted-icon { font-size: 2.4rem; }
.qm-exhausted-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 4px 0 2px;
}
.qm-exhausted-sub {
  color: var(--plum);
  font-size: 0.92rem;
  max-width: 340px;
  margin: 0 auto 8px;
  opacity: 0.9;
}

/* ===================================================================
   MOBILE HOME REDESIGN (<= 640px)
   Editorial/list layout for the Still Curious hub only. Every subpage
   (game screens, benefits page) is untouched — these rules are scoped
   to elements that only exist on index.html: .hub-grid .game-card,
   .featured-group, .surprise-again, .surprise-wrap-in-hero.
   Desktop (>640px) keeps the original 2-col card grid unchanged.
   =================================================================== */
@media (max-width: 640px) {
  /* ---- hero ---- */
  .site-header { padding: 40px 20px 4px; }
  .intro { padding: 36px 0 8px; }
  .intro h1 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .intro p {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }
  .intro .surprise-wrap { margin: 18px 0 14px; }
  .intro-stats {
    font-size: 0.72rem;
    opacity: 0.7;
  }

  /* ---- surprise me: primary CTA in hero, bigger + bolder ---- */
  .surprise-wrap .surprise-btn {
    padding: 15px 34px;
    font-size: 1rem;
    box-shadow: 0 14px 28px -12px rgba(201, 169, 97, 0.55);
  }

  /* ---- category sections ---- */
  .category-group { margin-bottom: var(--sp-6); }
  .category-group-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--sans);
    color: var(--plum);
    opacity: 0.75;
    padding-bottom: 8px;
  }
  .category-group-title::after { display: none; }
  .category-group-title .cg-icon { display: none; }

  /* ---- games: rows instead of cards ---- */
  .hub-grid {
    display: block;
    margin: 0;
    border-top: 1px solid rgba(92, 68, 56, 0.14);
  }
  .game-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(92, 68, 56, 0.14);
    border-radius: 0;
    padding: 16px 2px;
    box-shadow: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }
  .game-card:hover,
  .game-card:active {
    transform: none;
    box-shadow: none;
    border-color: rgba(92, 68, 56, 0.14);
    background: rgba(156, 43, 69, 0.05);
  }
  .game-card:active { background: rgba(156, 43, 69, 0.09); }
  .game-card::before, .game-card::after { display: none; }
  .game-card .gc-bar { display: none; }
  .game-card .gc-icon {
    font-size: 1.5rem;
    flex: none;
    margin: 0;
    width: 34px;
    text-align: center;
  }
  .game-card:hover .gc-icon,
  .game-card:active .gc-icon { transform: none; }
  .game-card .gc-body {
    display: block;
    flex: 1;
    min-width: 0;
  }
  .game-card h3 {
    font-size: 1.02rem;
    margin: 0 0 2px;
  }
  .game-card p {
    font-size: 0.82rem;
    margin: 0 0 4px;
    line-height: 1.4;
  }
  .game-card .gc-foot {
    font-size: 0.7rem;
    justify-content: flex-start;
  }
  .game-card .gc-foot .gc-arrow { display: none; }
  .game-card .gc-row-arrow {
    display: block;
    flex: none;
    font-size: 1.5rem;
    color: var(--wine-deep);
    opacity: 0.55;
    transition: transform 0.15s var(--ease);
  }
  .game-card:active .gc-row-arrow { transform: translateX(3px); }

  /* ---- featured experience (Date Night) ---- */
  .featured-group { margin: var(--sp-6) 0 var(--sp-7); }
  .featured-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, var(--white), var(--cream-2));
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 14px 30px -18px rgba(166, 106, 34, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  }
  .featured-cta:active { transform: scale(0.98); }
  .featured-cta-icon { font-size: 2rem; flex: none; }
  .featured-cta-body { flex: 1; min-width: 0; }
  .featured-cta-body h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 3px;
    color: var(--ink);
  }
  .featured-cta-body p {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: var(--plum);
    line-height: 1.4;
    opacity: 0.9;
  }
  .featured-cta-count {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gold-deep);
  }
  .featured-cta-arrow {
    flex: none;
    font-size: 1.2rem;
    color: var(--wine-deep);
    transition: transform 0.18s var(--ease);
  }
  .featured-cta:active .featured-cta-arrow { transform: translateX(3px); }

  /* ---- surprise me again: simple, playful, not a card ---- */
  .surprise-again {
    text-align: center;
    margin: 0 0 var(--sp-7);
    padding: var(--sp-5) 0;
    border-top: 1px dashed rgba(92, 68, 56, 0.2);
    border-bottom: 1px dashed rgba(92, 68, 56, 0.2);
  }
  .surprise-again p {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-style: italic;
    color: var(--plum);
    opacity: 0.8;
    font-size: 0.95rem;
  }
  .surprise-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--wine);
    color: var(--wine-dark);
    box-shadow: none;
    padding: 11px 24px;
    font-size: 0.9rem;
  }
  .surprise-btn-ghost:hover,
  .surprise-btn-ghost:active { transform: none; background: rgba(156, 43, 69, 0.06); }

  /* ---- supporting info: pushed below games, de-emphasized ---- */
  .benefits-cta { margin: 0 0 var(--sp-5); }
  .hub-note { margin: 0 0 var(--sp-5); }
}

/* hero entrance animation (all widths, but written for the mobile flow) */
.intro { animation: heroIn 0.6s var(--ease) both; }
.intro .surprise-wrap { animation: heroIn 0.6s var(--ease) both 0.12s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .intro .surprise-wrap { animation: none; }
}
