/* Fonts, served from this site (IBM Plex: SIL Open Font License; Big Shoulders Display, Special Elite: OFL / Apache 2.0). */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/big-shoulders-display-var-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/big-shoulders-display-var-latin.woff2) format('woff2'); 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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); 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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); 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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-mono-600-latin.woff2) format('woff2'); 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: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/ibm-plex-sans-var-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/ibm-plex-sans-var-latin.woff2) format('woff2'); 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: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-serif-600-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-serif-600-latin.woff2) format('woff2'); 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: 'IBM Plex Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-serif-700-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-serif-700-latin.woff2) format('woff2'); 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: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/special-elite-400-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/special-elite-400-latin.woff2) format('woff2'); 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; }

/* Suspect Zero: mobile-first stylesheet.
   Breakpoints: 600px (large phones / small tablets), 900px (tablets landscape / laptops), 1200px (desktop). */

:root {
  --paper: #f2ecdf;
  --paper-2: #e9e1cf;
  --card: #fbf8f1;
  --ink: #1c1a16;
  --ink-2: #3a362e;
  --muted: #6d665a;
  --line: #d6ccb7;
  --line-2: #c3b79e;
  --night: #0d0c09;
  --dark: #16150f;
  --dark-2: #23211a;
  --on-dark: #efe8d8;
  --on-dark-muted: #a9a18f;
  --stamp: #b3261e;
  --stamp-dark: #8f1d17;
  --ok: #2f6b3f;
  --warn: #8a5a1f;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --type: "Special Elite", "Courier New", monospace;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgb(28 26 22 / 8%), 0 8px 24px rgb(28 26 22 / 8%);
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw + .5rem, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw + .6rem, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1vw + .9rem, 1.4rem); font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, .6vw + .95rem, 1.25rem); color: var(--ink-2); max-width: 60ch; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lede, .section--dark .muted { color: var(--on-dark-muted); }
.section--alt { background: var(--paper-2); }
.muted { color: var(--muted); }

.label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}
.section--dark .label { color: #e2685f; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--stamp); border-color: var(--stamp); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--stamp { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.btn--stamp:hover { background: var(--stamp-dark); border-color: var(--stamp-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .btn--ghost, .cine-hero .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.section--dark .btn--ghost:hover, .cine-hero .btn--ghost:hover { background: var(--on-dark); color: var(--dark); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------- Header */
.site-header {
  top: env(safe-area-inset-top, 0px);
  position: sticky; z-index: 50;
  background: rgb(22 21 15 / 96%); color: var(--on-dark);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #2f2c24;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border: 2px solid var(--stamp); border-radius: 50%; display: grid; place-items: center; color: var(--stamp); font-family: var(--type); font-size: .95rem; transform: rotate(-8deg); }
.nav { display: none; }
.nav a { text-decoration: none; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); padding: 8px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--stamp); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: transparent; border: 1px solid #3a372d; color: var(--on-dark); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--on-dark-muted); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--stamp); color: #fff; border-radius: 10px; font: 600 .7rem/20px var(--mono); text-align: center;
}
.cart-count[hidden] { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--dark); color: var(--on-dark);
  padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  overflow-y: auto;
}
.mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a { text-decoration: none; font-family: var(--serif); font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid #2f2c24; }
.mobile-nav a[aria-current="page"] { color: #e2685f; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: flex; gap: 28px; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ----------------------------------------------------------------- Cinematic home */
.home { background: var(--night); }
.display-2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .98; font-size: clamp(2.2rem, 5vw + .6rem, 4.4rem); }
.section--night { background: var(--night); color: var(--on-dark); }
.section--night .lede, .section--night .muted { color: var(--on-dark-muted); }
.section--night .label { color: #e2685f; }
.section--night .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.section--night .btn--ghost:hover { background: var(--on-dark); color: var(--night); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: .95rem; }

.cine-hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); isolation: isolate; }
.cine-hero__content { position: relative; z-index: 2; padding-top: clamp(72px, 14vw, 160px); padding-bottom: clamp(88px, 12vw, 150px); }
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .9; animation: hero-push 40s ease-in-out infinite alternate; transform-origin: 70% 55%; }
@keyframes hero-push { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.cine-hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(13 12 9 / 92%) 0%, rgb(13 12 9 / 78%) 38%, rgb(13 12 9 / 30%) 75%, rgb(13 12 9 / 20%) 100%),
    linear-gradient(180deg, rgb(13 12 9 / 40%), rgb(13 12 9 / 0%) 25%, rgb(13 12 9 / 0%) 70%, rgb(13 12 9 / 95%));
}
@media (max-width: 899px) { .cine-hero__shade { background: linear-gradient(180deg, rgb(13 12 9 / 70%), rgb(13 12 9 / 82%) 50%, rgb(13 12 9 / 96%)); } }
.cine-hero__shade::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block; font-family: var(--type); font-size: clamp(.95rem, 1vw + .7rem, 1.2rem); color: #ff6b5e;
  border: 2px solid currentColor; border-radius: 4px; padding: 4px 14px; transform: rotate(-3deg); margin-bottom: 24px; letter-spacing: .06em; text-transform: uppercase;
}
.hero-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .88; letter-spacing: .005em; font-size: clamp(3.4rem, 10vw + 1rem, 9rem); margin: 0 0 28px; max-width: 12ch; }
.hero-title span { display: block; }
.hero-title .hl { color: #ff6b5e; font-size: .52em; line-height: 1; margin-top: .25em; max-width: 16ch; }
.hero-lede { font-size: clamp(1.05rem, .6vw + .95rem, 1.3rem); color: #cfc6b2; max-width: 56ch; margin-bottom: 32px; }
.ticker { position: relative; z-index: 2; border-block: 1px solid #2b2820; background: rgb(13 12 9 / 85%); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; width: max-content; gap: 40px; animation: ticker 120s linear infinite; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.ticker__track span { white-space: nowrap; }
.ticker__track span::before { content: "■"; color: var(--stamp); margin-right: 40px; font-size: .6em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

.stat-band { background: var(--stamp); color: #fff; }
.stat-band__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; padding-block: 28px; }
@media (min-width: 900px) { .stat-band__grid { grid-template-columns: repeat(4, 1fr); padding-block: 32px; } }
.stat-band b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 4vw + 1rem, 4rem); line-height: .9; }
.stat-band span { font-size: .92rem; opacity: .92; }

/* Five worlds: a quiet index, one row per series. The series colour is only a thin tab until hover. */
.worlds { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid #2b2820; }
.world {
  --accent: var(--stamp);
  position: relative; display: grid; align-items: center; gap: 6px 16px; text-decoration: none; color: var(--on-dark);
  grid-template-columns: 1fr auto; grid-template-areas: "main go" "tag tag" "meta meta";
  padding: 22px 4px 22px 0; border-bottom: 1px solid #2b2820; transition: background .2s;
}
.world::before { content: ""; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 3px; background: var(--accent); opacity: .85; transition: top .2s, bottom .2s; }
.world__main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.world__genre { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.world__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.7rem, 2.2vw + 1rem, 2.6rem); line-height: 1; color: #f6f0e2; }
.world__tag { grid-area: tag; color: #bfb7a4; font-size: 1rem; }
.world__meta { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: .78rem; color: var(--on-dark-muted); }
.world__meta b { color: #e9e2d1; font-weight: 500; }
.world > .world__meta:nth-of-type(3) { grid-area: meta; }
.world > .world__meta:nth-of-type(4) { grid-area: meta; justify-self: end; }
.world__go { grid-area: go; font-size: 1.4rem; color: var(--on-dark-muted); transition: transform .2s, color .2s; }
.world:hover, .world:focus-visible { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.world:hover::before, .world:focus-visible::before { top: 0; bottom: 0; }
.world:hover .world__go, .world:focus-visible .world__go { transform: translateX(4px); color: #f6f0e2; }
@media (max-width: 599px) {
  .world { grid-template-areas: "main go" "tag tag" "m1 m1" "m2 m2"; }
  .world > .world__meta:nth-of-type(3) { grid-area: m1; }
  .world > .world__meta:nth-of-type(4) { grid-area: m2; justify-self: start; }
  .world::before { left: -10px; }
}
@media (min-width: 1000px) {
  .world { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 200px 150px 32px; grid-template-areas: none; gap: 28px; padding-block: 28px; padding-left: 8px; }
  .world > * { grid-area: auto !important; justify-self: start !important; }
  .world__meta { flex-direction: column; gap: 2px; }
  .world::before { top: 28px; bottom: 28px; }
  .world__go { justify-self: end !important; }
}

/* "Two documents, both can't be true" */
.lie { background: var(--paper); overflow-x: clip; }
.lie__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .lie__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.lie__copy .display-2 { color: var(--ink); }
.lie-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: s; }
.lie-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--ink-2); }
.lie-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.1; color: var(--stamp); }
.lie-steps b { color: var(--ink); }
.lie__docs { position: relative; display: grid; gap: 20px; padding: 12px 4px 40px; }
.evidence { background: #fbf7ec; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 2px 4px rgb(0 0 0 / 8%), 0 18px 40px rgb(28 26 22 / 16%); padding: 20px 22px; font-size: .98rem; }
.evidence header { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; margin-bottom: 14px; }
.evidence--statement { transform: rotate(-2deg); font-family: var(--type); font-size: 1.05rem; line-height: 1.55; max-width: 460px; }
.evidence--statement footer { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 12px; }
.evidence--log { transform: rotate(1.6deg); justify-self: end; width: min(100%, 400px); }
.evidence table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .88rem; font-variant-numeric: tabular-nums; }
.evidence td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.evidence mark, .evidence .hit td { background: none; color: inherit; box-shadow: inset 0 -.55em 0 rgb(217 71 61 / 28%); }
.evidence .hit td { font-weight: 600; }
.contradiction {
  position: absolute; right: 6%; bottom: 0; font-family: var(--type); font-size: clamp(1.2rem, 2vw + .6rem, 1.7rem); color: var(--stamp);
  border: 3px solid currentColor; border-radius: 6px; padding: 4px 14px; transform: rotate(-9deg); background: rgb(251 247 236 / 80%);
}
/* Fly-in: elements rest visible; only hidden while waiting below the fold */
.fly { transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.is-waiting .fly--left { transform: translateX(-60px) rotate(-8deg); opacity: 0; }
.is-waiting .fly--right { transform: translateX(60px) rotate(7deg); opacity: 0; }
.is-waiting .fly--pop { transform: scale(1.6) rotate(-9deg); opacity: 0; }
.is-in .fly--right { transition-delay: .25s; }
.is-in .fly--pop { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .9s, opacity .2s .9s; }

/* "What is actually in the box": the client's comparison design (docs/design-reference/).
   Wide: intro left, table right. Medium: intro on top, 3-column table. Phone: label above two cells. */
.inbox { --ib-bg: #131210; --ib-cell: #1f1e1a; --ib-line: #262420; --ib-fg: #f1ebdd; --ib-muted: #9a927f; --ib-label: #a49c89;
  background: var(--ib-bg); color: var(--ib-fg); padding-block: clamp(56px, 8vw, 104px); }
.inbox__grid { display: grid; gap: 40px; }
.inbox__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 22px; font-family: var(--mono); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ib-label); }
.inbox__eyebrow span { color: var(--ib-fg); }
.inbox__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--stamp); }
.inbox__title { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem); line-height: 1.05; letter-spacing: -.01em; margin: 0; color: var(--ib-fg); max-width: 12ch; }
.inbox__rule { width: 84px; height: 3px; border: 0; background: var(--stamp); margin: 28px 0; }
.inbox__lede { font-family: "Spectral", Georgia, serif; font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); line-height: 1.5; color: #c9c1ae; max-width: 30ch; margin: 0; }
.inbox__seal { display: grid; gap: 8px; margin: 32px 0 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ib-muted); }
.inbox__table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: "Spectral", Georgia, serif; }
.inbox__table thead th { font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; text-align: left; color: var(--ib-label); padding: 0 16px 14px; border-bottom: 1px solid #3a3730; }
.inbox__table thead th.us { color: var(--ib-fg); }
.inbox__table tbody th { font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; text-align: left; color: var(--ib-label); padding: 12px 16px 12px 0; vertical-align: middle; }
.inbox__table tbody td { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); line-height: 1.45; color: var(--ib-muted); padding: 12px 16px; vertical-align: middle; }
.inbox__table tbody td.us { color: var(--ib-fg); position: relative; z-index: 0; }
.inbox__table tbody td.us::before { content: ""; position: absolute; inset: 12px 0; background: var(--ib-cell); z-index: -1; }
.inbox__table tbody tr > * { border-bottom: 1px solid var(--ib-line); padding-block: 26px; }
.inbox__table tbody td.us { padding-inline: 16px; }
@media (min-width: 1560px) { .inbox .container { max-width: 1480px; } }
@media (min-width: 1100px) {
  .inbox__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 64px; }
  .inbox__table tbody th { white-space: nowrap; padding-right: 32px; }
  .inbox__table thead th { white-space: nowrap; }
  .inbox__intro { display: flex; flex-direction: column; }
  .inbox__seal { margin-top: auto; padding-top: 48px; }
  .inbox__table thead th { padding-top: 0; }
}
@media (max-width: 1099px) {
  .inbox__title { max-width: 16ch; }
  .inbox__lede { max-width: 46ch; }
  .inbox__seal { display: none; } /* shown under the table instead */
  .inbox__table { margin-top: -8px; }
  .inbox::after { content: "Sealed solution envelope  •  Name the culprit, or do not open it"; display: block; white-space: pre-wrap; padding: 32px max(16px, var(--gutter)) 0; max-width: 1200px; margin: 0 auto; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ib-muted); }
}
/* Phones: each row becomes a label, then the two answers side by side */
@media (max-width: 640px) {
  .inbox__table thead tr { display: grid; grid-template-columns: 1fr 1fr; }
  .inbox__table thead td { display: none; }
  .inbox__table thead th { padding-inline: 12px 4px; letter-spacing: .16em; font-size: .7rem; }
  .inbox__table tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; border-bottom: 1px solid var(--ib-line); padding-block: 18px; }
  .inbox__table tbody tr > * { border-bottom: 0; padding-block: 0; }
  .inbox__table tbody th { grid-column: 1 / -1; padding: 0 0 10px; font-size: .7rem; letter-spacing: .16em; }
  .inbox__table tbody td { font-size: 1.05rem; padding: 12px; }
  .inbox__table tbody td.us::before { inset: 0; }
  .inbox__table tbody tr[hidden] { display: none; }
}

