/* ==========================================================================
   Book Breeze — category themes (see js/themes.js + js/theme-<id>.js)
   ========================================================================== */
.theme-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

/* ==========================================================================
   ROMANTASY — dusk violet, rose and candle gold. body.theme-romantasy is set on
   every page inside the Romantasy category (and its realms), and nowhere else.
   ========================================================================== */
body.theme-romantasy {
  --canvas: #0f0918; --white: #181024; --card: #1e1429; --card-2: #261a34; --line: #33264a; --line-2: #403058;
  --ink: #f6edf5; --ink-2: #dacbdc; --muted: #a897b0;
  --burgundy: #e0457b; --burgundy-2: #ee5d8f; --burgundy-ink: #2b0716; --rose: #f08fb0;
  --gold: #e9c27a; --gold-2: #f7dca4; --gold-soft: #2c2117;
  --sage: #8fd3c1; --sage-soft: rgba(143, 211, 193, .12); --ember: #ff5c7a;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .55); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(233, 194, 122, .18);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(233, 194, 122, .3);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .18);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(255, 240, 220, .45), transparent 70%),
    radial-gradient(1px 1px at 150px 96px, rgba(255, 190, 225, .35), transparent 70%),
    radial-gradient(1.5px 1.5px at 210px 190px, rgba(255, 255, 255, .3), transparent 70%),
    radial-gradient(1px 1px at 90px 220px, rgba(210, 190, 255, .35), transparent 70%),
    radial-gradient(ellipse at 12% 8%, rgba(224, 69, 123, .12), transparent 45%),
    radial-gradient(ellipse at 88% 40%, rgba(154, 107, 255, .12), transparent 50%),
    radial-gradient(ellipse at 50% 105%, rgba(233, 194, 122, .08), transparent 50%);
  background-size: 260px 260px, 260px 260px, 260px 260px, 260px 260px, auto, auto, auto;
}
body.theme-romantasy .topbar { background: linear-gradient(90deg, #2a0f45, #5a1640 50%, #2a0f45); color: #ffe3ee; }
body.theme-romantasy .header { background: rgba(15, 9, 24, .88); border-bottom-color: rgba(233, 194, 122, .2); }
body.theme-romantasy .search input { background: var(--white); color: var(--ink); }
body.theme-romantasy .nav a:hover, body.theme-romantasy .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-romantasy .btn-primary { background: linear-gradient(180deg, #ee5d8f, #b8295e); color: #fff; box-shadow: 0 0 0 1px rgba(255, 170, 200, .3), 0 6px 18px rgba(224, 69, 123, .3); }
body.theme-romantasy .btn-primary:hover { background: linear-gradient(180deg, #f572a0, #c93468); box-shadow: 0 0 0 1px rgba(255, 190, 215, .55), 0 8px 26px rgba(224, 69, 123, .55); }
body.theme-romantasy .btn-gold { background: linear-gradient(180deg, #f7dca4, #d9a54a); color: #2a0f12; }
body.theme-romantasy .btn-ghost { color: var(--ink); }
body.theme-romantasy .filters a.active { background: linear-gradient(90deg, #b8295e, #7a2a8a); color: #fff; }
body.theme-romantasy .chip-ember, body.theme-romantasy .form-error { background: rgba(255, 92, 122, .12); }
body.theme-romantasy .chip-gold { background: rgba(233, 194, 122, .16); color: var(--gold-2); border-color: rgba(233, 194, 122, .45); }
body.theme-romantasy .cover.photo { background: #1a1424; }
body.theme-romantasy .footer { background: #0a0611; border-top-color: rgba(233, 194, 122, .18); }
body.theme-romantasy .mobile-tabbar { background: #130b1d; box-shadow: 0 -6px 18px rgba(0, 0, 0, .6); }
body.theme-romantasy .next-up { background: var(--card); }
body.theme-romantasy ::selection { background: #e0457b; color: #fff; }
/* book cards: a gilded edge, and a sweep of foil light across the cover on hover */
body.theme-romantasy .book-card { background: linear-gradient(180deg, #1d1229, #150c20); border-color: rgba(233, 194, 122, .16); }
body.theme-romantasy .book-card:hover { border-color: rgba(233, 194, 122, .6); box-shadow: 0 18px 40px -14px rgba(224, 69, 123, .45), 0 0 0 1px rgba(233, 194, 122, .2); }
body.theme-romantasy .book-card .media { overflow: hidden; background: radial-gradient(ellipse at 50% 18%, rgba(224, 69, 123, .2), transparent 70%), linear-gradient(180deg, #241634, #19102a); }
body.theme-romantasy .book-card .media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 200, .3) 47%, rgba(255, 170, 215, .2) 53%, transparent 65%); transform: translateX(-130%); transition: transform 1s cubic-bezier(.3, .6, .3, 1); }
body.theme-romantasy .book-card:hover .media::after { transform: translateX(130%); }
body.theme-romantasy .book-card .wish { background: rgba(20, 10, 32, .85); }
body.theme-romantasy .list-head h2 { font-family: 'Cinzel Decorative', var(--serif); color: var(--gold-2); }

/* ---------- the hero scene ---------- */
.rt-hero { position: relative; height: clamp(580px, 80vh, 780px); overflow: hidden; isolation: isolate; color: #f6ecf6; background: #0b0520; }
.rt-hero.is-sub { height: clamp(500px, 66vh, 640px); }
.rt-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.rt-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #08041a 0%, #170936 24%, #3b1452 46%, #7a2462 62%, #c24c70 76%, #ee9466 88%, #f7c27a 100%); }
.rt-stars, .rt-fx, .rt-flyer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rt-flyer { overflow: visible; }
.rt-layer { position: absolute; inset: -30px -60px; pointer-events: none; will-change: transform; }
/* performance: a scene (or a row of realm cards) scrolled off screen gets .rt-off from themes.js, and its CSS animations
   (candles, clouds, emblems…) stop until it comes back. Paused animations cost nothing; running ones restyle every frame. */
.rt-off, .rt-off *, .rt-off *::before, .rt-off *::after { animation-play-state: paused !important; }
.rt-layer > svg { position: absolute; top: 0; left: 50%; height: 100%; width: auto; min-width: 100%; max-width: none; aspect-ratio: 1600 / 700; transform: translateX(-50%); }
/* aurora: blurred ribbons, moved by the compositor (cheap even on phones) */
.rt-aurora i { position: absolute; left: -10%; width: 120%; top: 12%; height: 24%; border-radius: 50%; opacity: .7; filter: blur(34px); will-change: transform, opacity;
  background: linear-gradient(90deg, transparent, rgba(180, 75, 214, .6) 25%, rgba(255, 92, 154, .55) 50%, rgba(95, 214, 198, .45) 75%, transparent);
  transform: rotate(-6deg) skewX(-20deg); animation: rt-aur 16s ease-in-out infinite alternate; }
.rt-aurora i:nth-child(2) { top: 34%; height: 14%; background: linear-gradient(90deg, transparent, rgba(255, 122, 176, .5) 35%, rgba(154, 107, 255, .45) 70%, transparent); animation-duration: 22s; animation-delay: -7s; }
.rt-aurora i:nth-child(3) { top: 3%; height: 12%; left: 35%; width: 70%; background: linear-gradient(90deg, transparent, rgba(95, 214, 198, .4), transparent); animation-duration: 19s; animation-delay: -3s; }
@keyframes rt-aur { from { transform: translateX(-4%) rotate(-6deg) skewX(-20deg) scaleY(.8); opacity: .45; } to { transform: translateX(4%) rotate(-2deg) skewX(-10deg) scaleY(1.25); opacity: .9; } }
/* castle windows flicker like candlelight */
.rt-win { animation: rt-flicker 5s infinite; }
.rt-win.rose { fill: #ffb0cc; }
.rt-win.lamp { animation-duration: 3.2s; }
@keyframes rt-flicker { 0%, 100% { opacity: 1; } 40% { opacity: .85; } 44% { opacity: .5; } 47% { opacity: .95; } 72% { opacity: .72; } }
/* fog banks drifting through the valley */
.rt-fog { position: absolute; left: 0; width: 200%; pointer-events: none; background-size: 50% 100%; background-repeat: repeat-x; animation: rt-fog 80s linear infinite; will-change: transform; }
.rt-fog.f1 { bottom: 16%; height: 34%;
  background-image: radial-gradient(ellipse 16% 42% at 18% 60%, rgba(224, 150, 200, .28), transparent 70%), radial-gradient(ellipse 18% 36% at 48% 50%, rgba(180, 130, 220, .22), transparent 70%),
    radial-gradient(ellipse 15% 40% at 80% 62%, rgba(240, 160, 200, .24), transparent 70%); }
.rt-fog.f2 { bottom: -6%; height: 28%; z-index: 3; opacity: .85; animation-duration: 50s;
  background-image: radial-gradient(ellipse 18% 50% at 22% 70%, rgba(200, 140, 210, .3), transparent 70%), radial-gradient(ellipse 20% 46% at 55% 64%, rgba(240, 170, 210, .26), transparent 70%), radial-gradient(ellipse 14% 50% at 84% 72%, rgba(170, 130, 230, .24), transparent 70%); }
@keyframes rt-fog { to { transform: translateX(-50%); } }
.rt-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 170, 90, .5), transparent 75%); }
/* thorned roses in the corners */
.rt-corners { position: absolute; inset: auto -10px -16px; height: 100%; z-index: 2; pointer-events: none; }
.rt-thorns { position: absolute; bottom: 0; width: min(310px, 26vw); height: auto; }
.rt-thorns.l { left: 0; transform-origin: 0 100%; animation: rt-sway 9s ease-in-out infinite alternate; }
.rt-thorns.r { right: 0; transform: scaleX(-1); transform-origin: 50% 100%; animation: rt-sway 11s ease-in-out -3s infinite alternate; }
@keyframes rt-sway { from { rotate: -1.2deg; } to { rotate: 1.4deg; } }
.rt-pulse { transform-box: fill-box; transform-origin: center; animation: rt-pulse 4s ease-in-out infinite; }
@keyframes rt-pulse { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
.rt-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(15, 9, 24, 0), rgba(15, 9, 24, .7) 55%, var(--canvas)); }
.rt-hero::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 46% 58% at 24% 50%, rgba(10, 4, 22, .6), transparent 72%); }

/* ---------- the words ---------- */
.rt-content { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 10px; padding-bottom: 130px; }
.rt-content > * { max-width: 640px; }
.rt-content .crumbs { margin-bottom: 18px; }
.rt-eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12.5px/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #f6cfe0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.rt-eyebrow i { font-style: normal; color: #e9c27a; animation: rt-twinkle 2.6s ease-in-out infinite; }
.rt-eyebrow i:last-child { animation-delay: -1.3s; }
@keyframes rt-twinkle { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.rt-title { font-family: 'Cinzel Decorative', var(--serif); font-weight: 700; font-size: clamp(48px, 8.6vw, 118px); line-height: 1; letter-spacing: .01em; margin: 12px 0 4px; max-width: none !important;
  background: linear-gradient(100deg, #f9e7b4 0%, #d9a54a 18%, #fff7dc 32%, #c98d36 48%, #f5d99a 64%, #e3ac55 80%, #f9e7b4 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(70, 20, 10, .7)) drop-shadow(0 0 26px rgba(255, 160, 90, .35));
  animation: rt-foil 8s linear infinite, rt-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.rt-title .w { display: inline-block; }
.is-sub .rt-title { font-size: clamp(34px, 5vw, 66px); max-width: min(720px, 56vw) !important; }
@keyframes rt-foil { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes rt-rise { from { opacity: 0; transform: translateY(18px); letter-spacing: .1em; } to { opacity: 1; transform: none; letter-spacing: .01em; } }
.rt-divider { width: 300px; height: 22px; margin: 6px 0 14px; overflow: visible; }
.rt-divider .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rt-draw 1.8s .5s ease forwards; }
@keyframes rt-draw { to { stroke-dashoffset: 0; } }
.rt-lede { font: italic 500 clamp(19px, 1.9vw, 24px)/1.4 'Cormorant Garamond', var(--serif); color: #f3e4f0; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); animation: rt-in 1s .5s both; }
.rt-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; animation: rt-in 1s .75s both; }
@keyframes rt-in { from { opacity: 0; transform: translateY(10px); } }
.rt-btn { position: relative; overflow: hidden; background: linear-gradient(180deg, #f9e2ad, #dcaa52 55%, #b07a2c); color: #2a0f12; border: 1px solid #ffe7b0; font-weight: 800;
  box-shadow: 0 0 0 4px rgba(233, 194, 122, .14), 0 10px 28px rgba(233, 150, 90, .38), inset 0 1px 0 rgba(255, 255, 255, .7); }
.rt-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: rt-gleam 4.5s 2s ease-in-out infinite; }
@keyframes rt-gleam { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.rt-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(233, 194, 122, .22), 0 14px 34px rgba(233, 150, 90, .5), inset 0 1px 0 rgba(255, 255, 255, .7); }
.rt-btn-ghost { color: #fbe9f2; border: 1px solid rgba(233, 194, 122, .6); background: rgba(20, 8, 32, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rt-btn-ghost:hover { background: rgba(233, 194, 122, .14); transform: translateY(-2px); }
.rt-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #d9c3d8; animation: rt-in 1s 1s both; }
.rt-stats b { font: 700 24px/1 'Cinzel Decorative', var(--serif); color: #f7dca4; letter-spacing: 0; margin-right: 6px; text-shadow: 0 0 14px rgba(233, 194, 122, .45); }
.rt-hero-em { width: 96px; height: 96px; margin-bottom: 6px; filter: drop-shadow(0 0 18px rgba(233, 194, 122, .45)); animation: rt-in 1s both; }

/* ---------- realm cards ---------- */
.rt-realms { padding: 40px 0 8px; }
.rt-sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; }
.rt-sec-head h2 { font: 700 clamp(30px, 4vw, 50px)/1.1 'Cinzel Decorative', var(--serif); color: #f7dca4; margin-top: 10px; text-shadow: 0 0 24px rgba(233, 194, 122, .25); }
/* Cinzel Decorative kerns its lowercase "oo" so tightly that the two letters overlap (the OO in Choose, Books):
   no kerning on the Cinzel headings */
.rt-sec-head h2, .rt-title, .rt-realm-name, .rt-stats b, body.theme-romantasy .list-head h2 { font-kerning: none; font-feature-settings: 'kern' 0; }
.rt-sec-head .rt-divider { margin-top: 10px; }
.rt-sec-head .rt-divider .draw { animation: none; stroke-dashoffset: 0; }
.rt-realm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rt-realm { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px 22px; border-radius: 14px;
  background-color: var(--hue);
  background-image: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--hue), #ff7ab0 22%), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--hue) 65%, #0f0918), #110a1b);
  border: 1px solid rgba(233, 194, 122, .26); box-shadow: inset 0 0 40px rgba(0, 0, 0, .35);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s; }
.rt-realm::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image: radial-gradient(1px 1px at 18% 26%, #fff8, transparent), radial-gradient(1px 1px at 76% 18%, #ffd6e8aa, transparent), radial-gradient(1.4px 1.4px at 86% 62%, #fff6, transparent),
    radial-gradient(1px 1px at 30% 78%, #e0d0ff99, transparent), radial-gradient(1px 1px at 60% 44%, #fff5, transparent); }
.rt-realm::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 236, 200, .2) 50%, transparent 62%); transform: translateX(-120%); transition: transform 1.1s cubic-bezier(.3, .6, .3, 1); }
.rt-realm:hover, .rt-realm:focus-visible { transform: translateY(-6px); border-color: rgba(233, 194, 122, .75); box-shadow: 0 22px 44px -16px rgba(224, 69, 123, .5), 0 0 0 1px rgba(233, 194, 122, .25), inset 0 0 40px rgba(233, 194, 122, .08); }
.rt-realm:hover::after { transform: translateX(120%); }
.rt-realm.on { border-color: #e9c27a; box-shadow: 0 0 0 1px #e9c27a, 0 0 34px rgba(233, 194, 122, .28); }
.rt-frame svg { position: absolute; width: 34px; height: 34px; opacity: .85; }
.rt-frame .tl { top: 8px; left: 8px; }
.rt-frame .tr { top: 8px; right: 8px; transform: scaleX(-1); }
.rt-frame .bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.rt-frame .br { bottom: 8px; right: 8px; transform: scale(-1); }
.rt-em { width: 108px; height: 108px; margin-bottom: 12px; filter: drop-shadow(0 0 10px rgba(233, 194, 122, .25)); transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.rt-realm:hover .rt-em { transform: scale(1.1) translateY(-3px); filter: drop-shadow(0 0 20px rgba(255, 200, 130, .55)); }
.rt-realm-name { font: 700 19px/1.25 'Cinzel Decorative', var(--serif); color: #f7dca4; }
.rt-realm-blurb { font: italic 500 17.5px/1.35 'Cormorant Garamond', var(--serif); color: #e8d6e8; margin-top: 8px; max-width: 300px; }
.rt-realm-count { margin-top: auto; padding-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #e9c27a; }
.rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 1px solid rgba(233, 194, 122, .22); margin-top: 14px; min-width: 50%; }
.rt-realm.all { --hue: #2a1640; }
.rt-realm-grid { scrollbar-width: none; }
.rt-realm-grid::-webkit-scrollbar { display: none; }
.rt-dots { display: none; align-items: center; justify-content: center; gap: 11px; margin-top: 2px; }
.rt-realms.can-slide .rt-dots { display: flex; }
.rt-dots::before, .rt-dots::after { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, rgba(233, 194, 122, .6)); }
.rt-dots::after { transform: scaleX(-1); }
.rt-dots button { width: 8px; height: 8px; padding: 0; transform: rotate(45deg); border: 1px solid rgba(233, 194, 122, .55); background: rgba(233, 194, 122, .15); transition: background .3s, box-shadow .3s, transform .3s; }
.rt-dots button.on { background: #f7dca4; box-shadow: 0 0 10px rgba(233, 194, 122, .9); transform: rotate(45deg) scale(1.35); }
.rt-swipe { display: none; margin-top: 8px; text-align: center; font: italic 500 15px/1.2 'Cormorant Garamond', var(--serif); color: #cdb4cf; letter-spacing: .02em; }
.rt-swipe i { font-style: normal; color: #e9c27a; display: inline-block; animation: rt-nudge 1.8s ease-in-out infinite; }
.rt-swipe i:first-child { animation-direction: reverse; }
@keyframes rt-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.rt-realms.can-slide .rt-swipe { display: block; }
.rt-realms.compact .rt-swipe { display: none !important; }
.rt-realms.compact { padding: 22px 0 0; }
.rt-realms.compact .rt-realm-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; padding: 8px 2px 10px; scroll-snap-type: x proximity; }
.rt-realms.compact .rt-realm { padding: 16px 12px 14px; scroll-snap-align: start; }
.rt-realms.compact .rt-em { width: 62px; height: 62px; margin-bottom: 8px; }
.rt-realms.compact .rt-realm-name { font-size: 13.5px; }
.rt-realms.compact .rt-realm-count { padding-top: 6px; font-size: 10px; }
.rt-realms.compact .rt-frame svg { width: 20px; height: 20px; }

/* ---------- emblem motion ---------- */
.em { width: 100%; height: 100%; overflow: visible; }
.em-wl, .em-wr { transform-box: view-box; transform-origin: 60px 66px; animation: em-flutter 2.8s ease-in-out infinite; }
@keyframes em-flutter { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.7); } }
.em-pupil { transform-box: view-box; transform-origin: 60px 60px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rt-realm:hover .em-pupil { transform: scaleX(2.4); }
.em-lid { transform-box: view-box; transform-origin: 60px 14px; transform: scaleY(0); animation: em-blink 5.5s infinite; }
@keyframes em-blink { 0%, 91%, 100% { transform: scaleY(0); } 94.5% { transform: scaleY(1); } }
.em-drop { animation: em-drop 3s ease-in infinite; }
@keyframes em-drop { 0%, 30% { transform: translateY(0); opacity: 0; } 38% { opacity: 1; } 88% { transform: translateY(36px); opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
.em-petal { transform-box: view-box; transform-origin: 64px 68px; animation: em-petal 6.5s ease-in-out infinite; }
@keyframes em-petal { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(-8px, 14px) rotate(130deg); } 85% { transform: translate(5px, 27px) rotate(230deg); opacity: 1; } 100% { transform: translate(5px, 27px) rotate(230deg); opacity: 0; } }
.em-spark, .em-glint { transform-box: fill-box; transform-origin: center; animation: em-tw 2.4s ease-in-out infinite; }
.em-spark:nth-of-type(2n) { animation-delay: -.8s; }
.em-spark:nth-of-type(3n) { animation-delay: -1.6s; }
@keyframes em-tw { 0%, 100% { transform: scale(.4); opacity: .35; } 50% { transform: scale(1.15); opacity: 1; } }
.em-flame { transform-box: view-box; transform-origin: 60px 42px; animation: em-flick 1.4s ease-in-out infinite alternate; }
.em-candle { transform-box: fill-box; transform-origin: 50% 100%; animation: em-flick 1s ease-in-out infinite alternate; }
@keyframes em-flick { 0% { transform: scale(1, 1) skewX(0); } 33% { transform: scale(.93, 1.08) skewX(4deg); } 66% { transform: scale(1.04, .94) skewX(-3deg); } 100% { transform: scale(.97, 1.05) skewX(2deg); } }
.em-eyes { animation: em-glow 3s ease-in-out infinite; }
@keyframes em-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- small screens ---------- */
/* phones: only the realm card in the middle animates its emblem; blur behind glassy chips becomes a deeper tint
   (backdrop-filter re-blurs the whole scene behind it every frame the scene moves) */
@media (max-width: 760px) {
  .rt-btn-ghost { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: rgba(20, 8, 32, .72); }
  .fa-hero .rt-btn-ghost { background-color: rgba(244, 230, 196, .9); }
  .ya-hero .rt-btn-ghost { background-color: #fff; }
}
/* phones: scenes with dozens of tiny SVG lights (windows, stars, stadium bulbs) restyle and repaint the whole drawing
   every frame. Keep a share of them flickering and the rest steadily lit: the scene still twinkles at phone size. */
@media (max-width: 760px) {
  .rt-win:not(:nth-of-type(3n)), .dr-tower-win:not(:nth-of-type(3n)), .cz-bulb:not(:nth-of-type(3n)), .cr-bulb:not(:nth-of-type(3n)),
  .cr-stars circle:not(:nth-of-type(4n)), .sd-glow:not(:nth-of-type(3n)) { animation: none; }
  .rt-pulse:nth-of-type(2n) { animation: none; }
  /* the gold foil title keeps its gradient but stops sliding: with its two drop-shadows, every shimmer frame
     repainted and re-filtered the whole title (the entrance animation still plays) */
  .rt-title { animation: rt-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  body .ag-year b { animation: ag-reveal 1.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (max-width: 560px) {
  .rt-realm:not(.is-active) .rt-em, .rt-realm:not(.is-active) .rt-em * { animation-play-state: paused !important; }
}
@media (max-width: 900px) { .rt-realm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .rt-hero { height: 680px; }
  .rt-hero.is-sub { height: 600px; }
  /* the scene keeps its proportions (1600x700) and is slid so the castle and moon sit in view */
  /* phones: the words sit in the open sky up top, the castle scene is drawn smaller along the bottom */
  .rt-layer > svg { top: auto; bottom: 0; height: 60%; width: 1015px; min-width: 0; aspect-ratio: auto; transform: translateX(-66%); }
  .is-sub .rt-layer > svg { height: 54%; width: 878px; }
  .rt-content { justify-content: flex-start; align-items: center; text-align: center; padding-top: 18px; }
  .rt-content .crumbs { align-self: flex-start; }
  .rt-hero::after { background: radial-gradient(ellipse 80% 42% at 50% 30%, rgba(10, 4, 22, .62), transparent 75%); }
  .rt-cta { justify-content: center; }
  .rt-stats { justify-content: center; gap: 16px; padding: 9px 18px; border-radius: 999px; background: rgba(14, 7, 24, .8); border: 1px solid rgba(233, 194, 122, .22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
  .rt-divider { width: 240px; }
  .rt-thorns { width: 44vw; }
  .is-sub .rt-title { max-width: none !important; }
}
@media (max-width: 560px) {
  /* realm cards become a swipeable slider: the card in the middle is lit, its neighbours peek in, smaller and dimmer */
  .rt-realm-grid, .rt-realms.compact .rt-realm-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px;
    margin: 0 calc(-1 * var(--gutter)); padding: 12px 13% 18px; scroll-padding: 0 13%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
  .rt-realms.compact .rt-realm-grid { grid-auto-columns: 46%; padding: 10px 27% 16px; scroll-padding: 0 27%; }
  .rt-realms.compact .rt-realm { padding: 14px 10px 12px; }
  .rt-realms.compact .rt-realm-name { font-size: 12.5px; line-height: 1.3; }
  .rt-realms.compact .rt-em { width: 54px; height: 54px; }
  .rt-realm { scroll-snap-align: center; transform: scale(calc(1 - var(--k, 0) * .1)); opacity: calc(1 - var(--k, 0) * .5); transition: border-color .4s, box-shadow .4s; }
  .rt-realm:hover, .rt-realm:focus-visible { transform: scale(calc(1 - var(--k, 0) * .1)); }
  .rt-realm.is-active { border-color: rgba(233, 194, 122, .75); box-shadow: 0 18px 40px -16px rgba(224, 69, 123, .55), 0 0 0 1px rgba(233, 194, 122, .3), inset 0 0 40px rgba(233, 194, 122, .1); }
  .rt-realm.is-active .rt-em { filter: drop-shadow(0 0 18px rgba(255, 200, 130, .55)); }
  .rt-stats b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-aurora i, .rt-fog, .rt-win, .rt-thorns, .rt-pulse, .rt-title, .rt-btn::after, .rt-eyebrow i, .em-wl, .em-wr, .em-lid, .em-drop, .em-petal, .em-spark, .em-glint, .em-flame, .em-candle, .em-eyes { animation: none !important; }
  .rt-divider .draw { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   BEST OF THE YEAR — an awards night. body.theme-awards is set on #/best-books.
   Black velvet, champagne gold and ivory; the hero is a stage.
   ========================================================================== */
body.theme-awards {
  --canvas: #0b0907; --white: #15110c; --card: #1b160f; --card-2: #231c13; --line: #3a2f20; --line-2: #4a3c28;
  --ink: #f7f0e1; --ink-2: #e2d6bf; --muted: #a99a80;
  --burgundy: #e9c46a; --burgundy-2: #f3d48a; --burgundy-ink: #1a1206; --rose: #e6b9a0;
  --gold: #e9c46a; --gold-2: #f7dc95; --gold-soft: #2a2114;
  --sage: #9fcfa8; --ember: #ff6b5c;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(233, 196, 106, .16);
  --shadow-float: 0 24px 44px -10px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 196, 106, .35);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .2);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 50% -10%, rgba(233, 196, 106, .1), transparent 50%), radial-gradient(ellipse at 100% 60%, rgba(179, 33, 58, .07), transparent 45%),
    radial-gradient(rgba(233, 196, 106, .06) 1px, transparent 1.4px);
  background-size: auto, auto, 30px 30px;
}
body.theme-awards .topbar { background: linear-gradient(90deg, #1a1206, #3a2a10 50%, #1a1206); color: #f7e7bf; }
body.theme-awards .header { background: rgba(11, 9, 7, .9); border-bottom-color: rgba(233, 196, 106, .22); }
body.theme-awards .search input { background: var(--white); color: var(--ink); }
body.theme-awards .nav a:hover, body.theme-awards .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-awards .btn-primary { background: linear-gradient(180deg, #fbe7ae, #e2b252 50%, #b5832a); color: #1a1206; font-weight: 800; border: 1px solid #ffe9b0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px rgba(201, 149, 47, .3); }
body.theme-awards .btn-primary:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 26px rgba(233, 196, 106, .5); }
body.theme-awards .btn-ghost { color: var(--ink); border-color: rgba(233, 196, 106, .55); }
body.theme-awards .footer { background: #070605; border-top-color: rgba(233, 196, 106, .18); }
body.theme-awards .mobile-tabbar { background: #110e0a; box-shadow: 0 -6px 18px rgba(0, 0, 0, .6); }
body.theme-awards .cover.photo { background: #17130e; }
body.theme-awards .points-pill strong { color: #7a4a00; }
body.theme-awards .cart-btn { background: linear-gradient(180deg, #fbe7ae, #d9a748); color: #1a1206; border: 1px solid #ffe9b0; }
body.theme-awards .cart-btn small { color: rgba(26, 18, 6, .75); }
body.theme-awards ::selection { background: #e9c46a; color: #1a1206; }
body.theme-awards .eyebrow { color: var(--gold); }
body.theme-awards .section-head h2 { font-family: 'Cinzel', var(--serif); font-weight: 700; letter-spacing: .02em; color: #f7e7bf; }

/* ---------- the stage ---------- */
.aw-gala { background: #070504; min-height: 640px; isolation: isolate; }
.aw-gala::after { display: none; }
.ag-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ag-back { position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 55% 70% at 72% 40%, rgba(255, 214, 140, .22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 25% 30%, rgba(179, 33, 58, .25), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .45) 0 18px, rgba(120, 18, 34, .18) 34px, rgba(0, 0, 0, .4) 58px, rgba(90, 12, 26, .14) 80px),
    linear-gradient(180deg, #1a0407, #0d0204 60%, #070504); }
/* a slowly turning burst of light behind the pedestal */
.ag-rays { position: absolute; z-index: -2; width: 1500px; height: 1500px; left: 72%; top: 46%; margin: -750px 0 0 -750px; pointer-events: none; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 150, .16) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 48%); mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 48%);
  animation: ag-spin 90s linear infinite; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
/* spotlights from the rigging */
.ag-beam { position: absolute; top: -40px; z-index: -1; width: 260px; height: 130%; pointer-events: none; transform-origin: 50% 0; mix-blend-mode: screen; filter: blur(10px); will-change: transform;
  background: linear-gradient(180deg, rgba(255, 238, 200, .55), rgba(255, 220, 160, .14) 55%, transparent 90%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.ag-beam.b1 { left: 8%; animation: ag-sweep 11s ease-in-out infinite alternate; }
.ag-beam.b2 { left: 40%; animation: ag-sweep 14s ease-in-out -5s infinite alternate-reverse; opacity: .7; }
.ag-beam.b3 { right: 4%; animation: ag-sweep 12s ease-in-out -2s infinite alternate-reverse; }
@keyframes ag-sweep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.ag-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ag-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 72% 0%, rgba(255, 214, 140, .18), transparent 70%), linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); }
.ag-curtains > div { position: absolute; top: 0; bottom: 0; width: clamp(80px, 11vw, 190px); z-index: 2; pointer-events: none; }
.ag-curtains .l { left: 0; }
.ag-curtains .r { right: 0; transform: scaleX(-1); }
.ag-curtain { width: 100%; height: 100%; max-width: none; filter: drop-shadow(8px 0 18px rgba(0, 0, 0, .7)); }
.ag-tassel { transform-box: fill-box; transform-origin: 50% 0; animation: ag-swing 4s ease-in-out infinite alternate; }
@keyframes ag-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.ag-valance { position: absolute; top: 0; left: 0; width: 100%; height: 86px; max-width: none; z-index: 4; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .65)); }
.aw-gala .aw-hero-in { padding-top: 96px; padding-bottom: 64px; z-index: 3; padding-left: max(var(--gutter), calc(clamp(80px, 11vw, 190px) - 30px)); padding-right: max(var(--gutter), calc(clamp(80px, 11vw, 190px) - 30px)); }

/* ---------- the words ---------- */
.aw-gala .aw-eyebrow { font-family: 'Cinzel', var(--serif); font-size: 13px; letter-spacing: .26em; color: #f3d48a; text-shadow: 0 0 14px rgba(233, 196, 106, .45); }
.ag-title { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 16px 0 14px !important; background: none !important; -webkit-text-fill-color: initial !important; }
.ag-pre { font: 600 clamp(20px, 2.4vw, 30px)/1.1 'Cinzel', var(--serif); letter-spacing: .14em; text-transform: uppercase; color: #f7f0e1; -webkit-text-fill-color: #f7f0e1; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.ag-year { display: inline-flex; align-items: center; gap: 4px; margin-left: -8px; }
.ag-year b { font: 800 clamp(84px, 11vw, 158px)/.95 'Cinzel', var(--serif); letter-spacing: .02em;
  background: linear-gradient(100deg, #fff6d6 0%, #e9c46a 18%, #fff3c9 30%, #b5832a 46%, #f3d48a 62%, #c9952f 80%, #fff6d6 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #5a3c08) drop-shadow(0 0 30px rgba(255, 200, 100, .35)); animation: rt-foil 7s linear infinite, ag-reveal 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ag-reveal { from { opacity: 0; transform: scale(.86); letter-spacing: .2em; } to { opacity: 1; transform: none; } }
.ag-laurel { width: clamp(46px, 5.6vw, 82px); height: auto; flex: none; filter: drop-shadow(0 0 10px rgba(233, 196, 106, .35)); animation: rt-in 1.2s .3s both; }
.aw-gala .aw-hero-copy > p { font: italic 500 clamp(18px, 1.7vw, 21px)/1.5 'Cormorant Garamond', var(--serif); color: #eadfca; }
/* stats become engraved plaques */
.aw-gala .aw-stats { gap: 12px; }
.aw-gala .aw-stats div { border: 1px solid rgba(233, 196, 106, .45); padding: 12px 18px; border-radius: 6px; text-align: center; min-width: 112px;
  background: linear-gradient(180deg, rgba(40, 30, 16, .85), rgba(14, 10, 6, .85)); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(233, 196, 106, .25), 0 10px 24px rgba(0, 0, 0, .5); }
.aw-gala .aw-stats b { font: 800 30px/1 'Cinzel', var(--serif); background: linear-gradient(180deg, #fff3c9, #c9952f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aw-gala .aw-stats span { font-size: 10.5px; letter-spacing: .2em; color: #cdbb98; }
.aw-gala .btn-gold { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff0c2, #e2b252 52%, #a87522); color: #1a1206; border: 1px solid #ffe9b0;
  box-shadow: 0 0 0 4px rgba(233, 196, 106, .14), 0 10px 30px rgba(233, 170, 70, .4), inset 0 1px 0 rgba(255, 255, 255, .8); font-family: 'Cinzel', var(--serif); letter-spacing: .08em; }
.aw-gala .btn-gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%); transform: translateX(-120%); animation: rt-gleam 4s 1.5s ease-in-out infinite; }
.aw-gala .aw-years { background: rgba(0, 0, 0, .45); border-color: rgba(233, 196, 106, .4); }
.aw-gala .aw-years a.on { background: linear-gradient(180deg, #fbe7ae, #c9952f); }

/* ---------- the pedestal of winners ---------- */
.ag-podium { position: relative; display: flex; flex-direction: column; align-items: center; }
.ag-spot { position: absolute; left: 50%; top: -120px; width: 520px; height: 640px; margin-left: -260px; pointer-events: none; z-index: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 50% 14% at 50% 92%, rgba(255, 236, 190, .45), transparent 70%), linear-gradient(180deg, rgba(255, 240, 205, .32), rgba(255, 225, 170, .08) 80%, transparent);
  clip-path: polygon(40% 0, 60% 0, 96% 100%, 4% 100%); filter: blur(6px); animation: ag-breathe 5s ease-in-out infinite; }
@keyframes ag-breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.ag-podium .aw-fan { width: 100%; z-index: 1; height: 380px; margin-bottom: -52px; }
.ag-podium .aw-fan > div { top: 46%; }
.ag-podium .aw-fan > div { animation: ag-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.ag-podium .aw-fan-0 { animation-delay: .5s; }
.ag-podium .aw-fan-4 { animation-delay: .6s; }
.ag-podium .aw-fan-1 { animation-delay: .3s; }
.ag-podium .aw-fan-3 { animation-delay: .4s; }
.ag-podium .aw-fan-2 { animation-delay: .1s; }
@keyframes ag-rise { from { opacity: 0; translate: 0 60px; } }
.ag-podium .aw-fan-2 .cover, .ag-podium .aw-fan-2 img { box-shadow: 0 0 0 2px #f3d48a, 0 0 40px rgba(255, 210, 120, .55), 0 30px 60px rgba(0, 0, 0, .7); }
.ag-fan-seal { position: absolute; right: -26px; top: -22px; width: 74px; z-index: 6; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); transform: rotate(10deg); }
.ag-pedestal { position: relative; z-index: 0; width: min(460px, 100%); height: auto; max-width: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.ag-seal-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ag-glint { animation: ag-glint 3.6s ease-in-out infinite; }
@keyframes ag-glint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: .9; } }

/* ---------- winners: gilded plaques ---------- */
.ag-h2 { display: inline-flex !important; align-items: center; gap: 14px; font-family: 'Cinzel', var(--serif) !important; font-size: clamp(32px, 4vw, 52px) !important;
  background: linear-gradient(180deg, #fff6d6, #e9c46a 55%, #b5832a); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.ag-h2 .ag-laurel { width: 40px; animation: none; }
body.theme-awards .aw-winners { gap: 26px 22px; }
body.theme-awards .aw-win { position: relative; padding: 16px 16px 18px; border-radius: 10px; overflow: visible;
  background: linear-gradient(180deg, #1c160e, #0e0b07); border: 1px solid rgba(233, 196, 106, .5);
  box-shadow: inset 0 0 0 4px #0e0b07, inset 0 0 0 5px rgba(233, 196, 106, .28), 0 18px 34px -14px rgba(0, 0, 0, .9);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
body.theme-awards .aw-win:hover { transform: translateY(-6px); border-color: #f3d48a; box-shadow: inset 0 0 0 4px #0e0b07, inset 0 0 0 5px rgba(233, 196, 106, .5), 0 26px 44px -14px rgba(0, 0, 0, .9), 0 0 36px rgba(233, 196, 106, .22); }
body.theme-awards .aw-win-cover { perspective: 700px; }
body.theme-awards .aw-win-cover .cover { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .25s ease-out, box-shadow .3s; }
body.theme-awards .aw-win-cover::after { content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) 20%, rgba(255, 245, 210, .35), transparent 45%), linear-gradient(115deg, transparent 40%, rgba(255, 236, 190, .18) 50%, transparent 60%); }
body.theme-awards .aw-win:hover .aw-win-cover::after { opacity: 1; }
.ag-seal { position: absolute; top: -18px; right: -16px; width: 62px; z-index: 3; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .65)); transform: rotate(12deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.aw-win:hover .ag-seal { transform: rotate(-8deg) scale(1.12); }
body.theme-awards .aw-win-cat { font: 700 10.5px/1.3 'Cinzel', var(--serif); letter-spacing: .16em; color: #e9c46a; margin-top: 6px; }
body.theme-awards .aw-win h3 { font: 700 19px/1.2 'Cormorant Garamond', var(--serif); color: #fbf3e2; }
body.theme-awards .aw-win .muted { font-style: italic; }
body.theme-awards .aw-votes { color: #b9a988; }
.ag-fav { border-color: #f3d48a !important; box-shadow: inset 0 0 0 4px #0e0b07, inset 0 0 0 5px rgba(243, 212, 138, .7), 0 0 44px rgba(233, 196, 106, .3), 0 24px 40px -14px rgba(0, 0, 0, .9) !important; }
.ag-fav-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 4; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px; font: 700 10px/1 'Cinzel', var(--serif); letter-spacing: .14em; text-transform: uppercase; color: #1a1206;
  background: linear-gradient(180deg, #fff0c2, #d9a748); border: 1px solid #fff3c9; box-shadow: 0 4px 14px rgba(233, 170, 70, .45); }
.ag-fav-tag .ms { font-size: 14px; }

/* ---------- category bar and the top 10s ---------- */
body.theme-awards .aw-jump { background: rgba(11, 9, 7, .9); border-bottom-color: rgba(233, 196, 106, .25); }
body.theme-awards .aw-jump-track a { background: #15110c; border-color: rgba(233, 196, 106, .28); color: #e2d6bf; font-family: 'Cinzel', var(--serif); font-size: 12.5px; letter-spacing: .04em; }
body.theme-awards .aw-jump-track a.on { background: linear-gradient(180deg, #fbe7ae, #c9952f); color: #1a1206; border-color: #f3d48a; box-shadow: 0 0 18px rgba(233, 196, 106, .35); }
body.theme-awards .aw-jump-btn { background: #15110c; border-color: rgba(233, 196, 106, .4); color: #f3d48a; }
body.theme-awards .aw-cat { border-top: 0; position: relative; }
body.theme-awards .aw-cat::before { content: ''; display: block; height: 1px; margin-bottom: 4px; background: linear-gradient(90deg, transparent, rgba(233, 196, 106, .55), transparent); }
body.theme-awards .aw-card-cover .cover, body.theme-awards .aw-card-cover img { box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .9), 0 0 0 1px rgba(233, 196, 106, .18); }
body.theme-awards .aw-card.win .aw-card-cover .cover, body.theme-awards .aw-card.win .aw-card-cover img { box-shadow: 0 0 0 2px #f3d48a, 0 0 30px rgba(233, 196, 106, .35), 0 18px 34px -10px rgba(0, 0, 0, .9); }
body.theme-awards .aw-rank { background: #120e09; color: #f3d48a; border: 1.5px solid rgba(233, 196, 106, .7); font-family: 'Cinzel', var(--serif); }
.ag-rank { position: absolute; left: 6px; bottom: -30px; width: 54px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 0; }
.ag-rank svg { width: 100%; height: auto; display: block; }
.aw-card-cover:hover .ag-rank { transform: rotate(-10deg); }
body.theme-awards .aw-card h3 { margin-top: 24px; font: 700 17px/1.2 'Cormorant Garamond', var(--serif); color: #fbf3e2; }
body.theme-awards .aw-bar { background: #2a2216; height: 5px; }
body.theme-awards .aw-bar i { position: relative; overflow: hidden; background: linear-gradient(90deg, #8f6418, #e9c46a 70%, #fff3c9); box-shadow: 0 0 10px rgba(233, 196, 106, .5); }
body.theme-awards .aw-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-100%); animation: ag-bar 3s ease-in-out infinite; }
@keyframes ag-bar { 0%, 50% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
body.theme-awards .aw-card .btn-ghost { background: rgba(233, 196, 106, .06); }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .aw-gala .aw-hero-in { padding-top: 80px; text-align: center; }
  .aw-gala .aw-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .ag-title { align-items: center; }
  .ag-year { margin-left: 0; }
  .aw-gala .aw-stats, .aw-gala .aw-cta { justify-content: center; }
  .ag-rays { left: 50%; top: 24%; }
  .ag-podium .aw-fan { height: 320px; margin-bottom: -44px; }
}
@media (max-width: 640px) {
  .aw-gala { min-height: 0; }
  .ag-valance { height: 58px; }
  .aw-gala .aw-eyebrow { font-size: 10.5px; letter-spacing: .14em; flex-wrap: wrap; justify-content: center; }
  .ag-curtains > div { width: 54px; }
  .aw-gala .aw-hero-in { padding-top: 62px; padding-left: 20px; padding-right: 20px; }
  .ag-beam { width: 160px; }
  .ag-beam.b2 { display: none; }
  .ag-spot { width: 340px; margin-left: -170px; top: -60px; height: 420px; }
  .ag-pedestal { width: min(320px, 92%); }
  .ag-podium .aw-fan { height: 250px; margin-bottom: -34px; }
  .ag-podium .aw-fan > div { top: 52%; }
  .ag-fan-seal { width: 52px; right: -18px; top: -16px; }
  .ag-year b { font-size: clamp(64px, 20vw, 92px); }
  .ag-laurel { width: 40px; }
  .aw-gala .aw-stats { gap: 8px; }
  .aw-gala .aw-stats div { min-width: 0; flex: 1; padding: 10px 6px; }
  .aw-gala .aw-stats b { font-size: 22px; }
  .aw-gala .aw-stats span { font-size: 9px; letter-spacing: .12em; }
  .ag-seal { width: 48px; top: -12px; right: -10px; }
  body.theme-awards .aw-win { padding: 12px 10px 14px; }
  body.theme-awards .aw-win h3 { font-size: 16.5px; }
  .ag-h2 .ag-laurel { width: 28px; }
  .ag-fav-tag { font-size: 8.5px; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-rays, .ag-beam, .ag-tassel, .ag-spot, .ag-glint, .ag-year b, .aw-gala .btn-gold::after, body.theme-awards .aw-bar i::after, .ag-podium .aw-fan > div { animation: none !important; }
}

/* ==========================================================================
   DARK ROMANCE — black, blood red and cold silver. body.theme-dark-romance is set
   on every page inside Dark Romance (and its sub-categories). The hero reuses the
   Romantasy scene scaffolding (.rt-*) and recolours it.
   ========================================================================== */
body.theme-dark-romance {
  --canvas: #0a0507; --white: #12090c; --card: #170c10; --card-2: #201117; --line: #2e1820; --line-2: #3c2029;
  --ink: #f5ecef; --ink-2: #d8c7cd; --muted: #a18c94;
  --burgundy: #d81f45; --burgundy-2: #ef3a5d; --burgundy-ink: #22020a; --rose: #e87d93;
  --gold: #d9d1dc; --gold-2: #f1ebf3; --gold-soft: #22171d;
  --sage: #9bc7b4; --sage-soft: rgba(155, 199, 180, .12); --ember: #ff4a62;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(216, 31, 69, .2);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .85), 0 0 0 1px rgba(216, 31, 69, .35);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(216, 31, 69, .13), transparent 45%),
    radial-gradient(ellipse at 92% 45%, rgba(120, 10, 40, .16), transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(216, 31, 69, .08), transparent 50%);
}
body.theme-dark-romance .topbar { background: linear-gradient(90deg, #12030a, #5a0a1e 50%, #12030a); color: #ffd6df; }
body.theme-dark-romance .header { background: rgba(10, 5, 7, .9); border-bottom-color: rgba(216, 31, 69, .25); }
body.theme-dark-romance .search input { background: var(--white); color: var(--ink); }
body.theme-dark-romance .nav a:hover, body.theme-dark-romance .nav a.active { background: var(--card-2); color: #ff8fa3; }
body.theme-dark-romance .btn-primary { background: linear-gradient(180deg, #e8304f, #9a0f2c); color: #fff; box-shadow: 0 0 0 1px rgba(255, 120, 150, .3), 0 6px 18px rgba(216, 31, 69, .35); }
body.theme-dark-romance .btn-primary:hover { background: linear-gradient(180deg, #f2405e, #b01434); box-shadow: 0 0 0 1px rgba(255, 150, 175, .55), 0 8px 26px rgba(216, 31, 69, .6); }
body.theme-dark-romance .btn-gold { background: linear-gradient(180deg, #ffffff, #b9b0bf); color: #1a0710; }
body.theme-dark-romance .btn-ghost { color: var(--ink); }
body.theme-dark-romance .filters a.active { background: linear-gradient(90deg, #b01434, #4a0618); color: #fff; }
body.theme-dark-romance .chip-ember, body.theme-dark-romance .form-error { background: rgba(255, 74, 98, .12); }
body.theme-dark-romance .chip-gold { background: rgba(217, 209, 220, .12); color: var(--gold-2); border-color: rgba(217, 209, 220, .4); }
body.theme-dark-romance .cover.photo { background: #160a0f; }
body.theme-dark-romance .footer { background: #070304; border-top-color: rgba(216, 31, 69, .2); }
body.theme-dark-romance .mobile-tabbar { background: #10070a; box-shadow: 0 -6px 18px rgba(0, 0, 0, .6); }
body.theme-dark-romance .next-up { background: var(--card); }
body.theme-dark-romance ::selection { background: #d81f45; color: #fff; }
body.theme-dark-romance .book-card { background: linear-gradient(180deg, #170b10, #0f070a); border-color: rgba(216, 31, 69, .16); }
body.theme-dark-romance .book-card:hover { border-color: rgba(255, 74, 98, .6); box-shadow: 0 18px 40px -14px rgba(216, 31, 69, .5), 0 0 0 1px rgba(255, 74, 98, .2); }
body.theme-dark-romance .book-card .media { overflow: hidden; background: radial-gradient(ellipse at 50% 18%, rgba(216, 31, 69, .22), transparent 70%), linear-gradient(180deg, #1e0c13, #12070b); }
body.theme-dark-romance .book-card .media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 47%, rgba(255, 90, 120, .18) 53%, transparent 65%); transform: translateX(-130%); transition: transform 1s cubic-bezier(.3, .6, .3, 1); }
body.theme-dark-romance .book-card:hover .media::after { transform: translateX(130%); }
body.theme-dark-romance .book-card .wish { background: rgba(14, 5, 9, .85); }
body.theme-dark-romance .list-head h2 { font-family: 'Bodoni Moda', var(--serif); font-style: italic; color: #f1ebf3; }

/* ---------- the hero: a storm night ---------- */
.dr-hero { background: #050204; color: #f5ecef; }
.dr-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #030103 0%, #0d0308 26%, #240611 50%, #4e0b1c 70%, #7a1426 86%, #9a2a2a 100%); }
.dr-clouds i { position: absolute; border-radius: 50%; filter: blur(22px); will-change: transform; animation: dr-drift 70s linear infinite;
  background: radial-gradient(ellipse at 50% 70%, rgba(110, 16, 34, .85), rgba(18, 4, 9, .92) 55%, transparent 72%); }
.dr-clouds i:nth-child(1) { left: 40%; top: 14%; width: 46%; height: 16%; animation-duration: 90s; animation-delay: -30s; }
.dr-clouds i:nth-child(2) { left: 10%; top: 30%; width: 38%; height: 12%; opacity: .8; animation-duration: 70s; animation-delay: -10s; }
.dr-clouds i:nth-child(3) { left: 55%; top: 4%; width: 34%; height: 10%; opacity: .7; animation-duration: 110s; animation-delay: -60s; }
.dr-clouds i:nth-child(4) { left: 20%; top: 2%; width: 50%; height: 14%; opacity: .55; animation-duration: 130s; }
@keyframes dr-drift { from { transform: translateX(-35vw); } to { transform: translateX(45vw); } }
.dr-blink { animation: dr-blink 2.4s steps(1) infinite; }
@keyframes dr-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
.dr-hero .rt-win { animation-duration: 6s; }
.dr-watcher { fill: #12030a; opacity: 0; animation: dr-watch 16s ease-in-out infinite; }
@keyframes dr-watch { 0%, 52%, 100% { opacity: 0; } 58%, 84% { opacity: 1; } }
.dr-tower-win { animation: rt-flicker 4s infinite; }
.dr-eyes-in { transform-box: fill-box; transform-origin: center; animation: dr-eyeblink 6s infinite; }
@keyframes dr-eyeblink { 0%, 44%, 50%, 100% { transform: scaleY(1); opacity: 1; } 47% { transform: scaleY(.08); } 70%, 78% { opacity: 0; } }
.dr-hero .rt-fog.f1 { background-image: radial-gradient(ellipse 16% 42% at 18% 60%, rgba(160, 40, 70, .22), transparent 70%), radial-gradient(ellipse 18% 36% at 48% 50%, rgba(90, 20, 50, .24), transparent 70%), radial-gradient(ellipse 15% 40% at 80% 62%, rgba(150, 30, 60, .2), transparent 70%); }
.dr-hero .rt-fog.f2 { background-image: radial-gradient(ellipse 18% 50% at 22% 70%, rgba(120, 30, 55, .3), transparent 70%), radial-gradient(ellipse 20% 46% at 55% 64%, rgba(70, 14, 34, .34), transparent 70%), radial-gradient(ellipse 14% 50% at 84% 72%, rgba(140, 30, 60, .26), transparent 70%); }
.dr-flash { background: radial-gradient(ellipse 80% 70% at 60% 20%, rgba(255, 220, 235, .65), rgba(255, 120, 150, .2) 50%, transparent 80%); }
.dr-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: em-flick 1.1s ease-in-out infinite alternate; }
.dr-candle-glow { animation: dr-glow 2.2s ease-in-out infinite alternate; }
@keyframes dr-glow { from { opacity: .7; } to { opacity: 1; } }
.dr-hero .rt-fade { background: linear-gradient(rgba(10, 5, 7, 0), rgba(10, 5, 7, .7) 55%, var(--canvas)); }
.dr-hero::after { background: radial-gradient(ellipse 46% 58% at 24% 50%, rgba(5, 1, 3, .66), transparent 72%); }
.dr-hero .rt-eyebrow { color: #ffc2cf; font-family: 'Cormorant Garamond', var(--serif); font-size: 15px; font-style: italic; letter-spacing: .26em; }
.dr-hero .rt-eyebrow i, .dr-realms .rt-eyebrow i { color: #ff3046; }
.dr-hero .rt-title { font-family: 'Bodoni Moda', var(--serif); font-style: italic; font-weight: 700; letter-spacing: -.01em; line-height: .98; padding: 0 .12em 0 .06em; margin-left: -.06em;
  background: linear-gradient(100deg, #ffffff 0%, #d8d2de 20%, #ffffff 34%, #8f8698 50%, #f1ebf3 66%, #ff9aaa 82%, #ffffff 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 0, 14, .9)) drop-shadow(0 0 28px rgba(216, 31, 69, .55)); }
.dr-hero .rt-lede { color: #f2e4e8; }
.dr-hero .rt-btn { background: linear-gradient(180deg, #ff4a62, #c2173f 55%, #7a0b22); color: #fff; border-color: #ff9aaa; box-shadow: 0 0 0 4px rgba(216, 31, 69, .18), 0 10px 28px rgba(216, 31, 69, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.dr-hero .rt-btn:hover { box-shadow: 0 0 0 5px rgba(216, 31, 69, .28), 0 14px 34px rgba(216, 31, 69, .6), inset 0 1px 0 rgba(255, 255, 255, .4); }
.dr-hero .rt-btn-ghost { border-color: rgba(217, 209, 220, .55); background: rgba(10, 2, 6, .45); }
.dr-hero .rt-btn-ghost:hover { background: rgba(216, 31, 69, .16); }
.dr-hero .rt-stats { color: #dcc6cd; }
.dr-hero .rt-stats b { font-family: 'Bodoni Moda', var(--serif); font-style: italic; color: #fff; text-shadow: 0 0 14px rgba(216, 31, 69, .7); }
.dr-hero .rt-hero-em { filter: drop-shadow(0 0 18px rgba(216, 31, 69, .6)); }
/* ---------- sub-category cards ---------- */
.dr-realms .rt-sec-head h2 { font-family: 'Bodoni Moda', var(--serif); font-style: italic; color: #fff; text-shadow: 0 0 24px rgba(216, 31, 69, .45); }
.dr-realms .rt-eyebrow { color: #ff9aaa; text-shadow: none; }
.dr-realms .rt-realm { background-color: var(--hue);
  background-image: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--hue), #d81f45 30%), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--hue) 60%, #0a0507), #0a0406);
  border-color: rgba(217, 209, 220, .2); }
.dr-realms .rt-realm::before { background-image: radial-gradient(1px 1px at 18% 26%, #fff6, transparent), radial-gradient(1px 1px at 76% 18%, #ff9aaa88, transparent), radial-gradient(1.4px 1.4px at 86% 62%, #fff5, transparent), radial-gradient(1px 1px at 30% 78%, #ff9aaa77, transparent); }
.dr-realms .rt-realm::after { background: linear-gradient(115deg, transparent 38%, rgba(255, 210, 220, .16) 50%, transparent 62%); }
.dr-realms .rt-realm:hover, .dr-realms .rt-realm:focus-visible { border-color: rgba(255, 74, 98, .75); box-shadow: 0 22px 44px -16px rgba(216, 31, 69, .6), 0 0 0 1px rgba(255, 74, 98, .3), inset 0 0 40px rgba(216, 31, 69, .12); }
.dr-realms .rt-realm.on { border-color: #ff4a62; box-shadow: 0 0 0 1px #ff4a62, 0 0 34px rgba(216, 31, 69, .4); }
.dr-realms .rt-em { filter: drop-shadow(0 0 10px rgba(216, 31, 69, .35)); }
.dr-realms .rt-realm:hover .rt-em { filter: drop-shadow(0 0 22px rgba(255, 60, 90, .7)); }
.dr-realms .rt-realm-name { font-family: 'Bodoni Moda', var(--serif); font-style: italic; font-size: 21px; color: #fff; }
.dr-realms .rt-realm-blurb { color: #e6d2d8; }
.dr-realms .rt-realm-count { color: #ff8fa3; }
.dr-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top-color: rgba(255, 74, 98, .25); }
.dr-realms .rt-realm.all { --hue: #2a0a14; }
.dr-realms .rt-dots::before, .dr-realms .rt-dots::after { background: linear-gradient(90deg, transparent, rgba(255, 74, 98, .6)); }
.dr-realms .rt-dots button { border-color: rgba(255, 74, 98, .6); background: rgba(216, 31, 69, .15); }
.dr-realms .rt-dots button.on { background: #ff4a62; box-shadow: 0 0 10px rgba(255, 74, 98, .9); }
.dr-realms .rt-swipe { color: #d8b9c2; }
.dr-realms .rt-swipe i { color: #ff4a62; }
.dr-realms.compact .rt-realm-name { font-size: 14.5px; }
/* emblem motion */
.dr-ribbon { animation: dr-ribbon 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 100% 0; }
@keyframes dr-ribbon { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
.dr-look { animation: dr-look 5s ease-in-out infinite; }
@keyframes dr-look { 0%, 18% { transform: translateX(0); } 28%, 44% { transform: translateX(-9px); } 56%, 72% { transform: translateX(8px); } 84%, 100% { transform: translateX(0); } }
.rt-realm:hover .dr-look { animation-duration: 1.6s; }
.dr-crack { stroke-dasharray: 60; stroke-dashoffset: 60; animation: dr-crack 4s ease-in-out infinite; }
@keyframes dr-crack { 0%, 20% { stroke-dashoffset: 60; opacity: .3; } 50%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.dr-realms .em-lid, .dr-hero .em-lid { transform-origin: 60px 18px; }

/* ==========================================================================
   THRILLER & MYSTERY — a noir street at 3 a.m.: wet asphalt, sodium lamplight,
   neon red and evidence yellow. body.theme-thriller is set inside the category.
   ========================================================================== */
body.theme-thriller {
  --canvas: #0a0e13; --white: #11171e; --card: #141b23; --card-2: #1a232d; --line: #24303c; --line-2: #2f3d4b;
  --ink: #eef2f5; --ink-2: #c8d1d9; --muted: #8b98a5;
  --burgundy: #e5383b; --burgundy-2: #f25255; --burgundy-ink: #1c0405; --rose: #f08a7a;
  --gold: #f2b544; --gold-2: #ffd27a; --gold-soft: #241d10;
  --sage: #8fd3c1; --sage-soft: rgba(143, 211, 193, .12); --ember: #ff5a4a;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(242, 181, 68, .16);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .85), 0 0 0 1px rgba(242, 181, 68, .3);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 85% -10%, rgba(242, 181, 68, .09), transparent 45%), radial-gradient(ellipse at 0% 60%, rgba(60, 110, 160, .1), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px);
}
body.theme-thriller .topbar { background: linear-gradient(90deg, #0d1218, #2a1a08 50%, #0d1218); color: #ffe2a0; border-bottom: 3px solid transparent; border-image: repeating-linear-gradient(-45deg, #f5c400 0 10px, #111 10px 20px) 3; }
body.theme-thriller .header { background: rgba(10, 14, 19, .92); border-bottom-color: rgba(242, 181, 68, .2); }
body.theme-thriller .search input { background: var(--white); color: var(--ink); }
body.theme-thriller .nav a:hover, body.theme-thriller .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-thriller .btn-primary { background: linear-gradient(180deg, #f04548, #b3201c); color: #fff; box-shadow: 0 0 0 1px rgba(255, 140, 140, .25), 0 6px 18px rgba(229, 56, 59, .3); }
body.theme-thriller .btn-primary:hover { background: linear-gradient(180deg, #f75a5d, #c42724); box-shadow: 0 0 0 1px rgba(255, 160, 160, .5), 0 8px 26px rgba(229, 56, 59, .5); }
body.theme-thriller .btn-gold { background: #f5c400; color: #111; }
body.theme-thriller .btn-ghost { color: var(--ink); }
body.theme-thriller .filters a.active { background: #f5c400; color: #111; }
body.theme-thriller .chip-gold { background: rgba(242, 181, 68, .14); color: var(--gold-2); border-color: rgba(242, 181, 68, .45); }
body.theme-thriller .cover.photo { background: #10161c; }
body.theme-thriller .footer { background: #06090c; border-top-color: rgba(242, 181, 68, .16); }
body.theme-thriller .mobile-tabbar { background: #0d1217; box-shadow: 0 -6px 18px rgba(0, 0, 0, .6); }
body.theme-thriller .next-up { background: var(--card); }
body.theme-thriller ::selection { background: #f5c400; color: #111; }
body.theme-thriller .book-card { background: linear-gradient(180deg, #141b23, #0d1218); border-color: rgba(200, 215, 230, .1); }
body.theme-thriller .book-card:hover { border-color: rgba(242, 181, 68, .55); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 181, 68, .2), 0 0 30px rgba(242, 181, 68, .12); }
body.theme-thriller .book-card .media { overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(255, 217, 138, .16), transparent 60%), #0e141a; }
/* hovering a card puts it under a flashlight */
body.theme-thriller .book-card .media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at 50% 40%, rgba(255, 236, 190, .22), transparent 55%); }
body.theme-thriller .book-card:hover .media::after { opacity: 1; }
body.theme-thriller .book-card .wish { background: rgba(10, 14, 19, .85); }
body.theme-thriller .list-head h2 { font-family: 'Oswald', var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #fff; }

/* ---------- the hero: a street at 3 a.m. ---------- */
.th-hero { background: #04070a; color: #eef2f5; }
.th-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #03060a 0%, #08111a 36%, #102030 64%, #1b3244 86%, #24405a 100%); }
.th-clouds i { position: absolute; border-radius: 50%; filter: blur(26px); will-change: transform; animation: dr-drift 100s linear infinite;
  background: radial-gradient(ellipse, rgba(40, 60, 78, .75), rgba(14, 22, 30, .6) 55%, transparent 72%); }
.th-clouds i:nth-child(1) { left: 50%; top: 6%; width: 50%; height: 14%; animation-delay: -40s; }
.th-clouds i:nth-child(2) { left: 5%; top: 18%; width: 40%; height: 12%; animation-duration: 80s; }
.th-clouds i:nth-child(3) { left: 60%; top: 20%; width: 30%; height: 9%; opacity: .7; animation-duration: 120s; animation-delay: -70s; }
.th-hero .rt-fog.f1 { bottom: 4%; background-image: radial-gradient(ellipse 16% 42% at 18% 60%, rgba(120, 150, 175, .16), transparent 70%), radial-gradient(ellipse 18% 36% at 48% 50%, rgba(100, 130, 160, .14), transparent 70%), radial-gradient(ellipse 15% 40% at 80% 62%, rgba(140, 160, 180, .14), transparent 70%); }
.th-win { animation: th-win 9s infinite; }
@keyframes th-win { 0%, 47%, 61%, 100% { opacity: 1; } 48%, 60% { opacity: .08; } }
.th-neon text { animation: th-neon 7s infinite; }
.th-neon .th-flick { animation: th-flick 3.2s infinite; }
@keyframes th-neon { 0%, 92%, 94%, 100% { opacity: 1; } 93% { opacity: .4; } 95% { opacity: .5; } }
@keyframes th-flick { 0%, 30%, 34%, 52%, 100% { opacity: 1; } 31%, 33% { opacity: .1; } 50%, 51% { opacity: .15; } }
.th-neon-ref { animation: th-neon 7s infinite; }
.th-cone { animation: th-lamp 11s infinite; }
@keyframes th-lamp { 0%, 70%, 74%, 100% { opacity: 1; } 71% { opacity: .35; } 72% { opacity: .9; } 73% { opacity: .2; } }
.th-ember { animation: th-ember 4s ease-in-out infinite; }
@keyframes th-ember { 0%, 60%, 100% { opacity: .55; } 75% { opacity: 1; } }
.th-tail { animation: dr-glow 1.8s ease-in-out infinite alternate; }
.th-clockglow { transform-box: fill-box; transform-origin: center; }
.th-clockglow.strike { animation: th-strike 1.3s ease-out 3; }
@keyframes th-strike { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
/* the flashlight: a soft warm beam, everything else a little darker; the clues show only inside it */
.th-dark { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle 230px at var(--bx, 70%) var(--by, 85%), rgba(255, 236, 190, .1), rgba(255, 236, 190, .03) 45%, rgba(2, 4, 8, .5) 100%); }
.th-clues { -webkit-mask-image: radial-gradient(circle 170px at var(--cx, -999px) var(--cy, -999px), #000 30%, transparent 100%); mask-image: radial-gradient(circle 170px at var(--cx, -999px) var(--cy, -999px), #000 30%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(127, 227, 255, .9)); }
/* police lights sweep past */
.th-siren { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; mix-blend-mode: screen; transition: opacity .6s; }
.th-siren::before, .th-siren::after { content: ''; position: absolute; inset: 0; }
.th-siren::before { background: radial-gradient(ellipse 50% 70% at 0% 85%, rgba(255, 40, 50, .55), transparent 70%); }
.th-siren::after { background: radial-gradient(ellipse 50% 70% at 100% 85%, rgba(40, 110, 255, .55), transparent 70%); }
.th-siren.on { opacity: 1; }
.th-siren.on::before { animation: th-red .5s steps(1) infinite; }
.th-siren.on::after { animation: th-red .5s steps(1) -.25s infinite; }
@keyframes th-red { 0% { opacity: 1; } 50% { opacity: 0; } }
.th-camflash { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #fff; opacity: 0; }
.th-camflash.go { animation: th-cam .55s ease-out; }
@keyframes th-cam { 0% { opacity: .75; } 100% { opacity: 0; } }
.th-struck .th-title { animation: th-shake .5s 2 !important; }
@keyframes th-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
/* crime-scene tape across the bottom corners */
.th-tapes { position: absolute; inset: 0; overflow: hidden; }
.th-tape { position: absolute; width: 70vw; max-width: 900px; height: 30px; background: #f5c400; color: #111; overflow: hidden; white-space: nowrap; display: flex; align-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55); border-top: 1px solid #fff2a8; border-bottom: 1px solid #a88600; }
.th-tape span { display: inline-flex; animation: th-tape 40s linear infinite; }
.th-tape b { font: 700 15px/1 'Oswald', Impact, sans-serif; letter-spacing: .14em; padding: 0 14px; }
.th-tape b::after { content: '▲'; font-size: 9px; margin-left: 28px; vertical-align: 2px; }
.th-tape.a { left: -8vw; bottom: 34px; transform: rotate(6deg); transform-origin: 0 50%; }
.th-tape.b { right: -10vw; bottom: 64px; transform: rotate(-7deg); transform-origin: 100% 50%; }
.th-tape.b span { animation-direction: reverse; }
@keyframes th-tape { to { transform: translateX(-50%); } }
.th-hero .rt-fade { height: 70px; background: linear-gradient(rgba(10, 14, 19, 0), var(--canvas)); z-index: 3; }
.th-hero::after { background: radial-gradient(ellipse 46% 58% at 24% 50%, rgba(2, 4, 8, .62), transparent 72%); }
/* ---------- the words ---------- */
.th-hero .rt-eyebrow { font: 400 14px/1.3 'Special Elite', 'Courier New', monospace; letter-spacing: .22em; color: #f5c400; }
.th-hero .rt-eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: dr-blink 1.4s steps(1) infinite; }
.th-title { position: relative; font-family: 'Oswald', Impact, sans-serif !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .02em !important; line-height: .95 !important; font-size: clamp(44px, 6.6vw, 96px) !important;
  background: none !important; color: #f4f1ea !important; -webkit-text-fill-color: #f4f1ea; filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 30px rgba(255, 217, 138, .25)) !important; animation: none; }
.th-title .w { position: relative; }
/* each word is "redacted" by a black bar that slides away */
.th-title .w::after { content: ''; position: absolute; left: -4px; right: -4px; top: 14%; bottom: 10%; background: #000; transform-origin: 100% 50%; animation: th-redact .7s cubic-bezier(.7, 0, .3, 1) both; }
.th-title .w:nth-child(1)::after { animation-delay: .45s; }
.th-title .w:nth-child(2)::after { animation-delay: .7s; }
.th-title .w:nth-child(3)::after { animation-delay: .95s; }
.th-title .w:nth-child(n+4)::after { animation-delay: 1.2s; }
@keyframes th-redact { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.th-hero .rt-lede { font: 400 clamp(16px, 1.5vw, 19px)/1.55 'Special Elite', 'Courier New', monospace; color: #e3e8ec; }
.th-hero .rt-btn { background: #f5c400; color: #111; border: 1px solid #ffe36a; font-family: 'Oswald', var(--sans); text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(245, 196, 0, .16), 0 10px 28px rgba(245, 196, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.th-hero .rt-btn:hover { box-shadow: 0 0 0 5px rgba(245, 196, 0, .25), 0 14px 34px rgba(245, 196, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.th-hero .rt-btn-ghost { border-color: rgba(238, 242, 245, .5); background: rgba(4, 7, 10, .5); font-family: 'Oswald', var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.th-hero .rt-btn-ghost:hover { background: rgba(245, 196, 0, .12); border-color: #f5c400; }
.th-hero .rt-stats { font-family: 'Special Elite', monospace; color: #c8d1d9; }
.th-hero .rt-stats b { font-family: 'Oswald', var(--sans); color: #f5c400; text-shadow: none; }
.th-hint { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1.2 'Special Elite', monospace; color: #9fb0bf; animation: rt-in 1s 1.4s both; }
.th-hint .ms { font-size: 18px; color: #ffd98a; }
.th-hero-em { width: 92px; height: 92px; padding: 8px; background: #e8d9b5; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); filter: none !important; }
.th-divider { width: 280px; }
.th-hero.is-sub .rt-content { padding-bottom: 84px; }
.th-hero.is-sub .rt-content .crumbs { margin-bottom: 10px; }
.th-hero.is-sub .th-hero-em { width: 70px; height: 70px; padding: 6px; }
.th-hero.is-sub .th-title { font-size: clamp(36px, 4.8vw, 70px) !important; }
.th-hero.is-sub .th-hint { display: none; }
/* ---------- case files ---------- */
.th-realms .rt-sec-head h2 { font-family: 'Oswald', var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #fff; text-shadow: none; }
.th-realms .rt-eyebrow { font-family: 'Special Elite', monospace; color: #f5c400; letter-spacing: .2em; text-shadow: none; }
.th-realms .rt-realm-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 30px; padding-top: 18px; }
.th-realms .rt-realm { overflow: visible; border-radius: 3px 10px 6px 6px; border: 0; padding: 34px 24px 22px; color: #2b2117;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%), repeating-linear-gradient(0deg, rgba(120, 90, 40, .05) 0 2px, transparent 2px 5px), #dcc89c;
  box-shadow: 0 1px 0 #b39c6a inset, 0 18px 34px -14px rgba(0, 0, 0, .9), 0 2px 0 #a68d58; transform: rotate(-1deg); }
.th-realms .rt-realm:nth-child(2n) { transform: rotate(1.2deg); }
.th-realms .rt-realm::before { inset: auto; top: -14px; left: 16px; width: 120px; height: 18px; opacity: 1; border-radius: 6px 6px 0 0; background: #cdb787; background-image: none; }
.th-realms .rt-realm::after { background: radial-gradient(circle at 50% 40%, rgba(255, 245, 210, .45), transparent 60%); transform: none; opacity: 0; transition: opacity .4s; }
.th-realms .rt-realm:hover::after { transform: none; opacity: 1; }
.th-realms .rt-realm:hover, .th-realms .rt-realm:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 0 1px 0 #b39c6a inset, 0 26px 44px -14px rgba(0, 0, 0, .95), 0 0 0 2px #f5c400; }
.th-realms .rt-realm.on { box-shadow: 0 0 0 3px #f5c400, 0 18px 34px -14px rgba(0, 0, 0, .9); }
.th-clip { position: absolute; top: -18px; right: 30px; width: 16px; height: 46px; z-index: 2; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .4)); }
.th-stamp { position: absolute; top: 12px; left: 14px; font: 400 11px/1 'Special Elite', monospace; letter-spacing: .12em; text-transform: uppercase; color: #5a4630; }
.th-classified { position: absolute; right: 18px; top: 58px; padding: 4px 9px; font: 700 13px/1 'Oswald', var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #b3201c;
  border: 2px solid #b3201c; border-radius: 3px; transform: rotate(-12deg); opacity: .7; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.th-realms .rt-realm:hover .th-classified { transform: rotate(-12deg) scale(1.12); opacity: .95; }
.th-realms .rt-em { filter: none; }
.th-realms .rt-realm:hover .rt-em { filter: none; transform: scale(1.06) rotate(-2deg); }
.th-realms .rt-realm-name { font: 700 22px/1.15 'Oswald', var(--sans); text-transform: uppercase; letter-spacing: .03em; color: #1d160e; }
.th-realms .rt-realm-blurb { font: 400 15px/1.45 'Special Elite', monospace; color: #3d3020; }
.th-realms .rt-realm-count { font-family: 'Special Elite', monospace; color: #8a2a1a; letter-spacing: .14em; }
.th-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 1px dashed rgba(60, 45, 25, .4); }
.th-realms .rt-dots::before, .th-realms .rt-dots::after { background: linear-gradient(90deg, transparent, rgba(245, 196, 0, .6)); }
.th-realms .rt-dots button { border-color: rgba(245, 196, 0, .6); background: rgba(245, 196, 0, .15); }
.th-realms .rt-dots button.on { background: #f5c400; box-shadow: 0 0 10px rgba(245, 196, 0, .8); }
.th-realms .rt-swipe { font-family: 'Special Elite', monospace; font-style: normal; color: #9fb0bf; }
.th-realms .rt-swipe i { color: #f5c400; }
.th-realms.compact .rt-realm-grid { grid-template-columns: none; grid-auto-columns: minmax(170px, 230px); justify-content: start; gap: 18px; padding: 22px 6px 14px; }
.th-realms.compact .rt-realm { padding: 26px 12px 14px; }
.th-realms.compact .rt-realm-name { font-size: 15px; }
.th-realms.compact .th-classified { display: none; }
.th-realms.compact .th-stamp { font-size: 9.5px; top: 9px; left: 10px; }
.th-realms.compact .th-clip { height: 36px; top: -14px; }
/* emblem motion */
.th-spin { transform-box: view-box; transform-origin: 60px 52px; animation: th-spin 9s linear infinite; }
.rt-realm:hover .th-spin { animation-duration: 2s; }
@keyframes th-spin { to { transform: rotate(-360deg); } }
.th-mag { animation: th-mag 5s ease-in-out infinite; }
@keyframes th-mag { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-22px, 10px); } 60% { transform: translate(-8px, 22px); } }
.th-string { stroke-dasharray: 200; animation: th-string 4s ease-in-out infinite alternate; }
@keyframes th-string { from { stroke-dashoffset: 200; } 40%, to { stroke-dashoffset: 0; } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .th-tape { height: 24px; width: 110vw; }
  .th-tape b { font-size: 12px; }
  .th-tape.a { bottom: 20px; }
  .th-tape.b { bottom: 52px; }
  .th-hint { display: none; }
  .th-dark { background: radial-gradient(circle 150px at var(--bx, 70%) var(--by, 85%), rgba(255, 236, 190, .1), rgba(255, 236, 190, .03) 45%, rgba(2, 4, 8, .45) 100%); }
  .th-clues { -webkit-mask-image: radial-gradient(circle 120px at var(--cx, -999px) var(--cy, -999px), #000 30%, transparent 100%); mask-image: radial-gradient(circle 120px at var(--cx, -999px) var(--cy, -999px), #000 30%, transparent 100%); }
}
@media (max-width: 560px) {
  .th-realms .rt-realm-grid { padding-top: 26px; }
  .th-realms .rt-realm, .th-realms .rt-realm:nth-child(2n), .th-realms .rt-realm:hover { transform: scale(calc(1 - var(--k, 0) * .1)); }
  .th-realms .rt-realm.is-active { box-shadow: 0 1px 0 #b39c6a inset, 0 18px 34px -14px rgba(0, 0, 0, .9), 0 0 0 2px #f5c400; }
  .th-realms .rt-realm.is-active .rt-em { filter: none; }
  .dr-realms .rt-realm.is-active { border-color: rgba(255, 74, 98, .75); box-shadow: 0 18px 40px -16px rgba(216, 31, 69, .6), 0 0 0 1px rgba(255, 74, 98, .3); }
  .dr-realms .rt-realm.is-active .rt-em { filter: drop-shadow(0 0 18px rgba(255, 60, 90, .7)); }
}
@media (prefers-reduced-motion: reduce) {
  .dr-clouds i, .th-clouds i, .dr-blink, .dr-watcher, .dr-tower-win, .dr-eyes-in, .dr-flame, .dr-candle-glow, .dr-ribbon, .dr-look, .dr-crack,
  .th-win, .th-neon text, .th-neon-ref, .th-cone, .th-ember, .th-tail, .th-tape span, .th-title .w::after, .th-spin, .th-mag, .th-string, .th-hero .rt-eyebrow i { animation: none !important; }
  .dr-watcher { opacity: 1; }
  .th-title .w::after { transform: scaleX(0); }
}

/* ==========================================================================
   COZY & LITERARY — a reading nook on a rainy evening. The page itself is warm
   cream and latte (the only light themed category), terracotta for actions.
   ========================================================================== */
body.theme-cozy-literary {
  --canvas: #f6eee2; --white: #fffaf2; --card: #fffaf2; --card-2: #f1e6d4; --line: #e6d6bf; --line-2: #d9c4a6;
  --ink: #3a2a1e; --ink-2: #5a4636; --muted: #8a7462;
  --burgundy: #b5552f; --burgundy-2: #c8643a; --burgundy-ink: #fff6ec; --rose: #d9826a;
  --gold: #c98a3a; --gold-2: #e0a85a; --gold-soft: #f6e6cc;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 0% 0%, rgba(201, 138, 58, .12), transparent 45%), radial-gradient(ellipse at 100% 60%, rgba(181, 85, 47, .07), transparent 50%),
    radial-gradient(rgba(90, 58, 36, .05) 1px, transparent 1.4px);
  background-size: auto, auto, 22px 22px;
}
body.theme-cozy-literary .topbar { background: linear-gradient(90deg, #5a3a24, #7a4a2a 50%, #5a3a24); color: #fff1dc; }
body.theme-cozy-literary .header { background: rgba(255, 250, 242, .94); border-bottom-color: #e6d6bf; }
body.theme-cozy-literary .btn-primary { background: linear-gradient(180deg, #c8643a, #a4482a); color: #fff; box-shadow: 0 6px 16px rgba(181, 85, 47, .25); }
body.theme-cozy-literary .btn-primary:hover { background: linear-gradient(180deg, #d4703f, #b0502e); }
body.theme-cozy-literary .filters a.active { background: #b5552f; color: #fff; }
body.theme-cozy-literary .footer { background: #3a2a1e; }
body.theme-cozy-literary .book-card { background: #fffaf2; border-color: #ead9c0; }
body.theme-cozy-literary .book-card:hover { border-color: #d9a86a; box-shadow: 0 18px 34px -16px rgba(90, 58, 36, .45); transform: translateY(-3px) rotate(-.4deg); }
body.theme-cozy-literary .book-card .media { background: radial-gradient(circle at 50% 30%, rgba(255, 220, 160, .45), transparent 65%), #f1e6d4; }
body.theme-cozy-literary .list-head h2 { font-family: 'Fraunces', var(--serif); font-style: italic; }
body.theme-cozy-literary ::selection { background: #f2c79a; color: #3a2a1e; }

/* ---------- the hero ---------- */
.cz-hero { background: #2a1a12; color: #fff3e2; }
.cz-hero .rt-fx { pointer-events: none; }
.cz-bulb { animation: cz-twinkle 4s ease-in-out infinite; }
@keyframes cz-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.cz-steam path { stroke-dasharray: 16 90; opacity: 0; animation: cz-steam 3.6s ease-in-out infinite; }
.cz-steam path:nth-child(2) { animation-delay: -1.2s; }
.cz-steam path:nth-child(3) { animation-delay: -2.4s; }
@keyframes cz-steam { 0% { stroke-dashoffset: 0; opacity: 0; } 25% { opacity: .55; } 100% { stroke-dashoffset: -106; opacity: 0; } }
.cz-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: em-flick 1s ease-in-out infinite alternate; }
.cz-glow { animation: dr-glow 2s ease-in-out infinite alternate; }
.cz-breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: cz-breathe 3.4s ease-in-out infinite; }
@keyframes cz-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.045); } }
.cz-tail { transform-box: view-box; transform-origin: 1250px 516px; animation: cz-tail 7s ease-in-out infinite; }
@keyframes cz-tail { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
.cz-ear { transform-box: fill-box; transform-origin: 50% 100%; }
.cz-ear.l { animation: cz-ear 9s infinite; }
@keyframes cz-ear { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-14deg); } 96% { transform: rotate(4deg); } }
.cz-cat.pet .cz-ear { animation: cz-ear-pet .5s 2; }
.cz-cat.pet .cz-tail { animation: cz-tail-pet .45s 3; }
.cz-cat.pet .cz-zzz { opacity: 0; }
@keyframes cz-ear-pet { 50% { transform: rotate(-16deg); } }
@keyframes cz-tail-pet { 50% { transform: rotate(-5deg); } }
.cz-zzz text { opacity: 0; animation: cz-zzz 4.5s ease-in-out infinite; }
.cz-zzz text:nth-child(2) { animation-delay: 1.5s; }
.cz-zzz text:nth-child(3) { animation-delay: 3s; }
@keyframes cz-zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(-10px, -18px); } }
.cz-vine { transform-box: fill-box; transform-origin: 50% 0; animation: rt-sway 8s ease-in-out infinite alternate; }
.cz-hero .rt-fade { background: linear-gradient(rgba(246, 238, 226, 0), rgba(246, 238, 226, .6) 55%, var(--canvas)); }
.cz-hero::after { background: radial-gradient(ellipse 48% 60% at 22% 50%, rgba(26, 14, 8, .62), transparent 72%); }
.cz-hero .rt-eyebrow { font: 700 24px/1.1 'Caveat', cursive; letter-spacing: .02em; text-transform: none; color: #ffd6a0; }
.cz-hero .rt-title { font-family: 'Fraunces', var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; padding-right: .1em;
  background: linear-gradient(180deg, #fff6e6, #f4d6a8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(60, 30, 10, .7)) drop-shadow(0 0 24px rgba(255, 180, 100, .35)); animation: rt-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.cz-hero.is-sub .rt-title { font-size: clamp(36px, 5vw, 70px); }
.cz-divider { height: 30px; }
.cz-hero .rt-lede { font-family: 'Fraunces', var(--serif); color: #f6e6d2; }
.cz-hero .rt-btn { background: linear-gradient(180deg, #e08050, #b5552f); color: #fff; border-color: #f2a878; box-shadow: 0 0 0 4px rgba(224, 128, 80, .16), 0 10px 26px rgba(181, 85, 47, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cz-hero .rt-btn:hover { box-shadow: 0 0 0 5px rgba(224, 128, 80, .24), 0 14px 32px rgba(181, 85, 47, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cz-hero .rt-btn::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); }
.cz-hero .rt-btn-ghost { border-color: rgba(255, 220, 180, .6); background: rgba(40, 22, 12, .45); }
.cz-hero .rt-btn-ghost:hover { background: rgba(224, 128, 80, .2); }
.cz-hero .rt-stats { color: #f0dcc4; }
.cz-hero .rt-stats b { font-family: 'Fraunces', var(--serif); color: #ffd6a0; text-shadow: 0 0 14px rgba(255, 180, 100, .4); }
.cz-hint { margin-top: 16px; font: 600 20px/1.2 'Caveat', cursive; color: #e8c8a0; animation: rt-in 1s 1.4s both; }
.cz-hero.is-sub .cz-hint { display: none; }
.cz-hero-em { width: 84px; height: 84px; padding: 8px; border-radius: 50%; background: #fbf3e4; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); filter: none !important; }
/* ---------- shelf cards: notes taped to the page ---------- */
.cz-realms .rt-sec-head h2 { font-family: 'Fraunces', var(--serif); font-style: italic; color: #3a2a1e; text-shadow: none; }
.cz-realms .rt-eyebrow { font: 700 24px/1.1 'Caveat', cursive; letter-spacing: 0; text-transform: none; color: #b5552f; text-shadow: none; }
.cz-realms .rt-divider path { stroke: #c98a3a; }
.cz-realms .rt-realm-grid, .cl-realms .rt-realm-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 28px; padding-top: 14px; }
.cz-realms .rt-realm { overflow: visible; border: 0; border-radius: 4px; padding: 34px 24px 22px; color: #3a2a1e; transform: rotate(-1.2deg);
  background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(120, 150, 190, .2) 27px 28px), #fffaf0; box-shadow: 0 16px 30px -16px rgba(90, 58, 36, .55), 0 1px 0 #e6d6bf; }
.cz-realms .rt-realm:nth-child(2n) { transform: rotate(1deg); }
.cz-realms .rt-realm::before { inset: 0 auto 0 28px; width: 1px; height: auto; opacity: 1; background: rgba(214, 90, 70, .35); background-image: none; }
.cz-realms .rt-realm::after { display: none; }
.cz-realms .rt-realm:hover, .cz-realms .rt-realm:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 0 24px 40px -16px rgba(90, 58, 36, .6), 0 0 0 2px #e0a85a; }
.cz-realms .rt-realm.on { box-shadow: 0 0 0 3px #b5552f, 0 16px 30px -16px rgba(90, 58, 36, .55); }
.cz-tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; transform: rotate(-3deg); opacity: .85;
  background: repeating-linear-gradient(45deg, #f2b8a0 0 8px, #f6cdb8 8px 16px); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.cz-realms .rt-em { filter: none; }
.cz-realms .rt-realm:hover .rt-em { filter: none; transform: scale(1.06) rotate(-3deg); }
.cz-realms .rt-realm-name { font: 600 23px/1.2 'Fraunces', var(--serif); font-style: italic; color: #3a2a1e; }
.cz-realms .rt-realm-blurb { font: 600 21px/1.25 'Caveat', cursive; color: #5a4636; }
.cz-realms .rt-realm-count { color: #b5552f; }
.cz-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 1px dashed rgba(90, 58, 36, .3); }
.cz-realms .rt-dots button { border-color: rgba(181, 85, 47, .55); background: rgba(181, 85, 47, .12); }
.cz-realms .rt-dots button.on { background: #b5552f; box-shadow: none; }
.cz-realms .rt-dots::before, .cz-realms .rt-dots::after { background: linear-gradient(90deg, transparent, rgba(181, 85, 47, .5)); }
.cz-realms .rt-swipe { color: #8a7462; }
.cz-realms .rt-swipe i { color: #b5552f; }
.cz-realms.compact .rt-realm-grid, .cl-realms.compact .rt-realm-grid { grid-template-columns: none; grid-auto-columns: minmax(170px, 230px); justify-content: start; gap: 18px; padding: 20px 6px 14px; }
.cz-realms.compact .rt-realm { padding: 22px 12px 14px; }
.cz-realms.compact .rt-realm-name { font-size: 16px; }
.em-steam path { stroke-dasharray: 10 60; animation: cz-steam 3.2s ease-in-out infinite; }
.em-steam path:nth-child(2) { animation-delay: -1s; }
.em-steam path:nth-child(3) { animation-delay: -2s; }
.em-petal2 { animation: cz-petal 6s ease-in-out infinite; }
@keyframes cz-petal { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(14px, 70px) rotate(200deg); opacity: 0; } }

/* ==========================================================================
   CLASSICS — an old library at night: mahogany, oxblood leather, gilt, candlelight.
   ========================================================================== */
body.theme-classics {
  --canvas: #120a06; --white: #1a100a; --card: #1e130c; --card-2: #271910; --line: #3a2616; --line-2: #4a321e;
  --ink: #f3e8d6; --ink-2: #dccbb0; --muted: #a8957a;
  --burgundy: #c2463a; --burgundy-2: #d4574a; --burgundy-ink: #200604; --rose: #d98a7a;
  --gold: #d4a752; --gold-2: #f0cf8a; --gold-soft: #2a1e10;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(212, 167, 82, .16);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 167, 82, .3);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 80% 0%, rgba(212, 167, 82, .1), transparent 45%), radial-gradient(ellipse at 0% 70%, rgba(140, 40, 30, .1), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 9px);
}
body.theme-classics .topbar { background: linear-gradient(90deg, #1e0c08, #4a1a14 50%, #1e0c08); color: #f6e2c0; }
body.theme-classics .header { background: rgba(18, 10, 6, .92); border-bottom-color: rgba(212, 167, 82, .22); }
body.theme-classics .search input { background: var(--white); color: var(--ink); }
body.theme-classics .nav a:hover, body.theme-classics .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-classics .btn-primary { background: linear-gradient(180deg, #a83a2e, #6e1e16); color: #fbe9cf; border: 1px solid rgba(212, 167, 82, .5); box-shadow: 0 6px 18px rgba(110, 30, 22, .4); }
body.theme-classics .btn-primary:hover { background: linear-gradient(180deg, #b8463a, #7e2a1e); }
body.theme-classics .btn-ghost { color: var(--ink); }
body.theme-classics .filters a.active { background: linear-gradient(90deg, #7e2a1e, #4a1a14); color: #fbe9cf; }
body.theme-classics .cover.photo { background: #1a100a; }
body.theme-classics .footer { background: #0a0503; border-top-color: rgba(212, 167, 82, .18); }
body.theme-classics .mobile-tabbar { background: #160d08; }
body.theme-classics ::selection { background: #d4a752; color: #1a0e06; }
body.theme-classics .book-card { background: linear-gradient(180deg, #1e130c, #150c07); border-color: rgba(212, 167, 82, .16); }
body.theme-classics .book-card:hover { border-color: rgba(212, 167, 82, .6); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 30px rgba(255, 180, 90, .12); }
body.theme-classics .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(255, 190, 110, .2), transparent 60%), #1a100a; }
body.theme-classics .list-head h2 { font-family: 'IM Fell English', var(--serif); color: #f0cf8a; }

/* ---------- the hero ---------- */
.cl-hero { background: #120a06; color: #f3e8d6; }
.cl-hero .rt-fx { pointer-events: none; }
.cl-beam-layer { mix-blend-mode: screen; }
.cl-beam { animation: cl-beam 9s ease-in-out infinite alternate; }
@keyframes cl-beam { from { opacity: .75; } to { opacity: 1; } }
.cl-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: em-flick 1s ease-in-out infinite alternate; }
.cl-glow { animation: dr-glow 2.2s ease-in-out infinite alternate; }
.cl-turn { transform-box: view-box; transform-origin: 1150px 586px; animation: cl-turn 7s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes cl-turn { 0%, 70% { transform: scaleX(1); } 82% { transform: scaleX(0) translateY(-10px) skewY(-4deg); filter: brightness(1.1); } 92%, 100% { transform: scaleX(-1); } }
.cl-flip .cl-turn { animation-duration: .65s; animation-iteration-count: 4; }
.cl-land { animation: cl-spin 16s linear infinite; }
@keyframes cl-spin { from { transform: translateX(0); } to { transform: translateX(-140px); } }
.cl-hero .rt-fade { background: linear-gradient(rgba(18, 10, 6, 0), rgba(18, 10, 6, .7) 55%, var(--canvas)); }
.cl-hero::after { background: radial-gradient(ellipse 48% 60% at 22% 50%, rgba(10, 5, 2, .68), transparent 72%); }
.cl-hero .rt-eyebrow { font: italic 500 17px/1.2 'EB Garamond', var(--serif); letter-spacing: .18em; color: #e8cf9a; }
.cl-hero .rt-eyebrow i, .cl-realms .rt-eyebrow i { color: #d4a752; font-size: 18px; }
.cl-hero .rt-title { font-family: 'IM Fell English', var(--serif); font-weight: 400; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff3d4 0%, #f0cf8a 45%, #b8862e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3a1c08) drop-shadow(0 0 26px rgba(255, 190, 100, .3)); animation: rt-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.cl-hero .rt-lede { font-family: 'EB Garamond', var(--serif); color: #efe0c6; }
.cl-hero .rt-btn { background: linear-gradient(180deg, #a83a2e, #6e1e16); color: #fbe9cf; border-color: #d4a752; font-family: 'EB Garamond', var(--serif); font-size: 16px; letter-spacing: .04em;
  box-shadow: 0 0 0 4px rgba(212, 167, 82, .14), 0 10px 28px rgba(110, 30, 22, .5), inset 0 1px 0 rgba(255, 220, 180, .3); }
.cl-hero .rt-btn:hover { box-shadow: 0 0 0 5px rgba(212, 167, 82, .24), 0 14px 34px rgba(110, 30, 22, .6), inset 0 1px 0 rgba(255, 220, 180, .3); }
.cl-hero .rt-btn::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 230, 180, .35) 50%, transparent 70%); }
.cl-hero .rt-btn-ghost { border-color: rgba(212, 167, 82, .55); background: rgba(18, 8, 4, .5); font-family: 'EB Garamond', var(--serif); font-size: 16px; }
.cl-hero .rt-btn-ghost:hover { background: rgba(212, 167, 82, .12); }
.cl-hero .rt-stats { color: #dccbb0; }
.cl-hero .rt-stats b { font-family: 'EB Garamond', var(--serif); font-weight: 600; color: #f0cf8a; }
.cl-hero .rt-hero-em { filter: drop-shadow(0 0 16px rgba(212, 167, 82, .45)); }
/* ---------- wing cards: leather-bound volumes ---------- */
.cl-realms .rt-sec-head h2 { font-family: 'IM Fell English', var(--serif); font-weight: 400; color: #f0cf8a; text-shadow: 0 0 24px rgba(212, 167, 82, .25); }
.cl-realms .rt-eyebrow { font-family: 'EB Garamond', var(--serif); font-style: italic; color: #e8cf9a; text-shadow: none; }
.cl-realms .rt-realm { border-radius: 4px 10px 10px 4px; border: 0; padding: 36px 28px 26px 38px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 7%, rgba(255, 255, 255, .05) 9%, transparent 12%), radial-gradient(ellipse at 40% 20%, #7a2a1e, #4a140e 70%, #2e0a06);
  box-shadow: 6px 0 0 -2px #e8dcc0, 7px 0 0 -2px #b8a888, 10px 2px 0 -3px #d9cba8, 0 22px 40px -16px rgba(0, 0, 0, .95); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.cl-realms .rt-realm::before { inset: 0; opacity: .35; background-image: radial-gradient(rgba(0, 0, 0, .35) 1px, transparent 1.5px), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px); background-size: 5px 5px, 7px 7px; }
.cl-realms .rt-realm::after { display: none; }
.cl-frame { position: absolute; inset: 12px 12px 12px 22px; border: 1.5px solid rgba(212, 167, 82, .75); border-radius: 3px; pointer-events: none; }
.cl-frame::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(212, 167, 82, .4); border-radius: 2px; }
.cl-realms .rt-realm:hover, .cl-realms .rt-realm:focus-visible { transform: perspective(900px) rotateY(-10deg) translateY(-4px); box-shadow: 6px 0 0 -2px #e8dcc0, 7px 0 0 -2px #b8a888, 10px 2px 0 -3px #d9cba8, 0 30px 50px -16px rgba(0, 0, 0, .95), 0 0 34px rgba(212, 167, 82, .18); }
.cl-realms .rt-realm.on .cl-frame { border-color: #f0cf8a; box-shadow: 0 0 16px rgba(240, 207, 138, .4); }
.cl-realms .rt-em { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.cl-realms .rt-realm:hover .rt-em { filter: drop-shadow(0 0 14px rgba(240, 207, 138, .5)); }
.cl-realms .rt-realm-name { font: 400 24px/1.2 'IM Fell English', var(--serif); color: #f0cf8a; text-shadow: 0 1px 0 #200604; }
.cl-realms .rt-realm-blurb { font: italic 400 18px/1.35 'EB Garamond', var(--serif); color: #ecd9bd; }
.cl-realms .rt-realm-count { font-family: 'EB Garamond', var(--serif); color: #d4a752; }
.cl-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 1px solid rgba(212, 167, 82, .35); }
.cl-realms .rt-dots button { border-color: rgba(212, 167, 82, .55); background: rgba(212, 167, 82, .15); }
.cl-realms .rt-dots button.on { background: #f0cf8a; }
.cl-realms .rt-swipe { font-family: 'EB Garamond', var(--serif); color: #cdb898; }
.cl-realms.compact .rt-realm { padding: 26px 14px 16px 24px; }
.cl-realms.compact .rt-realm-name { font-size: 16px; }
.cl-realms.compact .cl-frame { inset: 8px 8px 8px 16px; }
.cl-snow { animation: cl-snow 6s linear infinite; }
@keyframes cl-snow { from { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } to { transform: translate(6px, 100px); opacity: 0; } }

@media (max-width: 760px) {
  .cz-hint { display: none; }
}
@media (max-width: 560px) {
  .cz-realms .rt-realm, .cz-realms .rt-realm:nth-child(2n), .cz-realms .rt-realm:hover, .cl-realms .rt-realm, .cl-realms .rt-realm:hover { transform: scale(calc(1 - var(--k, 0) * .1)); }
}
@media (prefers-reduced-motion: reduce) {
  .cz-bulb, .cz-steam path, .cz-flame, .cz-glow, .cz-breathe, .cz-tail, .cz-ear, .cz-zzz text, .cz-vine, .em-steam path, .em-petal2,
  .cl-beam, .cl-flame, .cl-glow, .cl-turn, .cl-land, .cl-snow { animation: none !important; }
  .cz-steam path, .cz-zzz text { opacity: .5; }
}

/* ==========================================================================
   EPIC FANTASY — a living parchment map. The page is deep forest green with
   gilt and wax-seal red; the hero is light parchment with dark ink.
   ========================================================================== */
body.theme-fantasy {
  --canvas: #0e130f; --white: #141a15; --card: #171e18; --card-2: #1e271f; --line: #2a362b; --line-2: #374638;
  --ink: #efe8d6; --ink-2: #d4cbb4; --muted: #9aa28e;
  --burgundy: #b8402e; --burgundy-2: #cc5240; --burgundy-ink: #1e0604; --rose: #d98a7a;
  --gold: #d4a752; --gold-2: #f0cf8a; --gold-soft: #22200f;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(212, 167, 82, .16);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 167, 82, .3);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 15% 0%, rgba(212, 167, 82, .1), transparent 45%), radial-gradient(ellipse at 100% 60%, rgba(60, 110, 70, .14), transparent 50%);
}
body.theme-fantasy .topbar { background: linear-gradient(90deg, #0c1a10, #2a3a1a 50%, #0c1a10); color: #f0e2bc; }
body.theme-fantasy .header { background: rgba(14, 19, 15, .92); border-bottom-color: rgba(212, 167, 82, .22); }
body.theme-fantasy .search input { background: var(--white); color: var(--ink); }
body.theme-fantasy .nav a:hover, body.theme-fantasy .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-fantasy .btn-primary { background: linear-gradient(180deg, #c24a36, #7e2418); color: #fbe9cf; box-shadow: 0 6px 18px rgba(126, 36, 24, .4); }
body.theme-fantasy .btn-primary:hover { background: linear-gradient(180deg, #d0583f, #8e2c1e); }
body.theme-fantasy .btn-ghost { color: var(--ink); }
body.theme-fantasy .filters a.active { background: linear-gradient(90deg, #2d4a3e, #1a2e22); color: #f0cf8a; }
body.theme-fantasy .cover.photo { background: #141a15; }
body.theme-fantasy .footer { background: #080c09; border-top-color: rgba(212, 167, 82, .18); }
body.theme-fantasy .mobile-tabbar { background: #111712; }
body.theme-fantasy ::selection { background: #d4a752; color: #12160f; }
body.theme-fantasy .book-card { background: linear-gradient(180deg, #171e18, #101510); border-color: rgba(212, 167, 82, .15); }
body.theme-fantasy .book-card:hover { border-color: rgba(212, 167, 82, .6); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(212, 167, 82, .2); }
body.theme-fantasy .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(212, 167, 82, .16), transparent 60%), #141a15; }
body.theme-fantasy .list-head h2 { font-family: 'Uncial Antiqua', var(--serif); color: #f0cf8a; }

/* ---------- the map ---------- */
.fa-hero { background: #e6d0a0; color: #3b2614; }
.fa-burn { position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 90px 20px rgba(90, 50, 20, .55), inset 0 0 20px rgba(60, 30, 10, .6); }
.fa-hero::after { background: radial-gradient(ellipse 44% 62% at 22% 52%, rgba(244, 230, 196, .9), rgba(244, 230, 196, .5) 55%, transparent 78%); }
.fa-hero .rt-fade { height: 90px; background: linear-gradient(rgba(14, 19, 15, 0), rgba(60, 40, 20, .55) 40%, var(--canvas)); z-index: 3; }
.fa-clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: multiply; }
.fa-clouds i { position: absolute; width: 34%; height: 30%; border-radius: 50%; filter: blur(30px); background: rgba(110, 80, 40, .35); animation: dr-drift 80s linear infinite; }
.fa-clouds i:nth-child(1) { left: 40%; top: 10%; animation-delay: -20s; }
.fa-clouds i:nth-child(2) { left: 10%; top: 50%; width: 28%; animation-duration: 110s; animation-delay: -60s; }
.fa-clouds i:nth-child(3) { left: 60%; top: 55%; width: 24%; animation-duration: 95s; }
.fa-rose { animation: fa-rose 60s linear infinite; }
@keyframes fa-rose { to { transform: rotate(360deg); } }
.fa-hump { transform-box: fill-box; transform-origin: 50% 100%; animation: fa-hump 3s ease-in-out infinite; }
@keyframes fa-hump { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.fa-head { transform-box: fill-box; transform-origin: 30% 100%; animation: fa-head 5s ease-in-out infinite; }
@keyframes fa-head { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
.fa-wing { transform-box: fill-box; transform-origin: 50% 100%; animation: fa-flap .7s ease-in-out infinite alternate; }
@keyframes fa-flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
.fa-route { animation: fa-march 2.5s linear infinite; }
@keyframes fa-march { to { stroke-dashoffset: -20; } }
/* castles: links on the map (the words layer lets clicks through to them) */
.fa-hero .rt-content { pointer-events: none; }
.fa-hero .rt-content > * { pointer-events: auto; }
.fa-pin { pointer-events: auto; cursor: pointer; animation: fa-pop .6s var(--d, .4s) cubic-bezier(.3, 1.6, .5, 1) both; }
.fa-pin .fa-label, .fa-pin path { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.fa-pin .fa-label { transform-box: fill-box; transform-origin: 0 50%; }
.fa-pin:hover .fa-label, .fa-pin:focus-visible .fa-label { transform: scale(1.12); }
.fa-pin-glow { fill: rgba(255, 220, 140, 0); transition: fill .3s; }
.fa-pin:hover .fa-pin-glow, .fa-pin.on .fa-pin-glow { fill: rgba(255, 210, 120, .45); }
.fa-pin.on .fa-label path { fill: #fff3d6; stroke: #9a2a1e; stroke-width: 2; }
@keyframes fa-pop { from { opacity: 0; transform: translateY(-12px); } }
/* ---------- the words, in ink ---------- */
.fa-hero .crumbs, .fa-hero .crumbs a { color: #5a3a1e; }
.fa-hero .rt-eyebrow { font: italic 400 17px/1.2 'Alegreya', var(--serif); letter-spacing: .08em; text-transform: none; color: #7a3a1e; text-shadow: none; }
.fa-hero .rt-title { font-family: 'Uncial Antiqua', var(--serif); font-weight: 400; letter-spacing: .01em; font-size: clamp(42px, 6.6vw, 96px);
  background: none; color: #3b2614; -webkit-text-fill-color: #3b2614; filter: drop-shadow(0 1px 0 rgba(255, 245, 220, .8)); animation: rt-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.fa-hero.is-sub .rt-title { font-size: clamp(32px, 4.6vw, 64px); }
.fa-hero .rt-title::first-letter { color: #9a2a1e; -webkit-text-fill-color: #9a2a1e; }
.fa-hero .rt-lede { font-family: 'Alegreya', var(--serif); font-style: italic; color: #4a3220; text-shadow: none; }
.fa-hero .rt-btn { background: radial-gradient(circle at 30% 30%, #d0583f, #8e2c1e 70%); color: #fbe9cf; border: 1px solid #5a1a10; font-family: 'Alegreya', var(--serif); font-size: 16px;
  box-shadow: 0 0 0 3px rgba(154, 42, 30, .2), 0 8px 20px rgba(90, 30, 10, .35), inset 0 1px 0 rgba(255, 200, 170, .35); }
.fa-hero .rt-btn::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 220, 190, .35) 50%, transparent 70%); }
.fa-hero .rt-btn-ghost { color: #3b2614; border-color: rgba(59, 38, 20, .6); background: rgba(244, 230, 196, .6); font-family: 'Alegreya', var(--serif); font-size: 16px; backdrop-filter: none; }
.fa-hero .rt-btn-ghost:hover { background: rgba(244, 230, 196, .95); }
.fa-hero .rt-stats { color: #5a3a1e; }
.fa-hero .rt-stats b { font-family: 'Uncial Antiqua', var(--serif); color: #9a2a1e; text-shadow: none; }
.fa-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: italic 15px/1.3 'Alegreya', var(--serif); color: #6a4a2a; animation: rt-in 1s 1.4s both; }
.fa-hint .ms { font-size: 18px; color: #9a2a1e; }
.fa-hero-em { width: 84px; height: 84px; padding: 6px; border-radius: 50%; background: #1e271f; box-shadow: 0 6px 16px rgba(60, 30, 10, .4), 0 0 0 3px #d4a752; filter: none !important; }
.fa-hero .rt-divider path { stroke: #7a4a24; }
/* ---------- banners ---------- */
.fa-realms .rt-sec-head h2 { font-family: 'Uncial Antiqua', var(--serif); font-weight: 400; color: #f0cf8a; }
.fa-realms .rt-eyebrow { font: italic 400 17px/1.2 'Alegreya', var(--serif); letter-spacing: .1em; color: #d4b88a; text-transform: none; }
.fa-realms .rt-realm-grid { gap: 26px 22px; padding-top: 12px; }
.fa-realms .rt-realm { background: none; border: 0; box-shadow: none; overflow: visible; padding: 34px 26px 64px; transform-origin: 50% 0; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.fa-realms .rt-realm::before, .fa-realms .rt-realm::after { display: none; }
.fa-flag { position: absolute; inset: 6px 6px 0; z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 18%, transparent 82%, rgba(0, 0, 0, .3)), radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--hue), #fff 14%), color-mix(in srgb, var(--hue), #000 35%));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--hue), #000 30%), inset 0 0 0 5px #d4a752; }
.fa-rod { position: absolute; top: 0; left: -8px; right: -8px; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #fff0c2, #d4a752 50%, #8a6420); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); }
.fa-rod::before, .fa-rod::after { content: ''; position: absolute; top: -3px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff0c2, #b8862e); }
.fa-rod::before { left: -6px; }
.fa-rod::after { right: -6px; }
.fa-realms .rt-realm:hover, .fa-realms .rt-realm:focus-visible { animation: fa-swing 1.4s ease-in-out; }
@keyframes fa-swing { 20% { transform: rotate(2.5deg); } 45% { transform: rotate(-1.8deg); } 70% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
.fa-realms .rt-realm.on .fa-flag { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--hue), #000 30%), inset 0 0 0 6px #f0cf8a, inset 0 0 30px rgba(240, 207, 138, .35); }
.fa-realms .rt-em { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.fa-realms .rt-realm:hover .rt-em { filter: drop-shadow(0 0 14px rgba(240, 207, 138, .5)); }
.fa-realms .rt-realm-name { font: 400 21px/1.2 'Uncial Antiqua', var(--serif); color: #f6e2b0; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.fa-realms .rt-realm-blurb { font: italic 400 17px/1.35 'Alegreya', var(--serif); color: #efe2c4; }
.fa-realms .rt-realm-count { color: #f0cf8a; }
.fa-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 1px solid rgba(240, 207, 138, .35); }
.fa-realms .rt-realm.all { --hue: #2d4a3e; }
.fa-realms .rt-dots button { border-color: rgba(212, 167, 82, .55); background: rgba(212, 167, 82, .15); }
.fa-realms .rt-dots button.on { background: #f0cf8a; }
.fa-realms .rt-swipe { font-family: 'Alegreya', var(--serif); color: #c8b896; }
.fa-realms.compact .rt-realm { padding: 26px 12px 44px; }
.fa-realms.compact .rt-realm-name { font-size: 14px; }
.fa-spin { transform-box: view-box; transform-origin: 60px 60px; animation: fa-rose 14s linear infinite; }
.fa-gem { animation: em-glow 2.4s ease-in-out infinite; }
.fa-bolt { animation: dr-blink 2.8s steps(1) infinite; }
.em-flame-a { transform-box: fill-box; transform-origin: 50% 100%; animation: em-flick 1s ease-in-out infinite alternate; }

/* ==========================================================================
   SCIENCE FICTION — a desert planet at dusk: deep space navy, dune amber,
   hologram cyan.
   ========================================================================== */
body.theme-science-fiction {
  --canvas: #0b0a12; --white: #12111c; --card: #15141f; --card-2: #1c1a28; --line: #2a2738; --line-2: #383448;
  --ink: #efeaf6; --ink-2: #cfc8dc; --muted: #9690a8;
  --burgundy: #e8892e; --burgundy-2: #f29a40; --burgundy-ink: #1a0c02; --rose: #f2a878;
  --gold: #f2b544; --gold-2: #ffd27a; --gold-soft: #241c10;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(127, 233, 255, .14);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .85), 0 0 0 1px rgba(127, 233, 255, .28);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 90% -10%, rgba(232, 137, 46, .14), transparent 45%), radial-gradient(ellipse at 0% 60%, rgba(60, 180, 230, .08), transparent 50%),
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, .35), transparent 70%), radial-gradient(1px 1px at 160px 120px, rgba(200, 240, 255, .3), transparent 70%);
  background-size: auto, auto, 220px 220px, 220px 220px;
}
body.theme-science-fiction .topbar { background: linear-gradient(90deg, #0b0a12, #3a2210 50%, #0b0a12); color: #ffd8aa; }
body.theme-science-fiction .header { background: rgba(11, 10, 18, .9); border-bottom-color: rgba(127, 233, 255, .18); }
body.theme-science-fiction .search input { background: var(--white); color: var(--ink); }
body.theme-science-fiction .nav a:hover, body.theme-science-fiction .nav a.active { background: var(--card-2); color: #7fe9ff; }
body.theme-science-fiction .btn-primary { background: linear-gradient(180deg, #f29a40, #c0631a); color: #1a0c02; font-weight: 800; box-shadow: 0 6px 18px rgba(232, 137, 46, .3); }
body.theme-science-fiction .btn-primary:hover { background: linear-gradient(180deg, #ffab52, #d07224); }
body.theme-science-fiction .btn-ghost { color: var(--ink); }
body.theme-science-fiction .filters a.active { background: linear-gradient(90deg, #1a6a8a, #12405a); color: #dff8ff; }
body.theme-science-fiction .cover.photo { background: #12111c; }
body.theme-science-fiction .footer { background: #07060c; border-top-color: rgba(127, 233, 255, .14); }
body.theme-science-fiction .mobile-tabbar { background: #0f0e18; }
body.theme-science-fiction ::selection { background: #7fe9ff; color: #0b0a12; }
body.theme-science-fiction .book-card { background: linear-gradient(180deg, #15141f, #0f0e18); border-color: rgba(127, 233, 255, .12); }
body.theme-science-fiction .book-card:hover { border-color: rgba(127, 233, 255, .55); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 24px rgba(127, 233, 255, .15); }
body.theme-science-fiction .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(232, 137, 46, .18), transparent 60%), #12111c; }
body.theme-science-fiction .list-head h2 { font-family: 'Syncopate', var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffd8aa; }

/* ---------- the hero ---------- */
.sf-hero { background: #1a0e24; color: #fff1e0; }
.sf-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0a0820 0%, #241640 30%, #5a2a50 52%, #b8583e 72%, #f0a058 86%, #ffd59a 100%); }
.sf-scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .35; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px); }
.sf-wings { transform-box: fill-box; transform-origin: 50% 100%; animation: sf-flap .09s linear infinite alternate; }
@keyframes sf-flap { from { transform: scaleY(1); } to { transform: scaleY(-.4); } }
.sf-maw { animation: sf-maw 1.2s ease-in-out infinite alternate; }
@keyframes sf-maw { from { opacity: .7; } to { opacity: 1; } }
.sf-thumper.go .sf-thump-ring { animation: sf-thump .6s ease-out 4; }
@keyframes sf-thump { from { r: 6; opacity: 1; } to { r: 46; opacity: 0; } }
.sf-hero .rt-fade { background: linear-gradient(rgba(11, 10, 18, 0), rgba(11, 10, 18, .7) 55%, var(--canvas)); }
.sf-hero::after { background: radial-gradient(ellipse 46% 60% at 22% 50%, rgba(10, 6, 24, .6), transparent 72%); }
.sf-hero .rt-eyebrow { font: 600 12.5px/1.3 'Exo 2', var(--sans); letter-spacing: .32em; color: #7fe9ff; text-shadow: 0 0 10px rgba(127, 233, 255, .6); }
.sf-hero .rt-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #7fe9ff; box-shadow: 0 0 10px #7fe9ff; animation: dr-blink 1.2s steps(1) infinite; }
.sf-hero .rt-title { font-family: 'Syncopate', var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.02; font-size: clamp(34px, 5.4vw, 80px);
  background: linear-gradient(180deg, #fff6e6 0%, #ffd59a 50%, #e8892e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 10, 10, .7)) drop-shadow(0 0 24px rgba(255, 160, 80, .35)); animation: none; }
.sf-hero.is-sub .rt-title { font-size: clamp(26px, 3.8vw, 54px); }
.sf-hero .rt-lede { font: 400 clamp(17px, 1.6vw, 20px)/1.5 'Exo 2', var(--sans); color: #f6e6d6; }
.sf-hero .rt-btn { background: linear-gradient(180deg, #ffb35a, #e8892e 55%, #b0561a); color: #1a0c02; border-color: #ffd59a; font-family: 'Exo 2', var(--sans); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 0 0 4px rgba(232, 137, 46, .18), 0 10px 26px rgba(232, 137, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.sf-hero .rt-btn-ghost { border-color: rgba(127, 233, 255, .6); color: #dff8ff; background: rgba(10, 20, 40, .45); font-family: 'Exo 2', var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.sf-hero .rt-btn-ghost:hover { background: rgba(127, 233, 255, .14); }
.sf-hero .rt-stats { font-family: 'Exo 2', var(--sans); color: #e6d6c8; }
.sf-hero .rt-stats b { font-family: 'Syncopate', var(--sans); color: #ffd59a; text-shadow: 0 0 12px rgba(255, 160, 80, .5); }
.sf-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 400 14px/1.3 'Exo 2', var(--sans); color: #d6c2b0; animation: rt-in 1s 1.4s both; }
.sf-hint .ms { font-size: 18px; color: #7fe9ff; }
.sf-hero.is-sub .sf-hint { display: none; }
.sf-hero .rt-hero-em { filter: drop-shadow(0 0 14px rgba(127, 233, 255, .55)); }
/* ---------- hologram panels ---------- */
.sf-realms .rt-sec-head h2 { font-family: 'Syncopate', var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ffd8aa; text-shadow: 0 0 20px rgba(232, 137, 46, .3); }
.sf-realms .rt-eyebrow { font-family: 'Exo 2', var(--sans); letter-spacing: .3em; color: #7fe9ff; text-shadow: 0 0 10px rgba(127, 233, 255, .5); }
.sf-realms .rt-divider { width: 280px; }
.sf-realms .rt-realm { border: 1px solid rgba(127, 233, 255, .28); border-radius: 6px; padding: 40px 24px 22px;
  background: linear-gradient(180deg, rgba(127, 233, 255, .1), rgba(127, 233, 255, .02) 40%, rgba(232, 137, 46, .06)), #0e1424;
  box-shadow: inset 0 0 30px rgba(127, 233, 255, .08), 0 18px 34px -16px rgba(0, 0, 0, .9); }
.sf-realms .rt-realm::before { inset: 0; opacity: .5; background-image: repeating-linear-gradient(0deg, rgba(127, 233, 255, .07) 0 1px, transparent 1px 4px); }
.sf-realms .rt-realm::after { background: linear-gradient(180deg, transparent 40%, rgba(127, 233, 255, .25) 50%, transparent 60%); transform: translateY(-100%); transition: none; }
.sf-realms .rt-realm:hover::after { animation: sf-sweep 1.2s ease-in-out; }
@keyframes sf-sweep { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.sf-realms .rt-realm:hover, .sf-realms .rt-realm:focus-visible { transform: translateY(-6px); border-color: #7fe9ff; box-shadow: inset 0 0 40px rgba(127, 233, 255, .14), 0 0 30px rgba(127, 233, 255, .25), 0 24px 40px -16px rgba(0, 0, 0, .9); }
.sf-realms .rt-realm.on { border-color: #ffb35a; box-shadow: inset 0 0 30px rgba(232, 137, 46, .18), 0 0 26px rgba(232, 137, 46, .3); }
.sf-corners { position: absolute; inset: 6px; pointer-events: none;
  background: linear-gradient(#7fe9ff, #7fe9ff) 0 0 / 16px 2px no-repeat, linear-gradient(#7fe9ff, #7fe9ff) 0 0 / 2px 16px no-repeat,
    linear-gradient(#7fe9ff, #7fe9ff) 100% 0 / 16px 2px no-repeat, linear-gradient(#7fe9ff, #7fe9ff) 100% 0 / 2px 16px no-repeat,
    linear-gradient(#7fe9ff, #7fe9ff) 0 100% / 16px 2px no-repeat, linear-gradient(#7fe9ff, #7fe9ff) 0 100% / 2px 16px no-repeat,
    linear-gradient(#7fe9ff, #7fe9ff) 100% 100% / 16px 2px no-repeat, linear-gradient(#7fe9ff, #7fe9ff) 100% 100% / 2px 16px no-repeat; }
.sf-tag { position: absolute; top: 14px; left: 16px; font: 600 10.5px/1 'Exo 2', var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #7fe9ff; }
.sf-signal { position: absolute; top: 12px; right: 16px; display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sf-signal i { width: 3px; background: #7fe9ff; animation: sf-sig 1.6s ease-in-out infinite; }
.sf-signal i:nth-child(1) { height: 4px; }
.sf-signal i:nth-child(2) { height: 7px; animation-delay: .2s; }
.sf-signal i:nth-child(3) { height: 10px; animation-delay: .4s; }
.sf-signal i:nth-child(4) { height: 12px; animation-delay: .6s; }
@keyframes sf-sig { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.sf-realms .rt-em { filter: drop-shadow(0 0 8px rgba(127, 233, 255, .35)); }
.sf-realms .rt-realm:hover .rt-em { filter: drop-shadow(0 0 16px rgba(127, 233, 255, .7)); animation: sf-glitch .35s steps(2) 2; }
@keyframes sf-glitch { 0% { transform: translate(0); } 33% { transform: translate(-2px, 1px); } 66% { transform: translate(2px, -1px); } }
.sf-realms .rt-realm-name { font: 700 16px/1.3 'Syncopate', var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #ffe2bc; }
.sf-realms .rt-realm-blurb { font: 400 15.5px/1.45 'Exo 2', var(--sans); color: #cfd8e6; }
.sf-realms .rt-realm-count { font-family: 'Exo 2', var(--sans); color: #7fe9ff; }
.sf-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 1px dashed rgba(127, 233, 255, .3); }
.sf-realms .rt-dots button { border-color: rgba(127, 233, 255, .55); background: rgba(127, 233, 255, .12); }
.sf-realms .rt-dots button.on { background: #7fe9ff; box-shadow: 0 0 10px rgba(127, 233, 255, .8); }
.sf-realms .rt-swipe { font-family: 'Exo 2', var(--sans); font-style: normal; color: #a8b4c8; }
.sf-realms .rt-swipe i { color: #7fe9ff; }
.sf-realms.compact .rt-realm { padding: 30px 12px 14px; }
.sf-realms.compact .rt-realm-name { font-size: 11.5px; }
.sf-realms.compact .sf-tag { font-size: 9px; top: 10px; left: 12px; }
.sf-spin { transform-box: view-box; transform-origin: 60px 60px; animation: fa-rose 12s linear infinite; }
.sf-spin.r { animation-direction: reverse; animation-duration: 8s; }
.sf-scan { animation: sf-scan 4s ease-in-out infinite; }
@keyframes sf-scan { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-14px); } 70% { transform: translateX(14px); } }
.sf-grain { animation: fa-march 1s linear infinite; }

@media (max-width: 760px) {
  .fa-hint, .sf-hint { display: none; }
  .fa-hero::after { background: radial-gradient(ellipse 90% 46% at 50% 28%, rgba(244, 230, 196, .9), rgba(244, 230, 196, .4) 60%, transparent 85%); }
}
@media (max-width: 560px) {
  .fa-realms .rt-realm, .fa-realms .rt-realm:hover { transform: scale(calc(1 - var(--k, 0) * .1)); animation: none; }
  .sf-realms .rt-realm, .sf-realms .rt-realm:hover { transform: scale(calc(1 - var(--k, 0) * .1)); }
}
@media (prefers-reduced-motion: reduce) {
  .fa-clouds i, .fa-rose, .fa-hump, .fa-head, .fa-wing, .fa-route, .fa-pin, .fa-spin, .fa-gem, .fa-bolt, .em-flame-a,
  .sf-wings, .sf-maw, .sf-signal i, .sf-spin, .sf-scan, .sf-grain, .sf-hero .rt-eyebrow i { animation: none !important; }
}

/* ==========================================================================
   CONTEMPORARY ROMANCE — a city rooftop at golden dusk: plum night, blush pink,
   string-light gold.
   ========================================================================== */
body.theme-contemporary-romance {
  --canvas: #140f22; --white: #1b1530; --card: #1d1630; --card-2: #261d3c; --line: #34284e; --line-2: #42345e;
  --ink: #fbeef4; --ink-2: #e2cfdc; --muted: #ab98b4;
  --burgundy: #ff6f91; --burgundy-2: #ff86a4; --burgundy-ink: #2a0614; --rose: #ffb3c4;
  --gold: #ffd27a; --gold-2: #ffe2a8; --gold-soft: #2c2218;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .55); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 143, 168, .2);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 143, 168, .3);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .16);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 85% -10%, rgba(255, 111, 145, .16), transparent 45%), radial-gradient(ellipse at 0% 70%, rgba(255, 210, 122, .08), transparent 50%),
    radial-gradient(1px 1px at 40px 60px, rgba(255, 240, 220, .35), transparent 70%), radial-gradient(1px 1px at 170px 150px, rgba(255, 190, 210, .3), transparent 70%);
  background-size: auto, auto, 240px 240px, 240px 240px;
}
body.theme-contemporary-romance .topbar { background: linear-gradient(90deg, #3a1a4a, #8a2a5a 50%, #3a1a4a); color: #ffe6ee; }
body.theme-contemporary-romance .header { background: rgba(20, 15, 34, .9); border-bottom-color: rgba(255, 143, 168, .2); }
body.theme-contemporary-romance .search input { background: var(--white); color: var(--ink); }
body.theme-contemporary-romance .nav a:hover, body.theme-contemporary-romance .nav a.active { background: var(--card-2); color: var(--rose); }
body.theme-contemporary-romance .btn-primary { background: linear-gradient(180deg, #ff86a4, #e0466e); color: #fff; box-shadow: 0 6px 18px rgba(255, 111, 145, .32); }
body.theme-contemporary-romance .btn-primary:hover { background: linear-gradient(180deg, #ff9ab4, #ea5279); }
body.theme-contemporary-romance .btn-ghost { color: var(--ink); }
body.theme-contemporary-romance .filters a.active { background: linear-gradient(90deg, #e0466e, #8a2a7a); color: #fff; }
body.theme-contemporary-romance .cover.photo { background: #1b1530; }
body.theme-contemporary-romance .footer { background: #0c0916; border-top-color: rgba(255, 143, 168, .16); }
body.theme-contemporary-romance .mobile-tabbar { background: #171127; }
body.theme-contemporary-romance ::selection { background: #ff6f91; color: #fff; }
body.theme-contemporary-romance .book-card { background: linear-gradient(180deg, #1f1733, #171127); border-color: rgba(255, 143, 168, .14); }
body.theme-contemporary-romance .book-card:hover { border-color: rgba(255, 143, 168, .6); box-shadow: 0 18px 40px -14px rgba(255, 111, 145, .4), 0 0 0 1px rgba(255, 210, 122, .2); }
body.theme-contemporary-romance .book-card .media { background: radial-gradient(ellipse at 50% 20%, rgba(255, 111, 145, .2), transparent 70%), #211936; }
body.theme-contemporary-romance .list-head h2 { font-family: 'DM Serif Display', var(--serif); font-style: italic; color: var(--gold-2); }

.cr-hero { background: #1a1030; color: #fff0f4; }
.cr-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #120c2c 0%, #2e1a4e 26%, #6a2a6a 46%, #c2486e 64%, #f2876a 80%, #ffc488 92%, #ffe0a8 100%); }
.cr-stars circle { animation: cz-twinkle 4s ease-in-out infinite; }
.cr-stars circle:nth-child(3n) { animation-delay: -2s; }
.cr-w { opacity: 0; transition: opacity .8s; }
.cr-w.on { opacity: 1; }
.cr-wheel { transform-box: fill-box; transform-origin: center; animation: fa-rose 50s linear infinite; }
.cr-mill { transform-box: fill-box; transform-origin: center; animation: fa-rose 9s linear infinite; }
.cr-blink { animation: dr-blink 1.6s steps(1) infinite; }
.cr-pent { animation: cz-twinkle 6s ease-in-out infinite; }
.cr-flood { animation: cr-flood 5s ease-in-out infinite; }
@keyframes cr-flood { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.cr-bulb { animation: cz-twinkle 3.6s ease-in-out infinite; }
.cr-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: em-flick 1s ease-in-out infinite alternate; }
.cr-steam path { stroke-dasharray: 10 60; animation: cz-steam 3.4s ease-in-out infinite; }
.cr-steam path:nth-child(2) { animation-delay: -1.6s; }
/* landmarks: links in the city (the words layer lets clicks through) */
.cr-hero .rt-content { pointer-events: none; }
.cr-hero .rt-content > * { pointer-events: auto; }
.cr-mark { pointer-events: auto; cursor: pointer; transition: filter .3s; }
.cr-mark:hover, .cr-mark:focus-visible { filter: drop-shadow(0 0 12px rgba(255, 143, 168, .8)) brightness(1.15); }
.cr-label { animation: fa-pop .6s var(--d, .4s) cubic-bezier(.3, 1.6, .5, 1) both; }
.cr-mark:hover .cr-label rect, .cr-mark.on .cr-label rect { fill: #ff6f91; stroke: #ffe2a8; }
.cr-hero .rt-fade { background: linear-gradient(rgba(20, 15, 34, 0), rgba(20, 15, 34, .75) 55%, var(--canvas)); }
.cr-hero::after { background: radial-gradient(ellipse 46% 58% at 22% 50%, rgba(18, 8, 30, .62), transparent 72%); }
.cr-hero .rt-eyebrow { font: 700 26px/1.1 'Dancing Script', cursive; letter-spacing: .02em; text-transform: none; color: #ffc2d2; }
.cr-hero .rt-title { font-family: 'DM Serif Display', var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.005em; line-height: 1.02; font-size: clamp(40px, 5.8vw, 84px); padding-right: .12em; max-width: min(760px, 60vw) !important;
  background: linear-gradient(180deg, #fff6f8 0%, #ffd0dc 55%, #ffb07a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 10, 30, .6)) drop-shadow(0 0 26px rgba(255, 111, 145, .4)); animation: rt-rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.cr-hero.is-sub .rt-title { font-size: clamp(32px, 4.8vw, 66px); }
.cr-hero .rt-lede { font-family: 'DM Serif Display', var(--serif); color: #fbe4ec; }
.cr-hero .rt-btn { background: linear-gradient(180deg, #ff9ab4, #ff6f91 55%, #d0406a); color: #fff; border-color: #ffd0dc; box-shadow: 0 0 0 4px rgba(255, 111, 145, .2), 0 10px 26px rgba(255, 111, 145, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.cr-hero .rt-btn-ghost { border-color: rgba(255, 210, 122, .6); color: #fff0e0; background: rgba(30, 14, 40, .45); }
.cr-hero .rt-btn-ghost:hover { background: rgba(255, 210, 122, .16); }
.cr-hero .rt-stats { color: #ecd6e2; }
.cr-hero .rt-stats b { font-family: 'DM Serif Display', var(--serif); color: #ffd27a; text-shadow: 0 0 14px rgba(255, 210, 122, .45); }
.cr-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #e8cddb; animation: rt-in 1s 1.4s both; }
.cr-hint .ms { font-size: 18px; color: #ffd27a; }
.cr-hero.is-sub .cr-hint { display: none; }
.cr-hero .rt-hero-em { filter: drop-shadow(0 0 16px rgba(255, 111, 145, .55)); }
/* cards: tickets for a date night */
.cr-realms .rt-sec-head h2 { font-family: 'DM Serif Display', var(--serif); font-style: italic; font-weight: 400; color: #ffe2a8; text-shadow: 0 0 24px rgba(255, 111, 145, .3); }
.cr-realms .rt-eyebrow { font: 700 24px/1.1 'Dancing Script', cursive; letter-spacing: 0; text-transform: none; color: #ff9ab4; }
.cr-realms .rt-realm-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; }
.cr-realms .rt-realm { border: 1px solid rgba(255, 143, 168, .35); border-radius: 16px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 111, 145, .22), transparent 70%), linear-gradient(180deg, #241a3c, #1a1230); }
.cr-realms .rt-realm::before { display: none; }
.cr-ticket { position: absolute; left: 16px; right: 16px; top: 62%; border-top: 2px dashed rgba(255, 143, 168, .3); pointer-events: none; }
.cr-ticket::before, .cr-ticket::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--canvas); border: 1px solid rgba(255, 143, 168, .35); }
.cr-ticket::before { left: -29px; }
.cr-ticket::after { right: -29px; }
.cr-realms .rt-realm:hover, .cr-realms .rt-realm:focus-visible { border-color: #ff8fa8; box-shadow: 0 22px 44px -16px rgba(255, 111, 145, .5); }
.cr-realms .rt-realm.on { border-color: #ffd27a; box-shadow: 0 0 30px rgba(255, 210, 122, .25); }
.cr-realms .rt-realm-name { font: 400 22px/1.2 'DM Serif Display', var(--serif); color: #ffe2a8; }
.cr-realms .rt-realm-blurb { font: 500 15.5px/1.45 var(--sans); font-style: normal; color: #e2cfdc; }
.cr-realms .rt-realm-count { color: #ff9ab4; }
.cr-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 0; }
.cr-realms .rt-dots button { border-color: rgba(255, 143, 168, .55); background: rgba(255, 143, 168, .15); }
.cr-realms .rt-dots button.on { background: #ff8fa8; box-shadow: 0 0 10px rgba(255, 111, 145, .8); }
.cr-realms .rt-swipe i { color: #ff8fa8; }
.cr-realms.compact .rt-realm-grid { grid-template-columns: none; grid-auto-columns: minmax(170px, 230px); justify-content: start; }
.cr-realms.compact .rt-realm-name { font-size: 16px; }
.cr-realms.compact .cr-ticket { display: none; }

/* ==========================================================================
   YOUNG ADULT — the back page of a school notebook: lined paper, ballpoint
   blue, highlighters. A light theme.
   ========================================================================== */
body.theme-young-adult {
  --canvas: #faf7ef; --white: #fffdf7; --card: #fffdf7; --card-2: #f3efe2; --line: #e4ddca; --line-2: #d4ccb4;
  --ink: #1f2550; --ink-2: #3a4170; --muted: #6f7394;
  --burgundy: #e0337a; --burgundy-2: #ea4a8a; --burgundy-ink: #fff; --rose: #ff8fc7;
  --gold: #e8a400; --gold-2: #ffc83a; --gold-soft: #fff4c8;
  background-color: var(--canvas);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 150, 220, .14) 31px 32px);
}
body.theme-young-adult .topbar { background: linear-gradient(90deg, #2440c8, #6a3ac8 50%, #e0337a); color: #fff; }
body.theme-young-adult .header { background: rgba(255, 253, 247, .95); border-bottom-color: #e4ddca; }
body.theme-young-adult .btn-primary { background: #2440c8; color: #fff; box-shadow: 3px 3px 0 #1f2550; border: 2px solid #1f2550; }
body.theme-young-adult .btn-primary:hover { background: #3050e0; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #1f2550; }
body.theme-young-adult .filters a.active { background: #ffe45c; color: #1f2550; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
body.theme-young-adult .footer { background: #1f2550; }
body.theme-young-adult ::selection { background: #ffe45c; color: #1f2550; }
body.theme-young-adult .book-card { background: #fffdf7; border: 2px solid #1f2550; box-shadow: 3px 3px 0 rgba(31, 37, 80, .9); }
body.theme-young-adult .book-card:hover { transform: translate(-2px, -2px) rotate(-.5deg); box-shadow: 6px 6px 0 #e0337a; }
body.theme-young-adult .book-card .media { background: repeating-linear-gradient(180deg, transparent 0 15px, rgba(110, 150, 220, .2) 15px 16px), #fffdf7; }
body.theme-young-adult .list-head h2 { font-family: 'Permanent Marker', cursive; font-weight: 400; color: #2440c8; }

.ya-hero { background: #fbf8ee; color: #1f2550; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 28l2-7L24 3l5 5L11 26z' fill='%23fff' stroke='%231f2550' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 28l2-7l5 5z' fill='%232440c8'/%3E%3Cpath d='M21 6l5 5' stroke='%23e0337a' stroke-width='3'/%3E%3C/svg%3E") 3 29, crosshair; }
.ya-hero a, .ya-hero button { cursor: pointer; }
.ya-paper { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 33px, #c4d4f0 33px 34px), #fbf8ee; background-position: 0 70px; }
.ya-paper::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(28px, 6vw, 96px); width: 2px; background: rgba(224, 70, 90, .5); box-shadow: 5px 0 0 rgba(224, 70, 90, .25); }
.ya-paper::after { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 16px; background: radial-gradient(circle 7px at 8px 50%, #e4dccb 92%, transparent) 0 0 / 16px 140px repeat-y; }
.ya-ink { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rt-draw 1.1s cubic-bezier(.4, .2, .3, 1) forwards; }
.ya-hi { fill: none; stroke-width: 18; stroke-linecap: round; opacity: 0; mix-blend-mode: multiply; animation: ya-hi .5s forwards; }
@keyframes ya-hi { to { opacity: .55; } }
.ya-step, .ya-fade { opacity: 0; animation: ya-show .4s forwards; }
@keyframes ya-show { to { opacity: 1; } }
.ya-rocket { transform-box: fill-box; transform-origin: 50% 100%; }
.ya-rocket.go { animation: ya-launch 2.6s cubic-bezier(.5, 0, .3, 1); }
@keyframes ya-launch { 0% { transform: none; } 10% { transform: translate(1px, 2px); } 55% { transform: translateY(-640px) scale(.6); opacity: 1; } 56% { opacity: 0; } 70% { transform: translateY(300px); opacity: 0; } 72% { opacity: 1; } 100% { transform: none; } }
.ya-fire { animation: em-flick .15s steps(2) infinite alternate; }
.ya-flag { transform-box: fill-box; transform-origin: 0 50%; animation: ya-flag 1.4s ease-in-out infinite alternate; }
@keyframes ya-flag { to { transform: scaleX(.75) skewY(6deg); } }
.ya-bolt { animation: ya-bolt 3s steps(1) infinite; }
@keyframes ya-bolt { 0%, 86%, 100% { fill: #ffe45c; } 88%, 92% { fill: #fff; } }
.ya-link { pointer-events: auto; cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ya-link:hover, .ya-link:focus-visible { transform: rotate(-3deg) scale(1.06); }
.ya-link:hover .ya-label rect, .ya-link.on .ya-label rect { fill: #ff8fc7; }
.ya-label { opacity: 0; animation: ya-show .4s 1.8s forwards; }
.ya-hero .rt-content { pointer-events: none; }
.ya-hero .rt-content > * { pointer-events: auto; }
.ya-hero .rt-fade { height: 70px; background: linear-gradient(rgba(250, 247, 239, 0), var(--canvas)); }
.ya-hero::after { background: radial-gradient(ellipse 44% 60% at 22% 50%, rgba(251, 248, 238, .92), rgba(251, 248, 238, .5) 60%, transparent 80%); }
.ya-hero .crumbs, .ya-hero .crumbs a { color: #3a4170; }
.ya-hero .rt-eyebrow { font: 400 22px/1.1 'Patrick Hand', cursive; letter-spacing: .02em; text-transform: none; color: #e0337a; text-shadow: none; transform: rotate(-2deg); }
.ya-hero .rt-title { font-family: 'Permanent Marker', cursive; font-weight: 400; letter-spacing: .01em; line-height: 1.12; font-size: clamp(44px, 7vw, 100px); color: #1f2550; background: none; filter: none; animation: rt-in 1s cubic-bezier(.2, .7, .2, 1) both; rotate: -1.5deg; }
.ya-hero .rt-title span { background: linear-gradient(transparent 58%, rgba(255, 228, 92, .85) 58%, rgba(255, 228, 92, .85) 92%, transparent 92%); padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ya-hero.is-sub .rt-title { font-size: clamp(34px, 5vw, 70px); }
.ya-divider { width: 260px; }
.ya-hero .rt-lede { font: 400 clamp(20px, 2vw, 25px)/1.35 'Patrick Hand', cursive; font-style: normal; color: #2a3168; text-shadow: none; }
.ya-hero .rt-btn { background: #2440c8; color: #fff; border: 2px solid #1f2550; font-family: 'Nunito', var(--sans); font-weight: 800; box-shadow: 4px 4px 0 #1f2550; }
.ya-hero .rt-btn::after { display: none; }
.ya-hero .rt-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #e0337a; }
.ya-hero .rt-btn-ghost { color: #1f2550; border: 2px solid #1f2550; background: #fff; font-family: 'Nunito', var(--sans); font-weight: 800; box-shadow: 4px 4px 0 rgba(31, 37, 80, .25); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ya-hero .rt-btn-ghost:hover { background: #ffe45c; transform: translate(-2px, -2px); }
.ya-hero .rt-stats { font-family: 'Nunito', var(--sans); color: #3a4170; }
.ya-hero .rt-stats b { font-family: 'Permanent Marker', cursive; font-weight: 400; color: #e0337a; text-shadow: none; }
.ya-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 400 19px/1.2 'Patrick Hand', cursive; color: #2440c8; animation: rt-in 1s 1.4s both; }
.ya-hint .ms { font-size: 20px; color: #e0337a; }
.ya-hero.is-sub .ya-hint { display: none; }
.ya-hero-em { width: 92px; height: 92px; padding: 6px; background: #fff59a; rotate: -4deg; box-shadow: 0 6px 14px rgba(31, 37, 80, .2); filter: none !important; }
/* cards: sticky notes */
.ya-realms .rt-sec-head h2 { font-family: 'Permanent Marker', cursive; font-weight: 400; color: #1f2550; text-shadow: none; }
.ya-realms .rt-eyebrow { font: 400 22px/1.1 'Patrick Hand', cursive; letter-spacing: 0; text-transform: none; color: #e0337a; text-shadow: none; }
.ya-realms .rt-divider path { stroke: #2440c8; }
.ya-realms .rt-realm-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); justify-content: center; gap: 30px; padding-top: 14px; }
.ya-realms .rt-realm { overflow: visible; border: 0; border-radius: 2px; background: var(--note, #fff59a); color: #1f2550; padding: 34px 22px 22px; transform: rotate(-1.5deg);
  box-shadow: 0 14px 18px -12px rgba(31, 37, 80, .45), inset 0 -30px 30px -30px rgba(0, 0, 0, .12); }
.ya-realms .rt-realm:nth-child(2n) { transform: rotate(1.4deg); }
.ya-realms .rt-realm::before, .ya-realms .rt-realm::after { display: none; }
.ya-realms .rt-realm:hover, .ya-realms .rt-realm:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 22px 26px -14px rgba(31, 37, 80, .5); }
.ya-realms .rt-realm.on { outline: 3px solid #2440c8; outline-offset: 4px; }
.ya-tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; transform: rotate(-4deg); opacity: .85;
  background: repeating-linear-gradient(90deg, rgba(110, 150, 220, .55) 0 10px, rgba(160, 190, 240, .55) 10px 20px); }
.ya-realms .rt-em { filter: none; }
.ya-realms .rt-realm:hover .rt-em { filter: none; transform: rotate(-6deg) scale(1.08); }
.ya-realms .rt-realm-name { font: 400 23px/1.2 'Permanent Marker', cursive; color: #1f2550; }
.ya-realms .rt-realm-blurb { font: 400 20px/1.25 'Patrick Hand', cursive; font-style: normal; color: #2a3168; }
.ya-realms .rt-realm-count { color: #e0337a; font-family: 'Nunito', var(--sans); }
.ya-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top: 2px dotted rgba(31, 37, 80, .25); }
.ya-realms .rt-dots button { border-color: #1f2550; background: #fff; }
.ya-realms .rt-dots button.on { background: #ffe45c; box-shadow: none; }
.ya-realms .rt-dots::before, .ya-realms .rt-dots::after { background: linear-gradient(90deg, transparent, rgba(31, 37, 80, .4)); }
.ya-realms .rt-swipe { font-family: 'Patrick Hand', cursive; font-style: normal; color: #3a4170; }
.ya-realms .rt-swipe i { color: #e0337a; }
.ya-realms.compact .rt-realm-grid { grid-template-columns: none; grid-auto-columns: minmax(170px, 220px); justify-content: start; gap: 22px; padding: 20px 6px 14px; }
.ya-realms.compact .rt-realm { padding: 22px 12px 14px; }
.ya-realms.compact .rt-realm-name { font-size: 16px; }

/* ==========================================================================
   BUSINESS & SELF-DEVELOPMENT — sunrise on the climb: dawn navy, mountain teal,
   sunrise gold.
   ========================================================================== */
body.theme-self-development {
  --canvas: #0b1820; --white: #10212a; --card: #12242e; --card-2: #182e3a; --line: #24404e; --line-2: #2e4e5e;
  --ink: #eef5f4; --ink-2: #cfe0de; --muted: #8fa8ac;
  --burgundy: #ff7a4a; --burgundy-2: #ff8f60; --burgundy-ink: #2a0e02; --rose: #ffb08a;
  --gold: #ffc24a; --gold-2: #ffd98a; --gold-soft: #2a2414;
  --sage: #7ac46a;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .55); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 194, 74, .16);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 194, 74, .28);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 80% -10%, rgba(255, 176, 96, .15), transparent 45%), radial-gradient(ellipse at 0% 60%, rgba(60, 160, 150, .1), transparent 50%);
}
body.theme-self-development .topbar { background: linear-gradient(90deg, #0b1820, #5a3a1a 50%, #0b1820); color: #ffe2b0; }
body.theme-self-development .header { background: rgba(11, 24, 32, .9); border-bottom-color: rgba(255, 194, 74, .18); }
body.theme-self-development .search input { background: var(--white); color: var(--ink); }
body.theme-self-development .nav a:hover, body.theme-self-development .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-self-development .btn-primary { background: linear-gradient(180deg, #ffce5a, #f2a020); color: #2a1602; font-weight: 800; box-shadow: 0 6px 18px rgba(255, 176, 60, .3); }
body.theme-self-development .btn-primary:hover { background: linear-gradient(180deg, #ffd870, #ffb030); }
body.theme-self-development .btn-ghost { color: var(--ink); }
body.theme-self-development .filters a.active { background: linear-gradient(90deg, #1f6a6a, #164a5a); color: #effffb; }
body.theme-self-development .cover.photo { background: #10212a; }
body.theme-self-development .footer { background: #071016; border-top-color: rgba(255, 194, 74, .14); }
body.theme-self-development .mobile-tabbar { background: #0e1e26; }
body.theme-self-development ::selection { background: #ffc24a; color: #0b1820; }
body.theme-self-development .book-card { background: linear-gradient(180deg, #13262f, #0f1f27); border-color: rgba(255, 194, 74, .12); }
body.theme-self-development .book-card:hover { border-color: rgba(255, 194, 74, .55); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 24px rgba(255, 194, 74, .14); }
body.theme-self-development .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(255, 176, 96, .18), transparent 60%), #12242e; }
body.theme-self-development .list-head h2 { font-family: 'Outfit', var(--sans); font-weight: 800; color: var(--gold-2); }

.sd-hero { background: #0f2230; color: #f4fbfa; }
.sd-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0a1630 0%, #1a3458 26%, #3a5a7a 44%, #a87a7a 60%, #f2a866 76%, #ffd890 90%, #fff0c0 100%); }
.sd-stars { animation: sd-dawn 6s ease-out forwards; }
@keyframes sd-dawn { to { opacity: .25; } }
.sd-sun { animation: sd-rise 4.5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sd-rise { from { transform: translateY(170px); } }
.sd-rays { transform-box: fill-box; transform-origin: center; animation: fa-rose 90s linear infinite; }
.sd-chart-line { animation: rt-draw 2.6s .5s ease forwards; }
.sd-node { opacity: 0; animation: ya-show .5s forwards; }
.sd-flag { transform-box: fill-box; transform-origin: 0 50%; animation: ya-flag 1.2s ease-in-out infinite alternate; }
.sd-trail { animation: fa-march 3s linear infinite; }
.sd-mile { pointer-events: auto; cursor: pointer; animation: fa-pop .6s var(--d, 1s) cubic-bezier(.3, 1.6, .5, 1) both; }
.sd-mile-glow { fill: rgba(255, 194, 74, 0); transition: fill .3s; }
.sd-mile:hover .sd-mile-glow, .sd-mile.on .sd-mile-glow { fill: rgba(255, 194, 74, .35); }
.sd-mile:hover .sd-tag rect, .sd-mile.on .sd-tag rect { fill: #ffc24a; }
.sd-mile:hover .sd-tag text, .sd-mile.on .sd-tag text { fill: #2a1602; }
.sd-br { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rt-draw .45s ease-out forwards; }
.sd-leaf, .sd-fruit { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: sd-pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.sd-fruit { animation-name: sd-pop, sd-glint; animation-duration: .5s, 2.4s; animation-iteration-count: 1, infinite; }
@keyframes sd-pop { to { transform: scale(1); } }
@keyframes sd-glint { 0%, 100% { filter: none; } 50% { filter: brightness(1.35); } }
.sd-float { animation: sd-float 3s ease-in-out infinite; }
@keyframes sd-float { 50% { transform: translate(3px, -4px); } }
.sd-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: rt-sway 3s ease-in-out infinite alternate; }
.sd-glow { animation: cz-twinkle 3s ease-in-out infinite; }
.sd-hero .rt-content { pointer-events: none; }
.sd-hero .rt-content > * { pointer-events: auto; }
.sd-hero .rt-fade { height: 70px; background: linear-gradient(rgba(11, 24, 32, 0), var(--canvas)); }
.sd-hero::after { background: radial-gradient(ellipse 46% 58% at 22% 46%, rgba(8, 20, 34, .62), transparent 72%); }
.sd-hero .rt-eyebrow { font: italic 500 19px/1.2 'Newsreader', var(--serif); letter-spacing: .04em; text-transform: none; color: #ffe2b0; }
.sd-hero .rt-title { font-family: 'Outfit', var(--sans); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(36px, 4.8vw, 72px); max-width: min(720px, 56vw) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff0c8 55%, #ffc24a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10, 30, 40, .6)) drop-shadow(0 0 22px rgba(255, 194, 74, .3)); animation: rt-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.sd-hero.is-sub .rt-title { font-size: clamp(30px, 4.4vw, 62px); }
.sd-hero .rt-lede { font-family: 'Newsreader', var(--serif); color: #e8f2f0; }
.sd-hero .rt-btn { background: linear-gradient(180deg, #ffd870, #ffc24a 55%, #e0901a); color: #2a1602; border-color: #fff0c8; font-family: 'Outfit', var(--sans); }
.sd-hero .rt-btn-ghost { border-color: rgba(255, 240, 200, .6); color: #fff8e8; background: rgba(10, 30, 40, .45); font-family: 'Outfit', var(--sans); }
.sd-hero .rt-btn-ghost:hover { background: rgba(255, 194, 74, .16); }
.sd-hero .rt-stats { font-family: 'Outfit', var(--sans); color: #d6e6e4; }
.sd-hero .rt-stats b { font-family: 'Outfit', var(--sans); font-weight: 800; color: #ffd98a; text-shadow: 0 0 14px rgba(255, 194, 74, .4); }
.sd-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 500 14.5px/1.3 'Outfit', var(--sans); color: #d6e6e4; animation: rt-in 1s 1.4s both; }
.sd-hint .ms { font-size: 19px; color: #7ac46a; }
.sd-hero.is-sub .sd-hint { display: none; }
.sd-hero .rt-hero-em { filter: drop-shadow(0 0 16px rgba(255, 194, 74, .5)); }
/* cards: steps of the climb, each with its progress bar */
.sd-realms .rt-sec-head h2 { font-family: 'Outfit', var(--sans); font-weight: 800; letter-spacing: -.02em; color: #ffe2b0; text-shadow: none; }
.sd-realms .rt-eyebrow { font: italic 500 19px/1.2 'Newsreader', var(--serif); letter-spacing: .04em; text-transform: none; color: #ffc24a; }
.sd-realms .rt-realm-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sd-realms .rt-realm { border: 1px solid rgba(255, 194, 74, .22); border-radius: 18px; padding: 42px 22px 26px; background: linear-gradient(180deg, rgba(255, 194, 74, .08), transparent 50%), #12242e; }
.sd-realms .rt-realm::before { display: none; }
.sd-realms .rt-realm:hover, .sd-realms .rt-realm:focus-visible { border-color: #ffc24a; box-shadow: 0 22px 40px -18px rgba(255, 176, 60, .45); }
.sd-realms .rt-realm.on { border-color: #7ac46a; box-shadow: 0 0 26px rgba(122, 196, 106, .3); }
.sd-step { position: absolute; top: 16px; left: 18px; font: 800 11px/1 'Outfit', var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #ffc24a; }
.sd-bar { position: absolute; left: 18px; right: 18px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sd-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7ac46a, #ffc24a); transform-origin: 0 50%; transition: transform .8s; }
.sd-realms .rt-realm:not(:hover) .sd-bar i { transform: scaleX(.6); }
.sd-realms .rt-realm-name { font: 800 20px/1.2 'Outfit', var(--sans); color: #fff3d6; }
.sd-realms .rt-realm-blurb { font: italic 400 17px/1.4 'Newsreader', var(--serif); color: #cfe0de; }
.sd-realms .rt-realm-count { color: #ffc24a; }
.sd-realms .rt-realm-name + .rt-realm-blurb + .rt-realm-count { border-top-color: rgba(255, 194, 74, .2); }
.sd-realms .rt-dots button { border-color: rgba(255, 194, 74, .55); background: rgba(255, 194, 74, .12); }
.sd-realms .rt-dots button.on { background: #ffc24a; box-shadow: 0 0 10px rgba(255, 194, 74, .8); }
.sd-realms .rt-swipe { font-family: 'Newsreader', var(--serif); }
.sd-realms .rt-swipe i { color: #ffc24a; }
.sd-realms.compact .rt-realm { padding: 30px 12px 20px; }
.sd-realms.compact .rt-realm-name { font-size: 14px; }
.sd-realms.compact .sd-step { font-size: 9px; top: 10px; left: 12px; }

/* ==========================================================================
   MEMOIR & NONFICTION — a writer's desk at night: bottle green, walnut,
   lamplight, typewriter ink.
   ========================================================================== */
body.theme-nonfiction {
  --canvas: #12100c; --white: #1a1712; --card: #1c1913; --card-2: #25211a; --line: #352f24; --line-2: #443c2e;
  --ink: #f4ecdc; --ink-2: #ddd2bc; --muted: #a89c84;
  --burgundy: #c8302a; --burgundy-2: #d8443c; --burgundy-ink: #fff4ec; --rose: #e0907a;
  --gold: #e8c88a; --gold-2: #f6e2b8; --gold-soft: #2a2416;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .6); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(232, 200, 138, .14);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .85), 0 0 0 1px rgba(232, 200, 138, .26);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .12);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 80% 0%, rgba(255, 200, 120, .1), transparent 50%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 22px, transparent 22px 44px);
}
body.theme-nonfiction .topbar { background: linear-gradient(90deg, #12100c, #2a3a30 50%, #12100c); color: #f6e2b8; }
body.theme-nonfiction .header { background: rgba(18, 16, 12, .92); border-bottom-color: rgba(232, 200, 138, .16); }
body.theme-nonfiction .search input { background: var(--white); color: var(--ink); }
body.theme-nonfiction .nav a:hover, body.theme-nonfiction .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-nonfiction .btn-primary { background: linear-gradient(180deg, #d8443c, #a8221c); color: #fff; box-shadow: 0 6px 18px rgba(200, 48, 42, .3); }
body.theme-nonfiction .btn-primary:hover { background: linear-gradient(180deg, #e2544a, #b82a22); }
body.theme-nonfiction .btn-ghost { color: var(--ink); }
body.theme-nonfiction .filters a.active { background: #2a3a30; color: #f6e2b8; }
body.theme-nonfiction .cover.photo { background: #1a1712; }
body.theme-nonfiction .footer { background: #0a0906; border-top-color: rgba(232, 200, 138, .14); }
body.theme-nonfiction .mobile-tabbar { background: #16130e; }
body.theme-nonfiction ::selection { background: #e8c88a; color: #12100c; }
body.theme-nonfiction .book-card { background: linear-gradient(180deg, #1e1a14, #17140f); border-color: rgba(232, 200, 138, .12); }
body.theme-nonfiction .book-card:hover { border-color: rgba(232, 200, 138, .5); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 24px rgba(255, 200, 120, .12); }
body.theme-nonfiction .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(255, 200, 120, .16), transparent 60%), #1c1913; }
body.theme-nonfiction .list-head h2 { font-family: 'Special Elite', monospace; font-weight: 400; color: var(--gold-2); }

.nf-hero { background: #141a16; color: #f6ecd8; }
.nf-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse 70% 80% at 68% 70%, transparent 40%, rgba(5, 4, 2, .65)); }
.nf-cone { animation: nf-lamp 7s ease-in-out infinite; }
@keyframes nf-lamp { 0%, 100% { opacity: .9; } 47% { opacity: 1; } 50% { opacity: .78; } 53% { opacity: 1; } }
.nf-bulb { filter: drop-shadow(0 0 10px #ffe8a0); }
.nf-steam path { stroke-dasharray: 12 70; animation: cz-steam 3.4s ease-in-out infinite; }
.nf-steam path:nth-child(2) { animation-delay: -1.7s; }
.nf-carriage { transition: transform .09s ease-out; }
.nf-key.hit { animation: nf-hit .14s ease-out; }
@keyframes nf-hit { 50% { transform: translateY(3px); filter: brightness(1.4); } }
.nf-bell.ring { animation: nf-ring .7s ease-out; }
@keyframes nf-ring { 0% { opacity: 0; } 15%, 60% { opacity: 1; } 100% { opacity: 0; } }
.nf-pen { animation: sd-float 3s ease-in-out infinite; }
.nf-hero .rt-content { pointer-events: none; }
.nf-hero .rt-content > * { pointer-events: auto; }
.nf-hero .rt-fade { background: linear-gradient(rgba(18, 16, 12, 0), rgba(18, 16, 12, .7) 55%, var(--canvas)); }
.nf-hero::after { background: radial-gradient(ellipse 46% 60% at 22% 50%, rgba(8, 10, 8, .7), transparent 72%); }
.nf-hero .rt-eyebrow { font: 400 15px/1.3 'Special Elite', monospace; letter-spacing: .24em; color: #e8c88a; }
.nf-hero .rt-title { font-family: 'Libre Baskerville', var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.06; font-size: clamp(36px, 5vw, 72px); max-width: min(680px, 54vw) !important; color: #f8eedc; background: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)); animation: rt-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.nf-hero.is-sub .rt-title { font-size: clamp(30px, 4.4vw, 60px); }
.nf-hero .rt-lede { font-family: 'Libre Baskerville', var(--serif); font-size: clamp(16px, 1.5vw, 19px); color: #e8dcc4; }
.nf-hero .rt-btn { background: linear-gradient(180deg, #f6e2b8, #e8c88a 55%, #b89050); color: #1e1408; border-color: #fff0cc; font-family: 'Special Elite', monospace; letter-spacing: .06em; }
.nf-hero .rt-btn-ghost { border-color: rgba(232, 200, 138, .55); color: #f6ecd8; background: rgba(10, 10, 8, .5); font-family: 'Special Elite', monospace; }
.nf-hero .rt-btn-ghost:hover { background: rgba(232, 200, 138, .14); }
.nf-hero .rt-stats { font-family: 'Special Elite', monospace; color: #d8cbb0; }
.nf-hero .rt-stats b { font-family: 'Libre Baskerville', var(--serif); color: #f6e2b8; text-shadow: 0 0 14px rgba(255, 200, 120, .35); }
.nf-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 400 14px/1.3 'Special Elite', monospace; color: #d8cbb0; animation: rt-in 1s 1.4s both; }
.nf-hint .ms { font-size: 19px; color: #e8c88a; }
.nf-hero.is-sub .nf-hint { display: none; }
.nf-hero .rt-hero-em { filter: drop-shadow(0 0 14px rgba(255, 200, 120, .4)); }
/* cards: chapter pages */
.nf-realms .rt-sec-head h2 { font-family: 'Libre Baskerville', var(--serif); color: #f6e2b8; text-shadow: none; }
.nf-realms .rt-eyebrow { font-family: 'Special Elite', monospace; color: #e8c88a; }
.nf-realms .rt-realm { border: 0; border-radius: 3px; color: #2a2016; background: #f4ecdc; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .9); padding: 42px 22px 22px; }
.nf-realms .rt-realm::before { display: none; }
.nf-realms .rt-realm:hover, .nf-realms .rt-realm:focus-visible { box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .9), 0 0 0 2px #e8c88a; }
.nf-chap { position: absolute; top: 16px; left: 0; right: 0; font: 400 12px/1 'Special Elite', monospace; letter-spacing: .24em; text-transform: uppercase; color: #8a2a22; }
.nf-realms .rt-realm-name { font: 700 19px/1.25 'Libre Baskerville', var(--serif); color: #2a2016; }
.nf-realms .rt-realm-blurb { font: italic 400 15px/1.45 'Libre Baskerville', var(--serif); color: #5a4a36; }
.nf-realms .rt-realm-count { color: #8a2a22; font-family: 'Special Elite', monospace; }

/* ==========================================================================
   BUNDLES & BOX SETS — the unboxing: deep emerald, ribbon red, gold foil.
   ========================================================================== */
body.theme-bundles {
  --canvas: #071a17; --white: #0d2420; --card: #0f2824; --card-2: #15332d; --line: #1f443c; --line-2: #2a564c;
  --ink: #effaf6; --ink-2: #cfe6de; --muted: #8fb0a6;
  --burgundy: #e8283c; --burgundy-2: #f2404f; --burgundy-ink: #fff; --rose: #ff8a96;
  --gold: #ffd98a; --gold-2: #ffe9b0; --gold-soft: #24261a;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .55); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 217, 138, .16);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 217, 138, .28);
  --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 75% -10%, rgba(255, 217, 138, .12), transparent 45%), radial-gradient(ellipse at 0% 60%, rgba(232, 40, 60, .07), transparent 50%);
}
body.theme-bundles .topbar { background: linear-gradient(90deg, #a8162a, #e8283c 50%, #a8162a); color: #fff; }
body.theme-bundles .header { background: rgba(7, 26, 23, .9); border-bottom-color: rgba(255, 217, 138, .16); }
body.theme-bundles .search input { background: var(--white); color: var(--ink); }
body.theme-bundles .nav a:hover, body.theme-bundles .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-bundles .btn-primary { background: linear-gradient(180deg, #f2404f, #c01a2c); color: #fff; box-shadow: 0 6px 18px rgba(232, 40, 60, .3); }
body.theme-bundles .btn-primary:hover { background: linear-gradient(180deg, #ff5260, #d0202f); }
body.theme-bundles .btn-ghost { color: var(--ink); }
body.theme-bundles .filters a.active { background: linear-gradient(90deg, #1a7a62, #0f5a4a); color: #fff; }
body.theme-bundles .cover.photo { background: #0d2420; }
body.theme-bundles .footer { background: #04110f; border-top-color: rgba(255, 217, 138, .14); }
body.theme-bundles .mobile-tabbar { background: #0b211d; }
body.theme-bundles ::selection { background: #e8283c; color: #fff; }
body.theme-bundles .book-card { background: linear-gradient(180deg, #102a25, #0b201c); border-color: rgba(255, 217, 138, .12); }
body.theme-bundles .book-card:hover { border-color: rgba(255, 217, 138, .55); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 24px rgba(255, 217, 138, .14); }
body.theme-bundles .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(255, 217, 138, .14), transparent 60%), #0f2824; }
body.theme-bundles .list-head h2 { font-family: 'Bricolage Grotesque', var(--sans); font-weight: 800; color: var(--gold-2); }

.bx-hero { background: #0b2a26; color: #f2fbf8; }
.bx-hero.over-box { cursor: pointer; }
.bx-book { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(0) scale(.94); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1) var(--d, .2s); }
.bx-hero.open .bx-book { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.bx-hero.open .bx-books { animation: bx-float 4s 1.4s ease-in-out infinite; }
@keyframes bx-float { 50% { transform: translateY(-8px); } }
.bx-lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.bx-hero.open .bx-lid { transform: translate(250px, 70px) rotate(24deg); }
.bx-hero:not(.open) .bx-lid { animation: bx-wiggle 3.2s 2s ease-in-out infinite; }
@keyframes bx-wiggle { 0%, 80%, 100% { transform: none; } 84% { transform: translateY(-6px) rotate(-2deg); } 88% { transform: translateY(-3px) rotate(2deg); } 92% { transform: none; } }
.bx-beam { opacity: 0; transition: opacity .8s .2s; }
.bx-hero.open .bx-beam { opacity: .85; }
.bx-tag { transform-box: fill-box; transform-origin: 0 50%; animation: rt-sway 3s ease-in-out infinite alternate; }
.bx-hero .rt-fade { background: linear-gradient(rgba(7, 26, 23, 0), rgba(7, 26, 23, .7) 55%, var(--canvas)); }
.bx-hero::after { background: radial-gradient(ellipse 46% 60% at 22% 50%, rgba(4, 16, 14, .66), transparent 72%); }
.bx-hero .rt-eyebrow { font: 700 12.5px/1.3 'Bricolage Grotesque', var(--sans); letter-spacing: .3em; color: #ffd98a; }
.bx-hero .rt-title { font-family: 'Bricolage Grotesque', var(--sans); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-size: clamp(38px, 5.4vw, 80px); max-width: min(700px, 54vw) !important;
  background: linear-gradient(180deg, #fff 0%, #ffe9b0 60%, #ffb84a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(120, 10, 20, .7)) drop-shadow(0 0 24px rgba(255, 217, 138, .3)); animation: rt-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.bx-hero.is-sub .rt-title { font-size: clamp(32px, 4.6vw, 64px); }
.bx-hero .rt-lede { font-family: 'Fraunces', var(--serif); color: #e2f2ec; }
.bx-hero .rt-btn { background: linear-gradient(180deg, #ff5260, #e8283c 55%, #b0142a); color: #fff; border-color: #ffb0b8; font-family: 'Bricolage Grotesque', var(--sans); box-shadow: 0 0 0 4px rgba(232, 40, 60, .2), 0 10px 26px rgba(232, 40, 60, .4), inset 0 1px 0 rgba(255, 255, 255, .4); }
.bx-hero .rt-btn-ghost { border-color: rgba(255, 217, 138, .6); color: #fff8e6; background: rgba(4, 20, 16, .45); font-family: 'Bricolage Grotesque', var(--sans); }
.bx-hero .rt-btn-ghost:hover { background: rgba(255, 217, 138, .14); }
.bx-hero .rt-stats { font-family: 'Bricolage Grotesque', var(--sans); color: #cfe6de; }
.bx-hero .rt-stats b { font-family: 'Bricolage Grotesque', var(--sans); font-weight: 800; color: #ffd98a; text-shadow: 0 0 14px rgba(255, 217, 138, .4); }
.bx-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 500 14.5px/1.3 'Bricolage Grotesque', var(--sans); color: #cfe6de; animation: rt-in 1s 1.4s both; }
.bx-hint .ms { font-size: 19px; color: #ff5260; }
.bx-hero.is-sub .bx-hint { display: none; }
/* cards: gift boxes with a ribbon */
.bx-realms .rt-sec-head h2 { font-family: 'Bricolage Grotesque', var(--sans); font-weight: 800; color: #ffe9b0; text-shadow: none; }
.bx-realms .rt-eyebrow { font-family: 'Bricolage Grotesque', var(--sans); color: #ff8a96; }
.bx-realms .rt-realm { border: 1px solid rgba(255, 217, 138, .25); border-radius: 12px; background: linear-gradient(180deg, #15332d, #0d2420); }
.bx-realms .rt-realm::before { display: none; }
.bx-ribbon { position: absolute; top: 0; bottom: 0; left: 50%; width: 18px; margin-left: -9px; background: linear-gradient(90deg, #a8162a, #ff4a5a, #a8162a); opacity: .85; z-index: -1; }
.bx-realms .rt-realm-name { font: 800 19px/1.25 'Bricolage Grotesque', var(--sans); color: #ffe9b0; }
.bx-realms .rt-realm-count { color: #ffd98a; }

/* ---------- the five newest themes on small screens ---------- */
@media (max-width: 760px) {
  .cr-hint, .ya-hint, .sd-hint, .nf-hint, .bx-hint { display: none; }
  .ya-hero::after { background: radial-gradient(ellipse 90% 46% at 50% 28%, rgba(251, 248, 238, .94), rgba(251, 248, 238, .5) 60%, transparent 85%); }
  .ya-hero .rt-title { rotate: none; }
  .cr-hero .rt-title, .sd-hero .rt-title, .nf-hero .rt-title, .bx-hero .rt-title { max-width: none !important; }
  .cr-hero .rt-title { font-size: clamp(34px, 10vw, 54px); }
  .sd-hero .rt-title { font-size: clamp(30px, 9vw, 48px); overflow-wrap: anywhere; }
  .ya-hero .rt-stats { background: rgba(255, 253, 247, .92); border-color: rgba(31, 37, 80, .25); }
}
@media (max-width: 560px) {
  .cr-realms .rt-realm, .cr-realms .rt-realm:hover { transform: scale(calc(1 - var(--k, 0) * .1)); }
  .ya-realms .rt-realm, .ya-realms .rt-realm:hover, .ya-realms .rt-realm:nth-child(2n) { transform: scale(calc(1 - var(--k, 0) * .1)); }
  .sd-realms .rt-realm, .sd-realms .rt-realm:hover, .nf-realms .rt-realm, .bx-realms .rt-realm { transform: scale(calc(1 - var(--k, 0) * .1)); }
  .ya-realms .rt-realm-grid, .ya-realms.compact .rt-realm-grid { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-stars circle, .cr-wheel, .cr-mill, .cr-blink, .cr-pent, .cr-flood, .cr-bulb, .cr-flame, .cr-steam path, .cr-label,
  .ya-ink, .ya-hi, .ya-step, .ya-fade, .ya-fire, .ya-flag, .ya-bolt, .ya-label,
  .sd-stars, .sd-sun, .sd-rays, .sd-chart-line, .sd-node, .sd-flag, .sd-trail, .sd-mile, .sd-float, .sd-sway, .sd-glow,
  .nf-cone, .nf-steam path, .nf-pen, .bx-lid, .bx-tag, .bx-books { animation: none !important; }
  .ya-ink, .sd-chart-line { stroke-dashoffset: 0; }
  .ya-hi { opacity: .55; }
  .ya-step, .ya-fade, .ya-label, .sd-node { opacity: 1; }
}

/* ==========================================================================
   SALE SCENES — Weekend Flash (night book market) and Mid-Week Steals (rainy café).
   The scene dresses the sale page; a cropped copy is the sale banner on the home page.
   ========================================================================== */
body.theme-flash-weekend {
  --canvas: #0d0b22; --white: #16132e; --card: #1a1636; --card-2: #221d44; --line: #2e2856; --line-2: #3a3268;
  --ink: #f6f0ff; --ink-2: #d8d0ec; --muted: #a49cc4;
  --burgundy: #ff6a3a; --burgundy-2: #ff8250; --burgundy-ink: #200a04; --rose: #ff9a7a;
  --gold: #ffc65a; --gold-2: #ffdb94; --gold-soft: #2a2218;
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .55); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 198, 90, .18);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 198, 90, .28); --emboss: inset 0 1px 1px rgba(255, 255, 255, .14);
  color-scheme: dark; background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 80% -10%, rgba(255, 198, 90, .1), transparent 45%), radial-gradient(ellipse at 0% 70%, rgba(255, 106, 58, .07), transparent 50%);
}
body.theme-flash-weekend .topbar { background: linear-gradient(90deg, #3a1240, #a8301e 50%, #3a1240); color: #fff2dc; }
body.theme-flash-weekend .header { background: rgba(13, 11, 34, .9); border-bottom-color: rgba(255, 198, 90, .18); }
body.theme-flash-weekend .search input { background: var(--white); color: var(--ink); }
body.theme-flash-weekend .nav a:hover, body.theme-flash-weekend .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-flash-weekend .btn-primary { background: linear-gradient(180deg, #ff8250, #d8401e); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 58, .3); }
body.theme-flash-weekend .btn-ghost { color: var(--ink); }
body.theme-flash-weekend .cover.photo { background: #16132e; }
body.theme-flash-weekend .footer { background: #08061a; border-top-color: rgba(255, 198, 90, .14); }
body.theme-flash-weekend .mobile-tabbar { background: #110e2a; }
body.theme-flash-weekend .book-card { background: linear-gradient(180deg, #1a1636, #13102a); border-color: rgba(255, 198, 90, .12); }
body.theme-flash-weekend .book-card:hover { border-color: rgba(255, 198, 90, .55); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 24px rgba(255, 198, 90, .16); }
body.theme-flash-weekend .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(255, 198, 90, .14), transparent 60%), #1a1636; }

body.theme-flash-midweek {
  --canvas: #1a110d; --white: #241813; --card: #2a1c16; --card-2: #33231b; --line: #3e2c22; --line-2: #4c372a;
  --ink: #f8efe4; --ink-2: #e2d2c0; --muted: #b29c88;
  --burgundy: #e8846a; --burgundy-2: #f29a80; --burgundy-ink: #2a0e06; --rose: #ff9ab0;
  --gold: #e8b46a; --gold-2: #f6d29a; --gold-soft: #2c2016;
  --sage: #6aa898; --sage-soft: rgba(106, 168, 152, .14);
  --shadow-rest: 0 2px 10px -2px rgba(0, 0, 0, .55); --shadow-raise: 0 16px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(232, 180, 106, .18);
  --shadow-float: 0 20px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(232, 180, 106, .28); --emboss: inset 0 1px 1px rgba(255, 255, 255, .12);
  color-scheme: dark; background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 30% -10%, rgba(255, 210, 140, .1), transparent 45%);
}
body.theme-flash-midweek .topbar { background: linear-gradient(90deg, #2a1a12, #6a3a22 50%, #2a1a12); color: #f8e6cc; }
body.theme-flash-midweek .header { background: rgba(26, 17, 13, .92); border-bottom-color: rgba(232, 180, 106, .18); }
body.theme-flash-midweek .search input { background: var(--white); color: var(--ink); }
body.theme-flash-midweek .nav a:hover, body.theme-flash-midweek .nav a.active { background: var(--card-2); color: var(--gold-2); }
body.theme-flash-midweek .btn-primary { background: linear-gradient(180deg, #f29a80, #c8603e); color: #fff; }
body.theme-flash-midweek .btn-ghost { color: var(--ink); }
body.theme-flash-midweek .cover.photo { background: #241813; }
body.theme-flash-midweek .footer { background: #120b08; border-top-color: rgba(232, 180, 106, .14); }
body.theme-flash-midweek .mobile-tabbar { background: #1e140f; }
body.theme-flash-midweek .book-card { background: linear-gradient(180deg, #2a1c16, #20150f); border-color: rgba(232, 180, 106, .12); }
body.theme-flash-midweek .book-card:hover { border-color: rgba(232, 180, 106, .5); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9); }
body.theme-flash-midweek .book-card .media { background: radial-gradient(circle at 50% 25%, rgba(255, 210, 140, .12), transparent 60%), #2a1c16; }
.themed-sale .flash-head { margin-top: 18px; }

/* ---------- the night market ---------- */
.wk-hero { background: #0b0a22; color: #fff6ea; }
.wk-hero.over-lantern { cursor: pointer; }
.wk-bulb { fill: #ffd27a; animation: wk-twinkle 3s ease-in-out infinite; }
.wk-bulb.b1 { fill: #ff9a5a; animation-delay: -1s; }
.wk-bulb.b2 { fill: #fff0c0; animation-delay: -2s; }
@keyframes wk-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.wk-swing { transform-box: fill-box; transform-origin: 50% 0; animation: wk-sway 5s ease-in-out infinite alternate; }
.wk-lantern:nth-child(2n) .wk-swing { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes wk-sway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
.wk-lantern.lit .wk-swing { animation: wk-swing 1.6s cubic-bezier(.3, .2, .3, 1); }
@keyframes wk-swing { 0% { rotate: 0deg; } 18% { rotate: 16deg; } 40% { rotate: -11deg; } 62% { rotate: 6deg; } 82% { rotate: -2deg; } 100% { rotate: 0deg; } }
.wk-halo { opacity: .45; transition: opacity .3s; transform-box: fill-box; transform-origin: center; }
.wk-lantern.lit .wk-halo { opacity: 1; animation: wk-flare 1.8s ease-out; }
@keyframes wk-flare { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.wk-shutter { transform-box: fill-box; transform-origin: 50% 0; transition: transform 1.3s cubic-bezier(.5, 0, .2, 1); }
.wk-stall:nth-child(2) .wk-shutter { transition-delay: .15s; }
.wk-stall:nth-child(3) .wk-shutter { transition-delay: .3s; }
.wk-stall:nth-child(4) .wk-shutter { transition-delay: .45s; }
.wk-hero.opened .wk-shutter { transform: scaleY(.04); }
.wk-tag { transform-box: fill-box; transform-origin: 50% 0; animation: rt-sway 3s ease-in-out var(--d, 0s) infinite alternate; }
.wk-hero.is-soon .wk-bulb { animation: none; opacity: .5; }
.wk-hero .rt-fade { background: linear-gradient(rgba(13, 11, 34, 0), rgba(13, 11, 34, .7) 55%, var(--canvas, #0d0b22)); }
.wk-hero::after { background: radial-gradient(ellipse 46% 60% at 22% 50%, rgba(8, 6, 26, .72), transparent 72%); }
.wk-hero .rt-eyebrow { font: 600 20px/1.3 'Caveat', cursive; letter-spacing: .06em; text-transform: none; color: #ffdb94; }
.wk-title { font-family: 'Bebas Neue', var(--sans) !important; font-weight: 400 !important; letter-spacing: .03em !important; font-size: clamp(60px, 9vw, 132px) !important; line-height: .9 !important;
  background: none !important; color: #fff3d6 !important; filter: none !important;
  text-shadow: 0 0 6px #ffb84a, 0 0 22px rgba(255, 140, 50, .8), 0 0 48px rgba(255, 106, 58, .5); animation: wk-neon 6s ease-in-out infinite, rt-rise 1.4s cubic-bezier(.2, .7, .2, 1) both !important; }
@keyframes wk-neon { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }
.wk-hero .rt-lede { font-family: 'Fraunces', var(--serif); color: #f2e6d8; }
.wk-hero .rt-btn { background: linear-gradient(180deg, #ffb84a, #ff7a3a 55%, #d8401e); color: #200a04; border-color: #ffd9a0; box-shadow: 0 0 0 4px rgba(255, 140, 50, .2), 0 10px 26px rgba(255, 106, 58, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.wk-hero .rt-stats { color: #e2d8f0; }
.wk-hero .rt-stats b { font-family: 'Bebas Neue', var(--sans); font-weight: 400; font-size: 30px; color: #ffc65a; text-shadow: 0 0 14px rgba(255, 198, 90, .45); }
.wk-board { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 10px 14px 12px; background: #120e1e; border: 2px solid #3a2a40; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .5); animation: rt-in 1s .7s both; }
.wk-board-l { font: 400 15px/1 'Bebas Neue', var(--sans); letter-spacing: .14em; color: #ffc65a; }
.wk-board .timer .u { background: linear-gradient(180deg, #2a2434 50%, #1c1826 50%); border: 0; border-radius: 4px; position: relative; min-width: 50px; }
.wk-board .timer .u::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 7px); height: 1px; background: #000; opacity: .7; }
.wk-board .timer .u b { font: 400 30px/1.05 'Bebas Neue', var(--sans); color: #fff3d6; }
.wk-board .timer .u span { color: #a49cc4; }
.wk-board .timer .colon { color: #ffc65a; }
.wk-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 19px/1.2 'Caveat', cursive; color: #ffdb94; animation: rt-in 1s 1.4s both; }
.wk-hint .ms { font-size: 19px; color: #ff8250; }

/* ---------- the café ---------- */
.mc-hero { background: #1a100c; color: #fbf1e4; }
.mc-hero.over-hot { cursor: pointer; }
.mc-cone { opacity: .9; transition: opacity 1.2s; }
.mc-bulb { animation: mc-hum 7s ease-in-out infinite; }
@keyframes mc-hum { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
.mc-hero.is-soon .mc-cone { opacity: .35; }
.mc-hero.is-soon .mc-bulb { opacity: .5; animation: none; }
.mc-open { display: none; }
.mc-hero.is-live .mc-open { display: inline; filter: drop-shadow(0 0 6px #ff6a8a) drop-shadow(0 0 16px rgba(255, 80, 120, .7)); animation: wk-neon 7s ease-in-out infinite; }
.mc-hero.is-live .mc-closed { display: none; }
.mc-row .mc-circle { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.mc-row.on .mc-circle { opacity: 1; animation: mc-chalk 1s ease-out forwards; }
@keyframes mc-chalk { to { stroke-dashoffset: 0; } }
.mc-pour { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.mc-hero.pouring .mc-pour { animation: mc-pour 1.5s ease-in-out; }
@keyframes mc-pour { 0% { transform: scaleY(0); } 15%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); opacity: 0; } }
.mc-fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.15); transition: transform 1.3s .2s ease-out; }
.mc-hero.pouring .mc-fill, .mc-hero.served .mc-fill { transform: scaleY(.85); }
.mc-steam path { opacity: 0; }
.mc-hero.served .mc-steam path { animation: mc-steam 2.6s ease-out infinite; }
.mc-hero.served .mc-steam path:nth-child(2) { animation-delay: -1.3s; }
@keyframes mc-steam { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .8; } 100% { opacity: 0; transform: translateY(-26px); } }
.mc-hero .rt-fade { background: linear-gradient(rgba(26, 17, 13, 0), rgba(26, 17, 13, .7) 55%, var(--canvas, #1a110d)); }
.mc-hero::after { background: radial-gradient(ellipse 44% 60% at 20% 50%, rgba(18, 10, 8, .78), transparent 72%); }
.mc-hero .rt-eyebrow { font: 700 20px/1.3 'Caveat', cursive; letter-spacing: .04em; text-transform: none; color: #f6d29a; }
.mc-title { font-family: 'Cabin Sketch', var(--sans) !important; font-weight: 700 !important; letter-spacing: .01em !important; font-size: clamp(46px, 6.4vw, 96px) !important; line-height: 1 !important;
  background: none !important; color: #fbf1e4 !important; filter: none !important; text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(255, 200, 140, .25); }
.mc-hero .rt-lede { font-family: 'Fraunces', var(--serif); color: #f0e2d0; }
.mc-hero .rt-btn { background: linear-gradient(180deg, #f6d29a, #e8a85a 55%, #b8702e); color: #2a1206; border-color: #ffe6c0; box-shadow: 0 0 0 4px rgba(232, 180, 106, .18), 0 10px 26px rgba(184, 112, 46, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.mc-hero .rt-stats { color: #e2d2c0; }
.mc-hero .rt-stats b { font-family: 'Cabin Sketch', var(--sans); font-size: 28px; color: #f6d29a; text-shadow: none; }
.mc-clock { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 10px 14px 12px; background: #1e2a26; border: 8px solid #6a4426; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); animation: rt-in 1s .7s both; }
.mc-clock-l { font: 700 21px/1 'Caveat', cursive; color: #f4efe6; }
.mc-clock .timer .u { background: transparent; border: 1px dashed rgba(244, 239, 230, .35); }
.mc-clock .timer .u b { font: 700 30px/1 'Caveat', cursive; color: #ffd27a; }
.mc-clock .timer .u span { color: rgba(244, 239, 230, .7); }
.mc-clock .timer .colon { color: rgba(244, 239, 230, .6); }
.mc-hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 700 19px/1.2 'Caveat', cursive; color: #f6d29a; animation: rt-in 1s 1.4s both; }
.mc-hint .ms { font-size: 19px; color: #e8846a; }

/* ---------- the reveal card (a deal popping out of the scene) ---------- */
.deal-pop { position: absolute; z-index: 6; width: min(260px, calc(100% - 24px)); display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none;
  background: #fff8ec; color: #2a1a10; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(10px) scale(.94); pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.deal-pop.in { opacity: 1; transform: none; pointer-events: auto; }
.deal-pop.wk-pop { border: 2px dashed #d8401e; }
.deal-pop.wk-pop::before { content: ''; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #2a1a10; box-shadow: 0 0 0 3px #fff8ec; }
.deal-pop.mc-pop { background: #1e2a26; color: #f4efe6; border: 6px solid #6a4426; }
.dp-cover { flex: none; width: 54px; }
.dp-cover .cover { border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.dp-txt { display: grid; gap: 3px; min-width: 0; }
.dp-txt b { font: 700 14.5px/1.25 var(--sans); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dp-txt small { font-size: 13px; }
.dp-txt s { opacity: .55; }
.dp-txt em { font-style: normal; font-weight: 800; color: #c8301e; }
.mc-pop .dp-txt em { color: #ffd27a; }
.dp-pct { justify-self: start; font: 800 12px/1 var(--sans); padding: 4px 7px; border-radius: 4px; background: #d8401e; color: #fff; }
.mc-pop .dp-pct { background: #e8846a; color: #2a0e06; }
.dp-q { flex: none; width: 54px; height: 72px; display: grid; place-items: center; font: 800 34px/1 var(--serif); border-radius: 4px; background: #2a1a10; color: #ffc65a; }

/* ---------- the home page's sale banner ---------- */
.deal-band.themed { padding: 0; overflow: hidden; }
.deal-band.themed.weekend { background: #0d0b22; }
.deal-band.themed.midweek { background: #1a110d; }
.deal-band.themed::before { display: none; }
.sale-banner.rt-hero { height: auto; min-height: 340px; border-radius: 14px 14px 0 0; }
.sale-banner .rt-layer { inset: 0; }
.sale-banner .sb-content { height: auto; min-height: 340px; padding: 28px 32px; justify-content: center; }
.sale-banner .rt-title { font-size: clamp(36px, 4.4vw, 64px) !important; margin: 4px 0 2px; }
.sale-banner .rt-lede { font-size: 17px; max-width: 440px; }
.sale-banner .wk-board, .sale-banner .mc-clock { margin-top: 12px; }
/* desktop: the whole drawing at the band's width, shifted to frame the lanterns and stalls / the window and chalkboard */
@media (min-width: 761px) {
  .sale-banner .rt-layer > svg { top: 0; width: 100%; height: auto; min-width: 0; transform: translate(-50%, var(--sb-y, -20%)); }
  .sale-banner.wk-hero { --sb-y: -22%; }
  .sale-banner.mc-hero { --sb-y: -12%; }
}
.deal-band.themed .band-body { padding: 24px 28px 28px; }
.deal-band.themed .upcoming { color: #f2e6d8; margin-bottom: 14px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .wk-hint, .mc-hint { font-size: 17px; }
  .wk-title, .mc-title { max-width: none !important; }
  .wk-board .timer .u, .mc-clock .timer .u { min-width: 42px; }
  .wk-board .timer .u b, .mc-clock .timer .u b { font-size: 25px; }
  .wk-bulb { animation: none; }
  .wk-lantern:not(.lit) .wk-swing { animation: none; }
  .sale-banner.rt-hero, .sale-banner .sb-content { min-height: 380px; }
  .sale-banner .sb-content { padding: 20px; justify-content: flex-start; }
  .sale-banner .rt-lede { display: none; }
  .deal-band.themed .band-body { padding: 18px 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-bulb, .wk-swing, .wk-tag, .wk-title, .mc-bulb, .mc-open, .mc-steam path { animation: none !important; }
  .wk-shutter, .mc-fill { transition: none; }
}

/* phones: every theme's cards share the one swipe row (themes set desktop grids above; a centred row that
   overflows clips its first card, so put back the slider's start alignment, column width and side padding) */
@media (max-width: 560px) {
  .rt-realms .rt-realm-grid { grid-template-columns: none; justify-content: start; gap: 14px; grid-auto-columns: 74%; padding-left: 13%; padding-right: 13%; }
  .rt-realms.compact .rt-realm-grid { grid-template-columns: none; justify-content: start; gap: 14px; grid-auto-columns: 46%; padding-left: 27%; padding-right: 27%; }
}


/* phones: the café chalkboard sits behind the words on the sale page, so it steps back (the machine still reveals the specials) */
@media (max-width: 760px) { .mc-hero:not(.sale-banner) .mc-board-svg { opacity: .3; } }

/* the home page sale banner on phones: a still scene (no looping glow, flicker or sway); taps still work */
@media (max-width: 760px) {
  .sale-banner .wk-title, .sale-banner .mc-open, .sale-banner .mc-bulb, .sale-banner .wk-tag, .sale-banner .wk-bulb, .sale-banner .wk-swing, .sale-banner .rt-title { animation: none !important; }
  .sale-banner .mc-open { filter: none; text-shadow: 0 0 8px #ff6a8a; }
}

/* every theme: the dark "early access" card and the newsletter were painted with the text colour, which a dark theme
   turns near-white (white words on cream). Paint them from the theme's own card colours instead (works for light themes too). */
body.cat-theme .promo.dark, body.cat-theme .newsletter { background: var(--card-2); color: var(--ink); border: 1px solid var(--line-2); }
body.cat-theme .promo.dark h3, body.cat-theme .newsletter h2 { color: var(--ink); }
body.cat-theme .promo.dark p, body.cat-theme .newsletter p { color: var(--ink-2); }
body.cat-theme .newsletter input { background: var(--white); color: var(--ink); border-color: var(--line-2); }

/* Weekend market, closed: a hanging sign, light leaking under the painted shutters, only some bulbs on */
.wk-sign-b { }
.wk-hero.is-live .wk-sign, .wk-hero.is-live .wk-leak { display: none; }
.wk-leak { opacity: .55; animation: wk-leak 4s ease-in-out infinite; }
@keyframes wk-leak { 50% { opacity: .9; } }
.wk-hero.is-soon .wk-bulb.b1, .wk-hero.is-soon .wk-bulb.b2 { opacity: .22; animation: none; }
.wk-hero.is-soon .wk-bulb.b0 { opacity: 1; animation: wk-twinkle 3s ease-in-out infinite; }
@media (max-width: 760px) { .wk-sign-b, .wk-leak, .wk-hero.is-soon .wk-bulb.b0 { animation: none; } }
@media (prefers-reduced-motion: reduce) { .wk-sign-b, .wk-leak { animation: none !important; } }
