/* Harem After Dark — production stylesheet (editorial base).
   Tokens, base, gate, seal, masthead, hero, sections, strip, grid, card, bundle, buttons,
   how/what, footer, coin sheet, order page, legal, 404, motion. No external assets. */

:root {
  --bg: #0a0708;
  --panel: #15100f;
  --panel-2: #1e1714;
  --ink: #f3e8d8;
  --muted: #b8a48f;
  --gold: #c9a45c;
  --gold-2: #e8c98a;
  --rose: #c98a8a;
  --rose-2: #8a5a5e;
  --line: #3a2d28;
  --gold-line: rgba(201, 164, 92, .38);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); overflow-x: hidden; min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--gold-2); }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
s { color: var(--muted); text-decoration-color: var(--rose-2); }
code { font-family: var(--mono); font-size: .92em; }
.fine { font-size: .8rem; color: var(--muted); }
.kicker {
  font: 600 .68rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .7rem;
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--bg);
  padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { left: 8px; }
.pulse { height: 2px; background: var(--line); position: relative; overflow: hidden; margin: 1.2rem 0; }
.pulse::after {
  content: ""; position: absolute; inset: 0; width: 38%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { from { transform: translateX(-110%); } to { transform: translateX(370%); } }

/* ---------- Age gate: nothing visible until accepted; region check runs first ---------- */
.site { display: none; }
html.age-ok .site { display: block; }
html.age-ok #gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }
#gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem;
  overflow: auto; background: radial-gradient(ellipse at 50% 28%, rgba(201, 164, 92, .11), transparent 58%), var(--bg);
}
.gate-panel {
  width: min(100%, 560px); background: var(--panel); text-align: center;
  border: 1px solid var(--line); box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 6px var(--gold-line);
  padding: clamp(1.5rem, 5vw, 2.8rem) clamp(1.1rem, 5vw, 2.6rem);
}
.gate-panel h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: .8rem 0 .7rem; }
.gate-panel p { color: var(--muted); font-size: .92rem; }
.gate-confirm { margin-bottom: .4rem; }
.gate-list { text-align: left; margin: 0 auto 1rem; padding-left: 1.2rem; color: var(--muted); font-size: .88rem; max-width: 44ch; }
.gate-list li { margin: .3rem 0; }
.gate-actions { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 1.2rem 0 .9rem; }
.gate-actions .btn { width: 100%; max-width: 380px; min-height: 52px; }
.gate-leave {
  color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem;
}
.gate-panel .fine { font-size: .74rem; margin-bottom: .5rem; }
.gate-links { font-size: .7rem; margin: .4rem 0 0; }
.gate-links a { color: var(--muted); }
#gate[data-state="checking"] .gate-body, #gate:not([data-state="checking"]) .gate-wait { display: none; }
.gate-wait { padding: 1rem 0 0; }
.gate-wait .pulse { max-width: 200px; margin: .6rem auto; }
.noscript {
  position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; padding: 2rem; text-align: center;
  background: var(--bg); color: var(--muted); font-family: var(--serif); font-size: 1.15rem;
}

