/* ==========================================================================
   Owlbrook Puzzles — site stylesheet
   Brand: navy #2B3A55 · deep navy #1E2A40 · cream #F4E9D8 · amber #F2A541
   Type:  Poppins (labels, UI) · Lora (reading, headings)
   ========================================================================== */

/* ---------- Fonts (self-hosted: no calls to third parties) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lora-400.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lora-400i.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/lora-600.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/lora-600i.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0F1626;
  --navy-900: #151E31;
  --navy-800: #1E2A40;
  --navy-700: #2B3A55;
  --navy-600: #3B4D6E;
  --navy-400: #7C8BA8;
  --cream-50: #FDF9F2;
  --cream-100: #F9F2E6;
  --cream-200: #F4E9D8;
  --cream-300: #EADBC2;
  --cream-400: #D9C8A9;
  --amber-300: #F7C274;
  --amber-400: #F2A541;
  --amber-500: #E4912A;
  --amber-700: #8F5207;          /* amber for text on cream (AA) */
  --ink: #1E2A40;
  --ink-soft: #4B5770;
  --line: rgba(30, 42, 64, .14);
  --line-strong: rgba(30, 42, 64, .28);
  --ok: #2F7D4F;
  --bad: #B3382C;

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --shadow-s: 0 1px 2px rgba(15, 22, 38, .08), 0 2px 8px rgba(15, 22, 38, .06);
  --shadow: 0 2px 6px rgba(15, 22, 38, .10), 0 12px 32px rgba(15, 22, 38, .12);
  --shadow-book: 0 1px 1px rgba(0,0,0,.18), 0 6px 14px rgba(8,12,24,.28), 0 22px 44px rgba(8,12,24,.30);

  /* default "theme" values (used by themed sections) */
  --t-bg: var(--cream-100);
  --t-bg2: var(--cream-200);
  --t-ink: var(--ink);
  --t-soft: var(--ink-soft);
  --t-accent: var(--amber-400);
  --t-accent-text: var(--amber-700);
  --t-line: var(--line);
}