.section--paper { background: var(--paper); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hero-photo img, .ticker__track { animation: none; } }

/* ----------------------------------------------------------------- Box art (drawn, no image needed) */
.box-art {
  --accent: var(--stamp);
  position: relative; aspect-ratio: 4 / 5; width: 100%;
  background:
    linear-gradient(90deg, var(--accent) 0 14px, transparent 14px),
    linear-gradient(180deg, #2a2720, #1d1b16);
  color: var(--on-dark);
  border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%), var(--shadow);
  display: flex; flex-direction: column; padding: 8% 8% 8% calc(8% + 14px);
  container-type: inline-size;
}
.box-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.box-art .ba-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: max(10px, 4cqi); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.box-art .ba-series { margin-top: auto; font-family: var(--mono); font-size: max(10px, 4.2cqi); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 55%, white); }
.box-art .ba-title { font-family: var(--serif); font-weight: 700; font-size: max(18px, 11cqi); line-height: 1.05; margin: 4px 0 8px; color: #f6f0e2; }
.box-art .ba-meta { font-family: var(--mono); font-size: max(10px, 3.8cqi); color: var(--on-dark-muted); letter-spacing: .06em; }
.box-art .ba-stamp {
  position: absolute; top: 24%; right: 6%;
  font-family: var(--type); font-size: max(12px, 6.5cqi); letter-spacing: .08em; color: #d9473d;
  border: 3px solid #d9473d; padding: 2px 10px; border-radius: 4px; transform: rotate(-12deg); opacity: .85;
  mix-blend-mode: screen;
}
.box-art .ba-tape { position: absolute; top: 0; left: 50%; width: 22%; height: 7%; background: rgb(233 222 196 / 18%); transform: translateX(-50%); }

/* ----------------------------------------------------------------- Steps */
.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 32px 0 0; list-style: none; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: .8rem; color: var(--stamp); letter-spacing: .1em; display: block; margin-bottom: 12px; }
.step p { margin: 0; color: var(--ink-2); }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------------------------------------------- Series cards */
.series-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 600px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .series-grid { grid-template-columns: repeat(3, 1fr); } }
.series-card {
  --accent: var(--stamp);
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--dark-2); color: var(--on-dark); border: 1px solid #34312a; border-top: 4px solid var(--accent);
  transition: transform .15s, border-color .15s;
}
.series-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 70%, #34312a); }
.series-card .sc-genre { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 50%, white); }
.series-card h3 { margin: 0; color: #f6f0e2; }
.series-card p { margin: 0; color: var(--on-dark-muted); font-size: .95rem; }
.series-card .sc-role { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: .78rem; color: var(--on-dark); }
.series-card .sc-role b { color: color-mix(in srgb, var(--accent) 50%, white); font-weight: 500; }

/* ----------------------------------------------------------------- Product cards */
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 599px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card > a { text-decoration: none; display: block; }
.product-card .box-art { border-radius: 0; box-shadow: none; }
.product-card .pc-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .pc-series { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font-size: 1.1rem; margin: 0; }
.product-card h3 a { text-decoration: none; }
.product-card .pc-tag { font-size: .9rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .pc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 599px) {
  .product-card .pc-tag { display: none; }
  .product-card .pc-foot .btn { width: 100%; }
}

.price { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--paper-2); color: var(--ink-2); }
.pill--stamp { background: var(--stamp); color: #fff; }
.pill--ok { background: #dcebdc; color: var(--ok); }
.pill--warn { background: #f1e2c8; color: var(--warn); }


/* ----------------------------------------------------------------- Shop toolbar */
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw + .8rem, 3.25rem); }
.toolbar { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toolbar-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (min-width: 900px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ----------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fffdf8; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  font-size: 16px; /* prevents iOS zoom on focus */
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(179 38 30 / 18%); }
.input[aria-invalid="true"] { border-color: var(--stamp); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.form-msg { padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; }
.form-msg--error { background: #f6dcd9; color: var(--stamp-dark); }
.form-msg--ok { background: #dcebdc; color: var(--ok); }
.form-msg--info { background: #f1e2c8; color: #5d3d14; }
.select-native { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

/* ----------------------------------------------------------------- Product page */
.pdp { display: grid; gap: 32px; padding: clamp(24px, 5vw, 56px) 0; }
.pdp-visual { max-width: 480px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } .pdp-visual { position: sticky; top: calc(var(--header-h) + 24px); } }
.breadcrumb { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--stamp); }
.pdp h1 { font-size: clamp(2rem, 3vw + 1rem, 3.1rem); margin-bottom: 8px; }
.pdp .price { font-size: 1.5rem; }
.objective { border-left: 4px solid var(--stamp); background: var(--card); padding: 16px 18px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.objective .label { margin-bottom: 4px; }
.objective p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
@media (min-width: 600px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.specs div { background: var(--card); padding: 14px; }
.specs dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 600; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 24px 0 12px; }
.buy-row .btn { flex: 1 1 200px; }
.qty { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fffdf8; }
.qty button { width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { color: var(--stamp); }
.qty input { width: 44px; border: 0; text-align: center; background: transparent; font-family: var(--mono); font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border: 2px solid var(--stamp); border-radius: 2px; }
.note { font-size: .9rem; color: var(--muted); }
.mobile-buy-bar { display: none; }
@media (max-width: 899px) {
  .mobile-buy-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / 8%);
    transform: translateY(100%); transition: transform .2s;
  }
  .mobile-buy-bar.show { transform: none; }
  .mobile-buy-bar .btn { flex: 1; max-width: 240px; }
}

/* ----------------------------------------------------------------- Cart & checkout */
.checkout { display: grid; gap: 32px; padding: clamp(24px, 5vw, 48px) 0 64px; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }
.panel h2 { font-size: 1.4rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line .box-art { padding: 10% 8% 10% calc(8% + 6px); background: linear-gradient(90deg, var(--accent) 0 6px, transparent 6px), linear-gradient(180deg, #2a2720, #1d1b16); }
.cart-line .box-art > * { display: none; }
.cart-line .cl-title { font-weight: 600; text-decoration: none; }
.cart-line .cl-meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.cart-line .cl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.link-btn:hover { color: var(--stamp); }
.totals { display: grid; gap: 8px; margin: 16px 0; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 1.15rem; }
.totals dd, .totals dt { margin: 0; }
.ship-hint { font-size: .85rem; background: var(--paper-2); border-radius: var(--radius); padding: 10px 12px; }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state .brand-mark { width: 64px; height: 64px; font-size: 2rem; margin: 0 auto 16px; }
.trust { display: grid; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* ----------------------------------------------------------------- Feature split + FAQ */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.evidence-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
.evidence-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: .92rem; }
.evidence-list b { display: block; font-family: var(--mono); font-size: 1.4rem; color: var(--stamp); font-weight: 600; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); font-size: 1.4rem; color: var(--stamp); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

/* ----------------------------------------------------------------- About */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }
.series-rows { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.series-row { --accent: var(--stamp); display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.series-row .sr-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; border-left: 4px solid var(--accent); padding-left: 12px; }
.series-row .sr-role { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.series-row p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .series-row { grid-template-columns: 240px 1fr; } .series-row .sr-meta { grid-row: span 2; } }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 2px solid var(--ink); padding-top: 12px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw + .8rem, 2.6rem); line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ----------------------------------------------------------------- Contact */
.contact-grid { display: grid; gap: 32px; padding: clamp(24px, 5vw, 56px) 0 64px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.contact-card:hover { border-color: var(--ink); }
.contact-card svg { width: 22px; height: 22px; flex: none; color: var(--stamp); margin-top: 2px; }
.contact-card b { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ----------------------------------------------------------------- Order status */
.status-card { max-width: 640px; margin: 0 auto; text-align: center; }
.status-stamp { display: inline-block; font-family: var(--type); font-size: clamp(1.6rem, 5vw, 2.4rem); padding: 6px 18px; border: 4px solid currentColor; border-radius: 6px; transform: rotate(-6deg); margin: 8px 0 24px; }
.status-stamp.paid, .status-stamp.confirmed, .status-stamp.shipped, .status-stamp.delivered { color: var(--ok); }
.status-stamp.pending { color: var(--warn); }
.status-stamp.failed, .status-stamp.cancelled, .status-stamp.returned { color: var(--stamp); }
.order-items { text-align: left; margin: 24px 0; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.site-footer h4 { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #2f2c24; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; }

/* ----------------------------------------------------------------- Toast + misc */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 32px); font-size: .95rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #f0a59f; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.demo-banner { background: #f1e2c8; color: #5d3d14; font-size: .85rem; text-align: center; padding: 8px var(--gutter); }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ----------------------------------------------------------------- Admin */
.admin-wrap { padding: 32px 0 64px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 16px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tab[aria-selected="true"] { border-bottom-color: var(--stamp); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper-2); position: sticky; top: 0; }
table.data td.num, table.data th.num { text-align: right; font-family: var(--mono); }
table.data .input { min-height: 38px; padding: 6px 8px; font-size: 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stats .panel b { display: block; font-family: var(--mono); font-size: 1.5rem; }

/* Small box art (two-up phone grids): drop the stamp and fine print so the title stays readable */
@container (max-width: 210px) {
  .box-art .ba-stamp, .box-art .ba-meta, .box-art .ba-top span:first-child { display: none; }
}

/* Case covers with a generated image: the photo fills the cover, text sits on a dark fade */
.box-art.has-image { background: #1d1b16; }
.box-art.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 12 9 / 55%) 0%, rgb(13 12 9 / 0%) 28%, rgb(13 12 9 / 15%) 50%, rgb(13 12 9 / 92%) 100%); }
.box-art.has-image > :not(img) { position: relative; z-index: 1; }
.box-art.has-image .ba-stamp { position: absolute; }
.box-art.has-image .ba-tape { display: none; }
.box-art.has-image::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--accent); z-index: 1; }

.pill--level { vertical-align: 1px; margin-left: 6px; padding: 2px 7px; font-size: .64rem; }
.pill--medium { background: #e4ecdf; color: #2f5d3a; }
.pill--hard { background: #f6dcd9; color: var(--stamp-dark); }
.page-head h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: clamp(2.6rem, 6vw + .6rem, 5rem); }

/* Shop filters */
.shop-filters { display: grid; gap: 16px; margin: 24px 0 28px; }
.shop-search { max-width: 520px; }
.segmented { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.segmented button { min-height: 44px; padding: 8px 16px; border: 0; background: transparent; cursor: pointer; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.segmented button + button { border-left: 1.5px solid var(--line-2); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.show-more { display: flex; justify-content: center; margin-top: 32px; }

/* Case cover: the shared folder photo (assets/img/case-folder.webp, 1030x950) with the case typed on it.
   Positions are percentages of that photo; the folder is turned about 10 degrees, so the type is too. */
.box-art.case-cover { aspect-ratio: 1030 / 950; padding: 0; display: block; background: #2a2219; color: #231a11; container-type: inline-size; }
.case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-cover > span { position: absolute; font-family: var(--type); color: #231a11; mix-blend-mode: multiply; transform-origin: 0 100%; white-space: nowrap; }
.case-cover .cc-ref { left: 18.4%; top: 26%; font-size: 1.9cqi; letter-spacing: .04em; transform: rotate(-10.5deg); }
.case-cover .cc-title {
  left: 48%; top: 50%; width: 60%; transform: translate(-50%, -50%) rotate(-10deg); transform-origin: 50% 50%;
  white-space: normal; text-align: center; display: grid; gap: 1.6cqi; justify-items: center;
}
.case-cover .cc-title b { font-weight: 400; font-size: clamp(15px, 7.4cqi, 64px); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.case-cover .cc-title small { font-family: var(--mono); font-size: clamp(9px, 2.5cqi, 20px); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
/* On the black strip under the printed "CASE NAME:" label */
.case-cover .cc-name { left: 68.8%; top: 84.9%; max-width: 18.5%; overflow: hidden; text-overflow: ellipsis; font-size: 1.55cqi; color: #efe4c8; mix-blend-mode: normal; transform: rotate(-8deg); }
@container (max-width: 380px) { .case-cover .cc-name { display: none; } .case-cover .cc-ref { font-size: 2.6cqi; } }
@container (max-width: 240px) { .case-cover .cc-title small { display: none; } .case-cover .cc-title b { font-size: 9cqi; } }
.product-card .box-art.case-cover { border-radius: 0; }
.cart-line .box-art.case-cover > span { display: none; }
.cart-line .box-art.case-cover > img { display: block; }

/* Case page gallery: the case file, then the evidence desk */
.gallery__slide[hidden] { display: none; }
.gallery__photo { width: 100%; aspect-ratio: 1030 / 950; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumbs button { width: 76px; aspect-ratio: 1030 / 950; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--dark); opacity: .7; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--stamp); opacity: 1; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__photo--contain { object-fit: contain; background: #141210; }
.gallery__thumbs button img[src*="what-is-in-the-box"] { object-fit: cover; object-position: 0 0; }

/* =====================================================================================
   Cases page: a game "case select" screen. Everything here is scoped to body.page-cases.
   ===================================================================================== */
body.page-cases, body.page-game { --world: #b3261e; background: var(--night); color: var(--on-dark); }

.cs-hero { position: relative; overflow: hidden; border-bottom: 1px solid #2b2820;
  background:
    radial-gradient(60% 120% at 85% 0%, color-mix(in srgb, var(--world) 28%, transparent), transparent 70%),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--night);
  transition: background .4s; }
.cs-hero .container { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.cs-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: #ff6b5e; }
.cs-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5e; box-shadow: 0 0 12px #ff6b5e; animation: cs-blink 1.6s steps(2) infinite; }
@keyframes cs-blink { 50% { opacity: .2; } }
.cs-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: .01em;
  font-size: clamp(2.8rem, 7vw + .5rem, 6rem); margin: 14px 0 12px; color: #f6f0e2; text-shadow: 0 0 40px color-mix(in srgb, var(--world) 35%, transparent); }
.cs-lede { color: #cfc6b2; max-width: 60ch; font-size: clamp(1rem, .5vw + .9rem, 1.15rem); margin: 0; }
.cs-hud { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.cs-hud > div { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border: 1px solid #3a372d; border-radius: 6px; background: rgb(13 12 9 / 70%); }
.cs-hud dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); order: 2; }
.cs-hud dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: #f6f0e2; }
@media (max-width: 599px) {
  .cs-hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
  .cs-hud > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .cs-hud dt { order: 2; font-size: .6rem; letter-spacing: .12em; }
  .cs-hud dd { font-size: 1.6rem; }
}

.cs-board { padding-bottom: 88px; }
.cs-controls { display: grid; gap: 18px; margin: 28px 0 26px; }
.cs-block { display: grid; gap: 8px; min-width: 0; }
.cs-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.cs-row { display: grid; gap: 16px; }
@media (min-width: 900px) { .cs-row { grid-template-columns: auto minmax(0, 1fr) 220px; align-items: end; } }

/* World selector: game-mode tiles */
.cs-worlds { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cs-worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cs-worlds { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cs-world { --accent: #efe8d8; position: relative; display: grid; gap: 4px; text-align: left; min-height: 64px; padding: 12px 14px 12px 18px; cursor: pointer;
  border: 1px solid #34312a; border-radius: 8px; background: #17150f; color: #e9e2d1; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .15s, background .2s; }
.cs-world::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: .7; }
.cs-world__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.cs-world__sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; line-height: 1.35; color: var(--on-dark-muted); }
.cs-world:hover { border-color: color-mix(in srgb, var(--accent) 60%, #34312a); transform: translateY(-2px); }
.cs-world[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, #17150f);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.cs-world[aria-pressed="true"]::before { opacity: 1; }

/* Difficulty selector */
.cs-diff { display: inline-flex; border: 1px solid #34312a; border-radius: 8px; overflow: hidden; background: #17150f; }
.cs-diff button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 0; background: transparent; color: #cfc6b2; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.cs-diff button + button { border-left: 1px solid #34312a; }
.cs-diff button[aria-pressed="true"] { background: var(--stamp); color: #fff; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 6px; height: 12px; border-radius: 1px; background: currentColor; opacity: .25; transform: skewX(-12deg); }
.pips--2 i:nth-child(-n+2), .pips--3 i { opacity: 1; }

.cs-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #34312a; border-radius: 8px; background: #17150f; color: #f1ebdd; font-size: 16px; }
.cs-input::placeholder { color: #7d7564; }
.cs-input:focus { outline: none; border-color: #ff6b5e; box-shadow: 0 0 0 3px rgb(255 107 94 / 20%); }
.cs-select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #cfc6b2 50%), linear-gradient(135deg, #cfc6b2 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.cs-select option { background: #17150f; color: #f1ebdd; }
.cs-count { margin: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--on-dark-muted); }

/* Game cards */
.cs-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 599px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.gcard { --accent: var(--stamp); display: flex; flex-direction: column; border: 1px solid #2b2820; border-radius: 10px; background: linear-gradient(180deg, #1b1913, #141210);
  transition: border-color .2s, box-shadow .2s; animation: gcard-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i), 12) * 30ms); }
@keyframes gcard-in { from { opacity: 0; transform: translateY(14px); } }
.gcard:hover, .gcard:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, #2b2820); box-shadow: 0 14px 40px rgb(0 0 0 / 45%), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.gcard__stage { display: block; padding: 12px 12px 0; perspective: 900px; }
.gcard__tilt { position: relative; display: block; border-radius: 6px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
  box-shadow: 0 10px 24px rgb(0 0 0 / 45%); }
.gcard:hover .gcard__tilt { transition-duration: .08s, .3s; box-shadow: 0 22px 40px rgb(0 0 0 / 55%), 0 0 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.gcard__tilt .box-art { border-radius: 6px; box-shadow: none; }
.gcard__shine { position: absolute; inset: 0; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 70%), transparent 55%); }
.gcard:hover .gcard__shine { opacity: 1; }
.gcard__badge, .gcard__level, .gcard__lock, .gcard__low { position: absolute; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; transform: translateZ(28px); }
.gcard__badge { top: 8px; left: 8px; padding: 4px 7px; border-radius: 4px; background: rgb(13 12 9 / 82%); color: #f1ebdd; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.gcard__level { bottom: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; background: rgb(13 12 9 / 85%); }
.gcard__level--medium { color: #f0c05a; }
.gcard__level--hard { color: #ff6b5e; }
.gcard__lock { inset: 0; display: grid; place-items: center; font-size: .9rem; letter-spacing: .3em; color: #f1ebdd; background: rgb(13 12 9 / 55%); border-radius: 6px; }
.gcard__low { top: 8px; right: 8px; padding: 4px 7px; border-radius: 4px; background: #f0c05a; color: #1d1b16; font-weight: 700; }
.gcard.is-locked .box-art { filter: grayscale(1) brightness(.7); }
.gcard__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.gcard__world { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 65%, white); }
.gcard__title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.02; letter-spacing: .01em; }
.gcard__title a { color: #f6f0e2; text-decoration: none; }
.gcard__title a:hover { color: #fff; }
.gcard__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gcard__price { font-family: var(--mono); font-weight: 600; font-size: 1rem; color: #f1ebdd; }
.gcard__btn { min-height: 40px; padding: 8px 14px; border: 0; cursor: pointer; color: #fff; background: var(--stamp);
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .15s, transform .1s; }
.gcard__btn:hover { background: #d63a2f; }
.gcard__btn:active { transform: scale(.96); }
.gcard__soldout { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 599px) {
  .gcard__stage { padding: 8px 8px 0; }
  .gcard__body { padding: 10px; }
  .gcard__title { font-size: 1.05rem; }
  .gcard__foot .gcard__btn { width: 100%; }
  .gcard__level { font-size: .58rem; padding: 3px 6px; }
}
/* Touch screens: press in instead of tilting */
@media (hover: none) { .gcard__stage:active .gcard__tilt { transform: scale(.97); transition-duration: .1s; } }

.cs-more { min-height: 52px; padding: 12px 28px; cursor: pointer; color: #f1ebdd; background: transparent; border: 1px solid #ff6b5e;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.cs-more:hover { background: rgb(255 107 94 / 12%); }
.cs-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--on-dark-muted); font-family: var(--mono); }
.cs-skel { aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(90deg, #17150f, #221f18, #17150f); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { .gcard { animation: none; } .cs-kicker i { animation: none; } .gcard__tilt { transition: none; } }

/* =====================================================================================
   About and Contact in the same game style (body.page-game). Reuses the .cs-* hero and HUD.
   ===================================================================================== */
.gm-section { padding-block: clamp(40px, 6vw, 72px); }
.gm-section + .gm-section { padding-top: 0; }
.gm-h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: .01em;
  font-size: clamp(2rem, 3.5vw + .8rem, 3.4rem); margin: 10px 0 14px; color: #f6f0e2; }
.gm-panel { position: relative; padding: clamp(20px, 4vw, 40px); border: 1px solid #2b2820; border-radius: 12px;
  background: linear-gradient(180deg, #1b1913, #141210); box-shadow: 0 20px 50px rgb(0 0 0 / 35%); }
.gm-panel::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: #ff6b5e; box-shadow: 0 0 14px rgb(255 107 94 / 60%); }
.gm-prose { max-width: 68ch; color: #cfc6b2; font-size: 1.05rem; }
.gm-prose p { margin: 0 0 1em; }
.gm-brief .gm-prose { columns: 2 320px; column-gap: 40px; max-width: none; }
.gm-brief .gm-prose p { break-inside: avoid; }

/* About: the five worlds as glowing cards (3 + 2 on wide screens, so no card sits alone) */
.gm-worlds { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 700px) { .gm-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-world:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .gm-worlds { grid-template-columns: repeat(6, minmax(0, 1fr)); } .gm-world { grid-column: span 2; } .gm-world:nth-child(n+4) { grid-column: span 3; } }
.gm-world { --accent: var(--stamp); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px 26px; overflow: hidden;
  border: 1px solid #2b2820; border-radius: 12px; text-decoration: none; color: var(--on-dark);
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%), #17150f;
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.gm-world::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.gm-world:hover, .gm-world:focus-visible { transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px color-mix(in srgb, var(--accent) 25%, transparent); }
.gm-world__genre { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 65%, white); }
.gm-world__name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 1.6vw + 1rem, 2.3rem); line-height: .95; color: #f6f0e2; }
.gm-world__role { font-family: var(--mono); font-size: .78rem; color: #e9e2d1; }
.gm-world__desc { color: #bfb7a4; font-size: .98rem; }
.gm-world__go { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #f1ebdd; }
.gm-world:hover .gm-world__go span { display: inline-block; transform: translateX(4px); transition: transform .2s; }

.gm-final { text-align: left; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.gm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border: 0; cursor: pointer; text-decoration: none;
  color: #fff; background: var(--stamp); font-family: var(--mono); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .15s, transform .1s; }
.gm-btn:hover { background: #d63a2f; }
.gm-btn:active { transform: scale(.97); }
.gm-btn[disabled] { opacity: .6; cursor: not-allowed; }
.gm-btn--ghost { background: transparent; color: #f1ebdd; box-shadow: inset 0 0 0 1px #ff6b5e; }
.gm-btn--ghost:hover { background: rgb(255 107 94 / 12%); }
.gm-btn--block { width: 100%; }

/* Contact: dark tiles, form and FAQ */
body.page-game .contact-grid { padding-top: clamp(28px, 5vw, 48px); }
body.page-game .contact-card { background: #17150f; border-color: #2b2820; border-radius: 10px; color: #e9e2d1; transition: border-color .2s, transform .2s, box-shadow .2s; }
body.page-game .contact-card:hover { border-color: #ff6b5e; transform: translateY(-2px); box-shadow: 0 10px 30px rgb(255 107 94 / 12%); }
body.page-game .contact-card svg { color: #ff6b5e; filter: drop-shadow(0 0 6px rgb(255 107 94 / 50%)); }
body.page-game .contact-card b { color: var(--on-dark-muted); }
body.page-game .note { color: var(--on-dark-muted); }
body.page-game .field label { color: var(--on-dark-muted); letter-spacing: .14em; }
body.page-game .input { background: #121110; border: 1px solid #34312a; border-radius: 8px; color: #f1ebdd; }
body.page-game .input::placeholder { color: #7d7564; }
body.page-game .input:focus { border-color: #ff6b5e; box-shadow: 0 0 0 3px rgb(255 107 94 / 20%); }
body.page-game .select-native { background-color: #121110;
  background-image: linear-gradient(45deg, transparent 50%, #cfc6b2 50%), linear-gradient(135deg, #cfc6b2 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
body.page-game select.input option { background: #17150f; color: #f1ebdd; }
.gm-faq { max-width: 1200px; }
.gm-faq details { max-width: 860px; }
.gm-faq summary { color: #f1ebdd; }
.gm-faq details { border-color: #2b2820; }
.gm-faq details p { color: #bfb7a4; }
.gm-faq summary::after { color: #ff6b5e; }

/* =====================================================================================
   Home: interactive pieces (torch, 60-second mini case, case finder)
   ===================================================================================== */
/* Torch: a huge dark layer with a lit hole in the middle, moved so the hole sits under the mouse */
.hero-torch { position: absolute; left: 0; top: 0; z-index: 0; width: 360vmax; height: 360vmax; margin: -180vmax 0 0 -180vmax; pointer-events: none;
  background: radial-gradient(circle at center, rgb(13 12 9 / 0%) 0, rgb(13 12 9 / 0%) 110px, rgb(13 12 9 / 55%) 230px, rgb(13 12 9 / 88%) 420px);
  transform: translate(70vw, 360px); animation: torch-wander 16s ease-in-out infinite alternate; will-change: transform; }
.hero-torch.is-live { animation: none; transition: transform .08s linear; }
@keyframes torch-wander {
  0% { transform: translate(72vw, 300px); } 30% { transform: translate(55vw, 560px); }
  60% { transform: translate(85vw, 480px); } 100% { transform: translate(64vw, 220px); }
}
@media (max-width: 899px) { .hero-torch { background: radial-gradient(circle at center, rgb(13 12 9 / 0%) 0, rgb(13 12 9 / 0%) 70px, rgb(13 12 9 / 45%) 160px, rgb(13 12 9 / 75%) 300px); } }
@media (prefers-reduced-motion: reduce) { .hero-torch { display: none; } }

/* Mini case: every clue is a button that looks like part of the paper */
.clue { font: inherit; color: inherit; text-align: inherit; background: none; border: 0; padding: 0 2px; margin: 0 -2px; cursor: pointer; border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgb(179 38 30 / 25%); transition: background .15s, box-shadow .15s; }
.clue:hover { background: rgb(179 38 30 / 10%); }
.clue[aria-pressed="true"] { background: rgb(240 192 90 / 45%); box-shadow: inset 0 -2px 0 #b3261e; }
.clue.is-wrong { background: rgb(179 38 30 / 25%); animation: clue-shake .35s; }
.clue.is-right { background: rgb(217 71 61 / 30%); box-shadow: inset 0 -3px 0 #b3261e; font-weight: 700; }
.clue:disabled { cursor: default; }
.clue:disabled:not(.is-right) { opacity: .55; }
@keyframes clue-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.log { display: grid; }
.log__row { display: grid; grid-template-columns: 64px 48px 1fr; gap: 6px; padding: 9px 6px; margin: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--mono); font-size: .88rem; font-variant-numeric: tabular-nums; box-shadow: none; }
.log__row:hover { background: rgb(179 38 30 / 8%); }
.log__row[aria-pressed="true"] { box-shadow: inset 3px 0 0 #b3261e; }
.lie__docs .contradiction { opacity: 0; transform: scale(1.6) rotate(-9deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; pointer-events: none; }
.lie__docs.is-solved .contradiction { opacity: 1; transform: rotate(-9deg); }
.play-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 10px; }
.play-hud > div { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); }
.play-hud span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.play-hud b { font-family: var(--mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.play-hint-btn { min-height: 40px; padding: 8px 14px; border: 1px dashed var(--line-2); border-radius: 6px; background: none; cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.play-hint-btn:hover { border-color: var(--stamp); color: var(--stamp); }
.play-msg { min-height: 1.6em; margin: 0; font-weight: 500; color: var(--ink-2); }
.play-msg[data-tone="wrong"] { color: var(--stamp); }
.play-msg[data-tone="hint"] { color: var(--warn); }
.play-win { margin-top: 18px; padding: 20px; border-radius: 8px; background: var(--ink); color: var(--paper); animation: win-in .4s cubic-bezier(.2, .8, .2, 1); }
.play-win p { margin: 0 0 10px; color: #d9d1bf; }
.play-win__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.8rem; line-height: 1; color: #fff !important; }
.play-win__title span { color: #ff6b5e; }
.play-win .btn--ghost { color: var(--paper); border-color: var(--paper); }
@keyframes win-in { from { opacity: 0; transform: translateY(10px); } }

/* Case finder */
.finder { margin-top: 32px; padding: clamp(18px, 4vw, 36px); border: 1px solid #2b2820; border-radius: 12px; background: linear-gradient(180deg, #1b1913, #141210); }
.find__progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: fp; }
.find__progress li { counter-increment: fp; flex: 1; padding-top: 10px; border-top: 3px solid #2b2820; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); transition: border-color .3s, color .3s; }
.find__progress li::before { content: counter(fp) " · "; }
.find__progress li.is-on { border-color: #ff6b5e; color: #f1ebdd; }
.find__q { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); margin: 0 0 16px; color: #f6f0e2; }
.find__opts { display: grid; gap: 12px; }
.find__opts--roles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.find__opts--levels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.find__opt { --accent: #ff6b5e; position: relative; display: grid; gap: 6px; text-align: left; min-height: 88px; padding: 16px 16px 16px 20px; cursor: pointer; overflow: hidden;
  border: 1px solid #34312a; border-radius: 10px; background: #121110; color: #f1ebdd; transition: transform .15s, border-color .2s, box-shadow .2s; animation: win-in .35s both; }
.find__opt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.find__opt b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.find__opt small { font-family: var(--mono); font-size: .72rem; color: var(--on-dark-muted); }
.find__opt .pips { color: #ff6b5e; }
.find__opt:hover, .find__opt:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 22%, transparent); }
.find__back { margin-top: 16px; min-height: 40px; padding: 8px 4px; border: 0; background: none; cursor: pointer; color: var(--on-dark-muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; }
.find__back:hover { color: #f1ebdd; }
.find__pick { display: grid; gap: 24px; align-items: center; animation: win-in .4s both; }
@media (min-width: 760px) { .find__pick { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; } }
.find__cover { display: block; max-width: 360px; transition: transform .3s; }
.find__cover:hover { transform: rotate(-1.5deg) scale(1.02); }
.find__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 3vw + 1rem, 3.2rem); line-height: .95; margin: 6px 0 10px; color: #f6f0e2; }
.find__meta { font-family: var(--mono); font-size: .8rem; color: var(--on-dark-muted); margin: 0 0 10px; }
.find__desc { color: #cfc6b2; margin: 0 0 12px; }
.find__price { font-family: var(--mono); font-weight: 600; font-size: 1.4rem; margin: 0 0 16px; }
.find__info .btn--ghost { color: #f1ebdd; border-color: #f1ebdd; }
.find__again { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* Mini case layout: text and status on the left, documents on the right.
   On phones the status sits under the documents, next to where people are tapping. */
.lie__grid { grid-template-areas: "copy" "docs" "status"; }
.lie__copy { grid-area: copy; }
.lie__docs { grid-area: docs; }
.play-status { grid-area: status; }
.play-status .play-hud { margin-top: 0; }
@media (min-width: 960px) {
  .lie__grid { grid-template-areas: "copy docs" "status docs"; align-items: start; row-gap: 0; }
  .lie__docs { align-self: center; }
}

/* =====================================================================================
   Offers: coupon tickets on the home page, Offers box at checkout
   ===================================================================================== */
.offers-band { background: var(--night); color: var(--on-dark); padding-block: clamp(48px, 7vw, 80px); border-bottom: 1px solid #2b2820; }
.offers-band[hidden] { display: none; }
.offers-band .label { color: #ff6b5e; }
.offer-cards { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.offer-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: 12px;
  background: radial-gradient(120% 100% at 100% 0%, rgb(179 38 30 / 28%), transparent 60%), #17150f; border: 1.5px dashed #5a3a30; }
/* ticket notches */
.offer-card::before, .offer-card::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--night); border: 1.5px dashed #5a3a30; }
.offer-card::before { left: -12px; clip-path: inset(0 0 0 50%); }
.offer-card::after { right: -12px; clip-path: inset(0 50% 0 0); }
.offer-card__deal { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 3vw + 1.2rem, 3.4rem); line-height: .9; color: #ff6b5e; }
.offer-card__title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; color: #f6f0e2; }
.offer-card__desc { margin: 0; color: #cfc6b2; }
.offer-card__terms { margin: 0; font-family: var(--mono); font-size: .75rem; color: var(--on-dark-muted); }
.offer-card__code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: #0f0e0b; border: 1px solid #2b2820; }
.offer-card__code span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.offer-card__code code { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; color: #f6f0e2; user-select: all; }
.offer-card__copy { margin-left: auto; min-height: 36px; padding: 6px 12px; border: 1px solid #3a372d; border-radius: 6px; background: none; color: #e9e2d1; cursor: pointer; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }
.offer-card__copy:hover { border-color: #ff6b5e; }
.offer-card__use { margin-top: auto; align-self: flex-start; }

.offers-box { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.offers-box h3 { font-size: 1.1rem; margin: 0 0 10px; }
.offer-list { display: grid; gap: 10px; margin-bottom: 12px; }
.offer-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: #fffdf8; }
.offer-row.is-on { border-style: solid; border-color: var(--ok); background: #eef5ec; }
.offer-row > div { display: grid; gap: 3px; min-width: 0; }
.offer-row b { font-size: .98rem; }
.offer-row__deal { font-family: var(--mono); font-size: .78rem; color: var(--stamp); }
.offer-row__deal code { font-weight: 600; }
.offer-row__desc, .offer-row__terms { font-size: .82rem; color: var(--muted); }
.offer-row__need { font-size: .8rem; color: var(--warn); font-weight: 500; }
.offer-btn { flex: none; min-height: 38px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: none; cursor: pointer; font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.offer-btn:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.offer-btn[disabled] { opacity: .45; cursor: not-allowed; }
.offer-btn--on { border-color: var(--ok); color: var(--ok); }
.offer-code { display: flex; gap: 8px; }
.offer-code .input { min-height: 42px; padding: 8px 12px; text-transform: uppercase; }
.offer-code .btn { flex: none; }
.offer-msg { margin: 8px 0 0; font-size: .85rem; color: var(--stamp-dark); }
.totals__discount dd, .totals__discount dt { color: var(--ok); font-weight: 600; }

/* Case page description */
.case-desc { margin: 0 0 28px; max-width: 62ch; }
.case-desc p { margin: 0 0 .9em; color: var(--ink-2); line-height: 1.65; }
.case-desc__job { padding: 12px 14px; border-left: 3px solid var(--stamp); background: var(--card); border-radius: 0 6px 6px 0; color: var(--ink) !important; }

/* =====================================================================================
   Admin: order cards
   ===================================================================================== */
.ao-tools { display: grid; gap: 12px; margin-bottom: 18px; }
.ao-tools .chip b { margin-left: 4px; font-weight: 600; opacity: .7; }
.ao-tools__row { display: flex; gap: 10px; align-items: center; }
.ao-tools__row .input { max-width: 420px; }
.ao-list { display: grid; gap: 16px; }
.ao { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.ao__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ao__no { font-family: var(--mono); font-size: 1.1rem; }
.ao__total { margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; }
.ao__flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; margin: 14px 0 4px; }
.ao__flow li { padding-top: 8px; border-top: 4px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ao__flow li.is-done { border-color: var(--ok); color: var(--ok); }
.ao__flow li.is-now { border-color: var(--stamp); color: var(--ink); font-weight: 600; }
.ao__off { margin: 12px 0 4px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ao__grid { display: grid; gap: 18px; margin-top: 14px; }
@media (min-width: 1000px) { .ao__grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; } }
.ao h4 { margin: 0 0 8px; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ao__addr { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fffdf8; border: 1px dashed var(--line-2); font: 500 .95rem/1.5 var(--sans); white-space: pre-wrap; user-select: all; }
.ao__items { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; font-size: .92rem; }
.ao__items li, .ao__money div { display: flex; justify-content: space-between; gap: 10px; }
.ao__money { margin: 0; display: grid; gap: 2px; font-size: .88rem; color: var(--ink-2); }
.ao__money dd { margin: 0; font-family: var(--mono); }
.ao__grand { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.ao__next p { margin: 0 0 10px; font-size: .92rem; }
.ao__field { display: grid; gap: 4px; margin-bottom: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ao__field .input { min-height: 40px; padding: 8px 10px; font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.ao__msg { min-height: 1.2em; margin: 8px 0 0 !important; font-size: .85rem; color: var(--stamp-dark); }
.ao__msg[data-ok="true"] { color: var(--ok); }
@media (max-width: 599px) { .ao__flow li { font-size: .58rem; letter-spacing: .04em; } .ao-tools__row { flex-wrap: wrap; } }

/* Admin: case details panel (description, tagline, level, photos) */
.ap-row > td { background: var(--paper-2); }
.ap-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 8px 0; white-space: normal; }
.ap-detail textarea { resize: vertical; min-height: 180px; font: inherit; line-height: 1.5; }
.ap-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.ap-slot { margin: 0; display: grid; gap: 6px; align-content: start; font-size: .85rem; }
.ap-slot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid rgb(0 0 0 / 15%); background: #1d1b16; }
.ap-upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.ap-upload .input { flex: 1 1 180px; }
@media (max-width: 799px) { .ap-detail { grid-template-columns: 1fr; position: sticky; left: 0; width: calc(100vw - 64px); } }

/* Admin: offer form hides the fields that don't apply to the chosen type */
.field[hidden] { display: none; }

/* Admin: order costs (only the admin sees these) */
.ao__costs { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 12px 2px; margin: 4px 0 12px; }
.ao__costs legend { padding: 0 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ao__costs legend .muted { text-transform: none; letter-spacing: 0; }

/* Admin: finance */
.fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .fin-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fin-tile { display: grid; gap: 4px; align-content: start; }
.fin-tile b { font-family: var(--mono); font-size: 1.35rem; overflow-wrap: anywhere; }
.fin-tile small { font-size: .78rem; line-height: 1.35; }
.fin-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 640px; counter-reset: top; }
.fin-top li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; counter-increment: top; }
.fin-top li::before { content: counter(top) "."; font-family: var(--mono); color: var(--ink-2); min-width: 2ch; }
.fin-top li > span:first-of-type { flex: 1; }

/* Checkout: pay online or cash on delivery */
.pay-options { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 600px) { .pay-options { grid-template-columns: 1fr 1fr; } }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fffdf8; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option input { margin-top: 4px; accent-color: var(--stamp); }
.pay-option b { display: block; }
.pay-option small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* Admin: refunds */
.ao__refund { margin: 10px 0 8px; padding: 8px 10px; border-radius: 6px; background: var(--paper-2); font-size: .9rem; }
.ao__refund--bad { background: color-mix(in srgb, var(--stamp) 12%, transparent); color: var(--stamp); font-weight: 600; }
.ao__refundform { margin-top: 12px; }
.fin-switch { margin-bottom: 16px; }

/* Policy pages (shipping, returns, terms, privacy) */
.policy { color: #cfc6b2; font-size: 1.02rem; line-height: 1.7; max-width: 860px; }
.policy h2 { color: #f1ebdd; font-size: 1.25rem; margin: 1.8em 0 .5em; }
.policy h2:first-of-type { margin-top: .6em; }
.policy p, .policy ul, .policy ol { margin: 0 0 1em; }
.policy ul, .policy ol { padding-left: 1.3em; }
.policy li { margin-bottom: .35em; }
.policy b { color: #f1ebdd; }
.policy a { color: #ff8a7f; }
.policy__updated { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9a917e; }
.policy__links { margin-top: 2em; padding-top: 1em; border-top: 1px solid #2b2820; font-size: .95rem; }
.checkout-terms { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.checkout-terms a { color: inherit; text-decoration: underline; }
.pay-option.is-off { opacity: .55; cursor: not-allowed; }
/* Cart: "Remove" and similar text buttons get a finger-sized tap area */
.link-btn { min-height: 44px; padding: 10px 6px; margin-left: -6px; display: inline-flex; align-items: center; }
.gm-btn--ghost { background: transparent; color: #f1ebdd; box-shadow: inset 0 0 0 1px #5b5446; }
.gm-btn--ghost:hover { background: #2b2820; }

/* Admin: ready-made customer messages */
.ao__compose { margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.ao__compose summary { cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; }
.ao__compose-body { display: grid; gap: 10px; margin-top: 8px; max-width: 720px; }
.ao__compose-body textarea { font: inherit; font-size: .9rem; line-height: 1.5; resize: vertical; min-height: 220px; }

/* Admin: two-step login */
.mfa-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.mfa-steps li { line-height: 1.5; }
.mfa-qr { display: block; width: 200px; height: 200px; margin: 10px 0 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mfa-secret { font-family: var(--mono); font-size: .9rem; word-break: break-all; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.mfa-code { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .4em; text-align: center; }

/* Track order: one card per order */
.track-list { display: grid; gap: 16px; margin-top: 16px; text-align: left; }
.track-order { padding: 18px 20px; }
.track-order__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); }
.track-order .status-stamp { font-size: clamp(1.2rem, 4vw, 1.6rem); margin: 12px 0 14px; }
.track-order .order-items { margin: 12px 0 0; }
.pay-option small.pay-option__note { color: var(--stamp); font-weight: 600; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* Admin: Delivery by Founder price per state */
.founder-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px 22px; max-height: 460px; overflow-y: auto; padding: 4px 2px; }
.founder-price { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; align-items: center; gap: 10px; font-size: .9rem; padding: 2px 0; border-bottom: 1px solid var(--line); }
.founder-price .input { width: 100px; min-height: 38px; padding: 6px 10px; }
.founder-price.is-off > span { color: var(--muted); text-decoration: line-through; }
.founder-off { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .founder-prices { grid-template-columns: 1fr; } .founder-price { grid-template-columns: minmax(0, 1fr) 88px auto; } .founder-price .input { width: 88px; } }

/* Customer account: profile icon and its menu */
.account-slot { display: contents; }
.account-menu { position: relative; }
.icon-btn--on { border-color: var(--on-dark-muted); }
.icon-btn--on::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-radius: 50%; background: #5fae74; box-shadow: 0 0 0 2px var(--dark); }
.account-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(260px, calc(100vw - 2 * var(--gutter)));
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; display: grid;
}
.account-dropdown[hidden] { display: none; }
.account-dropdown__who { margin: 0 0 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.account-dropdown__who b { display: block; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; margin-top: 2px; }
.account-dropdown a, .account-dropdown button {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 4px; border: 0; background: none;
  font: 500 .95rem var(--sans); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown button:hover, .account-dropdown a:focus-visible, .account-dropdown button:focus-visible { background: var(--paper-2); }
.account-dropdown button { color: var(--stamp); border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; margin-top: 4px; }
@media (max-width: 380px) {
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; letter-spacing: .06em; font-size: .85rem; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
}

/* Customer account: sign in */
.auth-card { max-width: 460px; margin: clamp(16px, 5vw, 48px) auto; }
.auth-card h1 { font-size: clamp(2rem, 4vw + 1rem, 2.8rem); margin: 6px 0 8px; }
.auth-card .form-grid { margin-top: 20px; }
.auth-card__foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-card__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.auth-card__links .link-btn { margin-left: 0; }
.link-btn:disabled { cursor: default; text-decoration: none; opacity: .7; }
.code-input { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .35em; text-align: center; }

/* Customer account: orders and profile */
.account__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.account__head h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); margin: 6px 0 4px; }
.account__head p { margin: 0; overflow-wrap: anywhere; }
.account__layout { display: grid; gap: 20px; }
.account__nav { display: flex; gap: 8px; overflow-x: auto; }
.account__nav a, .account__nav button {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); font: 500 .95rem var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.account__nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.account__nav button { color: var(--stamp); margin-left: auto; }
.account__main { min-width: 0; }
.account__main > h2 { font-size: 1.6rem; margin: 0 0 14px; }
.acct-count { font-family: var(--mono); font-size: 1rem; }
@media (min-width: 900px) {
  .account__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
  .account__nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); }
  .account__nav button { margin: 12px 0 0; }
}
.acct-orders { display: grid; gap: 18px; }
.acct-order { padding: 0; overflow: hidden; }
.acct-order__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 14px 18px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.acct-order__head div { display: grid; gap: 2px; }
.acct-order__head span:not(.acct-status) { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acct-order__head b { font-size: .95rem; }
.acct-status { margin-left: auto; padding: 4px 10px; border-radius: 999px; font: 600 .75rem var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; }
.acct-status--ok { color: var(--ok); background: #e3efe3; }
.acct-status--warn { color: var(--warn); background: #f4e8d2; }
.acct-status--bad { color: var(--stamp); background: #f6e0dd; }
.acct-order__body { padding: 16px 18px 18px; }
.acct-order__body > p { margin: 0 0 10px; }
.acct-order__status { font-weight: 500; }
.acct-items { list-style: none; margin: 12px 0; padding: 0; }
.acct-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acct-items li:first-child { border-top: 1px solid var(--line); }
.acct-items small { display: block; color: var(--muted); font-family: var(--mono); font-size: .75rem; margin-top: 2px; }
.acct-details { margin: 4px 0 16px; }
.acct-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.acct-details__grid { display: grid; gap: 8px 32px; padding: 4px 0 8px; }
@media (min-width: 640px) { .acct-details__grid { grid-template-columns: 1fr 1fr; } }
.acct-details h3 { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.acct-details p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.acct-sum { margin: 0; display: grid; gap: 6px; }
.acct-sum div { display: flex; justify-content: space-between; gap: 12px; }
.acct-sum dt, .acct-sum dd { margin: 0; }
.acct-sum__total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.empty-orders { text-align: center; padding: 32px 18px; }
.empty-orders p { margin: 0 0 6px; }
.empty-orders .btn { margin-top: 12px; }
.mono { font-family: var(--mono); }

/* Admin: send a replacement */
.ao__replace-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 72px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ao__replace-item .input { min-height: 38px; padding: 6px 8px; }

/* Checkout: animated payment screen (behind Razorpay's window while it is open) */
.pay-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter);
  background: radial-gradient(120% 90% at 50% 0%, #2a2319 0%, var(--night) 70%); color: var(--on-dark);
  opacity: 0; transition: opacity .25s;
}
.pay-overlay.is-in { opacity: 1; }
.po-card { width: min(380px, 100%); text-align: center; }
.po-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1; margin: 28px 0 18px; }

.po-file { position: relative; display: block; width: 220px; height: 160px; margin: 0 auto; }
.po-file__tab { position: absolute; left: 14px; top: 0; width: 84px; height: 22px; background: #b9915a; border-radius: 6px 6px 0 0; }
.po-file__paper { position: absolute; left: 22px; right: 22px; top: 18px; height: 120px; background: #f4efe3; border-radius: 3px; box-shadow: 0 1px 0 rgb(0 0 0 / 10%);
  background-image: repeating-linear-gradient(#f4efe3 0 14px, #d9d2c2 14px 15px); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.po-file__paper--2 { left: 30px; right: 14px; transform: rotate(3deg); }
.po-file__front {
  position: absolute; inset: 20px 0 0; border-radius: 4px 8px 8px 8px; background: linear-gradient(#d4ab70, #c39a5f);
  box-shadow: 0 18px 40px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 25%); color: #2a2117;
  display: grid; align-content: center; justify-items: start; gap: 2px; padding: 0 18px; text-align: left; overflow: hidden;
}
.po-file__label { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.po-file__no { font-family: var(--type); font-size: 1.5rem; line-height: 1.1; }
.po-file__amt { font-family: var(--mono); font-weight: 600; font-size: 1rem; min-height: 1.2em; }
.po-scan { position: absolute; left: -6px; right: -6px; top: 20px; height: 2px; background: #ff6a5c; box-shadow: 0 0 12px 2px rgb(255 90 70 / 70%);
  animation: po-scan 1.6s ease-in-out infinite alternate; }
@keyframes po-scan { from { transform: translateY(6px); } to { transform: translateY(132px); } }
.po-stamp {
  position: absolute; right: -10px; top: 46px; padding: 4px 14px; border: 4px solid #3f9b5b; border-radius: 6px; color: #3f9b5b;
  font-family: var(--type); font-size: 2rem; text-transform: uppercase; background: rgb(244 239 227 / 85%);
  opacity: 0; transform: rotate(-12deg) scale(2.4);
}

.po-card[data-state="opening"] .po-file__paper--1, .po-card[data-state="waiting"] .po-file__paper--1 { transform: translateY(-26px) rotate(-2deg); }
.po-card[data-state="opening"] .po-file__paper--2, .po-card[data-state="waiting"] .po-file__paper--2 { transform: translateY(-14px) rotate(4deg); }
.po-card[data-state="paid"] .po-scan { display: none; }
.po-card[data-state="paid"] .po-stamp { animation: po-stamp .45s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.po-card[data-state="paid"] .po-file { animation: po-thud .45s .12s ease-out; }
@keyframes po-stamp { 0% { opacity: 0; transform: rotate(-20deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-10deg) scale(.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes po-thud { 30% { transform: translateY(3px) scale(.99); } }

.po-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; width: max-content; max-width: 100%; text-align: left; }
.po-steps li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--on-dark-muted); transition: color .3s; }
.po-steps i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #4a463b; position: relative; transition: border-color .3s, background .3s; }
.po-steps li.is-now { color: var(--on-dark); }
.po-steps li.is-now i { border-color: #ff6a5c; border-right-color: transparent; animation: po-spin .8s linear infinite; }
.po-steps li.is-done { color: var(--on-dark); }
.po-steps li.is-done i { border-color: #3f9b5b; background: #3f9b5b; }
.po-steps li.is-done i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes po-spin { to { transform: rotate(360deg); } }
.po-lock { display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--on-dark-muted); }

/* Order page: the status stamp lands once a payment is confirmed */
.status-stamp--land { animation: stamp-land .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp-land { 0% { opacity: 0; transform: rotate(-16deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-5deg) scale(.94); } 100% { transform: rotate(-6deg) scale(1); } }
.confirming { display: inline-block; width: 56px; height: 56px; margin: 8px 0 16px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--stamp); animation: po-spin .9s linear infinite; }
.ao__check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-size: .85rem; line-height: 1.4; }
.ao__check input { margin-top: 3px; }

/* Admin: add an order by hand */
.ao-add { margin: 0 0 18px; }
.ao-add h3 { margin: 0 0 4px; font-size: 1.2rem; }
.ao-add > .muted { margin: 0 0 14px; font-size: .9rem; }
.ao-add__grid { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ao-add__wide { grid-column: 1 / -1; }
.ao-add__line { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ao-add .ao__money { max-width: 360px; margin: 6px 0 4px; }
.ao__field[hidden] { display: none; }

/* Customer account: password */
.auth-or { display: flex; align-items: center; gap: 10px; margin: 6px 0 -4px; font-size: .85rem; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.acct-pw-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 22px; }
.acct-pw-nudge .btn-row { margin: 0; }
.acct-pw { margin-top: 18px; }
.acct-pw h3 { margin: 0 0 4px; font-size: 1.2rem; }
.acct-pw > .muted { margin: 0 0 14px; }
.acct-pw__show { display: inline-flex; gap: 8px; align-items: center; margin: 10px 0 4px; font-size: .9rem; min-height: 32px; }
.acct-pw__rules { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.acct-pw__rules li::before { content: "○"; display: inline-block; width: 1.4em; }
.acct-pw__rules li.is-ok { color: var(--ok); }
.acct-pw__rules li.is-ok::before { content: "✓"; }
