/* ==========================================================================
   Book Breeze — "Antiquarian" design system
   Parchment canvas · Midnight Burgundy CTAs · Antique Gold status · Sage trust
   ========================================================================== */
:root {
  --canvas: #faf6ee;
  --card: #f4ebd9;
  --card-2: #efe3cc;
  --line: #e2d5be;
  --line-2: #dccfb9;
  --ink: #2b1e16;
  --ink-2: #5a4a3e;
  --muted: #7c6c5e;
  --burgundy: #4a1521;
  --burgundy-2: #5c1d2b;
  --burgundy-ink: #2f020d;
  --rose: #8d4a56;
  --gold: #c59b27;
  --gold-2: #e8c46a;
  --gold-soft: #fbefc9;
  --sage: #2d4a3e;
  --sage-soft: rgba(45, 74, 62, 0.1);
  --ember: #b3263a;
  --white: #fffdf8;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 4px;
  --r-lg: 8px;
  --shadow-rest: 0 2px 8px -2px rgba(43, 30, 22, 0.08), 0 1px 3px 0 rgba(43, 30, 22, 0.04);
  --shadow-raise: 0 12px 24px -4px rgba(43, 30, 22, 0.12), 0 4px 8px -2px rgba(43, 30, 22, 0.06);
  --shadow-float: 0 20px 32px -8px rgba(43, 30, 22, 0.22), 0 0 0 1px rgba(197, 155, 39, 0.25);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 0 rgba(43, 30, 22, 0.08);

  --max: 1440px;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* belt and braces: nothing may widen the page sideways (Android lets you drag a page that is even 1px too wide) */
body { overflow-x: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(232, 196, 106, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(141, 74, 86, 0.05), transparent 45%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; vertical-align: middle; font-variation-settings: 'FILL' 0, 'wght' 400; user-select: none; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400; }
/* An icon is always one square, even before the (large) icon font has arrived: without this, a slow phone shows the
   icon's name as a word ("install_mobile", "shopping_bag") that spills over its neighbours and breaks the header. */
.ms { width: 1em; height: 1em; overflow: hidden; white-space: nowrap; flex-shrink: 0; }
html.icons-wait .ms { color: transparent !important; } /* set by app.js until the icon font is ready */
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

/* ---------- type helpers ---------- */
.eyebrow { font: 700 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.eyebrow.burg { color: var(--rose); }
.eyebrow.sage { color: var(--sage); }
.label { font: 600 12px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.strike { text-decoration: line-through; color: var(--muted); }
.gold { color: var(--gold); }
.burg { color: var(--burgundy); }
.sage { color: var(--sage); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r); font: 700 13px/1 var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn .ms { font-size: 18px; }
.btn-primary { background: var(--burgundy); color: var(--canvas); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(74,21,33,.25); }
.btn-primary:hover { background: var(--burgundy-2); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px rgba(74,21,33,.3); }
.btn-gold { background: linear-gradient(180deg, #e8c46a, #c59b27); color: var(--burgundy-ink); box-shadow: var(--emboss), 0 2px 8px rgba(197,155,39,.35); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { border: 1.5px solid var(--gold); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(197, 155, 39, 0.1); }
.btn-light { background: var(--canvas); color: var(--burgundy); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 14px; }
.btn-sm { padding: 8px 12px; font-size: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }
.link { color: var(--burgundy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; font-weight: 600; }
.link:hover { color: var(--burgundy-2); }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r); font: 700 10.5px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--emboss); white-space: nowrap; }
.chip .ms { font-size: 14px; }
.chip-gold { background: var(--gold-soft); color: #5a4300; border: 1px solid rgba(197,155,39,.5); }
.chip-burg { background: var(--burgundy); color: var(--gold-2); }
.chip-sage { background: var(--sage-soft); color: var(--sage); border: 1px solid rgba(45,74,62,.4); }
.chip-ember { background: #fdeeee; color: var(--ember); border: 1px solid rgba(179,38,58,.3); }
.chip-ink { background: var(--ink); color: var(--canvas); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); display: inline-block; position: relative; flex: none; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ember); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- topbar ---------- */
.topbar { background: var(--burgundy); color: #f6e7d4; font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; text-align: center; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar b { color: var(--gold-2); letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }
.topbar .sep { opacity: .35; }
.topbar .timer-inline { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; background: rgba(0,0,0,.2); padding: 2px 8px; border-radius: 3px; }
.topbar a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 238, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* phones: no blur behind the sticky header (it re-blurs the page under it on every scroll frame); a near-solid fill looks the same */
@media (max-width: 760px) { .header { background: rgba(250, 246, 238, 0.985); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header-main { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo svg { width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font: 700 22px/1 var(--serif); color: var(--burgundy); letter-spacing: -0.01em; }
.logo-text span { font: 700 9.5px/1 var(--sans); letter-spacing: .22em; color: var(--gold); text-transform: uppercase; margin-top: 5px; }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { width: 100%; height: 44px; border-radius: var(--r-lg); border: 1.5px solid var(--line-2); background: #fffdf8; padding: 0 44px 0 42px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(74, 21, 33, 0.12); }
.search > .ms { position: absolute; left: 13px; top: 12px; color: var(--muted); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 6px; display: none; max-height: 420px; overflow: auto; z-index: 5; }
.search-results.open { display: block; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); }
.sr-item:hover, .sr-item.active { background: var(--card); }
.sr-item .cover { width: 36px; flex: none; }
.sr-item .t { font: 600 15px/1.2 var(--serif); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-lg); color: var(--ink); transition: background .15s; }
.icon-btn:hover { background: var(--card); }
.icon-btn .ms { font-size: 24px; }
.badge-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--burgundy); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--canvas); }
.points-pill { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: linear-gradient(180deg, #fff8e6, #f7e7bd); border: 1px solid rgba(197,155,39,.55); box-shadow: var(--emboss); line-height: 1.1; transition: transform .15s; }
.points-pill:hover { transform: translateY(-1px); }
.points-pill .seal { width: 30px; height: 30px; }
.points-pill strong { font: 700 14px/1 var(--serif); color: var(--burgundy); display: block; }
.points-pill small { font-size: 10.5px; color: #6b5300; font-weight: 600; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--r-lg); background: var(--burgundy); color: var(--canvas); transition: background .15s; }
.cart-btn:hover { background: var(--burgundy-2); }
.cart-btn .ms { font-size: 22px; }
.cart-btn .meta { line-height: 1.1; text-align: left; }
.cart-btn strong { font: 700 14px/1 var(--sans); display: block; }
.cart-btn small { font-size: 10px; color: var(--gold-2); }
.menu-btn { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
/* on a computer: arrows at the edge with more categories, and that edge fades out (works on every theme's header) */
.nav .nav-arrow { position: absolute; top: 50%; z-index: 2; display: none; width: 30px; height: 30px; padding: 0; margin-top: -15px; border-radius: 50%; place-items: center;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-rest); cursor: pointer; }
.nav .nav-arrow:hover { background: var(--white); color: var(--burgundy); }
.nav .nav-arrow .ms { font-size: 20px; }
.nav .nav-arrow.l { left: 6px; }
.nav .nav-arrow.r { right: 6px; }
.nav.can-l .nav-arrow.l, .nav.can-r .nav-arrow.r { display: grid; }
.nav.can-r .wrap { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent calc(100% - 20px)); mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent calc(100% - 20px)); }
.nav.can-l .wrap { -webkit-mask-image: linear-gradient(90deg, transparent 20px, #000 90px); mask-image: linear-gradient(90deg, transparent 20px, #000 90px); }
.nav.can-l.can-r .wrap { -webkit-mask-image: linear-gradient(90deg, transparent 20px, #000 90px, #000 calc(100% - 90px), transparent calc(100% - 20px)); mask-image: linear-gradient(90deg, transparent 20px, #000 90px, #000 calc(100% - 90px), transparent calc(100% - 20px)); }
.nav .wrap.dragging { cursor: grabbing; }
.nav .wrap.dragging a, .nav .wrap.dragging button { pointer-events: none; }
@media (hover: none) { .nav .nav-arrow { display: none !important; } }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); font: 600 13.5px/1 var(--sans); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover, .nav button:hover, .nav a.active { background: var(--card); color: var(--burgundy); }
.nav .hot { color: var(--burgundy); }
.nav .hot .ms { color: var(--ember); font-size: 18px; }
.nav .tag { font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 2px 5px; border-radius: 3px; background: var(--ember); color: #fff; }
.nav .spacer { flex: 1; }
.nav .rewards-link { color: #6b5300; }
.nav .rewards-link .ms { color: var(--gold); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-raise); display: none; }
.mega.open { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 0 22px; }
.mega-grid a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-lg); align-items: flex-start; }
.mega-grid a:hover { background: var(--card); }
.mega-grid .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); flex: none; }
.mega-grid strong { font: 600 16px/1.2 var(--serif); display: block; margin-bottom: 2px; }
.mega-grid span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
main { min-height: 60vh; }
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 6px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 0 auto 8px; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.center { text-align: center; }
.center .section-head { justify-content: center; text-align: center; }
.center .section-head p { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 18px; }
.hero h1 em { color: var(--burgundy); font-style: italic; }
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats strong { font: 700 26px/1 var(--serif); color: var(--burgundy); display: block; }
.hero-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero-card { position: relative; background: var(--burgundy); color: var(--canvas); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-float); overflow: hidden; }
.hero-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(232,196,106,.35); border-radius: 8px; pointer-events: none; }
.hero-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; }
.hero-card .feature { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; position: relative; }
.hero-card h3 { color: var(--canvas); font-size: 24px; margin-bottom: 4px; }
.hero-card .by { color: var(--gold-2); font-style: italic; font-family: var(--serif); margin-bottom: 12px; }
.hero-card .price { font: 700 34px/1 var(--serif); color: #fff; }
.hero-card .price s { font-size: 16px; color: rgba(250,246,238,.55); margin-left: 8px; font-weight: 400; }
.hero-card .save { color: var(--gold-2); font-weight: 700; font-size: 13px; margin-top: 4px; }
.hero-card .stock-bar { margin: 16px 0 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.hero-card .stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--ember)); border-radius: 3px; }
.hero-card .btn { margin-top: 16px; position: relative; }
.avatars { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatars .stack { display: flex; }
.avatars .stack i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--canvas); margin-left: -8px; display: grid; place-items: center; font: 700 11px/1 var(--sans); color: #fff; font-style: normal; }
.avatars .stack i:first-child { margin-left: 0; }

/* ---------- timer ---------- */
.timer { display: inline-flex; gap: 6px; align-items: flex-start; }
.timer .u { min-width: 52px; text-align: center; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 4px 4px; box-shadow: var(--emboss); }
.timer .u b { font: 700 24px/1 var(--serif); color: var(--burgundy); display: block; font-variant-numeric: tabular-nums; }
.timer .u span { font: 700 9px/1 var(--sans); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.timer .colon { font: 700 22px/40px var(--serif); color: var(--gold); }
.timer.dark .u { background: rgba(255,255,255,.08); border-color: rgba(232,196,106,.3); box-shadow: none; }
.timer.dark .u b { color: #fff; }
.timer.dark .u span { color: var(--gold-2); }
.timer.sm .u { min-width: 40px; padding: 4px 2px 3px; }
.timer.sm .u b { font-size: 17px; }
.timer.sm .colon { line-height: 30px; font-size: 16px; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-grid > * { min-width: 0; }
.cat-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 190px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--canvas); isolation: isolate; box-shadow: var(--shadow-rest); transition: transform .25s, box-shadow .25s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-raise); }
.cat-tile .bg { position: absolute; inset: 0; z-index: -1; }
.cat-tile .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(20,10,8,.75)); }
.cat-tile .spines { position: absolute; right: 14px; top: 14px; display: flex; gap: 3px; align-items: flex-end; opacity: .9; }
.cat-tile .spines i { width: 14px; border-radius: 2px 2px 0 0; box-shadow: inset -2px 0 0 rgba(0,0,0,.25), inset 2px 0 0 rgba(255,255,255,.08); }
.cat-tile .spines i::after { content: ''; display: block; height: 2px; margin: 10px 2px 0; background: var(--gold-2); opacity: .8; }
.cat-tile .ic { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(232,196,106,.6); display: grid; place-items: center; color: var(--gold-2); }
.cat-tile h3 { color: #fff; font-size: 22px; }
.cat-tile p { font-size: 13px; color: rgba(250,246,238,.8); margin-top: 4px; }
.cat-tile .go { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-top: 10px; display: inline-flex; gap: 4px; align-items: center; }
.cat-tile .chip { position: absolute; top: 18px; left: 66px; }
.cat-tile.wide { grid-column: span 2; }

/* ---------- book cover (generated) ---------- */
.cover {
  --cloth: #4a1521; --foil: #e8c46a;
  position: relative; aspect-ratio: 2 / 3; width: 100%; border-radius: 2px 6px 6px 2px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(255,255,255,.08) 4%, rgba(0,0,0,.12) 7%, transparent 11%),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.1), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px),
    var(--cloth);
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 4px 8px 16px -6px rgba(43,30,22,.45);
  color: var(--foil); container-type: inline-size;
}
.cover::before { content: ''; position: absolute; inset: 6%; inset-inline-start: 13%; border: 1px solid var(--foil); opacity: .7; border-radius: 1px; }
.cover::after { content: ''; position: absolute; inset: 8%; inset-inline-start: 15%; border: .5px solid var(--foil); opacity: .35; }
.cover .in { position: absolute; inset: 11% 10% 10% 18%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; z-index: 1; }
.cover .ct { font: 700 clamp(9px, 11.5cqi, 26px)/1.1 var(--serif); letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.cover .ca { font: italic 500 clamp(6px, 7cqi, 15px)/1.1 var(--serif); opacity: .9; }
.cover .orn { width: 42%; opacity: .95; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.cover .rule { width: 50%; height: 1px; background: var(--foil); opacity: .6; margin: 4% 0; }

/* ---------- book card ---------- */
.grid-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-books > * { min-width: 0; } /* let cards shrink below content min-width so columns never overflow */
.grid-books.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.book-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; box-shadow: var(--shadow-rest); transition: transform .25s, box-shadow .25s, border-color .25s; }
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-raise); border-color: rgba(197,155,39,.6); }
.book-card .media { position: relative; background: linear-gradient(180deg, var(--card), var(--card-2)); border-radius: var(--r); padding: 18px 22% 16px; margin-bottom: 12px; }
.book-card .media .cover { transition: transform .35s; }
.book-card:hover .media .cover { transform: rotate(-2deg) translateY(-3px) scale(1.02); }
.book-card .badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
/* Solid on covers: the translucent sage chip disappears into busy cover art. */
.book-card .badges .chip-sage { background: var(--sage); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.book-card .wish { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,253,248,.92); display: grid; place-items: center; color: var(--burgundy); box-shadow: var(--shadow-rest); z-index: 2; transition: transform .15s; }
.book-card .wish:hover { transform: scale(1.1); }
.book-card .wish.on .ms { font-variation-settings: 'FILL' 1; color: var(--ember); }
.book-card .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.book-card h3 { font-size: 17px; line-height: 1.25; margin-bottom: 2px; }
.book-card h3 a:hover { color: var(--burgundy); }
.book-card .author { font: italic 14px/1.3 var(--serif); color: var(--ink-2); margin-bottom: 10px; }
.book-card .social { font-size: 12px; color: var(--sage); font-weight: 600; display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.book-card .social .ms { font-size: 15px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price-row .now { font: 700 22px/1 var(--serif); color: var(--burgundy); }
.price-row .was { font-size: 14px; }
.price-row .off { font: 700 11.5px/1 var(--sans); color: var(--ember); }
.earn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #6b5300; margin: 8px 0 10px; }
.earn .seal { width: 16px; height: 16px; }
.book-card .btn { width: 100%; }
.stock-low { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ember); margin-bottom: 8px; }
.meter { height: 5px; border-radius: 3px; background: var(--card-2); overflow: hidden; margin-bottom: 10px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ember)); border-radius: 3px; }

