/* ─────────────────────────────────────────────────
   CogniBump shared UI (header, footer, “more games”)
   SAFE: homepage keeps its own grid; games stack cleanly
───────────────────────────────────────────────── */

/* reset margins on root */
html, body { margin: 0; }
/* iPhone text autosizing (Safari and the iMessage app's web view) inflated small labels, e.g. Dice Five's 9.5px
   column names grew to ~24px and were clipped into "YO BE". Pages are laid out for phones, so keep sizes as designed. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* include wrappers layout-neutral */
[data-include] { display:block; width:100%; }

/* =============== HEADER =============== */
.cb-header {
  position: sticky;     /* stick to top */
  top: 0;
  z-index: 1000;
  width: 100%;
  background:#111;
  border-bottom:1px solid rgba(255,255,255,.10);
}
/* Skip link: first thing a keyboard or screen-reader user reaches; hidden until it has focus */
.cb-skip {
  position: absolute; left: .75rem; top: .5rem; z-index: 1001;
  padding: .6rem 1rem; border-radius: 10px;
  background: #fff; color: #111; font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.cb-skip:focus, .cb-skip:focus-visible { transform: none; outline: 3px solid #ffb703; outline-offset: 2px; }

.cb-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;      /* clamps vertical size on desktop */
}

/* Logo: fixed height, never fluid */
.cb-logo { display:flex; align-items:center; }
.cb-logo img {
  height: 36px !important;   /* desktop/tablet */
  width: auto !important;
  max-width: none !important;
  display: block;
}
@media (max-width: 600px) {
  .cb-logo img { height: 30px !important; } /* mobile */
}

/* Nav */
.cb-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cb-nav a {
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
  font-weight:600;
  line-height:1.2;
  opacity:.9;
}
.cb-nav a:hover { opacity:1; }

