/* ==========================================================================
   EscapeMe — اسکیپ‌می
   Playful neo-brutalist, RTL Persian. Plain CSS, no build step.
   Sections:
     0. Fonts (self-hosted)
     1. Tokens
     2. Reset / base
     3. Primitives (buttons, pills, tags, reveal)
     4. Progress bar
     5. Nav + mobile menu
     6. Caution tape
     7. Hero
     8. Experiences
     9. Games
    10. How it works
    11. Branches
    12. Reviews
    13. CTA band
    14. Footer
    15. Sticky book bar
    16. Back-to-top
    17. Booking sheet / modal
    18. Responsive (560 / 820)
    19. Reduced motion
   ========================================================================== */

/* ---------- 0. FONTS (all self-hosted — no external request) ---------- */
/* Vazirmatn — body/UI. Self-hosted variable woff2 (each subset file carries every
   weight 100–900), replacing the old Google Fonts @import which was render-blocking
   and unreliable in Iran. Three subsets keyed by unicode-range so a browser only
   downloads the file it needs (arabic for Persian, latin/-ext for stray Latin). */
@font-face{font-family:'Vazirmatn';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('/assets/fonts/vazirmatn-arabic.woff2') format('woff2-variations');
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Vazirmatn';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('/assets/fonts/vazirmatn-latin.woff2') format('woff2-variations');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Vazirmatn';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('/assets/fonts/vazirmatn-latin-ext.woff2') format('woff2-variations');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Lalezar — display/headers (single weight, self-hosted) */
@font-face{font-family:'Lalezar';src:url('/assets/fonts/Lalezar-Regular.woff2') format('woff2');font-weight:400;font-display:swap;font-style:normal}

/* ---------- 1. TOKENS ---------- */
:root{
  /* palette (exact, from the mockup) */
  --paper:#F7EFE0; --ink:#1A1410;
  --vermilion:#FF5436; --lime:#C6F135; --purple:#6B4DFF;
  --amber:#FFC23B; --blue:#27B0E6; --pink:#FF7AB3; --green:#2BA84A;
  /* canonical per-experience accent — the ONE colour each experience uses
     everywhere (hero --ac, cards, detail pages, menu dots). See CLAUDE.md.
     cinema/karaoke are bespoke (brighter than the --purple/--pink tokens). */
  --exp-escape:#C6F135;  /* اتاق فرار   — lime       (light → ink text)  */
  --exp-cinema:#7C5CFF;  /* سینما ترس   — bright purple (→ white text)   */
  --exp-rage:#FF5436;    /* تخریب       — vermilion   (→ white text)     */
  --exp-karaoke:#FF4FA3; /* کارائوکه    — bright pink  (light → ink text)*/
  --exp-board:#27B0E6;   /* سالن بردگیم — blue        (light → ink text) */
  /* darker green used only where green text sits on paper (AA-compliant ~4.8:1) */
  --green-deep:#147A33;

  /* ---- theming tokens ----
     --ink stays FIXED (always-dark zones: tape/footer/price-tag + text on bright accents).
     --fg is the flipping "foreground" (body text, borders, offset shadows) — light on dark.
     --surface/-2 are neutral card backgrounds; --on-ink is light text on dark-ink zones. */
  --fg:var(--ink);
  --on-ink:#F7EFE0;
  --surface:#fff;
  --surface-2:#fff3df;

  /* tell browsers this site manages its own light/dark theming — stops Android
     "force dark"/auto-dark from inverting the page & logos (they follow data-theme). */
  color-scheme:light dark;

  /* chunky offset shadows (no blur) */
  --sh:5px 5px 0 var(--fg);
  --sh-sm:3px 3px 0 var(--fg);
  --sh-lg:8px 8px 0 var(--fg);

  /* fonts */
  --font-body:'Vazirmatn',sans-serif;
  --font-display:'Lalezar','Vazirmatn',cursive;

  /* geometry */
  --bd:3px solid var(--fg);
  --r:14px;            /* boxy-rounded */
  --r-sm:10px;
  --nav-h:48px;   /* slim mobile header (wordmark only); desktop overrides to 84px */

  /* spring easing for reveals/press */
  --spring:cubic-bezier(.34,1.56,.64,1);
}

/* ---------- 2. RESET / BASE ---------- */
*,*::before,*::after{box-sizing:border-box}
/* overflow-x guard: `.reveal`'s pre-reveal state tilts elements `rotate(-1.4deg)`
   (line ~162); on a full-bleed element (e.g. `.cta-band`) the rotated axis-aligned
   bounding box is a few px wider than the viewport, so before it scrolls into view
   the page could be dragged sideways (and the fixed tab bar showed a right gap).
   `overflow-x:clip` hard-clips that without creating a scroll container — so the
   sticky nav is unaffected (unlike `overflow-x:hidden`, which would). `hidden` is a
   fallback for browsers without `clip`. Root cause (the tilt) is intentional design;
   clipping the transient overflow is the correct fix — a rotation can't be resized. */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden;overflow-x:clip}
body{
  margin:0;
  font-family:var(--font-body);
  font-weight:500;
  color:var(--fg);
  background:var(--paper);
  /* subtle paper grain via layered radial dots — no external image */
  background-image:radial-gradient(var(--fg) .5px,transparent .5px);
  background-size:22px 22px;
  background-blend-mode:soft-light;
  line-height:1.7;
  overflow-x:hidden;overflow-x:clip;max-width:100%;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
/* inline SVG icon system — sized to text, inherits colour via currentColor */
.ic{width:1em;height:1em;display:inline-block;vertical-align:-.14em;flex:0 0 auto}
.ic-star{fill:var(--amber);stroke:var(--ink)}   /* amber/ink outline star, never multicolour */
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3{margin:0;line-height:1.15}
button{font-family:inherit;cursor:pointer}

/* display font only where specified */
.hero__title,.cyc,h2,.exp-card__title,.game-card__title,
.step__num,.branch-card__title,.sheet__title{
  font-family:var(--font-display);font-weight:400;letter-spacing:.2px;
}

.skip-link{position:fixed;right:-9999px;top:8px;z-index:2000;background:var(--lime);
  border:var(--bd);border-radius:var(--r-sm);padding:8px 14px;font-weight:800}
.skip-link:focus{right:8px}

/* visible keyboard focus everywhere */
:focus-visible{outline:3px solid var(--purple);outline-offset:2px}

/* section scaffolding */
.section{max-width:1120px;margin:0 auto;padding:54px 18px}
.section--alt{background:var(--surface-2);border-block:var(--bd)}
.section__head{margin-bottom:26px}
.section__head h2{font-size:clamp(28px,7vw,46px)}
.section__sub{margin:6px 0 0;font-weight:600;opacity:.8}
/* desktop: spread heading group (right) and see-all link (left) */
@media (min-width:820px){
  .section__head{display:flex;flex-wrap:wrap;column-gap:20px;align-items:flex-end}
  .section__head h2{width:100%}
  .section__sub{flex:1;margin-top:4px}
  .section__head .see-all{margin-top:0;white-space:nowrap;flex-shrink:0}
}

/* ---------- 3. PRIMITIVES ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-body);font-weight:800;font-size:15px;
  padding:11px 18px;border:var(--bd);border-radius:999px;
  background:var(--surface);color:var(--fg);box-shadow:var(--sh-sm);
  transition:transform .08s ease,box-shadow .08s ease;
  white-space:nowrap;
}
.btn:hover{transform:translate(-1px,-1px);box-shadow:var(--sh)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--fg)}
.btn--primary{background:var(--vermilion);color:#fff}
.btn--ink{background:var(--ink);color:var(--on-ink)}
.btn--ghost{background:transparent;box-shadow:none}
.btn--ghost:hover{background:var(--surface);box-shadow:var(--sh-sm);transform:none}
.btn--lg{font-size:17px;padding:15px 26px;box-shadow:var(--sh)}
.btn--lg:active{box-shadow:var(--sh-sm)}

.eyebrow{display:inline-block;background:var(--purple);color:#fff;font-weight:800;
  font-size:13px;padding:7px 14px;border:var(--bd);border-radius:999px;box-shadow:var(--sh-sm)}

.price-tag{display:inline-block;background:var(--ink);color:var(--lime);font-weight:800;
  font-size:13px;padding:6px 13px;border-radius:14px;margin-top:auto}

/* ---- Price component: struck original + emphasized discount + unit ----------
   Works inside any container (.price-tag / .gprice / .sheet__price / .price-chip).
   Sizes are em-based so the component scales with the container's font-size.
   «از» (.price__from) is used only for per-person pricing; group/hour units drop
   it. All values come from data/games-data.json — never hard-code a new price. */
.price{display:inline-flex;align-items:baseline;gap:.4em;flex-wrap:wrap;line-height:1.3}
/* diagonal strike (corner-to-corner) on the original price — not a flat line-through */
.price__was{font-size:.72em;font-weight:700;opacity:.6;text-decoration:none;
  background:linear-gradient(to top left,transparent calc(50% - 1px),currentColor calc(50% - 1px),
    currentColor calc(50% + 1px),transparent calc(50% + 1px)) no-repeat}
.price__from{font-size:.74em;font-weight:700;opacity:.75}      /* the «از» word */
.price__now{font-weight:900}                                   /* dominant */
.price__unit{font-size:.74em;font-weight:700;opacity:.85}
.price__off{font-family:var(--font-body);font-size:.6em;font-weight:900;line-height:1;
  padding:.35em .55em;border-radius:999px;background:var(--vermilion);color:#fff;
  align-self:center;white-space:nowrap}

/* bouncy reveal (§6.3) — hidden state is gated behind .js-ready so that if JS (or
   IntersectionObserver) never runs, every section stays visible instead of blank */
.reveal{transition:opacity .55s ease, transform .6s var(--spring)}
.js-ready .reveal{opacity:0;transform:translateY(26px) rotate(-1.4deg)}
.js-ready .reveal.in{opacity:1;transform:none}

/* ---------- 4. PROGRESS BAR (§6.1) ---------- */
.progress-wrap{position:fixed;inset:0 0 auto 0;height:7px;z-index:1200;
  background:transparent;border-bottom:var(--bd);pointer-events:none}
.progress{display:block;height:100%;width:100%;background:var(--lime);
  transform:scaleX(0);transform-origin:right center} /* RTL: grow from right */

/* ---------- 5. NAV ---------- */
.nav{position:sticky;top:0;z-index:1000;background:var(--paper);
  border-bottom:4px solid var(--fg);margin-top:7px}
/* mobile header = 3 columns: hamburger (right) · stacked logo (centre) · رزرو (left).
   The desktop ≥880 block restores the original single flex row. */
.nav__inner{max-width:1120px;margin:0 auto;height:var(--nav-h);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:0 16px}
.nav__toggle{justify-self:start}                 /* RTL start = right edge */
/* pin to explicit columns so the logo stays truly centred even though the hamburger
   (col 1) is display:none on mobile — otherwise the remaining items reflow and shift it */
.nav__left{display:flex;align-items:center;gap:22px;min-width:0;justify-self:center;grid-column:2}
.nav__actions{justify-self:end;grid-column:3}    /* RTL end = left edge */
.nav__actions .theme-toggle{display:none}        /* on mobile the toggle moves into the menu */
/* logo: stacked + centred on mobile (mark over wordmark) */
.nav__logo{display:flex;flex-direction:column;align-items:center;gap:2px;flex-shrink:0}
/* mobile top header shows ONLY the wordmark — the padlock mark now lives in the
   bottom tab bar's center logo; the mark is restored on desktop (≥880) */
.nav__mark{display:none;height:40px;width:auto;flex-shrink:0}
.nav__wordmark{height:22px;width:auto;display:block;flex-shrink:0}
.nav__links{display:none;gap:28px;font-weight:800;font-size:16px}
.nav__item{position:relative}
/* top-level links only (NOT dropdown items): hover colour + ink underline wipe */
.nav__links>a,.nav__top{position:relative;display:inline-block;padding:4px 0;
  font-weight:800;cursor:pointer;transition:color .15s}
.nav__links>a::after,.nav__top::after{content:"";position:absolute;right:0;left:0;bottom:-3px;
  height:3px;background:var(--fg);transform:scaleX(0);transform-origin:right;
  transition:transform .2s var(--spring)}
.nav__links>a:hover,.nav__top:hover{color:var(--vermilion)}
.nav__links>a:hover::after,.nav__links>a:focus-visible::after,
.nav__item:hover .nav__top::after,.nav__top:focus-visible::after{transform:scaleX(1)}

/* dropdown mega-menu panel (neo-brutalist) */
.nav__menu{position:absolute;top:100%;right:0;z-index:200;min-width:226px;
  display:flex;flex-direction:column;gap:2px;margin-top:0;padding:10px;
  background:var(--paper);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh-lg);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .15s ease,transform .15s var(--spring)}
/* invisible bridge spanning the FULL panel width so the pointer can cross the gap
   (incl. diagonally toward the panel) without the menu closing. It's a descendant of
   the trigger, so hovering it keeps .nav__item:hover; it sits in the gap above the panel
   and never overlaps the menu items. */
.nav__menu::before{content:"";position:absolute;top:-12px;left:0;right:0;height:12px}
.nav__item:hover .nav__menu,.nav__item:focus-within .nav__menu{opacity:1;visibility:visible;transform:none}
.nav__menu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r-sm);
  font-weight:700;font-size:15px;white-space:nowrap;transition:background .12s,transform .12s}
.nav__menu a:hover{background:var(--surface-2);transform:translateX(-3px)}
.dot{width:15px;height:15px;border:3px solid var(--ink);border-radius:5px;flex:0 0 auto}
.dot--vermilion{background:var(--vermilion)}.dot--purple{background:var(--purple)}
.dot--blue{background:var(--blue)}.dot--pink{background:var(--pink)}
.dot--amber{background:var(--amber)}.dot--lime{background:var(--lime)}
.dot--green{background:var(--green)}
/* per-experience menu dots (match the --exp-* tokens) */
.dot--escape{background:var(--exp-escape)}.dot--cinema{background:var(--exp-cinema)}
.dot--rage{background:var(--exp-rage)}.dot--karaoke{background:var(--exp-karaoke)}
.dot--board{background:var(--exp-board)}

.nav__actions{display:flex;align-items:center;gap:10px}
/* the ONE loud CTA — chunkier shadow than a default .btn so it reads as the anchor.
   Hidden on mobile: booking already lives in the menu and the sticky bottom bar, so
   the top bar stays a clean logo + hamburger (restored inline on desktop, ≥880). */
