/* ============================================================
   store.css — the commerce layer (store agent):
     • jackets and book cards, the golden plus, the rating bubbles
     • rows, grids, skeletons and states (browser.js)
     • the browser inside the podium book (a two-page spread)
     • the Store page (reversed scheme: tan ground, green ink)
     • the detail sheet, the cart drawer and the payment sheets
   The HUD lives in hud.css.
   ============================================================ */

/* Ink for things that sit on a light ground (papyrus, tan, parchment).
   The podium re-inks these to sepia; the store keeps deep green. */
:root {
  --k-ink:   var(--store-ink);
  --k-ink-2: var(--store-ink-2);
  --k-ink-3: #5E6A55;
  --k-line:  rgba(10, 36, 22, .16);
  --k-line-2: rgba(10, 36, 22, .3);
  --k-acc:   #8C5A12;                /* gilt-brown accents, the $1 */
  --k-sk:    rgba(10, 36, 22, .07);  /* skeleton base */
  --k-hi:    rgba(255, 252, 242, .55);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .9 0'/></filter><rect width='260' height='260' filter='url(%23n)'/></svg>");
}

/* =============================================================
   JACKETS — the cover, or a typographic jacket in house cloth
   ============================================================= */
.jk {
  position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; isolation: isolate;
  container-type: inline-size;
  border-radius: 2px 4px 4px 2px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px),
    radial-gradient(120% 70% at 30% 18%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(170deg, var(--cl-a, #0F2E1C), var(--cl-b, #05130C));
}
.jk img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 2;
  opacity: 0; transition: opacity .45s var(--ease);
}
.jk.is-loaded img { opacity: 1; }
/* the hinge: a book is a book, even at 56 px */
.jk::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .34) 0, rgba(0, 0, 0, .1) 2.2%, rgba(255, 255, 255, .16) 3.6%, rgba(255, 255, 255, 0) 7%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 22%, transparent 80%, rgba(0, 0, 0, .12));
}
.jk::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(201, 174, 124, .22); border-radius: inherit; }

.jk-type {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 15cqi 11cqi 13cqi; text-align: center; color: var(--sand-lt);
}
.jk-type::before {
  content: ''; position: absolute; inset: 5.5cqi; pointer-events: none;
  border: 1px solid rgba(201, 174, 124, .34);
  outline: 1px solid rgba(201, 174, 124, .14); outline-offset: -2.8cqi;
}
.jk-cat {
  position: relative; font-family: var(--util); font-weight: 400; font-size: max(5px, 5.2cqi); line-height: 1.3;
  letter-spacing: .22em; text-transform: uppercase; opacity: .72; max-width: 100%;
}
.jk-orn {
  position: relative; width: 26cqi; height: 1px; margin-top: -4cqi;
  background: linear-gradient(90deg, transparent, rgba(201, 174, 124, .7), transparent);
}
.jk-orn::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 3cqi; height: 3cqi; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--sand); box-shadow: 0 0 0 1.2cqi var(--cl-a, #0F2E1C);
}
.jk-title {
  position: relative; font-family: var(--display); font-weight: 400; font-size: max(6px, 10.2cqi); line-height: 1.22;
  letter-spacing: .02em; max-width: 100%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; overflow-wrap: break-word; hyphens: auto;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.jk-author {
  position: relative; font-family: var(--util); font-weight: 400; font-size: max(5px, 5.4cqi); line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; opacity: .7; max-width: 100%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.jk--other .jk-type { color: var(--ink); }
.jk--other .jk-type::before { border-color: rgba(6, 6, 6, .3); outline-color: rgba(6, 6, 6, .12); }
.jk--other .jk-orn { background: linear-gradient(90deg, transparent, rgba(6, 6, 6, .5), transparent); }
.jk--other .jk-orn::after { background: var(--ink); }

/* =============================================================
   THE GOLDEN PLUS — refines .gold-plus from base.css
   ============================================================= */
.gold-plus {
  --s: 38px;
  isolation: isolate; padding: 0; overflow: visible;
  color: var(--gold-4);
  background:
    radial-gradient(circle at 34% 26%, var(--gold-hi) 0 10%, rgba(255, 241, 196, 0) 36%),
    radial-gradient(circle at 50% 118%, rgba(110, 71, 16, .55), rgba(110, 71, 16, 0) 55%),
    radial-gradient(circle at 50% 58%, var(--gold-1), var(--gold-2) 56%, var(--gold-3) 100%);
  box-shadow:
    0 0 0 1px rgba(110, 71, 16, .6),
    0 1px 0 1.5px rgba(255, 236, 180, .35),
    0 5px 12px -2px rgba(40, 24, 4, .45),
    0 0 16px rgba(255, 214, 120, .35),
    inset 0 -3px 5px rgba(110, 71, 16, .42),
    inset 0 2px 2px rgba(255, 250, 225, .75);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease), filter .2s;
}
.gold-plus::before {             /* the milled rim */
  content: ''; position: absolute; inset: 2px; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 205, .5), inset 0 0 0 2.5px rgba(169, 114, 28, .25);
}
.gold-plus:hover {
  transform: translateY(-2px) scale(1.07);
  box-shadow:
    0 0 0 1px rgba(110, 71, 16, .65),
    0 1px 0 1.5px rgba(255, 236, 180, .45),
    0 10px 20px -4px rgba(40, 24, 4, .5),
    0 0 26px rgba(255, 214, 120, .6),
    inset 0 -3px 5px rgba(110, 71, 16, .42),
    inset 0 2px 2px rgba(255, 250, 225, .8);
}
.gold-plus:active { transform: translateY(0) scale(.95); filter: brightness(.97); transition-duration: .08s; }
.gp-face { position: relative; width: 56%; height: 56%; display: grid; place-items: center; }
.gp-g { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 246, 214, .7)); transition: transform .35s var(--ease-out), opacity .2s var(--ease); }
.gp-g--plus { stroke-width: 2.6; }
.gp-g--check { stroke-width: 2.8; opacity: 0; transform: scale(.4) rotate(-20deg); color: var(--green-deep); }
.gold-plus.added .gp-g--plus { opacity: 0; transform: scale(.4) rotate(90deg); }
.gold-plus.added .gp-g--check { opacity: 1; transform: none; }
.gold-plus.added { box-shadow:
    0 0 0 1px rgba(110, 71, 16, .7),
    0 0 0 3px rgba(5, 19, 12, .0),
    0 3px 8px -2px rgba(40, 24, 4, .45),
    0 0 18px rgba(255, 214, 120, .45),
    inset 0 2px 5px rgba(110, 71, 16, .45),
    inset 0 -1px 2px rgba(255, 250, 225, .6); }
.gold-plus.owned .gp-g--plus { opacity: .55; }
.gold-plus.is-pop { animation: gp-pop .55s var(--ease-out); }
@keyframes gp-pop { 0% { transform: scale(1); } 30% { transform: scale(.86); } 62% { transform: scale(1.16); } 100% { transform: scale(1); } }
.gp-price {
  position: absolute; top: -7px; right: -12px; z-index: 2; pointer-events: none;
  font-family: var(--util); font-weight: 500; font-size: 9.5px; line-height: 1; letter-spacing: .04em;
  padding: 3px 5px 3px; border-radius: 999px;
  background: linear-gradient(180deg, #123A25, var(--green-deep)); color: var(--gold-1);
  box-shadow: 0 0 0 1px rgba(201, 174, 124, .55), 0 2px 5px rgba(0, 0, 0, .35);
}
.gp-price[hidden] { display: none; }
.gold-plus.added .gp-price { opacity: 0; transform: scale(.6); transition: .2s; }
/* the burst */
.gp-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.gp-burst i {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFBEA 0 30%, var(--gold-1) 50%, var(--gold-2) 80%);
  box-shadow: 0 0 0 1px rgba(110, 71, 16, .45), 0 0 8px 1px rgba(255, 206, 100, .85);
  animation: gp-spark .75s cubic-bezier(.15, .75, .3, 1) var(--d, 0ms) both;
}
.gp-burst i:nth-child(even) { width: 4px; height: 4px; left: -2px; top: -2px; box-shadow: 0 0 6px 1px rgba(255, 214, 120, .9); }
.gp-burst b {
  position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%;
  border: 2.5px solid rgba(255, 222, 140, .95); box-shadow: 0 0 12px rgba(255, 206, 100, .8), inset 0 0 8px rgba(255, 206, 100, .6);
  animation: gp-ring .65s var(--ease-out) both;
}
@keyframes gp-spark {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  12%  { opacity: 1; }
  55%  { transform: translate(calc(var(--dx) * .8), calc(var(--dy) * .8)) scale(.95); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; }
}
@keyframes gp-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* =============================================================
   BOOK CARDS
   ============================================================= */
.bk { position: relative; display: flex; flex-direction: column; width: var(--bk-w, 100%); min-width: 0; color: var(--k-ink); }
.bk-top { position: relative; padding-right: 17px; }
.bk--podium .bk-top { padding-right: 14px; }
.bk-plate {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; background: none; cursor: pointer; text-align: left;
  border-radius: 2px 4px 4px 2px;
  transition: transform .32s var(--ease-out);
}
.bk-plate .jk {
  box-shadow: 0 1px 1px rgba(30, 18, 4, .25), 0 10px 22px -8px rgba(40, 26, 8, .55), 0 2px 5px -1px rgba(40, 26, 8, .2);
  transition: box-shadow .32s var(--ease);
}
.bk-plate:hover, .bk-plate:focus-visible { transform: translateY(-6px); }
.bk-plate:hover .jk, .bk-plate:focus-visible .jk { box-shadow: 0 1px 1px rgba(30, 18, 4, .2), 0 22px 34px -12px rgba(40, 26, 8, .6), 0 4px 10px -2px rgba(40, 26, 8, .25); }
.bk-plate:focus-visible { outline: 2px solid var(--k-acc); outline-offset: 4px; }
/* "Read free" rises on hover */
.bk-plate::after {
  content: 'Read free'; position: absolute; left: 10%; right: 10%; bottom: 8px; z-index: 5; pointer-events: none;
  padding: 6px 4px 5px; border-radius: 999px; text-align: center;
  font-family: var(--util); font-weight: 400; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand-lt);
  background: rgba(5, 19, 12, .84); box-shadow: 0 0 0 1px rgba(201, 174, 124, .4), 0 4px 12px rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