/* =============== FOOTER =============== */
.cb-footer {
  width:100%;
  background:#181818;
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:2rem;
}
.cb-footer-inner {
  max-width:1100px;
  margin:0 auto;
  padding:1rem;
  color:#ccc;
  text-align:center;
  font-size:.95rem;
}
.cb-footer-links { display:flex; gap:.5rem; justify-content:center; align-items:center; }
.cb-footer a { color:#fff; text-decoration:none; }

/* =============== “PLAY ANOTHER GAME” PANEL =============== */
.cb-more-games { margin:2rem auto; max-width:1100px; padding:0 1rem; }
.cb-more-games h3 { margin:0 0 .75rem; font-size:1.25rem; text-align:center; color:#ffc107; }
.cb-more-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.cb-more-card { background:#1e1e1e; border-radius:10px; overflow:hidden; text-decoration:none; color:#fff; display:flex; flex-direction:column; align-items:center; padding:.5rem; box-shadow:0 2px 8px rgba(0,0,0,.25); transition:transform .2s; }
.cb-more-card:hover { transform:translateY(-2px); }
.cb-more-card img { width:100%; height:90px; object-fit:cover; border-radius:8px; }
.cb-more-card span { margin-top:.5rem; font-size:.95rem; text-align:center; }

/* =============== PAGE LAYOUT GUARDS =============== */
/* Homepage: undo style.css's game-page body styles */
body.home {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  padding: 0 !important;
  background: initial !important;
  min-height: initial !important;
}

/* Non-home (game) pages: stack header → content → footer and center content */
body:not(.home) {
  display:block !important;             /* undo body flex from style.css */
  align-items: initial !important;
  justify-content: initial !important;
  padding: 0 !important;                /* remove global body padding from around header */
}

/* Give padding to the main content instead */
body:not(.home) main.quiz-container {
  width: 100% !important;
  max-width: 560px !important;          /* 520–600 works nicely */
  margin: 0 auto !important;
  padding: 1rem;                         /* content padding lives here */
}

/* Card never exceeds container width */
body:not(.home) .quiz-card.glass {
  width: 100% !important;
  max-width: 560px !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Prevent horizontal scroll from inner elements.
   overflow-x:hidden alone forces the browser to compute overflow-y as
   "auto" (CSS spec: a non-visible value on one axis pairs the other axis
   to auto rather than leaving it visible). On a plain block container
   that's usually harmless, but .quiz-container has no explicit height,
   and an overflow:auto box that gets content injected via JS *after*
   first layout can freeze at its pre-content height instead of growing
   to fit — collapsing to near-zero and letting whatever's next in the
   DOM (the footer) render on top of the still-visible quiz below it.
   overflow-x:clip avoids the axis-pairing rule entirely, so overflow-y
   stays visible and the container sizes to its real content. */
body:not(.home) .quiz-container,
body:not(.home) .quiz-card,
body:not(.home) .quiz-body,
body:not(.home) .quiz-header,
body:not(.home) .quiz-answers {
  max-width: 100%;
  overflow-x: clip;
}

/* Make only content images fluid; NOT the header logo */
body:not(.home) .quiz-container img,
body:not(.home) .cb-more-games img,
body:not(.home) #postGameLinks img {
  max-width:100%;
  height:auto;
}
/* Dropdown trigger */
.cb-menu { position: relative; }
.cb-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;             /* hide marker space */
  user-select: none;
  padding: .4rem .5rem;
  border-radius: .4rem;
}
.cb-menu-trigger:hover { background: rgba(255,255,255,.08); }
.cb-header .cb-menu-trigger { color: #fff; }   /* the header is always dark; light pages used to inherit dark text here */
.cb-menu > summary::-webkit-details-marker { display:none; } /* hide default arrow */
.cb-menu:not([open]) > .cb-menu-panel { display: none; }   /* a closed menu paints nothing (its shadow used to show at the edge) */

/* Panel */
.cb-menu-panel {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #1b1b1b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  min-width: 240px;
  padding: .5rem;
  display: grid;
  gap: .25rem;
  z-index: 1200;
}

/* Items */
.cb-menu-panel a {
  color: #fff;
  text-decoration: none;
  padding: .6rem .75rem;
  border-radius: .4rem;
  font-weight: 600;
  line-height: 1.2;
}
.cb-menu-panel a:hover { background: rgba(255,255,255,.08); }

/* Mobile: make the panel easy to read & tap */
@media (max-width: 700px) {
  .cb-menu-panel {
    left: 0; right: 0;
    top: calc(100% + 6px);
    min-width: unset;
    padding: .5rem;
  }
  .cb-menu-panel a { padding: .8rem .9rem; font-size: 1.05rem; }
}
/* Align "Home" and "Games" nicely */
.cb-header-inner { align-items: center; }
.cb-nav { display:flex; align-items:center; gap:1rem; }
.cb-nav a,
.cb-menu-trigger {
  display:inline-flex;
  align-items:center;
  height: 36px;          /* same visual height as logo */
  padding: 0 .5rem;
  line-height: 1;        /* keeps them vertically centered */
  font-weight: 700;
}

/* Tidy the summary trigger */
.cb-menu { position: relative; }
.cb-menu > summary::-webkit-details-marker { display:none; }
.cb-menu-trigger { cursor: pointer; border-radius: .4rem; }
.cb-menu-trigger:hover { background: rgba(255,255,255,.08); }

/* ---- CENTERED DROPDOWN (desktop & mobile) ---- */
.cb-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;                           /* center on trigger */
  transform: translateX(-50%);         /* center on trigger */
  background: #1b1b1b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  padding: .5rem;
  display: grid;
  gap: .25rem;
  z-index: 1200;
  min-width: 240px;
  max-width: 92vw;                     /* never exceed viewport */
}

/* Items */
.cb-menu-panel a {
  color:#fff; text-decoration:none;
  padding:.6rem .75rem; border-radius:.4rem;
  font-weight:600; line-height:1.2;
}
.cb-menu-panel a:hover { background: rgba(255,255,255,.08); }

/* Mobile: keep it fully on-screen and comfy to tap */
@media (max-width: 700px) {
  .cb-menu-panel {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 24px);         /* breathing room left/right */
    max-width: 420px;                   /* readable width cap */
    top: calc(100% + 6px);
  }
  .cb-menu-panel a { padding: .8rem .9rem; font-size: 1.05rem; }
}

/* Avoid accidental horizontal scroll on small screens.
   clip, not hidden: overflow-x:hidden on body forces overflow-y to auto, and with
   height:100% below that made <body> the page's scroll container instead of the
   window — window.scrollY stuck at 0, anchors ignoring scroll-padding, broken
   scroll restoration and address-bar collapse on phones. clip blocks sideways
   drift without creating a scroll container. Browsers without clip ignore the
   second declaration and keep hidden, exactly as before. */
html, body { overflow-x: hidden; overflow-x: clip; }
/* Make page fill screen height and push footer down */
html, body {
  height: 100%;              /* full viewport height */
}

body {
  display: flex;
  flex-direction: column;
}

/* Main content grows to fill space before footer */
main {
  flex: 1 0 auto;
}

/* Footer stays at bottom when content is short */
.cb-footer {
  flex-shrink: 0;
}
/* Sticky footer layout for all non-home pages */
html, body { height:100%; }
body:not(.home) {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  min-height:100vh;
  padding:0 !important;          /* keep header snug */
}
body:not(.home) main { flex:1 0 auto; }
body:not(.home) .cb-footer { margin-top:auto; flex-shrink:0; }
:root {
  --cb-header-h: 56px;           /* match your header clamp */
  --cb-footer-h: 64px;           /* adjust to your footer’s real height */
}

/* Make main exactly the remaining height (also respects the iOS safe-area) */
body:not(.home) main {
  min-height: calc(100vh - var(--cb-header-h) - var(--cb-footer-h) - env(safe-area-inset-bottom, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
/* --- Sticky footer: safe, simple version --- */
html, body { height: 100%; }

body:not(.home) {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  padding: 0 !important;        /* keep header snug */
}

body:not(.home) main {
  flex: 1 1 auto !important;
  min-height: auto !important;  /* override the previous calc() rule */
}

body:not(.home) .cb-footer {
  margin-top: auto;
  flex-shrink: 0;
  /* small safe-area breathing room on iOS without layout math */
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

/* Games dropdown section labels */
.cb-menu-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.5rem 0.75rem 0.15rem;
  margin-top: 0.25rem;
  pointer-events: none;
}
.cb-menu-label:first-child {
  margin-top: 0;
  padding-top: 0.15rem;
}

/* Compact “what’s next” strip after a game */
.cb-post-game-bar {
  margin-top: 1rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 10px;
  background: #0f1421;
  border: 1px solid #26304f;
  max-width: 100%;
}
.cb-post-game-bar:not(.cb-post-game-bar--dark) {
  background: #f0f4fa;
  border-color: #d6e0f0;
}
.cb-post-game-inner .cb-post-game-label {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa3b2;
}
.cb-post-game-bar:not(.cb-post-game-bar--dark) .cb-post-game-inner .cb-post-game-label {
  color: #64748b;
}
.cb-post-game-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
  .cb-post-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: #6366f1;
  color: #fff !important;
  border: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.cb-post-game-btn:hover {
  filter: brightness(1.08);
}
.cb-post-game-btn:active {
  transform: translateY(1px);
}
.cb-post-game-btn.cb-post-game-quiet {
  background: transparent;
  color: #9aa3b2 !important;
  border: 1px solid #334155;
  font-weight: 600;
}
.cb-post-game-bar:not(.cb-post-game-bar--dark) .cb-post-game-btn {
  background: #0d6efd;
}
.cb-post-game-bar:not(.cb-post-game-bar--dark) .cb-post-game-btn.cb-post-game-quiet {
  color: #475569 !important;
  border-color: #cbd5e1;
  background: transparent;
}
@media (max-width: 520px) {
  .cb-post-game-btn {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 9rem;
    justify-content: center;
  }
}

/* =============== HUB PAGES (games, today, word-games, …) =============== */
/* One shell: the same cream editorial look as the home page and the iMessage menu.
   Fraunces for titles, Nunito for everything else; coral is the one action colour. */
body.cb-hub {
  --hub-paper: #fbf8f2;
  --hub-card: #ffffff;
  --hub-line: #e6dece;
  --hub-line-strong: #d3c8b4;
  --hub-ink: #17130e;
  --hub-ink-2: #3a3128;
  --hub-muted: #776d5f;
  --hub-coral: #e8543d;
  --hub-coral-deep: #b9381f;
  --hub-coral-soft: #fde7e0;
  --hub-green: #16803c;
  --hub-green-soft: #e3f4e8;
  min-height: 100vh;
  background: var(--hub-paper);
  color: var(--hub-ink);
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.cb-hub h1,
body.cb-hub:not(.cb-games-dir) h2:not(.cb-hub-section-title):not(.cb-hub-eyebrow):not(.cb-hub-label) {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.015em;
}
body.cb-hub h1 { line-height: 1.08; }
body.cb-hub main a:not([class]) { color: var(--hub-coral-deep); font-weight: 800; }

.cb-hub-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.cb-hub-hero {
  margin-bottom: 1.75rem;
}

.cb-hub-eyebrow,
.cb-hub-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hub-coral-deep);
}
.cb-hub-section-title { margin-bottom: 0.85rem; }

.cb-hub-title {
  margin: 0 0 0.55rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 900;
  color: var(--hub-ink);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.cb-hub-lede {
  margin: 0 0 1.15rem;
  color: var(--hub-muted);
  line-height: 1.55;
  font-size: 1.02rem;
  font-weight: 600;
  max-width: 40rem;
}

.cb-hub-lede strong {
  color: var(--hub-ink-2);
  font-weight: 800;
}
.cb-hub-lede a { color: var(--hub-coral-deep); font-weight: 800; }

.cb-hub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

/* the same chunky buttons as the home page: coral for the one thing to do, paper for the rest */
.cb-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}

.cb-hub-btn:focus-visible {
  outline: 3px solid rgba(232, 84, 61, 0.45);
  outline-offset: 3px;
}

.cb-hub-btn--primary {
  background: var(--hub-coral);
  color: #fff;
  box-shadow: 0 4px 0 var(--hub-coral-deep), 0 10px 18px rgba(185, 56, 31, 0.18);
}

.cb-hub-btn--primary:hover {
  background: #ef5f48;
}

.cb-hub-btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--hub-coral-deep), 0 4px 8px rgba(185, 56, 31, 0.15);
}

.cb-hub-btn--secondary {
  background: var(--hub-card);
  color: var(--hub-ink);
  border-color: var(--hub-line-strong);
  box-shadow: 0 3px 0 var(--hub-line-strong);
}

.cb-hub-btn--secondary:hover {
  border-color: var(--hub-ink-2);
}

.cb-hub-btn--secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--hub-line-strong);
}