.nav__book{display:none;padding:11px 22px;font-size:16px;box-shadow:var(--sh)}
.nav__book:hover{box-shadow:var(--sh-lg)}
.nav__book:active{box-shadow:var(--sh-sm)}
/* header phone — SECONDARY, quiet ghost pill (desktop only; on mobile the nav keeps
   ONE loud رزرو button and the phone lives in the hamburger menu — see .m-call).
   Thin border, no shadow, dimmed — clearly subordinate to the رزرو button. */
.nav__call{display:none;align-items:center;gap:6px;font-weight:700;font-size:13.5px;
  font-variant-numeric:tabular-nums;padding:7px 13px;border:2px solid var(--fg);border-radius:999px;
  background:transparent;color:var(--fg);opacity:.6;white-space:nowrap;
  transition:opacity .15s,background .15s,box-shadow .12s,transform .08s}
.nav__call .ic{width:.95em;height:.95em}
.nav__call:hover{opacity:1;background:var(--surface);box-shadow:var(--sh-sm)}
.nav__call:active{transform:translate(2px,2px);box-shadow:none}

/* restrained neo-brutalist toggle — subtle surface fill (theme-aware) instead of
   the old loud lime; bars use --fg so they stay visible in dark mode. Doubles as
   the ✕ close when open (spans rotate). */
/* hamburger retired — mobile nav now lives in the bottom tab bar (kept in markup,
   never shown; the top mobile header is just the centered logo) */
.nav__toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:46px;height:42px;background:var(--surface);border:var(--bd);border-radius:var(--r-sm);
  box-shadow:var(--sh-sm);transition:transform .08s ease,box-shadow .08s ease}
.nav__toggle:active{transform:translate(2px,2px);box-shadow:none}
.nav__toggle span{display:block;height:3px;width:22px;margin:0 auto;background:var(--fg);
  border-radius:2px;transition:transform .2s,opacity .2s}
.nav__toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav__toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

.mobile-menu{display:flex;flex-direction:column;gap:4px;padding:12px 16px 18px;
  background:var(--paper);border-bottom:var(--bd);font-weight:700;animation:drop .25s var(--spring)}
.mobile-menu[hidden]{display:none} /* honor the hidden attribute (class would otherwise win) */
.mobile-menu a{padding:10px 6px;border-radius:var(--r-sm)}
.mobile-menu a:hover{background:var(--surface-2)}
.mobile-menu .btn{margin-top:8px}
/* secondary «تماس» button in the menu — ghost/outlined, clearly subordinate to the
   loud رزرو button it sits above; gives mobile a one-tap call without nav clutter */
.mobile-menu .m-call{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;
  padding:11px;font-weight:800;font-variant-numeric:tabular-nums;
  border:var(--bd);border-radius:var(--r-sm);background:transparent;box-shadow:var(--sh-sm);
  transition:transform .08s ease,box-shadow .08s ease,background .12s}
.mobile-menu .m-call .ic{width:1.15em;height:1.15em}
.mobile-menu .m-call:hover{background:var(--surface)}
.mobile-menu .m-call:active{transform:translate(2px,2px);box-shadow:none}
/* mobile accordion sections (تجربه‌ها / بازی‌ها) */
.m-acc__btn{display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:10px 6px;background:none;border:0;font-family:inherit;font-weight:800;
  font-size:1rem;color:var(--fg);border-radius:var(--r-sm);text-align:start}
.m-acc__btn:hover{background:var(--surface-2)}
.m-acc__chev{transition:transform .2s var(--spring)}
.m-acc__btn[aria-expanded="true"] .m-acc__chev{transform:rotate(180deg)}
.m-acc__panel{display:flex;flex-direction:column;padding:2px 4px 6px 0;margin-inline-start:10px;
  border-inline-start:3px solid var(--fg)}
.m-acc__panel[hidden]{display:none}
.m-acc__panel a{font-weight:700;font-size:.95rem;padding:8px 10px}
@keyframes drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* ---------- 5b. MOBILE BOTTOM TAB BAR (≤879px; replaces hamburger + book bar) ----------
   Fixed, always visible; dark (--ink) with a fixed-light top border. Elevated center
   logo. رزرو is the one filled tab. On the always-dark bar/sheet, light bits use
   --on-ink (fixed) — NOT --paper (which goes dark in dark theme). */
/* z-index ABOVE the scrim + sheet so the bar (and its منو/✕ tab) stays visible and
   tappable while the menu is open (still below the booking modal at 1500) */
.tabbar{position:fixed;inset-inline:0;bottom:0;z-index:1260;
  display:flex;align-items:flex-end;gap:6px;
  padding:8px 8px calc(10px + env(safe-area-inset-bottom));
  background:var(--ink);border-top:3px solid var(--on-ink)}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  padding:7px 2px;border-radius:13px;background:none;border:0;font-family:inherit;
  color:#cfc5b4;font-weight:800;font-size:11.5px;line-height:1;text-align:center;cursor:pointer}
.tab__ic{width:23px;height:23px;flex:0 0 auto}
.tab:active{transform:translateY(1px)}
.tab--book{background:var(--vermilion);color:#fff;border:3px solid var(--on-ink);
  box-shadow:0 3px 0 #000;font-weight:900}
/* elevated circular center logo. The 6px ring uses --ink (same as the always-dark
   tab bar) so it blends into the bar in BOTH themes → a single clean border ring.
   (Was --paper, which went light on the dark bar in light theme = a double ring.) */
.tab--logo{flex:0 0 auto;width:60px;height:60px;padding:0;border-radius:50%;
  background:var(--ink);border:3px solid var(--on-ink);
  box-shadow:0 4px 0 #000,0 0 0 6px var(--ink);transform:translateY(-18px)}
.tab--logo img{height:34px;width:auto}
/* منو tab: 3 bars that ANIMATE into an ✕ when the sheet is open */
.tab__burger{position:relative;width:22px;height:23px}
.tab__burger span{position:absolute;inset-inline:0;height:2.5px;border-radius:2px;
  background:currentColor;transition:transform .25s ease,opacity .2s ease}
.tab__burger span:nth-child(1){top:6px}
.tab__burger span:nth-child(2){top:11px}
.tab__burger span:nth-child(3){top:16px}
.tab--menu[aria-expanded="true"] .tab__burger span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.tab--menu[aria-expanded="true"] .tab__burger span:nth-child(2){opacity:0}
.tab--menu[aria-expanded="true"] .tab__burger span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
.tab--menu[aria-expanded="true"]{color:var(--lime)}

/* slide-up full-nav sheet + scrim */
.tabscrim{position:fixed;inset:0;z-index:1240;background:rgba(0,0,0,.5);
  opacity:0;transition:opacity .3s ease}
.tabscrim.show{opacity:1}
.tabscrim[hidden]{display:none}
/* opens ABOVE the tab bar (bottom offset clears the bar + its raised center logo),
   so the bar stays visible/tappable underneath; all four corners rounded, floating */
.tabsheet{position:fixed;inset-inline:0;bottom:calc(90px + env(safe-area-inset-bottom));z-index:1250;
  margin:0 10px;
  background:var(--ink);border:3px solid var(--on-ink);border-radius:20px;
  box-shadow:0 -14px 40px rgba(0,0,0,.5);
  padding:12px 18px 22px;
  max-height:72vh;overflow-y:auto;
  transform:translateY(calc(100% + 100px));transition:transform .32s cubic-bezier(.2,.8,.2,1)}
.tabsheet.open{transform:translateY(0)}
.tabsheet[hidden]{display:none}
.tabsheet__grab{width:44px;height:5px;border-radius:5px;background:#5a4f40;margin:2px auto 10px}
/* stronger header — bigger title + a ✕ close chip (in addition to the tab-bar toggle) */
.tabsheet__head{display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:0 2px 8px}
.tabsheet__title{font-family:var(--font-display);font-weight:400;font-size:30px;
  color:var(--on-ink);margin:0;line-height:1}
.tabsheet__close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:40px;height:40px;background:#fff;color:var(--ink);
  border:3px solid var(--on-ink);border-radius:12px;box-shadow:2px 2px 0 rgba(0,0,0,.55);cursor:pointer}
.tabsheet__close svg{width:22px;height:22px}
/* rows: chip + white label, tight rhythm, NO dividers/arrows — chips do the separating */
.tabsheet__link{display:flex;align-items:center;gap:13px;width:100%;
  padding:7px 6px;font-family:inherit;font-weight:800;font-size:16.5px;text-align:start;
  color:var(--on-ink);background:none;border:0;border-radius:13px;transition:background .15s ease}
.tabsheet__link:active{background:color-mix(in srgb,var(--row-accent,var(--lime)) 20%,transparent)}
/* per-item accent icon-chip — playful colour on the CHIP, text stays paper/white.
   Light frame (--on-ink) so the neo-brutalist edge reads on the dark sheet. */
.tabsheet__ic{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:38px;height:38px;background:var(--row-accent);color:var(--chip-fg,var(--ink));
  border:3px solid var(--on-ink);border-radius:11px;box-shadow:2px 2px 0 rgba(0,0,0,.55)}
.tabsheet__ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
/* trailing phone number on the «تماس تلفنی» row — pushed to the far (left) end */
.tabsheet__num{margin-inline-start:auto;font-size:14px;font-weight:800;opacity:.75;
  font-variant-numeric:tabular-nums}
/* the phone/toggle rows now share the exact row+chip styling above; just a hairline
   separator before the utility rows so they read as a small group */
.tabsheet__sep{height:2px;background:#3a2f24;border-radius:2px;margin:8px 4px}
/* the toggle also carries .theme-toggle[--menu] (defined later in the file); re-assert
   the row look with higher specificity so those rules don't reshape it or flip the
   text/icon to --fg (which is dark in light theme, invisible on the dark sheet) */
.tabsheet__link.tabsheet__toggle{width:100%;height:auto;padding:7px 6px;border:0;
  border-radius:13px;background:none;box-shadow:none;justify-content:flex-start;margin:0;
  color:var(--on-ink);font-family:inherit;font-weight:800;font-size:16.5px}
.tabsheet__link.tabsheet__toggle:hover{background:none;box-shadow:none}
.tabsheet__link.tabsheet__toggle:active{background:color-mix(in srgb,var(--row-accent) 20%,transparent)}
.tabsheet__link.tabsheet__toggle .tabsheet__ic svg{width:20px;height:20px;stroke:currentColor}
/* content clearance so the fixed bar never covers the footer's last rows */
body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
@media (prefers-reduced-motion:reduce){
  .tabsheet,.tabscrim,.tab__burger span,.tabsheet__link{transition:none}
}
@media (min-width:880px){
  /* desktop keeps the header nav — no tab bar, no bottom padding */
  .tabbar,.tabsheet,.tabscrim{display:none !important}
  body{padding-bottom:0}
  .to-top{bottom:24px}
}

/* ---------- 6. CAUTION TAPE (§4) ---------- */
/* hidden on mobile (cleaner top); restored on desktop in the ≥880 block */
.tape{display:none;background:var(--ink);border-bottom:var(--bd);overflow:hidden;padding:9px 0}
.tape-track{display:flex;white-space:nowrap;will-change:transform}
.tape-track span{font-weight:900;font-size:16px;color:var(--lime);letter-spacing:1px;
  text-transform:uppercase}

/* ---------- 7. HERO — C×D cycling hybrid (§5.3) ----------
   A fixed «رزرو تجربه» CTA stays put while the poster, kinetic word, accent
   colour and dots cycle through the five experiences in sync (JS sets --ac per
   slide; slides live in HERO_SLIDES in main.js). Always-dark component — cream
   accents on near-black, independent of the site theme. Mobile-first: a centred
   stack (poster on top, text below); ≥880px becomes a chunky split frame (text
   right, poster left in RTL). Mirrors escapeme-hero-hybrid*.html. */
.hero{--ac:var(--lime);
  --hero-panel:#241C15;--hero-art:#100c08;--hero-paper:#F7EFE0;--hero-sub:#E0D7C7;--hero-dot:#6A5F4E;
  position:relative;max-width:1280px;margin:0 auto;padding:18px 16px 30px}
/* mobile: a FULL-WIDTH accent glow behind the whole hero (edge to edge), so the
   experience colour fills the screen — not just a pool around the poster. JS sets
   --ac on the .hero section so this ::before recolours per slide. Disabled on desktop
   (the split panes carry their own glows). */
.hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(135% 58% at 50% 27%,color-mix(in srgb,var(--ac) 20%,transparent),transparent 74%);
  transition:background .5s}

/* base = mobile, stacked + centred */
.hero__split{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center}

/* ---- poster pane ---- */
.hero__art{order:2;position:relative;width:100%;display:flex;justify-content:center;padding:14px 0 6px}
/* recolouring radial glow behind the poster — DESKTOP ONLY. On mobile the
   full-width .hero::before glow already fills the screen, so this would be a
   second, doubled pool around the poster; it's switched on in the ≥880 block. */
.hero__art::before{content:none;position:absolute;inset:-10% 2%;pointer-events:none;z-index:0;
  background:radial-gradient(100% 82% at 50% 44%,color-mix(in srgb,var(--ac) 28%,transparent),transparent 68%);
  transition:background .5s}
.hero__stack{position:relative;width:232px;max-width:78%;aspect-ratio:422/591;z-index:2}
/* the five posters stack and crossfade; .is-on is the visible one */
.hero__poster{display:block;position:absolute;inset:0;z-index:1;border:4px solid var(--hero-paper);
  border-radius:14px;overflow:hidden;box-shadow:7px 7px 0 #000;opacity:0;transform:rotate(-2deg) scale(.96);
  transition:opacity .5s,transform .5s}
/* the visible poster "punches in" behind its hard offset shadow — slides + snaps
   with a slight overshoot. Only the poster that GAINS .is-on animates (JS toggles
   it per slide), so it replays on every cycle but stays put when unchanged. */
.hero__poster.is-on{opacity:1;z-index:2;transform:rotate(-2deg) scale(1);
  animation:posterPunch .55s cubic-bezier(.18,.92,.32,1.22) both}
@keyframes posterPunch{
  0%{opacity:0;transform:translateX(15%) rotate(3deg) scale(.9)}
  55%{opacity:1}
  100%{opacity:1;transform:rotate(-2deg) scale(1)}
}
.hero__pimg{width:100%;height:100%;object-fit:cover;display:block}
.hero__cap{position:absolute;left:0;right:0;bottom:0;z-index:3;background:var(--ink);color:var(--hero-paper);
  font-family:var(--font-display);font-size:19px;text-align:center;padding:6px;border-top:3px solid var(--hero-paper)}
/* «۷ اتاق فرار!» pin — JS shows it on the اتاق فرار slide only */
.hero__pin{position:absolute;top:-14px;left:-10px;z-index:5;width:62px;height:62px;border-radius:50%;
  background:var(--lime);color:var(--ink);border:3px solid var(--ink);box-shadow:3px 3px 0 #000;
  display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.05;
  font-family:var(--font-body);font-weight:900;font-size:12px;transform:rotate(-12deg)}
/* the «۷ اتاق فرار!» pin springs in with a little wobble when its slide arrives
   (JS adds .is-pop). Settles on the resting rotate(-12deg). */
.hero__pin.is-pop{animation:pinPop .55s cubic-bezier(.2,.7,.3,1.2) both}
@keyframes pinPop{
  0%{opacity:0;transform:rotate(34deg) scale(0)}
  55%{opacity:1;transform:rotate(-20deg) scale(1.18)}
  72%{transform:rotate(-6deg) scale(.96)}
  86%{transform:rotate(-15deg) scale(1.03)}
  100%{opacity:1;transform:rotate(-12deg) scale(1)}
}

/* ---- text (below, mobile) ---- */
/* mobile: dissolve the text wrapper so its children join the hero's flex flow and
   can be ordered around the poster (desktop restores it as the right pane below).
   Mobile vertical order → eyebrow · poster · dots · headline · name · subline · CTA. */
.hero__txt{display:contents}
.hero__eyebrow{order:1}
.hero__dots{order:3}
.hero__title{order:4}
.hero__expname{order:5}
.hero__sub{order:6}
.hero__row{order:7}
.hero__eyebrow{display:inline-flex;align-items:center;gap:6px;background:var(--ink);color:var(--hero-paper);
  font-weight:900;font-size:12px;border:3px solid var(--ac);box-shadow:3px 3px 0 #000;padding:6px 13px;
  border-radius:30px;transition:border-color .4s;margin:16px 0 14px}
.hero__title{font-family:var(--font-display);font-weight:400;font-size:44px;line-height:1.05;color:var(--hero-paper)}
/* the cycling headline word flips up into place when it changes (JS adds .is-flip
   per cycle). inline-block + bottom origin so it hinges from its baseline. */
.hero__word{display:inline-block;transform-origin:bottom center;color:var(--ac);transition:color .4s}
.hero__word.is-flip{animation:wordFlip .5s cubic-bezier(.2,.8,.25,1.05)}
@keyframes wordFlip{
  0%{opacity:0;transform:perspective(520px) rotateX(-92deg) translateY(.18em)}
  55%{opacity:1}
  100%{opacity:1;transform:perspective(520px) rotateX(0) translateY(0)}
}
.hero__expname{font-family:var(--font-display);font-size:20px;color:var(--ac);transition:color .4s;margin-top:10px}
.hero__sub{color:var(--hero-sub);font-weight:700;font-size:15px;line-height:1.75;
  margin:8px auto 20px;max-width:32ch;min-height:78px;transition:opacity .3s}
.hero__row{display:flex;flex-direction:column;align-items:center;width:100%}
/* fixed booking CTA — boxy chunky vermilion (matches the mockup) */
.hero__cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  font-family:var(--font-body);font-weight:900;font-size:17px;color:#fff;background:var(--vermilion);
  border:3px solid var(--ink);border-radius:13px;padding:15px;box-shadow:4px 4px 0 #000;
  transition:transform .08s ease,box-shadow .08s ease}
.hero__cta:hover{transform:translate(-1px,-1px);box-shadow:6px 6px 0 #000}
.hero__cta:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}
.hero__ghost{display:inline-block;font-weight:900;font-size:14px;color:#E7DDCC;
  border-bottom:3px solid currentColor;padding-bottom:2px;margin-top:16px;transition:color .3s}
.hero__ghost:hover{color:var(--ac)}
.hero__dots{display:flex;gap:10px;margin:20px 0 18px;justify-content:center}
.hero__dots button{width:14px;height:14px;padding:0;border-radius:50%;border:2px solid var(--hero-dot);
  background:transparent;cursor:pointer;transition:transform .3s,background .3s,border-color .3s}
/* active dot fills clockwise with the accent over one auto-rotate interval
   (--dot-int must match INTERVAL in main.js, 4000ms) — a self-restarting
   progress ring, so the rotation reads as intentional. Falls back to a solid
   faint-accent dot where @property is unsupported. */
@property --dotp{syntax:"<percentage>";inherits:false;initial-value:0%}
.hero__dots{--dot-int:4s}
.hero__dots button.on{border-color:var(--ink);transform:scale(1.15);
  background-color:color-mix(in srgb,var(--ac) 26%,transparent);
  background-image:conic-gradient(var(--ac) var(--dotp),transparent 0);
  animation:dotFill var(--dot-int) linear}
@keyframes dotFill{from{--dotp:0%}to{--dotp:100%}}
/* pause the fill while the user hovers the hero (the JS auto-rotate pauses too) */
.hero:hover .hero__dots button.on{animation-play-state:paused}

/* one-shot staggered entrance on first paint — each text element rises + fades in
   in reading order (the poster handles its own entrance via posterPunch). Uses
   `backwards` fill so the keyframe only governs the delay/run, then hands opacity
   back to the cascade — keeping the JS subline crossfade working afterwards. */
@keyframes heroRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero__eyebrow,.hero__dots,.hero__title,.hero__expname,.hero__sub,.hero__row{
  animation:heroRise .6s cubic-bezier(.2,.85,.25,1) backwards}
.hero__eyebrow{animation-delay:.05s}
.hero__dots{animation-delay:.14s}
.hero__title{animation-delay:.2s}
.hero__expname{animation-delay:.28s}
.hero__sub{animation-delay:.34s}
.hero__row{animation-delay:.42s}

/* hero scroll cue — a blinking, bobbing down-chevron that signals "more below" and
   scrolls to the next section on tap (js/main.js). Hidden by default; the mobile
   hero block (§ above) turns it on. Static under reduced motion. */
.hero__scroll{order:8;display:none;align-items:center;justify-content:center;
  width:46px;height:46px;margin:2px auto 0;padding:0;color:var(--hero-paper);
  background:transparent;border:0;cursor:pointer;border-radius:50%;
  -webkit-tap-highlight-color:transparent}
.hero__scroll .ic{width:28px;height:28px}
.hero__scroll:active{transform:translateY(3px)}
@keyframes heroCue{0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(6px);opacity:1}}
@media (prefers-reduced-motion:reduce){.hero__scroll{animation:none;opacity:.85}}