.bk--audio .bk-plate::after { content: 'Listen free'; }
.bk-plate:hover::after, .bk-plate:focus-visible::after { opacity: 1; transform: none; }
.bk--podium .bk-plate::after { font-size: 8px; letter-spacing: .2em; bottom: 6px; left: 6%; right: 6%; }

.bk-flag { position: absolute; z-index: 4; pointer-events: none; }
/* audiobooks: square album art on a square board */
.bk--audio .jk, .bk--audio.bk--skel .bk-plate { aspect-ratio: 1 / 1; }
.bk--audio .jk-type { padding: 11cqi 10cqi 10cqi; }
.bk--audio .jk-title { -webkit-line-clamp: 4; }
.bk-flag--audio {
  left: 6px; bottom: 6px; transition: opacity .25s; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 999px;
  font-family: var(--util); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-lt);
  background: rgba(5, 19, 12, .86); box-shadow: 0 0 0 1px rgba(201, 174, 124, .45), 0 2px 6px rgba(0, 0, 0, .3);
}
.bk-flag--audio svg { width: 11px; height: 11px; stroke-width: 1.7; color: var(--gold-1); }
.bk-flag--house {
  left: 7px; bottom: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #123A25, var(--green-deep)); box-shadow: 0 0 0 1px rgba(201, 174, 124, .6), 0 2px 5px rgba(0, 0, 0, .4);
  opacity: .92; transition: opacity .25s;
}
.bk-flag--house img { width: 13px; height: 15px; object-fit: contain; }
.bk-plate:hover .bk-flag--house, .bk-plate:has(.jk.is-loaded) .bk-flag--house, .bk-plate:hover .bk-flag--audio { opacity: 0; }
.bk-flag--owned {
  left: 0; top: 10px; padding: 3px 8px 3px 7px; border-radius: 0 999px 999px 0;
  font-family: var(--util); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-deep);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}