/* Series colourways (match the covers and banners) */
[data-theme="owlbrook-puzzles"] { --t-bg: #F4E9D8; --t-bg2: #EADBC2; --t-ink: #1E2A40; --t-soft: #4B5770; --t-accent: #F2A541; --t-accent-text: #8F5207; --t-line: rgba(30,42,64,.16); }
[data-theme="owlbrook-noir"]    { --t-bg: #131419; --t-bg2: #1D1F27; --t-ink: #F4E9D8; --t-soft: #C9BFAE; --t-accent: #E0574B; --t-accent-text: #F08A80; --t-line: rgba(244,233,216,.14); }
[data-theme="owlbrook-oddities"]{ --t-bg: #22172F; --t-bg2: #2E2041; --t-ink: #F4E9D8; --t-soft: #D2C6DC; --t-accent: #B9CE67; --t-accent-text: #CBDC86; --t-line: rgba(244,233,216,.14); }
[data-theme="owlbrook-legends"] { --t-bg: #111A2E; --t-bg2: #1A2742; --t-ink: #F4E9D8; --t-soft: #C8CBD6; --t-accent: #E8BF64; --t-accent-text: #F0CF86; --t-line: rgba(244,233,216,.14); }
[data-theme="owlbrook-grim-tales"]{ --t-bg: #1F1426; --t-bg2: #2C1D37; --t-ink: #F4E9D8; --t-soft: #D5C9DE; --t-accent: #BDA4E2; --t-accent-text: #D0BDEC; --t-line: rgba(244,233,216,.14); }
[data-theme="night"]            { --t-bg: #151E31; --t-bg2: #1E2A40; --t-ink: #F4E9D8; --t-soft: #C7CCD8; --t-accent: #F2A541; --t-accent-text: #F7C274; --t-line: rgba(244,233,216,.14); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.1rem; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-300); color: var(--navy-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--amber-400); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-s); font-family: var(--font-sans); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--text { max-width: 720px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--themed { background: var(--t-bg); color: var(--t-ink); }
.section--alt { background: var(--cream-100); }
.section--cream { background: var(--cream-200); }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--t-accent-text, var(--amber-700));
  margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 11px; height: 11px; flex: none; background:
  linear-gradient(currentColor 0 0) 0 0/3px 3px no-repeat, linear-gradient(currentColor 0 0) 4px 0/3px 3px no-repeat, linear-gradient(currentColor 0 0) 8px 0/3px 3px no-repeat,
  linear-gradient(currentColor 0 0) 0 4px/3px 3px no-repeat, linear-gradient(var(--amber-400) 0 0) 4px 4px/3px 3px no-repeat, linear-gradient(currentColor 0 0) 8px 4px/3px 3px no-repeat,
  linear-gradient(currentColor 0 0) 0 8px/3px 3px no-repeat, linear-gradient(currentColor 0 0) 4px 8px/3px 3px no-repeat, linear-gradient(currentColor 0 0) 8px 8px/3px 3px no-repeat; opacity: .9; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--t-soft, var(--ink-soft)); }
.section--themed .lede { color: var(--t-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.sans { font-family: var(--font-sans); }
.italic { font-style: italic; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: .35em; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--amber-400); --b-ink: var(--navy-900); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  background: var(--b-bg); color: var(--b-ink); border: 1.5px solid var(--b-bd);
  border-radius: 999px; text-decoration: none; font-family: var(--font-sans); font-weight: 500; font-size: .95rem; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 165, 65, .28); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost { --b-bg: transparent; --b-ink: currentColor; --b-bd: currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(127, 127, 127, .12); }
.btn--navy { --b-bg: var(--navy-700); --b-ink: var(--cream-100); }
.btn--navy:hover { box-shadow: 0 6px 18px rgba(30, 42, 64, .25); }
.btn--soft { --b-bg: rgba(242,165,65,.14); --b-ink: currentColor; --b-bd: rgba(242,165,65,.55); }
.btn--sm { min-height: 38px; padding: .5em 1em; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link-arrow { font-family: var(--font-sans); font-weight: 500; font-size: .95rem; color: var(--t-accent-text, var(--amber-700)); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #151E31;
  color: var(--cream-100);
  border-bottom: 1px solid rgba(244, 233, 216, .08);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(21, 30, 49, .95); backdrop-filter: saturate(140%) blur(10px); } }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand svg { width: 38px; height: 46px; }
.brand__word { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; letter-spacing: .3em; line-height: 1.15; text-transform: uppercase; }
.brand__word span { display: block; font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: .72rem; letter-spacing: .02em; text-transform: none; opacity: .75; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav__drop > button { font-family: var(--font-sans); font-size: .92rem; font-weight: 500; color: var(--cream-100); text-decoration: none; padding: 10px 12px; border-radius: 8px; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav__drop > button:hover, .nav a[aria-current="page"] { background: rgba(244, 233, 216, .08); }
.nav a[aria-current="page"] { color: var(--amber-300); }
.nav .btn { margin-left: 8px; color: var(--navy-900); background: var(--amber-400); padding: .6em 1.15em; }
.nav .btn:hover { background: var(--amber-300); }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__drop[data-open] > button svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 330px; background: var(--navy-800); border: 1px solid rgba(244,233,216,.1); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: none; }
.nav__drop[data-open] .nav__menu { display: block; }
.nav__menu a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.nav__menu a:hover { background: rgba(244,233,216,.07); }
.nav__menu .dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.nav__menu strong { display: block; font-weight: 500; font-size: .92rem; }
.nav__menu small { display: block; font-family: var(--font-serif); font-style: italic; font-size: .8rem; opacity: .72; font-weight: 400; }
.nav__menu .nav__all { justify-content: center; font-size: .85rem; color: var(--amber-300); border-top: 1px solid rgba(244,233,216,.08); margin-top: 4px; border-radius: 0 0 10px 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--cream-100); width: 46px; height: 46px; border-radius: 10px; }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
.nav-toggle:hover { background: rgba(244,233,216,.08); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--navy-900); border-bottom: 1px solid rgba(244,233,216,.1); box-shadow: 0 20px 40px rgba(0,0,0,.35); max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; }
  .nav[data-open] { display: flex; }
  .nav a, .nav__drop > button { padding: 14px 12px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav__menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: rgba(244,233,216,.04); margin: 2px 0 8px; }
  .brand__word { font-size: .82rem; letter-spacing: .24em; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 77, 110, .55), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(242, 165, 65, .10), transparent 60%),
    linear-gradient(180deg, #121A2C 0%, #1B2740 100%);
  color: var(--cream-100);
}
.hero::before { /* stars */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 71% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 54%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 94% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 7% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 86%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 36% 36%, #fff 50%, transparent 51%);
  background-size: 640px 420px;
}
.hero__moon { position: absolute; z-index: -1; width: clamp(90px, 12vw, 150px); aspect-ratio: 1; right: 7%; top: 11%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6E3, #F4E2BF 55%, #E8CD98); box-shadow: 0 0 60px 12px rgba(247, 194, 116, .18); opacity: .9; }
.hero__moon::after { content: ""; position: absolute; inset: -6% -6% 18% 24%; border-radius: 50%; background: #16203A; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px); }
.hero h1 { color: #FFF8EC; margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--amber-300); }
.hero .lede { color: #D4D8E2; max-width: 36em; }
.hero .btn-row { margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2rem 0 0; padding: 0; list-style: none; font-family: var(--font-sans); font-size: .85rem; color: #C7CCD8; }
.hero__trust li { display: inline-flex; gap: 8px; align-items: center; }
.hero__trust svg { width: 16px; height: 16px; color: var(--amber-300); flex: none; }
.hero__books { position: relative; height: clamp(320px, 36vw, 470px); }
.hero__books a { position: absolute; bottom: 4%; width: 41%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hero__books img { border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-book); }
.hero__books a:nth-child(1) { left: 0%;  transform: rotate(-9deg) translateY(4%); z-index: 1; }
.hero__books a:nth-child(2) { left: 19.5%; transform: rotate(-3deg) translateY(-6%); z-index: 2; }
.hero__books a:nth-child(3) { left: 39%; transform: rotate(3deg) translateY(-9%); z-index: 3; }
.hero__books a:nth-child(4) { left: 59%; transform: rotate(9deg) translateY(-2%); z-index: 2; }
.hero__books a:hover { transform: rotate(0) translateY(-14%) scale(1.03); z-index: 5; }
.hero__badge { position: absolute; z-index: 6; left: -3%; top: 0; background: var(--amber-400); color: var(--navy-900); font-family: var(--font-sans); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.25; transform: rotate(10deg); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__books { height: clamp(260px, 70vw, 420px); max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__moon { top: 3%; right: 4%; }
}

/* ---------- Home: Owlbrook Noir welcome ---------- */
.hero--noir { background: #0C0F18; min-height: clamp(560px, 46vw, 740px); display: flex; align-items: center; }
.hero--noir::before { display: none; }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; }
.hero--noir::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,12,20,.92) 0%, rgba(10,12,20,.8) 32%, rgba(10,12,20,.38) 54%, rgba(10,12,20,0) 70%),
    linear-gradient(0deg, rgba(10,12,20,.7) 0%, rgba(10,12,20,0) 26%); }
.hero--noir .hero__inner { grid-template-columns: minmax(0, 37rem); padding-block: clamp(64px, 8vw, 112px); }
.hero--noir h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.2rem); margin-bottom: .3em; }
.hero--noir .lede { color: #DCD6CB; }
.noir-mark { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--font-sans); font-weight: 500; font-size: .9rem; letter-spacing: .32em; text-transform: uppercase; color: #F4E9D8; }
.noir-mark__owl { width: 30px; height: auto; flex: none; }
.noir-rule { display: block; position: relative; width: 104px; height: 10px; margin: 0 0 22px; background: linear-gradient(90deg, #E0574B 0 42%, transparent 42% 58%, #E0574B 58%) 0 50% / 100% 2px no-repeat; }
.noir-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #E0574B; transform: translate(-50%, -50%) rotate(45deg); }
.noir-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.noir-pills li { padding: .32em 1em; border: 1.5px solid rgba(244,233,216,.6); border-radius: 999px; background: rgba(10,12,20,.35); font-family: var(--font-sans); font-size: .9rem; color: #F4E9D8; }
@media (max-width: 860px) {
  .hero--noir { display: block; min-height: 0; }
  .hero--noir::after { display: none; }
  .hero__art { position: relative; inset: auto; z-index: 0; aspect-ratio: 5 / 4; max-height: 72vh; }
  .hero__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(0deg, #0C0F18, rgba(12,15,24,0)); }
  .hero__art img { object-position: 50% 35%; }
  .hero--noir .hero__inner { position: relative; margin-top: -20px; padding-block: 0 56px; }
}

.noir-cases__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); margin-top: clamp(28px, 4vw, 44px); }
.noir-case { position: relative; display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; background: var(--t-bg2); border: 1px solid var(--t-line); border-radius: var(--radius-l); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.noir-case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.noir-case > :not(.noir-case__art) { margin-inline: 20px; }
.noir-case__art { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 12px; }
.noir-case__art > picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.noir-case:hover .noir-case__art > picture img { transform: scale(1.04); }
.noir-case__cover { position: absolute; right: 14px; bottom: 14px; width: 30%; transform: rotate(4deg); transition: transform .25s ease; }
.noir-case__cover img { border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); }
.noir-case:hover .noir-case__cover { transform: rotate(0) translateY(-4px); }
.noir-case__kicker { margin: 0; font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--t-accent-text); }
.noir-case__title { margin: 0; font-size: 1.3rem; }
.noir-case__title a { text-decoration: none; }
.noir-case__title a:hover { text-decoration: underline; }
.noir-case__title a::after { content: ""; position: absolute; inset: 0; }
.noir-case__setting { margin: 0; font-family: var(--font-sans); font-size: .82rem; color: var(--t-soft); }
.noir-case__text { margin: 4px 0 0; font-size: .97rem; line-height: 1.55; color: var(--t-soft); }
.noir-case__buy { padding-top: 14px; }
@media (max-width: 1080px) { .noir-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .noir-cases__grid { grid-template-columns: 1fr; } .noir-case__art { aspect-ratio: 4 / 3; } .noir-case__cover { width: 26%; } }

.noir-desk { position: relative; display: flex; align-items: center; margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 1280 / 543; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--t-line); }
.noir-desk__art { position: absolute; inset: 0; }
.noir-desk__art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.noir-desk::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,12,20,.78) 0%, rgba(10,12,20,.45) 36%, rgba(10,12,20,0) 56%); }
.noir-desk__text { position: relative; z-index: 2; max-width: 30rem; padding: clamp(24px, 4vw, 56px); }
.noir-desk__title { margin: 0 0 .35em; font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.7rem); color: #FFF8EC; }
.noir-desk__text p { color: #DCD6CB; font-size: 1.08rem; }
.noir-desk .btn--ghost { color: #F4E9D8; }
@media (max-width: 900px) {
  .noir-desk { display: block; aspect-ratio: auto; background: var(--t-bg2); }
  .noir-desk::before { display: none; }
  .noir-desk__art { position: relative; aspect-ratio: 800 / 645; }
  .noir-desk__text { max-width: none; padding: 24px 22px 28px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #151E31, #1E2A40); color: var(--cream-100); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 85% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent 51%); background-size: 520px 300px; }
.page-hero h1 { color: #FFF8EC; margin-bottom: .3em; }
.page-hero .lede { color: #C9CEDA; max-width: 42em; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--amber-300); }
.breadcrumb { font-family: var(--font-sans); font-size: .82rem; margin: 0 0 1.4rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; opacity: .85; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Book cover ---------- */
.cover { display: block; position: relative; }
.cover img { width: 100%; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-book); }
.cover--spine img { box-shadow: inset 6px 0 8px -6px rgba(0,0,0,.35), var(--shadow-book); }

/* ---------- Status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.badge--live { background: #E4F2E8; color: #1F5C37; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2F9E5B; box-shadow: 0 0 0 3px rgba(47, 158, 91, .2); }
.badge--soon { background: #FFF1DA; color: #7A4608; }
.badge--soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); }
.badge--off { background: #E9ECF2; color: #3F475A; white-space: normal; line-height: 1.2; border-radius: 12px; }
.badge--off::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8A93A8; flex: none; }
.badge--series { background: rgba(30,42,64,.07); color: var(--ink-soft); }

/* ---------- Book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: clamp(28px, 3.5vw, 44px) clamp(20px, 2.6vw, 32px); }
.book-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.book-card__shelf { position: relative; height: 290px; display: flex; align-items: flex-end; justify-content: center; padding: 18px 18px 0; background: linear-gradient(180deg, transparent 0, transparent 70%, rgba(30,42,64,.05) 100%); border-radius: var(--radius) var(--radius) 0 0; }
.book-card__shelf::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -8px; height: 8px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #CDB894, #B99F77); box-shadow: 0 6px 10px rgba(30,42,64,.12); }
.book-card__shelf a { display: block; max-height: 100%; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.book-card__shelf img { max-height: 272px; width: auto; max-width: 100%; margin-inline: auto; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-book); }
.book-card:hover .book-card__shelf a { transform: translateY(-6px) rotate(-1deg); }
.book-card__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; }
.book-card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; flex: 1; }
.book-card__series { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; display: flex; align-items: center; gap: 8px; }
.book-card__series i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.book-card__title { font-size: 1.22rem; margin: 0; }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { text-decoration: underline; }
.book-card__title a::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 290px; }
.book-card__kind { font-family: var(--font-sans); font-size: .84rem; color: var(--ink-soft); margin: 0; }
.book-card__hook { font-size: .98rem; color: var(--ink); font-style: italic; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card__buy { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.book-card__price { font-family: var(--font-sans); font-weight: 500; font-size: .95rem; }
.book-card__buy .btn { position: relative; z-index: 2; }

.swatch-owlbrook-puzzles { background: #F2A541; }
.swatch-owlbrook-noir { background: #D9463B; }
.swatch-owlbrook-oddities { background: #8FA640; }
.swatch-owlbrook-legends { background: #D4A646; }
.swatch-owlbrook-grim-tales { background: #9C80C8; }

/* Horizontal scroll shelf */
.shelf-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shelf-scroll > * { scroll-snap-align: start; }
.mini-book { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.mini-book__img { height: 250px; display: flex; align-items: flex-end; justify-content: center; }
.mini-book__img img { max-height: 250px; width: auto; border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); transition: transform .25s ease; }
.mini-book:hover .mini-book__img img { transform: translateY(-5px); }
.mini-book__t { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.mini-book__s { font-family: var(--font-sans); font-size: .76rem; color: var(--t-soft, var(--ink-soft)); letter-spacing: .04em; }

/* ---------- Series cards ---------- */
.series-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.series-card { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; background: var(--t-bg); color: var(--t-ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; border: 1px solid var(--t-line); }
.series-card:nth-child(4), .series-card:nth-child(5) { grid-column: span 3; }
.series-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,22,38,.2); }
.series-card__img { aspect-ratio: 2400 / 1256; overflow: hidden; }
.series-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.series-card:hover .series-card__img img { transform: scale(1.03); }
.series-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.series-card__label { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--t-accent-text); margin: 0; }
.series-card h3 { margin: 0; font-size: 1.45rem; }
.series-card p { margin: 0; color: var(--t-soft); font-size: .98rem; }
.series-card__meta { margin-top: auto !important; padding-top: 12px; font-family: var(--font-sans); font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; color: var(--t-soft); }
.series-card__meta b { color: var(--t-accent-text); font-weight: 500; }
@media (max-width: 1000px) { .series-grid { grid-template-columns: 1fr 1fr; } .series-card, .series-card:nth-child(4), .series-card:nth-child(5) { grid-column: span 1; } .series-card:nth-child(5), .series-card:nth-child(3):last-child { grid-column: span 2; } }
@media (max-width: 640px) { .series-grid { grid-template-columns: 1fr; } .series-card:nth-child(5), .series-card:nth-child(3):last-child { grid-column: span 1; } }

/* ---------- Feature pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px 24px; box-shadow: var(--shadow-s); }
.pillar__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--navy-700); color: var(--amber-300); display: grid; place-items: center; margin-bottom: 16px; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: .35em; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Callout / band ---------- */
.band { border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); background: var(--navy-800); color: var(--cream-100); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #FFF8EC; }
.band .lede, .band p { color: #C9CEDA; }
.band--amber { background: linear-gradient(135deg, #F7C274, #F2A541); color: var(--navy-900); }
.band--amber h2, .band--amber h3 { color: var(--navy-900); }
.band--amber p, .band--amber .lede { color: #3A3120; }
.band__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .band__grid { grid-template-columns: 1fr; } }
.band__owl { position: absolute; right: -20px; bottom: -30px; width: 180px; opacity: .08; pointer-events: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-family: var(--font-sans); font-size: .86rem; font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-family: var(--font-sans); font-size: 1rem; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(242,165,65,.22); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2A40' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--amber-500); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }
.form-note { font-size: .82rem; opacity: .8; margin: 0; }
.form-msg { font-family: var(--font-sans); font-size: .92rem; border-radius: 10px; padding: 12px 14px; margin: 0; }
.form-msg--ok { background: #E4F2E8; color: #1F5C37; }
.form-msg--err { background: #FBE6E3; color: #8A2A20; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.band .input, .section--themed .input { border-color: transparent; }

/* ---------- Book page ---------- */
.book-hero { background: var(--t-bg); color: var(--t-ink); padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.book-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 15% 30%, rgba(255,255,255,.07), transparent 60%); pointer-events: none; }
.book-hero .breadcrumb { color: var(--t-soft); }
.book-hero__grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; position: relative; }
.book-hero__cover { position: sticky; top: calc(var(--header-h) + 24px); }
.book-hero__cover .cover { max-width: 420px; margin-inline: auto; }
.book-hero__series { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--t-accent-text); margin: 0 0 .8rem; }
.book-hero__series a { text-decoration: none; }
.book-hero h1 { margin-bottom: .25em; }
.book-hero__subtitle { font-style: italic; color: var(--t-soft); font-size: 1.12rem; margin-bottom: 1.3rem; }
.book-hero__hook { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; border-left: 3px solid var(--t-accent); padding-left: 16px; margin: 0 0 1.6rem; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.specs li { font-family: var(--font-sans); font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--t-line); color: var(--t-soft); }
.specs li b { color: var(--t-ink); font-weight: 500; }
@media (max-width: 820px) { .book-hero__grid { grid-template-columns: 1fr; } .book-hero__cover { position: static; } .book-hero__cover .cover { max-width: 280px; } }

/* Buy box */
.buybox { background: var(--cream-50); color: var(--ink); border-radius: var(--radius-l); padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: grid; gap: 14px; max-width: 560px; }
.buybox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.buybox__price { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.buybox__price small { display: block; font-size: .72rem; font-weight: 400; color: var(--ink-soft); margin-top: 6px; letter-spacing: .02em; }
.buybox__note { font-size: .84rem; color: var(--ink-soft); margin: 0; font-family: var(--font-sans); }
.buybox .btn { font-size: 1rem; min-height: 52px; }
.market { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: .82rem; }
.market select { appearance: none; -webkit-appearance: none; min-height: 36px; padding: 6px 30px 6px 10px; border-radius: 8px; font-family: var(--font-sans); font-size: .84rem; border: 1px solid var(--line-strong); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2A40' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 10px; color: var(--ink); }
.market--dark select { background-color: rgba(255,255,255,.08); color: var(--cream-100); border-color: rgba(244,233,216,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F4E9D8' stroke-width='1.6'/%3E%3C/svg%3E"); }
.market--dark select option { color: var(--ink); }

.look-inside { margin: 0; }
.look-inside img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.look-inside figcaption { font-family: var(--font-sans); font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }

.prose { font-size: 1.08rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--amber-400); box-shadow: 0 0 0 3px rgba(242,165,65,.2); }
.prose > p:first-child b:first-child, .prose > p:first-child strong:first-child { font-size: 1.15em; }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-s); }
.card h3 { font-size: 1.2rem; }
.card h3 svg { width: 22px; height: 22px; display: inline-block; vertical-align: -4px; margin-right: 6px; color: var(--amber-700); }
.card--casefile { background: #FBF3E3 repeating-linear-gradient(180deg, transparent 0 31px, rgba(30,42,64,.06) 31px 32px); border-color: #E5D4B3; position: relative; }
.card--casefile::before { content: "From the back cover"; position: absolute; top: -12px; left: 18px; background: var(--navy-700); color: var(--cream-100); font-family: var(--font-sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.card--casefile p { font-style: italic; margin: 8px 0 0; line-height: 2; font-size: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .98rem; line-height: 1.5; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-family: var(--font-sans); font-size: .9rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-sans); font-size: .85rem; }
.share a, .share button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; text-decoration: none; font-size: .82rem; }
.share a:hover, .share button:hover { border-color: var(--amber-500); }
.share svg { width: 15px; height: 15px; }

/* ---------- Store toolbar ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(253,249,242,.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .toolbar { background: rgba(253,249,242,.82); backdrop-filter: blur(10px); } }
.toolbar__inner { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding-block: 14px; }
.toolbar__search { flex: 1 1 220px; position: relative; }
.toolbar__search .input { padding-left: 42px; min-height: 44px; border-radius: 999px; }
.toolbar__search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.toolbar .select { min-height: 44px; border-radius: 999px; width: auto; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-sans); font-size: .84rem; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; line-height: 1.1; }
.chip:hover { border-color: var(--navy-600); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: var(--cream-100); }
.chip i { width: 9px; height: 9px; border-radius: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; padding: 20px 0 8px; }
.filter-row .label { color: var(--ink-soft); margin-right: 4px; }
.result-count { font-family: var(--font-sans); font-size: .88rem; color: var(--ink-soft); margin: 18px 0 26px; }
.empty-state { text-align: center; padding: 60px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius-l); }

/* ---------- Series page ---------- */
.series-hero { background: var(--t-bg); color: var(--t-ink); }
.series-hero__banner { display: block; width: 100%; max-width: 1600px; height: auto; margin-inline: auto; }
.series-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .series-intro { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 22px; height: 22px; color: var(--t-accent); margin-top: 3px; }
.facts b { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent-text); }
.reading-list { display: grid; gap: 22px; counter-reset: rl; }
.reading-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; background: var(--t-bg2); border: 1px solid var(--t-line); border-radius: var(--radius-l); padding: 22px; }
.reading-item__cover img { border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); }
.reading-item h3 { margin: 4px 0 6px; }
.reading-item h3 a { text-decoration: none; }
.reading-item h3 a:hover { text-decoration: underline; }
.reading-item p { color: var(--t-soft); margin-bottom: .6em; }
.reading-item__num { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--t-accent-text); }
@media (max-width: 640px) { .reading-item { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; } .reading-item p.hide-sm { display: none; } }
.start-here { border: 2px solid var(--t-accent); border-radius: var(--radius-l); padding: 24px; background: var(--t-bg2); }

.compare { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .9rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy-800); color: var(--cream-100); font-weight: 500; font-size: .82rem; letter-spacing: .06em; }
.compare tbody th { font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- About ---------- */
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2B3A55, #151E31); box-shadow: var(--shadow); display: grid; place-items: center; }
.portrait img.portrait__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.portrait__cap { z-index: 2; }
.portrait__owl { width: 42%; }
.portrait__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(15,22,38,.72); color: var(--cream-100); border-radius: 14px; padding: 12px 14px; font-family: var(--font-sans); font-size: .85rem; backdrop-filter: blur(6px); }
.portrait__cap strong { display: block; font-size: 1rem; font-weight: 500; }
.promise-list { counter-reset: p; display: grid; gap: 18px; list-style: none; padding: 0; }
.promise-list li { position: relative; padding-left: 56px; }
.promise-list li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-700); color: var(--amber-300); font-family: var(--font-sans); font-weight: 700; display: grid; place-items: center; }
.promise-list h3 { font-size: 1.15rem; margin-bottom: .25em; }
.promise-list p { margin: 0; color: var(--ink-soft); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .step { width: 44px; height: 44px; border-radius: 50%; background: var(--amber-400); color: var(--navy-900); display: grid; place-items: center; font-family: var(--font-sans); font-weight: 700; }
.timeline h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ / details ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-size: 1.5rem; font-weight: 400; color: var(--amber-700); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Puzzles ---------- */
.puzzle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.puzzle__head { background: var(--t-bg); color: var(--t-ink); padding: 22px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.puzzle__head h2, .puzzle__head h3 { margin: 0; font-size: 1.55rem; }
.puzzle__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-sans); font-size: .76rem; }
.puzzle__meta span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--t-line); color: var(--t-soft); letter-spacing: .04em; }
.puzzle__body { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.puzzle__intro { margin: 0; font-size: 1.05rem; }
.puzzle__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.puzzle__result { min-height: 1.5em; font-family: var(--font-sans); font-weight: 500; margin: 0; }
.puzzle__result.ok { color: var(--ok); }
.puzzle__result.bad { color: var(--bad); }
.puzzle__foot { border-top: 1px solid var(--line); padding: 18px 26px; background: var(--cream-100); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-family: var(--font-sans); font-size: .9rem; }
.puzzle__foot img { width: 44px; border-radius: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.puzzle__foot .pf { display: flex; gap: 14px; align-items: center; }
.clue-list { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.clue-list li { padding-left: 4px; }
.clue-list li.done { text-decoration: line-through; opacity: .55; }
.puzzle-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.puzzle-toc a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--t-bg); color: var(--t-ink); text-decoration: none; border: 1px solid var(--t-line); transition: transform .2s ease; }
.puzzle-toc a:hover { transform: translateY(-3px); }
.puzzle-toc b { font-family: var(--font-serif); font-size: 1.05rem; }
.puzzle-toc small { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t-accent-text); }

/* logic grid */
.lg-wrap { overflow-x: auto; }
.lg { border-collapse: collapse; font-family: var(--font-sans); font-size: .8rem; margin: 0 auto; }
.lg th { font-weight: 500; padding: 4px 6px; color: var(--ink-soft); }
.lg thead th { height: 118px; vertical-align: bottom; }
.lg thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
.lg tbody th { text-align: right; white-space: nowrap; }
.lg td { padding: 0; border: 1px solid var(--line-strong); }
.lg td.gap { border: 0; background: transparent; }
.lg .sep-r { border-right: 2.5px solid var(--navy-700); }
.lg .sep-b { border-bottom: 2.5px solid var(--navy-700); }
.lg button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 1.1rem; font-weight: 700; display: grid; place-items: center; }
.lg button:hover { background: var(--cream-100); }
.lg button[data-v="x"] { color: var(--bad); }
.lg button[data-v="o"] { color: var(--ok); background: #EAF6EE; }
.answer-table { display: grid; gap: 10px; }
.answer-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px; align-items: center; font-family: var(--font-sans); font-size: .92rem; }
.answer-row .select { min-height: 42px; font-size: .9rem; }
@media (max-width: 560px) { .answer-row { grid-template-columns: 1fr 1fr; } .answer-row b { grid-column: 1 / -1; } }

/* cipher */
.cipher-text { font-family: "Courier New", ui-monospace, monospace; font-size: clamp(1.05rem, .9rem + .8vw, 1.45rem); letter-spacing: .12em; line-height: 1.7; background: #F7F1E3; border: 1px dashed #CDBA95; border-radius: var(--radius); padding: 18px 20px; word-break: break-word; }
.cipher-text.solved { background: #EAF6EE; border-color: #7FBF96; }
.dial { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; font-family: var(--font-sans); }
.dial input[type=range] { width: 100%; accent-color: var(--amber-500); }
.dial output { font-weight: 700; min-width: 3.2em; text-align: center; padding: 6px 10px; border-radius: 8px; background: var(--navy-700); color: var(--cream-100); }
.alphabet { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; font-family: "Courier New", monospace; font-size: .8rem; text-align: center; }
.alphabet span { padding: 3px 0; border-radius: 4px; background: var(--cream-100); }
.alphabet span b { display: block; color: var(--amber-700); }

/* ghosts */
.ghosts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ghost { border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 16px; background: #FAF7FD; display: grid; gap: 8px; text-align: left; align-content: start; }
.ghost__name { font-weight: 600; font-size: 1.05rem; }
.ghost__says { font-style: italic; margin: 0; }
.ghost__toggle { justify-self: start; font-family: var(--font-sans); font-size: .82rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; }
.ghost__toggle[data-v="candid"] { background: #EAF6EE; border-color: #7FBF96; color: #1F5C37; }
.ghost__toggle[data-v="fibber"] { background: #FBE6E3; border-color: #E0A197; color: #8A2A20; }
.ghost svg { width: 34px; height: 34px; }

/* number grids (towers, sudoku) */
.ngrid { display: grid; gap: 0; margin: 0 auto; font-family: var(--font-sans); user-select: none; }
.ngrid input { width: 100%; height: 100%; border: 0; text-align: center; font-size: 1.35rem; font-weight: 500; background: #fff; color: var(--navy-700); caret-color: var(--amber-500); padding: 0; border-radius: 0; }
.ngrid input:focus { outline: none; background: #FFF4DF; }
.ngrid .given { font-weight: 700; color: var(--ink); background: var(--cream-100); display: grid; place-items: center; font-size: 1.35rem; }
.ngrid .cell { width: 52px; height: 52px; border: 1px solid var(--line-strong); }
.ngrid .clue { width: 52px; height: 52px; display: grid; place-items: center; font-weight: 700; color: var(--amber-700); font-size: 1.1rem; }
.ngrid .bad input { color: var(--bad); background: #FDECEA; }
.sudoku .cell.br { border-right: 2.5px solid var(--navy-700); }
.sudoku .cell.bb { border-bottom: 2.5px solid var(--navy-700); }
.sudoku { border: 2.5px solid var(--navy-700); width: max-content; }
@media (max-width: 420px) { .ngrid .cell, .ngrid .clue { width: 44px; height: 44px; } }

/* knocks */
.knocks { display: grid; gap: 14px; }
.knock-word { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: #F6F1FA; border: 1px solid #DCCDEA; }
.knock { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; background: #fff; border-radius: 8px; border: 1px solid #E3D8EE; }
.knock i { display: inline-flex; gap: 3px; }
.knock i::before { content: attr(data-dots); letter-spacing: 1px; font-style: normal; color: #5A3D7A; font-size: .9rem; }
.knock em { font-style: normal; opacity: .35; }
.tap-square { border-collapse: collapse; font-family: "Courier New", monospace; font-weight: 700; margin: 0; }
.tap-square th, .tap-square td { width: 36px; height: 36px; text-align: center; border: 1px solid var(--line-strong); }
.tap-square th { background: var(--navy-700); color: var(--cream-100); font-family: var(--font-sans); font-size: .8rem; }

/* ---------- Quiz ---------- */
.quiz { background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.quiz__progress { height: 6px; background: var(--cream-200); }
.quiz__progress span { display: block; height: 100%; background: var(--amber-400); width: 0; transition: width .3s ease; }
.quiz__body { padding: clamp(22px, 4vw, 44px); }
.quiz__q { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-bottom: 1rem; }
.quiz__opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.quiz__opt { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--cream-50); display: grid; gap: 4px; font-family: var(--font-serif); font-size: 1.05rem; transition: border-color .15s ease, transform .15s ease; }
.quiz__opt small { font-family: var(--font-sans); font-size: .8rem; color: var(--ink-soft); }
.quiz__opt:hover { border-color: var(--amber-500); transform: translateY(-2px); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 22px; font-family: var(--font-sans); font-size: .88rem; }
.quiz__nav button { background: none; border: 0; text-decoration: underline; color: var(--ink-soft); }
.quiz-result { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
@media (max-width: 640px) { .quiz-result { grid-template-columns: 1fr; } .quiz-result .cover { max-width: 200px; } }

/* ---------- Gift guide ---------- */
.gift-block { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 4vw, 48px); padding-block: 36px; border-top: 1px solid var(--line); }
.gift-block:first-of-type { border-top: 0; }
.gift-block h2 { font-size: 1.7rem; }
@media (max-width: 820px) { .gift-block { grid-template-columns: 1fr; } }
.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.occasion { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.occasion b { font-family: var(--font-sans); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-700); }
.occasion h3 { font-size: 1.12rem; margin: 6px 0 6px; }
.occasion p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.occasion .occasion__status { margin-top: 12px; }

/* ---------- Puzzle guide ---------- */
.type-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.type h3 { font-size: 1.18rem; margin-bottom: .3em; }
.type p { font-size: .98rem; color: var(--ink-soft); margin-bottom: .7em; }
.type .in { font-family: var(--font-sans); font-size: .82rem; }
.type .in a { color: var(--amber-700); }
.az { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Dialog / toast / lightbox ---------- */
dialog { border: 0; padding: 0; border-radius: var(--radius-l); max-width: min(560px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.45); color: var(--ink); background: var(--cream-50); }
dialog::backdrop { background: rgba(10, 14, 24, .66); backdrop-filter: blur(3px); }
.dialog__body { padding: 30px 28px 26px; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(30,42,64,.07); font-size: 1.4rem; line-height: 1; }
.dialog__close:hover { background: rgba(30,42,64,.14); }
.dialog__book { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.dialog__book img { width: 64px; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
dialog.lightbox { max-width: min(1100px, calc(100vw - 24px)); background: transparent; box-shadow: none; }
dialog.lightbox img { border-radius: var(--radius); width: 100%; }
dialog.lightbox .dialog__close { background: rgba(255,255,255,.9); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 300; background: var(--navy-800); color: var(--cream-100); padding: 14px 18px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-family: var(--font-sans); font-size: .92rem; display: flex; gap: 12px; align-items: center; max-width: min(520px, calc(100vw - 32px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 30px; height: 36px; flex: none; }
.toast a { color: var(--amber-300); }

/* Owl hunt */
.hidden-owl { position: absolute; width: 22px; height: 26px; padding: 0; border: 0; background: none; opacity: .5; z-index: 5; transition: transform .2s ease, opacity .2s ease; cursor: pointer; }
.hidden-owl:hover, .hidden-owl:focus-visible { opacity: 1; transform: scale(1.35) rotate(-8deg); }
.hidden-owl svg { width: 100%; height: 100%; }
.hidden-owl.found { opacity: .18; cursor: default; transform: none; }
.pos-rel { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #C7CCD8; padding-block: 64px 32px; font-family: var(--font-sans); font-size: .9rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { font-family: var(--font-serif); font-style: italic; color: #D9DDE6; max-width: 26em; }
.site-footer h2 { font-family: var(--font-sans); font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-300); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: #E4E7EE; }
.site-footer a:hover { color: var(--amber-300); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(244,233,216,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .8rem; color: #9AA3B6; }
.footer-bottom p { margin: 0; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(244,233,216,.2); }
.social svg { width: 16px; height: 16px; }

/* ---------- Misc ---------- */
.tag-pill { display: inline-block; font-family: var(--font-sans); font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: var(--cream-200); color: var(--ink-soft); }
.notice { background: #FFF6E6; border: 1px solid #F3D29B; border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.kit a { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; font-family: var(--font-sans); font-size: .85rem; }
.kit a:hover { border-color: var(--amber-500); }
.kit img { height: 90px; width: auto; }
.num-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; text-align: center; }
.num-strip b { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--amber-300); line-height: 1.1; }
.num-strip span { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .06em; color: #C9CEDA; }
.divider-owl { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 0 auto 26px; color: var(--t-accent-text, var(--amber-700)); }
.divider-owl::before, .divider-owl::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .5; }
.divider-owl svg { width: 22px; height: 26px; }

/* ---------- Print (puzzles and legal pages print cleanly) ---------- */
@media print {
  .site-header, .site-footer, .toolbar, .puzzle__controls, .puzzle__foot, .no-print, .hidden-owl, .skip-link, .toast, .share, .band { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: none; color: #000; padding: 0 0 12pt; }
  .page-hero h1 { color: #000; }
  .puzzle { box-shadow: none; border: 1px solid #999; break-inside: avoid; margin-bottom: 18pt; }
  .puzzle__head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #999; }
  .section { padding: 0; }
  a { text-decoration: none; }
  body.print-one .puzzle:not(.print-me) { display: none !important; }
  body.print-one .page-hero, body.print-one .puzzle-toc, body.print-one .section-head { display: none !important; }
  .puzzle::after { content: "Free puzzle from Owlbrook Puzzles · owlbrookpuzzles.com"; display: block; text-align: center; font-family: var(--font-sans); font-size: 9pt; color: #555; padding: 8pt 0 10pt; border-top: 1px solid #ccc; }
  .puzzle__result { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.book-card .book-card__buy .badge { display: none; }
@media (max-width: 600px) {
  .hero__moon { width: 64px; top: 12px; right: 10px; opacity: .75; }
  .hero .eyebrow { max-width: 78%; }
  .hero__badge { width: 84px; height: 84px; font-size: .68rem; left: -1%; }
}
.gift-block > div, .detail-grid > *, .grid > * { min-width: 0; }

@media (max-width: 700px) { .toolbar { position: static; } .toolbar .select, .market select { width: 100%; } .toolbar__inner > * { flex: 1 1 100%; } }

/* ---------- Printables page ---------- */
.print-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.print-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.print-steps .step { width: 44px; height: 44px; border-radius: 50%; background: var(--amber-400); color: var(--navy-900); display: grid; place-items: center; font-family: var(--font-sans); font-weight: 700; }
.print-steps h3 { font-size: 1.15rem; margin: 8px 0 4px; }
.print-steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .print-steps { grid-template-columns: 1fr; } }
.pack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 22px; }
.pack { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; box-shadow: var(--shadow-s); }
.pack__cover img { border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); }
.pack__body { display: flex; flex-direction: column; gap: 6px; }
.pack__body h3 { margin: 0; font-size: 1.25rem; }
.pack__body h3 a { text-decoration: none; }
.pack__files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pack__files li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.pack-empty h3 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; }
.pack-empty h3 svg { width: 22px; height: 22px; flex: none; }
.pack-preview { position: relative; height: clamp(300px, 34vw, 430px); }
.pack-preview picture { position: absolute; width: 52%; box-shadow: 0 2px 4px rgba(15,22,38,.12), 0 16px 34px rgba(15,22,38,.18); border-radius: 4px; overflow: hidden; background: #fff; }
.pack-preview picture:nth-child(1) { left: 0; top: 8%; transform: rotate(-6deg); z-index: 1; }
.pack-preview picture:nth-child(2) { left: 24%; top: 0; transform: rotate(1deg); z-index: 3; }
.pack-preview picture:nth-child(3) { left: 48%; top: 10%; transform: rotate(7deg); z-index: 2; }

/* ---------- Background music button (series page) ---------- */
.music-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px; border: 1px solid rgba(244,233,216,.25); background: rgba(21,16,28,.86); color: #F4E9D8; font-family: var(--font-sans); font-size: .82rem; font-weight: 500; box-shadow: 0 8px 22px rgba(0,0,0,.35); backdrop-filter: blur(6px); cursor: pointer; }
.music-toggle svg { width: 20px; height: 20px; flex: none; }
.music-toggle .music-toggle__on, .music-toggle.is-playing .music-toggle__off { display: none; }
.music-toggle.is-playing .music-toggle__on { display: block; color: #D0BDEC; }
.music-toggle:hover { background: rgba(31,20,38,.95); }
@media print { .music-toggle { display: none !important; } }
/* ---------- Fan Corner ---------- */
.fan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: clamp(22px, 3vw, 34px); }
.fan-item { display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; background: var(--t-bg2, #fff); border: 1px solid var(--t-line, var(--line)); box-shadow: var(--shadow-s); }
.fan-item__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.fan-item__art > picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fan-item:hover .fan-item__art > picture img { transform: scale(1.03); }
.fan-item__phone { position: absolute; left: 14px; bottom: -6px; width: 17%; border-radius: 10px; overflow: hidden; border: 3px solid #15101C; box-shadow: 0 10px 24px rgba(0,0,0,.45); transform: rotate(-4deg); }
.fan-item__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.fan-item__body h3 { margin: 0; font-size: 1.3rem; }
.fan-item__body p { margin: 0; color: var(--t-soft, var(--ink-soft)); }
.fan-item__body .btn-row { margin-top: 8px; }
.fan-item__meta { opacity: .8; }
.buybox__kindle { margin-top: 10px; }

/* ---------- One Night on Sepulchre Hill (Seven Nights Dead taster, temporary) ---------- */
.snd-hero { position: relative; overflow: hidden; isolation: isolate; color: #F4E9D8; padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px);
  background: radial-gradient(900px 520px at 85% 10%, rgba(189,164,226,.18), transparent 60%), linear-gradient(180deg, #160E1C 0%, #241830 100%); }
.snd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 47% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 40%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 88% 70%, #fff 50%, transparent 51%); background-size: 560px 380px; }
.snd-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.snd-hero .breadcrumb a, .snd-hero .breadcrumb { color: #D5C9DE; }
.snd-hero .eyebrow { color: #D0BDEC; }
.snd-hero h1 { color: #FFF8EC; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); margin-bottom: .3em; }
.snd-hero .lede { color: #E4DCEB; max-width: 34em; }
.snd-hero__small { color: #BFB3CC; font-size: .98rem; max-width: 36em; }
.snd-hero .btn-row { margin: 22px 0 18px; }
.snd-hero .btn--ghost { color: #F4E9D8; }
.snd-levels { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-family: var(--font-sans); font-size: .85rem; color: #D5C9DE; }
.snd-plate { margin: 0; justify-self: center; max-width: 420px; background: #F7F1E6; padding: 12px 12px 8px; border-radius: 4px; transform: rotate(1.6deg); box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.45); }
.snd-plate img { width: 100%; height: auto; border-radius: 2px; }
.snd-plate figcaption { font-family: var(--font-serif); font-style: italic; font-size: .82rem; color: #5A4C66; text-align: center; padding-top: 8px; }
@media (max-width: 860px) { .snd-hero__grid { grid-template-columns: 1fr; } .snd-plate { max-width: 300px; transform: rotate(1deg); } }

.snd-level { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; line-height: 1.2; }
.snd-level--medium { background: #3F7A5A; }
.snd-level--hard { background: #A8701C; }
.snd-level--fiendish { background: #9E2F3A; }

.snd-paper { background: #F6F0E4; color: #241A2E; }
.snd-paper .eyebrow { color: #6E4E91; }
.snd-case { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: start; }
.snd-case__pic { margin: 0; }
.snd-case__pic img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 28px rgba(36,26,46,.3); }
.snd-case__pic figcaption { font-style: italic; font-size: .85rem; color: #5A4C66; margin-top: 8px; }
.snd-how { margin-top: 20px; }
.snd-how b { color: #6E4E91; }
.snd-sub { margin: clamp(32px, 5vw, 52px) 0 16px; font-size: 1.35rem; }
.snd-suspects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.snd-suspect { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; background: #FFFBF4; border: 1px solid #E2D7C3; border-radius: 12px; padding: 12px; }
.snd-suspect img { width: 76px; height: 95px; object-fit: cover; border-radius: 6px; }
.snd-suspect b { display: block; font-size: 1.05rem; }
.snd-suspect span { display: block; font-size: .92rem; color: #5A4C66; line-height: 1.45; }
.snd-raven { width: 76px; height: 95px; border-radius: 6px; background: #E6DCEF; display: grid; place-items: center; }
.snd-raven svg { width: 60px; height: 60px; }
.snd-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 52px); }
.snd-toc a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #2C1D37; color: #F4E9D8; text-decoration: none; position: relative; transition: transform .2s ease; }
.snd-toc a:hover { transform: translateY(-3px); }
.snd-toc small { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #D0BDEC; }
.snd-toc b { font-size: 1.05rem; }
.snd-toc .snd-level { align-self: flex-start; }
.snd-toc a[data-done]::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: #3F7A5A; color: #fff; display: grid; place-items: center; font-family: var(--font-sans); font-size: .8rem; }
.snd-toc a[data-done="shown"]::after { background: #7A6E86; }
.snd-toc__final { background: #6E4E91 !important; }

.snd-night { background: linear-gradient(180deg, #1F1426, #170F1D); }
.snd-stack { display: grid; gap: clamp(28px, 4vw, 48px); }
.snd-sheet { overflow: clip; background: #FBF7EF; color: #241A2E; border: 0; box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.4); scroll-margin-top: calc(var(--header-h) + 12px); }
.snd-head { background: #2C1D37; color: #F4E9D8; }
.snd-head__t { display: flex; gap: 14px; align-items: center; }
.snd-no { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #BDA4E2; color: #E4D6F2; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.snd-kind { margin: 0; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #D0BDEC; }
.snd-head h2 { color: #FFF8EC; }
.snd-sheet .puzzle__meta span:not(.snd-level) { color: #D5C9DE; border-color: rgba(244,233,216,.22); }
.snd-sheet.is-done .snd-no { background: #3F7A5A; border-color: #3F7A5A; color: #fff; }
.snd-introrow { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.snd-introrow > picture img { width: clamp(120px, 22vw, 240px); height: auto; }
.snd-vignette img { mix-blend-mode: multiply; }
.snd-vignette--small img { width: 120px !important; }
.snd-portrait img { width: clamp(90px, 14vw, 150px) !important; border-radius: 8px; box-shadow: 0 6px 18px rgba(36,26,46,.3); }
@media (max-width: 620px) { .snd-introrow { grid-template-columns: 1fr; } .snd-introrow > picture { justify-self: center; } }
.snd-rule { background: #F1EADC; border-left: 4px solid #6E4E91; border-radius: 4px 10px 10px 4px; padding: 14px 18px; font-size: .98rem; line-height: 1.6; }
.snd-small { font-family: var(--font-sans); font-size: .86rem; color: #5A4C66; margin: 0 0 10px; }
.snd-answer { display: grid; gap: 10px; background: #FFFDF8; border: 1px solid #E2D7C3; border-radius: 12px; padding: 16px 18px; }
.snd-answer label, .snd-answer legend, .snd-answer > p { font-size: 1.02rem; margin: 0; }
.snd-keep { margin: 0; font-family: var(--font-sans); font-size: .84rem; font-weight: 600; color: #6E4E91; }
.snd-note { background: #EEF5F0; border: 1px solid #B9D6C3; border-radius: 10px; padding: 12px 16px; color: #1F4B32; }
.snd-letter { width: 34px; height: 40px; padding: 0; text-align: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: #241A2E; background: #fff; border: 1.5px solid #CDBFAA; border-radius: 6px; }
.snd-letter:focus { outline: 3px solid #BDA4E2; outline-offset: 1px; border-color: #6E4E91; }
.snd-letter[readonly] { background: #EDE5D6; border-color: #CDBFAA; }
.snd-letter.ok { border-color: #3F7A5A; background: #EEF7F1; }
.snd-letter.bad { border-color: #B3382C; background: #FBEAE7; }
/* spirit board */
.sb-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .sb-layout { grid-template-columns: 1fr; } .sb-dial-wrap { max-width: 300px; justify-self: center; width: 100%; } }
.sb-dial { width: 100%; height: auto; }
.sb-rim { fill: #EFE5D2; stroke: #3A2C48; stroke-width: 2.5; }
.sb-inner { fill: #F7F0E3; stroke: #3A2C48; stroke-width: 1; stroke-dasharray: 3 4; }
.sb-centre { font-family: var(--font-sans); font-size: 9px; letter-spacing: .2em; fill: #7A6A88; text-anchor: middle; }
.sb-spot { fill: transparent; transition: fill .2s ease; }
.sb-spot.on { fill: #BDA4E2; }
.sb-l { font-family: var(--font-serif); font-weight: 700; font-size: 15px; fill: #241A2E; text-anchor: middle; pointer-events: none; }
.sb-l.sb-start { fill: #9E2F3A; }
.sb-arrow { fill: none; stroke: #6E4E91; stroke-width: 1.6; }
.sb-arrowhead { fill: #6E4E91; }
.sb-moves { display: flex; flex-wrap: wrap; gap: 10px 6px; align-items: flex-end; }
.sb-word { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #F1EADC; border-radius: 8px; }
.sb-move { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.sb-move b { font-family: var(--font-sans); font-size: .74rem; font-weight: 600; color: #4E3B6B; white-space: nowrap; }
.sb-gap { font-size: 1.4rem; color: #9C8CA8; padding-bottom: 8px; }
/* knock code */
.kc-layout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .kc-layout { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .kc-layout > :first-child { position: sticky; top: calc(var(--header-h) + 16px); } }
.kc-words { display: grid; gap: 10px; }
.kc-pair { flex-direction: column; gap: 4px; }
.kc-dots { display: inline-flex; gap: 5px; align-items: center; }
.snd-sheet .tap-square td { background: #fff; }
/* ghost testimony */
.gt-ghosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.gt-ghost { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; background: #F5EFFA; border: 1px solid #DCCDEA; border-radius: 12px; padding: 12px; }
.gt-ghost img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; }
.gt-ghost img.flip { transform: scaleX(-1); }
.gt-name { display: block; font-size: 1.02rem; }
.gt-says { font-style: italic; margin: 4px 0 8px; }
.gt-answer { border: 1px solid #E2D7C3; }
.gt-facts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gt-fact { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid #E2D7C3; border-radius: 10px; background: #fff; cursor: pointer; }
.gt-fact:has(input:checked) { border-color: #6E4E91; background: #F5EFFA; }
.gt-answer .btn { justify-self: start; }
/* mourners and graves */
.mg-wrap { overflow-x: auto; }
.mg-grid { --mg-cell: clamp(20px, calc((100vw - 90px) / 11), 44px); display: grid; width: max-content; margin-inline: auto; border-left: 2px solid #3A2C48; border-top: 2px solid #3A2C48; }
.mg-count { width: var(--mg-cell); height: var(--mg-cell); display: grid; place-items: center; font-family: var(--font-sans); font-weight: 600; font-size: .9rem; color: #3A2C48; background: #EDE5D6; border-right: 1px solid #CDBFAA; border-bottom: 1px solid #CDBFAA; }
.mg-count.full { color: #fff; background: #3F7A5A; }
.mg-count.over { color: #fff; background: #B3382C; }
.mg-corner { background: #3A2C48; }
.mg-cell { width: var(--mg-cell); height: var(--mg-cell); padding: 0; position: relative; display: grid; place-items: center; background: #fff; border: 0; border-right: 1px solid #CDBFAA; border-bottom: 1px solid #CDBFAA; color: #241A2E; cursor: pointer; }
.mg-cell svg { width: 72%; height: 72%; }
button.mg-cell svg { display: none; }
.mg-l { position: absolute; left: 3px; top: 1px; font-family: var(--font-serif); font-weight: 700; font-size: .8rem; color: #6F6080; }
button.mg-cell[data-v="m"] svg { display: block; }
button.mg-cell[data-v="m"] .mg-l { color: #241A2E; font-size: .8rem; }
button.mg-cell[data-v="x"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9C8CA8; }
button.mg-cell.bad { background: #FBEAE7; }
.mg-grave { background: #EAE3F1; cursor: default; }
.mg-readline b { font-family: var(--font-serif); font-size: 1rem; letter-spacing: .12em; color: #241A2E; }
/* crypt maze */
.cm-wrap { overflow-x: auto; background: #fff; border: 1px solid #E2D7C3; border-radius: 12px; padding: 8px; }
.cm-svg { display: block; width: 100%; min-width: 260px; max-width: 520px; height: auto; margin-inline: auto; }
.cm-cell { fill: transparent; cursor: pointer; }
.cm-cell:hover { fill: #F3EDF9; }
.cm-cell.on { fill: #E1D2F1; }
.cm-walls { fill: none; stroke: #241A2E; stroke-width: 2.6; stroke-linecap: square; }
.cm-l { font-family: var(--font-serif); font-weight: 700; font-size: 15px; fill: #3A2C48; text-anchor: middle; pointer-events: none; }
.cm-io { font-family: var(--font-sans); font-weight: 700; font-size: 12px; fill: #9E2F3A; text-anchor: middle; letter-spacing: .1em; }
@media (max-width: 560px) { .cm-l { font-size: 20px; } .cm-io { font-size: 15px; } }
/* the Captain's ladder */
.ep-layout { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .ep-layout { grid-template-columns: 1fr; } .ep-stone { justify-self: center; } }
.ep-stone { background: linear-gradient(180deg, #E9E3D8, #DCD4C6); border: 2px solid #A99E8C; border-radius: 120px 120px 10px 10px; padding: 34px 22px 18px; box-shadow: inset 0 0 0 6px rgba(255,255,255,.35); }
.ep-ladder { display: grid; gap: 6px; }
.ep-rung { display: flex; gap: 4px; align-items: center; padding: 3px 6px; border-radius: 8px; }
.ep-rung.ok { background: rgba(63,122,90,.14); }
.ep-rung.bad { background: rgba(179,56,44,.14); }
.ep-no { width: 20px; font-family: var(--font-sans); font-size: .74rem; color: #6B5F55; text-align: right; margin-right: 4px; }
.ep-rung.given .snd-letter { background: #CFC6B6; color: #241A2E; }
.ep-clues { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.ep-clues li { cursor: pointer; }
.ep-clues li.done { text-decoration: line-through; color: #9C8CA8; }
/* the verse */
.lc-page { background: #FFFDF8 repeating-linear-gradient(180deg, transparent 0 51px, rgba(110,78,145,.12) 51px 52px); border: 1px solid #E2D7C3; border-radius: 10px; padding: 18px 20px; }
.lc-cipher { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.lc-word { display: inline-flex; }
.lc-ch { display: inline-flex; flex-direction: column; align-items: center; min-width: .9em; }
.lc-ch b { font-family: "Courier New", monospace; font-size: 1.2rem; color: #241A2E; letter-spacing: .04em; }
.lc-ch i { font-family: "Courier New", monospace; font-style: normal; font-size: .8rem; color: #9E2F3A; }
.lc-keyform .input { max-width: 300px; }
.lc-table-wrap { overflow-x: auto; margin-top: 10px; }
.lc-table { border-collapse: collapse; font-family: "Courier New", monospace; font-size: .72rem; }
.lc-table th, .lc-table td { width: 20px; height: 20px; text-align: center; border: 1px solid #E8DFCF; padding: 0; }
.lc-table th { background: #3A2C48; color: #F4E9D8; }
/* the final question */
.snd-final .snd-head { background: #6E4E91; }
.snd-casebook { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.snd-casebook li b { font-family: var(--font-serif); }
.snd-casebook__clue { color: #8A7B96; font-style: italic; }
.snd-casebook li.is-done .snd-casebook__clue { color: #241A2E; font-style: normal; }
.rk-selects { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.rk-selects label { display: grid; gap: 6px; font-family: var(--font-sans); font-size: .84rem; font-weight: 500; }
.snd-epilogue { background: #2C1D37; color: #F4E9D8; border-radius: 12px; padding: 16px 20px; }
/* the book */
.snd-book { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.snd-book__cover img { box-shadow: var(--shadow-book); border-radius: 3px 6px 6px 3px; }
.snd-buy { max-width: 440px; margin: 18px 0; }
@media (max-width: 760px) { .snd-case, .snd-book { grid-template-columns: minmax(0, 1fr); } .snd-case__pic, .snd-book__cover { max-width: 240px; justify-self: center; } }
/* links to the page */
.snd-callout { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border: 1.5px dashed var(--t-accent, #BDA4E2); border-radius: 12px; color: inherit; text-decoration: none; background: rgba(189,164,226,.08); }
.snd-callout b { font-family: var(--font-serif); font-size: 1.05rem; }
.snd-callout b::after { content: " →"; }
.snd-callout span { font-size: .92rem; opacity: .85; }
.snd-callout:hover { background: rgba(189,164,226,.16); }
.snd-callout--wide { margin-top: 32px; max-width: 640px; }
.book-print { margin: 14px 0 0; color: var(--t-soft); }
.book-print svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.book-print a { color: var(--t-accent-text); }
@media print {
  .snd-hero, .snd-toc, .snd-night { background: none !important; }
  body.print-one .snd-hero, body.print-one #the-case, body.print-one #the-book { display: none !important; }
  .snd-sheet { box-shadow: none; }
  .snd-head { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
  .snd-head h2 { color: #000; }
}
/* ---------- Buy direct (Stripe checkout) ---------- */
.buybox__direct svg { width: 1.1em; height: 1.1em; }
.direct__country { display: grid; gap: 6px; font-family: var(--font-sans); font-weight: 500; font-size: .92rem; margin: 6px 0 14px; }
.direct__country select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.direct__sum { margin: 0 0 12px; display: grid; gap: 4px; }
.direct__sum > div { display: flex; justify-content: space-between; gap: 12px; }
.direct__sum dt, .direct__sum dd { margin: 0; }
.direct__total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; font-weight: 700; font-size: 1.08rem; }
.direct__cur { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: rgba(242,165,65,.14); }
.direct__note { margin: 12px 0 0; }
.terms-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.terms-table th, .terms-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms-table td:last-child, .terms-table th:last-child { text-align: right; white-space: nowrap; }
.terms-form { margin: 0 0 18px; }
.terms-form summary { cursor: pointer; font-weight: 600; }

/* ---------- The Night Before the Gala (Locked in the Waxworks taster, temporary) ---------- */
.liw .snd-hero { background: radial-gradient(900px 520px at 85% 10%, rgba(242,165,65,.16), transparent 60%), linear-gradient(180deg, #170D09 0%, #2A1810 100%); }
.liw .snd-hero::before { opacity: .18; }
.liw .snd-hero .breadcrumb, .liw .snd-hero .breadcrumb a { color: #DCCBB5; }
.liw .snd-hero .eyebrow { color: #E9C27C; }
.liw .snd-hero .lede { color: #EDE2D2; }
.liw .snd-hero__small, .liw .snd-levels { color: #C9B8A2; }
.liw .snd-plate figcaption { color: #6B5443; }
.liw .snd-paper .eyebrow, .liw .snd-how b, .liw .snd-keep { color: #8C3B2C; }
.liw .snd-case__pic figcaption, .liw .snd-suspect span { color: #5E4A3C; }
.liw .snd-raven { background: #EFE3D3; }
.liw .snd-toc a { background: #2B1A12; }
.liw .snd-toc small { color: #E9C27C; }
.liw .snd-toc__final { background: #7A2E24 !important; }
.liw .snd-night { background: linear-gradient(180deg, #1C110C, #120A07); }
.liw .snd-head { background: #2B1A12; }
.liw .snd-no { border-color: #E2B56A; color: #F3DDB0; }
.liw .snd-kind { color: #E9C27C; }
.liw .snd-sheet .puzzle__meta span:not(.snd-level) { color: #DCCBB5; }
.liw .snd-rule { border-left-color: #8C3B2C; background: #F3EADB; }
.liw .snd-letter:focus { outline-color: #E2B56A; border-color: #8C3B2C; }
.liw .snd-final .snd-head { background: #7A2E24; }
.liw .snd-epilogue { background: #2B1A12; }
.liw .snd-casebook__clue { color: #8A7766; }
.liw-villains { margin: 18px 0 0; padding: 12px 16px; background: #FFFBF4; border: 1px dashed #CDBFAA; border-radius: 12px; font-size: .96rem; }
.liw .snd-suspects { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.snd-scene img { width: clamp(120px, 20vw, 220px) !important; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(36,26,20,.35); }
/* tumbler lock */
.tl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .tl-layout { grid-template-columns: minmax(0, 1fr); } }
.tl-tries { display: grid; gap: 10px; }
.tl-try { display: flex; align-items: center; gap: 14px; background: #FFFBF4; border: 1px solid #E2D7C3; border-radius: 12px; padding: 10px 14px; }
.tl-n { font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6B5443; min-width: 3.4em; }
.tl-dials { display: inline-flex; gap: 6px; }
.tl-dials b { width: 38px; height: 46px; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.5rem; color: #F3DDB0; background: linear-gradient(180deg, #3B2618, #22140D); border-radius: 8px; box-shadow: inset 0 2px 4px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.2); }
.tl-sound { font-size: 1.3rem; letter-spacing: .15em; color: #241A14; }
.tl-sound i { font-size: .9rem; letter-spacing: 0; color: #8A7766; }
.tl-grid { border-collapse: collapse; }
.tl-grid th { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; text-align: left; padding-right: 8px; color: #5E4A3C; white-space: nowrap; }
.tl-grid td { padding: 2px 1px; }
.tl-d { width: clamp(19px, 5.6vw, 30px); height: 32px; padding: 0; border: 1.5px solid #CDBFAA; border-radius: 6px; background: #fff; font-family: var(--font-serif); font-weight: 700; color: #241A14; cursor: pointer; }
.tl-d[data-v="x"] { color: #B9AA98; background: #F1EADC; text-decoration: line-through; }
.tl-d[data-v="o"] { background: #3F7A5A; border-color: #3F7A5A; color: #fff; }
/* word search: chalk on a slate */
.ws-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .ws-layout { grid-template-columns: minmax(0, 1fr); } }
.ws-wrap { overflow-x: auto; }
.ws-grid { --ws-cell: clamp(20px, calc((100vw - 105px) / 12), 34px); display: grid; gap: 1px; width: max-content; margin-inline: auto; background: #2E2A26; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 4px #5A4636, 0 6px 16px rgba(36,26,20,.3); }
.ws-cell { width: var(--ws-cell); height: var(--ws-cell); padding: 0; border: 0; border-radius: 50%; background: transparent; color: #F1ECE4; font-family: var(--font-serif); font-weight: 700; font-size: calc(var(--ws-cell) * .52); line-height: 1; cursor: pointer; }
.ws-cell.sel { background: rgba(233,194,124,.5); color: #fff; }
.ws-cell[data-v="x"] { color: rgba(241,236,228,.3); background: rgba(241,236,228,.1); text-decoration: line-through; }
.ws-cell.bad { background: rgba(179,56,44,.65); }
.ws-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.ws-word { width: 100%; text-align: left; border: 1.5px solid #E2D7C3; background: #FFFBF4; border-radius: 8px; padding: 6px 10px; font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: #241A14; cursor: pointer; }
.ws-word.done { text-decoration: line-through; color: #A89886; background: #F1EADC; }
.ws-readline b { font-family: var(--font-serif); letter-spacing: .1em; color: #241A14; word-break: break-all; }
/* logic grid */
.lg-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
@media (max-width: 980px) { .lg-layout { grid-template-columns: minmax(0, 1fr); } }
.lg-clues { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.lg-clues li, .at-facts li { cursor: pointer; }
.lg-clues li.done, .at-facts li.done { text-decoration: line-through; color: #A89886; }
.lg-wrap { overflow-x: auto; }
.lg-grid { --lg-cell: 28px; border-collapse: collapse; margin-inline: auto; }
.lg-grid th { font-family: var(--font-sans); font-size: .74rem; font-weight: 600; color: #3A2C24; }
.lg-grid tbody th { text-align: right; padding: 0 8px 0 0; white-space: nowrap; }
.lg-group { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem !important; color: #8C3B2C !important; padding-bottom: 4px; }
.lg-colh { height: 70px; vertical-align: bottom; padding: 0 0 4px; }
.lg-colh span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.lg-num { height: auto; }
.lg-num span { writing-mode: horizontal-tb; transform: none; }
.lg-td { padding: 0; border: 1px solid #CDBFAA; }
.lg-td.lg-end { border-right: 2px solid #3A2C24; }
.lg-band td { border-bottom: 2px solid #3A2C24; }
.lg-blank { border: 0; }
.lg-c { width: var(--lg-cell); height: var(--lg-cell); display: grid; place-items: center; border: 0; padding: 0; background: #fff; cursor: pointer; font-weight: 700; color: #241A14; }
.lg-c[data-v="x"]::after { content: "✕"; color: #9C8A78; font-size: .78rem; }
.lg-c[data-v="o"]::after { content: "✓"; color: #3F7A5A; font-size: 1rem; }
.lg-c.bad { background: #FBEAE7; }
@media (max-width: 520px) { .lg-grid { --lg-cell: 20px; } .lg-grid tbody th { font-size: .66rem; padding-right: 4px; } }
/* letter sudoku: the kitchen tiles */
.su-wrap { display: grid; justify-content: center; }
.su-grid { border-collapse: collapse; border: 2.5px solid #3A2C24; }
.su-td { padding: 0; border: 1px solid #CDBFAA; }
.su-td.su-v { border-right: 2.5px solid #3A2C24; }
.su-td.su-h { border-bottom: 2.5px solid #3A2C24; }
.su-grid .snd-letter { width: clamp(38px, 11vw, 50px); height: clamp(38px, 11vw, 50px); border: 0; border-radius: 0; font-size: 1.35rem; background: #FBF5EA; }
.su-grid .snd-letter[readonly] { background: #E7DCC9; color: #241A14; }
.su-dark .snd-letter, .su-dark .snd-letter[readonly] { background: #5A3A2A; color: #FFF3DE; }
.su-dark .snd-letter.bad { background: #8E2F25; }
.su-dark .snd-letter.ok { background: #2F5E46; }
.su-readline { text-align: center; }
.su-readline b { font-family: var(--font-serif); letter-spacing: .2em; color: #241A14; }
/* picture grid: Esther's cross-stitch */
.pg-wrap { overflow-x: auto; display: grid; justify-content: center; }
.pg-grid { --pg-cell: clamp(16px, calc((100vw - 145px) / 13), 30px); border-collapse: collapse; }
.pg-colclue { vertical-align: bottom; padding: 0 0 4px; font-family: var(--font-sans); font-size: .72rem; font-weight: 600; color: #3A2C24; line-height: 1.2; }
.pg-colclue span { display: block; text-align: center; }
.pg-rowclue { text-align: right; padding-right: 6px; font-family: var(--font-sans); font-size: .72rem; font-weight: 600; color: #3A2C24; white-space: nowrap; }
.pg-rowclue span { display: inline-block; min-width: 1em; margin-left: .2em; text-align: center; }
.pg-colclue span + span { margin-top: 1px; }
.pg-colclue.ok, .pg-rowclue.ok { color: #B5A693; }
.pg-td { padding: 0; border: 1px solid #D5C7B3; }
.pg-td.pg-v { border-right: 2px solid #8C7B69; }
.pg-td.pg-h { border-bottom: 2px solid #8C7B69; }
.pg-c { width: var(--pg-cell); height: var(--pg-cell); display: block; border: 0; padding: 0; background: #FFFDF8; cursor: pointer; }
.pg-c[data-v="s"] { background-color: #7A2E24; background-image: linear-gradient(45deg, transparent 43%, rgba(255,235,210,.35) 46%, transparent 50%), linear-gradient(-45deg, transparent 43%, rgba(255,235,210,.35) 46%, transparent 50%); }
.pg-c[data-v="x"]::after { content: ""; display: block; width: 5px; height: 5px; margin: auto; border-radius: 50%; background: #B9AA98; }
.pg-c.bad { outline: 2px solid #B3382C; outline-offset: -2px; }
/* alibi timeline */
.at-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .at-layout { grid-template-columns: minmax(0, 1fr); } .at-plan { max-width: 320px; justify-self: center; width: 100%; } }
.at-plan { margin: 0; }
.at-svg { width: 100%; height: auto; display: block; }
.at-edge { stroke: #8C7B69; stroke-width: 2; }
.at-node { fill: #2B1A12; stroke: #E2B56A; stroke-width: 1.5; }
.at-letter { font-family: var(--font-serif); font-weight: 700; font-size: 15px; fill: #F3DDB0; text-anchor: middle; }
.at-name { font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; fill: #3A2C24; }
.at-facts { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; font-size: .96rem; }
.at-wrap { overflow-x: auto; }
.at-chart { border-collapse: collapse; margin-inline: auto; }
.at-chart th { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; color: #3A2C24; padding: 4px 6px; }
.at-chart tbody th { text-align: right; white-space: nowrap; }
.at-chart td { padding: 3px; }
.at-c { width: clamp(36px, 10vw, 58px); height: 40px; padding: 0; border: 1.5px solid #CDBFAA; border-radius: 8px; background: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: #241A14; cursor: pointer; }
.at-c[data-v] { background: #F3EADB; border-color: #8C7B69; }
.at-c.bad { background: #FBEAE7; border-color: #B3382C; }
.at-key { margin-top: 8px; text-align: center; }
/* playfair */
.pf-keyform .input { max-width: 300px; }
.pf-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .pf-layout { grid-template-columns: minmax(0, 1fr); } .pf-square-wrap { justify-self: center; } }
.pf-square { border-collapse: collapse; }
.pf-square td { width: 38px; height: 38px; text-align: center; border: 1.5px solid #8C7B69; font-family: "Courier New", monospace; font-weight: 700; font-size: 1.05rem; background: #FFFDF8; color: #241A14; }
.pf-slip { background: #FFFDF8; border: 1px solid #E2D7C3; border-radius: 10px; padding: 14px 16px; box-shadow: 3px 4px 0 #E8DCC8; transform: rotate(-.4deg); }
.pf-pairs { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pf-pair { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.pf-pair b { font-family: "Courier New", monospace; font-size: 1.15rem; letter-spacing: .15em; color: #241A14; }
.pf-pair > span { display: inline-flex; gap: 2px; }
.pf-pair .snd-letter { width: 28px; height: 34px; font-size: 1rem; }

/* ---------- The Apprentice's First Case (The Undertaker's Casebook taster, temporary) ---------- */
.uc .snd-hero { background: radial-gradient(900px 520px at 85% 10%, rgba(217,182,90,.14), transparent 60%), linear-gradient(180deg, #100E18 0%, #1E1A2E 100%); }
.uc .snd-hero .breadcrumb, .uc .snd-hero .breadcrumb a { color: #D6D0E2; }
.uc .snd-hero .eyebrow { color: #E2C77A; }
.uc .snd-hero .lede { color: #ECE8F2; }
.uc .snd-hero__small, .uc .snd-levels { color: #BDB6CC; }
.uc .snd-paper .eyebrow, .uc .snd-how b, .uc .snd-keep { color: #6B4F9A; }
.uc .snd-case__pic figcaption { color: #5A5266; }
.uc .snd-toc a { background: #1E1A2E; }
.uc .snd-toc small { color: #E2C77A; }
.uc .snd-toc__final { background: #4B3A6B !important; }
.uc .snd-night { background: linear-gradient(180deg, #15131F, #0D0B13); }
.uc .snd-head { background: #1E1A2E; }
.uc .snd-no { border-color: #D9B65A; color: #F1E2B4; }
.uc .snd-kind { color: #E2C77A; }
.uc .snd-sheet .puzzle__meta span:not(.snd-level) { color: #D6D0E2; }
.uc .snd-rule { border-left-color: #8A6A1F; background: #F2ECDF; }
.uc .snd-letter:focus { outline-color: #D9B65A; border-color: #4B3A6B; }
.uc .snd-final .snd-head { background: #4B3A6B; }
.uc .snd-epilogue { background: #1E1A2E; }
.uc .snd-casebook__clue { color: #857C92; }
/* the case spread: cards like the book's left-hand page */
.uc-spread { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.uc-card { background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 4px; padding: 16px 18px; box-shadow: 0 1px 0 #E9E2D4, 0 8px 22px rgba(30,26,46,.08); }
.uc-card p, .uc-card ol { margin: 0; }
.uc-card ol { padding-left: 1.3em; display: grid; gap: 6px; }
.uc-card__k { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6B4F9A; margin-bottom: 8px !important; }
.uc-card__name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px !important; }
.uc-deceased { border: 3px double #241F30; }
.uc-cert { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; background: #FBF7EC repeating-linear-gradient(180deg, transparent 0 27px, rgba(75,58,107,.08) 27px 28px); }
.uc-cert__pic img { width: 72px; height: 90px; object-fit: cover; border-radius: 4px; }
.uc-cert__text { font-family: var(--font-serif); }
.uc-cert__sig { font-family: var(--font-serif); font-style: italic; text-align: right; margin-top: 8px !important; color: #4B3A6B; }
.uc-obs, .uc-circ { grid-column: span 1; }
@media (min-width: 900px) { .uc-obs, .uc-circ { grid-column: span 1; } }
.uc-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.uc-person { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: #FFFDF8; border: 4px solid #241F30; border-radius: 3px; padding: 12px; outline: 1px solid #241F30; outline-offset: -9px; }
.uc-person .uc-person__ini { width: 56px; height: 56px; line-height: 1; border-radius: 50%; display: grid; place-items: center; background: #241F30; color: #E2C77A; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem !important; letter-spacing: .04em; margin: 6px 0 0 4px; color: #E2C77A !important; }
.uc-person b { display: block; font-size: 1.02rem; margin-top: 4px; }
.uc-person span { display: block; font-size: .9rem; color: #5A5266; line-height: 1.45; }
.uc-tape { margin-top: 6px; font-family: var(--font-sans); font-size: .76rem !important; font-weight: 600; letter-spacing: .04em; color: #6B4F9A !important; }
/* coffin arithmetic */
.ca-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 24px; align-items: center; }
@media (max-width: 760px) { .ca-layout { grid-template-columns: minmax(0, 1fr); } }
.ca-ledger { background: #FFFDF8; border: 1px solid #DCD3C3; border-left: 3px solid #9E2F3A; border-radius: 4px; padding: 14px 18px; }
.ca-ledger__h { margin: 0 0 8px; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A6A1F; }
.ca-ledger ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.ca-rail { margin: 0; }
.ca-svg { width: 100%; height: auto; display: block; }
.ca-bar { stroke: #5A5266; stroke-width: 4; stroke-linecap: round; }
.ca-hook { stroke: #5A5266; stroke-width: 2; fill: none; }
.ca-robe { fill: #241F30; stroke: #0E0C14; stroke-width: 1; }
.ca-stain { fill: #7B3A8E; }
.ca-no { font-family: var(--font-sans); font-size: 12px; font-weight: 600; fill: #5A5266; text-anchor: middle; }
/* the obituary: newsprint */
.uc-paper { background: #F4F0E6; border: 1px solid #CFC6B4; padding: 12px; box-shadow: 0 6px 16px rgba(30,26,46,.12); }
.uc-paper__mast { margin: 0; text-align: center; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; border-bottom: 3px double #241F30; padding-bottom: 4px; }
.uc-paper__sub { margin: 6px 0 10px; text-align: center; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #5A5266; }
.ws-grid.uc-ws { --ws-cell: clamp(24px, calc((100vw - 110px) / 10), 36px); background: transparent; box-shadow: none; padding: 0; }
.uc-ws .ws-cell { color: #1C1A22; border-radius: 4px; }
.uc-ws .ws-cell.sel { background: rgba(217,182,90,.55); color: #1C1A22; }
.uc-ws .ws-cell[data-v="x"] { color: rgba(28,26,34,.32); background: rgba(75,58,107,.1); }
.uc-ws .ws-cell.bad { background: rgba(179,56,44,.4); }
/* the word lock's letters */
.cl-abc { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-abc .tl-d { width: 30px; }
/* wake interrogation */
.wi-guests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.wi-guest { background: #F4F1F8; border: 1px solid #DCD3E8; border-radius: 12px; padding: 12px 14px; }
.wi-guest__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wi-toggle.bad { border-color: #B3382C; background: #FBEAE7; }
/* poison garden */
.pg2-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .pg2-layout { grid-template-columns: minmax(0, 1fr); } }
.pg2-guide { background: #F3F5EE; border: 1px solid #CBD3BE; border-radius: 10px; padding: 12px 14px; }
.pg2-guide dl { margin: 0; display: grid; gap: 8px; }
.pg2-guide dt { font-family: var(--font-serif); font-weight: 600; text-transform: capitalize; }
.pg2-guide dd { margin: 0; font-size: .88rem; color: #4A5242; }
.pg2-guide .is-poison dt { color: #7A2E24; }
.pg2-skull { font-size: .9rem; }
.pg2-facts { margin-bottom: 14px !important; }
.pg2-grid .lg-colh { height: 112px; }
.pg2-grid tbody th { font-size: .74rem; }
/* timeline ruler */
.tl2-evidence { margin: 0 0 14px !important; }
.tl2-ruler { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 10px; }
.tl2-t { min-width: 48px; height: 34px; padding: 0 6px; border: 1.5px solid #CDBFAA; border-radius: 6px; background: #fff; font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: #241F30; cursor: pointer; }
.tl2-t[data-major] { border-color: #8C7B69; }
.tl2-t[data-v="x"] { color: #B9AA98; background: #F1EADC; text-decoration: line-through; }
.tl2-t[data-v="o"] { background: #4B3A6B; border-color: #4B3A6B; color: #fff; }
.tl2-key { margin-top: 6px; }
/* cipher */
.uc-page { background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 8px; padding: 14px 16px; box-shadow: 3px 4px 0 #E8DCC8; }
.ci-cipher { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: "Courier New", monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .16em; color: #241F30; }
.ci-wrap { overflow-x: auto; display: grid; justify-content: center; }
.ci-grid { border-collapse: collapse; }
.ci-grid th { padding: 0 2px 6px; font-family: "Courier New", monospace; }
.ci-grid th b { display: block; font-size: 1.15rem; color: #241F30; }
.ci-grid th small { display: block; font-family: var(--font-sans); font-size: .72rem; color: #8A6A1F; font-weight: 600; }
.ci-grid td { padding: 2px; }
.ci-grid .snd-letter { width: 32px; height: 34px; }
/* the epilogue */
.uc-epilogue { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
.uc-epilogue p { margin: 0; }
.uc-epilogue__pic img { width: 80px; height: 100px; object-fit: cover; border-radius: 6px; }
.wi-toggle[data-v="M"] { background: #EAF6EE; border-color: #7FBF96; color: #1F5C37; }
.wi-toggle[data-v="H"] { background: #FBE6E3; border-color: #E0A197; color: #8A2A20; }
.wi-toggle[data-v="S"] { background: #F3ECFA; border-color: #B49BD6; color: #4B3A6B; }
.uc .gt-fact:has(input:checked) { border-color: #4B3A6B; background: #F3ECFA; }
.uc .tl-dials b { color: #F1E2B4; background: linear-gradient(180deg, #2E2742, #17131F); }
.buybox .btn--block { white-space: normal; text-align: center; }
@media (max-width: 520px) {
  .tl-try { gap: 10px; padding: 8px 10px; }
  .cl-tries .tl-dials { gap: 4px; }
  .cl-tries .tl-dials b { width: 28px; height: 36px; font-size: 1.15rem; }
  .cl-tries .tl-n { min-width: 0; }
}
@media (max-width: 400px) { .buybox .btn--block { font-size: .9rem; padding-inline: 12px; } }
/* ---------- Mister Sawdust Is Missing (The Crooked Carnival taster, temporary) ---------- */
.cc .snd-hero { background: radial-gradient(760px 480px at 82% 16%, rgba(230,196,110,.16), transparent 62%), radial-gradient(620px 420px at 6% 100%, rgba(142,44,60,.2), transparent 70%), linear-gradient(180deg, #110D21 0%, #231839 100%); }
.cc .snd-hero::before { opacity: .45; }
.cc .snd-hero .breadcrumb, .cc .snd-hero .breadcrumb a { color: #D8CFE6; }
.cc .snd-hero .eyebrow { color: #E6C46E; }
.cc .snd-hero .lede { color: #EDE6F4; }
.cc .snd-hero__small, .cc .snd-levels { color: #C1B6D2; }
.cc .snd-plate { background: #F4ECDD; }
.cc .snd-plate figcaption, .cc .snd-case__pic figcaption { color: #5B4A6E; }
.cc .snd-paper .eyebrow, .cc .snd-how b { color: #7A3A55; }
.cc .snd-toc a { background: #231839; }
.cc .snd-toc small { color: #E6C46E; }
.cc .snd-toc__final { background: #7A2E45 !important; }
.cc .snd-night { background: linear-gradient(180deg, #16112A, #0D0A19); }
.cc .snd-head { background: #231839; }
.cc .snd-no { border-color: #D9B65A; color: #F3E2B4; }
.cc .snd-kind { color: #E6C46E; }
.cc .snd-sheet .puzzle__meta span:not(.snd-level) { color: #D8CFE6; }
.cc .snd-rule { border-left-color: #7A3A55; background: #F3ECE0; }
.cc .snd-letter:focus { outline-color: #D9B65A; border-color: #4A2E63; }
.cc .snd-final .snd-head { background: #7A2E45; }
.cc .snd-epilogue { background: #231839; }
.cc .snd-casebook__clue { color: #887C96; }
.cc .gt-fact:has(input:checked) { border-color: #4A2E63; background: #F3ECFA; }
.cc-ink img { mix-blend-mode: multiply; box-shadow: none !important; border-radius: 0 !important; }
/* what each puzzle tests */
.cc-tests { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; background: #FFFBF3; border: 1px dashed #CDBFAA; border-radius: 10px; font-size: .95rem; line-height: 1.5; }
.cc-tests__i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #231839; color: #E6C46E; }
.cc-tests__i svg { width: 20px; height: 20px; }
/* the evening's cards */
.cc-spread { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 700px) { .cc-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-spread .cc-also { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .cc-spread { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-spread .cc-also { grid-column: auto; } }
.cc-card { background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 4px; padding: 16px 18px; box-shadow: 0 1px 0 #E9E2D4, 0 8px 22px rgba(35,24,57,.08); }
.cc-card p, .cc-card ul { margin: 0; }
.cc-card p + p { margin-top: 8px; }
.cc-card ul { padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.cc-card__k { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7A3A55; margin-bottom: 8px !important; }
.cc-card__name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px !important; }
.cc-missing { border: 3px double #231839; }
.cc-window__t { font-family: var(--font-serif); font-size: 1.05rem; }
.cc-fixed { grid-column: 1 / -1; }
.cc-also { background: #F7F1E4; font-style: italic; }
/* the alibis */
.cc-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); gap: 12px; }
.cc-person { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 12px; padding: 12px 14px; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.cc-person:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(35,24,57,.12); }
.cc-person .cc-person__i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #231839; color: #E6C46E; }
.cc-person__i svg { width: 26px; height: 26px; }
.cc-person b { display: block; font-size: 1.02rem; }
.cc-person small { display: block; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: #7A3A55; margin: 2px 0 6px; }
.cc-person div > span { display: block; font-size: .9rem; color: #4F4560; line-height: 1.45; font-style: italic; }
/* the patter-book */
.cc-page { background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 6px; padding: 14px 16px; box-shadow: 3px 4px 0 #E8DCC8; }
.cc-page__h { margin: 0 0 12px; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7A3A55; }
.pb-rows { margin: 0; padding-left: 1.5em; display: grid; gap: 14px; }
.pb-row { display: grid; grid-template-columns: minmax(118px, auto) minmax(0, 1fr); gap: 6px 16px; align-items: center; }
.pb-scr { font-family: "Courier New", monospace; font-weight: 700; font-size: 1.15rem; letter-spacing: .14em; color: #231839; }
.pb-def { font-style: italic; color: #4F4560; }
.pb-def small { font-style: normal; font-family: var(--font-sans); color: #8A7E98; }
.pb-boxes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.pb-boxes .snd-letter { width: 32px; height: 36px; }
.pb-boxes .snd-letter[data-keep] { background: #EADFC4; border-color: #B49A5E; }
.pb-boxes .snd-letter[data-keep].ok { background: #DCEBDD; }
.pb-readline b { font-family: var(--font-serif); letter-spacing: .14em; color: #231839; }
@media (max-width: 560px) { .pb-row { grid-template-columns: minmax(0, 1fr); } .pb-boxes .snd-letter { width: 29px; height: 34px; } }
@media (min-width: 980px) { .pb-row { grid-template-columns: 118px minmax(0, 1fr) auto; } .pb-boxes { grid-column: auto; } }
/* the coconut shy */
.cs-wrap { display: grid; justify-content: center; }
.cs-yard { --cs-cell: clamp(40px, 11vw, 58px); display: grid; }
.cs-corner { width: var(--cs-cell); height: var(--cs-cell); }
.cs-edge { width: var(--cs-cell); height: var(--cs-cell); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; color: #231839; }
.cs-edge.ok { color: #3F7A5A; }
.cs-edge.bad { color: #B3382C; }
.cs-spot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3F7A5A; color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 4px rgba(63,122,90,.22); }
.cs-c { position: relative; width: var(--cs-cell); height: var(--cs-cell); padding: 0; border: 0; box-shadow: inset 0 0 0 1px #D2C3AA; background: #FBF5E8; cursor: pointer; overflow: hidden; }
.cs-c b { position: absolute; top: 2px; left: 5px; font-family: var(--font-serif); font-size: 1rem; color: #231839; }
.cs-post { position: absolute; left: 50%; bottom: 0; width: 24%; height: 0; transform: translateX(-50%); background: linear-gradient(90deg, #7A4E2C, #B07A4A 55%, #7A4E2C); border-radius: 2px 2px 0 0; }
.cs-post::after { content: ""; position: absolute; left: 50%; top: -11px; width: 13px; height: 12px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8C6A4A, #4A3220 72%); }
.cs-c:not([data-v]) .cs-post { display: none; }
.cs-c[data-v="1"] .cs-post { height: 14%; }
.cs-c[data-v="2"] .cs-post { height: 27%; }
.cs-c[data-v="3"] .cs-post { height: 40%; }
.cs-c[data-v="4"] .cs-post { height: 53%; }
.cs-c[data-v="5"] .cs-post { height: 66%; }
.cs-c.bad { background: #FBEAE7; }
.cs-c:focus-visible { outline: 3px solid #D9B65A; outline-offset: -3px; }
/* the knife board */
.kb-wrap { display: grid; justify-content: center; overflow-x: auto; }
.kb-board { --kb-cell: clamp(38px, 11vw, 52px); display: grid; border: 3px solid #231839; background: #231839; }
.kb-c { width: var(--kb-cell); height: var(--kb-cell); padding: 0; border: 0; border-top: 1px solid rgba(35,24,57,.22); border-left: 1px solid rgba(35,24,57,.22); font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; color: #3A2C48; cursor: pointer; }
.kb-t0 { background-color: #FBF5E6; }
.kb-t1 { background-color: #E8D9BC; }
.kb-t2 { background-color: #F3EAD5; }
.kb-t3 { background-color: #DFCEAE; }
.kb-c.kb-bt { border-top: 3px solid #231839; }
.kb-c.kb-bl { border-left: 3px solid #231839; }
.kb-c[data-v="k"] { color: #FFF3D6; background-image: radial-gradient(circle, #231839 0 56%, transparent 58%); }
.kb-c[data-v="x"] { color: rgba(58,44,72,.32); }
.kb-c.bad { box-shadow: inset 0 0 0 3px #B3382C; }
.kb-c:focus-visible { outline: 3px solid #D9B65A; outline-offset: -3px; }
.kb-readline b { font-family: var(--font-serif); letter-spacing: .16em; color: #231839; }
/* the Great Wheel */
.gw-layout { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 16px; }
@media (max-width: 760px) { .gw-layout { grid-template-columns: minmax(0, 1fr); } .gw-fig { max-width: 270px; justify-self: center; width: 100%; } }
.gw-fig { margin: 0; }
.gw-wheel { width: 100%; height: auto; display: block; }
.gw-rim { fill: none; stroke: #3A2C48; stroke-width: 3; }
.gw-spoke { stroke: #A8997F; stroke-width: 1.5; }
.gw-hub { fill: #3A2C48; }
.gw-car { fill: #FFFDF8; stroke: #231839; stroke-width: 2; }
.gw-car--gold { fill: #E6C46E; stroke: #8A6A1F; }
.gw-no { font-family: var(--font-serif); font-weight: 700; font-size: 16px; fill: #231839; }
.gw-gold { font-family: var(--font-sans); font-size: 8px; font-weight: 700; letter-spacing: .12em; fill: #5A4513; }
.gw-em { fill: #4A2E63; }
.gw-em-cut { fill: #FFFDF8; }
.gw-grid th small { display: block; font-weight: 500; font-size: .62rem; color: #8A7E98; text-transform: capitalize; }
.gw-grid .lg-colh { height: auto; padding-bottom: 4px; }
.gw-grid .lg-colh span { font-size: .8rem; }
.gw-grid .gw-corner { font-family: var(--font-sans); font-size: .68rem; font-weight: 600; color: #8A7E98; text-align: right; vertical-align: bottom; padding: 0 8px 18px 0; }
@media (max-width: 520px) { .gw-grid { --lg-cell: 26px; } }
/* Madame Vey's note */
.vt-trumps { margin: 0; background: #F6F0FA; border: 1px solid #DCD0EA; border-radius: 10px; padding: 10px 14px; }
.vt-trumps summary { cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: .9rem; color: #4A2E63; }
.vt-trumps ol { list-style: none; margin: 10px 0 0; padding: 0; columns: 2 190px; column-gap: 24px; font-size: .9rem; }
.vt-trumps li { break-inside: avoid; padding: 2px 0; }
.vt-trumps li b { display: inline-block; min-width: 3.4em; font-family: var(--font-serif); color: #7A3A55; }
.vt-spread-wrap { overflow-x: auto; display: grid; justify-content: center; }
.vt-spread { border-collapse: collapse; }
.vt-spread th { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; color: #3A2C48; padding: 2px 6px; }
.vt-spread tbody th { text-align: left; white-space: nowrap; }
.vt-suit svg { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 5px; color: #4A2E63; }
.vt-spread td { padding: 2px; }
.vt-spread .snd-letter { width: 32px; height: 34px; }
.vt-blank { display: block; width: 32px; height: 34px; border-radius: 6px; background: repeating-linear-gradient(45deg, #EDE5D6 0 4px, #E2D7C3 4px 8px); }
@media (max-width: 420px) { .vt-spread .snd-letter, .vt-blank { width: 28px; height: 32px; } .vt-spread th { padding: 2px 3px; } }
.vt-cloth { background: radial-gradient(ellipse at 50% 0%, #5A3168, #2E1838 72%); border-radius: 12px; padding: 14px; box-shadow: inset 0 0 0 2px rgba(230,196,110,.35); }
.vt-cloth__h { margin: 0 0 12px; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #E6C46E; }
.vt-cards { display: flex; flex-wrap: wrap; gap: 14px 8px; align-items: flex-start; }
.vt-word { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.vt-card { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.vt-face { width: 36px; height: 54px; border-radius: 5px; background: #FBF5E8; border: 1px solid #CDBFAA; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #231839; box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.vt-face b { font-family: var(--font-serif); font-size: 1rem; line-height: 1; }
.vt-face svg { width: 21px; height: 21px; color: #4A2E63; }
.vt-card--rev .vt-face { transform: rotate(180deg); background: #F1E5CF; }
.vt-card--trump .vt-face { background: #1E1430; border-color: #E6C46E; color: #E6C46E; }
.vt-card--trump .vt-face b { font-size: .74rem; letter-spacing: .02em; }
.vt-card .snd-letter { width: 36px; height: 36px; font-size: 1rem; }
/* the Hall of Mirrors */
.hm-wrap { background: #FFFDF8; border: 1px solid #DCD3C3; border-radius: 12px; padding: 8px; }
.hm-svgel { display: block; width: 100%; max-width: 540px; height: auto; margin-inline: auto; }
.hm-gl { stroke: #E4DACA; stroke-width: 1; }
.hm-wall { fill: none; stroke: #231839; stroke-width: 3; }
.hm-fixed { stroke: #231839; stroke-width: 4.5; stroke-linecap: round; }
.hm-set { stroke: #8A6A1F; stroke-width: 4.5; stroke-linecap: round; }
.hm-hit { fill: transparent; cursor: pointer; }
.hm-pivot { outline: none; }
.hm-pivot:hover .hm-hit { fill: rgba(230,196,110,.2); }
.hm-pivot:focus-visible .hm-hit { stroke: #D9B65A; stroke-width: 2.5; }
.hm-pivot.bad .hm-hit { fill: rgba(179,56,44,.2); }
.hm-dot { fill: #FFFDF8; stroke: #8A6A1F; stroke-width: 2; pointer-events: none; }
.hm-set { pointer-events: none; }
.hm-beam { fill: none; stroke: #C0392B; stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linejoin: round; pointer-events: none; }
.hm-stop { fill: none; stroke: #C0392B; stroke-width: 2.2; pointer-events: none; }
.hm-lab { cursor: pointer; outline: none; }
.hm-door { stroke: #231839; stroke-width: 2; }
.hm-badge { stroke: #231839; stroke-width: 1.5; }
.hm-badge--pair { fill: #E6C46E; }
.hm-badge--count { fill: #FFFDF8; }
.hm-badge__t { font-family: var(--font-sans); font-weight: 700; font-size: 12px; fill: #231839; pointer-events: none; }
.hm-place { font-family: var(--font-sans); font-weight: 600; font-size: 11.5px; letter-spacing: .03em; fill: #7A3A55; }
.hm-eye { fill: #FFFDF8; stroke: #231839; stroke-width: 1.8; }
.hm-pupil { fill: #231839; }
.hm-eyet { font-family: var(--font-sans); font-weight: 700; font-size: 9.5px; letter-spacing: .08em; fill: #231839; }
.hm-lab:hover .hm-badge, .hm-lab:focus-visible .hm-badge { stroke-width: 3; }
.hm-lab:hover .hm-place, .hm-lab:focus-visible .hm-place { text-decoration: underline; }
.hm-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
/* the chalk ring */
.cr-ring { width: clamp(190px, 30vw, 290px); }
.cr-svg { width: 100%; height: auto; display: block; }
.cr-chalk { fill: none; stroke: #9C8CA8; stroke-width: 3; stroke-dasharray: 9 6; stroke-linecap: round; }
.cr-chalk--2 { stroke-width: 1.2; stroke-dasharray: 3 7; opacity: .7; }
.cr-tag { fill: #231839; }
.cr-tag__t { font-family: var(--font-sans); font-weight: 600; font-size: 11px; fill: #F3E2B4; }
.cr-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cr-speaker { background: #F4F1F8; border: 1px solid #DCD3E8; border-radius: 12px; padding: 12px 14px; }
.cr-speaker__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-toggle[data-v="S"] { background: #FFFFFF; border-color: #8C8496; color: #231839; }
.cr-toggle[data-v="C"] { background: #231839; border-color: #231839; color: #F3E2B4; }
.cr-toggle[data-v="P"] { background: #8C8496; border-color: #6F6780; color: #fff; }
.cr-toggle.bad { box-shadow: 0 0 0 3px #B3382C; }
@media (max-width: 620px) { .cr-ring { justify-self: center; } }
/* the Reckoning */
.cc-reckon__claim { color: #4F4560; }
.cc-reckon .snd-casebook__clue { display: block; }
.cc-epilogue { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: start; }
.cc-epilogue p { margin: 0; }
.cc-epilogue__pic img { width: 80px; height: 100px; object-fit: cover; border-radius: 6px; background: #F4ECDD; }
@media (max-width: 420px) { .pb-rows { padding-left: 1.2em; } .pb-boxes { gap: 3px; } .pb-boxes .snd-letter { width: 27px; height: 32px; font-size: 1rem; } .vt-face { width: 31px; height: 47px; } .vt-face svg { width: 18px; height: 18px; } .vt-card .snd-letter { width: 31px; height: 32px; } .vt-word { gap: 4px; } }
.hm-wrap { overflow-x: auto; }
@media (max-width: 520px) { .hm-svgel { min-width: 430px; } }

/* ---------- The Golden Lark (The Clockwork Witnesses taster, temporary) ---------- */
.cw .snd-hero { background: radial-gradient(760px 480px at 82% 16%, rgba(214,170,92,.18), transparent 62%), linear-gradient(180deg, #0E1416 0%, #1C2427 100%); }
.cw .snd-hero::before { opacity: .35; }
.cw .snd-hero .breadcrumb, .cw .snd-hero .breadcrumb a { color: #CFD6D2; }
.cw .snd-hero .eyebrow { color: #D9B36A; }
.cw .snd-hero .lede { color: #E9EDE9; }
.cw .snd-hero__small, .cw .snd-levels { color: #B5C0BB; }
.cw .snd-plate { background: #F2ECDF; }
.cw .snd-plate figcaption, .cw .snd-case__pic figcaption { color: #4E5A55; }
.cw .snd-paper .eyebrow, .cw .snd-how b, .cw .snd-keep { color: #8A5A1E; }
.cw .snd-toc a { background: #1C2427; }
.cw .snd-toc small { color: #D9B36A; }
.cw .snd-toc__final { background: #7A5418 !important; }
.cw .snd-night { background: linear-gradient(180deg, #121A1C, #0A0F10); }
.cw .snd-head { background: #1C2427; }
.cw .snd-no { border-color: #C9A35C; color: #F1E2BF; }
.cw .snd-kind { color: #D9B36A; }
.cw .snd-sheet .puzzle__meta span:not(.snd-level) { color: #CFD6D2; }
.cw .snd-rule { border-left-color: #8A5A1E; background: #F1ECE2; }
.cw .snd-letter:focus { outline-color: #C9A35C; border-color: #2F4A44; }
.cw .snd-final .snd-head { background: #7A5418; }
.cw .snd-epilogue { background: #1C2427; }
.cw .uc-person { border-color: #1C2427; outline-color: #1C2427; }
.cw .uc-person .uc-person__ini { background: #1C2427; color: #D9B36A !important; }
.cw .gt-fact:has(input:checked) { border-color: #2F4A44; background: #EAF2EE; }
.cw-people { margin-bottom: 4px; }
.cw-key { margin: 0; background: #F0F4F1; border: 1px solid #CFDCD5; border-radius: 10px; padding: 10px 14px; }
.cw-key summary { cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: .9rem; color: #2F4A44; }
.dr-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px 10px; margin-top: 10px; }
.dr-k { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); }
.dr-k b { width: 1em; }
.dr-tap, .dr-roll { display: inline-block; height: 7px; margin-right: 3px; background: #1C2427; vertical-align: middle; }
.dr-tap { width: 7px; border-radius: 50%; }
.dr-roll { width: 18px; border-radius: 4px; }
.dr-word { display: inline-flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 0 10px 10px 0; background: #F4EFE4; border-radius: 10px; }
.dr-tape { display: flex; flex-wrap: wrap; }
.dr-letter { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.dr-beats { display: flex; align-items: center; min-height: 12px; }
.gt-fig { margin: 0; }
.gt-svgel { width: 100%; height: auto; display: block; }
.gt-gear { fill: #E9DCBF; stroke: #6B4F1F; stroke-width: 1.4; }
.gt-gear--big { fill: #EFE4CC; }
.gt-gear--pin { fill: #C9A35C; }
.gt-gear--barrel { fill: #F4ECDA; }
.gt-axle { fill: #1C2427; }
.gt-lab { font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; fill: #4E5A55; }
.cw-grid .lg-colh { height: 92px; }
.mw-line { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font-family: "Courier New", monospace; font-size: 1.05rem; letter-spacing: .16em; color: #1C2427; word-break: break-all; }
.mw-line small { font-family: var(--font-sans); letter-spacing: 0; color: #8A5A1E; }
.mw-line span { display: inline-block; transform: scaleX(-1); }
.mw-lines.is-flipped .mw-line span { transform: none; }
.mw-boxes { display: flex; flex-wrap: wrap; gap: 3px; }
.mw-boxes .snd-letter { width: 28px; height: 32px; font-size: 1rem; }
.pb-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .pb-layout { grid-template-columns: minmax(0, 1fr); } }
.pb-attempts { display: grid; gap: 8px; }
.pb-attempts .tl-try { flex-wrap: wrap; }
.pb-attempts .pb-row { display: inline-flex; gap: 6px; }
.pb-sym, .pb-dial { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 50px; height: 54px; border-radius: 8px; background: linear-gradient(180deg, #E9DCBF, #D6C29A); color: #3A2A10; border: 1px solid #A98A4E; }
.pb-sym svg, .pb-dial svg { width: 24px; height: 24px; }
.pb-sym small, .pb-dial small { font-family: var(--font-sans); font-size: .6rem; font-weight: 600; }
.pb-dial { cursor: pointer; font-family: var(--font-serif); font-size: 1.3rem; padding: 0; }
.pb-dials { display: flex; gap: 8px; margin-bottom: 10px; }
.pb-marks { display: inline-flex; gap: 4px; align-items: center; }
.pb-marks i { font-size: .85rem; color: #8A7766; }
.pb-g { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed #1C2427; }
.pb-g--b { background: #1C2427; }
.pb-g--w { background: #fff; }
.cy-drum { background: linear-gradient(180deg, #E7D7B2, #CDB27C 50%, #E7D7B2); border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 2px rgba(107,79,31,.4); }
.cy-drum__h { margin: 0 0 10px; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5A3E12; }
.cy-chords { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.cy-word { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cy-ch { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.cy-pins { display: flex; flex-direction: column; align-items: center; width: 32px; padding: 3px 0; border-radius: 6px; background: rgba(255,255,255,.55); font-family: var(--font-sans); font-size: .78rem; line-height: 1.25; color: #3A2A10; }
.cy-ch .snd-letter { width: 32px; height: 34px; font-size: 1rem; }
@media (max-width: 420px) { .cy-pins, .cy-ch .snd-letter { width: 28px; } .pb-sym, .pb-dial { width: 44px; height: 50px; } .mw-line { font-size: .9rem; letter-spacing: .1em; } }.dr-letter { padding: 0 6px; border-right: 1.5px solid #CDBFAA; }
.dr-letter:last-child { border-right: 0; }
.cy-word { padding: 4px 6px; background: rgba(255,255,255,.25); border-radius: 8px; }

/* ---------- Free puzzles page: the free Grim Tales mysteries ---------- */
.gf-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: #241830; color: #F3E2B4; font-family: var(--font-sans); font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(36,24,48,.25); transition: transform .2s ease; }
.gf-jump:hover { transform: translateY(-2px); color: #fff; }
.gf-jump svg { width: 18px; height: 18px; }
.gf-section { position: relative; isolation: isolate; color: #F1EAF6; padding-block: clamp(44px, 6vw, 80px); background: radial-gradient(900px 420px at 85% 0%, rgba(230,196,110,.12), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(189,164,226,.12), transparent 65%), linear-gradient(180deg, #120E1A 0%, #1B1426 100%); }
.gf-section::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 47% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 40%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 88% 70%, #fff 50%, transparent 51%); background-size: 560px 380px; }
.gf-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 42px); }
.gf-section .eyebrow { color: #D0BDEC; }
.gf-section h2 { color: #FFF8EC; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .35em; }
.gf-section .lede { color: #DCD3E6; margin: 0; }
.gf-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
@media (min-width: 1000px) {
  .gf-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gf-grid--5 .gf-card:nth-child(-n+3) { grid-column: span 2; }
  .gf-grid--5 .gf-card:nth-child(n+4) { grid-column: span 3; }
  .gf-grid--5 .gf-card:nth-child(n+4) .gf-pic { aspect-ratio: 16 / 7.4; }
}
.gf-card { --gf-bg1: #120B18; --gf-bg2: #241830; --gf-acc: #BDA4E2; position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: #F4EEE6; background: linear-gradient(180deg, var(--gf-bg2), var(--gf-bg1)); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gf-card::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gf-acc), transparent); opacity: .85; }
.gf-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.18); box-shadow: 0 4px 8px rgba(0,0,0,.4), 0 28px 60px rgba(0,0,0,.5); color: #F4EEE6; }
.gf-card:focus-visible { outline: 3px solid var(--gf-acc); outline-offset: 3px; }
.gf-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gf-bg1); }
.gf-pic picture, .gf-pic img { display: block; width: 100%; height: 100%; }
.gf-pic img { object-fit: cover; transition: transform .7s ease; }
.gf-card:hover .gf-pic img { transform: scale(1.045); }
.gf-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 40%, var(--gf-bg2) 100%); }
.gf--liw .gf-pic img, .gf--snd .gf-pic img, .gf--uc .gf-pic img { filter: sepia(.28) brightness(.9) contrast(1.05); }
.gf-book { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(10,8,14,.74); color: var(--gf-acc); font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.gf-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 2px 22px 22px; flex: 1; margin-top: -18px; }
.gf-from { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gf-acc); }
.gf-from i { letter-spacing: .08em; }
.gf-title { display: block; font-family: var(--font-serif); font-size: 1.42rem; font-weight: 600; line-height: 1.18; color: #FFF8EC; }
.gf-hook { display: block; font-size: .96rem; line-height: 1.5; color: #DDD6E4; }
.gf-kinds { display: block; font-family: var(--font-sans); font-size: .76rem; line-height: 1.5; color: #AFA5BC; }
.gf-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; font-family: var(--font-sans); font-size: .78rem; color: #CFC6DA; }
.gf-dots { display: inline-flex; gap: 4px; }
.gf-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.18); }
.gf-dot--m { background: #4E9A70; }
.gf-dot--h { background: #C7862A; }
.gf-dot--f { background: #B83A47; }
.gf-cta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-sans); font-weight: 600; font-size: .95rem; color: var(--gf-acc); }
.gf-cta small { font-weight: 500; font-size: .72rem; color: #A99FB6; letter-spacing: .02em; }
.gf-card:hover .gf-cta > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.gf--liw { --gf-bg1: #120A07; --gf-bg2: #2A1810; --gf-acc: #E9C27C; }
.gf--cc { --gf-bg1: #0E0A1C; --gf-bg2: #231839; --gf-acc: #E6C46E; }
.gf--cw { --gf-bg1: #0A0F10; --gf-bg2: #1C2427; --gf-acc: #D9B36A; }
.gf--snd { --gf-bg1: #120B18; --gf-bg2: #241830; --gf-acc: #BDA4E2; }
.gf--uc { --gf-bg1: #0D0B13; --gf-bg2: #1E1A2E; --gf-acc: #E2C77A; }
@media (prefers-reduced-motion: reduce) { .gf-card, .gf-pic img, .gf-jump { transition: none; } .gf-card:hover, .gf-card:hover .gf-pic img { transform: none; } }
/* Checked letters (Aaron, 20 Oct 2026): a wrong letter turns red and a right one green, whatever a puzzle's own grid
   style paints its squares (the Gala floor grid's white squares stayed beige before) */
.snd-letter.snd-letter.bad { border-color: #B3382C; background: #FBEAE7; color: #B3382C; }
.snd-letter.snd-letter.ok { border-color: #3F7A5A; background: #EEF7F1; }
.su-grid .snd-letter.snd-letter.bad { background: #F6D2CC; box-shadow: inset 0 0 0 2px #B3382C; }
.su-grid .snd-letter.snd-letter.ok { background: #E3F1E7; }
.su-dark .snd-letter.snd-letter.bad { background: #8E2F25; color: #FFF3DE; box-shadow: none; }
.su-dark .snd-letter.snd-letter.ok { background: #2F5E46; color: #FFF3DE; }
.pb-boxes .snd-letter.snd-letter[data-keep].ok { background: #DCEBDD; }.su-grid.is-solved .snd-letter.snd-letter[readonly] { background: #D3E9DA; color: #1E4A33; }
.su-grid.is-solved .su-dark .snd-letter.snd-letter { background: #2F5E46; color: #FFF3DE; }
.su-td:not(.su-dark) .snd-letter.snd-letter.ok { color: #1E4A33; }/* review 20 Oct 2026: hints read as hints, not as "correct"; a wrong dark tile has an outline as well as a colour;
   the Gala's "Keep this word" note is ink, not the red of an error */
.puzzle__result.hint { color: inherit; font-weight: 400; }
.su-dark .snd-letter.snd-letter.bad { box-shadow: inset 0 0 0 3px #F5B3A8; }
.liw .snd-keep { color: #3A2C24; }
/* review of the four other free pages (20 Oct 2026): every wrong mark gets a red ring, not just a faint tint */
.wi-toggle.wi-toggle.bad, .ghost__toggle.ghost__toggle.bad { box-shadow: 0 0 0 3px #B3382C; }
.cs-c.cs-c.bad, .lg-c.lg-c.bad, button.mg-cell.mg-cell.bad { background: #F6D2CC; box-shadow: inset 0 0 0 2px #B3382C; }
.lg-c.lg-c.bad[data-v="o"]::after { color: #B3382C; }
.hm-pivot.bad .hm-hit { fill: rgba(179,56,44,.32); stroke: #B3382C; stroke-width: 3; }
.ep-rung.ep-rung.bad { box-shadow: inset 0 0 0 2px #B3382C; }
.ep-rung.ep-rung.ok { box-shadow: inset 0 0 0 2px #3F7A5A; }
/* the Chatterbox Shelf: forwards and backwards look different */
.ll-toggle[data-v="F"] { background: #EAF1F6; border-color: #7FA3BF; color: #1F3F5C; }
.ll-toggle[data-v="B"] { background: #F6EFE2; border-color: #C9A35C; color: #6A4A12; }
/* the toast keeps its full width on phones (left:50% alone shrank it) */
.toast { width: max-content; }
/* boxed questions: the question sits inside the box on phones instead of on its top border */
.gt-answer > legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; }
.gt-answer > legend + * { clear: both; }/* the Hall of Mirrors is wider than a phone: say so */
@media (max-width: 560px) { .hm-wrap::before { content: "Swipe sideways to see the whole Hall \2192"; display: block; position: sticky; left: 0; margin: 0 0 6px; font-family: var(--font-sans); font-size: .76rem; font-weight: 600; color: #7A3A55; } }
/* the Patter-Book: on wide screens every word's boxes start in the same column */
@media (min-width: 980px) { .pb-rows .pb-row { grid-template-columns: 118px minmax(0, 1fr) 292px; } }
/* Buy direct: free delivery in Malta, the usual price crossed out */
.direct__was { color: #8A7E70; text-decoration-thickness: 2px; margin-right: 4px; }
.direct__free { color: #2F7D4F; }
/* books not on Buy direct yet: a note where the button will go (8 Nov 2026) */
.buybox__soon { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0 0 12px; padding: 10px 12px; border: 1.5px dashed #D9B98A; border-radius: 12px; background: #FBF3E4; color: #5A3A05; font-family: var(--font-sans); font-size: .9rem; font-weight: 500; text-align: center; }
.buybox__soon svg { width: 18px; height: 18px; flex: none; }
.book-card__soon { flex-basis: 100%; font-family: var(--font-sans); font-size: .78rem; color: #5A3A05; }
/* ---------- Home (8 Nov 2026): every series, not just Noir ---------- */
.home-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-sans); font-weight: 500; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-300); }
.home-kicker__owl { width: 28px; height: auto; flex: none; }
.hero--home h1 { font-size: clamp(2.6rem, 1.5rem + 3.8vw, 4.4rem); line-height: 1.06; }
.home-fan { position: relative; height: clamp(300px, 34vw, 450px); }
.home-fan a { position: absolute; bottom: 4%; width: 38%; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.home-fan img { display: block; width: 100%; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-book); }
.home-fan a:nth-child(1) { left: 0; transform: rotate(-13deg) translateY(3%); z-index: 1; }
.home-fan a:nth-child(2) { left: 15%; transform: rotate(-6.5deg) translateY(-3%); z-index: 2; }
.home-fan a:nth-child(3) { left: 31%; transform: translateY(-6%); z-index: 3; }
.home-fan a:nth-child(4) { left: 47%; transform: rotate(6.5deg) translateY(-3%); z-index: 2; }
.home-fan a:nth-child(5) { left: 62%; transform: rotate(13deg) translateY(3%); z-index: 1; }
.home-fan a:hover, .home-fan a:focus-visible { transform: translateY(-12%) scale(1.03); z-index: 5; }
@media (max-width: 900px) { .home-fan { height: clamp(220px, 62vw, 400px); max-width: 560px; width: 100%; margin-inline: auto; } }

.tn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(24px, 3vw, 36px); }
.tn-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-l); background: var(--t-bg); color: var(--t-ink); text-decoration: none; box-shadow: var(--shadow-card, 0 6px 18px rgba(15,22,38,.1)); transition: transform .25s ease, box-shadow .25s ease; }
.tn-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,22,38,.22); }
.tn-card__cover { display: flex; justify-content: center; padding: 22px 16px 18px; background: var(--t-bg2); }
.tn-card__cover picture { display: block; width: min(150px, 62%); }
.tn-card__cover img { display: block; width: 100%; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 22px rgba(0,0,0,.34); transition: transform .3s ease; }
.tn-card:hover .tn-card__cover img { transform: rotate(-2deg) scale(1.04); }
.tn-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.tn-card__series { font-family: var(--font-sans); font-size: .68rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--t-accent-text); }
.tn-card__title { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; line-height: 1.22; color: var(--t-ink); }
.tn-card__text { font-size: .94rem; line-height: 1.45; color: var(--t-soft); }
.tn-card__more { margin-top: auto; padding-top: 10px; font-family: var(--font-sans); font-size: .8rem; font-weight: 500; color: var(--t-accent-text); }
@media (max-width: 1000px) { .tn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tn-grid { grid-template-columns: minmax(0, 1fr); }
  .tn-card { flex-direction: row; }
  .tn-card__cover { flex: 0 0 116px; align-items: center; padding: 12px; }
  .tn-card__cover picture { width: 92px; }
}