/* ---------- Seal / wordmark (image with text fallback) ---------- */
.wordmark { font-family: var(--serif); text-transform: uppercase; line-height: 1; white-space: nowrap; display: inline-block; text-align: center; }
.wordmark b { display: block; font-weight: 400; color: var(--gold); font-size: 1.3rem; letter-spacing: .16em; }
.wordmark i { display: block; font-style: normal; color: var(--rose); font-size: .6rem; letter-spacing: .38em; margin-top: .35rem; }
.seal-wrap { display: inline-block; }
.seal-img { display: none; width: 150px; height: auto; margin: 0 auto; }
.seal {
  width: 150px; height: 196px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #000; border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px #000, inset 0 0 0 5px var(--gold-line);
}
.seal .wordmark b { font-size: 1.05rem; }
.seal .wordmark i { font-size: .48rem; letter-spacing: .3em; }
.seal-wrap.has-logo .seal-img { display: block; }
.seal-wrap.has-logo .seal { display: none; }
.seal-sm .seal, .seal-sm .seal-img { width: 84px; }
.seal-sm .seal { height: 110px; box-shadow: inset 0 0 0 3px #000, inset 0 0 0 4px var(--gold-line); }
.seal-sm .seal .wordmark b { font-size: .62rem; letter-spacing: .1em; }
.seal-sm .seal .wordmark i { font-size: .3rem; letter-spacing: .2em; margin-top: .2rem; }

/* ---------- Masthead ---------- */
.masthead {
  max-width: var(--max); margin: 0 auto; padding: .8rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-seal { display: none; width: 44px; height: 44px; object-fit: contain; }
.brand.has-logo .brand-seal { display: block; }
.brand .wordmark { text-align: left; }
.brand .wordmark b { font-size: 1.15rem; }
.brand .wordmark i { font-size: .55rem; letter-spacing: .34em; }
.mast-right { display: flex; align-items: center; gap: 1.2rem; }
.nav { display: flex; gap: 1.2rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--gold-2); }
.mark18 {
  font: 600 .64rem/1 var(--sans); letter-spacing: .14em; color: var(--gold); border: 1px solid var(--gold-line);
  padding: .55rem .7rem; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- Hero: copy + a featured plate, seal kept small beside the copy ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; }
.hero-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 3rem; } }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1.02; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.tagline {
  font-family: var(--serif); font-style: italic; color: var(--gold-2);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem); margin: 1.2rem 0 .7rem;
}
.lede { color: var(--muted); max-width: 46ch; font-size: 1.02rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-seal { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.hero-seal .fine { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: .64rem; max-width: 24ch; line-height: 1.7; }
.hero-side { display: none; }
@media (min-width: 900px) {
  .hero-side { display: flex; justify-content: flex-end; }
  .hero-side .card { width: 100%; max-width: 300px; }
  .hero-side .card.landscape { max-width: 520px; }
  .hero-side .card-title { font-size: 1.15rem; }
  .hero-side .card-meta { margin-bottom: .7rem; }
}
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2rem, 5vw, 3.4rem);
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--line);
}
.trust div { padding: 1.1rem 1.3rem 1.1rem 0; }
.trust div + div { border-left: 1px solid var(--line); padding-left: 1.3rem; }
.trust b { display: block; font: 400 1.1rem/1.25 var(--serif); color: var(--ink); margin-bottom: .2rem; }
.trust span { font-size: .8rem; color: var(--muted); }
@media (max-width: 620px) {
  .trust { grid-template-columns: 1fr; }
  .trust div { padding: .9rem 0; }
  .trust div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(2.2rem, 5vw, 4rem) var(--gutter); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--gold-line); padding-bottom: .8rem; margin-bottom: 1.5rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head .count { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.empty { color: var(--muted); font-family: var(--serif); font-size: 1.2rem; padding: 2rem 0; grid-column: 1 / -1; }

/* Featured strip: a filmstrip that scrolls sideways; cards keep their own height; edge fades hint at more */
.strip-wrap { position: relative; }
.strip-wrap::before, .strip-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 1.2rem; width: 64px; pointer-events: none; z-index: 1;
  transition: opacity .3s;
}
.strip-wrap::before { left: -4px; background: linear-gradient(90deg, var(--bg), transparent); }
.strip-wrap::after { right: -4px; background: linear-gradient(270deg, var(--bg), transparent); }
.strip-wrap.at-start::before, .strip-wrap.at-end::after { opacity: 0; }
.strip {
  display: flex; align-items: flex-start; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 48px 1.2rem 4px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch;
}
.strip .card { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
.strip .card.landscape { flex-basis: min(88vw, 520px); }

/* Grid: landscape plates span two columns only when three or more fit; bundles span the row */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  color: var(--muted); font-size: .8rem; letter-spacing: .08em; cursor: pointer; transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--gold-line); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); }
.sort { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.sort-wrap { position: relative; }
.sort-wrap::after {
  content: ""; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); pointer-events: none;
}
.sort select {
  min-height: 44px; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  padding: .4rem 2.2rem .4rem .9rem; font: inherit; letter-spacing: inherit; text-transform: inherit; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.4rem; grid-auto-flow: dense; }