/* the rail: the plus, and under it the two rating bubbles, hung on the jacket's edge */
.bk-rail {
  position: absolute; top: -9px; right: 0; width: 38px; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.bk--podium .bk-rail { width: 32px; gap: 6px; top: -8px; }

.bk-meta { padding: 13px 4px 0 1px; min-width: 0; }
.bk-title {
  margin: 0; font-family: var(--display); font-weight: 500; font-size: 13px; line-height: 1.32; letter-spacing: .015em; color: var(--k-ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: break-word;
}
.bk-title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.bk:hover .bk-title a { background-size: 100% 1px; }
.bk-author {
  margin: 5px 0 0; font-family: var(--util); font-weight: 400; font-size: 9.5px; line-height: 1.45; letter-spacing: .14em; text-transform: uppercase;
  color: var(--k-ink-3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.bk-dot { margin: 0 .5em; opacity: .6; }
.bk-year { white-space: nowrap; }
.bk-fmt {
  margin: 7px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--util); font-weight: 500; font-size: 9px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--k-ink-2);
}
.bk-dl.is-paid { color: var(--k-acc); }
.bk-src { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; color: var(--k-ink-3); white-space: nowrap; }
.bk-src i { width: 6px; height: 6px; border-radius: 50%; background: var(--src, var(--k-ink-3)); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.bk-src--athanasius  { --src: #B8892E; }
.bk-src--gutenberg   { --src: #8C3B2A; }
.bk-src--archive     { --src: #2E5A73; }
.bk-src--openlibrary { --src: #3F6B3A; }
.bk-src--librivox    { --src: #6D4A86; }
.bk-src--loeb        { --src: #12482B; }
.bk--podium .bk-meta { padding-top: 11px; }
.bk--podium .bk-title { font-size: 12px; }
.bk--podium .bk-author { font-size: 9px; letter-spacing: .12em; }
.bk--podium .bk-fmt { font-size: 8.5px; }

/* skeletons */
.sk { position: relative; overflow: hidden; background: var(--k-sk); border-radius: 3px; }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--k-hi) 50%, transparent 80%);
  transform: translateX(-100%); animation: sk-shimmer 1.5s var(--ease) infinite;
}
@keyframes sk-shimmer { to { transform: translateX(100%); } }
.bk--skel .bk-plate { aspect-ratio: 2 / 3; cursor: default; box-shadow: inset 0 0 0 1px var(--k-line); }
.bk--skel .bk-plate::before { content: ''; position: absolute; inset: 9%; border: 1px solid var(--k-line); border-radius: 2px; }
.bk--skel .bk-plate::after { display: none; }
.bk--skel .bk-plate:hover { transform: none; }
.sk-line { height: 10px; margin: 14px 0 0; width: 86%; border-radius: 999px; }
.sk-line--s { width: 52%; margin-top: 8px; height: 8px; }

/* =============================================================
   RATINGS — bubbles, cards, popover, block and aside
   ============================================================= */
.rt-bubbles { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rt-bub {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 20px; min-width: 42px; padding: 0 6px 0 5px; border-radius: 999px; cursor: pointer;
  font-family: var(--util); font-weight: 500; font-size: 9.5px; line-height: 1; letter-spacing: .03em; white-space: nowrap;
  background: linear-gradient(180deg, #FFFBF0, #F3E8CF); border: 1px solid;
  box-shadow: 0 2px 6px -1px rgba(30, 18, 4, .4), inset 0 1px 0 #fff;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease);
}
.rt-bub:hover { transform: translateY(-1px) scale(1.07); box-shadow: 0 5px 10px -2px rgba(30, 18, 4, .45), inset 0 1px 0 #fff; }
.rt-bub[aria-expanded="true"] { transform: scale(1.05); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 0 3.5px currentColor, 0 4px 10px rgba(30, 18, 4, .4); }
.rt-bub-m { font-family: var(--display); font-weight: 700; font-size: 8px; opacity: .6; margin-right: 1px; }
.rt-bub-star { color: var(--gold-3); font-size: 9px; margin-right: 1px; }
.rt-bub--delibris { color: var(--rate-delibris); border-color: rgba(122, 46, 34, .42); }
.rt-bub--delibris.is-rec {
  background: linear-gradient(180deg, #FFF3CF, #EFD595); border-color: rgba(169, 114, 28, .8);
  box-shadow: 0 2px 6px -1px rgba(30, 18, 4, .4), inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 8px rgba(255, 214, 120, .45);
}
.rt-bub--family { color: var(--rate-family); border-color: rgba(31, 95, 139, .42); }
.rt-bubbles--compact .rt-bub { height: 18px; min-width: 37px; font-size: 9px; padding: 0 5px 0 4px; }
.rt-bubbles--compact .rt-bub-m { font-size: 7px; }

/* the expanded card (light by default: detail sheet, store popover) */
.rt-card { color: var(--store-ink); font-family: var(--body); }
.rt-card-h { display: flex; align-items: center; gap: 9px; }
.rt-mono {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 700; font-size: 11px; color: #FBEFD6;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .15);
}
.rt-card--delibris .rt-mono { background: radial-gradient(circle at 40% 30%, #9A4234, var(--rate-delibris)); }
.rt-card--family .rt-mono { background: radial-gradient(circle at 40% 30%, #2E78AB, var(--rate-family)); }
.rt-card-name { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.rt-sample {
  margin-left: auto; font-family: var(--util); font-weight: 400; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 3px 7px 2px; border-radius: 999px; border: 1px dashed currentColor; opacity: .55; white-space: nowrap;
}
.rt-card-stars { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.rt-card-num { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1; }
.rt-stars { position: relative; display: inline-block; line-height: 1; letter-spacing: .08em; white-space: nowrap; font-family: var(--body); }
.rt-stars-base { color: color-mix(in srgb, currentColor 22%, transparent); }
.rt-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--star); text-shadow: 0 0 8px rgba(230, 182, 83, .35); }
.rt-stars--lg { font-size: 22px; }
.rt-rec {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 2px; padding: 3px 11px 3px 4px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 234, 170, .5), rgba(230, 182, 83, .22)); border: 1px solid rgba(169, 114, 28, .45);
}
.rt-seal { display: grid; place-items: center; font-size: 19px; color: var(--gold-3); filter: drop-shadow(0 1px 1px rgba(110, 71, 16, .35)); }
.rt-rec-t { font-family: var(--util); font-weight: 500; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #7A4E0E; }
.rt-blurb { margin: 10px 0 0; font-style: italic; font-size: 16.5px; line-height: 1.42; }
.rt-age-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.rt-age {
  min-width: 46px; height: 32px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #2B74A6, var(--rate-family)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.rt-age--sm { min-width: 34px; height: 22px; font-size: 11px; border-radius: 5px; padding: 0 5px; }
.rt-age-line { font-style: italic; font-size: 16px; line-height: 1.3; }
.rt-sub { margin: 12px 0 4px; font-family: var(--util); font-weight: 500; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; opacity: .62; }
.rt-notes { margin: 0; padding-left: 17px; font-size: 15.5px; line-height: 1.38; }
.rt-notes li { margin: 3px 0; padding-left: 2px; }
.rt-notes li::marker { content: '◆  '; font-size: 8px; color: var(--rate-family); }
.rt-themes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.rt-theme {
  font-family: var(--util); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px 3px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent); background: color-mix(in srgb, currentColor 5%, transparent);
}

/* the floating popover */
.rt-pop {
  position: fixed; z-index: 45; width: 312px; max-width: calc(100vw - 24px); pointer-events: auto;
  padding: 16px 18px 17px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 42, 28, .95), rgba(5, 19, 12, .96));
  border: 1px solid rgba(201, 174, 124, .42);
  box-shadow: 0 24px 60px rgba(2, 8, 5, .5), inset 0 1px 0 rgba(255, 241, 196, .08);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; transform: translateY(6px) scale(.97); transform-origin: var(--arrow-x, 50%) 0;
  transition: opacity .2s var(--ease), transform .3s var(--ease-out);
}
.rt-pop.is-above { transform-origin: var(--arrow-x, 50%) 100%; transform: translateY(-6px) scale(.97); }
.rt-pop.is-open { opacity: 1; transform: none; }
.rt-pop:focus { outline: none; }                /* it takes focus from the keyboard; its link shows the ring */
.rt-pop.is-closing { opacity: 0; transform: scale(.98); }
.rt-pop::before {
  content: ''; position: absolute; left: var(--arrow-x, 50%); width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg);
  background: rgb(13, 40, 26); border: 1px solid rgba(201, 174, 124, .42);
}
.rt-pop.is-below::before { top: -7px; border-right: 0; border-bottom: 0; }
.rt-pop.is-above::before { bottom: -7px; border-left: 0; border-top: 0; background: rgb(5, 19, 12); }
.rt-pop .rt-card { color: var(--paper); }
.rt-pop .rt-card-name { color: var(--sand-lt); }
.rt-pop .rt-rec { background: linear-gradient(180deg, rgba(255, 227, 154, .16), rgba(230, 182, 83, .08)); border-color: rgba(230, 182, 83, .45); }
.rt-pop .rt-rec-t { color: var(--gold-1); }
.rt-pop .rt-seal { color: var(--gold-2); }
.rt-pop .rt-notes li::marker { color: #7FB6DB; }
.rt-pop--store {
  background: linear-gradient(180deg, #FFFBF1, #F6ECD6); border-color: rgba(10, 36, 22, .2);
  box-shadow: 0 24px 60px -10px rgba(60, 40, 10, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.rt-pop--store::before { background: #FFFBF1; border-color: rgba(10, 36, 22, .2); }
.rt-pop--store.is-above::before { background: #F6ECD6; }
.rt-pop--store .rt-card { color: var(--store-ink); }
.rt-pop--store .rt-card-name { color: var(--store-ink); }
.rt-pop--store .rt-rec { background: linear-gradient(180deg, rgba(255, 234, 170, .5), rgba(230, 182, 83, .22)); border-color: rgba(169, 114, 28, .45); }
.rt-pop--store .rt-rec-t { color: #7A4E0E; }
.rt-pop--store .rt-seal { color: var(--gold-3); }
.rt-pop--store .rt-notes li::marker { color: var(--rate-family); }

/* live ratings: DeLibris.org records, or the SYNTHETIC fixture ("Test data").
   Sample ratings keep the look above untouched. */
.rt-bub-seal { display: inline-grid; place-items: center; margin-left: 1px; font-size: 11px; line-height: 0; color: var(--gold-3); filter: drop-shadow(0 .5px .5px rgba(110, 71, 16, .35)); }
.rt-bubbles--compact .rt-bub-seal { font-size: 10px; }
.rt-bub--family.rt-bub--live .rt-bub-v { letter-spacing: .05em; }
.rt-sample--test { opacity: .72; border-style: dotted; }
.rt-src {
  margin-left: auto; font-family: var(--util); font-weight: 400; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: inherit; text-decoration: none; opacity: .7; padding-bottom: 1px; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
a.rt-src:hover { opacity: 1; border-bottom-color: currentColor; }
.rt-card-cap { margin-left: auto; font-family: var(--util); font-weight: 500; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .62; }
.rt-card--live .rt-rec { margin-bottom: 4px; }
.rt-scales { display: grid; gap: 6px; margin: 12px 0 2px; }
.rt-scale { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 10px; }
.rt-scale-k, .rt-moral-k { font-family: var(--util); font-weight: 500; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.rt-scale-n, .rt-moral-n { font-family: var(--display); font-weight: 600; font-size: 12px; text-align: right; opacity: .85; white-space: nowrap; }
.rt-dots { display: inline-flex; gap: 4px; }
.rt-dots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, currentColor 15%, transparent); }
.rt-dots i.on { background: var(--star); box-shadow: 0 0 5px rgba(230, 182, 83, .4); }
.rt-moral { --rt-moral: #3F7D52; margin-top: 12px; padding-top: 11px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.rt-moral[data-level="4"], .rt-moral[data-level="3"] { --rt-moral: #B07A22; }
.rt-moral[data-level="2"], .rt-moral[data-level="1"] { --rt-moral: #A33A2A; }
.rt-moral-h { display: flex; align-items: center; gap: 9px; }
.rt-moral-k { flex: 1; }
.rt-pips { display: inline-flex; gap: 3px; }
.rt-pips i { width: 9px; height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 15%, transparent); }
.rt-pips i.on { background: var(--rt-moral); }
.rt-moral-t { margin: 6px 0 0; font-style: italic; font-size: 15.5px; line-height: 1.36; }
/* the four content scales, each a 4-step meter: None · Mild · Moderate · Strong */
.rt-content { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rt-crow { display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 10px; font-size: 15px; line-height: 1.22; }
.rt-crow-v { font-family: var(--util); font-weight: 500; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.rt-meter { --rt-meter: #5E8C66; display: inline-flex; gap: 2px; }
.rt-meter[data-level="1"] { --rt-meter: #C99632; }
.rt-meter[data-level="2"] { --rt-meter: #C0672A; }
.rt-meter[data-level="3"] { --rt-meter: #A33A2A; }
.rt-meter i { width: 9px; height: 5px; border-radius: 1.5px; background: color-mix(in srgb, currentColor 15%, transparent); }
.rt-meter i.on { background: var(--rt-meter); }
.rt-age--text { min-width: 0; padding: 0 10px; font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; }
/* the audience is free text (§2): a long one wraps inside its pill, and the
   type and year drop below it, instead of running out of the card */
.rt-card--live .rt-age-row { flex-wrap: wrap; row-gap: 6px; }
.rt-card--live .rt-age--text { max-width: 100%; height: auto; min-height: 32px; padding: 5px 10px; white-space: normal; line-height: 1.2; text-align: center; }
.rt-card--live .rt-age-line { min-width: 0; }
.rt-card--live .rt-themes { margin-top: 11px; }
.rt-link {
  display: inline-block; margin-top: 14px; padding-bottom: 2px; text-decoration: none; white-space: nowrap;
  font-family: var(--util); font-weight: 500; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rate-delibris); border-bottom: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  transition: border-color .2s var(--ease);
}
.rt-link:hover, .rt-link:focus-visible { border-bottom-color: currentColor; }
.rt-card--family .rt-link { color: var(--rate-family); }
/* …on the dark glass of the Basilica */
.rt-pop .rt-link { color: var(--gold-1); }
.rt-pop .rt-dots i.on { box-shadow: 0 0 6px rgba(255, 214, 120, .35); }
.rt-pop .rt-moral { --rt-moral: #86C08F; }
.rt-pop .rt-moral[data-level="4"], .rt-pop .rt-moral[data-level="3"] { --rt-moral: var(--gold-2); }
.rt-pop .rt-moral[data-level="2"], .rt-pop .rt-moral[data-level="1"] { --rt-moral: #E07A62; }
.rt-pop .rt-meter { --rt-meter: #8DB894; }
.rt-pop .rt-meter[data-level="1"] { --rt-meter: var(--gold-2); }
.rt-pop .rt-meter[data-level="2"] { --rt-meter: #E39A4F; }
.rt-pop .rt-meter[data-level="3"] { --rt-meter: #E07A62; }
/* …and back to the store's paper */
.rt-pop--store .rt-link { color: var(--rate-delibris); }
.rt-pop--store .rt-card--family .rt-link { color: var(--rate-family); }
.rt-pop--store .rt-dots i.on { box-shadow: 0 0 5px rgba(230, 182, 83, .4); }
.rt-pop--store .rt-moral { --rt-moral: #3F7D52; }
.rt-pop--store .rt-moral[data-level="4"], .rt-pop--store .rt-moral[data-level="3"] { --rt-moral: #B07A22; }
.rt-pop--store .rt-moral[data-level="2"], .rt-pop--store .rt-moral[data-level="1"] { --rt-moral: #A33A2A; }
.rt-pop--store .rt-meter { --rt-meter: #5E8C66; }
.rt-pop--store .rt-meter[data-level="1"] { --rt-meter: #C99632; }
.rt-pop--store .rt-meter[data-level="2"] { --rt-meter: #C0672A; }
.rt-pop--store .rt-meter[data-level="3"] { --rt-meter: #A33A2A; }
.rt-block-note a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }

/* the detail sheet's block */
.rt-block { margin-top: 34px; }
.rt-block-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rt-block-t { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink); }
.rt-block-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--k-line-2), transparent); }
.rt-block-note { font-family: var(--util); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--k-ink-3); }
.rt-block-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rt-block-cards .rt-card {
  padding: 16px 18px 18px; border-radius: 14px; background: rgba(255, 252, 244, .72); border: 1px solid var(--k-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 22px -14px rgba(60, 40, 10, .4);
}

/* the reader's margin: quiet until you look at it */
.rt-aside {
  width: 100%; max-width: 220px; font-family: var(--body); font-size: 14.5px; line-height: 1.4; color: inherit;
  opacity: .55; transition: opacity .35s var(--ease);
}
.rt-aside:hover, .rt-aside:focus-within { opacity: .9; }
.rt-aside-k { font-family: var(--util); font-weight: 500; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 7px; }
.rt-aside-stars { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.rt-aside-num { font-family: var(--display); font-size: 13px; }
.rt-aside .rt-rec { margin-top: 8px; padding: 2px 9px 2px 3px; background: none; border-color: color-mix(in srgb, var(--star) 55%, transparent); }
.rt-aside .rt-rec-t { color: inherit; font-size: 8.5px; }
.rt-aside .rt-seal { font-size: 16px; color: var(--star); }
.rt-aside-blurb { margin: 8px 0 0; font-style: italic; font-size: 14.5px; }
.rt-aside-rule { height: 1px; margin: 16px 0; background: currentColor; opacity: .18; }
.rt-aside-age { display: flex; align-items: center; gap: 8px; font-style: italic; }
.rt-aside-notes { margin: 8px 0 0; padding-left: 14px; font-size: 13.5px; }
.rt-aside-notes li { margin: 2px 0; }
.rt-aside-themes { margin-top: 8px; font-family: var(--util); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.rt-aside-foot { margin-top: 16px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, currentColor 30%, transparent);
  font-family: var(--util); font-size: 8px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }

/* =============================================================
   ROWS, GRIDS AND STATES (shared by the podium and the store)
   ============================================================= */
.row--store, .row--podium { position: relative; min-width: 0; }
.row-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; padding-right: 2px; }
.row-eyebrow { flex: 0 0 100%; font-family: var(--util); font-weight: 400; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--k-ink-3); }
.row-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); line-height: 1.25; }
.row-rule { flex: 1 1 40px; align-self: center; height: 1px; min-width: 24px; background: linear-gradient(90deg, var(--k-line-2), transparent); transform: translateY(2px); }
.row-n { font-family: var(--util); font-size: 10px; letter-spacing: .14em; color: var(--k-ink-3); }
.row-n:empty { display: none; }
.row-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--util); font-weight: 500; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--k-ink-2);
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.row-more .ic { display: inline-grid; transition: transform .25s var(--ease-out); }
.row-more svg { width: 13px; height: 13px; }
.row-more:hover { color: var(--k-ink); border-bottom-color: var(--k-line-2); }
.row-more:hover .ic { transform: translateX(3px); }
.row-wrap { position: relative; }
.row-track {
  display: flex; gap: 26px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding: 0 4px; scrollbar-width: none;
  padding: 22px 4px 14px; margin-top: -6px;   /* headroom for the plus and its burst */
  --fl: 0px; --fr: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
}
.row-track::-webkit-scrollbar { display: none; }
.row:not(.at-start) .row-track { --fl: 44px; }
.row.at-end .row-track { --fr: 0px; }
.row-cell { flex: 0 0 var(--cell, 170px); scroll-snap-align: start; min-width: 0; }
.row-empty { margin: 8px 0; font-style: italic; font-size: 17px; color: var(--k-ink-3); }
.row.is-hidden { display: none; }
.row-arrow {
  position: absolute; top: calc(16px + var(--cell, 170px) * .75); z-index: 8; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--k-ink);
  background: linear-gradient(180deg, #FFFBF1, #F1E5C9); border: 1px solid var(--k-line-2);
  box-shadow: 0 8px 20px -6px rgba(40, 26, 8, .45), inset 0 1px 0 #fff;
  opacity: 0; transform: scale(.9); transition: opacity .25s var(--ease), transform .25s var(--ease-out);
}
.row-arrow svg { width: 17px; height: 17px; stroke-width: 1.7; }
.row-arrow--l { left: -14px; }
.row-arrow--r { right: -14px; }
.row-wrap:hover .row-arrow { opacity: 1; transform: none; }
.row.at-start .row-arrow--l, .row.at-end .row-arrow--r, .row.is-empty .row-arrow, .row.is-error .row-arrow { opacity: 0 !important; pointer-events: none; }
.row-arrow:hover { background: var(--k-ink); color: var(--sand-lt); border-color: transparent; }

.grid--store, .grid--podium { display: grid; min-width: 0; }
.grid--store { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 44px 30px; padding-top: 12px; }
.grid-cell { min-width: 0; }

.state {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 20px 40px; color: var(--k-ink);
}
.state-glyph {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--k-ink-2); border: 1px solid var(--k-line-2);
  background: radial-gradient(circle at 50% 35%, var(--k-hi), transparent 70%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--k-line) 40%, transparent);
}
.state-glyph svg { width: 24px; height: 24px; stroke-width: 1.2; }
.state-t { margin: 0; font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .06em; line-height: 1.3; max-width: 34ch; }
.state-t em { font-family: var(--body); font-size: 1.18em; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; }
.state-s { margin: 8px 0 0; font-style: italic; font-size: 18px; color: var(--k-ink-2); max-width: 42ch; }
.state-btn, .br-more {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px 11px; border-radius: 999px; cursor: pointer;
  font-family: var(--util); font-weight: 500; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand-lt); background: linear-gradient(180deg, var(--green-mid), var(--green-panel) 60%, var(--green-deep));
  border: 1px solid rgba(5, 19, 12, .6); box-shadow: 0 8px 22px -10px rgba(5, 19, 12, .6), inset 0 1px 0 rgba(232, 211, 160, .22);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.state-btn:hover, .br-more:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(5, 19, 12, .7), inset 0 1px 0 rgba(232, 211, 160, .3); }
.br-more { display: flex; margin: 34px auto 8px; }
.br-more[hidden] { display: none; }
.br-sentinel { height: 1px; }
.linkish { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--k-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* =============================================================
   THE BROWSER
   ============================================================= */
.br { position: relative; display: flex; flex-direction: column; min-height: 0; height: 100%; color: var(--k-ink); }
.br-gutter { display: none; }
.br-titles { min-width: 0; }
.br-eyebrow { display: block; font-family: var(--util); font-weight: 400; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--k-ink-3); }
.br-name { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; }
.br-blurb { margin: 6px 0 0; font-style: italic; font-size: 19px; line-height: 1.35; color: var(--k-ink-2); }
.br-search {
  position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 17px; border-radius: 999px;
  background: rgba(255, 252, 243, .78); border: 1px solid var(--k-line-2);
  box-shadow: inset 0 1px 3px rgba(60, 40, 10, .14), 0 1px 0 rgba(255, 255, 255, .7);
  transition: border-color .2s, box-shadow .2s;
}
.br-search:focus-within { border-color: var(--k-acc); box-shadow: inset 0 1px 3px rgba(60, 40, 10, .14), 0 0 0 4px color-mix(in srgb, var(--k-acc) 16%, transparent); }
.br-search-ic { display: grid; place-items: center; color: var(--k-ink-3); }
.br-search-ic svg { width: 18px; height: 18px; }
.br-input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; padding: 0;
  font-family: var(--body); font-size: 20px; color: var(--k-ink);
}
.br-input::placeholder { color: var(--k-ink-3); font-style: italic; opacity: .85; }
.br-input::-webkit-search-cancel-button, .st-input::-webkit-search-cancel-button, .st-bar-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.br-clear {
  width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--k-ink-2); background: color-mix(in srgb, var(--k-ink) 8%, transparent); transition: background .2s;
}
.br-clear svg { width: 14px; height: 14px; }
.br-clear:hover { background: color-mix(in srgb, var(--k-ink) 16%, transparent); }
.br-try { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 10px 4px 0 18px; font-size: 16px; color: var(--k-ink-3); }
.br-try-k { font-family: var(--util); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; }
.br-try button { border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--body); font-style: italic; font-size: 17px; color: var(--k-ink-2);
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.br-try button:hover { color: var(--k-ink); border-bottom-color: var(--k-line-2); }
.br.has-query .br-try { visibility: hidden; }
.br-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--k-line-2) transparent; }
.br-shelves { display: grid; gap: 30px; }
.br-results-head { grid-column: 1 / -1; }
.br-status { margin: 0; font-family: var(--util); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--k-ink-3); min-height: 1.4em; }
.br-status em { font-family: var(--body); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--k-ink); }
.br-count { font-family: var(--display); font-size: 15px; letter-spacing: .06em; color: var(--k-ink); }
.br-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.br-sug {
  padding: 5px 15px 6px; border-radius: 999px; cursor: pointer; font-family: var(--body); font-style: italic; font-size: 17px; color: var(--k-ink);
  background: color-mix(in srgb, var(--k-hi) 70%, transparent); border: 1px solid var(--k-line-2); transition: background .2s, color .2s;
}
.br-sug:hover { background: var(--k-ink); color: var(--paper); }
.br-reader-slot { position: absolute; inset: 0; z-index: 10; background: inherit; }

/* ---- the podium: a two-page spread, sepia ink on parchment ---- */
.br--podium {
  --k-ink: #2A1C10; --k-ink-2: #5A4128; --k-ink-3: #86694A;
  --k-line: rgba(110, 74, 30, .2); --k-line-2: rgba(110, 74, 30, .38);
  --k-acc: #8C5A2B; --k-sk: rgba(120, 84, 34, .15); --k-hi: rgba(255, 250, 232, .75);
  --gut: 72px;               /* the fold between the pages */
  container-type: inline-size;
}
.br--podium .br-head {
  flex: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gut); align-items: end;
  padding: 2px 6px 18px; margin-bottom: 4px;
  background:
    linear-gradient(90deg, transparent, var(--k-line-2) 12%, var(--k-line-2) 88%, transparent) left bottom / calc(50% - var(--gut) / 2) 1px no-repeat,
    linear-gradient(90deg, transparent, var(--k-line-2) 12%, var(--k-line-2) 88%, transparent) right bottom / calc(50% - var(--gut) / 2) 1px no-repeat;
}
.br--podium .br-name { display: none; }
.br--podium .br-blurb { font-size: 21px; margin-top: 8px; max-width: 34ch; }
.br--podium .br-search-col { align-self: end; }
.br--podium .br-body { padding: 10px 6px 28px; scrollbar-color: rgba(120, 84, 34, .45) transparent; }
.br--podium .br-shelves { grid-template-columns: 1fr 1fr; column-gap: var(--gut); row-gap: 30px; }
.br--podium .row-cell { --cell: calc(((100cqi - var(--gut) - 12px) / 2 - 3 * 18px) / 3.3); }
.br--podium .row-track { gap: 18px; padding: 14px 2px 10px; --fr: 36px; }
.br--podium .row:not(.at-start) .row-track { --fl: 30px; }
.br--podium .row-title { font-size: 12.5px; letter-spacing: .18em; }
.br--podium .row-arrow { width: 34px; height: 34px; margin-top: -17px; }
.br--podium .row-arrow--l { left: -8px; }
.br--podium .row-arrow--r { right: -8px; }
.br--podium .row-arrow { background: linear-gradient(180deg, #FFF8E6, #EEDDB8); }
.br--podium .row-arrow:hover { color: #F6E7C8; }
.br--podium .br-results-head { padding: 6px 0 0; }
/* results: three books a page, never across the fold */
.grid--podium { column-gap: 18px; row-gap: 30px; padding-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)) calc(var(--gut) - 36px) repeat(3, minmax(0, 1fr)); }
.grid--podium > :nth-child(6n + 1) { grid-column: 1; }
.grid--podium > :nth-child(6n + 2) { grid-column: 2; }
.grid--podium > :nth-child(6n + 3) { grid-column: 3; }
.grid--podium > :nth-child(6n + 4) { grid-column: 5; }
.grid--podium > :nth-child(6n + 5) { grid-column: 6; }
.grid--podium > :nth-child(6n + 6) { grid-column: 7; }
.grid--podium > .state { grid-column: 1 / -1; }
@container (max-width: 860px) {
  .grid--podium { grid-template-columns: repeat(2, minmax(0, 1fr)) calc(var(--gut) - 36px) repeat(2, minmax(0, 1fr)); }
  .grid--podium > :nth-child(n) { grid-column: auto; }
  .grid--podium > :nth-child(4n + 1) { grid-column: 1; }
  .grid--podium > :nth-child(4n + 2) { grid-column: 2; }
  .grid--podium > :nth-child(4n + 3) { grid-column: 4; }
  .grid--podium > :nth-child(4n + 4) { grid-column: 5; }
  .br--podium .row-cell { --cell: calc(((100cqi - var(--gut) - 12px) / 2 - 2 * 18px) / 2.3); }
}
@container (max-width: 560px) {
  .br--podium .br-head, .br--podium .br-shelves { grid-template-columns: 1fr; }
  .grid--podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--podium > :nth-child(n) { grid-column: auto; }
  .br--podium .row-cell { --cell: calc(100cqi / 3 - 20px); }
}
.br--podium .state { padding-top: 30px; }
.br--podium .state-btn, .br--podium .br-more { background: linear-gradient(180deg, #5A3A1C, #3A2410 60%, #2A1C10); border-color: rgba(42, 28, 16, .6); color: #F6E7C8; }
.br--podium.is-reading > :not(.br-reader-slot) { visibility: hidden; }

/* ---- the browser full page (layout 'store') ---- */
.br--store .br-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 0 22px; border-bottom: 1px solid var(--k-line); }
.br--store .br-search { width: min(460px, 50%); }
.br--store .br-body { padding: 20px 0 40px; }

/* =============================================================
   THE STORE — tan ground, deep-green ink, papyrus panels
   ============================================================= */
#store {
  color: var(--store-ink); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 55% at 50% -5%, rgba(255, 247, 226, .6), transparent 62%),
    radial-gradient(70% 50% at 8% 100%, rgba(190, 152, 96, .32), transparent 70%),
    radial-gradient(70% 45% at 96% 92%, rgba(196, 158, 102, .28), transparent 70%),
    linear-gradient(180deg, var(--store-bg-2) 0%, var(--store-bg) 45%, #DEC593 100%);
  opacity: 0; transition: opacity .42s var(--ease);
}
#store.is-on { opacity: 1; }
#store::before {           /* paper grain */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: var(--grain); background-size: 260px 260px;
}
#store::after {            /* far dunes */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42vh; z-index: 0; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='none'><path d='M0 250 C 180 196 360 206 560 246 S 900 300 1110 236 S 1440 184 1600 222 L1600 400 L0 400Z' fill='%23CDAA70' opacity='.38'/><path d='M0 318 C 240 276 430 292 650 326 S 1050 362 1270 308 S 1500 286 1600 298 L1600 400 L0 400Z' fill='%23BD9760' opacity='.32'/><path d='M0 372 C 300 344 520 356 800 372 S 1300 390 1600 360 L1600 400 L0 400Z' fill='%23B08A55' opacity='.28'/></svg>") bottom / 100% 100% no-repeat;
}
.st { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: rgba(10, 36, 22, .3) transparent; }

/* the top bar (the HUD's cluster floats over its right end) */
.st-bar {
  position: sticky; top: 0; z-index: 20; height: 74px; display: flex; align-items: center; gap: 28px;
  padding: 0 440px 0 28px; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.st-bar.is-scrolled {
  background: rgba(240, 227, 196, .84); border-bottom-color: var(--k-line);
  box-shadow: 0 10px 30px -18px rgba(60, 40, 10, .5);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.st-bar-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--store-ink); flex: none; }
.st-bar-brand img { width: 30px; height: 36px; object-fit: contain; }
.st-bar-word { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.st-bar-sep { width: 1px; height: 20px; background: var(--k-line-2); }
.st-bar-sub { font-family: var(--body); font-style: italic; font-size: 18px; color: var(--store-ink-2); }
.st-bar-search {
  flex: 0 1 460px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 251, 240, .9); border: 1px solid var(--k-line-2); box-shadow: inset 0 1px 2px rgba(60, 40, 10, .12);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s var(--ease), transform .35s var(--ease-out);
}
.st-bar.show-search .st-bar-search { opacity: 1; transform: none; pointer-events: auto; }
.st-bar-search .ic { display: grid; color: var(--k-ink-3); }
.st-bar-search svg { width: 17px; height: 17px; }
.st-bar-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--body); font-size: 18px; color: var(--store-ink); }
.st-bar-input::placeholder { font-style: italic; color: var(--k-ink-3); }

/* the masthead over a tan-washed ruin */
.st-hero { position: relative; isolation: isolate; margin-top: -74px; padding: 74px 0 0; min-height: 600px; }
.st-plate {
  position: absolute; inset: 0 0 -40px; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 58%, rgba(0, 0, 0, .6) 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 58%, rgba(0, 0, 0, .6) 78%, transparent 100%);
}
.st-plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: sepia(.5) saturate(.9) contrast(.9) brightness(1.06);
  animation: st-drift 60s ease-in-out infinite alternate;
}
@keyframes st-drift { from { transform: scale(1.04) translateX(-.6%); } to { transform: scale(1.09) translateX(.6%); } }
.st-plate::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 50% 50%, rgba(244, 233, 206, .74), rgba(244, 233, 206, 0) 72%),
    linear-gradient(180deg, rgba(238, 223, 189, .64) 0%, rgba(234, 216, 176, .5) 42%, rgba(230, 210, 166, .7) 80%, rgba(228, 207, 162, .9) 100%);
}
.st-hero-in { position: relative; max-width: 940px; margin: 0 auto; padding: 58px 24px 64px; text-align: center; }
.st-mark { width: 66px; height: 78px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(60, 40, 10, .3)); }
.st-eyebrow { margin: 16px 0 0; font-family: var(--util); font-weight: 400; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--store-ink-2); }
.st-word {
  margin: 10px 0 0; padding-left: .3em; font-family: var(--display); font-weight: 600; font-size: clamp(46px, 5.8vw, 86px); line-height: 1;
  letter-spacing: .3em; text-transform: uppercase; color: var(--store-ink);
  text-shadow: 0 1px 0 rgba(255, 250, 235, .55), 0 10px 30px rgba(244, 233, 206, .6);
}
.st-tag { margin: 18px auto 0; max-width: 34em; font-family: var(--body); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--store-ink-2); }
.st-search {
  position: relative; display: flex; align-items: center; gap: 12px; max-width: 720px; height: 64px; margin: 34px auto 0; padding: 0 7px 0 24px;
  border-radius: 999px; background: linear-gradient(180deg, #FFFCF4, #F8F0DD);
  border: 1px solid rgba(10, 36, 22, .22);
  box-shadow: 0 22px 50px -22px rgba(60, 40, 10, .55), 0 2px 0 rgba(255, 255, 255, .8) inset, 0 0 0 6px rgba(255, 250, 236, .35);
  transition: box-shadow .25s, border-color .25s;
}
.st-search:focus-within { border-color: rgba(10, 36, 22, .45); box-shadow: 0 22px 50px -22px rgba(60, 40, 10, .6), 0 2px 0 rgba(255, 255, 255, .8) inset, 0 0 0 6px rgba(10, 36, 22, .08); }
.st-search-ic { display: grid; color: var(--store-ink-2); }
.st-search-ic svg { width: 21px; height: 21px; }
.st-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-family: var(--body); font-size: 22px; color: var(--store-ink); }
.st-input::placeholder { font-style: italic; color: #6C7563; }
.st-clear { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--store-ink-2); background: rgba(10, 36, 22, .07); }
.st-clear svg { width: 15px; height: 15px; }
.st-go {
  height: 50px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; flex: none;
  font-family: var(--util); font-weight: 500; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--sand-lt);
  background: linear-gradient(180deg, var(--green-mid), var(--green-panel) 55%, var(--green-deep));
  box-shadow: inset 0 1px 0 rgba(232, 211, 160, .25), 0 6px 16px -6px rgba(5, 19, 12, .6);
  transition: filter .2s, transform .2s;
}
.st-go:hover { filter: brightness(1.12); }
.st-go:active { transform: translateY(1px); }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; margin-inline: calc(-1 * clamp(0px, (100vw - 1000px) / 2, 100px)); }
.st-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 15px; border-radius: 999px; cursor: pointer;
  font-family: var(--util); font-weight: 400; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--store-ink);
  background: rgba(252, 246, 232, .66); border: 1px solid rgba(10, 36, 22, .18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.st-chip:hover { border-color: rgba(10, 36, 22, .4); background: rgba(255, 251, 240, .9); }
.st-chip-n { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 9.5px; letter-spacing: .06em; color: var(--store-ink-2); background: rgba(10, 36, 22, .07); }
.st-chip-n:empty { min-width: 0; width: 0; padding: 0; margin-left: -8px; }
.st-chip.is-on { background: linear-gradient(180deg, var(--green-mid), var(--green-deep)); color: var(--sand-lt); border-color: transparent; box-shadow: 0 6px 14px -6px rgba(5, 19, 12, .55); }
.st-chip.is-on .st-chip-n { background: rgba(232, 211, 160, .18); color: var(--sand-lt); }
.st-chip.is-loading .st-chip-n { animation: st-pulse 1.1s ease-in-out infinite; }
.st-chip.is-zero:not(.is-on) { opacity: .55; }
@keyframes st-pulse { 50% { opacity: .35; } }
.st-promises { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 30px 0 0; padding: 0; }
.st-promises li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--util); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--store-ink-2); }
.st-promises .ic { display: grid; color: var(--store-ink); }
.st-promises svg { width: 16px; height: 16px; stroke-width: 1.4; }
.st-coin {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9px; font-weight: 600; letter-spacing: 0; color: var(--gold-4);
  background: radial-gradient(circle at 35% 28%, var(--gold-hi) 0 12%, transparent 38%), radial-gradient(circle at 50% 60%, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  box-shadow: 0 0 0 1px rgba(110, 71, 16, .5), 0 2px 5px rgba(60, 40, 10, .3);
}

/* sections */
.st-main { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 56px 30px; }
.st-sec { position: relative; }
.st-sec-h { text-align: center; margin: 64px auto 34px; max-width: 760px; }
.st-sec-orn { display: flex; align-items: center; justify-content: center; gap: 16px; }
.st-sec-orn i { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--k-line-2)); }
.st-sec-orn i:last-child { transform: scaleX(-1); }
.st-sec-orn img { width: 22px; height: 26px; object-fit: contain; opacity: .9; }
.st-sec-eyebrow { margin: 14px 0 0; font-family: var(--util); font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--k-ink-3); }
.st-sec-t { margin: 8px 0 0; padding-left: .18em; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: .18em; text-transform: uppercase; color: var(--store-ink); }
.st-sec-sub { margin: 10px auto 0; max-width: 36em; font-style: italic; font-size: 19.5px; line-height: 1.4; color: var(--store-ink-2); }
.st-rows { display: grid; gap: 40px; }
.st .row-cell { --cell: 166px; }
.st-sec--house > .st-rows {
  padding: 34px 38px 30px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 243, 226, .72), rgba(244, 233, 206, .56));
  border: 1px solid rgba(10, 36, 22, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 60px -40px rgba(60, 40, 10, .5);
}
.st-more-cats { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 10px; padding-top: 6px;
  font-family: var(--util); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--k-ink-3); }