/* ranked list (bestsellers) */
.rank { position: absolute; left: -10px; top: -10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--serif); background: var(--burgundy); color: var(--gold-2); box-shadow: 0 0 0 3px var(--canvas), var(--shadow-rest); z-index: 3; }
.rank.r1 { background: linear-gradient(135deg, #f3d77e, #b8891c); color: var(--burgundy-ink); }
.rank + .media .badges { top: 30px; }

/* ---------- deals band ---------- */
.deal-band { background: var(--burgundy); color: var(--canvas); border-radius: 14px; padding: 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-float); }
.deal-band::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(232,196,106,.25); border-radius: 10px; pointer-events: none; }
.deal-band.sage { background: var(--sage); }
.deal-band .head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; position: relative; }
.deal-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.deal-band h2 em { color: var(--gold-2); }
.deal-band p { color: rgba(250,246,238,.8); }
.deal-band .book-card { border-color: transparent; }
.deal-band .grid-books { position: relative; }
.upcoming { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed rgba(232,196,106,.5); border-radius: var(--r-lg); color: var(--gold-2); font-weight: 600; font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- split promo ---------- */
.promo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo { border-radius: 12px; padding: 28px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--card); min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.promo h3 { font-size: 28px; margin: 8px 0; }
.promo p { color: var(--ink-2); max-width: 360px; }
.promo .btn { margin-top: 18px; align-self: flex-start; }
.promo.dark { background: var(--ink); color: var(--canvas); border-color: transparent; }
.promo.dark h3 { color: #fff; }
.promo.dark p { color: rgba(250,246,238,.75); }
.promo .deco { position: absolute; right: -10px; bottom: -14px; width: 44%; display: flex; gap: 8px; transform: rotate(-6deg); }
.promo .deco .cover { flex: 1; }

/* ---------- loyalty ---------- */
.seal { width: 44px; height: 44px; flex: none; }
.loyalty-hero { background: linear-gradient(135deg, #fff7e2, #f4e3bf); border: 1px solid rgba(197,155,39,.45); border-radius: 14px; padding: 34px; position: relative; overflow: hidden; }
.loyalty-hero .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center; }
.loyalty-hero h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 8px 0 12px; }
.loyalty-hero h2 em { color: var(--burgundy); }
.tier-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding-top: 6px; }
.tier-track::before { content: ''; position: absolute; left: 10%; right: 10%; top: 31px; height: 3px; background: var(--line-2); border-radius: 2px; }
.tier-track .fill { position: absolute; left: 10%; top: 31px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 2px; box-shadow: 0 0 8px rgba(232,196,106,.8); transition: width 1s; }
.tier-node { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tier-node .dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); border: 2px solid var(--line-2); color: var(--muted); box-shadow: inset 0 2px 4px rgba(43,30,22,.08); position: relative; z-index: 1; }
.tier-node .dot .ms { font-size: 24px; }
.tier-node.done .dot { background: radial-gradient(circle at 35% 30%, #f6dc8c, #c59b27 70%); border-color: #a77f12; color: var(--burgundy-ink); box-shadow: 0 3px 8px rgba(197,155,39,.45); }
.tier-node.current .dot { background: var(--burgundy); border-color: var(--gold); color: var(--gold-2); box-shadow: 0 0 0 4px rgba(197,155,39,.25), 0 6px 14px rgba(74,21,33,.35); }
.tier-node strong { font: 600 14px/1.15 var(--serif); }
.tier-node small { font-size: 11px; color: var(--muted); font-weight: 600; }
.tier-node .you { position: absolute; top: -22px; font: 800 9px/1 var(--sans); letter-spacing: .12em; background: var(--burgundy); color: var(--gold-2); padding: 3px 6px; border-radius: 3px; text-transform: uppercase; }
.earn-ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.earn-way { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-rest); }
.earn-way .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: #6b5300; display: grid; place-items: center; flex: none; }
.earn-way strong { font: 600 16px/1.2 var(--serif); display: block; }
.earn-way span { font-size: 13px; color: var(--muted); }
.earn-way b { color: var(--burgundy); }

.tier-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tier-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px; position: relative; box-shadow: var(--shadow-rest); }
.tier-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tier-card .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tier-card h3 { font-size: 19px; }
.tier-card .req { font-size: 12px; color: var(--muted); font-weight: 600; }
.tier-card .mult { font: 700 30px/1 var(--serif); color: var(--burgundy); margin: 6px 0 2px; }
.tier-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 13px; }
.tier-card li { display: flex; gap: 6px; align-items: flex-start; }
.tier-card li .ms { font-size: 16px; color: var(--sage); }
.tier-card.current { border: 2px solid var(--gold); box-shadow: var(--shadow-raise); }
.tier-card.current::before { content: 'Your tier'; position: absolute; top: -11px; left: 16px; font: 800 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--burgundy-ink); padding: 5px 8px; border-radius: 3px; }

.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.milestone { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; }
.milestone .medal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--canvas); border: 2px dashed var(--line-2); color: var(--muted); }
.milestone.done .medal { background: radial-gradient(circle at 35% 30%, #a83a4c, #4a1521 70%); border: 2px solid var(--gold); color: var(--gold-2); box-shadow: 0 4px 10px rgba(74,21,33,.3); }
.milestone .medal .ms { font-size: 24px; }
.milestone strong { font: 600 16px/1.2 var(--serif); display: block; }
.milestone .d { font-size: 13px; color: var(--muted); }
.milestone .pts { margin-left: auto; text-align: right; flex: none; }
.milestone .pts b { font: 700 18px/1 var(--serif); color: var(--burgundy); display: block; }
.milestone .pts small { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.milestone .bar { height: 4px; border-radius: 2px; background: var(--card-2); margin-top: 8px; overflow: hidden; }
.milestone .bar i { display: block; height: 100%; background: var(--gold); }
.milestone.done .d { color: var(--sage); font-weight: 600; }

.rewards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reward { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.reward .ic { width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--burgundy); color: var(--gold-2); display: grid; place-items: center; }
.reward strong { font: 600 18px/1.2 var(--serif); }
.reward p { font-size: 13px; color: var(--muted); flex: 1; }
.reward .cost { font: 700 15px/1 var(--sans); color: #6b5300; display: flex; align-items: center; gap: 6px; }
.reward .bar { height: 5px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.reward .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.reward.best { border: 2px solid var(--gold); }
.reward .ribbon { position: absolute; top: 12px; right: 12px; }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust .ms { color: var(--sage); font-size: 28px; }
.trust strong { font: 600 15px/1.2 var(--serif); display: block; }
.trust span { font-size: 13px; color: var(--muted); }

/* ---------- reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; }
.quote::before { content: '\201C'; position: absolute; top: -6px; left: 16px; font: 700 64px/1 var(--serif); color: var(--gold); opacity: .5; }
.quote p { font: italic 17px/1.5 var(--serif); margin: 14px 0 12px; }
.quote .who { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ---------- newsletter / footer ---------- */
.newsletter { background: var(--ink); color: var(--canvas); border-radius: 14px; padding: 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.newsletter h2 { color: #fff; font-size: 30px; margin: 8px 0; }
.newsletter p { color: rgba(250,246,238,.7); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; height: 48px; border-radius: var(--r); border: 1.5px solid rgba(232,196,106,.35); background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; outline: none; }
.inline-form input:focus { border-color: var(--gold-2); }
.footer { margin-top: 56px; background: var(--card); border-top: 1px solid var(--line); padding: 44px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer h4 { font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.footer a:hover { color: var(--burgundy); }
.footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.pay-icons { display: flex; gap: 6px; }
.pay-icons span { font: 800 10px/1 var(--sans); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--white); color: var(--ink-2); letter-spacing: .04em; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font: 600 13px/1 var(--sans); color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; height: 46px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--canvas); padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(74, 21, 33, 0.12); }
.field .hint { font-size: 12px; color: var(--muted); }
/* checkout: how to confirm the order — three tappable cards with a tick circle */
.confirm-pick { border: 0; padding: 0; min-width: 0; }
.confirm-pick legend { font: 600 13px/1 var(--sans); color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.confirm-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.confirm-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 24px 8px 12px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer; text-align: center;
  transition: border-color .15s, box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.confirm-opt:hover { border-color: var(--gold); }
.confirm-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.confirm-opt .co-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--ink-2); transition: background .15s, color .15s; }
.confirm-opt .co-ic .ms { font-size: 24px; }
.confirm-opt .co-lbl { font: 600 13px/1.2 var(--sans); color: var(--ink); }
.confirm-opt .co-tick { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white);
  display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.confirm-opt .co-tick .ms { font-size: 14px; font-weight: 700; }
.confirm-opt:has(input:checked) { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy), var(--shadow-rest); }
.confirm-opt:has(input:checked) .co-tick { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.confirm-opt:has(input:checked) .co-ic { background: var(--burgundy); color: var(--white); }
.confirm-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 389px) { .confirm-opts { gap: 6px; } .confirm-opt { min-height: 96px; padding: 24px 4px 10px; } .confirm-opt .co-tick { top: 6px; right: 6px; } .confirm-opt .co-lbl { font-size: 12px; } }
.form-error { background: #fdeeee; color: var(--ember); border: 1px solid rgba(179,38,58,.3); padding: 10px 12px; border-radius: var(--r); font-size: 14px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; margin: 36px auto; max-width: 1040px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-float); background: var(--white); }
.auth-side { background: var(--burgundy); color: var(--canvas); padding: 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-side::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(232,196,106,.3); border-radius: 8px; pointer-events: none; }
.auth-side h2 { color: #fff; font-size: 34px; margin: 10px 0 14px; }
.auth-side h2 em { color: var(--gold-2); }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.auth-side li .ms { color: var(--gold-2); }
.auth-side .gift { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(232,196,106,.35); }
.auth-side .gift b { font: 700 28px/1 var(--serif); color: var(--gold-2); }
.auth-form { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 30px; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 24px; }
.auth-form .switch { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--card-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---------- account ---------- */
.acct { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0 20px; align-items: flex-start; }
.acct-side { position: sticky; top: 140px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; }
.acct-side .who { display: flex; gap: 12px; align-items: center; padding: 12px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.monogram { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: var(--gold-2); font: 700 18px/1 var(--serif); border: 2px solid var(--gold); flex: none; }
.acct-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.acct-side a:hover { background: var(--card); }
.acct-side a.active { background: var(--burgundy); color: var(--canvas); }
.acct-side a.active .ms { color: var(--gold-2); }
.acct-side a .n { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--gold-soft); color: #6b5300; padding: 2px 7px; border-radius: 10px; }
.acct-side a.active .n { background: rgba(255,255,255,.15); color: var(--gold-2); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-rest); }
.panel.parch { background: var(--card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 24px; }
.panel-head h3 { font-size: 20px; }
.status-card { background: linear-gradient(135deg, #fff7e2, #f2deb2); border: 1px solid rgba(197,155,39,.45); }
.status-top { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 26px; }
.status-top .big { font: 700 44px/1 var(--serif); color: var(--burgundy); }
.status-top .worth { font-size: 13px; color: #6b5300; font-weight: 700; }
.next-up { margin-top: 20px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: rgba(255,255,255,.65); border: 1px solid rgba(197,155,39,.35); border-radius: var(--r-lg); font-size: 14px; flex-wrap: wrap; }
.next-up .ms { color: var(--gold); }
.pending-leaves { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-lg); font-size: 14px;
  background: linear-gradient(90deg, rgba(197,155,39,.16), rgba(197,155,39,.05)); border: 1px dashed rgba(197,155,39,.6); }
.pending-leaves .ms { color: var(--gold); font-size: 22px; flex: none; }
body.halloween .pending-leaves { background: var(--card); }
.next-up .btn { margin-left: auto; }
.progress { height: 10px; border-radius: 6px; background: rgba(43,30,22,.08); overflow: hidden; box-shadow: inset 0 1px 2px rgba(43,30,22,.1); }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 8px rgba(232,196,106,.7); transition: width 1s; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.kpi span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font: 700 26px/1.1 var(--serif); color: var(--ink); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.quest { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); margin-bottom: 10px; }
.quest .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--burgundy); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.quest.done .ic { background: var(--sage); color: #fff; }
.quest strong { font-size: 14px; display: block; }
.quest small { font-size: 12px; color: var(--muted); }
.quest .act { margin-left: auto; flex: none; }
.streak { display: flex; gap: 6px; margin-top: 4px; }
.streak i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font: 700 10px/1 var(--sans); font-style: normal; color: var(--muted); }
.streak i.on { background: var(--gold); border-color: var(--gold); color: var(--burgundy-ink); }
.history { width: 100%; border-collapse: collapse; font-size: 14px; }
.history td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.history td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.history .plus { color: var(--sage); }
.history .minus { color: var(--ember); }
.voucher { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--gold); border-radius: var(--r-lg); background: var(--gold-soft); margin-bottom: 10px; }
.voucher code { font: 700 13px/1 ui-monospace, Consolas, monospace; background: var(--white); padding: 4px 8px; border-radius: 3px; letter-spacing: .06em; }
.voucher.used { opacity: .5; border-color: var(--line-2); background: var(--card); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ms { font-size: 44px; color: var(--gold); margin-bottom: 10px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- orders & tracking ---------- */
.order { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; background: var(--white); }
.order-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.order-top .id { font: 700 17px/1 var(--serif); }
.order-top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.order-items { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.order-items .cover { width: 48px; }
.track { --n: 6; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; margin: 10px 0 4px; }
.track::before { content: ''; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 19px; height: 3px; background: var(--line-2); }
.track .fill { position: absolute; left: calc(50% / var(--n)); top: 19px; height: 3px; background: var(--sage); transition: width .6s; }
.step { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.step .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); border: 2px solid var(--line-2); position: relative; z-index: 1; }
.step .dot .ms { font-size: 20px; }
.step.done { color: var(--sage); }
.step.done .dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.step.now { color: var(--burgundy); }
.step.now .dot { background: var(--gold); border-color: var(--gold); color: var(--burgundy-ink); box-shadow: 0 0 0 5px rgba(197,155,39,.25); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 9px rgba(197,155,39,.1); } }
.step small { font-weight: 500; font-size: 11px; color: var(--muted); }

/* ---------- product page ---------- */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 18px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--burgundy); }
.pdp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 24px 0 40px; align-items: flex-start; }
.pdp-media { position: sticky; top: 140px; background: linear-gradient(180deg, var(--card), var(--card-2)); border-radius: 14px; padding: 48px 22%; border: 1px solid var(--line); }
.pdp-media .cover { transform: perspective(900px) rotateY(-10deg); box-shadow: 18px 22px 40px -12px rgba(43,30,22,.5); }
.pdp h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 6px; }
.pdp .by { font: italic 19px/1.3 var(--serif); color: var(--ink-2); }
.pdp .rating-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 18px 0; box-shadow: var(--shadow-rest); }
.buy-box .price-row .now { font-size: 38px; }
.buy-box .you-save { color: var(--sage); font-weight: 700; font-size: 14px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--canvas); height: 48px; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.buy-actions { display: flex; gap: 10px; margin-top: 16px; }
.buy-actions .btn { flex: 1; height: 48px; }
/* Language picker (books also printed in French): a box showing the flag + language, opens a small menu */
.flag { width: 22px; height: 14px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(43, 30, 22, 0.18); display: inline-block; vertical-align: -2px; }
.lang-pick { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.lang-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang-wrap { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; min-width: 176px; padding: 0 12px 0 14px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); font: 600 15px var(--sans); color: var(--ink); cursor: pointer; box-shadow: var(--emboss); transition: border-color .15s; }
.lang-btn:hover, .lang-pick.open .lang-btn { border-color: var(--gold); }
.lang-btn:focus-visible, .lang-menu button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-btn span { flex: 1; text-align: left; }
.lang-btn .material-symbols-outlined, .lang-btn .ms { transition: transform .2s; color: var(--muted); }
.lang-pick.open .lang-btn .material-symbols-outlined, .lang-pick.open .lang-btn .ms { transform: rotate(180deg); }
.lang-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-raise); display: grid; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; background: none; border: 0; border-radius: var(--r); font: 500 15px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.lang-menu button span { flex: 1; }
.lang-menu button:hover { background: var(--card); }
.lang-menu button[aria-selected="true"] { font-weight: 700; }
.lang-menu button > :last-child { color: var(--sage); visibility: hidden; font-size: 18px; }
.lang-menu button[aria-selected="true"] > :last-child { visibility: visible; }
.lang-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 8px 2px 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lang-tag .flag { width: 16px; height: 11px; }
.perk-list { display: grid; gap: 10px; margin-top: 18px; font-size: 14px; }
.perk-list div { display: flex; gap: 10px; align-items: center; }
.perk-list .ms { color: var(--sage); }
.desc { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tags span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.specs div { background: var(--card); border-radius: var(--r); padding: 10px 12px; }
.specs span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; display: block; }
.specs b { font: 600 15px/1.3 var(--serif); }
.fbt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fbt .cover { width: 80px; }
.fbt .plus { font: 700 26px/1 var(--serif); color: var(--gold); }
.stars-input { display: flex; gap: 4px; }
.stars-input button { font-size: 28px; color: var(--line-2); line-height: 1; }
.stars-input button.on { color: var(--gold); }

/* ---------- shop / listing ---------- */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 24px 0; align-items: flex-start; }
/* grid items must be allowed to shrink below their content's min-content, or the
   filter sidebar's nowrap category links blow the 1fr track out past the viewport
   on mobile (the sidebar collapses to one column at ≤1023). Same guard as .grid-books. */
.shop > *, .acct > * { min-width: 0; }
/* Same guard for every two-column "hero" that collapses to 1fr on mobile: a long
   (French) CTA or headline inside the content column would otherwise set the track's
   min-content and push the whole section past the viewport. */
.hero-grid > *, .loyalty-hero .grid > *, .botd > *, .flash-hero > *,
.pdp > *, .checkout > *, .two-col > *, .promo-split > * { min-width: 0; }
/* progress tracks: let the tier/step columns share the width and their labels wrap
   instead of overflowing (5 nowrap labels like "Collectionneur" blew out at ≤420px). */
.tier-track { grid-auto-columns: minmax(0, 1fr); }
.track { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.tier-track > *, .track > * { min-width: 0; }
.filters { position: sticky; top: 140px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.filters h4 { font-size: 15px; margin: 4px 0 10px; }
.filters a, .filters label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.filters a:hover, .filters label:hover { background: var(--card); }
.filters a.active { background: var(--burgundy); color: var(--canvas); }
.filters a .c { margin-left: auto; font-size: 12px; opacity: .7; }
.filters hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.list-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.select { height: 40px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--white); padding: 0 10px; }
.cat-banner { border-radius: 14px; padding: 30px; color: var(--canvas); margin: 18px 0 8px; position: relative; overflow: hidden; }
.cat-banner h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.cat-banner p { color: rgba(250,246,238,.8); margin-top: 6px; max-width: 520px; }

/* ---------- drawer, modal, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(43,30,22,.45); backdrop-filter: blur(2px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--canvas); z-index: 90; box-shadow: var(--shadow-float); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 22px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; background: var(--white); }
.ship-meter { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.ship-meter .progress { margin-top: 8px; height: 8px; }
.ship-meter.ok { background: var(--sage-soft); border-color: rgba(45,74,62,.3); color: var(--sage); font-weight: 600; }
.ship-meter.ok .progress i { background: var(--sage); box-shadow: none; }
.line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .t { font: 600 15px/1.25 var(--serif); }
.line .qty { height: 32px; margin-top: 6px; }
.line .qty button { width: 30px; }
.line .p { text-align: right; font-weight: 700; }
.totals { display: grid; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font: 700 20px/1 var(--serif); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .save { color: var(--sage); font-weight: 600; }
.earn-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid rgba(197,155,39,.5); font-size: 13.5px; margin: 12px 0; color: #4a3600; }
.earn-banner b { color: var(--burgundy); }
.upsell { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); margin-bottom: 8px; }
.upsell .cover { width: 44px; }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-box { background: var(--canvas); border-radius: 14px; box-shadow: var(--shadow-float); width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 28px; position: relative; transform: scale(.94); opacity: 0; transition: transform .2s, opacity .2s; pointer-events: auto; text-align: center; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal .x { position: absolute; top: 10px; right: 10px; }
.modal h2 { font-size: 28px; margin: 10px 0 8px; }
.modal p { color: var(--ink-2); }
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 100; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--canvas); padding: 12px 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-float); font-size: 14px; animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
.toast.gold { background: linear-gradient(135deg, #4a1521, #2f020d); border: 1px solid var(--gold); }
.toast .ms { color: var(--gold-2); }
.toast .cover { width: 34px; flex: none; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 1px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* spin wheel */
.wheel-wrap { position: relative; width: 260px; height: 260px; margin: 18px auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--gold); box-shadow: var(--shadow-raise), inset 0 0 0 2px var(--burgundy); transition: transform 4s cubic-bezier(.15,.9,.2,1); }
.wheel-pin { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--burgundy); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 28px 0; align-items: flex-start; }
.checkout .summary { position: sticky; top: 140px; }
.voucher-pick { display: grid; gap: 8px; }
.voucher-pick label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 14px; background: var(--canvas); }
.voucher-pick input:checked + span { font-weight: 700; color: var(--burgundy); }
.voucher-pick label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* sticky mobile cta */
.mobile-cta { display: none; }

/* utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hide { display: none !important; }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
/* On an in-place live re-render (same route) the view is rebuilt without replaying the entrance
   animation, so live pages (account points/redeem, order tracking) update without fade/jitter. */
#app.no-anim .fade-in { animation: none; }

/* ---------- product photos (imported or uploaded) ---------- */
.cover.photo { background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.12), 4px 8px 16px -6px rgba(43,30,22,.35); container-type: normal; }
.cover.photo::before, .cover.photo::after { display: none; }
.cover.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.photo.contain { aspect-ratio: 1 / 1; border-radius: var(--r); }
.cover.photo.contain img { object-fit: contain; }
.book-card .media:has(.photo) { padding: 14px 16% 12px; }
.book-card .media:has(.photo.contain) { padding: 10px; }
.pdp-media:has(.photo.contain) { padding: 24px; }
.pdp-media:has(.photo.contain) .cover { transform: none; }
.book-card .series-tag { color: var(--rose); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card .series-tag:hover { text-decoration: underline; }
.book-card a.author { display: block; }
.book-card a.author:hover { color: var(--burgundy); }

/* ---------- logo image ---------- */
.logo img { display: block; max-width: 220px; object-fit: contain; }
/* phones: the logo gives way so the header icons always fit (on a 360-390 px Android it pushed the satchel off screen,
   which made the whole page draggable sideways) */
@media (max-width: 760px) {
  .header-main { min-width: 0; }
  .logo { flex: 0 1 auto; min-width: 0; }
  .logo img { max-width: 100%; height: auto; max-height: 44px; }
  .header-actions { flex: none; }
  .logo-text { min-width: 0; }
  .logo-text strong { white-space: nowrap; }
}
/* narrow phones (most phones are 360-428 px): the shop name stays, stacked on two lines beside the seal
   (see "phones: shop name on two lines" further down; under 360 px there is no room and the seal stands alone) */
.logo img { flex: none; }
.foot-brand { gap: 10px; }
.foot-brand svg, .foot-brand img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- homepage banner slider ---------- */
.hero-slider { position: relative; margin: 18px auto 8px; max-width: var(--max); padding: 0 var(--gutter); }
.hero-slider .slides { position: relative; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-raise); aspect-ratio: 16 / 5; }
.hero-slider.h-small .slides { aspect-ratio: 16 / 4; }
.hero-slider.h-large .slides { aspect-ratio: 16 / 6.5; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; display: block; }
.hero-slider .slide.on { opacity: 1; visibility: visible; }
.hero-slider .slide picture, .hero-slider .slide img { width: 100%; height: 100%; display: block; }
.hero-slider .slide img { object-fit: cover; }
.hero-slider .slide.text-only { background: radial-gradient(ellipse at 80% 0%, var(--burgundy-2), var(--burgundy) 65%); }
.hero-slider .shade { position: absolute; inset: 0; background: #000; }
.hero-slider .copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 4% 7%; max-width: 100%; }
.hero-slider .copy.left { align-items: flex-start; text-align: left; }
.hero-slider .copy.center { align-items: center; text-align: center; }
.hero-slider .copy.right { align-items: flex-end; text-align: right; }
.hero-slider .copy h2 { color: inherit; font-size: clamp(24px, 4vw, 54px); max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-slider .copy h2 em { color: var(--gold-2); }
.hero-slider .copy p { max-width: 520px; font-size: clamp(14px, 1.4vw, 18px); opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.hero-slider .copy .btn { pointer-events: none; }
.hero-slider .copy:not(:has(h2)):not(:has(p)) { justify-content: flex-end; padding-bottom: 5%; }
.hero-slider .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-rest); z-index: 2; opacity: 0; transition: opacity .2s; }
.hero-slider:hover .nav-arrow, .hero-slider .nav-arrow:focus-visible { opacity: 1; }
.hero-slider .nav-arrow.prev { left: calc(var(--gutter) + 14px); }
.hero-slider .nav-arrow.next { right: calc(var(--gutter) + 14px); }
.hero-slider .dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-slider .dots button { width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .25s, background .25s; }
.hero-slider .dots button.on { width: 26px; background: #fff; }

/* ---------- image tiles ---------- */
.promo-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promo-tiles.n3 { grid-template-columns: repeat(3, 1fr); }
.promo-tiles.n2 { grid-template-columns: repeat(2, 1fr); }
.promo-tiles.n1 { grid-template-columns: 1fr; }
.ptile { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-rest); background: var(--card); display: block; }
.promo-tiles.n1 .ptile, .promo-tiles.n2 .ptile { aspect-ratio: 16 / 9; }
.ptile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.ptile picture { display: block; height: 100%; }
.ptile:hover img { transform: scale(1.04); }
.ptile .lbl { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(255,253,248,.95); color: var(--ink); font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-raise); }
.ptile .lbl .ms { font-size: 16px; }

/* ---------- category tiles with photos ---------- */
.cat-tile .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile.has-img .bg::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 10%, rgba(20,10,8,.8)); }
.cat-tile .subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cat-tile .subs span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.mega-grid { grid-template-columns: repeat(4, 1fr); }
.mega-col ul { list-style: none; margin: -4px 0 8px 62px; padding: 0; display: grid; gap: 2px; }
.mega-col ul a { display: block; padding: 4px 8px; font-size: 13.5px; color: var(--ink-2); border-radius: var(--r); }
.mega-col ul a:hover { background: var(--card); color: var(--burgundy); }
.cat-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-block .cat-tile { min-height: 200px; }
.cat-block ul { list-style: none; padding: 10px 4px 0; margin: 0; display: grid; gap: 2px; }
.cat-block li a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--r); font-size: 14.5px; color: var(--ink-2); }
.cat-block li a .ms { font-size: 18px; color: var(--gold); }
.cat-block li a span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }
.cat-block li a:hover { background: var(--card); color: var(--burgundy); }