@media (min-width: 860px) { .grid .card.landscape { grid-column: span 2; } }
@media (min-width: 680px) { .grid .card.bundle { grid-column: 1 / -1; } }

/* ---------- Card: a plate in a book ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: var(--gold-line); }
.card.is-target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 48px rgba(201, 164, 92, .2); }
.plate { display: block; width: 100%; padding: 8px; margin: 0; background: transparent; border: 0; text-align: left; }
button.plate { cursor: pointer; }
.plate-frame {
  position: relative; display: block; width: 100%; max-width: 560px; margin: 0 auto; overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.plate-frame img, .plate-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-frame.auto img { position: relative; inset: auto; height: auto; }
.plate-frame video { opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.card.is-playing .plate-frame video { opacity: 1; }
.plate-badge {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  background: rgba(10, 7, 8, .72); padding: .5rem .7rem; transition: opacity .3s;
}
.plate-badge::before {
  content: ""; width: 0; height: 0; border-left: 7px solid var(--gold-2);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.card.is-loading .plate-badge::before { border-left-color: var(--muted); }
.card.is-playing .plate-badge { opacity: 0; }
.card.no-preview .plate-badge { display: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: .5rem 1.1rem 1.1rem; }
.card .kicker { margin-bottom: .45rem; font-size: .62rem; }
.card.sample .kicker { color: var(--rose); }
.card-title { font-size: 1.4rem; line-height: 1.18; margin: 0 0 .45rem; }
.card-blurb { color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; }
.card-meta { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  border-top: 1px solid var(--line); padding-top: .9rem;
}
.price { font-family: var(--serif); font-size: 1.55rem; color: var(--gold-2); line-height: 1; white-space: nowrap; }
.price small { font: 400 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: .45rem; }
.price s { font-size: .95rem; margin-left: .3rem; }
.card-msg { color: var(--rose); font-size: .82rem; margin: .8rem 0 0; }
.card-msg a { color: var(--rose); }

/* Bundle: double gold rule, horizontal spread, a stack of the posters inside */
.card.bundle {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border-color: var(--gold-line); box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 6px var(--gold-line);
}
.card.bundle .plate { padding: 14px; }
.card.bundle .card-body { padding: .6rem 1.4rem 1.4rem; }
.card.bundle .kicker { color: var(--rose); }
.card.bundle .card-title { font-size: 1.8rem; }
.stack { display: flex; align-items: center; margin: 0 0 1rem; padding-left: 2px; }
.stack img {
  width: 44px; height: 60px; object-fit: cover; border: 1px solid var(--gold-line); background: var(--panel-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55); margin-right: -12px; position: relative;
}
.stack b { margin-left: 24px; font: 600 .66rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.save {
  font: 600 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose);
  border: 1px solid var(--rose-2); padding: .4rem .55rem; white-space: nowrap;
}
.card.bundle .card-foot { flex-wrap: wrap; }
.card.bundle .plate-frame { max-width: 480px; }
@media (min-width: 680px) {
  .card.bundle { flex-direction: row; }
  .card.bundle .plate { flex: 0 0 min(40%, 420px); display: flex; align-items: center; justify-content: center; }
  .card.bundle .plate-frame { width: 100%; max-width: 320px; margin: 0; }
  .card.bundle .card-body { padding: 1.5rem 1.6rem 1.4rem; min-width: 0; justify-content: center; }
  .card.bundle .card-foot { margin-top: 1.2rem; }
}