.st-cat-link {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  font-family: var(--body); font-style: italic; font-size: 16.5px; letter-spacing: 0; text-transform: none; color: var(--store-ink);
  background: rgba(255, 252, 244, .6); border: 1px solid var(--k-line); transition: background .2s, color .2s;
}
.st-cat-link small { font-family: var(--util); font-style: normal; font-size: 9.5px; letter-spacing: .08em; color: var(--k-ink-3); }
.st-cat-link:hover { background: var(--store-ink); color: var(--sand-lt); }
.st-cat-link:hover small { color: var(--sand); }
.st-back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--util); font-weight: 500; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--store-ink-2);
}
.st-back .ic { display: grid; }
.st-back svg { width: 14px; height: 14px; }
.st-back:hover { color: var(--store-ink); }
.st-sec--cat .st-sec-h { margin-top: 18px; }

/* the epigraph band */
.st-epi { position: relative; margin: 76px -56px 10px; padding: 50px 56px 52px; text-align: center; transition: opacity .5s var(--ease); }
.st-epi::before, .st-epi::after { content: ''; position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--k-line-2), transparent); }
.st-epi::before { top: 0; } .st-epi::after { bottom: 0; }
.st-epi-glyph { width: 20px; height: 24px; object-fit: contain; opacity: .75; margin-bottom: 10px; }
.st-epi-in { transition: opacity .5s var(--ease), filter .5s; }
.st-epi.is-turning .st-epi-in { opacity: 0; filter: blur(3px); }
.st-epi-q { margin: 0 auto; max-width: 30em; font-family: var(--body); font-style: italic; font-size: 29px; line-height: 1.35; color: var(--store-ink); }
.st-epi-q::before { content: '“'; } .st-epi-q::after { content: '”'; }
.st-epi-c { display: block; margin-top: 14px; font-family: var(--util); font-style: normal; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--k-ink-3); }