/* ---------- category page ---------- */
.cat-banner.has-img { min-height: 220px; display: flex; align-items: flex-end; }
.cat-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-banner.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,8,.78), rgba(20,10,8,.25) 70%); }
.cat-banner .in { position: relative; z-index: 1; }
.crumbs.light { color: rgba(250,246,238,.75); padding: 0; }
.crumbs.light a:hover { color: #fff; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: thin; }
.subcats a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: background .15s, border-color .15s; }
.subcats a .ms { font-size: 17px; color: var(--gold); }
.subcats a span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.subcats a:hover { border-color: var(--burgundy); color: var(--burgundy); }
.subcats a.on { background: var(--burgundy); border-color: var(--burgundy); color: var(--canvas); }
.subcats a.on .ms, .subcats a.on span { color: var(--gold-2); }
.filters details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.filters details > summary::-webkit-details-marker { display: none; }
.filters details > summary::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; font-size: 20px; color: var(--muted); transition: transform .2s; }
.filters details[open] > summary::after { transform: rotate(180deg); }
.filters .kids { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.filters .kids a { font-size: 13.5px; padding: 5px 8px; }
.filters a.toggle .ms { font-size: 19px; color: var(--burgundy); }
.filters a.toggle.active { background: transparent; color: var(--burgundy); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { display: inline-block !important; padding: 5px 10px !important; border-radius: 999px !important; background: var(--card); border: 1px solid var(--line); font-size: 12.5px !important; font-weight: 600; }
.tag-cloud a.on { background: var(--burgundy); color: var(--canvas); border-color: var(--burgundy); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.active-filters a:not(.link) { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--gold-soft); border: 1px solid rgba(197,155,39,.5); font-size: 12.5px; font-weight: 600; }
.active-filters .ms { font-size: 15px; }
.tags a { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.tags a:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- product page extras ---------- */
.series-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; color: var(--rose); }
.series-line .ms { font-size: 18px; }
.series-line:hover b { text-decoration: underline; }
.pdp .by a:hover, .specs a:hover { color: var(--burgundy); text-decoration: underline; }
.desc p + p { margin-top: 12px; }
.desc.clamped { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
[data-more] { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; font-weight: 700; color: var(--burgundy); }
.specs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.series-strip .strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.series-strip .strip a { flex: none; width: 64px; text-align: center; opacity: .7; transition: opacity .15s, transform .15s; }
.series-strip .strip a:hover { opacity: 1; transform: translateY(-2px); }
.series-strip .strip a.here { opacity: 1; }
.series-strip .strip a.here .cover { outline: 3px solid var(--gold); outline-offset: 2px; }
.series-strip .strip small { display: block; margin-top: 4px; font-weight: 700; font-size: 11px; color: var(--muted); }
.series-strip h3 { display: flex; align-items: center; gap: 6px; }

/* ---------- series ---------- */
.series-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.series-card { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-rest); transition: transform .2s, box-shadow .2s; }
.series-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-raise); }
.series-card strong { display: block; font: 600 17px/1.2 var(--serif); }
.series-card span { display: block; font: italic 14px/1.3 var(--serif); color: var(--ink-2); margin-top: 2px; }
.series-card small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.stack { position: relative; width: 84px; height: 104px; flex: none; }
.stack > div { position: absolute; width: 58px; top: 6px; }
.stack .s0 { left: 0; z-index: 3; }
.stack .s1 { left: 13px; top: 3px; z-index: 2; transform: rotate(4deg); opacity: .92; }
.stack .s2 { left: 26px; top: 0; z-index: 1; transform: rotate(8deg); opacity: .85; }
.stack.big { width: 170px; height: 210px; }
.stack.big > div { width: 118px; }
.stack.big .s1 { left: 26px; }
.stack.big .s2 { left: 52px; }
.series-head { display: flex; gap: 30px; align-items: center; margin-top: 18px; }
.series-head h1 { font-size: clamp(28px, 3.6vw, 42px); }
.reading-order { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reading-order li { position: relative; display: flex; }
.reading-order li .book-card { flex: 1; }
.reading-order .no { position: absolute; top: -10px; left: -8px; z-index: 3; background: var(--burgundy); color: var(--gold-2); font: 700 13px/1 var(--sans); padding: 6px 9px; border-radius: 999px; box-shadow: var(--shadow-rest); }

/* ---------- flash sales page ---------- */
.flash-head { padding-top: 18px; }
.flash-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.flash-tabs a { display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--r-lg); border: 2px solid var(--line-2); background: var(--white); position: relative; transition: border-color .15s, background .15s; }
.flash-tabs a .t { display: flex; align-items: center; gap: 6px; font: 700 19px/1.2 var(--serif); }
.flash-tabs a small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.flash-tabs a b { position: absolute; right: 16px; top: 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flash-tabs a:hover { border-color: var(--gold); }
.flash-tabs a.on.weekend { border-color: var(--burgundy); background: var(--burgundy); color: var(--canvas); }
.flash-tabs a.on.midweek { border-color: var(--sage); background: var(--sage); color: var(--canvas); }
.flash-tabs a.on small, .flash-tabs a.on b { color: rgba(250,246,238,.75); }
.flash-tabs a.on .t .ms { color: var(--gold-2); }
.flash-hero { position: relative; overflow: hidden; border-radius: 14px; padding: 30px; color: var(--canvas); background: var(--burgundy); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-float); isolation: isolate; }
.flash-hero.midweek { background: var(--sage); }
.flash-hero[style*="--bn"]::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.2)), var(--bn); background-size: cover; background-position: center; z-index: -1; }
.flash-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); margin: 6px 0; }
.flash-hero p { color: rgba(250,246,238,.85); max-width: 560px; }
.flash-hero .cd .label { color: var(--gold-2); margin-bottom: 6px; }
.flash-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.flash-stats b { display: block; font: 700 26px/1 var(--serif); color: var(--gold-2); }
.flash-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: rgba(250,246,238,.75); }
.upcoming-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid rgba(197,155,39,.45); font-size: 14px; }
.upcoming-note .btn { margin-left: auto; }
.flash-filter { margin-top: 22px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-row a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.chips-row a span { font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.chips-row a.on { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.chips-row a.on span { color: var(--gold-2); }

/* ---------- owner-written pages ---------- */
.page-body { max-width: 820px; margin: 24px auto 0; padding: 34px 40px; }
.page-body h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 18px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose p, .prose ul { margin: 0 0 16px; }
.prose h3 { font-size: 24px; margin: 28px 0 10px; }
.prose h4 { font-size: 19px; margin: 22px 0 8px; }
.prose a { color: var(--burgundy); }

/* ---------- footer extras ---------- */
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; background: var(--white); }
.socials a:hover { border-color: var(--burgundy); }
.footer .contact li { display: flex; gap: 8px; align-items: center; }
.footer .contact .ms { font-size: 18px; color: var(--gold); }
.footer .bottom a:hover { color: var(--burgundy); }
.topbar[hidden] { display: none; }
html.is-preview .exit-intent { display: none; }

/* ---------- mobile bottom tab bar (phones only; shown in the ≤639 block) ---------- */
.mobile-tabbar { display: none; }
body.is-maintenance .mobile-tabbar { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid-books.five { grid-template-columns: repeat(4, 1fr); }
  .tier-cards { grid-template-columns: repeat(3, 1fr); }
  .points-pill small { display: none; }
}
@media (max-width: 1023px) {
  :root { --gutter: 1rem; }
  .hero-grid, .loyalty-hero .grid, .pdp, .checkout, .newsletter, .two-col { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-books, .grid-books.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .earn-ways, .trust, .kpis { grid-template-columns: repeat(2, 1fr); }
  .milestones, .rewards-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .acct, .shop { grid-template-columns: 1fr; }
  .acct-side, .filters { position: static; }
  .acct-side { display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .acct-side .who { display: none; }
  .acct-side a { white-space: nowrap; }
  .filters .cats { display: flex; overflow-x: auto; gap: 4px; }
  .filters .cats a { white-space: nowrap; }
  .pdp-media { position: static; padding: 36px 26%; }
  .checkout .summary { position: static; }
  .auth { grid-template-columns: 1fr; margin: 20px 0; }
  .auth-side { padding: 30px; }
  .search { display: none; }
  .search.mobile-open { display: block; position: absolute; left: 16px; right: 16px; top: 82px; max-width: none; }
  .search-toggle { display: grid !important; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-split { grid-template-columns: 1fr; }
  .promo-tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-directory, .reading-order { grid-template-columns: repeat(2, 1fr); }
  .hero-slider .nav-arrow { display: none; }
  .filters .kids { display: flex; overflow-x: auto; gap: 4px; margin: 0; border: 0; padding: 0; }
  .series-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
  body { font-size: 15px; }
  .header-main { height: 64px; gap: 8px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-text strong { font-size: 19px; }
  .logo-text span { display: none; }
  .points-pill { padding: 4px; }
  .points-pill .txt { display: none; }
  .cart-btn .meta { display: none; }
  .cart-btn { padding: 8px; }
  .icon-btn.hide-sm { display: none; }
  .section { padding: 40px 0; }
  .grid-books, .grid-books.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .book-card { padding: 10px; }
  .book-card .media { padding: 14px 16% 12px; }
  .book-card h3 { font-size: 15px; }
  .book-card .btn { padding: 10px 6px; font-size: 11px; letter-spacing: .03em; }
  .price-row .now { font-size: 19px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cat-tile { min-height: 160px; padding: 14px; }
  .cat-tile .chip { left: auto; right: 12px; top: 12px; }
  .cat-tile .spines { display: none; }
  .cat-tile.wide { grid-column: span 2; }
  .cat-tile h3 { font-size: 18px; }
  .earn-ways, .trust, .milestones, .rewards-grid, .quotes, .tier-cards { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .deal-band, .loyalty-hero, .newsletter, .panel { padding: 20px; }
  .hero-card .feature { grid-template-columns: 110px 1fr; gap: 14px; }
  .hero-card h3 { font-size: 20px; }
  .tier-node .dot { width: 40px; height: 40px; }
  .tier-node .dot .ms { font-size: 19px; }
  .tier-track::before, .tier-track .fill { top: 25px; }
  .tier-node strong { font-size: 11.5px; }
  .tier-node small { font-size: 10px; }
  .status-top { grid-template-columns: auto 1fr; }
  .status-top > :last-child { grid-column: 1 / -1; }
  .track .step span.lbl { font-size: 10.5px; }
  .step .dot { width: 32px; height: 32px; }
  .track::before, .track .fill { top: 15px; }
  .step small { display: none; }
  .specs { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .auth-form { padding: 26px 20px; }
  .timer .u { min-width: 44px; }
  .timer .u b { font-size: 20px; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(43,30,22,.08); gap: 10px; align-items: center; }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: 72px; }
  .toasts { bottom: 84px; }
  .topbar .wrap { font-size: 11.5px; gap: 6px; }
  .topbar .hide-sm { display: none; }
  .hero-slider { margin-top: 10px; }
  .hero-slider .slides, .hero-slider.h-small .slides, .hero-slider.h-large .slides { aspect-ratio: 4 / 3; border-radius: 10px; }
  .hero-slider .copy { padding: 6%; }
  .promo-tiles, .promo-tiles.n3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ptile .lbl { font-size: 10.5px; padding: 8px 11px; bottom: 10px; }
  .cat-directory { grid-template-columns: 1fr; }
  .reading-order { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .flash-hero { padding: 20px; }
  .flash-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flash-tabs a { padding: 10px 12px; }
  .flash-tabs a .t { font-size: 15px; }
  .flash-tabs a b { display: none; }
  .page-body { padding: 22px 18px; }
  .mega-col ul { margin-left: 50px; }

  /* Long CTA labels must wrap on phones instead of forcing their column wider than
     the screen (the base .btn is white-space:nowrap for desktop). */
  .btn { white-space: normal; }

  /* bottom tab bar — fixed, five even columns, respects the phone's safe area */
  .mobile-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(43, 30, 22, .08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-tabbar .tab {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; padding: 8px 2px 7px;
    color: var(--muted); background: none; border: 0;
    font: 600 10.5px/1 var(--sans); letter-spacing: .01em;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .15s;
  }
  .mobile-tabbar .tab .ms { font-size: 23px; }
  .mobile-tabbar .tab .tab-lbl { white-space: nowrap; }
  .mobile-tabbar .tab.active { color: var(--burgundy); }
  .mobile-tabbar .tab.active .ms { font-variation-settings: 'FILL' 1, 'wght' 500; }
  .mobile-tabbar .tab .badge-count { top: 3px; left: 50%; right: auto; margin-left: 5px; }

  /* reserve space so content never hides behind the bar */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* the PDP add-to-cart bar and toasts stack above the tab bar */
  .mobile-cta { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  body.has-mobile-cta { padding-bottom: calc(58px + 62px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(58px + 18px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 639px) { .cat-tile .ic { display: none; } }

/* category banners (artwork already contains the name) */
.cat-photo { margin: 14px 0 6px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-raise); aspect-ratio: 16 / 5; background: var(--card); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tile .bg img { object-position: right center; }
@media (max-width: 639px) { .cat-photo { border-radius: 10px; margin-top: 10px; } }
.cat-tile.has-img .bg::after { background: linear-gradient(90deg, rgba(15,12,12,.88) 0%, rgba(15,12,12,.6) 45%, rgba(15,12,12,.05) 85%), linear-gradient(180deg, transparent 45%, rgba(15,12,12,.55)); }

/* language switch (EN / FR) */
.lang-switch { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; height: 32px; }
.lang-switch button { border: 0; background: transparent; padding: 0 10px; font: 700 12px/1 var(--sans, inherit); letter-spacing: .04em; color: var(--muted); cursor: pointer; }
.lang-switch button.on { background: var(--burgundy); color: var(--canvas); }

/* "Continue with Google" + "or" divider */
.google-wrap { margin: 4px 0 14px; }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.google-wrap .or { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.google-wrap .or::before, .google-wrap .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

/* join window (guests) */
.pitch { text-align: center; max-width: 440px; margin: 0 auto; }
.pitch h2 { margin: 8px 0 14px; }
.pitch-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; text-align: left; }
.pitch-list li { display: flex; gap: 12px; align-items: flex-start; }
.pitch-list li > .ms { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--burgundy); font-size: 20px; }
.pitch-list b { display: block; }
.pitch-list span { color: var(--muted); font-size: 13.5px; }
.pitch .link { background: none; border: 0; cursor: pointer; }

/* checkout banner for guests */
.guest-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border: 1.5px dashed var(--gold); border-radius: var(--r); background: var(--gold-soft); }
.guest-bar b { display: block; }
.guest-bar span { font-size: 13.5px; color: var(--muted); }
.guest-bar .acts { display: flex; gap: 12px; align-items: center; }
.guest-bar .grow { flex: 1 1 220px; min-width: 0; }
.guest-bar .seal { flex: none; }

/* order confirmed (guest): claim the points */
.claim { display: flex; gap: 18px; align-items: flex-start; text-align: left; max-width: 880px; margin-left: auto; margin-right: auto; border: 1.5px solid var(--gold); }
.claim h3 { margin-bottom: 6px; }
.claim-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.claim-acts .google-wrap { margin: 0; flex-basis: 100%; }
.claim-acts .google-btn { justify-content: flex-start; }
@media (max-width: 640px) { .claim { flex-direction: column; } .lang-switch { height: 28px; } .lang-switch button { padding: 0 7px; } }

/* "goes with your books": related picks in the satchel and at checkout */
.pairings { margin-top: 18px; padding: 14px; border-radius: var(--r); background: var(--gold-soft); border: 1px solid rgba(197, 155, 39, .35); }
.pairings-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.pairings-head > .ms { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: var(--gold-2); font-size: 19px; }
.pairings-head .ph { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.pairings-head .ph b { color: var(--burgundy); }
.pairings-head span { font-size: 12.5px; color: var(--muted); }
.pairings .upsell { grid-template-columns: 48px 1fr auto; }
.pairings .upsell .cover { width: 48px; }
.pairings .why { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .03em; }
.pairings .why .ms { font-size: 15px; }
.pairings .ttl { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; margin: 2px 0 3px; color: inherit; text-decoration: none; }
.pairings .unlock { font-size: 10.5px; padding: 2px 6px; vertical-align: middle; }
.pairings .unlock .ms { font-size: 13px; }
.summary .pairings { margin-top: 14px; }

/* upcoming sale, "blurred teaser" mode: covers hidden behind frosted glass + countdown */
.deal-band.teaser { padding: 0; min-height: 380px; display: grid; }
.teaser-shelf { position: absolute; inset: -30px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center; padding: 40px;
  filter: blur(14px) saturate(.75); opacity: .55; transform: scale(1.05); pointer-events: none; user-select: none; }
.teaser-shelf .cover { box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.teaser-shelf .cover:nth-child(even) { transform: translateY(26px) rotate(2deg); }
.teaser-shelf .cover:nth-child(odd) { transform: rotate(-2deg); }
.teaser-veil { position: relative; z-index: 1; margin: 34px auto; width: min(560px, calc(100% - 40px)); align-self: center; text-align: center;
  padding: 30px 28px 26px; border-radius: 16px; border: 1px solid rgba(232,196,106,.35);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.teaser-veil h2 { margin: 6px 0 8px; }
.teaser-veil p { margin: 0 auto 16px; max-width: 440px; }
.teaser-veil .timer { justify-content: center; margin: 6px 0 4px; }
.teaser-lock { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,196,106,.16); border: 1px solid rgba(232,196,106,.45); color: var(--gold-2); }
.teaser-lock .ms { font-size: 26px; }
.flash-head .deal-band.teaser { margin-top: 16px; }
@media (max-width: 640px) { .teaser-shelf { grid-template-columns: repeat(3, 1fr); } .deal-band.teaser { min-height: 420px; } }

/* home: reasons to order here (under the banner) */
.perks-strip { margin: 6px 0 4px; }
.perks { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-rest); overflow: hidden; }
.perks.n3 { --n: 3; } .perks.n4 { --n: 4; } .perks.n5 { --n: 5; }
.perks > div { display: flex; gap: 10px; align-items: center; padding: 14px 16px; }
.perks > div + div { border-left: 1px solid var(--line); }
.perks .ms { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--burgundy); font-size: 20px; }
.perks b { display: block; font-size: 13.5px; line-height: 1.25; }
.perks small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 1023px) { .perks { grid-template-columns: repeat(2, 1fr); } .perks > div + div { border-left: 0; } .perks > div { border-top: 1px solid var(--line); } .perks > div:nth-child(-n+2) { border-top: 0; } .perks > div:nth-child(even) { border-left: 1px solid var(--line); } }
@media (max-width: 480px) { .perks > div { padding: 12px; gap: 8px; } .perks .ms { width: 32px; height: 32px; font-size: 18px; } .perks b { font-size: 12.5px; } }

/* home: collection spotlight */
.spotlight { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: 28px; align-items: center; padding: 30px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 0% 0%, rgba(232,196,106,.18), transparent 55%), var(--burgundy); color: var(--canvas); box-shadow: var(--shadow-float); }
.spotlight::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(232,196,106,.25); border-radius: 12px; pointer-events: none; }
.spot-copy { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.spot-copy h2 { color: #fff; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.spot-copy p { color: rgba(250,246,238,.82); }
.spot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(232,196,106,.4); color: var(--gold-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.spot-chips a:hover { background: rgba(232,196,106,.14); }
.spot-chips .ms { font-size: 16px; }
.spot-meta { font-size: 13px; color: rgba(250,246,238,.7); }
.spotlight .grid-books.spot-grid { grid-template-columns: repeat(4, 1fr); position: relative; }
.spotlight .book-card { border-color: transparent; }
@media (max-width: 1023px) { .spotlight { grid-template-columns: 1fr; padding: 22px; } .spotlight .grid-books.spot-grid { grid-template-columns: repeat(2, 1fr); } }

/* banner lettering */
.hero-slider .copy.dark-text h2, .hero-slider .copy.dark-text p { text-shadow: none; }
.hero-slider .copy.dark-text h2 em { color: var(--gold); }
.hero-slider .copy .btn { box-shadow: 0 10px 24px rgba(0,0,0,.18); }
@media (max-width: 700px) {
  /* phone banners keep their artwork in the lower half; the words sit on top */
  .hero-slider .copy.has-text { justify-content: flex-start; gap: 6px; padding: 6% 6% 0; }
  .hero-slider .copy.has-text h2 { font-size: 22px; line-height: 1.15; max-width: 100%; }
  .hero-slider .copy.has-text p { font-size: 12.5px; max-width: 92%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slider .copy.has-text .btn { padding: 0 14px; height: 34px; font-size: 12px; }
  .hero-slider .copy.has-text.right, .hero-slider .copy.has-text.left { align-items: flex-start; text-align: left; }
}

/* banner copy: kicker label, refined type, soft entrance on the active slide */
.hero-slider .copy { padding: 4% 6.5%; gap: 14px; }
.hero-slider .copy .kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--sans, inherit); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.hero-slider .copy .kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.hero-slider .copy.dark-text .kicker { color: #8a6a35; }
.hero-slider .copy h2 { font-size: clamp(26px, 3.6vw, 58px); line-height: 1.04; letter-spacing: -.01em; max-width: 620px; }
.hero-slider .copy p { font-size: clamp(14px, 1.25vw, 18px); line-height: 1.55; max-width: 480px; }
.hero-slider .copy .btn { margin-top: 6px; height: 50px; padding: 0 26px; letter-spacing: .08em; border-radius: 999px; }
.hero-slider .copy.dark-text .btn.btn-gold { background: #1d1d1d; color: #f7f2e9; }
.hero-slider .slide .copy > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.hero-slider .slide.on .copy > * { opacity: 1; transform: none; }
.hero-slider .slide.on .copy > :nth-child(2) { transition-delay: .08s; }
.hero-slider .slide.on .copy > :nth-child(3) { transition-delay: .16s; }
.hero-slider .slide.on .copy > :nth-child(4) { transition-delay: .24s; }
.hero-slider .slide img { transition: transform 7s ease; transform: scale(1.04); }
.hero-slider .slide.on img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-slider .slide .copy > *, .hero-slider .slide img { transition: none; transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .hero-slider .copy.has-text .kicker { font-size: 10px; letter-spacing: .16em; }
  .hero-slider .copy.has-text .kicker::before { width: 20px; }
  .hero-slider .copy.has-text h2 { font-size: 23px; }
  .hero-slider .copy.has-text .btn { height: 34px; }
}

/* small phones: the header must fit (logo + language + points + account + satchel) */
@media (max-width: 480px) {
  .header-actions { gap: 2px; }
  .header-main .icon-btn { width: 40px; height: 40px; }
  .lang-switch { height: 30px; }
  .lang-switch button.on { display: none; } /* one button that switches to the other language */
  .lang-switch button { padding: 0 9px; color: var(--ink); }
}
@media (max-width: 389px) {
  .header-main { gap: 4px; }
  .logo { gap: 6px; }
  .logo svg { width: 30px; height: 30px; }
  .logo-text strong { font-size: 16px; }
  .header-main .icon-btn { width: 36px; }
  .points-pill .seal { width: 26px; height: 26px; }
}
/* phones: shop name on two lines ("Book / Breeze") so it fits between the seal and the header buttons */
@media (max-width: 429px) {
  .logo { gap: 6px; }
  .logo-text strong { white-space: normal; width: min-content; font-size: 15px; line-height: 1.08; }
}
@media (max-width: 389px) { .logo-text strong { font-size: 13.5px; } }
@media (max-width: 359px) { .logo-text { display: none; } }

/* Floating WhatsApp button (Admin → Store settings → Site visibility / contact). */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 26px rgba(0, 0, 0, .34); }
.wa-float:active { transform: scale(.96); }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 76px; width: 52px; height: 52px; } }

/* ---------- "Coming soon" / maintenance holding page ---------- */
body.is-maintenance .header,
body.is-maintenance .footer,
body.is-maintenance .wa-float { display: none !important; }
body.is-maintenance #app { min-height: 100vh; }
.maintenance-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; overflow: hidden; }
.maintenance-bg { position: absolute; inset: 0; background-repeat: no-repeat; background-position: center; background-size: min(70vmin, 560px); opacity: 0.07; filter: grayscale(0.2); pointer-events: none; }
.maintenance-card { position: relative; z-index: 1; max-width: 520px; width: 100%; text-align: center; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(2px); border: 1px solid var(--gold-soft); border-radius: 18px; padding: 40px 28px; box-shadow: 0 20px 60px rgba(43, 30, 22, .12); }
.maintenance-logo { max-width: 180px; max-height: 96px; width: auto; height: auto; margin: 0 auto 18px; display: block; object-fit: contain; }
.maintenance-mark { width: 64px; height: 64px; margin: 0 auto 18px; display: block; color: var(--gold); }
.maintenance-card h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); margin-bottom: 10px; }
.maintenance-card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0 auto; max-width: 42ch; }
.maintenance-login { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font: 600 13px/1 var(--sans); color: var(--ink-2); text-decoration: none; opacity: .75; transition: opacity .15s; }
.maintenance-login:hover { opacity: 1; color: var(--gold); }
.maintenance-login .ms { font-size: 18px; }

/* ---------- Express checkout: collapsed delivery summary ---------- */
.express-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--gold-soft); border-radius: 12px; background: var(--gold-soft); margin-bottom: 4px; }
.express-card .express-name { font-weight: 700; color: var(--ink); }
.express-card .link { white-space: nowrap; }

/* ---------- Category side panel (slide-in from the left) ---------- */
.cat-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 90%); background: var(--canvas); z-index: 90; box-shadow: var(--shadow-float); transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.cat-drawer.open { transform: none; }
.cat-drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cat-drawer-body { flex: 1; overflow: auto; padding: 8px 12px 20px; }
.cat-group { border-bottom: 1px solid var(--line); }
.cat-group.cat-foot { border: 0; margin-top: 6px; }
.cat-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 10px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.cat-head:hover { background: var(--card); border-radius: var(--r-lg); }
.cat-head .grow { flex: 1; display: flex; align-items: center; gap: 6px; }
.cat-head strong { font: 600 16px/1.2 var(--serif); }
.cat-head .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); flex: none; }
.cat-head .chev { transition: transform .2s; color: var(--muted); }
.cat-group.open > .cat-head .chev { transform: rotate(180deg); }
.cat-head[disabled] { cursor: default; }
.cat-subs { display: none; flex-direction: column; padding: 2px 10px 12px 56px; }
.cat-group.open > .cat-subs { display: flex; }
.cat-subs a { padding: 8px 4px; color: var(--ink-2); font-size: 14.5px; border-radius: 8px; }
.cat-subs a:hover { color: var(--gold); }
.cat-subs .cat-all { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.cat-subs .cat-all .ms { font-size: 16px; }

/* hidden honeypot field in forms: invisible to people, filled in by bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Book of the Day ---------- */
.botd { position: relative; overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(240px, 300px); gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--white) 55%, var(--gold-soft) 140%);
  border: 1px solid var(--line); border-radius: var(--r-xl, 18px); padding: 28px 32px; box-shadow: var(--shadow-raise); }
/* faint house seal fills the open right side of the card so it no longer reads as empty white */
.botd-seal { position: absolute; right: -34px; bottom: -44px; width: 260px; height: 260px; opacity: .07;
  transform: rotate(-9deg); pointer-events: none; z-index: 0; }
.botd > .botd-cover, .botd > .botd-copy, .botd > .botd-side { position: relative; z-index: 1; }
/* right column: countdown to the next pick, quick facts and "readers also love" (fills the open side of the card) */
.botd-side { align-self: center; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--canvas) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(2px); }
.botd-next { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.botd-next .ms { color: var(--gold); font-size: 18px; }
.botd-next b { font-variant-numeric: tabular-nums; color: var(--ink); }
.botd-facts { display: grid; gap: 8px; margin: 0; }
.botd-facts > div { display: grid; grid-template-columns: 20px 70px minmax(0, 1fr); align-items: center; gap: 6px; font-size: 13.5px; }
.botd-facts .ms { font-size: 17px; color: var(--muted); }
.botd-facts dt { color: var(--muted); }
.botd-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botd-facts a:hover { color: var(--gold); }
.botd-stock { margin: 0; font-size: 13px; font-weight: 700; color: var(--ember); display: flex; align-items: center; gap: 6px; }
.botd-also { display: grid; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line); }
.botd-also-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.botd-also-row a { display: grid; gap: 4px; text-align: center; }
.botd-also-row .cover { width: 100%; border-radius: 6px; box-shadow: var(--shadow-raise); transition: transform .15s; }
.botd-also-row a:hover .cover { transform: translateY(-2px); }
.botd-also-row small { font-weight: 700; color: var(--ink-2); font-size: 12px; }
@media (max-width: 1180px) {
  .botd { grid-template-columns: 200px minmax(0, 1fr); }
  /* the panel moves under the book: facts on the left, "readers also love" on the right */
  .botd-side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); column-gap: 28px; row-gap: 10px; align-items: start; }
  .botd-side > * { grid-column: 1; }
  .botd-side > .botd-also { grid-column: 2; grid-row: 1 / span 4; border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
  .botd-side { grid-template-columns: minmax(0, 1fr); }
  .botd-side > .botd-also { grid-column: 1; grid-row: auto; border-top: 1px dashed var(--line); padding-top: 8px; }
}
.botd-cover { display: block; }
.botd-cover .cover, .botd-cover img, .botd-cover .book-cover { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.botd-copy h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 2px; }
.botd-author { color: var(--muted); margin-bottom: 10px; }
.botd-blurb { color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.botd-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.botd-foot .price { font: 700 24px/1 var(--serif); color: var(--ink); }
.botd-foot .price .strike { font: 400 16px/1 var(--sans); color: var(--muted); text-decoration: line-through; margin-left: 6px; }
@media (max-width: 640px) {
  .botd { grid-template-columns: 110px 1fr; gap: 14px; padding: 16px; align-items: start; }
  .botd-seal { width: 150px; height: 150px; right: -40px; bottom: -40px; opacity: .05; }
  .botd-copy h2 { font-size: 20px; }
  .botd-blurb { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .botd-foot { gap: 12px; }
  .botd-foot .btn { flex: 1 1 100%; }
  .botd-side { padding: 14px; gap: 12px; }
}

/* ---------- Best books of the year (Goodreads Choice Awards) ---------- */
/* an "awards night" stage: deep ink + burgundy, gold accents, covers in a fan */
.aw-hero, .aw-home { --aw-ink: #17110f; --aw-gold: #e8c46a; --aw-gold-2: #c59b27;
  background: radial-gradient(1200px 500px at 85% 20%, rgba(232,196,106,.18), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(122,30,48,.55), transparent 60%), linear-gradient(135deg, #1b1210 0%, #2a1418 55%, #3a1621 100%);
  color: #f6efe2; position: relative; overflow: hidden; }
.aw-hero::after, .aw-home::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(232,196,106,.35) 1px, transparent 1.4px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.aw-hero { margin-top: -1px; }
.aw-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.aw-hero .crumbs, .aw-hero .crumbs a { color: rgba(246,239,226,.6); }
.aw-eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--aw-gold); }
.aw-eyebrow .ms { font-size: 18px; }
.aw-hero h1 { font: 700 clamp(36px, 5.4vw, 68px)/1.02 var(--serif); margin: 14px 0 14px; color: #fff;
  background: linear-gradient(180deg, #fff 30%, #f1d88f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.aw-hero p, .aw-home p { color: rgba(246,239,226,.82); font-size: 17px; line-height: 1.6; max-width: 54ch; }
.aw-stats { display: flex; gap: 28px; margin: 22px 0 26px; flex-wrap: wrap; }
.aw-stats div { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid rgba(232,196,106,.5); }
.aw-stats b { font: 700 30px/1 var(--serif); color: var(--aw-gold); }
.aw-stats span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,239,226,.65); }
.aw-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.aw-years { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(232,196,106,.25); }
.aw-years a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: rgba(246,239,226,.75); }
.aw-years a.on { background: var(--aw-gold); color: #2a1418; }
.aw-years small { font-weight: 500; opacity: .8; }
/* fanned winner covers */
.aw-fan { position: relative; height: 420px; }
.aw-fan > div { position: absolute; top: 50%; left: 50%; width: 190px; transform-origin: 50% 120%; transition: transform .4s; }
.aw-fan .cover, .aw-fan img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(232,196,106,.25); display: block; }
.aw-fan-0 { transform: translate(-50%, -50%) rotate(-24deg) translateX(-150px); z-index: 1; }
.aw-fan-1 { transform: translate(-50%, -50%) rotate(-12deg) translateX(-76px); z-index: 2; }
.aw-fan-2 { transform: translate(-50%, -54%) scale(1.08); z-index: 5; }
.aw-fan-3 { transform: translate(-50%, -50%) rotate(12deg) translateX(76px); z-index: 2; }
.aw-fan-4 { transform: translate(-50%, -50%) rotate(24deg) translateX(150px); z-index: 1; }
.aw-fan:hover .aw-fan-0 { transform: translate(-50%, -50%) rotate(-28deg) translateX(-178px); }
.aw-fan:hover .aw-fan-4 { transform: translate(-50%, -50%) rotate(28deg) translateX(178px); }
/* the winners */
.center-head { justify-content: center; text-align: center; }
.center-head p { margin-left: auto; margin-right: auto; }
.aw-winners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.aw-win { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; border-radius: var(--r-lg); background: var(--white);
  border: 1px solid rgba(197,155,39,.45); box-shadow: var(--shadow-raise); position: relative; transition: transform .2s, box-shadow .2s; }
.aw-win:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.aw-win-cover { position: relative; display: block; margin-bottom: 8px; }
.aw-win-cover .cover, .aw-win-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; box-shadow: var(--shadow-raise); }
.aw-ribbon { position: absolute; top: 10px; left: -6px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px;
  font: 800 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #2a1418;
  background: linear-gradient(180deg, #f3d98b, #c59b27); border-radius: 3px 999px 999px 3px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.aw-ribbon .ms { font-size: 14px; }
.aw-win-cat { font: 700 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.aw-win h3 { font-size: 16px; line-height: 1.25; margin: 2px 0 0; }
.aw-win p { margin: 0; font-size: 13px; }
.aw-win .btn, .aw-card .btn { margin-top: auto; }
.aw-votes { display: flex; align-items: center; gap: 4px; font-size: 12px !important; color: var(--muted); margin: 4px 0 10px !important; }
.aw-votes .ms { font-size: 15px; color: var(--gold); }
/* jump bar */
/* sticky category bar: no scrollbar, faded edges + arrows where there is more, the list being read in gold */
.aw-jump { position: sticky; top: 124px; z-index: 5; display: flex; align-items: center; margin: 10px 0 6px; padding: 10px 0;
  background: color-mix(in srgb, var(--canvas) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.aw-jump-track { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.aw-jump-track::-webkit-scrollbar { display: none; }
.aw-jump.fade-r .aw-jump-track { mask-image: linear-gradient(90deg, #000 85%, transparent); }
.aw-jump.fade-l .aw-jump-track { mask-image: linear-gradient(90deg, transparent, #000 15%); }
.aw-jump.fade-l.fade-r .aw-jump-track { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.aw-jump-track a { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 13px; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.aw-jump-track a:hover { border-color: var(--gold); color: var(--ink); }
.aw-jump-track a.on { background: linear-gradient(180deg, #f3d98b, #c59b27); border-color: #c59b27; color: #2a1418; box-shadow: 0 3px 10px rgba(197,155,39,.3); }
.aw-jump-btn { flex: none; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-raise); cursor: pointer; }
.aw-jump-btn:hover { border-color: var(--gold); color: var(--gold); }
.aw-jump-btn.prev { margin-right: 6px; }
.aw-jump-btn.next { margin-left: 6px; }
.aw-jump-btn[hidden] { display: none; }
/* a category's top 10 */
.aw-cat { scroll-margin-top: 170px; border-top: 1px solid var(--line); }
.aw-rail { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.aw-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aw-card-cover { position: relative; display: block; margin-bottom: 8px; }
.aw-card-cover .cover, .aw-card-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; box-shadow: var(--shadow-raise); transition: transform .2s; }
.aw-card-cover:hover .cover, .aw-card-cover:hover img { transform: translateY(-3px); }
.aw-rank { position: absolute; left: 8px; bottom: -12px; min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px;
  font: 700 17px/1 var(--serif); background: var(--ink); color: var(--canvas); box-shadow: 0 4px 10px rgba(0,0,0,.25); border: 2px solid var(--canvas); }
.aw-card.win .aw-rank { background: linear-gradient(180deg, #f3d98b, #c59b27); color: #2a1418; }
.aw-card.win .aw-card-cover .cover, .aw-card.win .aw-card-cover img { box-shadow: 0 0 0 3px #e8c46a, var(--shadow-float); }
.aw-rank .ms { font-size: 18px; }
.aw-card h3 { font-size: 14.5px; line-height: 1.25; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-card p { margin: 0; font-size: 12.5px; }
.aw-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.aw-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c59b27, #e8c46a); }
.aw-nocover { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; background: var(--canvas); color: var(--muted); }
/* home page block */
.aw-home { border-radius: var(--r-xl, 18px); display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 34px; align-items: center; padding: 38px; box-shadow: var(--shadow-float); }
.aw-home > * { position: relative; z-index: 1; }
.aw-home h2 { font: 700 clamp(28px, 3.2vw, 42px)/1.08 var(--serif); color: #fff; margin: 12px 0 10px; }
.aw-home .aw-stats { margin: 18px 0 22px; gap: 20px; }
.aw-home .aw-stats b { font-size: 24px; }
.aw-home-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; padding: 6px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(232,196,106,.5) transparent; }
.aw-home-book { scroll-snap-align: start; display: grid; gap: 4px; color: #f6efe2; }
.aw-home-book .cover, .aw-home-book img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(232,196,106,.3); transition: transform .2s; display: block; }
.aw-home-book:hover .cover, .aw-home-book:hover img { transform: translateY(-4px) rotate(-1deg); }
.aw-home-cat { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font: 700 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #e8c46a; }
.aw-home-cat .ms { font-size: 13px; }
.aw-home-book b { font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-home-book small { color: rgba(246,239,226,.7); font-size: 12px; }
/* header link: gold, so the page stands out in the menu */
.nav a.aw-nav { color: #7a5a00; background: linear-gradient(180deg, #fbf0cf, #f3dd9c); border: 1px solid rgba(197,155,39,.55); border-radius: 999px; padding: 6px 12px; font-weight: 700; }
.nav a.aw-nav .ms { color: #a77d0d; }
.nav a.aw-nav.active, .nav a.aw-nav:hover { background: linear-gradient(180deg, #f3d98b, #c59b27); color: #2a1418; }
@media (max-width: 1180px) {
  .aw-winners, .aw-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aw-home { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .aw-hero-in { grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; }
  .aw-fan { height: 300px; order: -1; }
  .aw-fan > div { width: 140px; }
  .aw-winners, .aw-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .aw-fan { height: 240px; }
  .aw-fan > div { width: 112px; }
  .aw-fan-0 { transform: translate(-50%, -50%) rotate(-22deg) translateX(-96px); }
  .aw-fan-1 { transform: translate(-50%, -50%) rotate(-11deg) translateX(-50px); }
  .aw-fan-3 { transform: translate(-50%, -50%) rotate(11deg) translateX(50px); }
  .aw-fan-4 { transform: translate(-50%, -50%) rotate(22deg) translateX(96px); }
  .aw-stats { gap: 16px; }
  .aw-stats b { font-size: 24px; }
  .aw-winners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aw-win { padding: 10px; }
  /* each top 10 becomes a swipeable row */
  .aw-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; }
  .aw-rail::-webkit-scrollbar { display: none; }
  .aw-card { scroll-snap-align: start; }
  .aw-jump { top: 108px; }
  .aw-jump-btn { display: none; } /* swipe on phones */
  .aw-home { padding: 24px 18px; gap: 20px; }
  .aw-home-rail { grid-auto-columns: 124px; }
}

/* "Join the reading club" pop-in — a corner card (never a blocking modal), guests only. */
.join-nudge {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  width: min(360px, calc(100vw - 32px));
  background: linear-gradient(180deg, var(--white), var(--canvas));
  border: 1px solid var(--gold-soft); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(43, 30, 22, .18), 0 2px 6px rgba(43, 30, 22, .06);
  padding: 20px 20px 16px;
  opacity: 0; transform: translateY(24px) scale(.98); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.15);
}
.join-nudge.in { opacity: 1; transform: none; pointer-events: auto; }
.join-nudge-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.join-nudge-x:hover { background: var(--gold-soft); color: var(--ink); }
.join-nudge-x .ms { font-size: 20px; }
.join-nudge-head { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
.join-nudge-seal { width: 52px; height: 52px; flex: none; animation: join-nudge-sway 3.2s ease-in-out .6s 2; }
.join-nudge .eyebrow { font-size: 11px; color: var(--burgundy-2); }
.join-nudge h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin: 2px 0 0; color: var(--ink); }
.join-nudge p { margin: 12px 0 10px; color: var(--ink-2); font-size: 14px; }
.join-nudge ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.join-nudge li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.join-nudge li .ms { font-size: 18px; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--burgundy); }
.join-nudge-code { margin: 14px 0 6px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border: 1.5px dashed var(--gold); border-radius: 12px; background: var(--gold-soft); color: var(--burgundy); cursor: pointer; font: inherit; }
.join-nudge-code .mono { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.join-nudge-copy { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--burgundy-2); }
.join-nudge-copy .ms { font-size: 17px; }
.join-nudge-code:hover { background: color-mix(in srgb, var(--gold-soft) 70%, var(--gold-2)); }
.join-nudge p.join-nudge-note { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.join-nudge-links { display: flex; justify-content: space-between; margin-top: 8px; }
.join-nudge-links .link { color: var(--muted); }
@keyframes join-nudge-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
html.is-preview .join-nudge, body.is-maintenance .join-nudge { display: none; }
@media (max-width: 639px) {
  /* sits just above the bottom tab bar, full width */
  .join-nudge { left: 12px; right: 12px; width: auto; bottom: calc(58px + 12px + env(safe-area-inset-bottom, 0px)); padding: 16px 16px 12px; }
  .join-nudge h3 { font-size: 19px; }
  .join-nudge p:not(.join-nudge-note) { display: none; } /* keep it compact: the perks say it */
  .join-nudge ul { margin-top: 12px; }
  .join-nudge-seal { width: 44px; height: 44px; }
  /* the WhatsApp bubble would sit on top of the card — step aside while it's up */
  body:has(.join-nudge.in) .wa-float { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .join-nudge { transition: opacity .2s; transform: none; }
  .join-nudge-seal { animation: none; }
}

/* satchel: "Complete the series" offer */
.series-offer { display: flex; gap: 12px; align-items: center; padding: 12px; margin: 12px 0; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(135deg, rgba(232,196,106,.18), rgba(232,196,106,.05)); }
.series-offer .covers { display: flex; flex: none; }
.series-offer .covers > * { width: 34px; flex: none; margin-left: -12px; box-shadow: 0 2px 6px rgba(0,0,0,.18); border-radius: 3px; overflow: hidden; }
.series-offer .covers > :first-child { margin-left: 0; }
.series-offer .grow { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.series-offer .btn { flex: none; }

/* ==========================================================================
   HALLOWEEN — while #/halloween is open, body.halloween re-skins the whole site:
   the theme variables flip to night (black, pumpkin, candle gold, slime green),
   plus a few spots that use fixed light colours. Leaves no trace on other pages.
   ========================================================================== */
.nav a.hw-nav { color: #fff4e6; background: linear-gradient(180deg, #e8324f, #9b0d2a); border-radius: 999px; padding: 6px 12px; font-weight: 700; box-shadow: 0 2px 10px rgba(220, 20, 60, .35); }
.nav a.hw-nav:hover, .nav a.hw-nav.active { background: linear-gradient(180deg, #1a1016, #000); color: #ff4d6d; }

body.halloween {
  --canvas: #0d0a0f; --white: #17111a; --card: #1e1521; --card-2: #261a29; --line: #33233a; --line-2: #3e2b45;
  --ink: #f4e9dc; --ink-2: #d6c6b4; --muted: #a8968a;
  --burgundy: #dc143c; --burgundy-2: #e8324f; --burgundy-ink: #2a0008; --rose: #f0627a;
  --gold: #f5b83d; --gold-2: #ffd27a; --gold-soft: #2e2212;
  --sage: #7bd389; --sage-soft: rgba(123, 211, 137, .12); --ember: #ff3b3b;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 14px 28px -6px rgba(0, 0, 0, .75), 0 0 0 1px rgba(220, 20, 60, .18);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(220, 20, 60, .3);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .15);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse at 15% -5%, rgba(220, 20, 60, .16), transparent 45%),
    radial-gradient(ellipse at 90% 25%, rgba(123, 47, 160, .18), transparent 45%),
    radial-gradient(ellipse at 50% 110%, rgba(123, 211, 137, .07), transparent 50%);
}
body.halloween .topbar { background: linear-gradient(90deg, #2a0f3d, #4a0510 50%, #2a0f3d); color: #ffd9df; }
body.halloween .header { background: rgba(13, 10, 15, .9); border-bottom-color: rgba(220, 20, 60, .25); }
body.halloween .search input { background: var(--white); color: var(--ink); }
body.halloween .nav a:hover, body.halloween .nav a.active { background: var(--card-2); color: var(--burgundy); }
body.halloween .btn-primary { color: #fff; box-shadow: 0 0 0 1px rgba(220, 20, 60, .4), 0 4px 16px rgba(200, 10, 45, .35); }
body.halloween .btn-primary:hover { box-shadow: 0 0 0 1px rgba(236, 60, 90, .6), 0 6px 22px rgba(200, 10, 45, .55); }
body.halloween .btn-gold { background: linear-gradient(180deg, #ffd27a, #f5a623); color: #1a0b02; }
body.halloween .btn-ghost { color: var(--ink); }
body.halloween .chip-ember, body.halloween .form-error { background: rgba(255, 59, 59, .12); }
body.halloween .book-card:hover { border-color: rgba(220, 20, 60, .55); box-shadow: 0 0 0 1px rgba(220, 20, 60, .25), 0 14px 30px -8px rgba(200, 10, 45, .3); }
body.halloween .cover.photo { background: #1a1a1a; }
body.halloween .footer { background: #08060a; border-top-color: rgba(220, 20, 60, .2); }
body.halloween .mobile-tabbar { background: #110c14; box-shadow: 0 -6px 18px rgba(0, 0, 0, .6); }
body.halloween .next-up { background: var(--card); }
body.halloween ::selection { background: #dc143c; color: #fff; }

/* ---------- the page ---------- */
.hw-page { position: relative; overflow: hidden; }
.hw-hero { position: relative; text-align: center; padding: 70px 0 120px; border-bottom: 1px solid rgba(220, 20, 60, .2);
  background: radial-gradient(ellipse at 50% 0%, rgba(220, 20, 60, .22), transparent 60%), linear-gradient(180deg, #1a0d22 0%, #0d0a0f 100%); }
.hw-hero .wrap { position: relative; z-index: 2; }
.hw-hero .eyebrow { color: var(--burgundy); }
.hw-hero h1 { font-family: 'Creepster', var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 128px); letter-spacing: .03em; line-height: 1; margin: 14px 0 12px;
  color: #dc143c; text-shadow: 0 0 18px rgba(200, 10, 45, .55), 0 0 60px rgba(200, 10, 45, .3), 0 4px 0 #3a0010; }
.hw-hero p { color: var(--ink-2); font-size: 18px; max-width: 620px; margin: 0 auto; }
.hw-moon { position: absolute; top: -30px; right: 6%; width: 130px; height: 130px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 35%, #fff6d8, #f5d27a 60%, #c9962e); box-shadow: 0 0 60px 20px rgba(245, 210, 122, .25); opacity: .85; }
.hw-jump { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hw-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(220, 20, 60, .45); background: rgba(220, 20, 60, .08); font-weight: 700; font-size: 14px; color: var(--ink); transition: background .15s, transform .15s; }
.hw-jump a:hover { background: rgba(220, 20, 60, .2); transform: translateY(-1px); }
.hw-jump a .ms { color: var(--burgundy); font-size: 19px; }
.hw-jump a b { font-size: 12px; color: #fff; background: var(--burgundy); border-radius: 99px; padding: 2px 8px; }
/* a row of tombstones along the bottom of the hero */
.hw-graves { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 1;
  background:
    radial-gradient(ellipse 34px 46px at 12% 100%, #050306 98%, transparent 100%),
    radial-gradient(ellipse 24px 34px at 19% 100%, #050306 98%, transparent 100%),
    radial-gradient(ellipse 30px 42px at 81% 100%, #050306 98%, transparent 100%),
    radial-gradient(ellipse 22px 30px at 88% 100%, #050306 98%, transparent 100%),
    linear-gradient(180deg, transparent 70%, #050306 70%); }
/* bats drifting across the hero */
.hw-bats { position: absolute; left: 0; right: 0; top: 0; height: 420px; pointer-events: none; z-index: 3; }
.hw-bats i { position: absolute; left: -60px; font-style: normal; font-size: 30px; line-height: 1; opacity: .85; animation: hw-fly 18s linear infinite; filter: grayscale(1) brightness(.25) drop-shadow(0 0 4px rgba(220, 20, 60, .7)); }
.hw-bats i:nth-child(1) { top: 60px; animation-delay: -2s; }
.hw-bats i:nth-child(2) { top: 140px; animation-delay: -7s; animation-duration: 22s; font-size: 20px; }
.hw-bats i:nth-child(3) { top: 230px; animation-delay: -12s; }
.hw-bats i:nth-child(4) { top: 40px; animation-delay: -15s; animation-duration: 26s; }
.hw-bats i:nth-child(5) { top: 300px; animation-delay: -5s; animation-duration: 20s; }
.hw-bats i:nth-child(6) { top: 180px; animation-delay: -9s; animation-duration: 30s; font-size: 22px; }
.hw-bats i:nth-child(7) { top: 100px; animation-delay: -20s; animation-duration: 24s; }
@keyframes hw-fly { 0% { left: -60px; transform: translateY(0); } 25% { transform: translateY(30px); } 50% { transform: translateY(-10px); } 75% { transform: translateY(25px); } 100% { left: calc(100% + 60px); transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hw-bats { display: none; } }
/* shelf banner: blood drips, cobweb, glowing medallion and a big faded icon behind the title */
.hw-shelf-head { position: relative; display: flex; align-items: center; gap: 26px; margin-bottom: 30px; padding: 40px 36px 32px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(ellipse at 0% 50%, rgba(220, 20, 60, .22), transparent 55%), linear-gradient(135deg, #1d0f1f 0%, #120a14 60%, #1a0710 100%);
  border: 1px solid rgba(220, 20, 60, .35); box-shadow: inset 0 0 60px rgba(0, 0, 0, .6), 0 18px 40px -18px rgba(200, 10, 45, .45); }
.hw-drips { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(180deg, #7a0018, #b0102f); z-index: 1; }
.hw-drips i { position: absolute; top: 4px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #b0102f, #dc143c);
  box-shadow: inset -1px -2px 2px rgba(0, 0, 0, .35); animation: hw-drip 6s ease-in-out infinite; transform-origin: top; }
.hw-drips i:nth-child(3n) { animation-delay: -2s; }
.hw-drips i:nth-child(3n+1) { animation-delay: -4s; }
@keyframes hw-drip { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.25); } }
.hw-web { position: absolute; top: 0; right: 0; width: 150px; height: 150px; color: rgba(244, 233, 220, .16); z-index: 0; }
.hw-watermark { position: absolute; right: 120px; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 230px !important; color: rgba(220, 20, 60, .07); z-index: 0; pointer-events: none; }
.hw-medal { position: relative; z-index: 1; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a0c1a, #12060c 70%); border: 2px solid rgba(220, 20, 60, .6);
  box-shadow: 0 0 0 6px rgba(220, 20, 60, .1), 0 0 28px rgba(220, 20, 60, .55), inset 0 0 18px rgba(0, 0, 0, .8); }
.hw-medal .ms { font-size: 46px; color: #ff4d6d; text-shadow: 0 0 14px rgba(255, 77, 109, .8); }
.hw-shelf-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hw-shelf-txt .eyebrow { color: var(--sage); letter-spacing: .22em; }
.hw-shelf-txt h2 { font-family: 'Creepster', var(--serif); font-weight: 400; letter-spacing: .04em; font-size: clamp(38px, 5vw, 64px); line-height: 1; margin: 8px 0 10px;
  color: #dc143c; text-shadow: 0 0 16px rgba(220, 20, 60, .55), 0 3px 0 #3a0010; }
.hw-shelf-txt p { color: var(--ink-2); max-width: 560px; font-size: 15.5px; }
.hw-shelf-side { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hw-count { text-align: center; line-height: 1; }
.hw-count b { display: block; font: 400 52px/1 'Creepster', var(--serif); color: var(--ink); text-shadow: 0 0 12px rgba(220, 20, 60, .6); }
.hw-count span { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hw-shelf-side .btn-ghost { border-color: rgba(220, 20, 60, .6); }
.hw-shelf-side .btn-ghost:hover { background: rgba(220, 20, 60, .15); }
@media (prefers-reduced-motion: reduce) { .hw-drips i { animation: none; } }
@media (max-width: 639px) {
  .hw-shelf-head { flex-wrap: wrap; gap: 16px; padding: 34px 20px 22px; }
  .hw-medal { width: 64px; height: 64px; }
  .hw-medal .ms { font-size: 32px; }
  .hw-watermark { right: -20px; font-size: 160px !important; }
  .hw-shelf-side { flex-direction: row; width: 100%; justify-content: space-between; }
  .hw-count { display: flex; align-items: baseline; gap: 8px; }
  .hw-count b { font-size: 36px; }
}
/* "Add to satchel" bleeds on the Halloween page: drips seep from the bottom edge on hover,
   and a press splashes droplets that fall away (spawned by halloween.after in views.js) */
.hw-page .book-card [data-add] { position: relative; overflow: visible; isolation: isolate; }
.hw-page .book-card [data-add]::after { content: ""; position: absolute; left: 4%; right: 4%; top: calc(100% - 4px); height: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(#a50d2c, #a50d2c) 0 0 / 100% 5px,
    radial-gradient(ellipse 8px 14px at 7% 4px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 6px 22px at 19% 4px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 9px 11px at 31% 4px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 7px 28px at 44% 4px, #a50d2c 96%, transparent),
    radial-gradient(circle 5px at 44% 34px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 8px 16px at 58% 4px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 6px 24px at 72% 4px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 9px 12px at 85% 4px, #a50d2c 96%, transparent),
    radial-gradient(ellipse 6px 19px at 95% 4px, #a50d2c 96%, transparent);
  background-repeat: no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: height .5s cubic-bezier(.3, .7, .3, 1); }
.hw-page .book-card [data-add]:hover::after, .hw-page .book-card [data-add]:focus-visible::after { height: 40px; animation: hw-ooze 2.4s ease-in-out .5s infinite; }
@keyframes hw-ooze { 0%, 100% { height: 40px; } 50% { height: 46px; } }
.hw-page .book-card [data-add]:hover { background: linear-gradient(180deg, #dc143c, #8f0b26); box-shadow: 0 0 0 1px rgba(255, 77, 109, .6), 0 0 22px rgba(220, 20, 60, .65); }
.hw-page .book-card [data-add]:active { transform: scale(.97); }
.hw-blood { position: fixed; z-index: 120; pointer-events: none; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #ff4d6d, #b0102f 55%, #6a0018); box-shadow: 0 0 6px rgba(220, 20, 60, .6);
  animation: hw-splat .9s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes hw-splat {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  35% { transform: translate(var(--dx), var(--up)) scale(1); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.3), var(--fall)) scale(.8, 1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hw-page .book-card [data-add]::after { animation: none; } .hw-blood { display: none; } }
.hw-bundle { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, #2a0f3d, #4a0510); border: 1px solid rgba(220, 20, 60, .35); box-shadow: 0 0 40px -10px rgba(200, 10, 45, .35); }
.hw-bundle h3 { font-size: 26px; margin: 6px 0; }
.hw-bundle p { color: var(--ink-2); max-width: 560px; }
@media (max-width: 639px) {
  .hw-hero { padding: 44px 0 90px; }
  .hw-moon { width: 80px; height: 80px; top: -20px; }
  .hw-hero p { font-size: 16px; }
  .hw-bundle { padding: 22px; }
}

/* Server-rendered copy of the page (for search engines & link previews), shown until the app replaces it */
.seo-ssr { padding: 28px 20px 60px; color: var(--ink, #222); line-height: 1.6; max-width: 900px; }
.seo-ssr h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 4vw, 38px); margin: 8px 0 10px; }
.seo-ssr h2 { font-size: 18px; margin: 26px 0 8px; }
.seo-ssr img { max-width: 220px; height: auto; border-radius: 6px; display: block; margin: 12px 0; }
.seo-ssr-crumbs { font-size: 13px; opacity: .7; }
.seo-ssr-list { columns: 2 260px; padding-left: 18px; }
.seo-ssr-list span { opacity: .6; font-size: 13px; }

/* ---------- Starfall: the A Court of Thorns and Roses book pages (public/js/book-starfall.js) ---------- */
.pdp-media.sf-night { background: linear-gradient(180deg, #0b1038 0%, #171a5c 52%, #3a2d78 100%); border-color: #2b2a70; overflow: hidden; isolation: isolate; cursor: crosshair; }
.pdp-media.sf-night .cover { position: relative; z-index: 2; cursor: default; box-shadow: 18px 22px 44px -12px rgba(0, 0, 10, .75), 0 0 60px -10px rgba(94, 242, 208, .35); }
.sf-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sf-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40%; z-index: 1; pointer-events: none; }
.sf-hills circle, .sf-ov-hills circle { filter: drop-shadow(0 0 2px #ffcf7a); }
.sf-flick { animation: sf-flick 3.2s ease-in-out infinite; }
@keyframes sf-flick { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 60% { opacity: .9; } }

/* the floating star button */
.sf-fab { position: fixed; left: 50%; bottom: 22px; z-index: 880; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, 30px) scale(.6); opacity: 0; pointer-events: none; transition: transform .55s cubic-bezier(.2, 1.5, .4, 1), opacity .35s ease; }
.sf-fab.in { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.sf-count { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 var(--sans, system-ui); letter-spacing: .02em; color: #dfe4ff; background: rgba(16, 18, 62, .82); border: 1.5px solid #6c78ff; white-space: nowrap; }
.sf-count[hidden] { display: none; }
.sf-count span { color: #8f9bff; }
.sf-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #7d88ff 0%, #5563f5 60%, #4652e0 100%); box-shadow: 0 8px 24px rgba(40, 46, 160, .45), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s ease, box-shadow .15s ease; }
.sf-btn::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 242, 208, .55), rgba(94, 242, 208, 0) 70%); animation: sf-pulse 2.4s ease-in-out infinite; }
.sf-btn svg { position: relative; width: 26px; height: 26px; fill: #b9fff0; filter: drop-shadow(0 0 4px #5ef2d0) drop-shadow(0 0 10px rgba(94, 242, 208, .7)); animation: sf-twirl 6s ease-in-out infinite; }
.sf-btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 12px 30px rgba(40, 46, 160, .55); }
.sf-btn:active { transform: scale(.94); }
.sf-btn:focus-visible, .sf-round:focus-visible { outline: 3px solid #9fe8ff; outline-offset: 3px; }
@keyframes sf-pulse { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes sf-twirl { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(1.12); } }

/* the full-screen Starfall */
.sf-ov { position: fixed; inset: 0; z-index: 1200; background: linear-gradient(180deg, rgba(8, 12, 52, .94) 0%, rgba(20, 22, 92, .91) 58%, rgba(72, 48, 128, .92) 100%); opacity: 0; transition: opacity .45s ease; cursor: crosshair; touch-action: manipulation; }
.sf-ov.in { opacity: 1; }
.sf-ov-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.sf-ov-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 36vh; z-index: 1; pointer-events: none; transform: translateY(40px); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.sf-ov.in .sf-ov-hills { transform: none; }
.sf-ov-cap { position: absolute; left: 0; right: 0; top: 9vh; z-index: 3; text-align: center; font-family: var(--serif, Georgia, serif); font-style: italic; font-size: 15px; letter-spacing: .14em; color: rgba(225, 235, 255, .85); pointer-events: none; opacity: 0; animation: sf-cap 5.5s ease .5s forwards; }
.sf-ov-cap span { color: #5ef2d0; font-style: normal; }
@keyframes sf-cap { 0% { opacity: 0; transform: translateY(6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sf-ov-bar { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 4; transform: translateX(-50%); display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; align-items: center; justify-items: center; column-gap: 14px; row-gap: 6px; }
.sf-ov-bar .sf-count { grid-column: 2; grid-row: 1; }
.sf-ov-bar .sf-round, .sf-ov-bar .sf-btn { grid-row: 2; }
.sf-round { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: #5563f5; box-shadow: 0 6px 18px rgba(20, 24, 120, .45); transition: transform .15s ease; }
.sf-round:hover { transform: scale(1.08); }
.sf-round .ms { font-size: 22px; }
html.sf-open, html.sf-open body { overflow: hidden; }
html.sf-open .sf-fab { opacity: 0; pointer-events: none; }

@media (max-width: 1023px) { .pdp-media.sf-night { position: relative; top: auto; } } /* the panel is static there: keep the sky inside it */
@media (max-width: 639px) {
  /* phones: bottom-left corner (WhatsApp is bottom-right), so it never sits on the title or price */
  .sf-fab { left: 14px; bottom: calc(58px + 62px + 14px + env(safe-area-inset-bottom, 0px)); transform: translate(0, 30px) scale(.6); align-items: flex-start; }
  .sf-fab.in { transform: none; }
  .sf-fab .sf-btn { width: 50px; height: 50px; }
  .sf-fab .sf-btn svg { width: 22px; height: 22px; }
  .sf-fab .sf-count { margin-left: -2px; }
  .sf-ov-hills { height: 30vh; }
  .sf-ov-cap { font-size: 13px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-btn::before, .sf-btn svg, .sf-flick, .sf-ov-cap { animation: none; }
  .sf-ov-cap { opacity: 1; }
}
html.fx-lite .sf-flick, html.fx-lite .sf-btn svg { animation: none; }

/* ---------- Home: A Court of Thorns and Roses block (views.js HOME.acotar; sky from book-starfall.js) ---------- */
.saga-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; padding: 44px 48px 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; color: #eef0ff; background: linear-gradient(180deg, #0b1038 0%, #161a5a 55%, #3a2d78 100%); border: 1px solid #2b2a70; box-shadow: 0 24px 50px -24px rgba(16, 18, 70, .55); cursor: crosshair; }
.saga-band .sf-hills { height: 46%; }
.saga-copy, .saga-rail { position: relative; z-index: 2; cursor: default; }
.saga-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9fe8ff; }
.saga-eyebrow span { color: #5ef2d0; }
.saga-band h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin: 12px 0 10px; color: #fff; text-shadow: 0 0 24px rgba(94, 242, 208, .25); }
.saga-band p { color: rgba(225, 230, 255, .82); font-size: 15px; max-width: 46ch; margin: 0; }
.saga-deal { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: rgba(10, 12, 50, .55); border: 1px solid rgba(124, 136, 255, .45); backdrop-filter: blur(3px); max-width: 420px; }
.saga-price { display: flex; align-items: baseline; gap: 10px; }
.saga-price b { font-family: var(--serif); font-size: 30px; color: #fff; }
.saga-price s { color: rgba(225, 230, 255, .55); font-size: 15px; }
.saga-terms { font-size: 13px; color: #b9fff0; margin-top: 2px; }
.saga-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.saga-all { background: transparent; color: #fff; border: 1.5px solid rgba(200, 210, 255, .6); }
.saga-all:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.saga-rail { display: flex; align-items: flex-end; justify-content: center; padding-top: 18px; }
.saga-book { position: relative; flex: 0 1 132px; min-width: 0; margin-left: -18px; transition: transform .25s ease; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); }
.saga-book:first-child { margin-left: 0; }
.saga-book .cover { box-shadow: 10px 14px 26px -8px rgba(0, 0, 10, .7); }
.saga-book:nth-child(1) { --r: -6deg; --y: 18px; } .saga-book:nth-child(2) { --r: -3.5deg; --y: 8px; } .saga-book:nth-child(3) { --r: -1deg; --y: 2px; }
.saga-book:nth-child(4) { --r: 1deg; --y: 2px; } .saga-book:nth-child(5) { --r: 3.5deg; --y: 8px; } .saga-book:nth-child(6) { --r: 6deg; --y: 18px; }
.saga-book:hover { transform: translateY(-10px) rotate(0); z-index: 3; }
.saga-book.is-new { flex-basis: 168px; z-index: 2; }
.saga-book.is-new .cover { box-shadow: 0 0 0 2px #5ef2d0, 0 0 38px -2px rgba(94, 242, 208, .6), 10px 18px 30px -8px rgba(0, 0, 10, .8); }
.saga-no { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #dfe4ff; background: rgba(16, 18, 62, .9); border: 1px solid #6c78ff; white-space: nowrap; }
.saga-book.is-new .saga-no { color: #0b1038; background: #5ef2d0; border-color: #5ef2d0; text-transform: uppercase; }
@media (max-width: 1023px) {
  .saga-band { grid-template-columns: 1fr; padding: 32px 28px 56px; }
}
@media (max-width: 639px) {
  .saga-band { padding: 26px 18px 48px; gap: 22px; border-radius: 14px; }
  /* phones: the covers go on top, all of them in one row (no sideways scrolling, the newest stays in view) */
  .saga-rail { order: -1; padding: 6px 0 14px; }
  .saga-book { flex: 1 1 0; margin-left: -7px; }
  .saga-book.is-new { flex: 1.35 1 0; }
  .saga-no { font-size: 10px; padding: 1px 6px; bottom: -10px; }
  .saga-ctas .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .saga-book { transition: none; } }

a.saga-deal { display: block; color: inherit; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
a.saga-deal:hover { border-color: #5ef2d0; background: rgba(10, 12, 50, .7); }

/* Checkout: paid premium packaging (photo + price, tick to add) */
.pack-opt { display: grid; grid-template-columns: auto 72px 1fr auto; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 10px 14px 10px 12px;
  border: 1.5px solid var(--line, #e3d9c6); border-radius: 12px; background: var(--white, #fff); cursor: pointer; transition: border-color .15s, background .15s; }
.pack-opt:hover { border-color: var(--gold, #c59b27); }
.pack-opt.on { border-color: var(--gold, #c59b27); background: var(--gold-soft); }
.pack-opt input { width: 20px; height: 20px; accent-color: var(--burgundy); margin: 0; }
.pack-opt .pack-img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #f3ead9; }
.pack-opt .pack-txt { display: grid; gap: 2px; min-width: 0; }
.pack-opt .pack-txt b { font-size: 15px; }
.pack-opt .pack-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pack-opt .pack-price { font-weight: 800; color: var(--burgundy); white-space: nowrap; }
.pack-opt .pack-price { text-align: right; }
.pack-opt .pack-price small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pack-count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; padding: 10px 14px; border: 1.5px solid var(--gold, #c59b27); border-top: 1px dashed var(--gold, #c59b27); border-radius: 0 0 12px 12px; background: var(--gold-soft); font-size: 14px; }
.pack-opt:has(+ .pack-count) { border-radius: 12px 12px 0 0; border-bottom: 0; margin-bottom: 0; }
.pack-count .grow { flex: 1 1 180px; font-weight: 600; }
.pack-count small { font-size: 12.5px; }
.pack-count .qty-step { display: inline-flex; align-items: center; gap: 4px; background: var(--white, #fff); border: 1px solid var(--line, #e3d8c6); border-radius: 999px; padding: 2px; }
.pack-count .qty-step button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--burgundy); display: grid; place-items: center; cursor: pointer; }
.pack-count .qty-step button:hover:not(:disabled) { background: var(--gold-soft); }
.pack-count .qty-step button:disabled { opacity: .35; cursor: default; }
.pack-count .qty-step b { min-width: 22px; text-align: center; font-size: 15px; }
@media (max-width: 420px) { .pack-opt { grid-template-columns: auto 60px 1fr; } .pack-opt .pack-img { width: 60px; height: 60px; } .pack-opt .pack-price { grid-column: 3; } }
/* tap the packaging photo to see it large */
.pack-opt .pack-zoom { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; line-height: 0; }
.pack-opt .pack-zoom .ms { position: absolute; right: 4px; bottom: 4px; font-size: 18px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--burgundy); box-shadow: 0 1px 4px rgba(0,0,0,.25); line-height: 1; }
.pack-opt .pack-zoom:hover .pack-img { filter: brightness(1.05); }
.modal .pack-big { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin: 6px 0 4px; }

/* ---------- installable shop app (js/pwa.js) ---------- */
.app-card { display: flex; gap: 16px; align-items: center; border: 1.5px solid var(--gold); background: linear-gradient(120deg, #fff 0%, #fbf3df 100%); }
.app-card h3 { margin: 0 0 4px; font-size: 18px; }
.app-card p { margin: 0; }
.app-card-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 16px rgba(43,30,22,.18); flex: none; }
.app-card-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--burgundy); color: var(--gold-2); flex: none; }
.app-card-ico .ms { font-size: 28px; }
.app-card-acts { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
@media (max-width: 639px) {
  .app-card { flex-wrap: wrap; }
  .app-card .grow { flex: 1 1 calc(100% - 72px); }
  .app-card-acts, .app-card > .btn { width: 100%; }
  .app-card-acts .btn, .app-card > .btn { width: 100%; justify-content: center; }
}
.app-sheet { text-align: center; }
.app-sheet h2 { font-size: 24px; margin: 10px 0 6px; }
.app-sheet-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 22px rgba(43,30,22,.22); }
.app-sheet-arrow { margin-top: 14px; color: var(--gold); animation: app-bob 1.2s ease-in-out infinite; }
.app-sheet-arrow .ms { font-size: 34px; }
@keyframes app-bob { 50% { transform: translateY(8px); } }
.app-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; text-align: left; counter-reset: none; }
.app-steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.45; }
.app-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--burgundy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.ios-ico { width: 22px; height: 22px; vertical-align: -5px; color: #0a7aff; display: inline-block; }
.btn-block { width: 100%; justify-content: center; }
.app-page h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 10px 0 14px; }
.app-page .lead { font-size: 18px; max-width: 540px; }
.app-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.app-guide h3 { margin: 0; font-size: 17px; }
.app-installed { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: #e6f0ea; color: var(--sage); font-weight: 700; }
.app-phone { justify-self: center; width: 270px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 11px; background: #1d1d1d; box-shadow: 0 30px 60px rgba(43,30,22,.28), inset 0 0 0 2px #3a3a3a; }
.app-phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; padding: 46px 12px 0;
  background: radial-gradient(circle at 30% 20%, #8d4a56 0%, #4a1521 45%, #2b1e16 100%); }
.app-phone-time { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 13px; }
.app-notif { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 16px; background: rgba(250,246,238,.92); backdrop-filter: blur(6px); margin-bottom: 8px; font-size: 11.5px; line-height: 1.35; color: var(--ink);
  animation: app-notif-in .7s cubic-bezier(.2,.8,.2,1) both .3s; }
.app-notif.d2 { animation-delay: 1.4s; }
.app-notif img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.app-notif b { display: block; font-size: 12px; }
@keyframes app-notif-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.app-phone-icon { position: absolute; bottom: 34px; left: 0; right: 0; display: grid; justify-items: center; gap: 6px; color: #fff; font-size: 11px; font-weight: 600; }
.app-phone-icon img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.app-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.app-perk .ms { font-size: 30px; color: var(--gold); }
.app-perk h3 { font-size: 17px; margin: 8px 0 6px; }
.app-perk p { margin: 0; }
@media (max-width: 1023px) { .app-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .app-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .app-phone { width: 220px; }
  .app-perks { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .app-notif, .app-sheet-arrow { animation: none; } }
/* inside the installed app: no "get the app" prompts, room for the iPhone home bar */
html.is-app .mobile-tabbar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }

/* app: first-launch welcome */
.app-welcome { text-align: center; }
.app-welcome h2 { font-size: 26px; margin: 10px 0 4px; }
.app-welcome-list { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; gap: 10px; text-align: left; }
.app-welcome-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.app-welcome-list .ms { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--burgundy); color: var(--gold-2); font-size: 21px; flex: none; }
.app-welcome-list b { display: block; font-size: 14.5px; }
.app-welcome-list small { color: var(--muted); font-size: 13px; }
.app-welcome-deals { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.app-welcome-deals input { margin-top: 3px; accent-color: var(--burgundy); width: 17px; height: 17px; flex: none; }
/* app: notification switch on the account page */
.app-prefs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.app-prefs > .ms { color: var(--sage); font-size: 26px; }
.app-prefs b, .app-prefs small { display: block; }
.app-switch { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.app-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.app-switch span { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.app-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.app-switch input:checked + span { background: var(--sage); }
.app-switch input:checked + span::after { transform: translateX(18px); }
.app-switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* app: iPhone step-by-step tutorial */
.app-sheet-tut h2 { margin-top: 0; }
.app-tut { overflow: hidden; margin-top: 14px; text-align: center; }
.app-tut-track { display: flex; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.app-tut-step { flex: 0 0 100%; padding: 0 4px; box-sizing: border-box; }
.app-tut-step h3 { font-size: 20px; margin: 6px 0 4px; }
.app-tut-step p { margin: 0 auto; max-width: 330px; font-size: 14.5px; }
.app-tut-count { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.app-tut-note { margin-top: 10px !important; padding: 8px 10px; border-radius: 10px; background: #fff7e1; font-size: 13px !important; color: #6b5300; display: flex; gap: 6px; align-items: flex-start; text-align: left; }
.app-tut-note .ms { font-size: 17px; }
.app-tut-nav .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.app-tut-nav { padding: 2px; }
.app-tut-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.app-tut-dots { display: flex; gap: 6px; }
.app-tut-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; transition: all .2s; }
.app-tut-dots i.on { width: 22px; border-radius: 4px; background: var(--burgundy); }
.app-tut-art { display: grid; place-items: center; margin-bottom: 12px; padding-top: 8px; }
/* drawings of iPhone screens */
.mk-screen { position: relative; width: 220px; height: 250px; border-radius: 26px; border: 7px solid #1d1d1d; background: #f2f2f7; overflow: hidden; font-family: -apple-system, system-ui, sans-serif; text-align: left; box-shadow: 0 14px 30px rgba(43,30,22,.18); }
.mk-hot { position: relative; animation: mk-pulse 1.6s ease-in-out infinite; }
@keyframes mk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(197,155,39,.8); } 50% { box-shadow: 0 0 0 7px rgba(197,155,39,0); } }
.mk-page { background: #fff; }
.mk-site { padding: 16px 14px; display: grid; gap: 9px; }
.mk-site svg, .mk-site img { width: 38px; height: 38px; }
.mk-site i { display: block; height: 10px; border-radius: 5px; background: #eee6d6; }
.mk-site i.s { width: 60%; }
.mk-safari { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(248,248,250,.97); border-top: 1px solid #ddd; padding: 7px 8px 9px; }
.mk-url { background: #e9e9ee; border-radius: 9px; font-size: 10.5px; padding: 6px 8px; text-align: center; color: #333; }
.mk-url .ms { font-size: 11px; vertical-align: -1px; }
.mk-bar { display: flex; justify-content: space-around; align-items: center; margin-top: 7px; color: #0a7aff; }
.mk-bar > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.mk-bar .ms { font-size: 20px; }
.mk-bar .ios-ico { width: 21px; height: 21px; vertical-align: 0; }
.mk-sheet { padding: 10px 9px; }
.mk-sheet-head { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 11px; padding: 7px; margin-bottom: 8px; }
.mk-sheet-head img { width: 30px; height: 30px; border-radius: 7px; }
.mk-sheet-head b, .mk-add-app b { display: block; font-size: 11.5px; color: #111; }
.mk-sheet-head small, .mk-add-app small { font-size: 9.5px; color: #8a8a8e; }
.mk-row { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 7px 10px; font-size: 11.5px; color: #111; border-bottom: 1px solid #eee; }
.mk-row:nth-child(2) { border-radius: 11px 11px 0 0; }
.mk-row:last-child { border-radius: 0 0 11px 11px; border-bottom: 0; }
.mk-row .ms { font-size: 16px; color: #333; }
.mk-row .ios-ico { width: 17px; height: 17px; color: #333; vertical-align: 0; }
.mk-row.mk-hot { z-index: 1; border-radius: 9px; background: #fffbe9; font-weight: 700; }
.mk-add { background: #f2f2f7; }
.mk-add-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; font-size: 11px; color: #0a7aff; background: #f8f8fa; border-bottom: 1px solid #ddd; }
.mk-add-head b { color: #111; font-size: 11px; }
.mk-add-btn { font-weight: 700; padding: 3px 7px; border-radius: 7px; }
.mk-add-app { display: flex; gap: 9px; align-items: center; margin: 14px 10px 10px; background: #fff; border-radius: 11px; padding: 9px; }
.mk-add-app img { width: 40px; height: 40px; border-radius: 9px; }
.mk-add-toggle { display: flex; justify-content: space-between; align-items: center; margin: 0 10px; background: #fff; border-radius: 11px; padding: 9px 10px; font-size: 11px; color: #111; }
.mk-add-toggle i { width: 32px; height: 19px; border-radius: 10px; background: #34c759; position: relative; }
.mk-add-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.mk-home { background: linear-gradient(160deg, #8d4a56, #2b1e16); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 14px; align-content: start; }
.mk-home > i { width: 38px; height: 38px; border-radius: 10px; background: hsl(var(--h) 35% 70% / .55); justify-self: center; }
.mk-home-app { justify-self: center; display: grid; justify-items: center; gap: 3px; border-radius: 12px; }
.mk-home-app img { width: 38px; height: 38px; border-radius: 10px; }
.mk-home-app { padding: 3px 2px; }
.mk-home-app small { color: #fff; font-size: 8.5px; white-space: nowrap; }
.mk-alert-bg { background: linear-gradient(160deg, #8d4a56, #2b1e16); display: grid; place-items: center; padding: 14px; }
.mk-alert { width: 100%; background: rgba(242,242,247,.96); border-radius: 13px; text-align: center; overflow: hidden; }
.mk-alert b { display: block; font-size: 12px; padding: 12px 12px 4px; color: #111; }
.mk-alert small { display: block; font-size: 10px; color: #555; padding: 0 12px 10px; }
.mk-alert-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ccc; }
.mk-alert-btns span { padding: 9px; font-size: 12px; color: #0a7aff; }
.mk-alert-btns span:first-child { border-right: 1px solid #ccc; }
.mk-alert-btns .mk-hot { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mk-hot { animation: none; box-shadow: 0 0 0 3px rgba(197,155,39,.8); } .app-tut-track { transition: none; } }

/* app: "Get the app" banner (phones, after some browsing) */
.app-banner { position: fixed; left: 10px; right: 10px; z-index: 85; bottom: calc(58px + 10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 10px; border-radius: 16px;
  background: linear-gradient(120deg, #fff, #fbf3df); border: 1px solid var(--gold); box-shadow: 0 14px 36px rgba(43,30,22,.22);
  opacity: 0; transform: translateY(30px); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.9,.3,1.1); }
.app-banner.show { opacity: 1; transform: none; }
.app-banner img { width: 46px; height: 46px; border-radius: 12px; flex: none; box-shadow: 0 4px 10px rgba(43,30,22,.18); }
.app-banner-txt { flex: 1; min-width: 0; line-height: 1.3; }
.app-banner-txt b { display: block; font-size: 14.5px; color: #2b1e16; font-family: inherit; }
.app-banner-txt small { display: block; font-size: 12.5px; color: #6b5a4d; }
/* fixed colours: the themed category pages restyle the shared tokens and buttons */
.app-banner .btn, .app-banner .btn:hover { flex: none; background: #4a1521; color: #fff; border-color: #4a1521; box-shadow: none; }
.app-banner-x { color: #7c6c5e !important; }
.app-banner-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.app-banner-x .ms { font-size: 19px; }
@media (min-width: 640px) { .app-banner { left: auto; right: 20px; bottom: 20px; width: 400px; } }
body.has-app-banner .wa-float { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .app-banner { transition: opacity .2s; transform: none; } }

/* app: always-findable entry points (phones without the app) */
.app-get[hidden] { display: none !important; }
.header-main .app-get { background: linear-gradient(135deg, #e8c46a, #c59b27); color: #2b1e16; border-radius: 50%; box-shadow: 0 3px 10px rgba(197,155,39,.45); }
.header-main .app-get .ms { font-size: 21px; }
@media (max-width: 389px) { .header-main .app-get { height: 36px; } } /* stays a circle on narrow phones */
.cat-app { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 12px; border-radius: 14px; background: linear-gradient(120deg, #4a1521, #2b1e16); color: #fff !important; text-decoration: none; }
.cat-app img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.cat-app span { flex: 1; min-width: 0; line-height: 1.3; }
.cat-app b { display: block; font-size: 14.5px; color: #fff; }
.cat-app small { display: block; font-size: 12px; color: #e8c46a; }
.cat-app > .ms { color: #e8c46a; }
/* account: menu item + featured card */
.acct-side a.acct-app { background: linear-gradient(120deg, #fbf3df, #f3e2b4); color: #4a1521; font-weight: 700; border: 1px solid #c59b27; }
.acct-side a.acct-app .ms { color: #c59b27; }
.acct-side a.acct-app .n { background: #4a1521; color: #e8c46a; }
.app-feature { background: radial-gradient(circle at 85% 0%, #8d4a56 0%, #4a1521 45%, #2b1e16 100%); color: #faf6ee; border: 0; position: relative; overflow: hidden; }
.app-feature-main { display: flex; gap: 16px; align-items: center; }
.app-feature-main img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.35); flex: none; }
.app-feature h3 { color: #fff; font-size: 22px; margin: 4px 0 2px; }
.app-feature p { margin: 0; color: rgba(250,246,238,.82); font-size: 14px; }
.app-feature-tag { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2b1e16; background: #e8c46a; padding: 3px 8px; border-radius: 999px; }
.app-feature-tag .ms { font-size: 14px; }
.app-feature-perks { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #faf6ee; }
.app-feature-perks li { display: flex; gap: 6px; align-items: center; }
.app-feature-perks .ms { color: #e8c46a; font-size: 19px; }
.app-feature .btn-gold, .app-feature .btn-gold:hover { color: #2b1e16; }
/* banner: "Later" instead of a small x right next to "Get" */
.app-banner .app-banner-x { width: auto; height: auto; padding: 6px 4px; border-radius: 8px; font: 600 12.5px/1 inherit; color: #7c6c5e !important; text-decoration: underline; }

/* app tutorial: Android drawings (Chrome / Samsung Internet) */
.mk-android { font-family: Roboto, system-ui, sans-serif; border-radius: 22px; }
.mk-cbar { display: flex; align-items: center; gap: 6px; padding: 8px 6px 8px 8px; background: #f1f3f4; border-bottom: 1px solid #dadce0; }
.mk-curl { flex: 1; min-width: 0; background: #fff; border-radius: 16px; font-size: 10.5px; padding: 6px 9px; color: #333; white-space: nowrap; overflow: hidden; }
.mk-curl .ms { font-size: 11px; vertical-align: -1px; }
.mk-dots { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #444; }
.mk-dots .ms { font-size: 20px; }
.mk-sbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 8px 4px 10px; background: #fafafa; border-top: 1px solid #ddd; color: #444; }
.mk-sbar > span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.mk-sbar .ms { font-size: 20px; }
.mk-and-dialog { margin: 40px 12px 0; background: #fff; border-radius: 18px; padding: 14px 12px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.mk-and-dialog > b { display: block; font-size: 13px; color: #111; margin-bottom: 4px; }
.mk-and-dialog .mk-add-app { margin: 6px 0 10px; padding: 6px 0; background: none; }
.mk-and-btns { display: flex; justify-content: flex-end; gap: 6px; font-size: 11.5px; font-weight: 600; color: #1a73e8; }
.mk-and-btns span { padding: 5px 8px; border-radius: 14px; }
.mk-alert-and { text-align: center; padding: 14px 12px 10px; border-radius: 22px; background: #f7f2fa; }
.mk-alert-and > .ms { color: #6750a4; font-size: 22px; }
.mk-alert-and b { padding: 6px 4px 10px; font-size: 12px; }
.mk-alert-and-btns { display: grid; gap: 6px; }
.mk-alert-and-btns span { padding: 8px; border-radius: 16px; font-size: 11.5px; font-weight: 600; color: #6750a4; background: #fff; }

/* ---------- reading tracker (account → My shelf) ---------- */
.rd-cover { flex: none; width: 76px; display: block; position: relative; }
.rd-cover .cover { width: 100%; }
.rd-nocover { aspect-ratio: 2 / 3; border-radius: 6px; background: var(--card); display: grid; place-items: center; color: var(--muted); }
.rd-same { background: none; border: 0; padding: 0; margin-top: 6px; font: 600 12px/1.3 var(--sans); color: var(--muted); text-decoration: underline; cursor: pointer; text-align: left; }

/* today: the daily question, the streak, the last 7 days, then the reader's numbers */
.rd-today { padding: 0; overflow: hidden; background: linear-gradient(135deg, #fff7e2, #f2deb2); border-color: rgba(197,155,39,.45); }
.rd-today-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; }
.rd-today-top .grow { flex: 1; min-width: 220px; }
.rd-today h2 { font-size: 26px; margin: 4px 0 6px; }
.rd-today p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.rd-today .eyebrow { color: #8a6a12; }
.rd-flame { position: relative; flex: none; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #a83a4c, #4a1521 72%); border: 2px solid var(--gold); box-shadow: 0 6px 16px rgba(74,21,33,.32), inset 0 1px 0 rgba(255,255,255,.2); }
.rd-flame .ms { position: absolute; top: -9px; right: -5px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: linear-gradient(180deg, #e8c46a, #c59b27); color: var(--burgundy-ink); box-shadow: 0 2px 6px rgba(43,30,22,.3); }
.rd-flame b { font: 700 32px/1 var(--serif); color: var(--gold-2); }
.rd-today.done .rd-flame { background: radial-gradient(circle at 35% 28%, #4f7a68, #2d4a3e 72%); }
.rd-week-box { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rd-week { display: flex; gap: 8px; }
.rd-week span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rd-week small { font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8a7350; }
.rd-week i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(138,106,18,.45); background: rgba(255,255,255,.45); }
.rd-week .on i { border: 0; background: linear-gradient(180deg, #e8c46a, #c59b27); color: var(--burgundy-ink); box-shadow: var(--emboss); }
.rd-week .on i .ms { font-size: 17px; }
.rd-week .today small { color: var(--burgundy); }
.rd-week .today:not(.on) i { border: 2px solid var(--burgundy); background: var(--white); }
.rd-week-box .rd-same { margin: 0; color: var(--burgundy); }
.rd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255,253,248,.72); border-top: 1px solid rgba(197,155,39,.35); }
.rd-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 24px; border-left: 1px solid rgba(197,155,39,.28); }
.rd-stats > div:first-child { border-left: 0; }
.rd-stats .ms { grid-row: 1 / 3; font-size: 26px; color: var(--gold); }
.rd-stats b { font: 700 26px/1 var(--serif); color: var(--burgundy); }
.rd-stats small { font: 700 10.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* a book in progress; .lead = the current read */
.rd-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: 'cover main ring' 'cover ctl ring'; column-gap: 22px; row-gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); margin-bottom: 14px; }
.rd-card:last-child { margin-bottom: 0; }
.rd-card > .rd-cover { grid-area: cover; width: 100%; align-self: center; }
.rd-main { grid-area: main; min-width: 0; align-self: end; display: flex; flex-direction: column; gap: 4px; }
.rd-main h3 { font-size: 20px; line-height: 1.2; }
.rd-by { color: var(--muted); font-size: 13px; }
.rd-where { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.rd-where b { font-weight: 700; }
.rd-where span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rd-where span::before { content: '·'; margin-right: 12px; }
.rd-main .progress { height: 8px; margin-top: 4px; }
.rd-ring { grid-area: ring; position: relative; width: 116px; height: 116px; flex: none; }
.rd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd-ring circle { fill: none; stroke-width: 9; }
.rd-ring .tr { stroke: rgba(43,30,22,.09); }
.rd-ring.open .tr { stroke-dasharray: 3 7; stroke-width: 5; stroke: rgba(43,30,22,.25); }
.rd-ring .ar { stroke: var(--gold); stroke-linecap: round; }
.rd-ring .in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; text-align: center; }
.rd-ring b { font: 700 30px/1 var(--serif); color: var(--burgundy); }
.rd-ring sup { font-size: 14px; vertical-align: top; position: relative; top: 2px; margin-left: 1px; }
.rd-ring small { font: 700 9.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rd-ctl { grid-area: ctl; align-self: start; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-stepper { display: flex; align-items: center; height: 44px; border: 1.5px solid var(--line-2); border-radius: 22px; background: var(--white); overflow: hidden; }
.rd-step { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.rd-step:hover { background: var(--card); }
.rd-step:disabled { opacity: .35; cursor: default; background: none; }
.rd-num { width: 54px; height: 100%; border: 0; border-left: 1.5px solid var(--line-2); background: none; text-align: center; font-weight: 700; font-size: 16px; padding: 0 4px; outline: none; -moz-appearance: textfield; appearance: textfield; }
.rd-num::-webkit-outer-spin-button, .rd-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rd-num:focus { background: var(--gold-soft); }
.rd-go { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 13px; }
.rd-done { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px; font: 700 12px/1 var(--sans); letter-spacing: .04em; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.rd-done .ms { font-size: 17px; color: var(--gold); }
.rd-done:disabled { opacity: .45; }
.rd-count { margin-top: 4px; }
.rd-count summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; font: 600 12px/1.4 var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.rd-count summary::-webkit-details-marker { display: none; }
.rd-count summary .ms { font-size: 15px; }
.rd-card.lead .rd-count summary { color: rgba(250,246,238,.72); }
.rd-total { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); font-size: 13px; }
.rd-total label { font-weight: 700; }
.rd-total .input { width: 90px; height: 36px; }
.rd-total small { flex-basis: 100%; color: var(--muted); }

.rd-card.lead { grid-template-columns: 128px minmax(0, 1fr) auto; column-gap: 28px; padding: 26px 28px; color: var(--canvas); border-color: rgba(232,196,106,.4); background: radial-gradient(130% 150% at 0% 0%, #6d2435 0%, var(--burgundy) 46%, var(--burgundy-ink) 100%); box-shadow: var(--shadow-raise); }
.rd-card.lead > .rd-cover .cover { transform: rotate(-3deg); box-shadow: 0 20px 30px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(232,196,106,.25); }
.rd-card.lead .eyebrow { color: var(--gold-2); margin-bottom: 4px; }
.rd-card.lead h3 { color: #fff; font-size: 26px; }
.rd-card.lead .rd-by, .rd-card.lead .rd-where span, .rd-card.lead .rd-total small { color: rgba(250,246,238,.72); }
.rd-card.lead .progress { background: rgba(255,255,255,.14); box-shadow: none; }
.rd-card.lead .rd-ring { width: 132px; height: 132px; }
.rd-card.lead .rd-ring .tr { stroke: rgba(255,255,255,.13); }
.rd-card.lead .rd-ring.open .tr { stroke: rgba(255,255,255,.35); }
.rd-card.lead .rd-ring .ar { stroke: var(--gold-2); }
.rd-card.lead .rd-ring b { color: #fff; font-size: 34px; }
.rd-card.lead .rd-ring small { color: rgba(250,246,238,.7); }
.rd-card.lead .rd-stepper { background: rgba(255,255,255,.08); border-color: rgba(232,196,106,.45); }
.rd-card.lead .rd-step { color: var(--canvas); }
.rd-card.lead .rd-step:hover { background: rgba(255,255,255,.1); }
.rd-card.lead .rd-num { color: #fff; border-left-color: rgba(232,196,106,.45); }
.rd-card.lead .rd-num:focus { background: rgba(232,196,106,.18); }
.rd-card.lead .rd-done { color: var(--canvas); }
.rd-card.lead .rd-done .ms { color: var(--gold-2); }
.rd-card.lead .rd-total { border-color: rgba(232,196,106,.45); }
.rd-card.lead .rd-total .input { background: rgba(255,255,255,.08); border-color: rgba(232,196,106,.45); color: #fff; }
.rd-card.lead .rd-total .input::placeholder { color: rgba(250,246,238,.5); }
.rd-card.lead .rd-total .btn-ghost { color: var(--canvas); }
.rd-card.lead :focus-visible { outline-color: var(--gold-2); }
.rd-added { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: var(--sage-soft); color: var(--sage); font: 700 11px/1.5 var(--sans); }
.rd-added .ms { font-size: 13px; }
.rd-remove { display: inline-flex; align-items: center; gap: 3px; }
.rd-remove .ms { font-size: 14px; }
.rd-add .field { margin: 12px 0 8px; max-width: 420px; }
.rd-found { display: grid; gap: 8px; max-width: 520px; }
.rd-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.rd-hit .cover { width: 38px; flex: none; }
.rd-hit .grow { min-width: 0; display: flex; flex-direction: column; }
.rd-hit b { font-size: 14px; line-height: 1.3; }
.rd-own { margin-top: 10px; }
.rd-own-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; max-width: 620px; }
.rd-own-form .input { flex: 1 1 180px; }
.rd-none { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--canvas); }
.rd-none > .ms { font-size: 30px; color: var(--gold); }
.rd-none strong { font: 700 17px/1.3 var(--serif); }
.rd-none p { margin: 2px 0 0; }

/* the bookshelf: covers stand on a wooden plank, one plank per row */
.rd-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 26px; overflow: hidden; margin: 0 -10px; padding: 10px 18px 2px; }
.rd-book { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rd-stand { position: relative; aspect-ratio: 2 / 3; display: flex; align-items: flex-end; margin-bottom: 22px; }
.rd-stand::after { content: ''; position: absolute; left: -100vw; right: -100vw; top: 100%; height: 13px; background: linear-gradient(180deg, #8f6740 0, #74502e 40%, #4f331c 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 9px 10px -5px rgba(43,30,22,.4); }
.rd-stand .rd-cover { width: 100%; z-index: 1; transition: transform .2s; }
.rd-stand a.rd-cover:hover { transform: translateY(-5px); }
.rd-stand .cover { box-shadow: 0 -1px 0 rgba(0,0,0,.05), 5px 0 12px -6px rgba(43,30,22,.45); }
.rd-book strong { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-book small { font-size: 12px; }
.rd-book .btn { justify-content: center; margin-top: auto; padding-left: 6px; padding-right: 6px; }
.rd-book .rd-same { margin-top: 0; }
.rd-book.done .rd-cover::after { content: '✓'; position: absolute; top: -8px; right: -8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, #e8c46a, #c59b27); color: var(--burgundy-ink); border: 2px solid var(--white); font: 800 14px/24px var(--sans); text-align: center; box-shadow: 0 2px 6px rgba(43,30,22,.35); }

/* series: every volume as a small cover */
.rd-series { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); }
.rd-series:first-of-type { border-top: 0; padding-top: 0; }
.rd-series:last-child { padding-bottom: 0; }
.rd-series .grow { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.rd-series-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rd-series-top strong { font: 700 17px/1.3 var(--serif); }
.rd-series-top span { font: 700 15px/1 var(--serif); color: var(--burgundy); }
.rd-vols { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-vol { position: relative; width: 40px; flex: none; }
.rd-vol .cover { width: 100%; border-radius: 3px; }
.rd-vol.miss .cover { opacity: .38; filter: grayscale(1); box-shadow: none; outline: 1px dashed var(--line-2); outline-offset: 1px; }
.rd-vol.fin::after { content: '✓'; position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--sage); color: #fff; border: 1.5px solid var(--white); font: 800 9px/14px var(--sans); text-align: center; }
.rd-next { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(197,155,39,.45); border-radius: 12px; background: var(--gold-soft); }
.rd-next .cover { width: 46px; }
.rd-next > div { display: flex; flex-direction: column; max-width: 170px; font-size: 13px; line-height: 1.3; }
.rd-next small { font: 700 10px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a6a12; }

/* empty shelf */
.rd-empty { text-align: center; padding: 34px 24px; }
.rd-empty h2 { font-size: 26px; margin-top: 4px; }
.rd-empty h3 { font-size: 20px; margin-bottom: 6px; }
.rd-empty p { color: var(--muted); max-width: 54ch; margin: 0 auto; }
.rd-empty .btn { margin-top: 22px; }
.rd-ghost { display: flex; justify-content: center; align-items: flex-end; gap: 12px; max-width: 420px; margin: 26px auto 30px; padding: 0 22px; border-bottom: 13px solid #74502e; box-shadow: 0 10px 10px -6px rgba(43,30,22,.35); }
.rd-ghost i { flex: 1; max-width: 62px; aspect-ratio: 2 / 3; border: 1.5px dashed var(--line-2); border-bottom: 0; border-radius: 4px 4px 0 0; background: rgba(244,235,217,.6); }
.rd-ghost i:nth-child(2) { aspect-ratio: 2 / 3.4; }
.rd-ghost i:nth-child(4) { aspect-ratio: 2 / 2.6; }
.rd-steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); counter-reset: rd; }
.rd-steps li { display: flex; align-items: center; gap: 8px; }
.rd-steps .ms { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--burgundy); color: var(--gold-2); }

/* "book finished" celebration (modal) */
.rd-fin-cover { width: 120px; margin: 4px auto 0; }
.rd-fin-cover .cover { width: 100%; transform: rotate(-3deg); box-shadow: var(--shadow-float); }
.rd-fin-act { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@media (max-width: 899px) {
  .rd-stats > div { padding: 14px 16px; }
  .rd-week-box { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 639px) {
  .rd-today-top { padding: 20px; gap: 14px; }
  .rd-today-top .grow { min-width: 0; flex: 1 1 0; }
  .rd-today h2 { font-size: 21px; }
  .rd-flame { width: 62px; height: 62px; }
  .rd-flame b { font-size: 25px; }
  .rd-flame .ms { width: 26px; height: 26px; font-size: 16px; }
  .rd-week { gap: 6px; flex: 1; justify-content: space-between; max-width: 300px; }
  .rd-stats > div { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 12px 4px; row-gap: 3px; }
  .rd-stats .ms { display: none; }
  .rd-stats b { font-size: 22px; }
  .rd-stats small { font-size: 9.5px; letter-spacing: .05em; }
  .rd-card, .rd-card.lead { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: 'cover main' 'ctl ctl'; column-gap: 16px; padding: 16px; }
  .rd-card.lead { padding: 20px 18px; }
  .rd-card .rd-ring { display: none; }
  .rd-card.lead h3 { font-size: 20px; }
  .rd-main h3 { font-size: 17px; }
  .rd-main { align-self: center; }
  .rd-go { flex: 1; justify-content: center; padding: 0 12px; }
  .rd-where { flex-direction: column; gap: 2px; }
  .rd-where span::before { display: none; }
  .rd-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; margin: 0 -6px; padding: 8px 10px 2px; }
  .rd-book .btn { letter-spacing: .02em; gap: 4px; }
  .rd-book .btn .ms { font-size: 15px; }
  .rd-next { width: 100%; }
  .rd-next > div { flex: 1; max-width: none; }
}
@media (min-width: 640px) {
  .rd-card .rd-main .progress { display: none; } /* the ring shows it */
}
