/* ═══════════════════════════════════════════════════════════════
   WSTR · STORYBOOK LAYER
   One shared skin for every page: navbar, menus, buttons,
   illustrated page heroes, cards, forms and the closing-scene footer.
   Loaded LAST on every page so it wins over the old inline styles.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --sb-ink: #3f3122;
  --sb-brown: #5C4A32;
  --sb-soft: #8B7355;
  --sb-cream: #FDF8F0;
  --sb-paper: #F7F0E3;
  --sb-honey: #D4A853;
  --sb-honey-2: #E8C97A;
  --sb-amber: #B9852F;
  --sb-night: #1a2a4a;
  --sb-night-2: #2d4a6d;
  --sb-night-0: #0f1a30;
  --sb-star: #F8DFB3;
  --sb-serif: 'Cormorant Garamond', Georgia, serif;
  --sb-sans: 'Quicksand', system-ui, sans-serif;
  --sb-ease: cubic-bezier(.2,.7,.2,1);
  --sb-radius: 22px;
  --sb-shadow: 0 24px 60px -18px rgba(26,42,74,.35);
}

/* ─────────── NAVBAR ─────────── */
.sb-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1240px; height: 64px; z-index: 1000;
  display: flex; align-items: center; gap: 18px; padding: 0 10px 0 22px;
  border-radius: 999px; isolation: isolate;
  background:
    radial-gradient(120% 140% at 15% -40%, rgba(248,223,179,.16), transparent 55%),
    linear-gradient(120deg, rgba(15,26,48,.92), rgba(45,74,109,.9) 55%, rgba(26,42,74,.94));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(248,223,179,.18);
  box-shadow: 0 18px 40px -16px rgba(10,18,36,.55), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .45s var(--sb-ease), box-shadow .3s, height .3s;
  font-family: var(--sb-sans);
}
.sb-nav.is-scrolled { height: 58px; box-shadow: 0 14px 34px -14px rgba(10,18,36,.7), inset 0 1px 0 rgba(255,255,255,.08); }
.sb-nav.is-hidden { transform: translate(-50%, -120%); }
.sb-nav::before { /* star dust */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 30%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 70%, #F8DFB3 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 46% 22%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 64%, #F8DFB3 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 78% 28%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 72%, #F8DFB3 50%, transparent 52%);
  animation: sbTwinkle 5s ease-in-out infinite alternate;
}
@keyframes sbTwinkle { to { opacity: .25; } }
.sb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sb-star); flex-shrink: 0; }
.sb-logo svg { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(212,168,83,.45)); transition: transform .6s var(--sb-ease); }
.sb-logo:hover svg { transform: rotate(-12deg) translateY(-2px); }
.sb-logo span { font-family: var(--sb-serif); font-style: italic; font-weight: 600; font-size: 1.32rem; letter-spacing: .2px; white-space: nowrap; }
.sb-links { display: flex; gap: 4px; margin: 0 auto; list-style: none; padding: 0; }
.sb-links a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: rgba(248,223,179,.82); font-size: .9rem; font-weight: 500; letter-spacing: .2px; transition: color .25s, background .25s;
}
.sb-links a:hover, .sb-links a[aria-current="page"] { color: #fff; background: rgba(248,223,179,.1); }
.sb-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sb-honey); box-shadow: 0 0 8px var(--sb-honey); }
.sb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sb-links + .sb-actions { margin-left: 0; }
.sb-icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid rgba(248,223,179,.22); background: rgba(248,223,179,.06); color: var(--sb-star);
  cursor: pointer; text-decoration: none; transition: background .25s, transform .25s, border-color .25s; padding: 0;
}
.sb-icon-btn:hover { background: rgba(248,223,179,.16); border-color: rgba(248,223,179,.45); transform: translateY(-1px); }
.sb-icon-btn svg { width: 19px; height: 19px; }
.sb-icon-btn .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sb-badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--sb-honey); color: var(--sb-night); font-size: .68rem; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--sb-night); transform: scale(0); transition: transform .3s var(--sb-ease);
}
.sb-badge.show { transform: scale(1); }
.sb-menu-btn .sb-burger { display: grid; gap: 4px; width: 18px; }
.sb-menu-btn .sb-burger i { display: block; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .35s var(--sb-ease), opacity .2s; }
.sb-menu-btn .sb-burger i:nth-child(2) { width: 70%; margin-left: auto; }
.sb-menu-btn[aria-expanded="true"] .sb-burger i:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.sb-menu-btn[aria-expanded="true"] .sb-burger i:nth-child(2) { opacity: 0; }
.sb-menu-btn[aria-expanded="true"] .sb-burger i:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.sb-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .88rem; color: var(--sb-night);
  background: linear-gradient(135deg, #F3D48C, var(--sb-honey) 55%, #C39437);
  box-shadow: 0 6px 18px -6px rgba(212,168,83,.7), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .25s, box-shadow .25s;
}
.sb-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(212,168,83,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.sb-cta svg { width: 16px; height: 16px; transition: transform .3s var(--sb-ease); }
.sb-cta:hover svg { transform: translateX(3px); }

/* panels (account + menu) – visibility driven by the pages' own `.active` toggle */
.sb-panel {
  position: fixed; top: 88px; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98);
  transition: opacity .3s, transform .4s var(--sb-ease), visibility .3s; font-family: var(--sb-sans);
  background: linear-gradient(160deg, rgba(20,33,60,.97), rgba(36,58,92,.97)); color: var(--sb-star);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(248,223,179,.2); border-radius: 26px; box-shadow: 0 40px 80px -24px rgba(5,10,25,.7);
}
.sb-panel.active { opacity: 1; visibility: visible; transform: none; }
.sb-account { right: max(16px, calc((100vw - 1240px) / 2)); width: 290px; padding: 14px; }
.sb-account a, .sb-account button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: none;
  color: var(--sb-star); text-decoration: none; font: 500 .95rem var(--sb-sans); cursor: pointer; text-align: left; transition: background .2s;
}
.sb-account a:hover, .sb-account button:hover { background: rgba(248,223,179,.1); }
.sb-account .menu-item-icon { display: flex; align-items: center; gap: 12px; }
.sb-account svg { width: 18px; height: 18px; color: var(--sb-honey); flex-shrink: 0; }
.sb-account .account-user-info { padding: 10px 14px 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(248,223,179,.14); }
.sb-account .user-name { font-family: var(--sb-serif); font-size: 1.25rem; font-style: italic; color: #fff; }
.sb-account .user-email { font-size: .8rem; opacity: .7; word-break: break-all; }
.sb-account .divider { height: 1px; margin: 6px 8px; background: rgba(248,223,179,.14); }
.sb-account .purchase-links-injected a { padding-left: 14px; }
.sb-menu { right: max(16px, calc((100vw - 1240px) / 2)); width: min(760px, calc(100vw - 32px)); padding: 26px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; }
.sb-menu nav { display: grid; align-content: start; }
.sb-menu nav a {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 4px; text-decoration: none; color: var(--sb-star);
  font-family: var(--sb-serif); font-size: 1.55rem; line-height: 1.15; border-bottom: 1px solid rgba(248,223,179,.08); transition: color .25s, padding .3s var(--sb-ease);
}
.sb-menu nav a small { font: italic 500 .8rem var(--sb-serif); color: var(--sb-honey); width: 22px; }
.sb-menu nav a:hover, .sb-menu nav a[aria-current="page"] { color: #fff; padding-left: 10px; }
.sb-menu .sb-menu-label { font: italic .85rem var(--sb-serif); letter-spacing: 3px; color: var(--sb-honey); margin: 0 0 8px; }
.sb-menu-cards { display: grid; gap: 14px; align-content: start; }
.sb-menu-card {
  position: relative; display: block; height: 142px; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
}
.sb-menu-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sb-ease); }
.sb-menu-card:hover img { transform: scale(1.07); }
.sb-menu-card span { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(10,18,36,.85)); font-family: var(--sb-serif); font-size: 1.2rem; font-style: italic; }
.sb-menu-card em { display: block; font: 600 .66rem var(--sb-sans); letter-spacing: 2px; text-transform: uppercase; color: var(--sb-honey-2); font-style: normal; }
.sb-menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 14px; border-top: 1px solid rgba(248,223,179,.12); font-size: .82rem; }
.sb-menu-foot a { color: rgba(248,223,179,.7); text-decoration: none; }
.sb-menu-foot a:hover { color: #fff; }

@media (max-width: 1080px) { .sb-links { display: none; } .sb-actions { margin-left: auto; } }
@media (max-width: 720px) {
  .sb-nav { height: 58px; top: 10px; width: calc(100% - 20px); padding: 0 6px 0 16px; gap: 8px; }
  .sb-logo span { font-size: 1.08rem; }
  .sb-cta { display: none; }
  .sb-icon-btn { width: 40px; height: 40px; }
  .sb-panel { top: 78px; left: 10px; right: 10px; width: auto; }
  .sb-menu { grid-template-columns: 1fr; padding: 20px; max-height: calc(100vh - 100px); overflow: auto; }
  .sb-menu-cards { grid-template-columns: 1fr 1fr; }
  .sb-menu-card { height: 110px; }
}
@media (max-width: 380px) { .sb-logo span { font-size: .98rem; } .sb-logo svg { width: 24px; } }

/* ─────────── BUTTONS (global upgrade of every legacy CTA) ─────────── */
body .btn, body .btn-primary, body .btn-honey, body .btn-submit, body .btn-browse, body .btn-closing,
body .btn-buy, body .btn-add, body .btn-go, body .btn-action, body .btn-amazon, body .btn-store,
body .sidebar-checkout-btn, body .sticky-cta-btn, body .single-card-btn, body .btn-unlock-code, body .btn-gift {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--sb-sans); font-weight: 600; letter-spacing: .3px; text-transform: none;
  transition: transform .3s var(--sb-ease), box-shadow .3s, background-position .6s;
}
body .btn-primary, body .btn-honey, body .btn-submit, body .btn-buy, body .btn-add, body .btn-go, body .btn-amazon,
body .sidebar-checkout-btn, body .sticky-cta-btn, body .single-card-btn, body .btn-unlock-code, body .btn-closing, body .btn-browse {
  color: #2a1f12 !important;
  background: linear-gradient(120deg, #F6DC9A 0%, #D4A853 45%, #C1913A 70%, #F0CF83 100%) !important;
  background-size: 220% 100% !important;
  box-shadow: 0 12px 28px -10px rgba(185,133,47,.75), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
body .btn-primary:hover, body .btn-honey:hover, body .btn-submit:hover, body .btn-buy:hover, body .btn-add:hover, body .btn-go:hover,
body .btn-amazon:hover, body .sidebar-checkout-btn:hover, body .sticky-cta-btn:hover, body .single-card-btn:hover,
body .btn-unlock-code:hover, body .btn-closing:hover, body .btn-browse:hover {
  transform: translateY(-2px); background-position: 100% 0 !important;
  box-shadow: 0 18px 36px -12px rgba(185,133,47,.9), 0 0 0 4px rgba(212,168,83,.18), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
/* light sweep */
body .btn-primary::after, body .btn-honey::after, body .btn-submit::after, body .btn-buy::after, body .btn-amazon::after, body .btn-closing::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .8s var(--sb-ease);
}
body .btn-primary:hover::after, body .btn-honey:hover::after, body .btn-submit:hover::after, body .btn-buy:hover::after,
body .btn-amazon:hover::after, body .btn-closing:hover::after { left: 120%; }
body .btn-ghost, body .btn-external {
  background: rgba(253,248,240,.55) !important; color: var(--sb-brown) !important;
  box-shadow: inset 0 0 0 1.5px rgba(92,74,50,.35) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body .btn-ghost:hover, body .btn-external:hover { box-shadow: inset 0 0 0 1.5px var(--sb-brown), 0 12px 26px -12px rgba(92,74,50,.4) !important; transform: translateY(-2px); }
body .btn-starlight {
  background: linear-gradient(135deg, #FFF3D6, var(--sb-star)) !important; color: var(--sb-night) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 14px 34px -10px rgba(248,223,179,.6) !important;
}
body .btn-starlight:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(248,223,179,.25), 0 18px 40px -10px rgba(248,223,179,.8) !important; }
.btn-star, .btn-stars { display: none !important; }
body .btn-etsy { display: none !important; }

/* ─────────── ILLUSTRATED PAGE HEROES ─────────── */
body .page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(78vh, 700px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 150px 24px 110px !important; background: var(--sb-night) !important; }
.sb-hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.sb-hero-art img { width: 100%; height: 115%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: translateY(var(--py, 0px)) scale(1.04); will-change: transform; animation: sbKen 22s ease-in-out infinite alternate; }
@keyframes sbKen { to { transform: translateY(var(--py, 0px)) scale(1.12); } }
.sb-hero-art::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(46% 34% at 50% 80%, rgba(15,26,48,.78), rgba(15,26,48,0) 75%),
  linear-gradient(180deg, rgba(15,26,48,.45) 0%, rgba(15,26,48,0) 22%, rgba(15,26,48,0) 40%, rgba(15,26,48,.5) 66%, rgba(15,26,48,.9) 100%); }
body .page-hero .stars-container { z-index: -1; opacity: .7; }
body .page-hero h1, body .page-hero .hero-content h1 { font-family: var(--sb-serif) !important; font-weight: 500 !important; font-size: clamp(2.6rem, 6.4vw, 4.8rem) !important; line-height: 1.05 !important; color: #FFF7E6 !important; text-shadow: 0 4px 30px rgba(10,18,36,.6); margin-bottom: 16px !important; }
body .page-hero h1 .shimmer-text { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; animation: none !important; }
body .page-hero p { color: rgba(255,247,230,.92) !important; font-size: clamp(1rem, 1.6vw, 1.18rem) !important; max-width: 56ch; margin: 0 auto !important; text-shadow: 0 2px 16px rgba(10,18,36,.7); }
.sb-hero-kicker { display: inline-block; font: italic 500 1rem var(--sb-serif); letter-spacing: 4px; color: var(--sb-honey-2); margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
body .page-hero .page-hero-wave, body .page-hero .hero-wave { z-index: 1; }

/* night/intimate pages get a soft illustrated window */
.sb-night-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sb-night-art img { position: absolute; right: -6vw; bottom: -4vh; width: min(70vw, 1100px); opacity: .34; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 55%, #000 30%, transparent 75%); mask-image: radial-gradient(60% 60% at 60% 55%, #000 30%, transparent 75%); }
@media (max-width: 720px) { .sb-night-art img { width: 130vw; right: -40vw; opacity: .16; } }

/* ─────────── CARDS & FORMS polish (shared classes) ─────────── */
body .product-card, body .format-card, body .info-card, body .quick-card, body .legal-section, body .faq-item,
body .contact-method, body .legal-contact-card, body .summary-card, body .cart-item {
  border-radius: var(--sb-radius) !important; transition: transform .45s var(--sb-ease), box-shadow .45s var(--sb-ease);
}
body .product-card:hover, body .format-card:hover, body .quick-card:hover { transform: translateY(-6px); box-shadow: var(--sb-shadow) !important; }
body input[type="text"], body input[type="email"], body input[type="password"], body input[type="tel"], body textarea, body select {
  border-radius: 14px !important; transition: border-color .25s, box-shadow .25s, background .25s;
}
body input:focus, body textarea:focus, body select:focus { outline: none; border-color: var(--sb-honey) !important; box-shadow: 0 0 0 4px rgba(212,168,83,.22) !important; }
.legal-placeholder { background: #FFE2B8 !important; color: #7a4a00 !important; border-radius: 6px; padding: 0 6px; }

/* ─────────── FOOTER · the closing scene ─────────── */
.sb-footer { position: relative; isolation: isolate; color: rgba(248,223,179,.82); font-family: var(--sb-sans); background: linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0 40px, #131f38 40px); overflow: hidden; margin-top: -1px; z-index: 1; }
.sb-foot-scene { position: relative; min-height: 600px; display: grid; align-items: center; justify-items: end; text-align: left; padding: 150px 7vw 180px; }
.sb-foot-scene > div:first-of-type { max-width: 520px; }
.sb-foot-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 45%; z-index: -2; }
.sb-foot-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, var(--sb-foot-top, #FDF8F0) 4%, color-mix(in srgb, var(--sb-foot-top, #FDF8F0) 75%, transparent) 14%, color-mix(in srgb, var(--sb-foot-top, #FDF8F0) 35%, transparent) 26%, transparent 42%),
  linear-gradient(180deg, rgba(19,31,56,0) 55%, rgba(19,31,56,.6) 85%, #131f38 100%); }
.sb-foot-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(19,31,56,0) 30%, rgba(19,31,56,.55) 58%, rgba(19,31,56,.78) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 40%); mask-image: linear-gradient(180deg, transparent 10%, #000 40%); }
.sb-foot-scene h2 { font: 500 clamp(2.4rem, 5vw, 4rem)/1.05 var(--sb-serif); color: #FFF7E6; text-shadow: 0 4px 30px rgba(10,18,36,.65); margin: 6px 0 14px; }
.sb-foot-scene p { color: rgba(255,247,230,.92); max-width: 44ch; margin: 0 0 28px; text-shadow: 0 2px 14px rgba(10,18,36,.8); font-size: 1.05rem; line-height: 1.7; }
.sb-foot-scene .sb-kicker { font: italic 500 1rem var(--sb-serif); letter-spacing: 4px; color: #FFE7B0; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.sb-foot-ctas { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.sb-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .3s var(--sb-ease), box-shadow .3s; }
.sb-btn svg { width: 18px; height: 18px; }
.sb-btn-gold { color: #2a1f12; background: linear-gradient(120deg, #F6DC9A, #D4A853 50%, #C1913A); box-shadow: 0 14px 30px -10px rgba(212,168,83,.8), inset 0 1px 0 rgba(255,255,255,.55); }
.sb-btn-glass { color: #FFF7E6; background: rgba(255,247,230,.12); box-shadow: inset 0 0 0 1.5px rgba(255,247,230,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sb-btn:hover { transform: translateY(-2px); }
.sb-forest { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 0; }
.sb-forest svg { width: 100%; height: 100%; display: block; }
.sb-foot-body { position: relative; max-width: 1240px; margin: 0 auto; padding: 30px 24px 36px; }
.sb-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(248,223,179,.12); }
.sb-foot-brand .sb-logo span { font-size: 1.5rem; }
.sb-foot-brand p { margin: 14px 0 18px; line-height: 1.7; font-size: .93rem; max-width: 34ch; }
.sb-foot-col h4, .sb-foot-col .sb-foot-h { font: italic 500 1.05rem var(--sb-serif); letter-spacing: 3px; color: var(--sb-honey); margin: 0 0 14px; }
.sb-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sb-foot-col a, .sb-foot-col button { color: rgba(248,223,179,.78); text-decoration: none; font: 400 .93rem var(--sb-sans); background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s, padding .3s var(--sb-ease); }
.sb-foot-col a:hover, .sb-foot-col button:hover { color: #fff; padding-left: 4px; }
.sb-foot-col .sb-amz { display: inline-flex; align-items: center; gap: 8px; }
.sb-foot-col .sb-amz svg { width: 14px; height: 14px; color: var(--sb-honey); }
.sb-seller { font-size: .82rem; line-height: 1.7; opacity: .9; }
.sb-seller strong { color: var(--sb-star); font-weight: 600; }
.sb-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sb-badges a { display: block; background: #fff; border-radius: 8px; padding: 4px; line-height: 0; transition: transform .25s; }
.sb-badges a:hover { transform: translateY(-2px); }
.sb-badges img { width: 250px; height: 50px; max-width: 100%; }
.sb-badges a { padding: 0 !important; background: none !important; }
.sb-foot-bottom { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: flex-start; padding-top: 24px; font-size: .8rem; }
.sb-isbn { opacity: .75; line-height: 1.7; }
.sb-isbn strong { color: var(--sb-star); font-weight: 600; }
.sb-copy { opacity: .85; }
.sb-copy .heart { color: #E59A8A; }
@media (max-width: 960px) { .sb-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .sb-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .sb-foot-scene { min-height: 560px; padding: 260px 18px 140px; justify-items: center; text-align: center; align-items: end; }
  .sb-foot-scene > img { object-position: 22% 40%; }
  .sb-foot-scene::after { display: none; }
  .sb-foot-scene::before { background: linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, rgba(253,248,240,0) 22%, rgba(19,31,56,0) 40%, rgba(19,31,56,.75) 70%, #131f38 100%); }
  .sb-foot-scene p { margin: 0 auto 24px; } .sb-foot-ctas { justify-content: center; }
}

/* ─────────── a11y & motion ─────────── */
.sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .sb-nav, .sb-nav::before, .sb-panel, .sb-hero-art img, .sb-menu-card img, body .btn, body .btn-primary, body .btn-honey { animation: none !important; transition: none !important; }
}

/* ─────────── ILLUSTRATED HEADERS on night pages (cart, checkout, library) ─────────── */
.sb-illus { position: relative !important; isolation: isolate; overflow: hidden; }
.sb-illus > .sb-illus-art { z-index: -1; }
.sb-illus .hero-bg, .sb-illus .hero-orbs, .sb-illus .hero-sf, .sb-illus .gate-bg, .sb-illus .gate-orbs,
.sb-illus .gate-stars, .sb-illus > .stars-bg { display: none !important; }
.sb-illus h1 .shimmer-text { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; animation: none !important; }

.sb-illus--banner {
  background: #14223f !important; border-radius: 30px !important; min-height: clamp(320px, 40vw, 460px);
  display: flex !important; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 48px 28px 40px !important; border: 1px solid rgba(248,223,179,.22) !important;
  box-shadow: 0 40px 80px -30px rgba(5,10,25,.75) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.sb-illus--banner > .sb-illus-art img { height: 100%; animation-duration: 26s; }
.sb-illus--banner > .sb-illus-art::after { background:
  radial-gradient(55% 40% at 50% 82%, rgba(15,26,48,.7), rgba(15,26,48,0) 75%),
  linear-gradient(180deg, rgba(15,26,48,.15) 0%, rgba(15,26,48,0) 30%, rgba(15,26,48,.5) 62%, rgba(15,26,48,.94) 100%); }
.sb-illus--banner h1 { font-family: var(--sb-serif) !important; font-weight: 500 !important; font-size: clamp(2.2rem, 4.6vw, 3.6rem) !important; line-height: 1.08 !important; color: #FFF7E6 !important; text-shadow: 0 4px 26px rgba(10,18,36,.7); margin-bottom: 10px !important; }
.sb-illus--banner p, .sb-illus--banner .welcome-eyebrow { color: rgba(255,247,230,.92) !important; text-shadow: 0 2px 14px rgba(10,18,36,.8); }
.sb-illus--banner .welcome-eyebrow { font-family: var(--sb-serif); font-style: italic; letter-spacing: 3px; color: var(--sb-honey-2) !important; }
.sb-illus--banner .secure-badge { background: rgba(255,247,230,.14) !important; color: #FFF7E6 !important; border: 1px solid rgba(255,247,230,.35) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sb-illus--banner .stat-chip { background: rgba(15,26,48,.45) !important; border: 1px solid rgba(248,223,179,.3) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.sb-illus--hero { background: #14223f !important; min-height: min(88vh, 780px) !important; padding-top: 110px !important; }
.sb-illus--hero > .sb-illus-art::after { background:
  radial-gradient(50% 45% at 50% 55%, rgba(15,26,48,.55), rgba(15,26,48,0) 75%),
  linear-gradient(180deg, rgba(15,26,48,.6) 0%, rgba(15,26,48,.15) 24%, rgba(15,26,48,.35) 60%, rgba(15,26,48,.85) 90%, #14223f 100%); }
.sb-illus--hero h1, .sb-illus--hero h2 { color: #FFF7E6 !important; text-shadow: 0 4px 26px rgba(10,18,36,.7); }
.sb-illus--hero p { color: rgba(255,247,230,.9) !important; text-shadow: 0 2px 14px rgba(10,18,36,.8); }

.sb-illus--gate { background: #14223f !important; }
.sb-illus--gate > .sb-illus-art img { height: 100%; }
.sb-illus--gate > .sb-illus-art::after { background: radial-gradient(60% 60% at 50% 50%, rgba(15,26,48,.6), rgba(15,26,48,.2) 80%), linear-gradient(180deg, rgba(15,26,48,.5), transparent 30%); }
.sb-illus--gate .gc, .sb-illus--gate .gate-card { box-shadow: 0 40px 90px -20px rgba(5,10,25,.8) !important; border-radius: 30px !important; }

@media (max-width: 720px) {
  .sb-illus--banner { min-height: 300px; border-radius: 24px !important; padding: 36px 18px 28px !important; }
  .sb-illus--hero { min-height: 640px !important; }
}

/* footer scene · kite family in a bright sky (dark ink on light, kites on the right) */
.sb-foot-scene { justify-items: start !important; text-align: left !important; }
.sb-foot-scene > img { object-position: 50% 45% !important; }
.sb-foot-scene::after { display: none !important; }
.sb-foot-scene::before { background:
  linear-gradient(90deg, rgba(253,248,240,.85) 0%, rgba(253,248,240,.55) 32%, rgba(253,248,240,0) 52%),
  linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, rgba(253,248,240,0) 22%, rgba(19,31,56,0) 70%, rgba(19,31,56,.7) 88%, #131f38 100%) !important; }
.sb-foot-scene h2 { color: #2c2216 !important; text-shadow: 0 2px 20px rgba(253,248,240,.9) !important; }
.sb-foot-scene p { color: #5a4630 !important; text-shadow: 0 1px 12px rgba(253,248,240,.9) !important; }
.sb-foot-scene .sb-kicker { color: #9a6f22 !important; text-shadow: none !important; }
.sb-foot-scene .sb-btn-glass { color: var(--sb-brown); background: rgba(253,248,240,.7); box-shadow: inset 0 0 0 1.5px rgba(92,74,50,.4); }
@media (max-width: 560px) {
  .sb-foot-scene { justify-items: center !important; text-align: center !important; padding-top: 300px !important; }
  .sb-foot-scene > img { object-position: 72% 30% !important; }
  .sb-foot-scene::before { background: linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, rgba(253,248,240,0) 14%, rgba(253,248,240,0) 38%, rgba(253,248,240,.9) 55%, rgba(253,248,240,.9) 78%, #131f38 100%) !important; }
}
@media (min-width: 561px) { .sb-foot-scene > img { left: auto !important; right: -14% !important; width: 112% !important; } }
.sb-foot-scene { isolation: isolate; background: linear-gradient(180deg, #FDF8F0, #e9eef5 60%, #131f38 100%); }

/* SAL pictogram – official size (250×50), never filtered or shrunk */
.legal-badges { display: flex; justify-content: flex-start; gap: 14px; margin: 40px 0 0; }
.legal-badges .badge-link { background: none !important; padding: 0 !important; filter: none !important; }

/* ─────────── LEGAL PAGES · storybook reading room ─────────── */
.legal-content { background:
  radial-gradient(40% 30% at 0% 10%, rgba(245,213,192,.35), transparent 70%),
  radial-gradient(40% 30% at 100% 60%, rgba(212,229,237,.45), transparent 70%), var(--sb-cream) !important; }
.legal-content .container { max-width: 860px !important; }
.sb-toc { margin: 0 0 46px; padding: 26px 30px; border-radius: 26px; background: #fffdf9; box-shadow: 0 24px 50px -32px rgba(92,74,50,.45), inset 0 0 0 1px rgba(212,168,83,.28); }
.sb-toc-title { font: italic 500 1.05rem var(--sb-serif); letter-spacing: 3px; color: var(--sb-honey); text-align: center; margin: 0 0 12px; }
.sb-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.sb-toc li { break-inside: avoid; }
.sb-toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 4px; text-decoration: none; color: var(--sb-brown); font-size: .94rem; border-bottom: 1px dotted rgba(166,144,118,.35); transition: color .2s, padding .3s var(--sb-ease); }
.sb-toc a:hover { color: var(--sb-amber); padding-left: 8px; }
.sb-toc a span { font: italic 500 1rem var(--sb-serif); color: var(--sb-honey); min-width: 1.6em; }
.legal-section { position: relative; padding: 34px 36px 26px !important; margin-bottom: 26px !important; background: #fffdf9; border-radius: 26px !important; box-shadow: 0 20px 44px -34px rgba(92,74,50,.5), inset 0 0 0 1px rgba(212,168,83,.18); scroll-margin-top: 100px; }
.legal-section h2 { font-family: var(--sb-serif) !important; font-weight: 500 !important; font-size: clamp(1.6rem, 2.6vw, 2rem) !important; color: #2c2216 !important; margin-bottom: 14px !important; padding-left: 34px; position: relative; }
.legal-section h2::before { content: "✦"; position: absolute; left: 0; top: .1em; color: var(--sb-honey); font-size: 1.1rem; }
.legal-section p, .legal-section li { color: #5a4630 !important; line-height: 1.8; }
.legal-section a { color: var(--sb-amber) !important; text-decoration-color: rgba(185,133,47,.4); text-underline-offset: 3px; }
.legal-contact-card { background: linear-gradient(135deg, #fff8ea, #fffdf9) !important; border: 1px solid rgba(212,168,83,.35) !important; border-radius: 20px !important; }
.legal-meta-row { border-radius: 20px !important; }
@media (max-width: 640px) { .sb-toc ol { columns: 1; } .legal-section { padding: 26px 20px 18px !important; } }

/* ─────────── LEGAL PAGES · storybook reading room ─────────── */
.legal-content { background:
  radial-gradient(40% 30% at 0% 10%, rgba(245,213,192,.35), transparent 70%),
  radial-gradient(40% 30% at 100% 60%, rgba(212,229,237,.45), transparent 70%), var(--sb-cream) !important; }
.legal-content .container { max-width: 860px !important; }
.sb-toc { margin: 0 0 46px; padding: 26px 30px; border-radius: 26px; background: #fffdf9; box-shadow: 0 24px 50px -32px rgba(92,74,50,.45), inset 0 0 0 1px rgba(212,168,83,.28); }
.sb-toc-title { font: italic 500 1.05rem var(--sb-serif); letter-spacing: 3px; color: var(--sb-honey); text-align: center; margin: 0 0 12px; }
.sb-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.sb-toc li { break-inside: avoid; }
.sb-toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 4px; text-decoration: none; color: var(--sb-brown); font-size: .94rem; border-bottom: 1px dotted rgba(166,144,118,.35); transition: color .2s, padding .3s var(--sb-ease); }
.sb-toc a:hover { color: var(--sb-amber); padding-left: 8px; }
.sb-toc a span { font: italic 500 1rem var(--sb-serif); color: var(--sb-honey); min-width: 1.6em; }
.legal-section { position: relative; padding: 34px 36px 26px !important; margin-bottom: 26px !important; background: #fffdf9; border-radius: 26px !important; box-shadow: 0 20px 44px -34px rgba(92,74,50,.5), inset 0 0 0 1px rgba(212,168,83,.18); scroll-margin-top: 100px; }
.legal-section h2 { font-family: var(--sb-serif) !important; font-weight: 500 !important; font-size: clamp(1.6rem, 2.6vw, 2rem) !important; color: #2c2216 !important; margin-bottom: 14px !important; padding-left: 34px; position: relative; }
.legal-section h2::before { content: "✦"; position: absolute; left: 0; top: .1em; color: var(--sb-honey); font-size: 1.1rem; }
.legal-section p, .legal-section li { color: #5a4630 !important; line-height: 1.8; }
.legal-section a { color: var(--sb-amber) !important; text-underline-offset: 3px; }
.legal-contact-card { background: linear-gradient(135deg, #fff8ea, #fffdf9) !important; border: 1px solid rgba(212,168,83,.35) !important; border-radius: 20px !important; }
.legal-meta-row { border-radius: 20px !important; }
@media (max-width: 640px) { .sb-toc ol { columns: 1; } .legal-section { padding: 26px 20px 18px !important; } }

/* empty states */
.sb-empty-art { width: min(360px, 90%) !important; height: auto !important; aspect-ratio: 3 / 2; margin: 0 auto 22px !important; border-radius: 22px !important; overflow: hidden; background: none !important; box-shadow: 0 24px 50px -24px rgba(26,42,74,.55) !important; }
.sb-empty-art img { width: 100% !important; height: 100% !important; object-fit: cover; }
.cart-empty h2 { font-family: var(--sb-serif) !important; font-weight: 500 !important; font-size: 2rem !important; }
.cart-empty-container, .cart-empty { background: #fffdf9 !important; border-radius: 30px !important; }
.payment-maintenance { background: #fffdf9 !important; border-radius: 30px !important; box-shadow: 0 30px 60px -30px rgba(5,10,25,.6) !important; }
.payment-maintenance .pm-title { font-family: var(--sb-serif) !important; font-weight: 500 !important; font-size: 1.9rem !important; color: #2c2216 !important; }
.payment-maintenance .pm-contact-btn { border-radius: 999px !important; color: #2a1f12 !important; background: linear-gradient(120deg, #F6DC9A, #D4A853 50%, #C1913A) !important; box-shadow: 0 12px 28px -10px rgba(185,133,47,.75) !important; }
.payment-maintenance .pm-contact-btn svg { color: #2a1f12 !important; }
.order-summary { border-radius: 30px !important; }

/* ─────────── MENU · active state without layout shift ─────────── */
.sb-menu nav a[aria-current="page"] { padding-left: 4px; color: var(--sb-honey-2); }
.sb-menu nav a[aria-current="page"] small { color: var(--sb-honey-2); }
.sb-menu nav a:hover { padding-left: 10px; }
.sb-scrim { position: fixed; inset: 0; z-index: 998; background: rgba(10,18,36,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
html.sb-lock .sb-scrim { opacity: 1; visibility: visible; }
html.sb-lock, html.sb-lock body { overflow: hidden !important; }

/* ─────────── MOBILE: full-screen storybook sheet ─────────── */
@media (max-width: 720px) {
  .sb-nav { gap: 6px; }
  .sb-logo { min-width: 0; flex: 1; }
  .sb-logo span { overflow: hidden; text-overflow: ellipsis; }
  .sb-actions { gap: 6px; flex-shrink: 0; }
  .sb-panel { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0; width: 100% !important; max-height: none !important;
    border-radius: 0 !important; border: 0 !important; transform: translateY(-14px); overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(90% 40% at 50% 0%, rgba(212,168,83,.18), transparent 70%), linear-gradient(180deg, #0f1a30 0%, #1a2a4a 55%, #22365a 100%) !important; }
  .sb-panel.active { transform: none; }
  .sb-menu { display: flex !important; flex-direction: column; gap: 22px; padding: 92px 22px calc(28px + env(safe-area-inset-bottom)) !important; }
  .sb-menu nav a { font-size: 1.7rem; padding: 12px 4px; }
  .sb-menu-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sb-menu-card { height: 128px; }
  .sb-menu-card span { font-size: 1.02rem; line-height: 1.2; padding: 26px 12px 10px; }
  .sb-menu-foot { flex-direction: column; gap: 14px; font-size: .95rem; margin-top: auto; }
  .sb-account { padding: 96px 20px 28px !important; }
  .sb-account a, .sb-account button { font-size: 1.15rem; padding: 16px; }
  .sb-account .user-name { font-size: 1.6rem; }
  /* keep the bar (with its close button) above the sheet */
  .sb-nav { z-index: 1001; }
}
@media (max-width: 380px) { .sb-logo span { font-size: .92rem; } .sb-icon-btn { width: 38px; height: 38px; } }
html.sb-lock #wstrcFab, html.sb-lock .wstrc-fab { opacity: 0 !important; pointer-events: none !important; }
.sb-panel { scrollbar-width: none; }
.sb-panel::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .sb-menu-foot { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px 16px !important; }
  .sb-menu-foot a:first-child { grid-column: 1 / -1; }
}

/* ─────────── touch comfort (≥44px targets) ─────────── */
.sb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; margin: 16px 0; box-shadow: inset -14px 0 14px -14px rgba(92,74,50,.35); }
.sb-table-scroll table { min-width: 560px; margin: 0 !important; }
.back-link, .back-to-cart, .forgot-link { display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 6px; }
.password-toggle { min-width: 44px !important; min-height: 44px !important; display: inline-grid !important; place-items: center; }
.page-dot, .j-progress button, .carousel-dot { position: relative; }
.page-dot::after, .j-progress button::after, .carousel-dot::after { content: ""; position: absolute; inset: -16px; }
.remember-me { min-height: 44px; display: inline-flex !important; align-items: center; gap: 8px; }

/* ─────────── CHECKOUT · Stripe panel ─────────── */
.sb-pay { background: #fffdf9; border-radius: 30px; padding: 30px 32px 28px; box-shadow: 0 30px 60px -30px rgba(5,10,25,.6); color: #5a4630; font-family: var(--sb-sans); }
.sb-pay-art { border-radius: 22px; overflow: hidden; aspect-ratio: 16/8; margin-bottom: 22px; box-shadow: 0 20px 40px -24px rgba(26,42,74,.6); }
.sb-pay-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sb-pay h2 { font: 500 clamp(1.7rem, 3vw, 2.2rem)/1.15 var(--sb-serif); color: #2c2216; margin: 0 0 8px; }
.sb-pay-lede { margin: 0 0 22px; line-height: 1.7; }
.sb-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 12px; border-radius: 16px; background: #fbf4e6; box-shadow: inset 0 0 0 1px rgba(212,168,83,.3); cursor: pointer; font-size: .93rem; line-height: 1.6; }
.sb-check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: #B9852F; cursor: pointer; }
.sb-check a { color: var(--sb-amber); }
.sb-pay-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; margin-top: 8px; font-size: 1rem; }
.sb-pay-btn[disabled] { opacity: .7; cursor: progress; }
.sb-pay-msg { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; font-size: .92rem; }
.sb-pay-msg.show { display: block; }
.sb-pay-msg.error { background: #fdecea; color: #8a2b20; }
.sb-pay-msg a { color: inherit; font-weight: 600; }
.sb-pay-note { margin: 18px 0 0; font-size: .78rem; color: #8b7355; line-height: 1.6; text-align: center; }
@media (max-width: 560px) { .sb-pay { padding: 22px 18px; } }
@media (min-width: 980px) {
  .checkout-grid { display: grid !important; grid-template-columns: 1.25fr .9fr; gap: 28px; max-width: 1100px !important; align-items: start; }
  .checkout-grid .order-summary { position: sticky; top: 100px; margin: 0 !important; max-width: none !important; width: auto !important; }
}
.sb-bundle-row { color: #3f7a3a !important; font-weight: 600; }
.sb-paid { display: flex; gap: 16px; align-items: center; max-width: 900px; margin: 110px auto 0; padding: 16px; border-radius: 24px; background: #fffdf9; color: #5a4630; box-shadow: 0 24px 50px -24px rgba(5,10,25,.6); position: relative; z-index: 2; }
.sb-paid img { width: 110px; height: 80px; object-fit: cover; border-radius: 16px; flex-shrink: 0; }
.sb-paid strong { display: block; font: 500 1.4rem var(--sb-serif); color: #2c2216; }
.sb-paid span { font-size: .9rem; }
@media (min-width: 561px) {
  .sb-foot-scene > img { left: auto !important; right: -6% !important; width: 78% !important; object-position: 30% 40% !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
}

/* ─────────── STORY SHELF · 3D sleeves ─────────── */
.shelf { position: relative; padding: clamp(80px, 9vw, 120px) 0 90px; overflow: hidden; color: #FFF7E6; text-align: center; isolation: isolate;
  background: radial-gradient(60% 50% at 50% 30%, rgba(212,168,83,.22), transparent 70%), radial-gradient(50% 40% at 15% 90%, rgba(120,90,160,.3), transparent 70%), linear-gradient(180deg, #0f1a30 0%, #1a2a4a 60%, #22365a 100%); }
.shelf::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; background-image:
  radial-gradient(1.4px 1.4px at 8% 12%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 24% 30%, #F8DFB3 50%, transparent 52%), radial-gradient(1.2px 1.2px at 40% 8%, #fff 50%, transparent 52%),
  radial-gradient(1px 1px at 61% 18%, #F8DFB3 50%, transparent 52%), radial-gradient(1.4px 1.4px at 79% 9%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 93% 26%, #F8DFB3 50%, transparent 52%); }
.shelf .chapter-mark { color: var(--sb-honey-2); font: italic 500 1rem var(--sb-serif); letter-spacing: 3px; }
.shelf h2 { font: 500 clamp(2.3rem, 4.6vw, 3.6rem)/1.08 var(--sb-serif); margin: 8px 0 10px; color: #FFF7E6; }
.shelf > p { color: rgba(248,223,179,.8); max-width: 54ch; margin: 0 auto; }
.shelf-stage { position: relative; height: clamp(320px, 38vw, 440px); margin: 40px auto 0; perspective: 1500px; perspective-origin: 50% 30%; }
.shelf-item { position: absolute; left: 50%; top: 40px; width: clamp(200px, 22vw, 280px); aspect-ratio: 1; margin-left: calc(clamp(200px, 22vw, 280px) / -2);
  transform-style: preserve-3d; cursor: pointer; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s; outline: none; }
.shelf-face { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; transform: translateZ(7px);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.35); background: #1a2a4a; }
.shelf-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.18), transparent 8%, rgba(255,255,255,.06) 70%, rgba(0,0,0,.1)); }
.shelf-spine { position: absolute; top: 0; left: calc(100% - 7px); width: 14px; height: 100%; transform: rotateY(90deg); transform-origin: center;
  background: linear-gradient(90deg, var(--c, #B9852F), color-mix(in srgb, var(--c, #B9852F) 60%, #000)); }
.shelf-spine span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); writing-mode: vertical-rl; font: 600 7px var(--sb-sans); letter-spacing: 1.4px; color: #FFF7E6; white-space: nowrap; text-transform: uppercase; }
.shelf-item::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -34px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(6px); transform: translateZ(-20px); }
.shelf-item.is-front .shelf-face { box-shadow: 0 40px 70px -20px rgba(0,0,0,.8), 0 0 0 2px rgba(248,223,179,.8), 0 0 60px -6px rgba(212,168,83,.6); }
.shelf-item:not(.is-front):hover { filter: brightness(1.12); }
.shelf-play { position: absolute; inset: auto 12px 12px auto; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; transform: translateZ(8px) scale(.6); opacity: 0;
  background: linear-gradient(135deg, #F6DC9A, #D4A853); color: #2a1f12; box-shadow: 0 10px 24px -6px rgba(0,0,0,.6); transition: opacity .4s, transform .4s; }
.shelf-item.is-front .shelf-play { opacity: 1; transform: translateZ(8px) scale(1); }
.shelf-lock { position: absolute; top: 10px; left: 10px; transform: translateZ(8px); padding: 4px 10px; border-radius: 999px; font: 600 .68rem var(--sb-sans); letter-spacing: 1px; background: rgba(15,26,48,.75); color: #FFF7E6; }
.shelf-lock.free { background: linear-gradient(120deg, #F6DC9A, #D4A853); color: #2a1f12; }
.shelf-cap { margin-top: 26px; min-height: 140px; }
.shelf-cap-n { font: 600 .74rem var(--sb-sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--sb-honey-2); }
.shelf-cap-t { font: 500 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--sb-serif); margin: 6px 0; }
.shelf-cap-l { color: rgba(248,223,179,.8); max-width: 52ch; margin: 0 auto 18px; }
.shelf-nav { display: flex; gap: 12px; justify-content: center; align-items: center; }
.shelf-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(248,223,179,.4); background: rgba(248,223,179,.08); color: #FFF7E6; cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s; }
.shelf-arrow:hover { background: rgba(248,223,179,.22); transform: translateY(-2px); }
.shelf-arrow svg { width: 22px; height: 22px; }
.shelf-cap-btn { border: 0; cursor: pointer; font-family: var(--sb-sans); }
.shelf--still .shelf-item { transition: none; }
@media (max-width: 640px) { .shelf-item { width: 180px; margin-left: -90px; } .shelf-stage { height: 300px; } }
.sb-btn-paper { color: var(--sb-brown); background: rgba(253,248,240,.8); box-shadow: inset 0 0 0 1.5px rgba(92,74,50,.35), 0 10px 24px -14px rgba(92,74,50,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sb-btn-paper:hover { box-shadow: inset 0 0 0 1.5px var(--sb-brown), 0 14px 28px -12px rgba(92,74,50,.5); }

/* ─────────── FOOTER on phones: picture → words → forest (no empty gap) ─────────── */
@media (max-width: 720px) {
  .sb-foot-scene { display: block !important; min-height: 0 !important; padding: 0 18px 130px !important; text-align: center !important;
    background: linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, #FDF8F0 40%, #e9eef5 78%, #131f38 100%) !important; }
  .sb-foot-scene::before, .sb-foot-scene::after { display: none !important; }
  .sb-foot-scene > img { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; z-index: 0 !important;
    display: block; width: calc(100% + 36px) !important; max-width: none; margin: 0 -18px 4px; height: auto !important; aspect-ratio: 5 / 4;
    object-fit: cover; object-position: 68% 45% !important; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%) !important; mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%) !important; }
  .sb-foot-scene > div:first-of-type { max-width: 440px; margin: 0 auto; position: relative; z-index: 1; }
  .sb-foot-scene h2 { font-size: 2.3rem !important; }
  .sb-foot-scene p { margin: 0 auto 22px !important; }
  .sb-foot-ctas { justify-content: center !important; flex-direction: column; align-items: stretch; }
  .sb-foot-ctas .sb-btn { justify-content: center; }
  .sb-foot-body { padding: 26px 20px 30px; }
  .sb-foot-grid { grid-template-columns: 1fr 1fr !important; gap: 26px 18px !important; }
  .sb-foot-brand, .sb-foot-col:last-child { grid-column: 1 / -1; }
  .sb-foot-brand p { max-width: none; }
  .sb-foot-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
.sb-foot-m { display: none; }
@media (max-width: 720px) {
  .sb-foot-scene > img:not(.sb-foot-m) { display: none !important; }
  .sb-foot-scene > img.sb-foot-m { display: block !important; aspect-ratio: 4 / 3; object-position: 55% 50% !important; border-radius: 0; }
}

/* ─────────── FOOTER SCENE v3 · moonlit bedtime (night ink, light words) ─────────── */
.sb-footer .sb-foot-scene { background: #131f38 !important; }
@media (min-width: 721px) {
  .sb-foot-scene { min-height: 620px !important; justify-items: start !important; text-align: left !important; padding: 170px 7vw 190px !important; }
  .sb-foot-scene > img:not(.sb-foot-m) { left: 0 !important; right: 0 !important; width: 100% !important; height: 100% !important; object-position: 50% 55% !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .sb-foot-scene::before { display: block !important; background:
    linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, rgba(253,248,240,0) 16%),
    linear-gradient(90deg, rgba(12,20,40,.82) 0%, rgba(12,20,40,.55) 34%, rgba(12,20,40,0) 60%),
    linear-gradient(180deg, rgba(19,31,56,0) 60%, rgba(19,31,56,.75) 88%, #131f38 100%) !important; }
}
.sb-foot-scene h2 { color: #FFF7E6 !important; text-shadow: 0 4px 28px rgba(5,10,25,.7) !important; }
.sb-foot-scene p { color: rgba(255,247,230,.92) !important; text-shadow: 0 2px 14px rgba(5,10,25,.8) !important; }
.sb-foot-scene .sb-kicker { color: #F6DC9A !important; text-shadow: 0 2px 10px rgba(0,0,0,.5) !important; }
.sb-foot-scene .sb-btn-glass { color: #FFF7E6 !important; background: rgba(255,247,230,.12) !important; box-shadow: inset 0 0 0 1.5px rgba(255,247,230,.55) !important; }
@media (max-width: 720px) {
  .sb-foot-scene { background: linear-gradient(180deg, var(--sb-foot-top, #FDF8F0) 0%, #1a2a4a 18%, #131f38 100%) !important; }
  .sb-foot-scene > img.sb-foot-m { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%) !important; mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%) !important; object-position: 50% 55% !important; }
}

/* ═════════ BASKET (shared: side basket + basket page) ═════════ */
.bk-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 14px 30px -22px rgba(26,42,74,.55), inset 0 0 0 1px rgba(212,168,83,.22); margin-bottom: 12px; font-family: var(--sb-sans); }
.bk-art { width: 76px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #efe2c8; }
.bk-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-art--sm { width: 56px; border-radius: 14px; flex-shrink: 0; }
.bk-tag { font: 700 .62rem var(--sb-sans); letter-spacing: 2px; text-transform: uppercase; color: #9a6f22; }
.bk-body h4 { font: 500 1.35rem/1.1 var(--sb-serif); color: #2c2216; margin: 2px 0 3px; }
.bk-body p { font-size: .82rem; color: #8b7355; margin: 0; line-height: 1.45; }
.bk-remove { border: 0; background: none; padding: 6px 0 0; color: #a69076; font: 600 .76rem var(--sb-sans); text-decoration: underline; cursor: pointer; }
.bk-remove:hover { color: #b0452f; }
.bk-price { font: italic 600 1.5rem var(--sb-serif); color: #B9852F; padding-right: 4px; }
.bk-item--big { grid-template-columns: 150px 1fr auto; gap: 22px; padding: 16px; border-radius: 26px; }
.bk-item--big .bk-art { width: 150px; aspect-ratio: 4/3; border-radius: 18px; }
.bk-item--big .bk-body h4 { font-size: 1.8rem; }
.bk-item--big .bk-body p { font-size: .92rem; }
.bk-item--big .bk-price { font-size: 2rem; padding-right: 8px; }
.bk-nudge { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #fff6e0, #fffdf9); box-shadow: inset 0 0 0 1.5px rgba(212,168,83,.6); font-family: var(--sb-sans); }
.bk-nudge > div:not(.bk-art) { flex: 1; min-width: 0; }
.bk-nudge b { display: block; font: 600 .95rem var(--sb-sans); color: #2c2216; }
.bk-nudge small { display: block; font-size: .8rem; color: #8b7355; margin-top: 2px; }
.bk-meter { height: 6px; border-radius: 6px; background: rgba(212,168,83,.2); margin-top: 8px; overflow: hidden; }
.bk-meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #F6DC9A, #D4A853); }
.bk-nudge--done { background: linear-gradient(135deg, #eef7e9, #fffdf9); box-shadow: inset 0 0 0 1.5px rgba(63,122,58,.45); }
.bk-nudge--done > span { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #3f7a3a; color: #fff; }
.bk-nudge--done b { color: #2f5e2b; }
.bk-add { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; font: 700 .82rem var(--sb-sans); color: #2a1f12; background: linear-gradient(120deg, #F6DC9A, #D4A853 55%, #C1913A); box-shadow: 0 8px 18px -8px rgba(185,133,47,.8); white-space: nowrap; transition: transform .25s; }
.bk-add:hover { transform: translateY(-2px); }
.bk-add--alt { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(212,168,83,.7); }
.bk-empty { text-align: center; padding: 10px 6px; font-family: var(--sb-sans); }
.bk-empty img { width: 100%; max-width: 300px; aspect-ratio: 3/2; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(26,42,74,.6); }
.bk-empty h4 { font: 500 1.7rem var(--sb-serif); color: #2c2216; margin: 18px 0 4px; }
.bk-empty p { color: #8b7355; font-size: .9rem; margin: 0 0 16px; }
.bk-empty-btns { display: grid; gap: 10px; max-width: 280px; margin: 0 auto; }
.bk-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font: 500 .92rem var(--sb-sans); color: #6b5640; }
.bk-row--save { color: #3f7a3a; font-weight: 700; }
.bk-row--total { border-top: 1px dashed rgba(166,144,118,.5); margin-top: 6px; padding-top: 14px; color: #2c2216; font-weight: 700; font-size: 1.05rem; align-items: baseline; }
.bk-row--total b { font: italic 600 2.1rem var(--sb-serif); color: #B9852F; }
@media (max-width: 560px) {
  .bk-item--big { grid-template-columns: 96px 1fr; } .bk-item--big .bk-art { width: 96px; aspect-ratio: 1; }
  .bk-item--big .bk-price { grid-column: 2; justify-self: start; font-size: 1.6rem; }
  .bk-nudge { flex-wrap: wrap; } .bk-nudge .bk-add { width: 100%; }
}

/* ── side basket (shop) ── */
.bk-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 1200; display: flex; flex-direction: column; background: #FDF8F0;
  box-shadow: -30px 0 80px -20px rgba(5,10,25,.55); transform: translateX(105%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bk-drawer.active { transform: none; }
.bk-scrim { position: fixed; inset: 0; z-index: 1150; background: rgba(10,18,36,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.bk-scrim.active { opacity: 1; visibility: visible; }
.bk-head { position: relative; padding: 26px 24px 30px; color: #FFF7E6; overflow: hidden;
  background: radial-gradient(80% 120% at 85% -20%, rgba(212,168,83,.4), transparent 60%), linear-gradient(160deg, #0f1a30, #22365a); }
.bk-head::before { content: ""; position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(1.2px 1.2px at 12% 30%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 38% 70%, #F8DFB3 50%, transparent 52%), radial-gradient(1.3px 1.3px at 62% 20%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 84% 64%, #F8DFB3 50%, transparent 52%); }
.bk-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: #FDF8F0; -webkit-mask: radial-gradient(14px 10px at 50% 0, transparent 98%, #000) 0 0 / 28px 18px repeat-x; mask: radial-gradient(14px 10px at 50% 0, transparent 98%, #000) 0 0 / 28px 18px repeat-x; }
.bk-head small { display: block; font: italic 500 .9rem var(--sb-serif); letter-spacing: 3px; color: #F6DC9A; }
.bk-head h3 { font: 500 2rem var(--sb-serif); margin: 4px 0 0; color: #FFF7E6; }
.bk-head h3 span { font: 600 .8rem var(--sb-sans); vertical-align: middle; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(248,223,179,.15); color: #F6DC9A; }
.bk-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(248,223,179,.35); background: rgba(248,223,179,.08); color: #FFF7E6; font-size: 1.4rem; cursor: pointer; }
.bk-close:hover { background: rgba(248,223,179,.2); }
.bk-scroll { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }
.bk-foot { padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); background: #fffdf9; box-shadow: 0 -14px 30px -24px rgba(26,42,74,.5); }
.bk-foot .sb-btn { width: 100%; justify-content: center; margin-top: 10px; }
.bk-foot .bk-link { display: block; text-align: center; margin-top: 10px; font: 600 .85rem var(--sb-sans); color: #8b7355; }
.bk-foot .bk-safe { text-align: center; font-size: .74rem; color: #a69076; margin: 8px 0 0; }

/* preview cover: keep the real proportions (no white letterbox) */
.pv-cover { height: auto !important; aspect-ratio: 2 / 3; object-fit: cover !important; background: none !important; }
@media (max-width: 900px) { .pv-cover { width: min(250px, 66%) !important; max-height: none !important; } .pv-orbit { width: 26% !important; } }

/* sticky "add to cart" bar on phones: solid night glass, readable */
.sticky-cta { background: linear-gradient(120deg, rgba(15,26,48,.97), rgba(36,58,92,.97)) !important; -webkit-backdrop-filter: blur(14px) !important; backdrop-filter: blur(14px) !important;
  border-top: 1px solid rgba(248,223,179,.25) !important; box-shadow: 0 -16px 40px -12px rgba(5,10,25,.6) !important; z-index: 900 !important; }
.sticky-cta .sticky-cta-title { color: #FFF7E6 !important; font-family: var(--sb-serif) !important; font-size: 1.1rem !important; }
.sticky-cta .sticky-cta-subtitle { color: rgba(248,223,179,.75) !important; }
html.sb-lock .sticky-cta { display: none !important; }
body:has(#wstrcBanner.show) .sticky-cta { display: none !important; }

/* flip-book navigation: round buttons, tidy on phones */
.book-navigation { display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; padding: 10px 14px !important; border-radius: 999px !important; width: fit-content !important; max-width: calc(100vw - 32px) !important; margin: 18px auto 0 !important; }
.book-navigation .nav-btn { flex: 0 0 auto !important; width: 42px !important; height: 42px !important; min-width: 42px !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center !important; font-size: 1.1rem !important; line-height: 1 !important;
  background: rgba(248,223,179,.12) !important; color: #FFF7E6 !important; border: 1px solid rgba(248,223,179,.4) !important; }
.book-navigation .nav-btn:not([disabled]):hover { background: linear-gradient(120deg, #F6DC9A, #D4A853) !important; color: #2a1f12 !important; }
.book-navigation .nav-btn[disabled] { opacity: .35 !important; }
.page-dots { display: flex !important; gap: 6px !important; align-items: center !important; }
.page-dot { width: 9px !important; height: 9px !important; min-width: 9px !important; border-radius: 50% !important; padding: 0 !important; }
.page-dot.active { width: 22px !important; border-radius: 6px !important; }
.page-indicator { font-family: var(--sb-serif) !important; }
@media (max-width: 560px) {
  .book-navigation .nav-first, .book-navigation .nav-last { display: none !important; }
  .book-navigation .nav-btn { width: 44px !important; height: 44px !important; }
  .page-dots { gap: 5px !important; }
  .page-dot { width: 7px !important; height: 7px !important; min-width: 7px !important; }
  .page-dot.active { width: 18px !important; }
}
@media (max-width: 720px) {
  .sticky-cta { padding: 12px 16px 12px 76px !important; gap: 12px !important; }
  .sticky-cta-btn { white-space: nowrap !important; padding: 0 18px !important; height: 48px !important; font-size: .9rem !important; flex-shrink: 0; }
  .sticky-cta-info { min-width: 0; }
  .sticky-cta .sticky-cta-subtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem !important; }
}

/* ─────────── TWINKLES over illustrations (all pages) ─────────── */
.sb-twinkle { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sb-hero .sb-twinkle, .page-hero .sb-twinkle, .sb-illus .sb-twinkle { z-index: 0; }
.sb-twinkle i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 6px 1px rgba(255,255,255,.9); animation: sbTw 4s ease-in-out infinite; }
.sb-twinkle i.is-gold { background: #FFE7A8; box-shadow: 0 0 8px 2px rgba(255,214,120,.85); }
.sb-twinkle i.is-big { width: 14px; height: 14px; border-radius: 0; background: none; box-shadow: none; }
.sb-twinkle i.is-big::before, .sb-twinkle i.is-big::after { content: ""; position: absolute; left: 50%; top: 50%; background: #FFF4D6; border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,220,140,.9); transform: translate(-50%, -50%); }
.sb-twinkle i.is-big::before { width: 2px; height: 14px; }
.sb-twinkle i.is-big::after { width: 14px; height: 2px; }
@keyframes sbTw { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(20deg); } 60% { opacity: .85; } }
.sb-foot-scene > div:first-of-type, .page-hero h1, .page-hero p, .sb-hero-copy, .sb-illus > *:not(.sb-illus-art):not(.sb-twinkle) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .sb-twinkle { display: none; } }

/* ═════════ STORY WEATHER ═════════ */
.sb-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sb-fx.fx-foot { z-index: -1; }
.fx-off .sb-fx *, .j-scene:not(.on) .sb-fx * { animation-play-state: paused !important; }
.journey-stage > .sb-twinkle, .j-rain, .j-snow { display: none !important; }
.has-fx-rain > .sb-twinkle, .has-fx-snow > .sb-twinkle { display: none; }
.sb-fx b, .sb-fx i { position: absolute; display: block; }

/* rain */
.fx-rain { inset: -20% -10%; background-image: repeating-linear-gradient(102deg, transparent 0 18px, rgba(220,232,255,.32) 18px 19px, transparent 19px 41px); background-size: 260px 260px; animation: fxRain .55s linear infinite; opacity: .75; }
.fx-rain.b { background-image: repeating-linear-gradient(98deg, transparent 0 30px, rgba(255,255,255,.22) 30px 31.5px, transparent 31.5px 63px); background-size: 340px 340px; animation-duration: .8s; opacity: .55; filter: blur(.4px); }
@keyframes fxRain { to { background-position: -56px 260px; } }
.fx-flash { inset: 0; background: radial-gradient(60% 50% at 70% 10%, rgba(230,240,255,.55), transparent 70%); opacity: 0; animation: fxFlash 9s ease-out infinite; }
@keyframes fxFlash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: .9; } 88% { opacity: .1; } 89.5% { opacity: .7; } 92% { opacity: 0; } }

/* snow */
.fx-snow { inset: -30% 0 0; background-image:
  radial-gradient(2.5px 2.5px at 10% 20%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 30% 60%, #fff 50%, transparent 52%), radial-gradient(3px 3px at 55% 35%, #fff 50%, transparent 52%),
  radial-gradient(2px 2px at 72% 80%, #fff 50%, transparent 52%), radial-gradient(2.5px 2.5px at 88% 15%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 45% 90%, #fff 50%, transparent 52%);
  background-size: 260px 260px; animation: fxSnow 12s linear infinite; opacity: .9; }
.fx-snow.b { background-size: 180px 180px; animation-duration: 8s; opacity: .7; filter: blur(.6px); }
.fx-snow.c { background-size: 420px 420px; animation-duration: 18s; opacity: .95; transform: scale(1.4); }
@keyframes fxSnow { to { background-position: 60px 260px; } }

/* sun rays */
.fx-rays { width: 160%; aspect-ratio: 1; right: -55%; top: -70%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,180,.22) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0,0,0,.6) 35%, transparent 72%); mask-image: radial-gradient(closest-side, #000 8%, rgba(0,0,0,.6) 35%, transparent 72%);
  mix-blend-mode: screen; animation: fxSpin 90s linear infinite, fxBreath 7s ease-in-out infinite; }
.fx-glow { inset: 0; background: radial-gradient(45% 40% at 78% 12%, rgba(255,214,140,.35), transparent 70%); mix-blend-mode: screen; animation: fxBreath 7s ease-in-out infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxBreath { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* wind */
.fx-gust { left: -30%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); opacity: 0; animation: fxGust 5s ease-in-out infinite; }
@keyframes fxGust { 0% { transform: translate(0, 0) scaleX(.6); opacity: 0; } 15% { opacity: .9; } 50% { transform: translate(70vw, -14px) scaleX(1); } 85% { opacity: .5; } 100% { transform: translate(140vw, 6px) scaleX(.7); opacity: 0; } }
.fx-leaf { left: -6%; width: 10px; height: 6px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #F6C458, #C98A2E); opacity: 0; animation: fxLeaf 8s ease-in-out infinite; }
@keyframes fxLeaf { 0% { transform: translate(0,0) rotate(0deg); opacity: 0; } 10% { opacity: .95; } 50% { transform: translate(55vw, -40px) rotate(320deg); } 90% { opacity: .8; } 100% { transform: translate(115vw, 30px) rotate(700deg); opacity: 0; } }

/* fireflies */
.fx-fly { width: 5px; height: 5px; border-radius: 50%; background: #FFE9A0; box-shadow: 0 0 10px 3px rgba(255,214,110,.85), 0 0 22px 6px rgba(255,190,80,.35);
  animation-name: fxDrift, fxBlink; animation-timing-function: ease-in-out, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: alternate, alternate; }
@keyframes fxDrift { 0% { transform: translate(0, 0); } 33% { transform: translate(22px, -30px); } 66% { transform: translate(-16px, -54px); } 100% { transform: translate(12px, -80px); } }
@keyframes fxBlink { 0%, 30% { opacity: .1; } 60%, 100% { opacity: 1; } }

/* shooting stars */
.fx-shoot { width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); transform: rotate(-28deg); opacity: 0; animation: fxShoot 9s ease-out infinite; }
.fx-shoot::after { content: ""; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255,240,200,.9); }
@keyframes fxShoot { 0%, 70% { opacity: 0; transform: translate(0, 0) rotate(-28deg); } 72% { opacity: 1; } 82% { opacity: 0; transform: translate(-260px, 140px) rotate(-28deg); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sb-fx { display: none; } }
.fx-fly--soft { width: 4px; height: 4px; box-shadow: 0 0 8px 2px rgba(255,214,110,.75), 0 0 18px 5px rgba(255,190,80,.25); }
/* snow: bigger, softer, more visible flakes */
.fx-snow { background-image:
  radial-gradient(4px 4px at 10% 20%, #fff 45%, transparent 55%), radial-gradient(3px 3px at 30% 60%, #fff 45%, transparent 55%), radial-gradient(5px 5px at 55% 35%, rgba(255,255,255,.95) 40%, transparent 60%),
  radial-gradient(3px 3px at 72% 80%, #fff 45%, transparent 55%), radial-gradient(4px 4px at 88% 15%, #fff 45%, transparent 55%), radial-gradient(3px 3px at 45% 90%, #fff 45%, transparent 55%) !important;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.8)); }
.fx-snow.b { filter: blur(.8px) drop-shadow(0 0 2px #fff); }

/* ─────────── STICKY BUY PILL (preview + audiobooks) ─────────── */
.sticky-cta.sb-pill { left: 50% !important; right: auto !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; transform: translate(-50%, 140%) !important;
  width: min(560px, calc(100vw - 24px)) !important; display: flex !important; align-items: center !important; gap: 12px !important; padding: 8px 8px 8px 8px !important;
  border-radius: 999px !important; border: 1px solid rgba(248,223,179,.3) !important; box-shadow: 0 20px 44px -12px rgba(5,10,25,.7) !important; transition: transform .45s cubic-bezier(.2,.7,.2,1) !important; }
.sticky-cta.sb-pill.visible { transform: translate(-50%, 0) !important; }
.sb-pill-art { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(248,223,179,.6); }
.sb-pill .sticky-cta-info { flex: 1; min-width: 0; display: flex !important; flex-direction: column; gap: 1px; }
.sb-pill .sticky-cta-title { font: 500 1.1rem/1.1 var(--sb-serif) !important; color: #FFF7E6 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pill .sticky-cta-subtitle { font-size: .74rem !important; color: rgba(248,223,179,.75) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pill .sticky-cta-btn { flex-shrink: 0; height: 46px !important; padding: 0 20px !important; border-radius: 999px !important; white-space: nowrap !important; font: 700 .9rem var(--sb-sans) !important; }
@media (max-width: 720px) { .sticky-cta.sb-pill { padding: 6px !important; } }
/* the cookie button steps up while the pill is showing */
body:has(.sticky-cta.sb-pill.visible) #wstrcFab { bottom: calc(86px + env(safe-area-inset-bottom)) !important; transition: bottom .4s; }

/* sun rays come only from the sky (centre just above the top edge), never from the ground */
.fx-rays { width: 200vmax !important; height: 200vmax !important; aspect-ratio: auto !important; right: auto !important;
  left: calc(var(--sx, 74%) - 100vmax) !important; top: calc(var(--sy, -6%) - 100vmax) !important;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, rgba(0,0,0,.55) 18vmax, transparent 62vmax) !important; mask-image: radial-gradient(circle at 50% 50%, #000 0, rgba(0,0,0,.55) 18vmax, transparent 62vmax) !important;
  background: repeating-conic-gradient(from 90deg at 50% 50%, rgba(255,236,180,.2) 0deg 3deg, transparent 3deg 11deg) !important; animation: fxSpin 140s linear infinite, fxBreath 8s ease-in-out infinite !important; }
.fx-glow { background: radial-gradient(55% 45% at var(--sx, 74%) 0%, rgba(255,214,140,.32), transparent 70%) !important; }
.fx-glow--soft { background: radial-gradient(60% 40% at 70% 0%, rgba(255,214,140,.22), transparent 72%) !important; }

/* rain: steeper slant */
.fx-rain { inset: -60% !important; transform: rotate(24deg); background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(220,232,255,.34) 22px 23px, transparent 23px 47px) !important; background-size: 47px 140px !important; animation: fxRainV .45s linear infinite !important; }
.fx-rain.b { background-image: repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.22) 34px 35.5px, transparent 35.5px 71px) !important; background-size: 71px 200px !important; animation-duration: .7s !important; }
.fx-rain { -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 70px); mask-image: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 70px); -webkit-mask-size: 100% 140px; mask-size: 100% 140px; }
.fx-rain.b { -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 40px, transparent 40px 100px); mask-image: repeating-linear-gradient(180deg, #000 0 40px, transparent 40px 100px); }
@keyframes fxRainV { to { background-position: 0 140px; -webkit-mask-position: 0 140px; mask-position: 0 140px; } }

/* footer fireflies always above the picture (phones had them hidden under the image) and a touch brighter */
.sb-fx.fx-foot { z-index: 1 !important; }
.sb-foot-scene > div:first-of-type { z-index: 2 !important; }
.fx-foot .fx-fly { width: 6px; height: 6px; background: #FFF1B8; box-shadow: 0 0 12px 4px rgba(255,214,110,.95), 0 0 30px 10px rgba(255,190,80,.4); }
.sb-foot-body { position: relative; isolation: isolate; }
.sb-fx.fx-footbody { z-index: -1; }
.fx-footbody .fx-fly { width: 5px; height: 5px; background: #FFF1B8; box-shadow: 0 0 12px 4px rgba(255,214,110,.9), 0 0 26px 8px rgba(255,190,80,.35); }
.sb-nav .sb-logo, .sb-nav .sb-logo span, .sb-foot-brand .sb-logo span { color: #F8DFB3 !important; font-family: var(--sb-serif) !important; font-style: italic !important; font-weight: 600 !important; }
.sb-illus--hero .hero-icon, .sb-illus--hero .gi { display: none !important; }
.sb-illus--hero .wave-bottom { position: absolute !important; left: 0; right: 0; bottom: -1px !important; top: auto !important; z-index: 3; }
.sb-illus--hero .welcome-content { position: relative; z-index: 2; }
.sb-illus--hero > .sb-illus-art::after { background:
  radial-gradient(42% 34% at 50% 40%, rgba(12,20,40,.72), rgba(12,20,40,0) 80%),
  linear-gradient(180deg, rgba(15,26,48,.6) 0%, rgba(15,26,48,.2) 24%, rgba(15,26,48,.35) 60%, rgba(15,26,48,.85) 90%, #14223f 100%) !important; }
.sb-illus--hero.welcome-banner { min-height: min(92vh, 820px) !important; }
.sb-illus--hero .welcome-content { padding-top: 10px; }
.sb-illus--hero .welcome-content, .sb-illus--hero .hero-in { max-width: 680px; margin: 0 auto; padding: 30px 34px 34px !important; border-radius: 30px; background: rgba(12,20,40,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(248,223,179,.2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
@media (max-width: 600px) { .sb-illus--hero .welcome-content, .sb-illus--hero .hero-in { padding: 22px 18px 24px !important; margin: 0 12px; } }
.btn-download-all, .download-all-btn { border-radius: 999px !important; color: #2a1f12 !important; background: linear-gradient(120deg, #F6DC9A, #D4A853 55%, #C1913A) !important; box-shadow: 0 12px 26px -10px rgba(185,133,47,.8) !important; border: 0 !important; }
.download-all-section > * , .download-all-card { border-radius: 26px !important; }
@media (max-width: 600px) {
  .welcome-stats { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; width: 100%; }
  .welcome-stats .stat-chip { padding: 10px 6px !important; min-width: 0 !important; }
  .welcome-stats .stat-num { font-size: 1.4rem !important; }
  .welcome-stats .stat-label { font-size: .58rem !important; letter-spacing: .5px !important; }
  .sb-illus--banner.welcome-banner { min-height: 0 !important; padding-top: 140px !important; }
}

/* ANPC SAL pictogram – exactly as on 82design: official drawing, undistorted, 250×50, no box */
.anpc-compliance { margin-top: 1.4rem; line-height: 0; }
.anpc-compliance__link { display: inline-block; border-radius: 10px; transition: transform .2s ease, filter .2s ease; background: none !important; padding: 0 !important; }
.anpc-compliance__link:hover { transform: translateY(-1px); filter: brightness(1.04); }
.anpc-compliance__link:focus-visible { outline: 2px solid var(--sb-honey); outline-offset: 3px; }
.anpc-compliance__img { display: block; width: 250px !important; height: 50px !important; max-width: none !important; object-fit: contain; object-position: left center; filter: none !important; opacity: 1 !important; }
@media (max-width: 700px) { .anpc-compliance { display: flex; justify-content: flex-start; } }
/* operator line, like 82design */
.sb-company { flex-basis: 100%; order: 3; margin: 6px 0 0; font-size: .75rem; line-height: 1.6; opacity: .7; }
.sb-company strong { color: var(--sb-star); font-weight: 600; }
.sb-company a { color: var(--sb-honey-2); }

/* navbar polish on every page (some pages carry old icon/button rules) */
.sb-icon-btn { border-radius: 50% !important; }
.sb-icon-btn:focus-visible { outline: 2px solid var(--sb-honey) !important; outline-offset: 3px !important; border-radius: 50% !important; box-shadow: none !important; }
.sb-icon-btn svg { opacity: 1 !important; stroke: currentColor !important; color: var(--sb-star) !important; width: 19px !important; height: 19px !important; fill: none !important; }
.sb-account .purchase-links-injected { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(248,223,179,.14); }
.sb-account a .menu-item-icon, .sb-account button .menu-item-icon { display: flex !important; align-items: center; gap: 12px; }

/* phone footer: Help & Legal as a tidy full-width block, ANPC badge centred beneath it */
@media (max-width: 760px) {
  .sb-foot-col:last-child { text-align: center; padding-top: 18px; border-top: 1px solid rgba(248,223,179,.1); }
  .sb-foot-col:last-child ul { grid-template-columns: 1fr 1fr; gap: 10px 14px; justify-items: center; }
  .sb-foot-col:last-child li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sb-foot-col:last-child .anpc-compliance { display: flex; justify-content: center; margin-top: 1.3rem; }
  .sb-foot-col:last-child a:hover, .sb-foot-col:last-child button:hover { padding-left: 0; }
}

/* phones: no auto-made blue links (iOS turns addresses, CUI/J numbers, dates, emails into links) */
a[x-apple-data-detectors], a[href^="tel:"]:not([class]), a[href^="x-apple-data-detectors:"] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
html { -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: rgba(212,168,83,.18); }
/* any plain link the browser would paint blue/purple keeps the brand colour */
:where(a:not([class])), :where(a:not([class])):visited { color: #B9852F; }
:where(.sb-nav, .sb-foot, .sb-panel, [class*="night"], .lib-hero, .lib-gate) :where(a:not([class])), :where(.sb-nav, .sb-foot, .sb-panel, [class*="night"], .lib-hero, .lib-gate) :where(a:not([class])):visited { color: #E8C97A; }
.sb-foot a:not([class]), .sb-company a { color: var(--sb-honey-2, #E8C97A); }
/* iPhone paints unstyled button text system-blue – buttons take the colour of where they sit */
:where(button, [type="button"], [type="submit"], [type="reset"]) { color: inherit; }
/* "coming soon" notes for the printed book – plain text, never a link */
.sb-soon { display: inline-flex; align-items: center; gap: 6px; font: italic 500 .95rem var(--sb-serif, 'Cormorant Garamond', serif); color: rgba(248,223,179,.7); }
.sb-soon::before { content: "✦"; font-style: normal; font-size: .7em; color: var(--sb-honey, #D4A853); }

/* transparency about AI-made art and voices */
.sb-ai { display: inline-block; margin-top: 6px; font-size: .78rem; opacity: .75; }
.sb-ai-note { margin: 10px auto 18px; max-width: 60ch; text-align: center; font: italic 500 .95rem/1.5 var(--sb-serif, 'Cormorant Garamond', serif); color: inherit; opacity: .75; }
.sb-ai-inline { display: block; margin-top: 6px; font-size: .78rem; opacity: .7; }

/* two Amazon buttons side by side (hardcover / paperback) */
.sb-amz-pair { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-amz-pair .sb-btn { flex: 1 1 auto; justify-content: center; }
/* "skip to main content" – hidden until a keyboard user tabs to it */
.sb-skip { position: fixed; left: 12px; top: -60px; z-index: 3000; padding: 10px 18px; border-radius: 999px; background: #FFF7E6; color: #2c2216; font: 700 .9rem 'Quicksand', sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: top .2s; }
.sb-skip:focus { top: 12px; outline: 3px solid #D4A853; outline-offset: 2px; }
main:focus { outline: none; }
/* confetti and pulsing badges rest for people who asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .confetti, .confetti-container, .free-badge { animation: none !important; }
  .confetti, .confetti-container { display: none !important; }
}
.shelf-item:focus-visible .shelf-face { outline: 3px solid #D4A853; outline-offset: 4px; }