.cb-hub-btn--ghost {
  background: transparent;
  color: var(--hub-coral-deep);
  border-color: transparent;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  box-shadow: none;
}

.cb-hub-btn--ghost:hover {
  background: var(--hub-coral-soft);
}

.cb-hub-section {
  margin: 2rem 0 0;
}

.cb-hub-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .cb-hub-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.cb-hub-grid--single {
  max-width: 640px;
}

.cb-hub-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--hub-card);
  border: 1px solid var(--hub-line);
  box-shadow: 0 1px 0 var(--hub-line), 0 6px 16px rgba(23, 19, 14, 0.06);
  transition: border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.cb-hub-card:hover {
  border-color: var(--hub-line-strong);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 var(--hub-line-strong), 0 12px 24px rgba(23, 19, 14, 0.1);
}

.cb-hub-card:active {
  transform: translateY(0);
}

.cb-hub-card-title {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--hub-ink);
  margin-bottom: 0.3rem;
}

.cb-hub-card-desc {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hub-muted);
  line-height: 1.45;
}

.cb-hub-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hub-muted);
  line-height: 1.55;
  max-width: 44rem;
}

.cb-hub-note a {
  color: var(--hub-coral-deep);
  text-decoration: none;
  font-weight: 800;
}

.cb-hub-note a:hover {
  text-decoration: underline;
}

