/* ============================================================================
   Crimson Cat Events — shared styles for sub-pages (events, how-it-works, admin)
   Mirrors the homepage design tokens so everything feels like one site.
   ============================================================================ */
:root{
  --font-head:'Newsreader',Georgia,'Times New Roman',serif;
  --font-body:'DM Sans','Noto Sans Thai','Sukhumvit Set','Thonburi','Leelawadee UI',system-ui,-apple-system,sans-serif;
  --bg:#0D0A0B; --bg-2:#151011; --surface:#1A1416;
  --text:#F5ECE6; --muted:#B3A29C;
  --crimson:#CF1F38; --crimson-deep:#B5142B; --burgundy:#6E0E1E;
  --coral:#E08A77; --blush:#EBC9C0; --gold:#D2A63C;
  --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
/* MODAL RULE (16 Nov 2026, all pages): the scrollbar's space is always reserved, so locking background scrolling for a modal
   (overflow:hidden on <html>) never moves or resizes the page. Overlay scrollbars (phones, most Macs) take no space anyway. */
html{scrollbar-gutter:stable}
/* page pinned behind a modal (js/nav.js MODAL RULE): no scrolling, no jump, scrollbar kept → nothing moves */
html.ccx-lock body{position:fixed!important;left:0!important;right:0!important;width:100%!important;overflow:hidden!important;padding-right:0!important}
html.ccx-lock--bar.ccx-lock--bar{overflow-y:scroll!important;overflow-x:hidden!important}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);
  line-height:1.62;-webkit-font-smoothing:antialiased;overflow-x:hidden;
  padding-top:var(--header-space)}   /* clearance for the fixed brand header */

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.serif{font-family:var(--font-head)}
.wrap{width:100%;max-width:1180px;margin-inline:auto;
  padding-left:max(clamp(22px,6vw,34px), env(safe-area-inset-left));
  padding-right:max(clamp(22px,6vw,34px), env(safe-area-inset-right))}
.center{text-align:center}

/* ---------- NAV — transparent, brand-forward centered logo (reversible) ---------- */
header.nav{position:fixed;top:0;left:0;right:0;z-index:50;
  background:transparent;border:0;box-shadow:none;
  transition:transform .32s ease, opacity .32s ease;will-change:transform}
header.nav.nav--hidden{transform:translateY(-100%);opacity:0;pointer-events:none}
/* soft gradient scrim behind the nav once content scrolls under it (fades into the page) */
header.nav::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(100% + 28px);z-index:-1;
  pointer-events:none;opacity:0;transition:opacity .25s ease;
  background:linear-gradient(to bottom, rgba(12,10,10,.94) 0%, rgba(12,10,10,.82) 45%, rgba(12,10,10,.4) 75%, rgba(12,10,10,0) 100%)}