/* results */
.st-res-h { text-align: center; margin: 54px 0 30px; }
.st-res-eyebrow { margin: 0; font-family: var(--util); font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--k-ink-3); }
.st-res-t { margin: 8px 0 0; font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: .12em; text-transform: uppercase; color: var(--store-ink); }
.st-res-t em { font-family: var(--body); font-weight: 500; font-size: 1.12em; letter-spacing: 0; text-transform: none; }
.st-res-n { margin: 8px 0 0; font-family: var(--util); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--k-ink-3); min-height: 1.4em; }
.st-groups { display: grid; gap: 34px; }
.st-group { min-width: 0; }
.st-group .row--store { padding: 24px 30px 18px; border-radius: 20px; background: rgba(250, 243, 226, .5); border: 1px solid rgba(10, 36, 22, .1); }
.st-group .row--store.row--house {
  background: linear-gradient(180deg, rgba(10, 36, 22, .94), rgba(5, 19, 12, .96)); border-color: rgba(201, 174, 124, .35);
  --k-ink: var(--sand-lt); --k-ink-2: var(--sand); --k-ink-3: rgba(232, 211, 160, .6); --k-line: rgba(201, 174, 124, .2); --k-line-2: rgba(201, 174, 124, .38);
  --k-acc: var(--gold-1); --k-sk: rgba(232, 211, 160, .08); --k-hi: rgba(232, 211, 160, .12);
  box-shadow: 0 30px 60px -30px rgba(5, 19, 12, .6);
}
.st-group .row--house .bk-src i { box-shadow: none; }
.st-misses { margin: 26px 0 0; text-align: center; font-style: italic; font-size: 17px; color: var(--k-ink-3); }
.st-group-err { padding: 10px 0; }
.st-group-err-t { display: block; text-align: center; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.st-group-err .state { padding: 16px 0 8px; }
.st-main[data-view="results"] .grid--store { padding-top: 6px; }

/* the footer: the one deep-green board in the shop */
.st-foot {
  position: relative; margin-top: 90px; padding: 60px 24px 54px; text-align: center; color: var(--sand-lt);
  background: linear-gradient(180deg, var(--green-panel), var(--green-deep));
  border-top: 1px solid rgba(201, 174, 124, .35);
}
.st-foot::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 174, 124, .3), transparent); }
.st-foot-mark { width: 44px; height: 52px; object-fit: contain; }
.st-foot-word { margin: 14px 0 0; padding-left: .3em; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .3em; text-transform: uppercase; }
.st-foot-line { margin: 10px auto 0; max-width: 40em; font-style: italic; font-size: 19px; color: var(--sand); }
.st-foot-small { margin: 22px auto 0; max-width: 64em; font-family: var(--util); font-size: 10px; line-height: 1.8; letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 211, 160, .55); }
.st-foot-small a { color: var(--sand-lt); text-decoration: none; border-bottom: 1px solid rgba(201, 174, 124, .4); }