/* Ritual hub (Today page) */
.cb-ritual {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 18px;
  background: var(--hub-card);
  border: 1px solid var(--hub-line);
  box-shadow: 0 1px 0 var(--hub-line), 0 8px 22px rgba(23, 19, 14, 0.07);
}

.cb-ritual-inner {
  max-width: 640px;
}

.cb-ritual-streak {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--hub-ink-2);
  line-height: 1.45;
}

.cb-ritual-streak--muted {
  color: var(--hub-muted);
}

.cb-ritual-streak-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--hub-green-soft);
  color: var(--hub-green);
  font-weight: 900;
  font-size: 0.8rem;
}

.cb-ritual-progress-line {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--hub-coral-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cb-ritual-cards {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .cb-ritual-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.cb-ritual-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--hub-paper);
  border: 1px solid var(--hub-line);
  transition: border-color 0.16s ease, transform 0.1s ease;
  position: relative;
  padding-left: 2.45rem;
}

.cb-ritual-card:hover {
  border-color: var(--hub-line-strong);
  transform: translateY(-2px);
}

.cb-ritual-card--done {
  border-color: rgba(22, 128, 60, 0.4);
  background: var(--hub-green-soft);
}

.cb-ritual-dot {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--hub-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cb-ritual-dot--todo {
  background: transparent;
  border: 2px solid var(--hub-line-strong);
}

.cb-ritual-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--hub-ink);
}