/* ---- Mobile hero: fit the WHOLE hero (poster → title → sub → CTA → dots) in one
   screen, above the fixed bottom tab bar. Since the tab bar was added the hero
   overflowed and the CTA/dots slid under it on shorter phones. The hero now fills
   the viewport minus the sticky nav, reserves the tab-bar height as bottom padding,
   and the poster scales with viewport HEIGHT (svh) so it never pushes the CTA out.
   Content is centred in the leftover space. ≥820 = desktop split, untouched. */
/* Runs up to 879.98px: the TABLET band (820–879) keeps the mobile bottom-tab-bar
   header (desktop nav is ≥880), so the hero uses the same dark mobile treatment
   there too — otherwise its light text lands on the light page in light theme. */
@media (max-width:879.98px){
  /* Fill exactly ONE screen on every phone: min-height uses svh, so it accounts
     for the browser chrome that makes some devices effectively shorter (that's
     why some fit and some didn't). No centering void — the poster pane (flex:1)
     absorbs the leftover vertical space, so the text + CTA + scroll cue sit just
     above the tab bar with no big empty gap at the end.
     Always-dark backdrop — the hero's text/pills are light (built for a dark
     panel), so it stays dark even in light theme, matching the dark theme.       */
  .hero{padding:0;background:#1C1510}
  .hero__split{min-height:calc(100svh - var(--nav-h));box-sizing:border-box;
    justify-content:flex-start;
    padding:8px 14px calc(98px + env(safe-area-inset-bottom))}
  .hero__art{flex:1 1 auto;min-height:0;padding:2px 0;
    display:flex;flex-direction:column;align-items:center;justify-content:center}
  /* stack grows via flex (not %height, which collapses under absolute children)
     to absorb the leftover space → the poster scales with the phone. The
     surrounding text margins are trimmed (below) so the poster gets the lion's
     share; cap keeps it sane on very tall devices, max-width feeds narrow-tall
     phones where the poster would otherwise be width-pinched. */
  .hero__stack{flex:1 1 auto;min-height:84px;max-height:min(56svh,460px);
    width:auto;max-width:90%;aspect-ratio:422/591}
  /* tighten the vertical rhythm so the freed space flows into the poster, not
     into gaps — everything still clears comfortably (verified 360→430). */
  .hero__eyebrow{margin:12px 0 9px}
  .hero__expname{margin-top:5px}
  .hero__sub{min-height:0;margin:7px auto 9px}
  .hero__dots{margin:9px 0 6px}
  .hero__ghost{margin-top:12px}
  .hero__scroll{display:inline-flex;animation:heroCue 1.5s ease-in-out infinite}
}
/* ≤400px — narrower phones (SE / mini / 360px Androids): trim type + spacing a
   touch more; the poster already scales by height above. */
@media (max-width:400px){
  .hero{padding-left:14px;padding-right:14px}
  .hero__eyebrow{margin:8px 0 8px;font-size:11px;padding:5px 11px}
  .hero__title{font-size:clamp(34px,9.6vw,40px)}
  .hero__expname{font-size:18px}
  .hero__sub{font-size:14px;line-height:1.65}
}

/* ≥880px — the chunky split frame: text pane on the right, poster pane on the
   left (RTL), one shared height. Mirrors escapeme-hero-hybrid.html. */
@media (min-width:880px){
  .hero{padding:34px 32px 60px}
  .hero::before{content:none}        /* desktop uses the per-pane glows instead */
  /* FIXED height (not min-height): the text pane is vertically centred, so slides
     whose headline word wraps to a 2nd line (e.g. «آواز بخونی») would otherwise
     stretch the whole frame. A fixed height keeps the frame stable — content
     re-centres instead of resizing it (every slide fits within 560px). */
  .hero__split{display:grid;grid-template-columns:1fr 1.02fr;align-items:stretch;text-align:right;
    border:4px solid var(--ink);border-radius:22px;overflow:hidden;box-shadow:12px 12px 0 #000;height:560px}

  /* text pane (right) — dark panel with a recolouring corner glow */
  .hero__txt{display:flex;flex-direction:column;background:var(--hero-panel);padding:54px 50px;
    justify-content:center;align-items:flex-start;position:relative;overflow:hidden;border-left:4px solid var(--ink)}
  /* corner glow (top) + a fainter echo glow in the opposite (bottom) corner —
     both recolour with --ac for atmosphere and fade fully to transparent before
     the headline so the text stays legible on every accent (lime/amber-safe) */
  .hero__txt::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
    background:
      radial-gradient(135% 105% at 88% 16%,color-mix(in srgb,var(--ac) 26%,transparent),transparent 62%),
      radial-gradient(85% 70% at 10% 90%,color-mix(in srgb,var(--ac) 12%,transparent),transparent 60%);
    transition:background .5s}
  /* accent seam — a thin recolouring line on the inner edge of the ink divider;
     ties the two panes together without replacing the 4px ink frame */
  .hero__txt::after{content:"";position:absolute;top:0;bottom:0;left:0;width:4px;z-index:3;
    background:var(--ac);pointer-events:none;transition:background .5s}
  .hero__txt>*{position:relative;z-index:2}
  /* desktop sequence: eyebrow · word · subline · expname · CTA row · dots */
  .hero__eyebrow{order:1;align-self:flex-start;font-size:13px;padding:7px 15px;margin:0 0 20px}
  .hero__title{order:2;font-size:74px;line-height:1}
  /* word on its own line → the headline is ALWAYS two lines, so the centred text
     pane is the same height on every slide and nothing below it (subline, CTA,
     dots) shifts when a longer word like «آواز بخونی» arrives. */
  .hero__word{display:block}
  .hero__sub{order:3;font-size:18px;line-height:1.8;margin:18px 0 12px;max-width:36ch;min-height:62px;text-align:right}
  .hero__expname{order:4;font-size:22px;margin:0 0 22px}
  .hero__row{order:5;flex-direction:row;align-items:center;gap:18px;width:auto}
  .hero__cta{width:auto;font-size:18px;padding:15px 30px;border-radius:14px;box-shadow:5px 5px 0 #000}
  .hero__cta:active{box-shadow:2px 2px 0 #000}
  .hero__ghost{margin-top:0;font-size:15px}
  .hero__dots{order:6;justify-content:flex-start;gap:11px;margin-top:26px}
  .hero__dots button{width:16px;height:16px}

  /* poster pane (left) — reset the mobile order so the grid places it second (left in RTL) */
  .hero__art{order:0;background:var(--hero-art);padding:34px;align-items:center;transition:background .5s}
  .hero__art::before{content:"";inset:0;
    background:radial-gradient(90% 80% at 50% 45%,color-mix(in srgb,var(--ac) 22%,transparent),transparent 65%)}
  .hero__stack{width:min(330px,80%);max-width:none}
  .hero__poster{box-shadow:10px 10px 0 #000;transform:rotate(-2deg) scale(.97)}
  .hero__poster.is-on{transform:rotate(-2deg) scale(1)}
  .hero__cap{font-size:22px;padding:8px 6px}
  .hero__pin{top:-16px;left:-14px;width:70px;height:70px;font-size:13px;box-shadow:4px 4px 0 #000}
}

/* ---------- 8. EXPERIENCES (§5.4) ---------- */
/* mobile: horizontal snap carousel */
/* proximity (not mandatory): snaps to a card on horizontal swipe without
   hijacking vertical page scroll — mandatory re-asserts the x-lock every frame
   while you scroll down, which nudges the page and feels janky on mobile. */
.exp-grid{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;
  padding:6px 2px 16px;margin:0 -2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.exp-grid::-webkit-scrollbar{display:none}
/* scroll-snap-stop:always → a swipe advances one card at a time, no fling-past */
.exp-card{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 76%;max-width:300px;min-height:188px;
  display:flex;flex-direction:column;gap:8px;padding:18px;
  border:var(--bd);border-radius:var(--r);box-shadow:var(--sh);background:var(--surface);
  cursor:pointer;transition:transform .1s ease,box-shadow .1s ease}
.exp-card:hover{transform:translate(-2px,-2px);box-shadow:var(--sh-lg)}
.exp-card:active{transform:translate(2px,2px);box-shadow:var(--sh-sm)}
.exp-card__icon{font-size:34px;line-height:0}
.exp-card__icon svg,.placeholder-emoji svg{width:1em;height:1em;display:block}
.exp-card__title{font-size:26px}
/* 2-line scenario teaser — same clamp as the game cards, so cards stay even */
.exp-card__desc{font-weight:600;font-size:14px;opacity:.85;flex:1;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* room list inside the اتاق‌فرار feature card — desktop bento only (shown at ≥820, see §18) */
.exp-card__rooms{display:none;margin:0;padding:0;list-style:none}
/* accent fills — one per experience (see --exp-* tokens / CLAUDE.md). Light
   accents (escape/karaoke/board) take ink text via the bright-accent rule (§19);
   the dark ones (cinema/rage) set #fff here. */
.exp-card--escape{background:var(--exp-escape)}
.exp-card--cinema{background:var(--exp-cinema);color:#fff}
.exp-card--rage{background:var(--exp-rage);color:#fff}
.exp-card--karaoke{background:var(--exp-karaoke)}
.exp-card--board{background:var(--exp-board)}
/* flagship is always اتاق فرار (lime, light) → ink text; price-tag keeps the
   standard ink/lime fill so it matches the other experience cards */
.exp-card--lg{color:var(--ink)}

/* ---------- 8b. /تجربه-ها/ HUB — poster-forward experience bento ----------
   Scoped to .exp-grid--hub so the home page's emoji exp-cards are untouched.
   Each card = portrait poster (object-fit cover) + accent body; the اتاق فرار
   feature (.exp-card--lg) is a TALL card so its portrait poster fills it, with a
   real CTA pill. Desktop overrides use .exp-grid--hub selectors so they beat the
   shared .exp-card--lg rules (incl. the decorative ghost-lock) by specificity. */
/* mobile: clean single-column stack (double-class selector beats the shared
   .exp-grid carousel; no snap/overflow, no orphans) */
.exp-grid.exp-grid--hub{display:grid;grid-template-columns:1fr;gap:14px;
  overflow:visible;padding:4px;margin:0}
.exp-grid--hub .exp-card{padding:0;gap:0;min-height:0;max-width:none;overflow:hidden}
.exp-grid--hub .exp-card__media{position:relative;display:block;aspect-ratio:4/3;
  background:var(--ink);border-block-end:var(--bd);overflow:hidden}
.exp-grid--hub .exp-card__media img{width:100%;height:100%;object-fit:cover;display:block}
/* icon → small neo-brutalist chip, same corner on every card */
.exp-grid--hub .exp-card__icon{position:absolute;inset-block-start:8px;inset-inline-start:8px;
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  font-size:20px;line-height:1;background:var(--surface);color:var(--fg);
  border:var(--bd);border-radius:12px;box-shadow:var(--sh-sm)}
.exp-grid--hub .exp-card__body{display:flex;flex-direction:column;gap:7px;
  padding:14px 15px 16px;flex:1}
.exp-grid--hub .exp-card__title{font-size:24px;line-height:1.1}
.exp-grid--hub .exp-card__desc{flex:1;margin:0}
.exp-grid--hub .price-tag{align-self:flex-start;margin-top:0}
/* feature CTA — vermilion pill inside the (fully clickable) card */
.exp-grid--hub .exp-card__cta{display:inline-flex;align-items:center;gap:8px;
  align-self:flex-start;margin-top:2px;font-weight:800;font-size:14px;
  background:var(--vermilion);color:#fff;border:var(--bd);border-radius:999px;
  padding:9px 16px;box-shadow:var(--sh-sm)}
.exp-grid--hub .exp-card__cta .ic{width:18px;height:18px}

@media (min-width:820px){
  /* balanced bento: 3 cols, feature pinned to the first column spanning BOTH rows,
     the four experience cards auto-fill the 2×2 beside it. Explicit placement +
     double-class specificity so nothing reflows (beats the shared 4-col ≥1024). */
  .exp-grid.exp-grid--hub{grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;gap:18px}
  .exp-grid--hub .exp-card--lg{grid-column:1;grid-row:1 / span 2;justify-content:flex-start}
  .exp-grid--hub .exp-card--lg::before{content:none}       /* kill ghost lock */
  .exp-grid--hub .exp-card--lg .exp-card__media{aspect-ratio:auto;flex:1;min-height:180px}
  .exp-grid--hub .exp-card--lg .exp-card__icon{font-size:22px}
  .exp-grid--hub .exp-card--lg .exp-card__title{font-size:30px}
  .exp-grid--hub .exp-card--lg .exp-card__desc{-webkit-line-clamp:3;overflow:hidden}
}

.branch-note{background:var(--lime);border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh-sm);padding:14px 16px;font-weight:600;margin:0 0 18px}

/* ---------- 9. GAMES (§5.5) ---------- */
.game-grid{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;
  padding:6px 2px 16px;margin:0 -2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.game-grid::-webkit-scrollbar{display:none}
.game-card{position:relative;scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 72%;max-width:280px;
  display:flex;flex-direction:column;border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh);background:var(--surface);overflow:hidden;cursor:pointer;
  transition:transform .1s ease,box-shadow .1s ease}
.game-card:hover{transform:translate(-2px,-2px);box-shadow:var(--sh-lg)}
.game-card:active{transform:translate(2px,2px);box-shadow:var(--sh-sm)}
/* keyboard focus on the inner link lifts the whole card + draws a ring */
.game-card:focus-within{transform:translate(-2px,-2px);box-shadow:var(--sh-lg)}
.game-card:focus-within .game-card__link{outline:3px solid var(--ink);outline-offset:3px;border-radius:4px}
/* stretched primary link — whole card is a tap target, no nested <a> */
.game-card__link{color:inherit;text-decoration:none;outline:none}
.game-card__link::after{content:"";position:absolute;inset:0;z-index:1}
/* per-room CTA sits ABOVE the stretched link → it's the explicit affordance,
   card click also navigates (same href), no double-fire */
.game-card__cta{position:relative;z-index:2;width:100%;margin-top:12px;
  font-size:13.5px;padding:10px 14px;box-shadow:var(--sh-sm)}
.game-card__cta:hover{box-shadow:var(--sh)}
.game-card__poster{position:relative;aspect-ratio:3/4;overflow:hidden;
  border-bottom:var(--bd);background:var(--ink)}
.game-card__poster img{width:100%;height:calc(100% + 44px);margin-top:-22px;
  object-fit:cover;will-change:transform} /* extra headroom for parallax (±18px clamp in JS) */
.game-card__poster--placeholder{display:flex;align-items:center;justify-content:center;
  background:var(--lime)}
.placeholder-emoji{font-size:64px}
.price-chip{position:absolute;bottom:8px;inset-inline-start:8px;background:var(--ink);
  color:var(--lime);font-weight:800;font-size:12px;padding:4px 10px;border-radius:12px;
  display:inline-flex;align-items:baseline;gap:5px}
.price-chip s{font-size:10px;font-weight:700;opacity:.6;text-decoration:none;
  background:linear-gradient(to top left,transparent calc(50% - 1px),currentColor calc(50% - 1px),
    currentColor calc(50% + 1px),transparent calc(50% + 1px)) no-repeat}
.badge{position:absolute;font-weight:800;font-size:11px;padding:4px 9px;border:var(--bd);
  border-radius:999px}
.badge--new{top:8px;inset-inline-start:8px;background:var(--vermilion);color:#fff;
  font-size:13px;padding:6px 11px;box-shadow:var(--sh-sm);transform:rotate(-5deg)}
.badge--soon{top:8px;inset-inline-end:8px;background:var(--surface)}
/* gold "prize" sticker — studio's karaoke reward; lifts off the poster with its own shadow */
.badge--prize{display:inline-flex;align-items:center;gap:5px;top:8px;inset-inline-end:8px;
  font-size:13px;padding:6px 11px;background:var(--amber);color:var(--ink);
  transform:rotate(-5deg);box-shadow:var(--sh-sm)}
.game-card__body{padding:14px 14px 16px}
/* per-room context tag (lives in the games section, not the hero) */
.room-tag{display:inline-block;font-weight:800;font-size:11px;line-height:1.5;
  padding:2px 10px;margin-bottom:7px;border:3px solid var(--ink);border-radius:999px;
  background:var(--vermilion);color:#fff;box-shadow:var(--sh-sm)}

/* branch availability tags (built from `availability` in games-data.json) —
   کورش → /اتاق-فرار-مجتمع-تجاری-کورش/ , مارینامال → /مجتمع-تجاری-مارینا-مال/ */
.branch-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
.branch-tag{display:inline-flex;align-items:center;gap:4px;font-family:var(--font-body);
  font-weight:800;font-size:11px;line-height:1.4;padding:3px 9px;border:3px solid var(--ink);
  border-radius:999px;box-shadow:var(--sh-sm);color:var(--ink)}
.branch-tag .ic{width:12px;height:12px}
.branch-tag--kourosh{background:var(--amber)}
.branch-tag--marina{background:var(--blue)}
a.branch-tag{transition:transform .08s ease,box-shadow .08s ease}
a.branch-tag:hover{transform:translate(-1px,-1px);box-shadow:var(--sh)}
a.branch-tag:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
/* on a game-page hero the tags sit among the gchips — give a touch more size */
.ghero__body .branch-tag,.xhero .branch-tag{font-size:12px;padding:5px 11px}
.ghero__body .branch-tag .ic,.xhero .branch-tag .ic{width:13px;height:13px}
.game-card__title{font-size:22px}
/* 2-line scenario teaser — clamped so cards stay even height */
.game-card__teaser{font-weight:700;font-size:12px;line-height:1.5;margin:4px 0 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.game-card__meta{font-weight:700;font-size:14.5px;opacity:.95;margin:7px 0 0;
  display:flex;align-items:center;gap:7px}
/* visual difficulty meter — a 10-segment bar filled to N + the «X/۱۰» number.
   Games only; hidden for experiences (difficulty:null in games-data.json). */
.diff{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.diff__track{display:inline-flex;gap:2px;padding:2px;border:2px solid var(--fg);
  border-radius:5px}
.diff__track i{width:5px;height:11px;border-radius:1px;background:transparent}
.diff__track i.on{background:var(--fg)}
.diff__n{font-family:var(--font-body);font-weight:800;font-size:13px;
  font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}

/* info pills on hub game cards — people / time / difficulty. Share the .branch-tag
   geometry but use a neutral --surface fill so this stat row reads distinctly from
   the coloured branch (location) row below it. */
.meta-pills{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 0}
.meta-pill{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-body);
  font-weight:800;font-size:11px;line-height:1.4;padding:3px 9px;border:3px solid var(--fg);
  border-radius:999px;box-shadow:var(--sh-sm);background:var(--surface);color:var(--fg);
  font-variant-numeric:tabular-nums}
.meta-pill .ic{width:12px;height:12px;flex:none}

/* ---------- 10. HOW IT WORKS (§5.6) ---------- */
.steps{display:grid;grid-template-columns:1fr;gap:16px}
.step{position:relative;padding:22px 18px 18px;border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh)}
.step__num{display:inline-flex;align-items:center;justify-content:center;
  width:54px;height:54px;font-size:34px;background:var(--on-ink);color:var(--ink);border:3px solid var(--ink);
  border-radius:14px;box-shadow:3px 3px 0 var(--ink);margin-bottom:10px}
.step__title{font-size:19px;font-weight:900;margin-bottom:4px}
.step p{font-weight:600;font-size:14px;opacity:.85;margin:0}
.step--lime{background:var(--lime)}
.step--purple{background:var(--purple);color:#fff}
.step--amber{background:var(--amber)}
.step--vermilion{background:var(--vermilion);color:#fff}
/* focal-point row: number badge (start) + on-brand icon (end), so the accent
   area isn't left mostly empty. Icon is always ink (≥3:1 on every accent). */
.step__top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.step__top .step__num{margin-bottom:0}
.step__icon{flex:0 0 auto;line-height:0}
.step__icon svg{width:42px;height:42px;display:block;color:var(--ink)}

/* ---------- 11. BRANCHES (§5.7) ---------- */
.branch-grid{display:grid;grid-template-columns:1fr;gap:18px}
.branch-card{position:relative;padding:24px 20px;border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh)}
.branch-card--lime{background:var(--lime)}
.branch-card--blue{background:var(--blue)}
.flag{position:absolute;top:-14px;inset-inline-start:18px;background:var(--vermilion);color:#fff;
  font-weight:800;font-size:12px;padding:6px 13px;border:var(--bd);border-radius:999px;
  box-shadow:var(--sh-sm);transform:rotate(-3deg)}
.branch-card__title{font-size:28px;margin-top:6px}
.branch-card__addr{font-weight:700;margin:4px 0 12px}
.branch-card__meta{display:flex;flex-direction:column;gap:6px;font-weight:600;margin-bottom:16px}
.branch-card__meta li{display:flex;align-items:center;gap:8px}
.branch-note{display:flex;align-items:flex-start;gap:8px}
/* keep the sentence as ONE flex item so it wraps as a normal paragraph instead of
   collapsing to one-word-per-line columns on mobile (the <b>/«» runs would each
   otherwise become their own min-content flex item) */
.branch-note__t{flex:1 1 auto;min-width:0}
/* the class' display:flex would otherwise beat the UA [hidden] rule → keep the
   honest note (on the /اتاق-فرار/ hub) actually hidden when it has [hidden] */
.branch-note[hidden]{display:none}
.branch-card__cta{display:flex;flex-wrap:wrap;gap:10px}

/* ---- branch GATEWAY — each card is a full "doorway" into a branch page.
   The «مشاهده‌ی شعبه» link stretches over the whole card (::after), so the
   entire card is clickable; the phone link sits above it (z-index) and stays
   independently tappable. No JS needed. ---- */
.branch-grid--gateway .branch-card{cursor:pointer;display:flex;flex-direction:column;
  transition:transform .12s ease,box-shadow .12s ease}
.branch-grid--gateway .branch-card:hover{transform:translate(-3px,-3px);box-shadow:var(--sh-lg)}
.branch-grid--gateway .branch-card:active{transform:translate(2px,2px);box-shadow:var(--sh-sm)}
.branch-card__meta{margin-bottom:18px}
.branch-card__tel{position:relative;z-index:2;font-weight:800;font-variant-numeric:tabular-nums;
  border-bottom:2px solid currentColor}
.branch-card__tel:active{transform:none}
.branch-card__go{position:static;align-self:flex-start;margin-top:auto;
  display:inline-flex;align-items:center;gap:7px;font-weight:900;font-size:15px;
  background:var(--ink);color:var(--on-ink);border:var(--bd);border-radius:999px;
  padding:11px 18px;box-shadow:var(--sh-sm);transition:box-shadow .1s ease}
.branch-card__go .ic{width:16px;height:16px}
/* stretched hit-area: covers the whole card so any click routes to the branch page */
.branch-card__go::after{content:"";position:absolute;inset:0;border-radius:var(--r);z-index:1}
.branch-card:hover .branch-card__go{box-shadow:var(--sh)}
.branch-card__go:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
/* flagship (کورش) reads as the primary doorway */
.branch-card--flagship{box-shadow:var(--sh-lg)}
.branch-card--flagship .branch-card__go{background:var(--vermilion);color:#fff}

/* ---------- 12. REVIEWS (§5.8) ---------- */
.review-row{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;
  padding:6px 2px 16px;margin:0 -2px;scrollbar-width:none}
.review-row::-webkit-scrollbar{display:none}

/* ---- Horizontal carousels: scroll sideways, let vertical gestures pass through ----
   Setting `overflow-x:auto` alone makes the UA compute `overflow-y` to `auto`
   too (CSS Overflow §3: when one axis is non-visible, `visible` on the other
   becomes `auto`). The horizontal scrollbar gutter then leaves ~13px of phantom
   vertical overflow, so these strips became independent vertical scroll boxes
   that captured the page scroll on mobile. `overflow-y:hidden` is the real fix —
   it drops the vertical scroll box entirely, so there is nothing here to scroll
   vertically. `touch-action:pan-x pan-y` then allows BOTH gesture axes: a
   horizontal swipe pans the strip, a vertical swipe has no strip-scroll to
   consume so it bubbles up and scrolls the PAGE. (The earlier `pan-x` was too
   strict — it told the browser to ignore vertical gestures on the strip, which
   blocked page scroll whenever a finger landed on a carousel.) No
   `overscroll-behavior` trap on the vertical axis. Scoped <820: desktop makes
   these static grids (overflow:visible). */
@media (max-width:819.98px){
  .exp-grid,.game-grid,.review-row{overflow-y:hidden;touch-action:pan-x pan-y}
}
.review-card{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 80%;max-width:340px;margin:0;
  padding:18px;border:var(--bd);border-radius:var(--r);box-shadow:var(--sh)}
.review-card__stars{display:flex;gap:3px;font-size:17px;margin-bottom:8px;color:var(--ink)}
/* solid (filled) rating stars so 5/5 reads instantly on every card colour */
.review-card__stars .ic-star{fill:var(--ink);stroke:var(--ink)}
.review-card--purple .review-card__stars .ic-star{fill:#fff;stroke:#fff}
.review-card{position:relative;overflow:hidden}
.review-card::before{content:"«";position:absolute;inset-block-start:-12px;inset-inline-end:10px;
  font-size:120px;font-weight:900;line-height:1;opacity:.12;font-family:var(--font-display);
  pointer-events:none;user-select:none}
.review-card blockquote{margin:0;font-weight:700;font-size:15px;line-height:1.7;position:relative;z-index:1}
.review-card figcaption{margin-top:12px;font-weight:800;font-size:14px;opacity:.8;position:relative;z-index:1}
.review-card--amber{background:var(--amber)}
.review-card--purple{background:var(--purple);color:#fff}
.review-card--lime{background:var(--lime)}
.review-card--blue{background:var(--blue)}
.review-card--pink{background:var(--pink)}

/* ---------- 13. CTA BAND ---------- */
.cta-band{max-width:1120px;margin:18px auto 40px;text-align:center;
  background:var(--vermilion);color:#fff;border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh-lg);padding:42px 20px}
.cta-band h2{font-family:var(--font-display);font-size:clamp(30px,8vw,52px)}
.cta-band p{font-weight:700;margin:8px 0 22px}
.cta-band__call{margin:16px 0 0;font-weight:700;font-size:15px;color:#fff;
  font-variant-numeric:tabular-nums}
.cta-band__call a{color:#fff;font-weight:900;border-bottom:3px solid var(--lime);padding-bottom:1px}
.cta-band__call a:hover{color:var(--lime)}
.cta-band .btn--primary{background:var(--lime);color:var(--ink)}

/* ---------- 14. FOOTER (§5.9) ---------- */
.footer{background:var(--ink);color:var(--on-ink);border-top:var(--bd)}
.footer__inner{max-width:1120px;margin:0 auto;padding:42px 20px 24px;
  display:grid;grid-template-columns:1fr;gap:28px}
.footer__logo{display:inline-flex;align-items:center;gap:11px;margin-bottom:12px}
.footer__mark{height:48px;width:auto}
.footer__wordmark{height:24px;width:auto}
.footer__brand p{font-weight:600;opacity:.8;max-width:34ch;margin:0}
.footer__col h3{font-family:var(--font-display);font-weight:400;font-size:20px;
  color:var(--lime);margin-bottom:12px}
.footer__col a{display:block;padding:5px 0;font-weight:600;opacity:.85}
.footer__col a:hover{opacity:1;color:var(--lime)}
.footer__copy{text-align:center;font-weight:600;font-size:13px;opacity:.6;
  padding:16px;border-top:1px solid rgba(247,239,224,.2);margin:0}

/* ---------- 15. STICKY BOOK BAR (mobile, §5.10) ---------- */
/* sticky bottom book bar removed — booking lives in the nav, hero CTA and menu */
.bookbar{display:none}
.bookbar__call{flex:0 0 auto;font-size:18px;padding:13px 18px}
.bookbar__book{flex:1}

/* ---------- 16. BACK-TO-TOP (§6.6) ---------- */
.to-top{position:fixed;inset:auto 14px 84px auto;z-index:950;
  width:50px;height:50px;font-size:22px;font-weight:900;
  background:var(--lime);color:var(--ink);border:var(--bd);border-radius:14px;
  box-shadow:var(--sh);transform:scale(0);transition:transform .35s var(--spring)}
.to-top.show{transform:scale(1)}
.to-top:active{transform:scale(.92) translate(2px,2px);box-shadow:var(--sh-sm)}

/* ---------- 17. BOOKING SHEET / MODAL (§4, §5.5) ---------- */
.sheet{position:fixed;inset:0;z-index:1500;display:none}
.sheet.open{display:block}
.sheet__backdrop{position:absolute;inset:0;background:rgba(26,20,16,.55)}
/* mobile: a COMPACT floating sheet, inset from every edge so the backdrop stays
   visible all around it (reads as a card, not a full-screen takeover). The panel
   itself never scrolls — it's a flex column with overflow:hidden; only
   .sheet__content scrolls, and only if content overflows on very small screens.
   Desktop (≥820) fully overrides this rule → centered two-panel modal, untouched. */
.sheet__panel{position:absolute;inset-inline:12px;bottom:calc(14px + env(safe-area-inset-bottom));
  margin-inline:auto;max-width:440px;max-height:85vh;
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--paper);border:var(--bd);border-radius:20px;
  box-shadow:var(--sh-lg);
  animation:sheetUp .3s var(--spring)}
@keyframes sheetUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.sheet__close{position:absolute;top:12px;inset-inline-end:12px;z-index:2;
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;font-size:18px;font-weight:900;color:#fff;background:var(--ink);
  border:var(--bd);border-radius:12px;box-shadow:var(--sh-sm)}
/* mobile: poster is a modest header banner (~30vh, capped) so the title/price/CTA
   stay high and reachable without scrolling; shown in full (contain → letterboxed
   on the ink block, never cropped). flex:0 0 auto → it never grows or shrinks. */
.sheet__media{position:relative;height:30vh;max-height:210px;border-bottom:var(--bd);overflow:hidden;
  background:var(--ink);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
/* absolutely-positioned so the poster fills its pane WITHOUT its natural height driving
   the modal size (that made the desktop modal a tall portrait tower with a void below) */
.sheet__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.sheet__media .ph{font-size:84px;line-height:0}
/* icon-block view: render the line-icon in a paper chip so it reads on any colour */
.sheet__media .ph svg{width:1em;height:1em;display:block;color:var(--ink);
  background:var(--paper);border:var(--bd);border-radius:20px;padding:.14em;box-sizing:content-box}
/* the ONLY scroller on mobile (min-height:0 lets it shrink inside the flex column
   so overflow-y engages instead of ballooning the panel). Desktop overrides padding. */
.sheet__content{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px 16px 18px}
.sheet__title{font-size:28px;margin-bottom:6px}
.sheet__story{font-weight:600;opacity:.9;margin:0 0 12px}
.sheet__chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.sheet__chips li{display:flex;align-items:center;gap:5px;font-weight:700;font-size:13px;background:var(--surface);border:var(--bd);
  border-radius:999px;padding:6px 12px;box-shadow:var(--sh-sm)}
.sheet__chips li svg{width:14px;height:14px;flex-shrink:0}
.sheet__diff{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-weight:800}
/* honor the [hidden] attribute (the class' display:flex would otherwise beat the UA
   rule, leaving the «سختی» row — label + empty locks — visible on experience popups) */
.sheet__diff[hidden]{display:none}
.sheet__diff-label{font-size:13px}
/* 10-segment difficulty meter (shared: modal سختی, game-page chip + «در یک نگاه»).
   currentColor so it inherits ink/accent from whatever context it sits in. */
.locks{display:inline-flex;gap:2px;padding:2px;border:2px solid currentColor;border-radius:5px}
.locks i{width:5px;height:14px;border-radius:1px;background:transparent;display:inline-block}
.locks i.on{background:currentColor}
.sheet__diff-val{font-size:13px;opacity:.75}
.sheet__price{font-weight:900;font-size:20px;color:var(--ink);background:var(--lime);border:var(--bd);
  border-radius:var(--r-sm);box-shadow:var(--sh-sm);padding:10px 14px;display:inline-block;
  margin-bottom:18px}
.sheet__cta{display:flex;flex-direction:column;gap:10px}

/* mobile-only tightening so title → description → chips → سختی → price → primary CTA
   fit the compact sheet without scrolling in the common case. Scoped <820 so the
   roomy desktop modal is untouched. Long scenario text is clamped to 3 lines — the
   full داستان lives on the game/experience page behind «اطلاعات بیشتر و رزرو». */
@media (max-width:819.98px){
  .sheet__content{padding:15px 15px 17px}
  .sheet__title{font-size:23px;margin-bottom:4px}
  .sheet__story{margin:0 0 10px;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .sheet__chips{gap:7px;margin-bottom:10px}
  .sheet__chips li{font-size:12px;padding:5px 10px}
  .sheet__diff{margin-bottom:10px}
  .sheet__price{font-size:18px;padding:8px 12px;margin-bottom:12px}
  .sheet__cta{gap:8px}
}

/* ==========================================================================
   GAME PAGE  (games/<slug>.html)
   Reuses the whole neo-brutalist system. Each page sets its own accent via
   `--accent` (inline `style` on .gpage), used on chips, badges, callouts and
   the booking band. Lock-squares (.locks) and .btn primitives are shared.
   ========================================================================== */
.gpage{--accent:var(--amber);--on-accent:var(--ink)} /* fallback; overridden per page */

/* chunky back link */
.gback{max-width:1120px;margin:0 auto;padding:18px 18px 0}
.gback a{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:14px;
  background:var(--surface);border:var(--bd);border-radius:999px;padding:9px 16px;box-shadow:var(--sh-sm);
  transition:transform .08s ease,box-shadow .08s ease}
.gback a:hover{transform:translate(-1px,-1px);box-shadow:var(--sh)}
.gback a:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}

/* hero (poster + header) */
.ghero{max-width:1120px;margin:0 auto;padding:18px 18px 8px;
  display:flex;flex-direction:column;gap:22px}
.ghero__poster{position:relative;border:var(--bd);border-radius:var(--r);overflow:hidden;
  box-shadow:var(--sh-lg);background:var(--ink);aspect-ratio:3/4}
.ghero__poster img{width:100%;height:100%;object-fit:cover}
.ghero__poster--ph{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;background:var(--accent);text-align:center;padding:24px}
.ghero__poster--ph .ph-emoji{font-size:88px;line-height:1}
.ghero__poster--ph .ph-title{font-family:var(--font-display);font-size:34px}
.ghero__poster .badge--soon{position:absolute;top:12px;inset-inline-end:12px;background:var(--surface);
  box-shadow:var(--sh-sm)}
.ghero__poster .badge--prize{position:absolute;top:12px;inset-inline-end:12px;font-size:15px;padding:7px 13px}

.ghero__body{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.ghero__title{font-family:var(--font-display);font-weight:400;
  font-size:clamp(34px,9vw,58px);line-height:1.05;margin:0}
.ghero__teaser{font-weight:700;font-size:clamp(15px,4vw,19px);opacity:.9;margin:0}

.gchips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gchip{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:13px;
  background:var(--accent);border:var(--bd);border-radius:999px;padding:7px 13px;box-shadow:var(--sh-sm)}
.gchip--diff{background:var(--surface)}
/* game-page hero chips: uniform all-white pills (time / people / difficulty / age).
   Fixed #fff (not --surface, which goes dark in dark theme) + ink content/outline —
   same treatment as the experience-page chips. */
.gpage .gchip{background:#fff;color:var(--ink);border-color:var(--ink)}
.gchip .locks i{height:12px}

.gprice{font-weight:900;font-size:18px;background:var(--ink);color:var(--lime);
  border:var(--bd);border-radius:var(--r-sm);padding:9px 15px;box-shadow:var(--sh-sm)}

.gcta{display:flex;flex-wrap:wrap;gap:12px;margin-top:2px}

/* generic page section + Lalezar heading */
.gsection{max-width:1120px;margin:0 auto;padding:26px 18px}
.gsection h2{font-family:var(--font-display);font-weight:400;
  font-size:clamp(26px,6vw,40px);margin:0 0 16px}

/* داستان بازی — story panel. (The outlined ::first-letter drop-cap was removed: on
   cursive Persian it isolates the first letter and reads as a broken/watermark glitch.) */
.gstory{background:var(--surface);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh);padding:24px 22px}
.gstory p{font-weight:600;font-size:16px;line-height:2;margin:0 0 14px}
.gstory p:last-child{margin-bottom:0}

/* هدف نهایی — accent callout */
.ggoal{background:var(--accent);color:var(--on-accent);border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh);padding:22px 20px}
.ggoal p{font-weight:700;font-size:16px;line-height:1.9;margin:0}

/* در یک نگاه — info-card grid */
.gglance{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.ginfo{background:var(--surface);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh-sm);padding:16px}
.ginfo__k{font-weight:700;font-size:12px;opacity:.7;margin:0 0 6px}
.ginfo__v{font-weight:900;font-size:18px;margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* studio bonus */
/* lime box on the dark game page → force ink text (bright-accent rule, §19), else
   it inherits the page's cream body colour and reads light-on-light. Covers the
   SVG icon too (stroke:currentColor). */
.gbonus{background:var(--lime);color:var(--ink);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh);
  padding:22px 20px;display:flex;gap:16px;align-items:flex-start}
.gbonus .ico{font-size:42px;line-height:1;flex:0 0 auto}
.gbonus p{font-weight:700;font-size:16px;line-height:1.9;margin:0}

/* booking band */
.gband{max-width:1120px;margin:20px auto;text-align:center;background:var(--accent);color:var(--on-accent);
  border:var(--bd);border-radius:var(--r);box-shadow:var(--sh-lg);padding:42px 20px}
.gband h2{font-family:var(--font-display);font-weight:400;
  font-size:clamp(28px,7vw,48px);margin:0 0 8px}
.gband p{font-weight:700;margin:0 0 20px;opacity:.85}

/* ==========================================================================
   /تماس/ CONTACT PAGE — contact essentials lead; booking is a light secondary
   prompt. Scoped so the shared .branch-card (home gateway) is untouched.
   ========================================================================== */
/* primary contact-methods block: phones + email + Instagram as equal chunky tiles */
.contact-methods{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}
.contact-methods a{display:flex;align-items:center;gap:11px;font-weight:800;font-size:15px;
  background:var(--surface);border:var(--bd);border-radius:var(--r-sm);padding:13px 15px;
  box-shadow:var(--sh-sm);transition:transform .08s ease,box-shadow .08s ease}
.contact-methods a:hover{transform:translate(-2px,-2px);box-shadow:var(--sh)}
.contact-methods a:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.contact-methods .ic{width:22px;height:22px;flex:0 0 auto}
.contact-methods small{display:block;font-weight:700;font-size:12px;opacity:.6;
  font-variant-numeric:tabular-nums}
@media (min-width:640px){.contact-methods{grid-template-columns:repeat(4,1fr)}}

/* branch cards: phone = primary action, مسیریابی/صفحه = compact secondary; + in-card map */
.branch-grid--contact .branch-card__map{margin:0 0 16px;position:relative;min-height:180px;
  border:var(--bd);border-radius:var(--r-sm);overflow:hidden;box-shadow:var(--sh-sm);background:var(--ink)}
.branch-grid--contact .branch-card__map iframe{display:block;width:100%;height:100%;min-height:180px;border:0}
.branch-grid--contact .branch-card__cta{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.branch-grid--contact .branch-card__tel-btn{font-size:18px;padding:13px 18px;justify-content:center}
.branch-grid--contact .branch-card__sec{display:flex;gap:10px}
.branch-grid--contact .branch-card__sec .btn{flex:1;justify-content:center;padding:9px 12px;font-size:14px}

/* light booking prompt — bordered paper strip, NOT a saturated slab */
.book-note{max-width:1120px;margin:24px auto;display:flex;flex-wrap:wrap;align-items:center;
  justify-content:center;gap:12px 20px;text-align:center;
  background:var(--surface);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh-sm);
  padding:18px 22px}
.book-note__t{font-weight:800;font-size:16px;margin:0}
.book-note__t b{font-family:var(--font-display);font-weight:400;font-size:22px}

/* بازی‌های دیگه — related games as poster links (reuse .game-card) */
a.game-card{color:inherit}

/* ---------- trust / social-proof strip (Kourosh) ---------- */
.trust{display:grid;grid-template-columns:1fr;gap:16px}
.trust__score{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;
  background:var(--amber);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh);padding:16px 20px;color:var(--ink)}
.trust__stars{font-size:22px;letter-spacing:2px;line-height:1}
.trust__rate{font-family:var(--font-display);font-size:34px;line-height:1}
.trust__src{font-weight:800;font-size:14px;opacity:.85}
.trust__count{margin-inline-start:auto;font-weight:800;font-size:14px;color:var(--ink);
  border-bottom:3px solid var(--ink);padding-bottom:2px;white-space:nowrap}
.trust__quotes{display:grid;grid-template-columns:1fr;gap:14px}
.quote-card{margin:0;background:var(--surface);border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh-sm);padding:16px 18px}
.quote-card blockquote{margin:0;font-weight:700;font-size:15px;line-height:1.8}
.quote-card figcaption{margin-top:10px;font-weight:800;font-size:13px;opacity:.7}
.quote-card__name{color:var(--vermilion)}

/* ---------- visit-us card (address + embedded map) ---------- */
.visit{display:grid;grid-template-columns:1fr;gap:16px;overflow:hidden;
  background:var(--surface);border:var(--bd);border-radius:var(--r);box-shadow:var(--sh);padding:16px}
.visit__info{display:flex;flex-direction:column;gap:13px}
.visit__info .ginfo{background:transparent;border:none;box-shadow:none;padding:0}
.ginfo__v--note{opacity:.6;font-weight:700;font-size:15px;font-style:italic}
.visit__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.visit__map{position:relative;min-height:240px;border:var(--bd);border-radius:var(--r);
  overflow:hidden;box-shadow:var(--sh-sm);background:var(--ink)}
.visit__map iframe{display:block;width:100%;height:100%;min-height:240px;border:0}

/* ---------- slim sticky booking pill (page-scoped, JS-revealed) ---------- */
.kbook{position:fixed;left:50%;bottom:16px;z-index:900;display:flex;gap:8px;
  transform:translate(-50%,165%);opacity:0;pointer-events:none;
  transition:transform .35s var(--spring),opacity .25s ease}
.kbook.show{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.kbook .btn{box-shadow:var(--sh)}
.kbook__call{flex:0 0 auto;font-size:17px;padding:12px 15px}

@media (min-width:560px){
  .gglance{grid-template-columns:repeat(4,1fr)}
  /* experience glances carry 6 cells (people + time added) → 3-up avoids a lonely 4+2 row */
  .gglance--exp{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:760px){
  .trust__quotes{grid-template-columns:repeat(3,1fr)}
  .visit{grid-template-columns:1.1fr 1fr;align-items:stretch}
  .visit__map{min-height:300px}
}
@media (min-width:820px){
  .ghero{flex-direction:row;align-items:flex-start;gap:36px;padding:34px 18px 12px}
  .ghero__poster{flex:0 0 40%;max-width:420px}
  .ghero__body{flex:1 1 auto;gap:16px}
}

/* ==========================================================================
   EXPERIENCE PAGE  (experiences/<slug>.html)
   No poster, no difficulty. The hero is a bold accent panel (with a subtle
   ink texture) instead of an image. Reuses .gsection / .gstory / .ggoal /
   .ginfo / .gband / .gback / .gprice / .gcta from the game-page block.
   Accent + readable text colour come from --accent / --on-accent on .gpage.
   ========================================================================== */
.xhero-wrap{max-width:1120px;margin:0 auto;padding:18px 18px 8px}
/* split-pane hero: real portrait poster + accent details panel (mobile = stacked,
   poster in full on top). Poster uses object-fit:contain on an ink pane so it's
   never cropped or stretched; the accent + text colour come from --accent/--on-accent. */
.xhero{overflow:hidden;border:var(--bd);border-radius:var(--r);box-shadow:var(--sh-lg);
  display:flex;flex-direction:column}
.xhero__media{position:relative;background:var(--ink);aspect-ratio:3/4;max-height:60vh;
  border-block-end:var(--bd);overflow:hidden}
.xhero__media img{width:100%;height:100%;object-fit:contain;display:block}
/* text on the bright accent panel is ALWAYS ink (the panel is a fixed bright accent
   — purple/vermilion/pink/blue — that doesn't theme-swap, so --on-accent white was
   low-contrast; ink reads strongly on every experience accent). */
.xhero__body{position:relative;background:var(--accent);color:var(--ink);
  padding:26px 22px;display:flex;flex-direction:column;gap:13px;align-items:flex-start}
/* subtle neo-brutalist diagonal-stripe texture in ink (body panel only) */
.xhero__body::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;
  background-image:repeating-linear-gradient(45deg,var(--ink) 0 2px,transparent 2px 13px)}
.xhero__body > *{position:relative;z-index:1}
/* icon → solid neo-brutalist chip holding an inline SVG */
/* icon chip + meta chips use a FIXED white fill (not --surface, which goes dark in
   dark theme and made the chips render as empty black pills) + ink content/outline */
.xhero__icon{display:inline-flex;align-items:center;justify-content:center;
  width:52px;height:52px;background:#fff;color:var(--ink);
  border:var(--bd);border-color:var(--ink);border-radius:16px;box-shadow:var(--sh-sm)}
.xhero__icon svg{width:28px;height:28px}
.xhero .ghero__title{margin:0}
.xhero .ghero__teaser{opacity:.92}
/* chips/price sit on the coloured panel → solid white fill, ink text + ink outline */
.xhero .gchip{background:#fff;color:var(--ink);border-color:var(--ink)}
/* «فقط در شعبه…» note: ink pill with FIXED light text (--paper goes dark in dark theme) */
.xnote{font-weight:800;font-size:13px;background:var(--ink);color:var(--on-ink);
  border:var(--bd);border-radius:999px;padding:6px 14px;box-shadow:var(--sh-sm)}

/* feature bullets (scenario lines that start with "-") inside the story panel */
.xfeatures{display:flex;flex-direction:column;gap:11px;margin:18px 0 0;padding:0;list-style:none}
.xfeatures li{position:relative;padding-inline-start:34px;font-weight:800;font-size:15px;line-height:1.6}
.xfeatures li::before{content:"✓";position:absolute;inset-inline-start:0;top:1px;
  display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  font-size:13px;font-weight:900;color:var(--ink);background:var(--accent);
  border:2px solid var(--ink);border-radius:6px;box-shadow:2px 2px 0 var(--ink)}

@media (min-width:820px){
  .xhero{flex-direction:row;align-items:stretch}
  .xhero__media{flex:0 0 40%;max-width:360px;aspect-ratio:auto;max-height:none;
    border-block-end:0;border-inline-end:var(--bd)}
  .xhero__body{flex:1 1 auto;padding:40px 34px;justify-content:center}
}

/* ==========================================================================
   HUB PAGES  (/اتاق-فرار/  and  /تجربه-ها/)
   SEO landing pages. Reuse .section, .game-grid/.game-card, .exp-grid/.exp-card,
   .branch-note and the .btn primitives. Only the intro header is new.
   ========================================================================== */
.hub-hero{margin-bottom:26px}
.hub-hero .gback{padding:0;margin:0 0 16px}        /* reuse back-link pill, no extra inset */
.hub-hero h1{font-family:var(--font-display);font-weight:400;letter-spacing:.2px;
  font-size:clamp(30px,8vw,52px);line-height:1.08;margin:0}
.hub-intro{font-weight:600;font-size:clamp(15px,4vw,18px);opacity:.9;max-width:60ch;margin:12px 0 0}
.hub-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px}
/* secondary phone — outlined, lower-contrast pill (same treatment as the nav __call),
   visibly subordinate to the filled «رزرو اتاق فرار» primary */
.hub-call{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:14px;
  font-variant-numeric:tabular-nums;padding:10px 16px;border:2px solid var(--fg);border-radius:999px;
  background:transparent;color:var(--fg);opacity:.7;white-space:nowrap;
  transition:opacity .15s,background .15s,box-shadow .12s,transform .08s}
.hub-call .ic{width:1.05em;height:1.05em}
.hub-call:hover{opacity:1;background:var(--surface);box-shadow:var(--sh-sm)}
.hub-call:active{transform:translate(2px,2px);box-shadow:none}
/* slim branch line-up teaser — one glanceable row of the 5 experiences under the
   intro/CTA. Wraps on mobile (still one tidy block); each pill carries its
   experience accent (--exp-* tokens). Extra top gap so it reads as its own element. */
.branch-chips{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:28px}
.branch-chips__label{font-weight:900;font-size:14px;opacity:.85;margin-inline-end:2px}
.bchip{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
  font-weight:800;font-size:13px;padding:6px 13px;border:3px solid var(--ink);
  border-radius:999px;box-shadow:var(--sh-sm);transition:transform .08s ease,box-shadow .08s ease}
.bchip:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}
.bchip:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
/* inline-SVG icon sized to the label (1em) so the icon-to-text gap is even on every pill */
.bchip__ic{display:inline-flex;align-items:center;line-height:0;flex:0 0 auto}
.bchip__ic svg{width:1em;height:1em;display:block}
.bchip--escape{background:var(--exp-escape);color:var(--ink)}
.bchip--cinema{background:var(--exp-cinema);color:#fff}
.bchip--rage{background:var(--exp-rage);color:#fff}
.bchip--karaoke{background:var(--exp-karaoke);color:var(--ink)}
.bchip--board{background:var(--exp-board);color:var(--ink)}
/* anchored sections clear the sticky nav when jumped to */
#escape-rooms,#other-experiences{scroll-margin-top:calc(var(--nav-h) + 16px)}
/* "همه‌ی بازی‌ها ←" style link sitting in a section head, + linked section titles */
.head-link{color:inherit;border-bottom:3px solid transparent;transition:border-color .15s}
.head-link:hover{border-color:var(--vermilion)}
.see-all{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-weight:800;
  border-bottom:3px solid var(--fg);padding-bottom:2px;transition:color .15s,border-color .15s}
.see-all:hover{color:var(--vermilion);border-color:var(--vermilion)}

/* ==========================================================================
   BLOG / ARTICLES  (/مقالات/ index, post pages, FAQ, contact/about/booking)
   Token-based → adapts to dark theme automatically. Lalezar headings,
   readable body column. Reuses .gsection/.gband/.ginfo from the game block.
   ========================================================================== */
/* breadcrumb */
.crumb{max-width:760px;margin:0 auto;padding:18px 18px 0;font-weight:700;font-size:13px;
  display:flex;flex-wrap:wrap;gap:7px;align-items:center;opacity:.85}
.crumb a{border-bottom:2px solid transparent}
.crumb a:hover{border-color:var(--vermilion);color:var(--vermilion)}
.crumb .sep{opacity:.45}
.crumb [aria-current]{opacity:.6}

/* blog index */
.blog-hero{max-width:1120px;margin:0 auto;padding:8px 18px 6px}
.blog-hero h1{font-family:var(--font-display);font-weight:400;letter-spacing:.2px;
  font-size:clamp(30px,8vw,52px);line-height:1.08;margin:0}
.blog-hero p{font-weight:600;font-size:clamp(15px,4vw,18px);opacity:.9;max-width:60ch;margin:10px 0 0}
.blog-list{max-width:1120px;margin:0 auto;padding:18px;display:grid;grid-template-columns:1fr;gap:18px}
.post-card{display:flex;flex-direction:column;border:var(--bd);border-radius:var(--r);
  box-shadow:var(--sh);background:var(--surface);padding:22px 20px;color:inherit;overflow:hidden;
  transition:transform .1s ease,box-shadow .1s ease}
.post-card:hover{transform:translate(-2px,-2px);box-shadow:var(--sh-lg)}
.post-card:active{transform:translate(2px,2px);box-shadow:var(--sh-sm)}
/* optional cover band — breaks out of the card padding to sit edge-to-edge.
   Cards without a cover (e.g. related-posts blocks) are unaffected. */
.post-card__cover{position:relative;margin:-22px -20px 16px;aspect-ratio:16/9;
  border-bottom:var(--bd);background:var(--ink);overflow:hidden}
.post-card__cover img{width:100%;height:100%;object-fit:cover;display:block}
.post-card__cover--ph{display:flex;align-items:center;justify-content:center;background:var(--lime)}
.post-card__cover--ph span{font-family:var(--font-display);font-weight:400;
  font-size:clamp(22px,6vw,32px);color:var(--ink);opacity:.9}
.post-card__foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:6px}
.post-card__date{font-weight:700;font-size:12px;opacity:.6;font-variant-numeric:tabular-nums}
.post-card__tag,.article__tag{align-self:flex-start;font-weight:800;font-size:11px;line-height:1.5;
  padding:3px 10px;border:3px solid var(--ink);border-radius:999px;background:var(--lime);
  color:var(--ink);box-shadow:var(--sh-sm);margin-bottom:10px}
.post-card__title{font-family:var(--font-display);font-weight:400;font-size:clamp(21px,5vw,27px);
  line-height:1.18;margin:0 0 8px;color:var(--fg)}
.post-card__excerpt{font-weight:600;font-size:14px;line-height:1.9;opacity:.85;margin:0 0 14px}
.post-card__more{align-self:flex-start;font-weight:800;font-size:14px;display:inline-flex;
  align-items:center;gap:6px;border-bottom:3px solid var(--fg);padding-bottom:2px}
.post-card:hover .post-card__more{color:var(--vermilion);border-color:var(--vermilion)}

/* article column */
.article{max-width:760px;margin:0 auto;padding:6px 18px 8px}
.article__head{margin:8px 0 20px}
.article h1{font-family:var(--font-display);font-weight:400;letter-spacing:.2px;
  font-size:clamp(28px,7.5vw,48px);line-height:1.1;margin:0 0 10px}
.article__meta{font-weight:700;font-size:13px;opacity:.65;display:flex;flex-wrap:wrap;gap:6px}
.article__lead{font-weight:700;font-size:clamp(16px,4.2vw,19px);line-height:1.9;opacity:.95;margin:0 0 6px}

/* prose body — readable measure + generous line-height */
.prose{font-weight:500;font-size:17px;line-height:2.05}
.prose > h2{font-family:var(--font-display);font-weight:400;font-size:clamp(23px,6vw,33px);
  line-height:1.2;margin:34px 0 12px}
.prose > h3{font-weight:900;font-size:19px;margin:24px 0 8px}
.prose p{margin:0 0 16px}
.prose a{font-weight:800;border-bottom:2px solid var(--vermilion)}
.prose a:hover{background:var(--vermilion);color:#fff}
.prose ul,.prose ol{margin:0 0 18px;padding-inline-start:22px;display:flex;flex-direction:column;gap:9px}
.prose li{font-weight:500;line-height:1.85}
.prose strong{font-weight:900}
.prose blockquote{border-inline-start:5px solid var(--vermilion);background:var(--surface-2);
  margin:20px 0;padding:14px 18px;border-radius:var(--r-sm);font-weight:700}
.prose blockquote p:last-child{margin:0}

/* FAQ — native <details>, no JS */
.faq{max-width:760px;margin:0 auto;padding:6px 18px;display:flex;flex-direction:column;gap:12px}
.faq__item{border:var(--bd);border-radius:var(--r);box-shadow:var(--sh-sm);
  background:var(--surface);overflow:hidden}
.faq__q{font-weight:900;font-size:16px;line-height:1.6;padding:16px 18px;cursor:pointer;
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:14px}
.faq__q::-webkit-details-marker{display:none}
.faq__q::after{content:"+";font-family:var(--font-body);font-size:26px;font-weight:900;
  line-height:1;flex:0 0 auto;color:var(--vermilion);transition:transform .15s ease}
.faq__item[open] .faq__q::after{transform:rotate(45deg)}
.faq__a{padding:0 18px 18px;font-weight:500;font-size:15px;line-height:1.95;opacity:.92}
.faq__a p{margin:0 0 10px}
.faq__a p:last-child{margin:0}

/* social row (contact/about) */
.social-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.social-row a{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:14px;
  background:var(--surface);border:var(--bd);border-radius:999px;padding:9px 15px;box-shadow:var(--sh-sm);
  transition:transform .08s ease,box-shadow .08s ease}
.social-row a:hover{transform:translate(-1px,-1px);box-shadow:var(--sh)}
.social-row a:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}

/* two-up cards (contact branches / booking items) reuse .branch-grid */
@media (min-width:760px){
  .blog-list{grid-template-columns:1fr 1fr}
}

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (min-width:560px){
  .steps{grid-template-columns:repeat(2,1fr)}
  .branch-grid{grid-template-columns:repeat(2,1fr)}
  .exp-card{flex-basis:48%}
  .game-card{flex-basis:46%}
  .review-card{flex-basis:54%}
  .footer__inner{grid-template-columns:2fr 1fr 1fr}
}

/* ===== inline desktop header (one row, evenly-distributed nav) ===== */
@media (min-width:880px){
  /* caution-tape marquee retired on all viewports (kept in markup, never shown) */
  /* restore the single flex row (mobile uses a 3-col grid) */
  .nav__inner{display:flex;flex-wrap:nowrap}
  .nav__actions .theme-toggle{display:flex}   /* toggle back in the header bar on desktop */
  /* logo pinned right, CTA pinned left, nav fills the middle — never wraps.
     880–1119px is the COMPACT desktop band: shrunk logo + icon-only phone + tighter
     nav so everything fits without the links colliding with the logo/CTA. The full
     desktop look is restored at ≥1120 (see block below). */
  .nav__left{flex:1 1 auto;flex-wrap:nowrap;align-items:center;gap:clamp(8px,1.1vw,20px);
    align-self:stretch;min-width:0}
  .nav__logo{flex:0 0 auto;flex-direction:row;align-items:center;gap:8px}
  /* desktop: show the theme-correct mark variant (light theme → dark mark) */
  .nav__mark{height:54px}
  .nav__mark--dark{display:block}
  .nav__mark--light{display:none}
  [data-theme="dark"] .nav__mark--dark{display:none}
  [data-theme="dark"] .nav__mark--light{display:block}
  .nav__wordmark{height:18px;margin-bottom:2px}
  /* align-items:center keeps EVERY link (plain + dropdown) on one baseline */
  /* links sit as a centred cluster in the band between logo and CTA — not stretched
     thin edge-to-edge (which left a dead gap before the رزرو button) */
  .nav__links{display:flex;flex:1 1 auto;flex-wrap:nowrap;align-items:center;white-space:nowrap;
    min-width:0;justify-content:center;align-self:stretch;
    gap:clamp(10px,1.3vw,18px);font-size:clamp(12.5px,1.2vw,15px)}
  /* trigger stays full-height (so its dropdown drops below the bar) but centres its label */
  .nav__item{display:flex;align-items:center;align-self:stretch;flex:0 0 auto}
  .nav__links>a,.nav__top{white-space:nowrap}
  .nav__actions{flex:0 0 auto}
  /* compact phone: icon-only square (the number is restored at ≥1120) */
  .nav__call{display:inline-flex;padding:8px;gap:0}
  .nav__call .nav__call-num{display:none}
  .nav__book{display:inline-flex;padding:9px 16px;font-size:14px}   /* restore the top-bar CTA on desktop */
  .nav__toggle{display:none}
  .mobile-menu{display:none !important}
  /* theme toggle → subtle on desktop: smaller, thin border, no shadow, dimmed */
  .theme-toggle{width:32px;height:32px;border:2px solid var(--fg);background:transparent;
    box-shadow:none;opacity:.55}
  .theme-toggle:hover{opacity:1;background:var(--surface);box-shadow:var(--sh-sm)}
  .theme-toggle svg{width:15px;height:15px}
}

/* ≥1120px — FULL desktop header: roomy logo, phone pill with number, wider nav.
   Below this (880–1119) the compact band above keeps everything from colliding. */
@media (min-width:1120px){
  .nav__left{gap:clamp(10px,1.4vw,30px)}
  .nav__logo{gap:12px}
  .nav__mark{height:72px}
  .nav__wordmark{height:22px}
  .nav__links{gap:clamp(16px,1.9vw,30px);font-size:16px}
  .nav__call{padding:7px 13px;gap:6px}
  .nav__call .nav__call-num{display:inline}
  .nav__book{padding:11px 22px;font-size:16px}
}

@media (min-width:820px){
  :root{--nav-h:84px}

  /* ===== desktop hero ===== (the inline header turns on at ≥880, see below) */
  .nav__inner{max-width:1240px;padding:0 32px}

  /* (hero desktop layout lives in its own @media (min-width:880px) block — see §7) */

  /* experiences → bento grid (اتاق فرار dominant) */
  .exp-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;
    gap:18px;overflow:visible;padding:4px}
  .exp-card{flex:initial;max-width:none;min-height:0}
  .exp-card--lg{grid-column:span 1;grid-row:span 2;justify-content:flex-start}
  .exp-card--lg .exp-card__icon{font-size:46px}
  .exp-card--lg .exp-card__title{font-size:36px}
  /* اتاق‌فرار feature card: fill the body with the 7 room-name chips (from games-data.json).
     Room chips read ink-on-lime with the neo-brutalist ink border; branch tags stay pinned
     to the bottom so the card feels full and intentional, not crammed. */
  .exp-card--lg .exp-card__rooms{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0 2px}
  .exp-card--lg .branch-tags{margin-top:auto}
  .exp-card__room{display:block;font-family:var(--font-body);font-weight:800;font-size:12.5px;
    line-height:1.35;color:var(--ink);text-decoration:none;padding:6px 11px;
    border:2px solid var(--ink);border-radius:10px;background:transparent;
    transition:transform .08s ease,box-shadow .08s ease,background .08s ease,color .08s ease}
  a.exp-card__room:hover{background:var(--ink);color:var(--exp-escape);
    box-shadow:2px 2px 0 var(--ink);transform:translate(-1px,-1px)}
  a.exp-card__room:active{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--ink)}

  /* games → 3-up grid */
  .game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
    overflow:visible;padding:4px}
  .game-card{flex:initial;max-width:none}

  /* reviews → static 3-col-ish wrap (still scrollable if needed) */
  .review-row{display:grid;grid-template-columns:repeat(3,1fr);overflow:visible;padding:4px}
  .review-card{flex:initial;max-width:none}

  .steps{grid-template-columns:repeat(4,1fr)}

  /* booking → centered two-panel modal: a balanced landscape card (wider than tall)
     that sizes to the DETAILS content up to ~88vh. The poster pane is a matched pair
     with the details pane — equal height — and the poster fills it top-to-bottom via
     object-fit:cover with no empty background. Details fit without an internal
     scrollbar in the typical case (story clamped); it only scrolls if content truly
     exceeds max-height on a short viewport. */
  /* fixed modal height so the poster pane has a DEFINITE height to derive its width from
     (an aspect-ratio pane whose height came from flex-stretch collapses to 0 width). */
  .sheet__panel{inset:0;margin:auto;max-width:840px;width:calc(100% - 40px);
    height:min(600px,86vh);
    display:flex;flex-direction:row;align-items:stretch;
    border:var(--bd);border-radius:22px;box-shadow:var(--sh-lg);overflow:hidden;
    animation:modalIn .3s var(--spring)}
  @keyframes modalIn{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:none}}
  /* poster pane hugs the poster exactly: full modal height, and its WIDTH follows the
     poster's own portrait aspect (422/591). The poster fills the pane completely — no crop
     AND no empty band around it. The img stays absolutely positioned (base rule) so its
     intrinsic size never inflates the modal; cover fills the matching-aspect pane. */
  .sheet__media{flex:0 0 auto;width:auto;height:100%;max-height:none;
    aspect-ratio:422/591;border-bottom:0;border-inline-end:var(--bd)}
  .sheet__media img{object-fit:cover}
  /* details pane: sized to fit; vertically centred so the fixed-height modal reads as
     balanced (safe centring never clips the top when content genuinely overflows). */
  .sheet__content{flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto;
    display:flex;flex-direction:column;justify-content:safe center;
    padding:24px 26px;scrollbar-width:thin}
  /* desktop tightening + story clamp so title→meta→سختی→price→CTAs fit without scroll
     (full داستان lives on the detail page behind «اطلاعات و رزرو») */
  .sheet__title{font-size:25px;margin-bottom:5px}
  .sheet__story{margin:0 0 12px;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .sheet__chips{margin-bottom:12px}
  .sheet__diff{margin-bottom:12px}
  .sheet__price{margin-bottom:16px}
  /* matched CTA pair: single-line labels (base .btn is nowrap), equal height via
     flex stretch; if the row is too narrow the whole buttons wrap to stacked (still
     equal), never one-taller-than-the-other */
  .sheet__cta{flex-direction:row;flex-wrap:wrap;align-items:stretch}
  .sheet__cta .btn{flex:1 1 140px;min-width:0}

  /* no sticky bottom bar on desktop */
  .bookbar{display:none}
  /* .to-top / body bottom-padding resets moved to the ≥880 tab-bar block, since the
     mobile tab bar (and its content clearance) is still active across 820–879 */

  .section{padding:72px 18px}
}

@media (min-width:1024px){
  .exp-grid{grid-template-columns:repeat(4,1fr)}
  .exp-card--lg{grid-column:span 2;grid-row:span 2;position:relative;overflow:hidden;justify-content:flex-start}
  /* ghost-lock watermark removed — the room-name list now fills the card body, and the
     watermark read as an empty placeholder competing with the names (see CHANGELOG 0.12.1). */
  .exp-card--lg .exp-card__icon{font-size:52px;margin-bottom:4px}
  .exp-card--lg .exp-card__desc{-webkit-line-clamp:unset;overflow:visible;flex:0 0 auto}
  .exp-card--lg .exp-card__title{font-size:44px}
  /* wide feature card → two columns of room chips */
  .exp-card--lg .exp-card__rooms{grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
  .exp-card__room{font-size:13px;padding:7px 12px}
}

/* ==========================================================================
   19. BRIGHT-ACCENT SURFACES — always dark ink text (light bg = dark text,
       regardless of theme). Dark-rich tones (purple, vermilion) keep #fff.
   ========================================================================== */
.stat--lime,.stat--amber,.stat--blue,
.exp-card--escape,.exp-card--karaoke,.exp-card--board,
.step--lime,.step--amber,
.branch-card--lime,.branch-card--blue,
.branch-note,
.review-card--lime,.review-card--amber,.review-card--blue,.review-card--pink,
.ec--lime .ec__ph,.ec--pink .ec__ph,.ec--amber .ec__ph,.ec--blue .ec__ph{
  color:var(--ink);
}
/* Bright-accent branch cards are always lime/blue (never theme-swapped), so their
   GHOST secondary buttons («مسیریابی» / «صفحه‌ی شعبه» / phone) must be ink in BOTH
   themes — the default .btn color/border is --fg, which goes LIGHT in dark mode and
   turns near-invisible on the bright fill. Primary (vermilion + #fff) is left alone. */
.branch-card--lime .btn--ghost,.branch-card--blue .btn--ghost{
  color:var(--ink);border-color:var(--ink);
}
.branch-card--lime .btn--ghost:hover,.branch-card--blue .btn--ghost:hover{
  background:rgba(26,20,16,.10);color:var(--ink);
}

/* ==========================================================================
   19b. DESKTOP DELIGHTS — torch cursor + card-icon idle animations.
   Torch cursor: pointer devices only. Icon idle-loops: ALL devices (desktop +
   phone). Both reduced-motion-safe. Transform/opacity only → no layout shift.
   ========================================================================== */
/* torch cursor — pointer devices only (bigger, thicker, white outline for
   visibility on any background); graceful keyword fallback. Hotspot at flame tip. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body{cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMwIDMyIj48cGF0aCBkPSJNMTUgMmMtNCA1LTUgOSAwIDEyIDUtMyA0LTcgMC0xMnoiIGZpbGw9IiNGRkMyM0IiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTUgNmMtMiAyLjYtMiA1IDAgNi40IDItMS40IDItMy44IDAtNi40eiIgZmlsbD0iI0ZGNTQzNiIvPjxyZWN0IHg9IjkuNSIgeT0iMTQiIHdpZHRoPSIxMSIgaGVpZ2h0PSI2IiByeD0iMiIgZmlsbD0iIzZCNERGRiIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIuMiIvPjxyZWN0IHg9IjEyIiB5PSIxOSIgd2lkdGg9IjYiIGhlaWdodD0iMTIiIHJ4PSIxLjgiIGZpbGw9IiMxQTE0MTAiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") 15 2, auto}
  /* «lit» torch on anything clickable. Includes elements that set their own
     cursor:pointer (nav links, faq, gateway cards, to-top…) so the torch wins. */
  a,button,summary,label,[role="button"],[data-book],.btn,
  .exp-card,.game-card,.branch-card,.quote-card,.tab,
  .nav__top,.nav__links>a,.nav__menu a,.see-all,.hub-call,.theme-toggle,
  .faq__q,.to-top,.branch-grid--gateway .branch-card{cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48Y2lyY2xlIGN4PSIxNS41IiBjeT0iOCIgcj0iOSIgZmlsbD0iI0ZGQzIzQiIgb3BhY2l0eT0iMC4yNSIvPjxwYXRoIGQ9Ik0xNS41IDFjLTQuNSA1LjUtNS41IDEwIDAgMTMuNSA1LjUtMy41IDQuNS04IDAtMTMuNXoiIGZpbGw9IiNGRjU0MzYiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTUuNSA1Yy0yLjIgMy0yLjIgNS41IDAgNyAyLjItMS41IDIuMi00IDAtN3oiIGZpbGw9IiNGRkMyM0IiLz48cmVjdCB4PSIxMCIgeT0iMTUiIHdpZHRoPSIxMSIgaGVpZ2h0PSI2IiByeD0iMiIgZmlsbD0iIzZCNERGRiIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIuMiIvPjxyZWN0IHg9IjEyLjUiIHk9IjIwIiB3aWR0aD0iNiIgaGVpZ2h0PSIxMSIgcng9IjEuOCIgZmlsbD0iIzFBMTQxMCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") 16 1, pointer}
  /* never hijack the text caret in editable fields */
  input,textarea,select,[contenteditable="true"]{cursor:text}
}

/* card-icon IDLE animations — run by default on desktop AND phone; each icon does a
   quick on-theme move then rests, looping every 2s. Staggered via negative delays so
   they don't all fire in unison. Reduced-motion users get static icons. */
@media (prefers-reduced-motion:no-preference){
  .exp-card--board   .exp-card__icon svg{animation:iconDice 2s ease-in-out infinite}
  .exp-card--rage    .exp-card__icon svg{transform-origin:58% 82%;animation:iconHammer 2s ease-in-out -.4s infinite}
  .exp-card--karaoke .exp-card__icon svg{transform-origin:50% 85%;animation:iconMic 2s ease-in-out -.8s infinite}
  .exp-card--cinema  .exp-card__icon svg{animation:iconFilm 2.2s ease-in-out -1.2s infinite}
  .exp-card--escape  .exp-card__icon svg{animation:iconLock 2s ease-in-out -1.6s infinite}
}
/* action happens in the first ~25% of the cycle, then holds neutral (the rest) */
@keyframes iconDice{0%{transform:rotate(0) scale(1)}18%{transform:rotate(360deg) scale(1.14)}26%,100%{transform:rotate(360deg) scale(1)}}
@keyframes iconHammer{0%{transform:rotate(0)}8%{transform:rotate(-26deg)}16%{transform:rotate(8deg)}24%,100%{transform:rotate(0)}}
@keyframes iconMic{0%{transform:rotate(0)}7%{transform:rotate(-10deg)}15%{transform:rotate(10deg)}22%{transform:rotate(-6deg)}28%,100%{transform:rotate(0)}}
@keyframes iconFilm{0%{transform:rotate(0)}20%{transform:rotate(360deg)}28%,100%{transform:rotate(360deg)}}
@keyframes iconLock{0%{transform:translateY(0) scale(1)}10%{transform:translateY(-4px) scale(1.14)}22%,100%{transform:translateY(0) scale(1)}}

/* ==========================================================================
   19c. PLAYFUL MICRO-INTERACTIONS — hover lift+tilt, chip/badge pop, CTA surprise.
   Hover effects gated to pointer + no-preference (touch/reduced-motion get the
   plain site). Press-into-shadow already lives on the primitives; this is the
   hover/tilt/pop layer. Transform/box-shadow only → no layout shift.
   ========================================================================== */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  /* cards rise + tilt a touch on hover, shadow grows (overrides the plain lift) */
  .exp-card,.game-card,.branch-card,.review-card,.quote-card,.step{
    transition:transform .16s var(--spring),box-shadow .16s ease}
  .exp-card:hover,.game-card:hover,.branch-card:hover,
  .review-card:hover,.quote-card:hover,.step:hover{
    transform:translate(-2px,-3px) rotate(-1deg);box-shadow:var(--sh-lg)}
  /* accent chips + badges pop on hover (keep the pre-rotated badges' tilt) */
  .bchip,.price-tag,.price-chip,.gchip,.room-tag,.badge{
    transition:transform .18s var(--spring)}
  .bchip:hover,.price-tag:hover,.price-chip:hover,.gchip:hover,.room-tag:hover{
    transform:scale(1.09) rotate(-2deg)}
  /* the primary «رزرو» CTA flashes «آماده‌ای؟» on hover — accessible name stays
     «رزرو تجربه» (real text kept in the DOM; the swap is a decorative ::after) */
  .btn--primary[data-book-cta]{position:relative}
  .btn--primary[data-book-cta]::after{content:"آماده‌ای؟";position:absolute;inset:0;
    display:flex;align-items:center;justify-content:center;color:#fff;font:inherit;
    opacity:0;transform:scale(.9);pointer-events:none;border-radius:inherit;
    transition:opacity .16s ease,transform .16s var(--spring)}
  .btn--primary[data-book-cta]:hover{color:transparent}
  .btn--primary[data-book-cta]:hover::after{opacity:1;transform:none}
}
/* escape-room card badges («جدید» / «جایزه‌دار») pulse by THEMSELVES — a periodic
   attention wobble+pop around their -5° rest, on desktop AND phone. Reduced-motion
   users get the static badge. Transform-only. */
@media (prefers-reduced-motion:no-preference){
  .badge--new,.badge--prize{animation:badgePulse 2.6s ease-in-out infinite}
}
@keyframes badgePulse{0%{transform:rotate(-5deg) scale(1)}9%{transform:rotate(-9deg) scale(1.15)}18%{transform:rotate(-2deg) scale(1.1)}28%,100%{transform:rotate(-5deg) scale(1)}}

/* ==========================================================================
   20. DARK THEME
   ========================================================================== */

/* The two dark-token sets are identical; [data-theme="dark"] always wins over
   the media-query rule because of source order (later = higher priority). */

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#1C1510;
    --fg:#F0E6CF;
    --surface:#2A1F14;
    --surface-2:#231910;
    --green-deep:#4ACA6A;
    color-scheme:dark;
  }
}

[data-theme="dark"]{
  --paper:#1C1510;
  --fg:#F0E6CF;
  --surface:#2A1F14;
  --surface-2:#231910;
  --green-deep:#4ACA6A;
  color-scheme:dark;
}
/* explicit light choice → light UA controls (overrides the OS if it's dark) */
[data-theme="light"]{color-scheme:light}

/* Components that need explicit dark overrides beyond token swaps */

/* body background & grain use --paper / --fg tokens — already covered by body rule */
/* nav background: paper */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .nav__top{background:var(--paper)}
  :root:not([data-theme="light"]) .mobile-menu{background:var(--paper)}
  :root:not([data-theme="light"]) .sheet__bg{background:rgba(0,0,0,.75)}
}
[data-theme="dark"] .nav__top{background:var(--paper)}
[data-theme="dark"] .mobile-menu{background:var(--paper)}
[data-theme="dark"] .sheet__bg{background:rgba(0,0,0,.75)}

/* ---- Logo theme swap — driven by the SITE theme (data-theme), NOT the OS color
   scheme. The inline theme-init script sets data-theme before the header paints
   (no flash), so this is consistent across every browser and immune to Android
   "force dark" (which also gets the color-scheme hint below). Two <img>s per logo
   are shipped; we display-toggle them (reliable everywhere, unlike content:url).
   The wordmark shows at all sizes; the mark (icon) only on desktop (≥820).       */
.nav__wordmark--light{display:none}
[data-theme="dark"] .nav__wordmark--dark{display:none}
[data-theme="dark"] .nav__wordmark--light{display:block}

/* Theme toggle button */
.theme-toggle{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;padding:0;
  border:var(--bd);border-radius:50%;
  background:var(--surface);box-shadow:var(--sh-sm);
  cursor:pointer;transition:box-shadow .15s,transform .15s;
  flex-shrink:0;
}
.theme-toggle:hover{box-shadow:var(--sh)}
.theme-toggle:active{transform:translate(2px,2px);box-shadow:none}
.theme-toggle svg{width:16px;height:16px;display:block;stroke:var(--fg);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* menu variant (mobile): a full-width labelled row instead of the circular icon button.
   Lives inside the hamburger menu, so it only shows on mobile (menu is hidden ≥880). */
.theme-toggle--menu{width:100%;height:auto;justify-content:flex-start;gap:10px;
  padding:10px 6px;border:0;border-radius:var(--r-sm);background:transparent;box-shadow:none;
  color:var(--fg);font-family:inherit;font-weight:800;font-size:1rem;margin-top:2px}
.theme-toggle--menu:hover{background:var(--surface-2);box-shadow:none}
.theme-toggle--menu:active{transform:none;box-shadow:none}
.theme-toggle--menu svg{width:20px;height:20px}
/* In light mode show sun; in dark mode show moon */
.tt-moon{display:none}
.tt-sun{display:block}
[data-theme="dark"] .tt-moon{display:block}
[data-theme="dark"] .tt-sun{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .tt-moon{display:block}
  :root:not([data-theme="light"]) .tt-sun{display:none}
}

/* ==========================================================================
   20. REDUCED MOTION  (§6 — all animations off / instant)
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto !important}
  .reveal{opacity:1 !important;transform:none !important;transition:none !important}
  /* cycling hero: no crossfade / recolour transitions — JS shows a static first
     slide and skips auto-rotate (dots still switch manually) */
  .hero__poster,.hero__word,.hero__expname,.hero__eyebrow,.hero__sub,
  .hero__art::before,.hero__txt::before,.hero__txt::after{transition:none !important}
  /* no entrance reveal, poster punch, dot-fill, word flip or pin pop under reduced motion */
  .hero__eyebrow,.hero__dots,.hero__title,.hero__expname,.hero__sub,.hero__row,
  .hero__poster,.hero__poster.is-on,.hero__dots button.on,
  .hero__word,.hero__word.is-flip,.hero__pin,.hero__pin.is-pop{animation:none !important}
  .hero__dots button.on{background:var(--ac) !important}
  .to-top{transition:none !important}
  .mobile-menu,.sheet__panel{animation:none !important}
  .bookbar{transition:none !important}
  .kbook{transition:none !important}
  .btn,.exp-card,.game-card,.gback a,.hero__cta{transition:none !important}
  .nav__menu,.nav__menu a,.m-acc__chev,.nav__links>a,.nav__top{transition:none !important}
  .nav__menu{transform:none !important}
}