/* =============================================================
   THE DETAIL SHEET
   ============================================================= */
.sd-host { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 84px 24px 28px; }
.sd-scrim { position: absolute; inset: 0; background: rgba(46, 32, 10, .36); backdrop-filter: blur(7px) saturate(.9); -webkit-backdrop-filter: blur(7px) saturate(.9); opacity: 0; transition: opacity .35s var(--ease); }
.sd-host.is-open .sd-scrim { opacity: 1; }
.sd {
  position: relative; width: min(1100px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 48px 54px 46px; border-radius: 24px; color: var(--store-ink);
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(255, 253, 246, .9), transparent 70%),
    linear-gradient(180deg, #FAF3E2, #F2E6CB);
  border: 1px solid rgba(10, 36, 22, .16);
  box-shadow: 0 50px 120px -30px rgba(40, 26, 8, .65), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  scrollbar-width: thin; scrollbar-color: rgba(10, 36, 22, .3) transparent;
  opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.sd::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: var(--grain); background-size: 260px; opacity: .06; mix-blend-mode: multiply; }
.sd-host.is-open .sd { opacity: 1; transform: none; }
.sd-x {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: var(--store-ink); background: rgba(255, 252, 244, .8); border: 1px solid var(--k-line-2); transition: background .2s, color .2s, transform .2s;
}
.sd-x svg { width: 17px; height: 17px; }
.sd-x:hover { background: var(--store-ink); color: var(--sand-lt); transform: rotate(90deg); }
.sd-grid { position: relative; display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: start; }
.sd-cover { position: sticky; top: 0; padding-bottom: 26px; }
.sd-cover .jk {
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 2px 2px rgba(30, 18, 4, .3), 0 36px 60px -24px rgba(40, 26, 8, .7), 0 10px 20px -8px rgba(40, 26, 8, .35);
}
/* audiobooks keep their square album art */
.sd--audio .sd-cover .jk, .ct-thumb--audio .jk { aspect-ratio: 1 / 1; }
.sd--audio .sd-cover .jk-type { padding: 11cqi 10cqi 10cqi; }
.sd-cover-shadow { position: absolute; left: 8%; right: 8%; bottom: 8px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 40, 10, .35), transparent); filter: blur(4px); z-index: -1; }
.sd-info { min-width: 0; padding-top: 4px; }
.sd-eyebrow { margin: 0; font-family: var(--util); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--k-ink-3); }
.sd-title { margin: 12px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; letter-spacing: .04em; color: var(--store-ink); padding-right: 40px; }
.sd-author { margin: 10px 0 0; font-style: italic; font-size: 23px; color: var(--store-ink-2); }
.sd-year { font-style: normal; font-family: var(--util); font-size: 12px; letter-spacing: .18em; color: var(--k-ink-3); }
.sd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin: 28px 0 0; padding: 22px 0; border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); }
.sd-read {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 30px 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--util); font-weight: 500; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--sand-lt);
  background: linear-gradient(180deg, var(--green-mid), var(--green-panel) 55%, var(--green-deep));
  box-shadow: 0 14px 30px -14px rgba(5, 19, 12, .8), inset 0 1px 0 rgba(232, 211, 160, .25);
  transition: transform .2s var(--ease-out), filter .2s;
}
.sd-read .ic { display: grid; }
.sd-read svg { width: 19px; height: 19px; stroke-width: 1.4; }
.sd-read:hover { transform: translateY(-1px); filter: brightness(1.12); }
.sd-plus { display: inline-flex; align-items: center; gap: 22px; }   /* room for the $1 tag hung on the plus */
.sd-plus[hidden], .sd-own[hidden] { display: none; }
.sd-own {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px 0 18px; border-radius: 999px; text-decoration: none;
  color: var(--store-ink); background: rgba(255, 252, 244, .72); border: 1px solid var(--k-line-2);
  box-shadow: 0 10px 24px -16px rgba(60, 40, 10, .6), inset 0 1px 0 #fff; transition: background .2s, color .2s, transform .2s var(--ease-out);
}
.sd-own .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--gold-4);
  background: radial-gradient(circle at 35% 28%, var(--gold-hi) 0 12%, transparent 40%), radial-gradient(circle at 50% 60%, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  box-shadow: 0 0 0 1px rgba(110, 71, 16, .5); }