/* Pack: the main product. Double gold rule like the old bundle, but a normal grid tile; the plate corner says what is inside */
.card.pack {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border-color: var(--gold-line); box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 6px var(--gold-line);
}
.card.pack .plate { padding: 12px; }
.card.pack .kicker { color: var(--rose); }
.card.pack .card-title { font-size: 1.55rem; }
.card.pack .card-foot { flex-wrap: wrap; }
.card.pack .card-foot .btn { flex: 1 1 150px; text-align: center; justify-content: center; }
.plate-count {
  position: absolute; right: 10px; top: 10px; font: 600 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(10, 7, 8, .78); border: 1px solid var(--gold-line); padding: .5rem .65rem;
}
.card-pack { font-size: .8rem; color: var(--muted); margin: -.4rem 0 .9rem; line-height: 1.5; }
.card-pack a { color: var(--gold-2); }
.singles-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.1rem;
}
.singles-cta .fine { margin: 0; max-width: 60ch; }
#singles-section .lede { margin-bottom: 1.2rem; }
.hero-slim { padding-bottom: 0; }
.nav a[aria-current="page"] { color: var(--gold-2); }

/* ---------- Custom requests ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .55rem .9rem; border: 1px solid var(--rose);
  color: var(--rose); text-decoration: none; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  animation: pill-glow 2.6s var(--ease) infinite;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.pill:hover { background: var(--rose); color: var(--bg); }
@keyframes pill-glow { 50% { box-shadow: 0 0 22px rgba(201, 122, 138, .45); } }
.request {
  display: grid; gap: 1.6rem; padding: clamp(1.4rem, 4vw, 2.6rem); background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-line); box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 6px var(--gold-line);
}
@media (min-width: 860px) { .request { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 2.6rem; align-items: start; } }
.request h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; margin: .3rem 0 .7rem; }
.request h2 em { font-style: italic; color: var(--gold-2); }
.request .kicker { color: var(--rose); }
.request .lede { margin-bottom: 1rem; }
.request-points { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.request-points li { color: var(--muted); font-size: .9rem; padding-left: 1.1rem; position: relative; }
.request-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.request-form { display: grid; gap: .9rem; }
.request-form label { display: grid; gap: .4rem; font: 600 .66rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.request-form label .fine { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: .3rem; }
.request-form textarea, .request-form input[type="text"] {
  width: 100%; font: 1rem/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: .8rem .9rem; letter-spacing: 0; text-transform: none;
}
.request-form textarea:focus, .request-form input:focus { outline: none; border-color: var(--gold); }
.request-form textarea { resize: vertical; min-height: 120px; }
.request-check { display: flex !important; gap: .6rem; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font: .82rem/1.5 var(--sans) !important; color: var(--muted); }
.request-check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.request-done { padding: 1.4rem; border: 1px solid var(--gold); text-align: center; }
.request-done h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.request-strip { border-top: 0; margin-top: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--rose-2); }
.request-strip p { margin: 0; }
.request-strip b { font: 400 1.15rem/1.3 var(--serif); color: var(--ink); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.3rem;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-2); border-radius: 0;
  font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s; white-space: nowrap;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold-2); }
.btn[aria-busy="true"], .btn:disabled { opacity: .6; cursor: progress; pointer-events: none; }
.btn-big { min-height: 58px; font-size: .9rem; width: 100%; white-space: normal; text-align: center; line-height: 1.25; }

/* ---------- How it works / What you get ---------- */
.steps { display: grid; gap: 1.6rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }
.step { border-top: 1px solid var(--gold-line); padding-top: 1rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: .7rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.what { display: grid; gap: 1rem 2.4rem; margin-top: 2.4rem; border-top: 1px solid var(--gold-line); padding-top: 1.4rem; }
@media (min-width: 760px) { .what { grid-template-columns: 1fr 2fr; } }
.what h3 { font-size: 1.5rem; }
.what ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem 1.6rem; }
@media (min-width: 560px) { .what ul { grid-template-columns: 1fr 1fr; } }
.what li { color: var(--muted); font-size: .92rem; padding-left: 1.1rem; position: relative; }
.what li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 2.4rem var(--gutter) 3.2rem;
  border-top: 1px solid var(--gold-line); color: var(--muted); font-size: .82rem;
}
.foot-grid { display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.foot .wordmark { margin-bottom: .8rem; }
.foot .wordmark b { font-size: 1rem; }
.foot .wordmark i { font-size: .5rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: 0; padding: 0; }
.foot-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; letter-spacing: .06em; }
.foot-links a:hover { color: var(--gold-2); }
.disclosure { color: var(--muted); margin-bottom: .4rem; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-top: .6rem; }
.follow .fine { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .64rem; }
.follow a { color: var(--gold-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; letter-spacing: .06em; }
.follow a:hover { text-decoration: underline; }
.foot .copy { margin: 1.6rem 0 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Coin picker: bottom sheet on phones, centred dialog on desktop ---------- */
body.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(4, 2, 3, .74); }
.sheet-panel {
  position: relative; width: 100%; max-height: 92vh; overflow: auto; background: var(--panel);
  border: 1px solid var(--line); border-bottom: 0; box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 6px var(--gold-line), 0 -20px 60px rgba(0, 0, 0, .6);
  padding: 1.4rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); animation: sheet-up .3s var(--ease);
}
@keyframes sheet-up { from { transform: translateY(28px); opacity: 0; } }
@media (min-width: 760px) {
  .sheet { align-items: center; padding: 1.5rem; }
  .sheet-panel { width: min(540px, 100%); max-height: 90vh; border-bottom: 1px solid var(--line); padding: 2rem 2rem 1.6rem; }
}
.sheet-close {
  position: absolute; top: .7rem; right: .7rem; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 1.5rem/1 var(--serif); cursor: pointer;
}
.sheet-close:hover { border-color: var(--gold); color: var(--gold-2); }
.sheet-title { font-size: 1.6rem; margin: 0 2.8rem .3rem 0; line-height: 1.15; }
.sheet-price { font-family: var(--serif); color: var(--gold-2); font-size: 1.25rem; margin: 0 0 1.2rem; }
.sheet-lead { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 .7rem; }
.coins {
  display: grid; gap: .5rem; max-height: min(46vh, 420px); overflow: auto; overscroll-behavior: contain;
  padding: 2px 2px 2px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch;
}
.coin {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .1rem .8rem; min-height: 56px;
  padding: .6rem .9rem; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s;
}
.coin:hover { border-color: var(--gold-line); }
.coin.is-on { border-color: var(--gold); background: var(--panel-2); }
.coin.is-off { opacity: .5; cursor: not-allowed; }
.coin input { grid-row: 1 / span 2; margin: 0; width: 18px; height: 18px; accent-color: var(--gold); }
.coin-name { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.coin-net { grid-column: 2; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.coin-min { grid-column: 3; grid-row: 1 / span 2; font-size: .66rem; color: var(--muted); text-align: right; max-width: 11ch; letter-spacing: .04em; }
.sheet-note { margin: 1rem 0 0; }
.sheet-actions {
  margin: .4rem 0 .4rem; padding-top: .6rem; display: grid; gap: .6rem;
  position: sticky; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--panel);
}
.sheet-legal { margin: .8rem 0 0; font-size: .7rem; line-height: 1.55; }

/* ---------- Order page ---------- */
.order { max-width: 1040px; margin: 0 auto; padding: clamp(1.6rem, 5vw, 4rem) var(--gutter); }
.order-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; }
#order-id { text-transform: none; letter-spacing: 0; font: .82rem/1.3 var(--mono); color: var(--ink); user-select: all; -webkit-user-select: all; }
.copy-id {
  min-height: 36px; padding: .4rem .7rem; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 600 .6rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s;
}
.copy-id:hover { border-color: var(--gold); color: var(--gold-2); }
.order-card { display: grid; gap: 1.6rem; border: 1px solid var(--line); background: var(--panel); padding: clamp(1.1rem, 3vw, 2.2rem); margin-top: 1rem; }
.order-card > div { min-width: 0; }
@media (min-width: 820px) { .order-card { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: start; gap: 2.6rem; } }
.order-plate { display: none; padding: 8px; border: 1px solid var(--line); max-width: 280px; }
.order-plate.is-loaded { display: block; }
.order-plate img { width: 100%; height: auto; box-shadow: inset 0 0 0 1px var(--gold-line); }
.order-product { font-family: var(--serif); font-size: 1.35rem; margin: .8rem 0 .2rem; line-height: 1.2; }
.order-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.status-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .7rem; }
.pay-amount {
  font-family: var(--serif); font-size: clamp(1.9rem, 5.5vw, 3rem); color: var(--gold-2); line-height: 1.1;
  overflow-wrap: anywhere; margin: 0 0 .2rem;
}
.pay-net { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.pay-label { font: 600 .64rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .5rem; }
.addr { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.addr code {
  flex: 1 1 220px; min-width: 0; font: .95rem/1.5 var(--mono); overflow-wrap: anywhere; padding: .8rem .9rem;
  border: 1px solid var(--gold-line); background: var(--bg); color: var(--ink); user-select: all; -webkit-user-select: all;
}
.memo { border: 1px solid var(--rose); padding: .9rem 1rem 1rem; margin-top: 1.2rem; }
.memo .pay-label { margin-top: 0; color: var(--rose); }
.memo-warn { color: var(--rose); font-size: .86rem; margin: .7rem 0 0; }
.pay-grid { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
@media (min-width: 560px) { .pay-grid { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
.qr { width: 188px; max-width: 100%; padding: 8px; background: #fff; border: 1px solid var(--gold-line); }
.qr svg { width: 100%; height: auto; }
.countdown { margin: 0 0 .7rem; font-size: .92rem; color: var(--muted); }
.countdown b { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.countdown.is-over { color: var(--rose); }
.status-line {
  display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
  margin: 0 0 1.3rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.status-line[hidden] { display: none; }
.status-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; animation: blink 2.2s var(--ease) infinite; }
.status-line.is-seen::before { background: var(--gold-2); animation: ring 1.5s var(--ease) infinite; }
.status-line.is-done::before, .status-line.is-bad::before { animation: none; }
.status-line.is-bad::before { background: var(--rose); }
@keyframes blink { 50% { opacity: .3; } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(232, 201, 138, .55); } to { box-shadow: 0 0 0 12px rgba(232, 201, 138, 0); } }
.order-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.order-actions-stack { flex-direction: column; align-items: stretch; max-width: 460px; }
.order-actions-stack .btn-big { display: flex; flex-direction: column; align-items: center; }
.order-actions .btn-big small { display: block; font: 400 .7rem/1.3 var(--sans); letter-spacing: .06em; text-transform: none; margin-top: .25rem; opacity: .8; }
.order dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0; font-size: .88rem; }
.order dt { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; align-self: center; }
.order dd { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 72ch; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 3rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: .4rem 0 1.2rem; line-height: 1.1; }
.legal h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--gold-line); }
.legal h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; color: var(--gold-2); }
.legal p, .legal li, .legal dd { color: var(--muted); font-size: .97rem; line-height: 1.65; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin: .35rem 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .updated { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.legal dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.4rem; margin: 0 0 1rem; }
.legal dt { color: var(--ink); font-size: .9rem; }
.legal dd { margin: 0; }
mark.todo { background: var(--gold); color: var(--bg); padding: 0 .3em; font-weight: 600; border-radius: 2px; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: clamp(2rem, 6vw, 5rem) var(--gutter); }
.nf h1 { font-size: clamp(4rem, 16vw, 9rem); color: var(--gold); line-height: 1; }
.nf p { color: var(--muted); font-family: var(--serif); font-size: 1.25rem; max-width: 36ch; margin: .6rem auto 1.6rem; }
.nf .hero-cta { justify-content: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .pulse::after { width: 100%; background: var(--gold-line); }
}