.cb-ritual-card-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hub-muted);
  line-height: 1.35;
}

.cb-ritual-celebrate {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--hub-green-soft);
  border: 1px solid rgba(22, 128, 60, 0.3);
  color: #0f5a2a;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.cb-ritual-shareall {
  margin-left: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: var(--hub-green);
  color: #fff;
  font: 900 0.8rem 'Nunito', system-ui, sans-serif;
  cursor: pointer;
}

.cb-ritual-shareall:hover {
  background: #11692f;
}

.cb-party {
  margin-top: 1.75rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 2px dashed var(--hub-line-strong);
  background: var(--hub-coral-soft);
}

.cb-party-lede {
  margin: 0.35rem 0 0.85rem;
  color: var(--hub-ink-2);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 44rem;
}

.cb-party-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--hub-ink-2);
  font-weight: 600;
  line-height: 1.65;
}

.cb-party-steps a {
  color: var(--hub-coral-deep);
  font-weight: 800;
  text-decoration: none;
}

.cb-party-steps a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .cb-hub-card {
    transition: none;
  }
  .cb-hub-card:hover {
    transform: none;
  }
  .cb-ritual-card {
    transition: none;
  }
  .cb-ritual-card:hover {
    transform: none;
  }
  .cb-hub-btn--primary:active,
  .cb-hub-btn--secondary:active {
    transform: none;
  }
}

/* =============== MOBILE NAV HAMBURGER =============== */
.cb-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: .45rem .5rem;
  color: #fff;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
}
.cb-nav-toggle:hover { background: rgba(255,255,255,.08); }

@media (max-width: 700px) {
  /* Show hamburger button */
  .cb-nav-toggle { display: flex; }

  /* Header inner needs relative so nav can drop below it */
  .cb-header-inner { position: relative; flex-wrap: nowrap; }

  /* Nav: hidden by default, slides down when open */
  .cb-nav {
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #111 !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    border-bottom: 2px solid rgba(255,255,255,.08) !important;
    padding: .5rem 0 .75rem !important;
    gap: 0 !important;
    margin-left: 0 !important;
    z-index: 999 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
  }

  .cb-nav.cb-nav--open { display: flex !important; }

  /* Nav links: full-width tap targets */
  .cb-nav > a {
    display: block !important;
    height: auto !important;
    padding: .8rem 1.25rem !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cb-nav > a:last-of-type { border-bottom: none !important; }

  /* "All games" details — inline, not floating */
  .cb-nav .cb-menu {
    position: static !important;
    width: 100% !important;
  }
  .cb-nav .cb-menu-trigger {
    display: flex !important;
    height: auto !important;
    padding: .8rem 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    font-size: 1rem !important;
    border-radius: 0 !important;
  }
  .cb-nav .cb-menu[open] .cb-menu-trigger {
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }
  .cb-nav .cb-menu-panel {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #0d0d0d !important;
    padding: .25rem 0 !important;
    min-width: 0 !important;
  }
  .cb-nav .cb-menu-panel a {
    padding: .7rem 1.75rem !important;
    font-size: .95rem !important;
    border-radius: 0 !important;
  }
  .cb-nav .cb-menu-label {
    padding-left: 1.75rem !important;
  }
}