.sd-own svg { width: 15px; height: 15px; stroke-width: 1.8; }
.sd-own strong { display: block; font-family: var(--util); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.sd-own small { display: block; font-style: italic; font-size: 15px; color: var(--store-ink-2); }
.sd-own:hover { transform: translateY(-1px); background: #FFFCF4; }
.sd-plus-l { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.sd-plus-l strong { font-family: var(--util); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.sd-plus-l small { font-style: italic; font-size: 16px; color: var(--store-ink-2); }
.sd-links { margin-top: 16px; }
.sd-src { display: inline-flex; align-items: center; gap: 7px; font-family: var(--util); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--store-ink-2);
  text-decoration: none; border-bottom: 1px solid var(--k-line-2); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.sd-src .ic { display: grid; }
.sd-src svg { width: 13px; height: 13px; }
.sd-src:hover { color: var(--store-ink); border-color: var(--store-ink); }
.sd-desc { margin-top: 24px; font-size: 19.5px; line-height: 1.6; color: #1A2A1F; }
.sd-desc p { margin: 0 0 .8em; }
.sd-desc p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 500; font-size: 3.3em; line-height: .86; padding: 6px 10px 0 0; color: var(--gold-3); }
.sd-desc--none { font-style: italic; color: var(--store-ink-2); }
.sd-desc--none p:first-child::first-letter { float: none; font: inherit; color: inherit; padding: 0; }
.sd-note { margin: 4px 0 0; font-style: italic; font-size: 16.5px; color: var(--store-ink-2); }
.sd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 28px; margin: 26px 0 0; padding: 20px 22px; border-radius: 14px; background: rgba(10, 36, 22, .04); border: 1px solid var(--k-line); }
.sd-facts dt { font-family: var(--util); font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--k-ink-3); }
.sd-facts dd { margin: 3px 0 0; font-size: 17px; line-height: 1.35; color: var(--store-ink); }
.sd-facts .bk-src { font-family: var(--util); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--store-ink); }

/* =============================================================
   THE CART DRAWER — green glass in the basilica, papyrus in the store
   ============================================================= */
#cart { pointer-events: auto; }
.ct-scrim { position: absolute; inset: 0; background: rgba(2, 8, 5, .44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease); }
#cart.is-open .ct-scrim { opacity: 1; }
.ct-drawer {
  --c-ink: var(--sand-lt); --c-ink-2: rgba(232, 211, 160, .72); --c-ink-3: rgba(232, 211, 160, .5); --c-line: rgba(201, 174, 124, .18);
  position: absolute; top: 0; right: 0; bottom: 0; width: min(452px, 100vw); display: flex; flex-direction: column; color: var(--c-ink);
  background: linear-gradient(180deg, rgba(12, 38, 25, .9), rgba(5, 19, 12, .95) 60%);
  border-left: 1px solid rgba(201, 174, 124, .38);
  box-shadow: -40px 0 90px rgba(0, 0, 0, .45);
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  transform: translateX(104%); transition: transform .55s var(--ease-out);
}
.ct-drawer::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(201, 174, 124, .28) 15%, rgba(201, 174, 124, .28) 85%, transparent); pointer-events: none; }
#cart.is-open .ct-drawer { transform: none; }
.ct-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 22px 32px; }
.ct-head::after { content: ''; position: absolute; left: 32px; right: 28px; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--c-line), rgba(201, 174, 124, .45), var(--c-line)); }
.ct-eyebrow { display: block; font-family: var(--util); font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--c-ink-3); }
.ct-title { margin: 8px 0 0; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.1; }
.ct-count {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center;
  font-family: var(--util); font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--gold-4);
  background: radial-gradient(circle at 35% 28%, var(--gold-hi) 0 12%, transparent 40%), radial-gradient(circle at 50% 60%, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  box-shadow: 0 0 0 1px rgba(110, 71, 16, .55), 0 0 12px rgba(255, 214, 120, .35);
}
.ct-count:empty { display: none; }
.ct-x { flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--c-ink); background: none; border: 1px solid var(--c-line); transition: background .2s, transform .25s; }
.ct-x svg { width: 16px; height: 16px; }
.ct-x:hover { background: rgba(232, 211, 160, .1); transform: rotate(90deg); }
.ct-list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 8px 20px 12px 24px; list-style: none; overflow-y: auto; }
.ct-item {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: start; padding: 18px 8px 18px 8px;
  border-bottom: 1px solid var(--c-line); animation: ct-in .45s var(--ease-out) both;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.ct-item:nth-child(2) { animation-delay: .04s; } .ct-item:nth-child(3) { animation-delay: .08s; } .ct-item:nth-child(4) { animation-delay: .12s; }
@keyframes ct-in { from { opacity: 0; transform: translateX(16px); } }
.ct-item.is-leaving { opacity: 0; transform: translateX(24px); }
.ct-thumb .jk { box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .6), 0 1px 1px rgba(0, 0, 0, .3); }
.ct-item-t { min-width: 0; }
.ct-item-title { margin: 1px 0 0; font-family: var(--display); font-weight: 500; font-size: 14px; line-height: 1.32; letter-spacing: .02em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ct-item-author { margin: 4px 0 0; font-style: italic; font-size: 16px; line-height: 1.25; color: var(--c-ink-2); }
.ct-item-src { margin: 7px 0 0; font-family: var(--util); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-3); }
.ct-dot { margin: 0 .5em; }
.ct-item-r { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.ct-price { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--gold-1); }
.ct-price.is-free { font-family: var(--util); font-weight: 400; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--c-ink-2); padding-top: 4px; }
.ct-dl {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 4px 8px; border-radius: 999px; text-decoration: none;
  font-family: var(--util); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink); border: 1px solid rgba(201, 174, 124, .38);
  transition: background .2s, color .2s;
}
.ct-dl .ic { display: grid; } .ct-dl svg { width: 12px; height: 12px; }
.ct-dl:hover { background: var(--sand-lt); color: var(--green-deep); }
.ct-rm { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--c-ink-3); transition: color .2s, border-color .2s; }
.ct-rm svg { width: 13px; height: 13px; }
.ct-rm:hover { color: var(--c-ink); border-color: var(--c-line); }

.ct-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 26px 40px; }
.ct-empty-mark { width: 62px; height: 74px; object-fit: contain; opacity: .95; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4)); }
.ct-empty-t { margin: 22px 0 0; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.ct-empty-s { margin: 10px 0 0; max-width: 26em; font-style: italic; font-size: 18px; line-height: 1.4; color: var(--c-ink-2); }
.ct-empty-btn {
  margin-top: 24px; padding: 12px 24px 11px; border-radius: 999px; cursor: pointer; background: none; color: var(--c-ink); border: 1px solid rgba(201, 174, 124, .45);
  font-family: var(--util); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; transition: background .2s, color .2s;
}
.ct-empty-btn:hover { background: var(--sand-lt); color: var(--green-deep); }

.ct-foot { position: relative; padding: 20px 28px 26px 32px; background: linear-gradient(180deg, rgba(3, 12, 7, .15), rgba(3, 12, 7, .45)); border-top: 1px solid rgba(201, 174, 124, .3); }
.ct-foot[hidden] { display: none; }
.ct-sub { display: flex; align-items: baseline; gap: 10px; }
.ct-sub-k { font-family: var(--util); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--c-ink-2); }
.ct-sub-dots { flex: 1; border-bottom: 1px dotted rgba(201, 174, 124, .45); transform: translateY(-4px); }
.ct-sub-v { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .04em; color: var(--c-ink); }
.ct-note { margin: 10px 0 18px; font-style: italic; font-size: 16px; line-height: 1.4; color: var(--c-ink-2); }
.ct-checkout {
  position: relative; overflow: hidden; width: 100%; height: 56px; border-radius: 999px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--util); font-weight: 500; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--green-deep);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255, 246, 214, .75), transparent 55%),
    linear-gradient(180deg, var(--gold-1), var(--gold-2) 58%, var(--gold-3));
  box-shadow: 0 0 0 1px rgba(110, 71, 16, .55), 0 14px 32px -10px rgba(230, 182, 83, .55), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(110, 71, 16, .3);
  transition: transform .2s var(--ease-out), filter .2s, box-shadow .2s;
}
.ct-checkout .ic { display: grid; } .ct-checkout svg { width: 17px; height: 17px; stroke-width: 1.7; }
.ct-checkout:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ct-checkout:active { transform: translateY(1px); }
.ct-checkout.is-busy { pointer-events: none; }
.ct-checkout.is-busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); animation: sk-shimmer 1.1s linear infinite; transform: translateX(-100%); }
.ct-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; font-family: var(--util); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-3); }
.ct-secure[hidden] { display: none; }
.ct-secure .ic { display: grid; } .ct-secure svg { width: 12px; height: 12px; }