header.nav.is-scrolled::before{opacity:1}
.nav-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding-block:2px}
.nav-center{justify-self:start;display:flex;align-items:center;gap:30px}
.nav-center a{font-size:14.5px;font-weight:600;color:rgba(245,236,230,.78);transition:color .14s ease}
.nav-center a:hover,.nav-center a.active{color:#fff}
.nav-brand{justify-self:center;display:flex;align-items:center}
.nav-logo{width:180px;height:auto;display:block;filter:drop-shadow(0 2px 12px rgba(0,0,0,.6))}   /* +13% */
.hiw-short{display:none}
@media(max-width:640px){
  .nav-in{grid-template-columns:1fr auto 1fr;gap:8px;padding-block:3px;
    padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .nav-center{gap:14px;min-width:0}.nav-social{gap:11px;min-width:0}
  .nav-center a{font-size:14px}
  .nav-faq{display:none}            /* FAQ lives in the footer on mobile — keep top nav to Events · How */
  .nav-logo{width:clamp(104px,27vw,128px)}
  .hiw-full{display:none}.hiw-short{display:inline}}
@media(min-width:860px){.nav-logo{width:198px}}   /* +13% */
.nav-cta{justify-self:end;display:inline-flex;align-items:center;height:44px;
  background:var(--burgundy);color:#F5ECE6 !important;
  padding:0 18px;border-radius:10px;font-size:14px;font-weight:600;
  border:1px solid rgba(207,31,56,.40);box-shadow:0 1px 3px rgba(0,0,0,.4);
  transition:background .14s ease,border-color .14s ease,transform .12s ease}
.nav-cta:hover{background:var(--crimson);border-color:#E84A5F}
.nav-cta:active{transform:translateY(1px)}
/* compact, muted social icons (replaces the nav download CTA) */
.nav-social{justify-self:end;display:flex;align-items:center;gap:14px}
.nav-social a{display:inline-flex;align-items:center;justify-content:center;color:rgba(245,236,230,.62);
  transition:color .15s ease,transform .15s ease}
.nav-social a:hover{color:var(--coral);transform:translateY(-1px)}
.nav-social svg{width:18px;height:18px;display:block}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 24px;border-radius:12px;font-weight:600;font-size:15px;letter-spacing:.01em;
  cursor:pointer;border:none;font-family:inherit;
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}
.btn svg{width:19px;height:19px;flex:none}
.btn-primary{background:var(--crimson);color:#fff;border:1px solid #E84A5F;
  box-shadow:0 8px 22px -6px rgba(207,31,56,.55),inset 0 1px 0 rgba(255,255,255,.22)}
.btn-primary:hover{transform:translateY(-2px);background:#E0263F}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{background:rgba(255,255,255,.04);color:var(--text);border:1px solid var(--line)}
.btn-ghost:hover{transform:translateY(-2px);border-color:var(--crimson);background:rgba(110,14,30,.22);color:#fff}
.btn-sm{padding:8px 14px;font-size:13px;border-radius:9px}

/* ---------- PAGE HEADER ---------- */
.page-head{position:relative;text-align:center}   /* vertical spacing: shared hero tokens */
.page-head .eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--coral)}
.page-head h1{font-family:var(--font-head);font-weight:500;line-height:1.05;
  letter-spacing:-.02em;font-size:clamp(2.2rem,6vw,3.4rem)}
.page-head h1 .hl{color:var(--coral);font-style:italic}
.page-head p.lede{color:var(--muted);max-width:54ch;font-size:1.08rem;margin-inline:auto}

/* ---------- FOOTER (slim signature) ---------- */
footer{background:var(--bg);border-top:1px solid var(--line-soft)}
.foot-top{display:flex;flex-direction:column;gap:26px;align-items:flex-start;
  justify-content:space-between;padding:34px 0 30px}
.foot-brand{display:flex;align-items:center;gap:13px}
.foot-logo{width:72px;height:auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.foot-tag{font-size:.9rem;color:var(--muted);max-width:30ch}
.foot-right{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.foot-nav{display:flex;flex-wrap:wrap;gap:24px}
.foot-nav a{font-size:.9rem;color:var(--muted);transition:color .14s ease}
.foot-nav a:hover{color:var(--crimson)}
.foot-social{display:flex;gap:14px;align-items:center}
.foot-social a{color:var(--muted);display:inline-flex;transition:color .14s ease,transform .14s ease}
.foot-social a:hover{color:var(--crimson);transform:translateY(-1px)}
.foot-social svg{width:18px;height:18px}
.foot-bottom{border-top:1px solid var(--line-soft);padding:22px 0 28px;
  display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;font-size:.8rem;color:var(--muted)}
.foot-bottom .sep{width:3px;height:3px;border-radius:50%;background:var(--muted);opacity:.5}
.foot-bottom a{color:var(--muted);transition:color .14s ease}
.foot-bottom a:hover{color:var(--crimson)}
@media(min-width:760px){
  .foot-top{flex-direction:row;align-items:center;gap:40px;padding:32px 0 28px}
  .foot-logo{width:96px}
  .foot-right{align-items:flex-end}
}
/* mobile: slim brand signature, not a content block */
@media(max-width:640px){
  .foot-top{gap:11px;padding:18px 0 12px;align-items:center;text-align:center}
  .foot-brand{flex-direction:column;gap:7px}
  .foot-logo{width:60px}
  .foot-tag{max-width:none}
  .foot-right{align-items:center;gap:9px}
  .foot-nav{gap:18px;justify-content:center}
  .foot-social{gap:16px}
  .foot-bottom{padding:10px 0 16px;justify-content:center;gap:5px 12px}
}

/* ---------- HOW IT WORKS ---------- */
.steps{display:grid;grid-template-columns:1fr;gap:18px;margin-top:14px;padding-bottom:24px}
@media(min-width:760px){.steps{grid-template-columns:repeat(3,1fr)}}
.step{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:30px 26px}
.step .num{font-size:12px;font-weight:700;color:var(--gold);letter-spacing:.1em;margin-bottom:16px}
.step .ico{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;background:rgba(207,31,56,.14);color:var(--coral)}
.step .ico svg{width:24px;height:24px}
.step h3{font-size:1.2rem;font-weight:700;margin-bottom:8px}
.step p{color:var(--muted);font-size:.96rem}
.hiw-note{margin:26px 0 0;padding:26px;border-radius:18px;border:1px solid var(--line);
  background:radial-gradient(80% 120% at 80% 0%,rgba(176,20,43,.16),transparent 55%),var(--bg-2);
  color:var(--muted)}
.hiw-note strong{color:var(--text)}

/* ---------- EVENTS GRID ---------- */
.ev-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 30px}
.chip{font-size:13px;font-weight:600;padding:8px 15px;border-radius:100px;cursor:pointer;
  background:rgba(255,255,255,.05);color:var(--muted);border:1px solid var(--line);transition:all .14s ease}
.chip:hover{color:#fff;border-color:var(--coral)}
.chip.on{background:var(--crimson);color:#fff;border-color:#E84A5F}
/* app-style horizontal event cards — single centered column (matches the app) */
.ev-grid{display:grid;grid-template-columns:1fr;gap:14px;max-width:660px;margin-inline:auto;padding-bottom:30px}
.ev-card{position:relative;display:block;border-radius:18px;overflow:hidden;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.ev-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.2);box-shadow:0 18px 42px -24px rgba(0,0,0,.8)}
.ev-card.is-sold{opacity:.62}
.ev-card.is-sold:hover{opacity:1}
/* photo fills the card; gradient fades from the surface (left, behind text) to the photo (right) */
.ev-photo{position:relative;background-size:cover;background-position:right center}
.ev-photo::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 44%,rgba(0,0,0,0) 72%,rgba(0,0,0,.46) 100%)}
.ev-availtag{position:absolute;top:9px;right:10px;z-index:3;background:rgba(255,250,247,.95);
  font-size:10.5px;font-weight:800;letter-spacing:.3px;padding:4px 9px;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.18)}
/* featured: small premium pill above the title (clean of the date badge) */
.ev-feat{display:inline-flex;align-items:center;gap:4px;margin-bottom:6px;
  background:linear-gradient(180deg,#E0263F,#B5142B);color:#fff;
  font-size:9.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;
  padding:3px 9px 3px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.22);
  box-shadow:0 2px 10px rgba(207,31,56,.45)}
.ev-feat svg{width:10px;height:10px;flex:none}
/* featured card: brighter crimson border + subtle glow */
.ev-card.is-feat{border-color:rgba(207,31,56,.5);
  box-shadow:0 0 0 1px rgba(207,31,56,.2), 0 16px 38px -24px rgba(207,31,56,.55)}
.ev-card.is-feat:hover{border-color:#E84A5F;
  box-shadow:0 0 0 1px rgba(207,31,56,.32), 0 20px 46px -22px rgba(207,31,56,.66)}
.ev-row{position:relative;z-index:2;padding:14px 15px;display:flex;align-items:center;gap:13px;min-height:106px}
.ev-card:not(.is-feat) .ev-row{min-height:110px}
.ev-cal{width:54px;flex:none;background:#fff;border-radius:11px;overflow:hidden;text-align:center;
  box-shadow:0 1px 5px rgba(0,0,0,.18);border:1px solid rgba(0,0,0,.05)}
.ev-cal .dow{color:#fff;font-size:10px;font-weight:800;letter-spacing:1px;padding:3px 0}
.ev-cal .day{color:#1a1518;font-size:22px;font-weight:900;line-height:1;padding:4px 0 1px}
.ev-cal .mon{color:#6b6258;font-size:10px;font-weight:800;letter-spacing:1px;padding:0 0 4px}
.ev-mid{min-width:0;flex:1}
.ev-type{display:block;font-weight:800;font-size:18px;letter-spacing:.1px;line-height:1.18}
.ev-time{font-size:14.5px;font-weight:600;margin-top:5px;color:var(--text)}
.ev-venue{font-size:13.5px;font-weight:600;margin-top:5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-pricebox{text-align:center;flex:none;align-self:flex-end;background:rgba(8,5,7,.4);border-radius:14px;padding:8px 12px;
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.ev-pricebox b{color:#fff;display:block;line-height:1}
.ev-pricebox .cc{color:rgba(255,255,255,.82);font-size:10px;font-weight:800;letter-spacing:1.5px;margin-top:1px}
/* empty state: card sits near the top of a reserved area (footer stays anchored) */
.ev-grid.is-empty{display:flex;align-items:flex-start;justify-content:center;
  min-height:190px;padding-top:34px;margin-bottom:48px}
@media(min-width:641px){.ev-grid.is-empty{min-height:280px}}
/* small, elegant glass card (not a big dashed box) */
.ev-empty{max-width:360px;margin-inline:auto;padding:24px 26px;text-align:center;
  border:1px solid var(--line);border-radius:16px;
  background:rgba(255,255,255,.035);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  box-shadow:0 16px 36px -20px rgba(0,0,0,.65)}
.ev-empty-title{color:var(--text);font-weight:700;font-size:.98rem;margin-bottom:5px}
.ev-empty-sub{color:var(--muted);font-size:.88rem;margin-bottom:15px}
.ev-empty-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  background:transparent;border:1px solid var(--line);color:var(--text);
  border-radius:10px;padding:9px 16px;font:inherit;font-size:13.5px;font-weight:600;
  transition:border-color .14s ease,background .14s ease,color .14s ease}
.ev-empty-btn:hover{border-color:var(--crimson);background:rgba(110,14,30,.22);color:#fff}

/* booking-happens-in-app note */
.ev-note{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap;
  color:var(--muted);font-size:.9rem;padding:6px 0 40px}
.ev-note svg{width:16px;height:16px;color:var(--coral)}

/* demo-mode banner (placeholder backend) */
.demo-banner{background:rgba(210,166,60,.12);border-bottom:1px solid rgba(210,166,60,.3);
  color:var(--gold);font-size:13px;text-align:center;padding:8px 16px;font-weight:600}

/* ---------- BREATHING ROOM ABOVE FOOTER (shared, all sub-pages) ---------- */
/* keeps final content / CTAs from crowding the footer; homepage is unaffected
   because it uses its own self-contained one-screen layout (no ccx.css). */
main{padding-bottom:clamp(28px,5vw,60px)}

/* ---------- COMPACT UTILITY FOOTER (shared) ---------- */
.foot-slim{background:var(--bg);border-top:1px solid var(--line-soft)}
.foot-slim .wrap{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 0 12px;text-align:center}
.fs-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;font-size:.82rem;color:var(--muted)}
.fs-links a{color:var(--muted);transition:color .14s ease}
.fs-links a:hover{color:var(--crimson)}
.fs-legal{gap:10px;font-size:.76rem}
.fs-social{display:inline-flex;align-items:center;gap:14px}
.fs-social a{display:inline-flex;color:rgba(245,236,230,.58);transition:color .14s ease}
.fs-social a:hover{color:var(--coral)}
.fs-social svg{width:16px;height:16px;display:block}
@media(max-width:640px){
  .foot-slim .wrap{gap:6px;padding:9px 0 11px}
  .fs-line{gap:14px;font-size:.8rem}
  .fs-legal{gap:9px;font-size:.72rem}
}

/* ---------- POLICY PAGES (privacy / terms / refund) ---------- */
.policy{max-width:760px;margin-inline:auto;padding-bottom:44px;text-align:left}
.policy .updated{font-size:.85rem;color:var(--muted);margin-bottom:22px}
.policy h2{font-family:var(--font-head);font-weight:500;font-size:1.3rem;letter-spacing:-.01em;
  margin:28px 0 10px;color:var(--text)}
.policy h2:first-of-type{margin-top:4px}
.policy h3{font-size:1.04rem;font-weight:700;margin:18px 0 7px;color:var(--text)}
.policy p{color:var(--muted);line-height:1.72;margin-bottom:12px}
.policy ul{color:var(--muted);line-height:1.72;margin:0 0 14px;padding-left:20px}
.policy li{margin-bottom:6px}
.policy a{color:var(--coral)}
.policy a:hover{text-decoration:underline}
.policy strong{color:var(--text)}
.policy-note{padding:26px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);
  background:var(--bg-2);text-align:center}

  /* footer social — Instagram & Facebook prioritized, secondary row monochrome */
  .soc-block{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:18px;margin-bottom:12px}
  .soc-head{font-size:.7rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--muted)}
  .soc-block a{position:relative;display:inline-flex;transition:transform .15s ease,opacity .15s ease,color .15s ease}
  .soc-block a::after{content:"";position:absolute;inset:-11px}   /* 44px+ tap targets */
  .soc-primary{display:flex;align-items:center;gap:20px}
  .soc-primary svg{width:26px;height:26px;display:block}
  .soc-primary a:hover{transform:scale(1.1)}
  .soc-primary a:active{opacity:.7}
  .soc-row{display:flex;justify-content:center;align-items:center;gap:16px}
  .soc-row a{color:rgba(245,236,230,.72)}
  .soc-row a:hover{color:#fff;transform:scale(1.08)}
  .soc-row a:active{opacity:.6}
  .soc-row svg{width:20px;height:20px;display:block}

/* ============================================================================
   2026-09 REDESIGN — shared additions (editorial / salon direction)
   ============================================================================ */
:root{--oxblood:#3E0C16;--ivory:#F3EBE1;--rose:#C9948A;--antique:#B08D57;--hair:rgba(243,235,225,.14)}

/* nav: readable link size; FAQs → is plain navigation text on the right, styled exactly like About / Games */
.nav-center{gap:26px}
.nav-center a{font-size:15px;letter-spacing:.01em}
.nav-right{justify-self:end;display:flex;align-items:center}
.nav-center a.nav-faq,.nav-right a.nav-faq{
  position:relative;font-family:var(--font-body);font-size:15px;font-weight:500;letter-spacing:.01em;line-height:1.5;color:rgba(245,236,230,.82);
  background:transparent;border:0;border-radius:0;padding:10px 0;min-height:0;height:auto;box-shadow:none;text-shadow:none;text-decoration:none;
  transition:color .14s ease}
.nav-right a.nav-faq .nav-arr{display:inline;white-space:pre;font-family:var(--font-head);font-size:1.1em;line-height:1}   /* arrow stays put — no hover shift, so it never breaks the underline */
.nav-right a.nav-faq::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:44px;transform:translate(-50%,-50%)}   /* invisible 44px tap target */
.nav-center a.nav-faq:hover,.nav-right a.nav-faq:hover,.nav-right a.nav-faq:focus-visible{color:#fff;background:transparent;border:0;box-shadow:none}
.nav-right a.nav-faq:focus-visible{outline:2px solid var(--rose,#C9948A);outline-offset:3px;border-radius:2px}
.nav-faq.active,.nav-right a.nav-faq.active{color:#FFF6EC;font-weight:600;background:transparent;border:0}
.nav-logo{padding:2px 10px}   /* tighter vertical padding so the larger logo barely changes header height */
/* (old mobile centred-logo rules removed — see MOBILE HEADER block near the end) */
@media(max-width:640px){
  .nav-center{gap:14px}
  .nav-center a{font-size:14px}
  .nav-faq{display:inline-flex !important}
  .nav-right a.nav-faq{font-size:14px;padding:8px 0}
}

/* ================= ANNOUNCEMENT BAR — shared standard (every bar inherits it automatically) =================
   .announce-stack fixes ONE wrapper at the top; each .announce inside is a normal block, so any number of bars stack
   in DOM order. Only one shows at a time (priority/expiry/dismissal in js/nav.js), and its height is measured live,
   so the sticky header and page offsets follow it — no offsets to hand-edit.

   MARKUP (built by js/nav.js from js/config.js → ANNOUNCEMENTS — shown here for reference only; never hand-write it):
     <div class="announce" data-announce-id="…" data-dismiss-label="Dismiss … announcement" role="region" aria-label="…">
       <img class="a-icon" src="…" alt="" width="…" height="46" decoding="async">
       <span class="a-txt"><span class="a-badge">NEW<span class="a-sr">:</span></span><span class="a-msg">Announcement text</span> <a class="announce-cta" href="…">Call to action →</a></span>
     </div>
   · a-icon: a WHOLE, uncropped illustration (transparent PNG) — decorative, alt="". Shown 40px tall on desktop ≥768px, 46px from 641–767px, 43px on phones,
     proportions kept, vertically centred on the text block, with a soft shadow that follows its outline (no box, no glow).
   · NEW (optional, new features only): small, slightly raised, unboxed gold capitals just before the text. Write it exactly as
     above — no space between </span> and <span class="a-msg">, so NEW stays attached to the first word (never alone on a
     line); the hidden colon lets screen readers say "New: …". On phones the text and CTA are left-aligned, the CTA starting directly under NEW.
   · <b>/<strong>: at most ONE short key phrase.
   · Optional <br class="a-br"> inside .a-msg: a break used only on the narrowest phones (≤389px), when the text can't fit
     on one line beside the icon; place it so the FIRST line is the longer one (NEW sits right against it).
   LAYOUT: icon + text centred as one group, with equal space reserved left and right (the × lives in the right one).
     Desktop: one line when it fits (CTA inline). Phones (≤640px): text left-aligned beside the icon, the CTA on the next line at the same left edge; icon + text centred as a block.
   IDs: a new or materially revised announcement gets a NEW data-announce-id; formatting-only edits keep it.
   Time-sensitive bars carry an end time (ISO with +07:00): data-announce-event-end / data-announce-expires. See js/nav.js.
   Urgent changes: add class "announce-alert" — same layout, slate-blue palette. */
.announce-stack{position:fixed;top:0;left:0;right:0;z-index:60}
.announce{background:#5A1A28;color:#F3E6CC;text-align:center;   /* deep wine burgundy, warm cream text, restrained gold accents */
  background:linear-gradient(180deg,#5F1C2B 0%,#5A1A28 50%,#531725 100%);   /* 27 Nov 2026: velvet depth — a barely-there fall from top to bottom (no gloss) */
  border-bottom:1px solid rgba(210,178,122,.34);   /* thin, muted gold edge */
  box-shadow:inset 0 1px 0 rgba(243,230,204,.05),0 2px 8px -2px rgba(18,4,8,.45);   /* soft shadow just beneath the bar */
  padding:15px max(56px,env(safe-area-inset-left),env(safe-area-inset-right));   /* equal sides: the group is truly centred and clears the × */
  font-size:14.5px;line-height:1.45;letter-spacing:.01em}
.announce:not([hidden]){display:flex;align-items:center;justify-content:center;gap:10px}
.announce .a-icon{flex:none;display:block;width:auto;height:46px;margin:-13px 0;   /* sits inside the padding: never makes the bar taller than the text needs */
  filter:drop-shadow(0 1px 1px rgba(28,6,12,.45)) drop-shadow(0 3px 3px rgba(28,6,12,.28))}   /* soft, close, follows the silhouette */
.announce .a-txt{min-width:0}
.announce .a-br{display:none}
.announce b,.announce strong{font-weight:600;color:#FFF4E2}
.announce a{color:#E6C98F;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:rgba(230,201,143,.55)}
.announce a:hover,.announce a:focus-visible{color:#F3E6CC;text-decoration-color:currentColor}
.announce .announce-cta{font-weight:600;white-space:nowrap}
.announce .a-badge{display:inline;position:relative;top:-2px;margin-right:6px;padding:0;border:0;border-radius:0;background:none;   /* slightly raised */
  font-size:9.5px;font-weight:700;letter-spacing:.14em;line-height:1;color:#D2B27A;vertical-align:baseline;white-space:nowrap}
.announce .a-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.announce .announce-close{color:#D2B27A}
@media(max-width:640px){
  .announce{font-size:13.5px;line-height:1.35;padding:8px max(41px,env(safe-area-inset-left),env(safe-area-inset-right))}   /* 41px each side (was 44): room for the larger icon, still clear of the × */
  .announce:not([hidden]){gap:6px}
  .announce .announce-close{right:0}
  /* text block: left-aligned beside the icon — NEW + message, then the CTA starting at the same left edge.
     The whole icon + text block is what's centred in the bar (js/nav.js trims the block to its longest line). */
  .announce .a-txt{text-align:left;text-wrap:balance}   /* longer messages wrap into even lines */
  .announce .a-icon{height:43px;margin:-5px 0}
  .announce .a-badge{font-size:9px;margin-right:5px;top:-1.5px}
  .announce .announce-cta{display:table;margin:3px 0 0}   /* own line, same left edge as NEW; display:table keeps the underline under the words */
}
@media(min-width:768px){.announce .a-icon{height:40px;margin:-10px 0}}   /* desktop: ~13% smaller (46→40px) so the cat complements the text; below 768px the icon keeps its size */
@media(max-width:400px){.announce{font-size:13px}}   /* half a point smaller on phones so short messages stay on one line beside the icon */
@media(max-width:389px){.announce .a-br{display:inline}}
/* ONE TEMPLATE (27 Nov 2026): every bar is built by js/nav.js from js/config.js → ANNOUNCEMENTS, so all of the below applies
   to every current and future announcement automatically. Never hand-write a bar or restyle one per campaign.
   ILLUSTRATION (.a-ill wraps the image + two sparkles):
   · one of six library images (assets/announce/), sized by eye (~23–30px) so wide and tall shapes feel the same weight;
     it reaches into the bar's padding (negative margin), so the bar is never taller than the text needs.
   · tilt: --a-rot (set per illustration in js/nav.js LIBRARY — camera −8° — or per announcement with `rotate`).
   · sparkles: two tiny static antique-gold four-point stars, above-left (7px) and below-right (5px), inside the illustration's
     own box, so they can never touch the text.
   · spacing: 4px sparkle room + 10px gap = 14px from illustration to text at every width.
   PHONES (≤640px): lines centred — message, then the action link on its own line; the illustration stays vertically
   centred beside both lines. Wider: message + link on one centred line where they fit, wrapping naturally otherwise. */
.announce.has-ill:not([hidden]){gap:10px}
.announce .a-ill{position:relative;flex:none;display:block;align-self:center;margin:-6px 0;padding:0 4px 0 0;line-height:0}
.announce .a-ill img.a-icon.a-icon--ill{flex:none;display:block;width:auto;height:28px;margin:0;filter:none;object-fit:contain;
  transform:rotate(var(--a-rot,0deg));transform-origin:50% 55%}
.announce .a-ill::before,.announce .a-ill::after{content:"";position:absolute;pointer-events:none;background:#C9A866;opacity:.9;
  clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}   /* four-point star */
.announce .a-ill::before{width:7px;height:7px;left:-7px;top:-4px}
.announce .a-ill::after{width:5px;height:5px;right:0;bottom:-2px;opacity:.8}
.announce img.a-icon--ill.a-icon--camera,.announce img.a-icon--ill.a-icon--ticket{height:23px}
.announce img.a-icon--ill.a-icon--phone,.announce img.a-icon--ill.a-icon--party{height:30px}
.announce img.a-icon--ill.a-icon--gift,.announce img.a-icon--ill.a-icon--megaphone{height:27px}
.announce .a-ill img.a-icon--ill.a-icon--camera,.announce .a-ill img.a-icon--ill.a-icon--ticket{height:23px}
.announce .a-ill img.a-icon--ill.a-icon--phone,.announce .a-ill img.a-icon--ill.a-icon--party{height:30px}
.announce .a-ill img.a-icon--ill.a-icon--gift,.announce .a-ill img.a-icon--ill.a-icon--megaphone{height:27px}
.announce-alert .a-ill::before,.announce-alert .a-ill::after{background:#E8D6AE}
/* LAYOUT — same rules as the mintacha.com announcement bar (27 Nov 2026); CCX keeps its own colours, type, art and sparkles.
   · ONE ROW (wide screens, when it fits with 32px to spare): illustration + message + link centred on one line;
     padding = gutter on the left, gutter + the ×'s 44px on the right; × vertically centred, its glyph on the gutter.
   · STACKED (always ≤640px, and wider whenever the row doesn't fit — measured by js/nav.js layoutBars, not a breakpoint):
     illustration on the left, vertically centred beside both lines; message LEFT-aligned, the link on its own line at the
     same left edge; × in the top-right corner (44px tap area) with the right padding reserved so text never runs under it.
     The message first steps down ≤1.5px to stay on one line, otherwise wraps naturally. The group is centred on the
     whole bar as far as the × allows. */
.announce{--ann-gutter:clamp(24px,5vw,72px)}
.announce .a-grp{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;min-width:0}
.announce .a-grp .a-txt{min-width:0}
.announce.has-ill:not([hidden]){gap:0}
.announce.announce--probe .a-grp{max-width:none}
.announce.announce--probe .a-txt,.announce.announce--probe .a-msg{white-space:nowrap}
@media(min-width:641px){
  .announce:not(.announce--stack){padding-left:max(var(--ann-gutter),env(safe-area-inset-left));padding-right:calc(var(--ann-gutter) + 44px)}
  .announce:not(.announce--stack) .announce-close{right:calc(var(--ann-gutter) - 9px)}
}
.announce.announce--stack:not([hidden]){display:block;text-align:left;font-size:13.5px;line-height:1.35;
  padding:8px calc(44px + 2px) 8px max(14px,env(safe-area-inset-left))}
@media(max-width:400px){.announce.announce--stack:not([hidden]){font-size:13px}}
.announce.announce--stack .a-ill{margin:0}
.announce.announce--stack .a-txt{display:block;text-align:left;text-wrap:pretty}
.announce.announce--stack .announce-cta{display:table;margin:3px 0 0}
.announce.announce--stack .a-badge{font-size:9px;margin-right:5px;top:-1.5px}
.announce.announce--stack .announce-close{top:0;right:0;transform:none}
.announce.announce--fit .a-msg{font-size:var(--a-fs)}
/* urgent event changes: same layout, own slate-blue palette */
.announce-alert{background:#294552;color:#FFF8ED;border-bottom-color:rgba(255,248,237,.18);box-shadow:inset 0 1px 0 rgba(255,248,237,.05)}
.announce-alert b,.announce-alert strong{color:inherit}
.announce-alert a,.announce-alert .announce-cta{color:#FFF8ED;text-decoration-color:rgba(255,248,237,.6)}
.announce-alert a:hover{text-decoration-color:currentColor}
.announce-alert a:focus-visible{text-decoration-color:currentColor;outline:2px solid #FFF8ED;outline-offset:2px;border-radius:2px}
header.nav{top:var(--announcement-live,var(--announcement-height,0px))}   /* phones: follows the bar as it scrolls away (js/nav.js) */
body{padding-top:calc(var(--header-height) + var(--announcement-height,0px))}   /* bar(s) + live header height, reserved once */


/* slim utility footer (sub-pages): readable, not tiny */
.fs-line{font-size:.92rem;gap:12px 20px}
.fs-legal{font-size:.84rem}
.foot-slim .wrap{padding:16px 0 22px;gap:12px}
@media(max-width:640px){.fs-line{font-size:.9rem;gap:10px 16px}.fs-legal{font-size:.82rem}}

/* ---- sub-pages: align with the homepage (sharp corners, rose/antique accents) ---- */
.page-head .eyebrow{color:var(--antique);letter-spacing:.2em;font-size:12px}
.page-head h1{font-weight:500}
.page-head h1 .hl{color:var(--rose)}
.page-head p.lede{font-size:1.08rem}
.btn{border-radius:3px;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.btn-primary{background:var(--burgundy);border-color:rgba(243,235,225,.08);box-shadow:none}
.btn-primary:hover{background:#82142A;transform:none}
.btn-ghost{border-color:rgba(243,235,225,.4);background:transparent}
.btn-ghost:hover{border-color:var(--ivory);background:rgba(243,235,225,.06);transform:none}
.chip{border-radius:3px;font-family:inherit}
.chip.on{background:var(--burgundy);border-color:rgba(243,235,225,.15)}
.chip:hover{border-color:var(--rose)}
.policy a{color:var(--rose)}
.step,.hiw-note,.ev-empty{border-radius:4px}

:root{--font-head:'Newsreader',Georgia,'Times New Roman',serif;--font-body:'DM Sans','Noto Sans Thai','Sukhumvit Set','Thonburi','Leelawadee UI',system-ui,-apple-system,sans-serif;--ink:#0C0A0A;--ivory:#F3EBE1;--rose:#C9948A;--antique:#B08D57;--hair:rgba(243,235,225,.14);--hair-soft:rgba(243,235,225,.08)}
  /* ============ SHARED FOOTER (ft-*) — homepage + FAQ ============ */
  .ft{border-top:1px solid var(--hair);background:var(--ink);padding:clamp(40px,4.5vw,52px) 0 28px}
  .ft > .wrap{max-width:1240px}   /* same footer width on every page (matches the homepage) */
  .ft-main{display:grid;grid-template-columns:1fr;gap:28px;align-items:start}
  .ft-brand,.ft-col{display:block;min-width:0}
  .ft-brand img{display:block;width:150px;height:auto;margin:-6px 0 14px -6px}
  .ft-brand p{font-family:var(--font-head);font-style:italic;font-size:1.1rem;line-height:1.5;color:rgba(243,235,225,.8);max-width:32ch}
  .ft-brand p:not(.ft-founder){max-width:min(26ch,100%);text-wrap:balance}   /* tagline: balanced wrap, no orphans */
  /* founder attribution: quiet secondary line under the brand blurb */
  .ft-brand p.ft-founder{margin-top:8px;font-family:var(--font-body);font-style:normal;font-size:12px;line-height:1.5;color:rgba(243,235,225,.45)}
  .ft-brand p.ft-founder a{color:rgba(243,235,225,.6);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:color .15s ease,text-decoration-color .15s ease}
  .ft-brand p.ft-founder a:hover,.ft-brand p.ft-founder a:focus-visible{color:var(--ivory);text-decoration-color:currentColor}
  .ft h3{font-family:var(--font-body);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--antique);margin:0 0 14px}
  .ft ul{list-style:none;margin:0;padding:0}
  .ft-col li{margin:0 0 8px}
  .ft a{font-size:16px;line-height:1.5;color:var(--ivory);opacity:.88;transition:opacity .15s ease,color .15s ease}
  .ft a:hover{opacity:1;color:var(--rose)}
  .ft a svg{width:15px;height:15px;vertical-align:-2px;margin-right:9px;opacity:.75}
  /* Ko-fi link: small outline die in the footer's antique gold, sized to the text */
  /* 27 Nov 2026: a real cream-and-burgundy die (assets/ui/footer-die.webp), resting at a slight tilt. Hovering or focusing the
     WHOLE link rolls it a quarter turn with a small hop and a soft landing; it rolls back when the pointer leaves. */
  .ft a img.ft-die{display:inline-block;width:22px;height:22px;vertical-align:-5px;margin-right:7px;rotate:-8deg;translate:0 0;
    transform-origin:50% 50%;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5));transition:rotate .55s cubic-bezier(.34,1.42,.55,1)}
  .ft .ftm-links a.ftm-kofi img.ft-die{flex:none;vertical-align:0}
  .ft a.ft-kofi:is(:hover,:focus-visible) img.ft-die,.ft a.ftm-kofi:is(:hover,:focus-visible) img.ft-die{rotate:82deg;animation:ccx-die-hop .55s ease-out}
  @keyframes ccx-die-hop{0%{translate:0 0}35%{translate:0 -4px}65%{translate:0 0}82%{translate:0 -1.2px}100%{translate:0 0}}
  @media(prefers-reduced-motion:reduce){
    .ft a img.ft-die{transition:none}
    .ft a.ft-kofi:is(:hover,:focus-visible) img.ft-die,.ft a.ftm-kofi:is(:hover,:focus-visible) img.ft-die{rotate:-8deg;animation:none}   /* stays still */
  }
  /* hover: die + text go crimson together */
  .ft a.ft-kofi:hover,.ft a.ftm-kofi:hover{color:var(--crimson)}
  .ft-mail{overflow-wrap:anywhere}
  .ft-legal{margin-top:16px;padding-top:20px;border-top:1px solid var(--hair-soft);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 22px}
  .ft-legal h3{margin:0 8px 0 0}
  .ft-legal ul{display:flex;flex-wrap:wrap;gap:6px 22px}
  .ft-legal a{font-size:15px}
  .ft-copy{display:block;margin-top:20px;font-size:14px;color:rgba(243,235,225,.7);white-space:normal}
  /* desktop: Brand | Explore | Support | Social, all top-aligned */
  @media(min-width:1000px){.ft-main{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);gap:40px}}
  /* tablet: brand on its own row, three link columns beneath */
  @media(min-width:600px) and (max-width:999px){
    .ft-main{grid-template-columns:1fr 1.3fr 1fr;gap:28px 28px}
    .ft-brand{grid-column:1 / -1}
  }
  /* phone: brand, then Explore | Social side by side, Support full width */
  @media(max-width:599px){
    .ft-main{grid-template-columns:1fr 1fr;gap:26px 20px}
    .ft-brand{grid-column:1 / -1}
    .ft-explore{order:1}.ft-social{order:2}.ft-support{order:3;grid-column:1 / -1}
    .ft-support ul{display:flex;flex-wrap:wrap;gap:2px 22px}
    .ft-support li{margin:0}
    .ft-col a{display:inline-block;padding:3px 0}
    .ft-legal{gap:4px 18px}
    .ft-legal h3{flex-basis:100%;margin:0 0 4px}
    .ft-legal ul{gap:4px 18px}
    .ft-legal a{display:inline-block;padding:3px 0}
    /* Social: icon-only row, 44px tap targets, ~21px icons; names stay for screen readers */
    .ft-main{grid-template-columns:minmax(0,1fr) max-content}   /* Social column sized to its one icon row */
    .ft-social ul{display:flex;flex-wrap:nowrap;gap:0;margin:-7px 0 0 -11.5px}   /* icons line up with the heading and the FAQs link */
    .ft-social li{margin:0}
    .ft-social a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0}
    .ft-social a svg{width:21px;height:21px;margin:0;vertical-align:0;opacity:.85}
    .ft-social .ft-soc-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  }

/* ---- TYPE SYSTEM: form controls + nav always use DM Sans; Thai glyphs fall back to Noto Sans Thai ---- */
button,input,select,textarea{font-family:var(--font-body)}
header.nav a,.btn,.chip{font-family:var(--font-body)}
[lang="th"]{font-family:'Noto Sans Thai','Sukhumvit Set','Thonburi','Leelawadee UI',var(--font-body)}

/* ============ SHARED HEADER (every public page) — homepage is the reference ============ */
.nav-center a{position:relative;font-family:var(--font-body);font-size:15px;font-weight:500;color:rgba(245,236,230,.82);padding:10px 0}
.nav-center a:hover{color:#fff}
/* current page: brighter text (see the no-underline block above) */
/* no underlines in the header, ever: active = brighter cream + a touch more weight; hover/focus = colour only */
.nav-center a,.nav-center a:hover,.nav-center a:focus-visible,.nav-center a.active{text-decoration:none;border-bottom:0;background-image:none}
.nav-center a::after,.nav-center a::before{content:none;display:none}
.nav-center a.active{color:#FFF6EC;font-weight:600}
.nav-center a:hover,.nav-center a:focus-visible{color:#fff}
@media(max-width:640px){.nav-center a{font-size:14px}}

/* anchor scrolling clears the announcement bar + header (value set live by js/nav.js) */
html{scroll-padding-top:var(--top-stack-height,190px)}
/* breathing room below the top stack for any in-page target (sections, FAQ groups & questions) */
section[id],.fgroup,.acc-item{scroll-margin-top:20px}
/* sections that should land flush with the top (header is hidden after scrolling down): js/nav.js scrolls them
   to sit directly under the announcement bar — no header offset, no extra margin */
[data-anchor-flush]{scroll-margin-top:calc(-1 * var(--header-height, 0px) - 2px)}   /* no-JS fallback matches js/nav.js: lands under the bars only, tucked 2px so the section's top border never shows */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* safety net: the page never scrolls sideways; only intentional inner rows (e.g. FAQ pills) do */
html,body{max-width:100%;overflow-x:clip}


/* ============ TOP STACK tokens (live values are written by js/nav.js) ============ */
:root{--header-space:70px;--announcement-height:90px;--header-height:55px;--top-stack-height:145px}   /* first-paint estimates (longest bar: Android testers, shared bar standard); live values from js/nav.js */
@media(min-width:641px){:root{--announcement-height:73px;--header-height:76px}}   /* tablet header estimate (centred logo) */
@media(min-width:1000px){:root{--announcement-height:52px}}
@media(min-width:860px){:root{--header-space:92px;--header-height:83px;--top-stack-height:171px}}

/* ============ Announcement dismiss (×) ============ */

/* each bar is its own positioning context, so its × always sits at ITS OWN right edge, not the stack wrapper's */
.announce{position:relative}
/* 44×44 tap target at every width (own close button per bar); only a small circle shows on hover/focus
   (absolutely positioned, so the bar's height never changes) */
.announce-close{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:44px;height:44px;
  display:grid;place-items:center;padding:0;margin:0;background:none;border:0;border-radius:0;cursor:pointer;outline:none;
  color:var(--antique,#B08D57);opacity:.8;transition:opacity .15s ease,color .15s ease;-webkit-tap-highlight-color:transparent}
.announce-close::before{content:"";position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;
  background:transparent;transition:background .15s ease,box-shadow .15s ease;pointer-events:none}
.announce-close svg{position:relative;width:18px;height:18px}
@media(max-width:640px){.announce-close{right:4px}.announce-close::before{width:32px;height:32px;margin:-16px 0 0 -16px}}
.announce-close:hover,.announce-close:focus-visible{opacity:1;color:#E6D2A8}
.announce-close:hover::before{background:rgba(176,141,87,.14)}
.announce-close:focus-visible::before{background:rgba(176,141,87,.14);box-shadow:0 0 0 1.5px rgba(230,210,168,.85)}   /* keyboard ring, hugs the circle */
/* flood bar's × uses its own slate-blue/warm-white palette so it reads on the darker bar */
.announce-alert .announce-close{color:#FFF8ED;opacity:.85}
.announce-alert .announce-close:hover,.announce-alert .announce-close:focus-visible{opacity:1;color:#FFF8ED}
.announce-alert .announce-close:hover::before{background:rgba(255,248,237,.16)}
.announce-alert .announce-close:focus-visible::before{background:rgba(255,248,237,.16);box-shadow:0 0 0 1.5px rgba(255,248,237,.9)}
@media(prefers-reduced-motion:reduce){.announce-close,.announce-close::before{transition:none}}
.announce-stack.is-away{visibility:hidden}   /* phones: fully scrolled away */
/* BEHAVIOUR (27 Nov 2026, same as mintacha.com): slides down + fades in on its first appearance in a visit; on × it leaves the
   layout at once and plays its own exit over the top. */
.announce.is-entering{animation:ccx-ann-in .7s cubic-bezier(.22,1,.36,1) both}
@keyframes ccx-ann-in{from{transform:translateY(-100%);opacity:0}to{transform:none;opacity:1}}
.announce.is-leaving{position:absolute;top:0;left:0;right:0;transform:translateY(-100%);opacity:0;pointer-events:none;
  transition:transform .4s cubic-bezier(.22,1,.36,1),opacity .4s ease}
@media(prefers-reduced-motion:reduce){.announce.is-entering{animation:none}.announce.is-leaving{transition:none}}

/* ============ POLICY / HELP PAGES (body.policy-page) ============ */
/* wide tables scroll inside their own box, never the whole page */
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;margin:14px 0}
.table-scroll > table,.policy .table-scroll > table{margin:0}
.table-scroll:focus-visible{outline:2px solid var(--rose,#C9948A);outline-offset:2px}
/* mobile gutters: one shared side margin for title, subtitle, text, lists, tables, notices and footer */
@media (max-width: 600px) {
  .policy-page main {
    padding-inline: clamp(20px, 7vw, 28px);
  }
  .policy-page main > .wrap{padding-inline:0}          /* main supplies the gutter — no double padding */
  .policy-page .page-head p.lede{max-width:100%;white-space:normal;overflow-wrap:break-word}
  .policy-page .ft > .wrap{padding-inline:clamp(20px, 7vw, 28px)}
}

/* policy/legal page metadata under the title: two deliberate centred lines on phones,
   one line with a "·" separator on wider screens where it fits. Dates/short phrases never split. */
.page-head p.lede.meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;column-gap:.45em;row-gap:7px;max-width:none;text-align:center}
.lede.meta .meta-line{display:block}
.lede.meta .nb{white-space:nowrap}
@media (max-width: 760px){
  .page-head p.lede.meta{flex-direction:column;align-items:center;row-gap:7px;line-height:1.4;
    font-size:clamp(15px,4.4vw,1.08rem)}   /* line 1 fits on one line even at 320px */
  .lede.meta .meta-sep{display:none}
}

/* ============ MOBILE HEADER (≤640px) — compact brand lockup ============
   64px row (10px top/bottom around 44px tap targets), grows with enlarged text instead of clipping; 20px side padding
   (safe-area insets for landscape notches via max()); hero-black background, faint bottom border.
   js/nav.js measures the real height and publishes --header-height, so sticky/anchor offsets always match it.
   Left: cropped favicon mark (ccx_mark.png, 30px) as the home link. Right: About · Games · FAQs →.
   Desktop, footer and promo sections keep the full logo (ccx_logo_trans.png). */
.nav-mark,.nav-wordmark,.nav-arr{display:none}
@media (max-width: 640px){
  :root{--header-space:64px;--header-height:64px;--top-stack-height:calc(64px + var(--announcement-height,0px))}   /* first-paint estimate; nav.js replaces it with the measured height */
  header.nav{background:var(--ink,#0C0A0A);border-bottom:0;box-shadow:0 1px 0 rgba(243,235,225,.07)}   /* faint line that doesn't add height */
  header.nav::before{display:none}                     /* solid header: no scroll scrim needed */
  header.nav .nav-in{display:flex;justify-content:space-between;align-items:center;gap:16px;
    height:auto;min-height:64px;box-sizing:border-box;max-width:none;padding-block:10px;flex-wrap:wrap;row-gap:0;   /* 10px + 44px targets + 10px = 64px; with very large text the links wrap to a second row instead of being cut off */
    padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
  /* Games · About stay visible next to FAQs → (no menu): brand left, the three links right */
  header.nav .nav-center{display:flex;order:2;margin-left:auto;gap:14px;flex:none;min-width:0}
  header.nav .nav-center a{padding:0 2px;min-height:44px;min-width:44px;justify-content:center;display:inline-flex;align-items:center;font-size:14px;font-weight:500;letter-spacing:.01em;
    line-height:1;color:var(--ivory,#F3EBE1);opacity:.9;white-space:nowrap;top:-.5px;
    text-decoration:none;transition:opacity .15s ease,color .15s ease}
  header.nav .nav-center a:hover,header.nav .nav-center a:focus-visible{opacity:1;color:#fff;text-decoration:none}
  header.nav .nav-center a.active{opacity:1;color:#FFF6EC;font-weight:600;text-decoration:none}
  header.nav .nav-center a::after{display:none}
  header.nav .nav-brand{order:1}
  header.nav .nav-logo{display:none}                    /* full stacked logo: desktop only */
  header.nav .nav-brand{flex:0 1 auto;min-width:0;justify-self:auto;display:inline-flex;align-items:center;gap:12px;
    min-height:44px;min-width:44px;color:var(--ivory,#F3EBE1)}   /* mark + wordmark = one homepage link (44px tap target) */
  header.nav .nav-mark{display:block;flex:none;width:28px;height:28px}
  header.nav .nav-wordmark{display:block;white-space:nowrap;font-family:var(--font-body);font-size:14px;font-weight:600;
    letter-spacing:.12em;text-transform:uppercase;line-height:1;color:var(--ivory,#F3EBE1)}
  header.nav .nav-brand:focus-visible{outline:2px solid var(--rose,#C9948A);outline-offset:3px;border-radius:2px}
  header.nav .nav-right{flex:none;justify-self:auto;order:3;margin-left:14px}
  /* clean text link — no box, no border */
  header.nav .nav-right a.nav-faq{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;
    border:0;border-radius:2px;background:none;box-shadow:none;
    font-family:var(--font-body);font-size:14px;font-weight:500;letter-spacing:.01em;line-height:1;
    color:var(--ivory,#F3EBE1);opacity:.9;white-space:nowrap;top:-.5px;   /* sits on the wordmark's baseline */
    text-decoration:none;   /* underline is the shared ::before rule (one continuous line, not native text-decoration) */
    transition:opacity .14s ease,color .14s ease}
  header.nav .nav-right a.nav-faq:hover{opacity:1;color:#fff;background:none;border:0}   /* same hover as About / Games: white, no underline */
  header.nav .nav-right a.nav-faq:focus-visible{opacity:1;outline:2px solid var(--rose,#C9948A);outline-offset:3px}
  header.nav .nav-right a.nav-faq::after{width:max(100%,48px);height:48px}   /* invisible 48px tap area */
  .nav-arr{display:inline;white-space:pre}
}
/* phones: the cat mark alone is the brand/home link (wordmark hidden) — the links can never reach it */
@media (max-width: 640px){ header.nav .nav-wordmark{display:none} header.nav .nav-brand{flex:none;gap:0} header.nav .nav-mark{width:34px;height:34px} }
@media (max-width: 400px){ header.nav .nav-in{gap:12px} header.nav .nav-center{gap:14px} header.nav .nav-right{margin-left:14px} }
@media (max-width: 340px){ header.nav .nav-in{gap:8px} header.nav .nav-center{gap:8px} header.nav .nav-right{margin-left:8px} header.nav .nav-center a,header.nav .nav-right a.nav-faq{font-size:13px} }   /* four links (About · Games · Quiz · FAQs →) stay on one row down to 320px */
@media (max-width: 640px) and (prefers-reduced-motion: reduce){header.nav .nav-right a.nav-faq{transition:none}}

/* ============ MOBILE FOOTER (≤640px) — compact, matches the compact mobile header ============
   Tablet/desktop keep the full footer (.ft-main / .ft-legal / .ft-copy). */
.ftm{display:none}
@media (max-width: 640px){
  .ft{padding:30px 0 20px}                                   /* ~25% less than before (40 / 28) */
  .ft .ft-main,.ft .ft-legal,.ft .ft-copy{display:none}
  .ft .ftm{display:block}
  .ft .ftm ul{list-style:none;margin:0;padding:0}
  /* 1 · brand row — icons sit on the right when they fit, otherwise wrap to one row beneath */
  .ft .ftm-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:12px}
  .ft .ftm-brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;opacity:1;color:var(--ivory,#F3EBE1)}
  .ft .ftm-brand img{width:28px;height:28px;flex:none}
  .ft .ftm-brand span{white-space:nowrap;font-family:var(--font-body);font-size:14px;font-weight:600;letter-spacing:.12em;
    text-transform:uppercase;line-height:1}
  .ft .ftm ul.ftm-social{display:flex;margin:0 -12px}          /* 44px targets, 20px icons: icon edges line up with the text column */
  .ft .ftm-social a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;opacity:.8}
  .ft .ftm-social a:hover,.ft .ftm-social a:focus-visible{opacity:1;color:var(--rose,#C9948A)}
  .ft .ftm-social svg{width:20px;height:20px;margin:0;opacity:1;vertical-align:0}
  /* 2 · tagline */
  .ft .ftm-tag{margin:8px 0 0;font-family:var(--font-head);font-style:italic;font-size:1.05rem;line-height:1.45;color:rgba(243,235,225,.8)}
  [data-brand-tagline]{text-wrap:balance}   /* footer tagline: always two lines via a deliberate <br> (js/config.js BRAND_TAGLINE) */
  [data-brand-tagline] br{display:inline}
  .ft .ftm-founder{margin:4px 0 0;font-family:var(--font-body);font-size:12px;line-height:1.5;color:rgba(243,235,225,.45)}
  .ft .ftm-founder a{color:rgba(243,235,225,.6);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
  .ft .ftm-founder a:hover,.ft .ftm-founder a:focus-visible{color:var(--ivory);text-decoration-color:currentColor}
  /* 3 · main links — two columns */
  .ft .ftm-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;
    margin-top:14px;padding-top:6px;border-top:1px solid var(--hair-soft,rgba(243,235,225,.08))}
  .ft .ftm-links a{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:1.3}
  /* 4 · legal disclosure */
  .ft .ftm-legal{margin-top:6px;border-top:1px solid var(--hair-soft,rgba(243,235,225,.08))}
  .ft .ftm-legal-btn{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:0;margin:0;
    background:none;border:0;cursor:pointer;text-align:left;
    font-family:var(--font-body);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--antique,#B08D57)}
  .ft .ftm-sign{display:inline-block;min-width:1ch;font-size:15px;line-height:1;letter-spacing:0}
  .ft .ftm-legal-btn:hover{color:#D2B27A}
  .ft .ftm-legal-btn:focus-visible{outline:2px solid var(--rose,#C9948A);outline-offset:2px;border-radius:2px}
  .ft .ftm-legal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;padding-bottom:6px}
  .ft .ftm-legal-list[hidden]{display:none}
  .ft .ftm-legal-list a{display:flex;align-items:center;min-height:44px;font-size:14px;line-height:1.3}
  /* 5 · bottom row */
  .ft .ftm-copy{margin:0;padding-top:12px;border-top:1px solid var(--hair-soft,rgba(243,235,225,.08));
    font-size:13px;color:rgba(243,235,225,.62)}
}
@media (max-width: 360px){
  .ft .ftm-brand{gap:8px}
  .ft .ftm-brand span{font-size:13px;letter-spacing:.08em}
}
/* ---- MOBILE FOOTER × ASK VAL: a protected bottom-right zone, so footer text never sits under her ----
   Val (and the Ask Val pill) stay exactly as they are — fixed bottom-right, same size. The footer flows around her:
     --val-clear-h  bottom space below the last footer line (clears the pill + home indicator)
     --val-clear-w  right-side space kept free on the lowest footer rows (beside Val's head, above the pill)
   Homepage sticker (133px tall): pill sits 44–88px above the screen bottom, her head ~127px wide above it.
   Text-only pill (other pages): 44px pill, 12px from the bottom-right corner. */
@media (max-width: 640px){
  /* Val + pill sit 10px higher, clear of the browser bar / home indicator (same size) */
  body .val-faq:not(.val-faq--text){bottom:calc(10px + env(safe-area-inset-bottom, 0px))}
  body .val-faq--text{bottom:calc(max(12px, env(safe-area-inset-bottom, 0px)) + 10px)}
  /* reserved zone grows by the same 10px */
  body:has(.val-faq:not(.val-faq--text)){--val-clear-h:106px;--val-clear-w:140px}
  body:has(.val-faq--text){--val-clear-h:74px;--val-clear-w:0px}
  .ft{padding-bottom:calc(max(20px, var(--val-clear-h, 20px)) + env(safe-area-inset-bottom, 0px))}
  /* full Val image shown (homepage): asymmetric — lower-right stays clear for her */
  body:has(.val-faq:not(.val-faq--text)) .ft .ftm-legal-list{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  body:has(.val-faq:not(.val-faq--text)) .ft .ftm-legal-list li:nth-child(n+5){grid-column:1}
  /* Ask Val pill only, or no Val: two equal columns, three rows (Terms|Privacy · Refund|Community · Child Safety|Photo & Media) */
  .ft .ftm-legal-list{align-items:start}
  /* copyright keeps clear of Val's reserved corner */
  .ft .ftm-copy{padding-right:var(--val-clear-w, 0px)}
  /* copyright: a little more air above it */
  .ft .ftm-copy{margin-top:6px;padding-top:16px;line-height:1.5}
}

/* ============ MOBILE: header → first content gap (one shared value, every page) ============
   body padding-top already equals announcement bar + header, so this is measured from the
   header's bottom edge. Padding (not margin) so it can't collapse; applied once, to main's first section. */
:root{
  /* desktop / tablet (≥641px) */
  --hero-top:clamp(36px, calc(36px + (100vw - 390px) * .0315), 64px);   /* SITE-WIDE header → first content: 36px phones → 64px desktop, smooth in between (390→1280px) */
  --hero-eyebrow-gap:16px;    /* eyebrow → heading */
  --hero-heading-gap:24px;    /* heading → intro text */
  --hero-intro-gap:32px;      /* intro text → search box / first CTA */
  --hero-bottom:56px;         /* last hero element → next section */
}
@media (max-width: 640px){
  :root{ --hero-eyebrow-gap:12px; --hero-heading-gap:20px; --hero-intro-gap:24px; --hero-bottom:32px; }
}
:root{ --mobile-header-content-gap:var(--hero-top); }   /* legacy alias */
/* faq.html: tighter hero so the search box sits higher (Valentine occupies the top-right instead of a row of her own) */
body.faq-page{--hero-intro-gap:20px;--hero-bottom:28px}
@media (max-width: 640px){ body.faq-page{--hero-intro-gap:16px;--hero-bottom:22px} }
/* SHARED HERO SPACING (all widths) — every page's first section in <main>
   (homepage .hero, FAQ .fhero, .page-head on policy/help/other pages; future pages match automatically).
   Gaps are margins on the *following* element only, so a missing eyebrow/intro leaves no empty gap,
   and the last element never carries a bottom margin (nothing collapses into or adds to the padding).
   body padding-top = live announcement + header height, so --hero-top is measured from the header's bottom edge.
   The homepage's "Next Game Night" card (.nx-wrap) sits above the hero in normal flow and is NOT the hero: these rules skip it
   and apply to the section right after it, so the hero keeps its top/bottom padding and text rhythm. */
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *){padding-top:var(--hero-top);padding-bottom:var(--hero-bottom)}
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) > :first-child,
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) > :first-child > :first-child{margin-top:0}
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) :is(.label,.eyebrow,h1,.lede,.info,.hero-acts,.fsearch,.askval,.fhero-h){margin-top:0;margin-bottom:0}
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) :is(.label,.eyebrow){display:block;margin-bottom:var(--hero-eyebrow-gap)}
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) :is(h1,.fhero-h) + :is(.lede,.info){margin-top:var(--hero-heading-gap)}   /* .fhero-h = FAQ headline + Val wrapper */
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) :is(.lede,.info) + :is(.fsearch,.hero-acts,.askval),
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) h1 + :is(.fsearch,.hero-acts,.askval){margin-top:var(--hero-intro-gap)}
body main > :is(:first-child:not(.nx-wrap), .nx-wrap + *) .askval + .fsearch{margin-top:0}   /* "ASK VAL" label sits directly above its search box */
/* SHARED TITLE HERO — About, Moments, Photo Studio: same header → eyebrow distance (About's), same eyebrow → heading gap
   (--hero-eyebrow-gap above), and 24px of VISIBLE space from the last heading line to the subtitle. The heading's line-height
   leaves ~0.275em of empty space under its letters and the subtitle's leaves --sub-lead above its own, so both are trimmed. */
@media (min-width:760px){ body main > :is(.about-hero,.m-hero,.ps-hero):first-child:not(.nx-wrap){--hero-top:40px} }
body main > :is(.about-hero,.m-hero,.ps-hero):first-child:not(.nx-wrap) :is(.label,.eyebrow,.eyebrow-g){display:block;margin-top:0;margin-bottom:var(--hero-eyebrow-gap)}
body main > :is(.about-hero,.m-hero,.ps-hero):first-child:not(.nx-wrap) h1{margin-bottom:-.275em}
body main > :is(.about-hero,.m-hero,.ps-hero):first-child:not(.nx-wrap) :is(h1,.fhero-h) + :is(p,.lede){--sub-lead:.435em;margin-top:calc(24px - var(--sub-lead))}   /* DM Sans subtitles (About, Photo Studio) */
body main > .m-hero:first-child:not(.nx-wrap) :is(h1,.fhero-h) + :is(p,.lede){--sub-lead:.21em}                                                                  /* Moments' italic serif subtitle */

/* ============ ASK VAL — floating FAQ callout (every page except faq.html) ============
   Valentine (transparent cutout of val_2 with a thin crimson outline) sits on the bottom-right edge of the screen; the crimson
   "Ask Val →" pill (flat, no tail) sits to her left at hand/chest height and she overlaps its right end.
   The whole component is one link to the FAQs. One-time entrance only; hover/tap = slight lift. */
.val-faq{--val-h:170px;position:fixed;z-index:40;right:max(6px,env(safe-area-inset-right));bottom:0;
  display:flex;align-items:flex-end;color:#F3EBE1;text-decoration:none;-webkit-tap-highlight-color:transparent;
  animation:none}   /* visible from the first paint on every page (no delayed fade-in) */
.val-faq__fig{position:relative;z-index:1;display:block;height:var(--val-h);margin-left:calc(var(--val-h) * -.2);
  filter:none}   /* the homepage rule below adds the single soft halo; the sticker edge itself is baked into the cutout */
.val-faq__fig img{display:block;height:100%;width:auto}
.val-faq__pill{position:relative;display:inline-flex;align-items:center;height:48px;
  margin-bottom:calc(var(--val-h) * .33);   /* pill centre ≈ her heart-hands / chest */padding:0 calc(var(--val-h) * .2 + 12px) 0 18px;border-radius:999px;
  background:#8E1729;border:0;box-shadow:0 6px 16px -10px rgba(0,0,0,.6);   /* flat crimson pill, no outline */
  transform-origin:100% 50%;transition:transform .2s ease,background .2s ease}
.val-faq__txt{display:flex;flex-direction:column;line-height:1.05;gap:3px}
.val-faq__sub{font-family:var(--font-body);font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#E2C58F}
.val-faq__main{font-family:var(--font-body);font-size:15px;font-weight:600;letter-spacing:.01em;white-space:nowrap;color:#F3EBE1}   /* primary text: warm cream */
.val-faq__main .arr{display:inline-block;margin-left:3px;font-family:var(--font-head);font-size:1.15em;line-height:1;transition:transform .2s ease}
.val-faq:hover .val-faq__pill,.val-faq:focus-visible .val-faq__pill{transform:scale(1.03);background:#A51D33}   /* only the CTA reacts; Valentine never moves */
.val-faq:hover .arr,.val-faq:focus-visible .arr{transform:translateX(3px)}
.val-faq:active .val-faq__pill{transform:scale(1.01)}
.val-faq:focus-visible{outline:none}
.val-faq:focus-visible .val-faq__pill{box-shadow:0 0 0 2px #F3EBE1,0 6px 16px -10px rgba(0,0,0,.6)}   /* keyboard focus ring in cream */
@media(max-width:640px){
  .val-faq{--val-h:120px;right:max(2px,env(safe-area-inset-right))}
  .val-faq__pill{height:44px;padding-left:15px}
  .val-faq__main{font-size:14px}
}
/* homepage version (with Valentine): brighter crimson pill + thin cream edge; soft cream halo so she reads against the photo */
.val-faq:not(.val-faq--text){--val-h:189px;right:calc(max(6px,env(safe-area-inset-right)) - 7px)}   /* cutout carries 14px of clear canvas on the right + 6px on top so the outline is never cut flat; offset + height keep her exactly where she was */
.val-faq:not(.val-faq--text) .val-faq__pill{background:#DC143C;border:1px solid #F0E4D6}
.val-faq:not(.val-faq--text):hover .val-faq__pill,.val-faq:not(.val-faq--text):focus-visible .val-faq__pill{background:#E82A50}
/* ONE soft, centred halo behind the whole sticker. The cream + crimson outlines are baked into the cutout at 2× display size
   (uniform distance-field outlines), so CSS adds no strokes, no tinted glow and no offset shadow — nothing that could read as a second edge. */
.val-faq:not(.val-faq--text) .val-faq__fig{filter:none}   /* the ONE cream + ONE crimson outline live in the image; no CSS edge/halo */
/* the pill no longer tucks under her left edge — her crimson outline was merging with the crimson pill there,
   which made the left edge look thinner than the right */
.val-faq:not(.val-faq--text) .val-faq__fig{margin-left:-18px}   /* pill sits 16px closer to Val (Val herself stays put) */
.val-faq:not(.val-faq--text) .val-faq__pill{padding-right:18px}
@media(max-width:640px){.val-faq:not(.val-faq--text){--val-h:133px;right:calc(max(2px,env(safe-area-inset-right)) - 5px)}}
/* text-only version (utility pages: Games, Help, legal…): same crimson pill, no character */
.val-faq--text{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
.val-faq--text .val-faq__pill{margin-bottom:0;padding:0 20px;box-shadow:0 8px 20px -8px rgba(0,0,0,.55)}
@media(max-width:640px){.val-faq--text{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}.val-faq--text .val-faq__pill{padding:0 16px}}
@keyframes valIn{from{opacity:0}to{opacity:1}}   /* fade only: the component never lifts off the bottom edge */
@media(prefers-reduced-motion:reduce){.val-faq{animation:none}.val-faq__pill,.val-faq .arr{transition:none}}

/* ============================================================================
   MOTION SYSTEM (shared, js/motion.js) — reveal on enter, polished hover/focus, no continuous motion
   ============================================================================ */
.motion [data-reveal]{opacity:0;transform:translateY(14px);
  transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay:calc(var(--i,0) * 70ms);will-change:opacity,transform}
.motion [data-reveal].in{opacity:1;transform:none;will-change:auto}
/* photos: a touch of scale so they "settle" rather than slide */
.motion .ab-ph[data-reveal],.motion .essay .ph[data-reveal]{transform:translateY(10px) scale(1.02)}
.motion .ab-ph[data-reveal].in,.motion .essay .ph[data-reveal].in{transform:none}
/* hover/focus: cards lift a little, links underline slides in, icons nudge */
.detail,.th-card,.fgroup .acc-item{transition:transform .25s cubic-bezier(.2,.7,.2,1),border-color .2s ease,background .2s ease}
@media(hover:hover){
  .details .detail:hover{transform:translateY(-3px)}
  .th-card:hover{transform:translateY(-2px)}
  .ft a svg{transition:transform .2s ease,opacity .2s ease}.ft a:hover svg{transform:translateY(-1px)}
}
/* buttons: quick, honest press feedback */
.act,.th-btn3d,.th-tab,.th-seg button,.nav-faq,.val-faq__pill{-webkit-tap-highlight-color:transparent}
.act:active{transform:translateY(1px)}
/* tab panels (Games): the incoming panel fades up */
@keyframes ccxPanel{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.motion .th-panel:not([hidden]){animation:ccxPanel .32s cubic-bezier(.2,.7,.2,1)}
/* Games list: a category's rows fade up as it opens */
.motion .th-group__body:not([hidden]){animation:ccxPanel .28s cubic-bezier(.2,.7,.2,1)}
/* Ask Val: pill lifts on hover (Val herself never moves) */
.val-faq__pill{transition:transform .25s cubic-bezier(.2,.7,.2,1),background .2s ease,box-shadow .25s ease}
.val-faq:hover .val-faq__pill,.val-faq:focus-visible .val-faq__pill{transform:translateY(-2px) scale(1.03)}
@media(prefers-reduced-motion:reduce){
  .motion [data-reveal]{opacity:1;transform:none;transition:none}
  .detail,.th-card,.nav-center a,.nav-center a::after,.ft a svg,.val-faq__pill,.act{transition:none}
  .motion .th-panel:not([hidden]),.motion .th-group__body:not([hidden]){animation:none}
  .details .detail:hover,.th-card:hover,.val-faq:hover .val-faq__pill{transform:none}
}

/* ============ MOBILE FOOTER refinements (2026-10, every page) ============
   LEGAL → first legal row ≈17–18px (44px targets kept: the label sits at the top of each target instead of the middle) */
@media (max-width: 640px){
  .ft .ftm-legal-btn{min-height:44px}
  .ft .ftm-legal-list a{align-items:flex-start;padding-top:6px}
  .ft .ftm-legal-list{padding-bottom:0}
}

/* Policy links (10 Oct 2026): underlined soft rose, visible keyboard focus */
.policy a{color:var(--rose);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.policy a:focus-visible{outline:2px solid var(--ivory);outline-offset:3px;border-radius:2px}

/* ---- ASK VAL clearance guard (js/nav.js): she stays fixed, but never covers a link or control ---- */
html{scroll-padding-bottom:var(--val-guard,0px)}
.val-faq__fig{transition:opacity .18s ease}
.val-faq[data-val="compact"] .val-faq__fig,.val-faq[data-val="left"] .val-faq__fig,
.val-faq[data-val="mini"] .val-faq__fig,.val-faq[data-val="mini-left"] .val-faq__fig{display:none}
/* pill-only placements keep a small lift off the screen edge / home indicator */
html body .val-faq[data-val="compact"],html body .val-faq[data-val="left"],html body .val-faq[data-val="mini"],html body .val-faq[data-val="mini-left"]{
  bottom:calc(max(12px, env(safe-area-inset-bottom, 0px)) + 4px)}
html body .val-faq[data-val="compact"],html body .val-faq[data-val="mini"]{right:max(12px,env(safe-area-inset-right))}
html body .val-faq[data-val="left"],html body .val-faq[data-val="mini-left"]{left:max(12px,env(safe-area-inset-left));right:auto}
.val-faq[data-val="compact"] .val-faq__pill,.val-faq[data-val="left"] .val-faq__pill,.val-faq[data-val="mini"] .val-faq__pill,.val-faq[data-val="mini-left"] .val-faq__pill{margin-bottom:0}
html body .val-faq[data-val="compact"] .val-faq__pill,html body .val-faq[data-val="left"] .val-faq__pill{padding:0 16px}
/* mini: a small "FAQs" tab (same link, same label for screen readers) */
.val-faq[data-val="mini"] .val-faq__main,.val-faq[data-val="mini-left"] .val-faq__main{display:none}
html body .val-faq[data-val="mini"] .val-faq__pill,html body .val-faq[data-val="mini-left"] .val-faq__pill{height:36px;padding:0 12px}
.val-faq[data-val="mini"] .val-faq__sub,.val-faq[data-val="mini-left"] .val-faq__sub{color:#F3EBE1}
/* Ask Val pill (20 Oct 2026): no arrow; width fits the text with 16px each side on every page and width (the small "FAQs"
   tab placements keep their own 12px). Height, colours, outline, focus ring and the link itself are unchanged; the pill's
   right edge (next to Val) doesn't move, so the gap to her illustration stays the same. */
html body .val-faq:not([data-val="mini"]):not([data-val="mini-left"]) .val-faq__pill{padding-left:16px;padding-right:16px}

/* ============================================================================
   SHARED ACTION BUTTONS (public site) — reference: the homepage "See dates" button
   .cc-btn                    base: 48px tall, 2px corners, 15px bold DM Sans, sentence case, width follows the label
   .cc-btn--primary           crimson (burgundy) fill — See dates, Take the quiz, Deal me in, Share, Pick a game …
   .cc-btn--outline           outlined secondary — Download, Invite a friend, Copy result link, Clear filters …
   .cc-on-cream (on a parent) outlined buttons switch to dark-brown text + dark border on cream surfaces (quiz card)
   Not for segmented selectors, answer panels or quiet text links. Page layout rules (margins, full-width on phones)
   still apply — this block sets only the look. Doubled class + html body keeps it ahead of older page styles.
   ============================================================================ */
html body .cc-btn.cc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;
  min-height:48px;padding:0 22px;border:1px solid transparent;border-radius:2px;
  font-family:var(--font-body);font-size:15px;font-weight:700;line-height:1.2;letter-spacing:.02em;text-transform:none;text-align:center;
  text-decoration:none;cursor:pointer;box-shadow:none;transform:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
html body .cc-btn.cc-btn .arr{font-family:var(--font-head);font-size:1.15em;line-height:1;letter-spacing:0;text-transform:none;transition:transform .18s ease}
html body .cc-btn.cc-btn:hover .arr{transform:translateX(3px)}
html body .cc-btn.cc-btn:focus-visible{outline:2px solid var(--antique,#B08D57);outline-offset:3px}
html body .cc-btn.cc-btn[disabled]{opacity:.62;cursor:default}
html body .cc-btn.cc-btn[hidden]{display:none}
/* primary: crimson fill */
html body .cc-btn--primary.cc-btn{background:var(--burgundy,#6E0E1E);color:var(--ivory,#F3EBE1);border-color:rgba(243,235,225,.08)}
html body .cc-btn--primary.cc-btn:is(:hover,:focus-visible):not([disabled]){background:#82142A;color:var(--ivory,#F3EBE1);border-color:rgba(207,31,56,.55);box-shadow:0 0 0 1px rgba(207,31,56,.25),0 6px 18px -10px rgba(207,31,56,.6)}
html body .cc-btn.cc-btn:active:not([disabled]){transform:translateY(1px);box-shadow:none}
html body .cc-btn--primary.cc-btn:active:not([disabled]){background:#7A1226;border-color:rgba(207,31,56,.7)}
/* outline (dark surfaces) */
html body .cc-btn--outline.cc-btn{background:transparent;color:var(--antique,#B08D57);border-color:rgba(226,197,143,.55)}   /* border ≈3:1 on the dark page */
html body .cc-btn--outline.cc-btn:is(:hover,:focus-visible){background:rgba(226,197,143,.08);border-color:rgba(226,197,143,.8);color:#E2C58F}
/* on cream surfaces (quiz card): dark-brown text, dark border, crimson focus ring */
html body .cc-on-cream .cc-btn--outline.cc-btn{color:#2a1a14;border-color:rgba(42,26,20,.6);background:transparent}
html body .cc-on-cream .cc-btn--outline.cc-btn:is(:hover,:focus-visible){background:rgba(42,26,20,.06);border-color:#2a1a14;color:#2a1a14}
html body .cc-on-cream .cc-btn.cc-btn:focus-visible{outline-color:#88142e}
@media(prefers-reduced-motion:reduce){html body .cc-btn.cc-btn,html body .cc-btn.cc-btn .arr{transition:none}}

/* Close (×) buttons: no lingering focus halo after a tap/click (js/nav.js sets html.pointer-modality);
   keyboard users still get the full ring because the class is removed on the first key press. */
html.pointer-modality .r-dialog__close:focus,html.pointer-modality .th-modal__close:focus,html.pointer-modality .announce-close:focus{outline:none}
html.pointer-modality .r-dialog__close:focus::before,html.pointer-modality .th-modal__close:focus::before,html.pointer-modality .announce-close:focus::before{box-shadow:none}
html.pointer-modality .announce-close:focus:not(:hover)::before{background:transparent}

/* ============ SCROLLBARS (site-wide: pages, modals, scrollable panels) ============
   Native scrolling everywhere (wheel, trackpad, keyboard, touch) — this only colours the bar.
   Dark surfaces (default): muted charcoal thumb. Cream surfaces (.sb-cream, cream cards, cream dialogs, cream lists):
   muted taupe thumb. Both on a transparent track, 10px wide with a 6px rounded thumb, slightly stronger on hover.
   Applied only with a mouse/trackpad: phones and tablets keep their own overlay scrollbars. Forced-colours /
   high-contrast mode and browsers that don't support these rules keep the default scrollbars. Containers can
   inset the track from rounded corners with --sb-inset. Swipe strips that deliberately hide their bar are unchanged. */
:root{--sb-thumb:#4a4242;--sb-thumb-hover:#625858}
.sb-cream,.cc-on-cream,.r-dialog__in,.qs-list{--sb-thumb:#b9aa98;--sb-thumb-hover:#9a8873}
@media (hover:hover) and (pointer:fine) and (forced-colors:none){
  @supports not selector(::-webkit-scrollbar){                          /* Firefox: thin native bar in the same colours */
    :root{scrollbar-width:thin;scrollbar-color:var(--sb-thumb) transparent}
    .sb-cream,.cc-on-cream,.r-dialog__in,.qs-list,.th-modal__box,.r-dialog__body,.table-scroll{scrollbar-color:var(--sb-thumb) transparent}
  }
  ::-webkit-scrollbar{width:10px;height:10px;background:transparent}
  ::-webkit-scrollbar-track{background:transparent;margin:var(--sb-inset,0px)}
  ::-webkit-scrollbar-corner{background:transparent}
  ::-webkit-scrollbar-thumb{background-color:var(--sb-thumb);background-clip:padding-box;border:2px solid transparent;border-radius:999px;min-height:40px;min-width:40px}
  ::-webkit-scrollbar-thumb:hover,::-webkit-scrollbar-thumb:active{background-color:var(--sb-thumb-hover)}
}


/* ============================================================================
   Homepage "Moments" preview (section generated by moments/build.py from moments/moments.json).
   One lead photo + a few smaller ones in a fixed editorial arrangement; every tile opens that photo's page.
   ============================================================================ */
.hm-sec .hm-top{align-items:flex-end}
.hm-more{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-family:var(--font-body);font-size:15px;font-weight:600;color:rgba(243,235,225,.78);border-bottom:1px solid transparent;transition:color .18s ease,border-color .18s ease}
.hm-more .arr{font-family:var(--font-head);font-size:1.15em;line-height:1;transition:transform .18s ease}
.hm-more:hover,.hm-more:focus-visible{color:#F3EBE1;border-bottom-color:var(--antique,#B08D57)}
.hm-more:hover .arr{transform:translateX(3px)}
.hm-grid{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"a a b c" "a a d e"}
.hm-grid.hm-n4{grid-template-areas:"a a b c" "a a d d"}
.hm-grid.hm-n6{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"a a b" "a a c" "d e f"}
.hm-t{display:block;position:relative;overflow:hidden;border-radius:2px;background:#120D0E;aspect-ratio:4/3}
.hm-t1{grid-area:a}.hm-t2{grid-area:b}.hm-t3{grid-area:c}.hm-t4{grid-area:d}.hm-t5{grid-area:e}.hm-t6{grid-area:f}
.hm-grid.hm-n4 .hm-t4{aspect-ratio:auto}
.hm-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.hm-t:hover .hm-img,.hm-t:focus-visible .hm-img{transform:scale(1.025)}
.hm-t:focus-visible{outline:2px solid var(--antique,#B08D57);outline-offset:3px}
@media(max-width:760px){
  .hm-grid,.hm-grid.hm-n4,.hm-grid.hm-n6{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:none;gap:6px}
  .hm-t,.hm-t1,.hm-t2,.hm-t3,.hm-t4,.hm-t5,.hm-t6{grid-area:auto}
  .hm-grid .hm-t1{grid-column:1 / -1}
  .hm-grid.hm-n4 .hm-t4,.hm-grid.hm-n6 .hm-t6{grid-column:1 / -1;aspect-ratio:2/1}
}
@media(prefers-reduced-motion:reduce){.hm-img,.hm-more .arr{transition:none}.hm-t:hover .hm-img{transform:none}}

/* Mobile header with four links (About · Games · Quiz · Moments): tighter spacing so the row never wraps on normal phones;
   on very narrow screens the FAQs link steps aside (FAQs stay one tap away via the Ask Val button and the footer). */
@media (max-width:640px){
  header.nav .nav-in{gap:12px}
  header.nav .nav-center{gap:10px}
  header.nav .nav-center a{min-width:40px;padding:0 1px}
  header.nav .nav-right{margin-left:8px}
}
@media (max-width:420px){
  header.nav .nav-in{gap:10px}
  header.nav .nav-center{gap:8px}
  header.nav .nav-center a{font-size:13px;min-width:36px}
  header.nav .nav-right{margin-left:6px}
  header.nav .nav-right a.nav-faq{font-size:13px}
}
@media (max-width:374px){
  header.nav .nav-in{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
}
@media (max-width:350px){
  header.nav .nav-right{display:none}
}

/* ===== Top navigation states (About · Games · Moments), Nov 2026 =====
   Hover: ivory → muted pink, 200ms ease-out, colour only (no movement, scaling or glow).
   Current page: a thin, persistent muted-pink underline (static — never animated). Keyboard: clear focus ring. */
html body header.nav .nav-center a{transition:color .2s ease-out;-webkit-tap-highlight-color:transparent}
html body header.nav .nav-center a:hover,html body header.nav .nav-center a:active{color:#D59B9B;opacity:1}
html body header.nav .nav-center a.active{text-decoration:underline;text-decoration-color:#D59B9B;text-decoration-thickness:1.5px;text-underline-offset:7px}
html body header.nav .nav-center a:focus-visible{color:#D59B9B;opacity:1;outline:2px solid #D59B9B;outline-offset:4px;border-radius:2px}
@media (prefers-reduced-motion: reduce){html body header.nav .nav-center a{transition:none}}

/* ===== FAQs at the far right of the header (tablet + desktop) =====
   Phones keep About · Games · Moments only (FAQs stays in the footer). From 700px the header has room for the
   left links, the centred logo and FAQs without crowding; FAQs uses the same type, colours, hover, current-page
   underline and focus ring as the left links. */
html body header.nav .nav-help{display:none}
@media (min-width: 700px){
  html body header.nav .nav-help{display:flex;justify-self:end;align-items:center}
  html body header.nav .nav-help a{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 2px;font-family:var(--font-body);font-size:15px;font-weight:500;letter-spacing:.01em;
    color:rgba(245,236,230,.82);text-decoration:none;white-space:nowrap;transition:color .2s ease-out;-webkit-tap-highlight-color:transparent}
  html body header.nav .nav-help a:hover,html body header.nav .nav-help a:active{color:#D59B9B}
  html body header.nav .nav-help a.active{color:#FFF6EC;font-weight:600;text-decoration:underline;text-decoration-color:#D59B9B;text-decoration-thickness:1.5px;text-underline-offset:7px}
  html body header.nav .nav-help a:focus-visible{color:#D59B9B;outline:2px solid #D59B9B;outline-offset:4px;border-radius:2px}
}
@media (prefers-reduced-motion: reduce){html body header.nav .nav-help a{transition:none}}

/* ---------- HOST AVATAR STANDARD (16 Nov 2026) — every host on cards and in modals (see CLAUDE.md; markup: js/avatar.js) ----------
   One circle, fixed size (40px phones, 44px from 600px), never shrinks or stretches. It ALWAYS holds the host's initial,
   perfectly centred; a photo (if any) covers it with a tight face crop (object-fit:cover + per-photo --ava-pos).
   No photo / failed load → the initial shows. Colours per context: --ava-bg, --ava-fg, --ava-ring (thin ring = background).
   Several hosts (.ccx-avas): small overlap, each later avatar on top, so no initial or face is ever hidden. */
.ccx-ava.ccx-ava{--ava-size:40px;position:relative;display:inline-grid;place-items:center;flex:0 0 var(--ava-size);flex-shrink:0;
  width:var(--ava-size);height:var(--ava-size);min-width:var(--ava-size);max-width:none;margin:0;padding:0;box-sizing:border-box;
  border-radius:50%;overflow:hidden;background:var(--ava-bg,#3a3a3e);color:var(--ava-fg,#E2C58F);
  font:600 16px/1 var(--font-body,system-ui,sans-serif);letter-spacing:0;text-align:center;user-select:none;vertical-align:middle}
.ccx-ava__i{display:block;line-height:1;transform:translateY(.02em)}
.ccx-ava > img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;border-radius:50%;
  object-fit:cover;object-position:var(--ava-pos,50% 45%)}
.ccx-ava::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px var(--ava-edge,transparent);pointer-events:none}
@media(min-width:600px){.ccx-ava.ccx-ava{--ava-size:44px;font-size:17px}}
.ccx-host.ccx-host{display:flex;align-items:center;gap:10px}
.ccx-avas{display:flex;flex:0 0 auto;align-items:center}
.ccx-avas .ccx-ava + .ccx-ava{margin-left:-6px;box-shadow:0 0 0 2px var(--ava-ring,#1b1b1e)}

/* ================= EXTERNAL LINK ARROW (27 Nov 2026) — added by js/nav.js to every text link that leaves the site =================
   The plain ↗ glyph in the link's own colour, a word-space after the last word and glued to it (never wraps alone).
   Internal links keep →. See CLAUDE.md → "External links". */
.ext-run{display:inline;min-width:0}   /* the link's words as one inline run (keeps spaces inside flex links) */
.ext-nw{white-space:nowrap}
.ext-ar{display:inline;margin-left:.25em;font-style:normal;font-weight:inherit}
.ext-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ================= TYPOGRAPHY STANDARD (27 Nov 2026) — every page inherits it; see CLAUDE.md → "Typography standard" =================
   Zero-specificity defaults (:where): any component's own rule still wins, so intentional formatting is untouched.
   · headings, captions, buttons, ledes and short messages: balance (even lines, no lone last word)
   · paragraphs and list items: pretty (no stranded word on the last line)
   · short paragraphs (≤120 characters, marked .tw-short by js/nav.js): balance
   · long words wrap instead of overflowing; containers grow with their text (no fixed heights on text)
   Browser support: balance — iOS/Safari 17.5+, Chrome 114+, Firefox 121+; pretty — iOS/Safari 26+, Chrome 117+.
   Older browsers wrap normally, nothing breaks. */
:where(h1,h2,h3,h4,h5,h6,figcaption,blockquote,legend,summary,th,button,.cc-btn,.lede,.blurb,.st){text-wrap:balance}
:where(p,li,dd,dt,td){text-wrap:pretty}
:where(.tw-short){text-wrap:balance}
:where(h1,h2,h3,h4,h5,h6,p,li,dd,dt,td,th,figcaption,blockquote,button,label,a){overflow-wrap:break-word}
:where(.nw,.tw-glue){white-space:nowrap}
.tw-run{display:inline}
.tw-glue--icon{display:inline-flex;align-items:center;gap:.25em}   /* word + arrow icon: keeps the space the link's own layout gave them */   /* glued words stay one inline run, so spaces survive inside flex/grid links and buttons */