/* papyrus in the store */
#cart.ct--store .ct-scrim { background: rgba(60, 40, 10, .28); }
#cart.ct--store .ct-drawer {
  --c-ink: var(--store-ink); --c-ink-2: var(--store-ink-2); --c-ink-3: #6A735F; --c-line: rgba(10, 36, 22, .13);
  background: linear-gradient(180deg, #FAF3E2, #F1E4C6);
  border-left-color: rgba(10, 36, 22, .2); box-shadow: -40px 0 90px rgba(60, 40, 10, .35);
}
#cart.ct--store .ct-drawer::before { background: linear-gradient(180deg, transparent, rgba(10, 36, 22, .14) 15%, rgba(10, 36, 22, .14) 85%, transparent); }
#cart.ct--store .ct-head::after { background: linear-gradient(90deg, var(--c-line), rgba(10, 36, 22, .3), var(--c-line)); }
#cart.ct--store .ct-price { color: #7A4E0E; }
#cart.ct--store .ct-dl { border-color: rgba(10, 36, 22, .3); }
#cart.ct--store .ct-dl:hover, #cart.ct--store .ct-empty-btn:hover { background: var(--store-ink); color: var(--sand-lt); }
#cart.ct--store .ct-empty-btn { border-color: rgba(10, 36, 22, .3); }
#cart.ct--store .ct-empty-mark { filter: drop-shadow(0 8px 18px rgba(60, 40, 10, .25)); }
#cart.ct--store .ct-foot { background: linear-gradient(180deg, rgba(10, 36, 22, .02), rgba(10, 36, 22, .06)); border-top-color: rgba(10, 36, 22, .16); }
#cart.ct--store .ct-sub-dots { border-bottom-color: rgba(10, 36, 22, .3); }
#cart.ct--store .ct-thumb .jk { box-shadow: 0 8px 16px -6px rgba(60, 40, 10, .5), 0 1px 1px rgba(0, 0, 0, .2); }

/* ---- payment and success sheets (a Stripe-like card) ---- */
.ct-sheet-host { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; }
.ct-sheet-scrim { position: absolute; inset: 0; background: rgba(2, 8, 5, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s var(--ease); }
.ct-sheet-host.is-open .ct-sheet-scrim { opacity: 1; }
.pay {
  position: relative; width: min(430px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 26px 28px 22px; border-radius: 16px;
  background: #FDFCF9; color: #1A1F2E; font-family: var(--util); font-size: 14px; line-height: 1.45;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, .55), 0 30px 60px -30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(10, 36, 22, .08);
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.ct-sheet-host.is-open .pay { opacity: 1; transform: none; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-merchant { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: .01em; }
.pay-merchant img { width: 26px; height: 30px; object-fit: contain; padding: 3px; border-radius: 7px; background: var(--green-deep); }
.pay-test { font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; color: #A2560A; background: #FFEFD4; }
.pay-amount { margin: 22px 0 16px; }
.pay-amount-k { display: block; font-size: 14px; color: #6A7282; }
.pay-amount-v { display: block; margin-top: 2px; font-weight: 500; font-size: 38px; letter-spacing: -.01em; line-height: 1.1; color: #1A1F2E; font-variant-numeric: tabular-nums; }
.pay-lines { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid #ECEAE3; }
.pay-lines li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #ECEAE3; font-size: 14px; }
.pay-line-t { display: flex; flex-direction: column; min-width: 0; }
.pay-line-t small { font-size: 12px; color: #6A7282; }
.pay-line-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-lines li > span:last-child { flex: none; }
.pay-line-free { color: #6A7282; }
.pay-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #3C4257; }
.pay-card { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid #DCDFE6; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); color: #3C4257; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pay-card-n { flex: 1; }
.pay-card-m { color: #8792A2; }
.pay-hint { display: flex; align-items: center; gap: 7px; margin: 12px 0 18px; font-size: 13px; color: #2E6B45; }
.pay-hint .ic { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #DDF1E4; }
.pay-hint svg { width: 12px; height: 12px; stroke-width: 2.2; }
.pay-err { margin: -6px 0 14px; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #A12A1A; background: #FDECEA; }
.pay-err[hidden] { display: none; }
.pay-btn {
  position: relative; width: 100%; height: 50px; border-radius: 9px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--util); font-weight: 500; font-size: 15.5px; letter-spacing: .01em; color: #FDF6E6;
  background: linear-gradient(180deg, #1E4A31, #0A2416);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15), 0 8px 18px -8px rgba(10, 36, 22, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: filter .2s, transform .15s;
}
.pay-btn:hover { filter: brightness(1.15); }
.pay-btn:active { transform: translateY(1px); }
.pay-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(253, 246, 230, .35); border-top-color: #FDF6E6; animation: pay-spin .8s linear infinite; }
.pay-btn.is-busy { pointer-events: none; filter: saturate(.8); }
.pay-btn.is-busy .pay-btn-t { opacity: .75; }
.pay-btn.is-busy .pay-spin { display: block; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-btn--quiet { margin-top: 18px; }
.pay-cancel { display: block; margin: 10px auto 0; padding: 6px 12px; border: 0; background: none; cursor: pointer; font-family: var(--util); font-size: 14px; color: #6A7282; }
.pay-cancel:hover { color: #1A1F2E; }
.pay-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: #8792A2; }
.pay-foot .ic { display: grid; } .pay-foot svg { width: 12px; height: 12px; }
/* success */
.pay--ok { text-align: center; padding: 34px 30px 24px; }
.ok-seal {
  width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--green-deep);
  background: radial-gradient(circle at 34% 26%, var(--gold-hi) 0 12%, transparent 38%), radial-gradient(circle at 50% 60%, var(--gold-1), var(--gold-2) 58%, var(--gold-3));
  box-shadow: 0 0 0 1px rgba(110, 71, 16, .55), 0 0 0 7px rgba(230, 182, 83, .16), 0 10px 26px rgba(169, 114, 28, .45), inset 0 -3px 5px rgba(110, 71, 16, .4);
  animation: ok-in .6s var(--ease-out) both;
}
.ok-seal svg { width: 30px; height: 30px; stroke-width: 2.2; }
.ok-seal--err { color: #FDF6E6; background: linear-gradient(180deg, #B4553A, #7A2E22); box-shadow: 0 0 0 7px rgba(180, 85, 58, .14), 0 10px 26px rgba(122, 46, 34, .35); }
@keyframes ok-in { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.ok-t { margin: 20px 0 0; font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.ok-s { margin: 8px auto 0; max-width: 30em; font-family: var(--body); font-style: italic; font-size: 18px; line-height: 1.4; color: #4A5145; }
.ok-list { list-style: none; margin: 20px 0 0; padding: 0; text-align: left; border-top: 1px solid #ECEAE3; }
.ok-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid #ECEAE3; }
.ok-item-t { font-family: var(--display); font-size: 13.5px; line-height: 1.3; letter-spacing: .02em; color: #1A1F2E; min-width: 0; }
.ok-dl {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 6px 10px; border-radius: 999px; text-decoration: none;
  font-family: var(--util); font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #FDF6E6;
  background: linear-gradient(180deg, #1E4A31, #0A2416); box-shadow: 0 4px 10px -4px rgba(10, 36, 22, .6);
}
.ok-dl .ic { display: grid; } .ok-dl svg { width: 13px; height: 13px; }
.ok-dl:hover { filter: brightness(1.15); }
.ok-none { font-size: 12px; color: #8792A2; }

/* =============================================================
   Small screens and reduced motion
   ============================================================= */
@media (max-width: 1100px) {
  .st-bar { padding-right: 380px; }
  .st-bar-sub, .st-bar-sep { display: none; }
  .st-main { padding: 0 28px 30px; }
  .st-epi { margin-left: -28px; margin-right: -28px; }
  .sd { padding: 40px 34px; }
  .sd-grid { grid-template-columns: 240px 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  .st-bar { padding: 0 190px 0 16px; height: 64px; }
  .st-bar-word { display: none; }
  .st-bar-search { display: none; }
  .st-hero { margin-top: -64px; padding-top: 64px; min-height: 0; }
  .st-hero-in { padding: 36px 16px 44px; }
  .st-tag { font-size: 19px; }
  .st-search { height: 54px; padding-left: 16px; }
  .st-go { display: none; }
  .st-main { padding: 0 16px 20px; }
  .st-sec-t { font-size: 24px; letter-spacing: .12em; }
  .st-sec--house > .st-rows, .st-group .row--store { padding: 20px 16px 14px; border-radius: 16px; }
  .st .row-cell { --cell: 128px; }
  .row-track { gap: 18px; }
  .row-arrow { display: none; }
  .grid--store { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 30px 18px; }
  .st-epi { margin: 50px -16px 0; padding: 36px 20px; }
  .st-epi-q { font-size: 22px; }
  .sd-host { padding: 70px 10px 10px; }
  .sd { padding: 30px 20px; border-radius: 18px; }
  .sd-grid { grid-template-columns: 1fr; gap: 24px; }
  .sd-cover { position: relative; width: 180px; margin: 0 auto; }
  .sd-title { padding-right: 0; }
  .rt-block-cards { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .row-arrow { display: none; }
  .bk-plate::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-plate img, .sk::after, .gp-burst, .ct-item { animation: none !important; }
  .bk-plate, .ct-drawer, .sd, .pay, .rt-pop { transition-duration: .01s !important; }
}
.br--audio .bk--skel .bk-plate { aspect-ratio: 1 / 1; }
