/* Warren Currency — The Compounding Mint
   Self-hosted OFL faces only. No Tailwind, no icon fonts. */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-latin-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Eczar";
  src: url("../fonts/eczar-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Eczar";
  src: url("../fonts/eczar-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Eczar";
  src: url("../fonts/eczar-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Eczar";
  src: url("../fonts/eczar-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Eczar";
  src: url("../fonts/eczar-latin-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("../fonts/imfell-english-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --void: #070504;
  --velvet: #100805;
  --ember: #e85d20;
  --ember-deep: #7a1c0a;
  --gold: #ffd56a;
  --gold-hot: #ffb000;
  --gold-pale: #ffe9a0;
  --brass: #c9a246;
  --brass-deep: #8a6a28;
  --wax: #9b1c2c;
  --wax-hot: #c42b3a;
  --wax-deep: #5a0c16;
  --ledger: #f3e6c8;
  --ledger-ink: #2a2214;
  --cream: #efe0c0;
  --dock-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--void);
  color: var(--cream);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--void);
  min-height: 100svh;
  overflow-x: clip;
  padding-bottom: calc(var(--dock-h) + var(--safe-b) + 8px);
}
img { max-width: 100%; height: auto; display: block; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -40px; z-index: 80;
  background: var(--ledger); color: var(--ledger-ink);
  padding: 6px 10px; border-radius: 4px;
}
.skip:focus { top: 8px; }

/* Motion freeze */
@media (prefers-reduced-motion: reduce) {
  html:not(.want-motion) *,
  html:not(.want-motion) *::before,
  html:not(.want-motion) *::after {
    animation-play-state: paused !important;
  }
}
html.still *, html.still *::before, html.still *::after {
  animation-play-state: paused !important;
}

/* Grain overlay */
body::before {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0; z-index: 40;
  background-image: url("../img/grain.png");
  background-size: 256px 256px;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* Toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + var(--safe-b) + 14px);
  transform: translateX(-50%) translateY(16px);
  z-index: 70;
  max-width: min(92vw, 420px);
  background: var(--ledger);
  color: var(--ledger-ink);
  font-family: "IM Fell English", "Eczar", serif;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 10px 16px 12px;
  border-radius: 3px 8px 3px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(42,34,20,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
html.still #toast { transition: none; }

.click-canvas {
  position: fixed; inset: 0; z-index: 35;
  pointer-events: none; width: 100%; height: 100%;
}

.motion-toggle {
  position: fixed;
  top: calc(10px + var(--safe-t));
  left: 10px;
  z-index: 60;
  font-family: "Figtree", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: rgba(16,8,5,0.72);
  border: 1px solid rgba(201,162,70,0.45);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.motion-toggle[aria-pressed="false"] {
  color: var(--ledger);
  border-color: rgba(243,230,200,0.35);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(36px + var(--safe-t)) 16px calc(var(--dock-h) + var(--safe-b) + 18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0a0706 url("../img/env-hero.webp") center / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 80%, rgba(255,176,0,0.22), transparent 55%),
    linear-gradient(180deg, rgba(7,5,4,0.35) 0%, rgba(7,5,4,0.15) 40%, rgba(7,5,4,0.7) 100%);
}
.scene-canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; pointer-events: none;
}

.hero-drips, .hero-sparks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.drip {
  position: absolute;
  width: 10px; height: 28px;
  background: radial-gradient(circle at 50% 80%, #fff3c0 0%, var(--gold-hot) 40%, var(--ember) 100%);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  filter: drop-shadow(0 0 6px var(--gold-hot));
  animation: drip-fall 2.8s linear infinite;
  opacity: 0.9;
}
.drip::after {
  content: "";
  position: absolute; left: 50%; top: -10px;
  width: 3px; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(var(--gold-pale), var(--gold-hot));
  border-radius: 2px;
}
.d1 { left: 14%; top: 42%; animation-delay: -0.4s; }
.d2 { left: 22%; top: 58%; animation-delay: -1.3s; width: 8px; height: 22px; }
.d3 { left: 38%; top: 62%; animation-delay: -2.1s; }
.d4 { left: 8%;  top: 70%; animation-delay: -0.9s; width: 7px; height: 18px; }
.d5 { left: 30%; top: 48%; animation-delay: -1.8s; width: 9px; height: 24px; }
@keyframes drip-fall {
  0%   { transform: translateY(-20px) scaleY(0.7); opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(140px) scaleY(1.2); opacity: 0; }
}

.spark {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold-pale);
  border-radius: 50%;
  box-shadow: 0 0 8px 3px var(--gold-hot);
  animation: spark-pop 2.4s ease-in-out infinite;
}
.s1 { left: 28%; top: 54%; animation-delay: -0.2s; }
.s2 { left: 18%; top: 66%; animation-delay: -0.8s; }
.s3 { left: 42%; top: 48%; animation-delay: -1.4s; }
.s4 { left: 12%; top: 44%; animation-delay: -1.9s; width: 3px; height: 3px; }
.s5 { left: 35%; top: 72%; animation-delay: -0.5s; }
.s6 { left: 50%; top: 60%; animation-delay: -1.1s; }
.s7 { left: 24%; top: 38%; animation-delay: -1.6s; width: 4px; height: 4px; }
.s8 { left: 6%;  top: 58%; animation-delay: -2.0s; }
@keyframes spark-pop {
  0%, 100% { opacity: 0.15; transform: translateY(0) scale(0.6); }
  40% { opacity: 1; transform: translateY(-18px) scale(1.2); }
  70% { opacity: 0.5; }
}

.unofficial-chip {
  position: relative; z-index: 5;
  align-self: flex-end;
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ledger);
  background: rgba(155,28,44,0.82);
  padding: 5px 10px;
  border-radius: 2px 8px 2px 8px;
  box-shadow: 0 2px 0 var(--wax-deep);
}

.hero-stage {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px 28px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.press-cradle {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.cradle-bloom {
  position: absolute;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(255,181,0,0.55) 0%, rgba(232,93,32,0.2) 40%, transparent 68%);
  animation: bloom-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
  filter: blur(8px);
}
@keyframes bloom-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-coin {
  position: relative;
  width: min(38vw, 380px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.65)) drop-shadow(0 0 22px rgba(255,176,0,0.35));
  transform: rotate(-8deg);
  animation: coin-idle 5.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes coin-idle {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-8px); }
}
.molten-lip {
  position: absolute;
  bottom: 4%;
  left: 10%;
  right: 10%;
  height: 28px;
  background: linear-gradient(180deg, #ffe9a0, #ffb000 40%, #e85d20);
  border-radius: 40% 40% 50% 50%;
  filter: blur(1px);
  box-shadow: 0 0 24px 8px rgba(255,176,0,0.55);
  animation: lip-glow 2.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes lip-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 4px;
  font-family: "IM Fell English", "Eczar", serif;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
h1 {
  margin: 0;
  line-height: 0.86;
  color: var(--gold-pale);
  text-shadow: 0 2px 0 #5a3a10, 0 12px 28px rgba(0,0,0,0.55);
}
h1 .n1, h1 .n2 {
  display: block;
  font-family: "Cinzel Decorative", "Eczar", serif;
  font-weight: 700;
}
h1 .n1 { font-size: clamp(2.4rem, 7vw, 5.6rem); }
h1 .n2 { font-size: clamp(1.7rem, 5.2vw, 4.1rem); margin-left: 0.18em; color: var(--gold); }
.symbol-line, .meta-line {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--cream);
}
.symbol-line b {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  color: var(--gold-pale);
  letter-spacing: 0.12em;
}
.lede {
  margin: 8px 0 0;
  max-width: 34em;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(239,224,192,0.88);
}

/* Workbench props — each a different physical shape */
.workbench {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 16px;
  margin-top: 16px;
}

.prop { text-decoration: none; color: inherit; display: block; position: relative; }

.prop-buy {
  width: 132px; height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #e25563, var(--wax-hot) 38%, var(--wax) 62%, var(--wax-deep));
  box-shadow:
    inset 0 -8px 12px rgba(0,0,0,0.35),
    inset 0 6px 8px rgba(255,200,200,0.2),
    0 8px 0 var(--wax-deep),
    0 14px 24px rgba(0,0,0,0.4);
  transform: rotate(-7deg);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  z-index: 2;
}
.prop-buy::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(255,220,180,0.25);
  pointer-events: none;
}
.prop-buy .wax-face {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05;
  text-align: center;
  color: #fff6e8;
  text-shadow: 0 1px 0 #5a0c16;
  letter-spacing: 0.02em;
  padding: 0 10px;
}
.prop-buy:hover, .prop-buy:focus-visible { filter: brightness(1.08); }

.prop-ca {
  width: min(100%, 280px);
  background:
    repeating-linear-gradient(transparent, transparent 21px, rgba(42,34,20,0.12) 21px, rgba(42,34,20,0.12) 22px),
    linear-gradient(180deg, #f7edd3, var(--ledger));
  color: var(--ledger-ink);
  padding: 8px 10px 10px 14px;
  clip-path: polygon(0 0, 97% 0, 100% 8%, 99% 100%, 4% 100%, 0 88%);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  transform: rotate(1.5deg);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label copy"
    "addr  copy";
  gap: 2px 10px;
  align-items: center;
}
.ca-label {
  grid-area: label;
  font-family: "IM Fell English", serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a5430;
}
.ca-text {
  grid-area: addr;
  font-family: "IM Fell English", "Eczar", serif;
  font-size: 0.92rem;
  line-height: 1.2;
  word-break: break-all;
}
.ca-copy {
  grid-area: copy;
  font-family: "Figtree", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1408;
  background: linear-gradient(180deg, #e8c56b, var(--brass) 55%, var(--brass-deep));
  padding: 8px 10px;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,230,0.5), 0 2px 0 #5a4314;
}
.ca-anti {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: #6a5430;
  margin-top: 2px;
}

.prop-chart {
  width: 168px; height: 48px;
  background: linear-gradient(180deg, #d8b25a, var(--brass) 40%, var(--brass-deep));
  border-radius: 24px 8px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 6px;
  box-shadow: inset 0 1px 0 rgba(255,240,180,0.45), 0 6px 0 #5a4314, 0 10px 16px rgba(0,0,0,0.35);
  transform: rotate(-3deg);
  color: #1c1408;
}
.spy-lens {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #9fd7ff, #1a3a58 60%, #0a1520);
  box-shadow: inset 0 0 0 3px #8a6a28, 0 0 8px rgba(160,220,255,0.4);
  flex: 0 0 auto;
}
.spy-label {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spy-ring {
  width: 12px; height: 28px;
  border-radius: 2px;
  background: linear-gradient(#f0d78a, #8a6a28);
  flex: 0 0 auto;
}

.prop-x {
  width: 72px; height: 72px;
  background:
    linear-gradient(135deg, #c42b3a, var(--wax) 50%, var(--wax-deep));
  border-radius: 8px;
  transform: rotate(8deg);
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 0 rgba(255,200,200,0.2), 0 6px 0 var(--wax-deep), 0 10px 16px rgba(0,0,0,0.35);
  color: #fff6e8;
}
.x-cut {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
}
.x-label {
  position: absolute;
  bottom: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.prop-tg {
  width: 52px; height: 108px;
  background: linear-gradient(90deg, #8a6a28, #e8c56b 40%, #c9a246 60%, #8a6a28);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-shadow: inset 2px 0 4px rgba(255,240,180,0.35), inset -2px 0 4px rgba(0,0,0,0.25), 0 8px 14px rgba(0,0,0,0.35);
  transform: rotate(4deg);
  color: #1c1408;
}
.prop-tg .cap {
  width: 58px; height: 14px;
  background: linear-gradient(180deg, #f0d78a, #8a6a28);
  border-radius: 4px;
  flex: 0 0 auto;
}
.tg-band {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}

/* ========== DOCK ========== */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-b));
  background:
    linear-gradient(180deg, rgba(40,28,14,0.92), rgba(16,10,6,0.96));
  border-top: 2px solid rgba(201,162,70,0.45);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.45);
}
.dock > * {
  text-decoration: none;
  color: var(--gold-pale);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(201,162,70,0.3);
}
.dock-buy {
  background: radial-gradient(circle at 50% 30%, var(--wax-hot), var(--wax));
  color: #fff6e8;
  border-radius: 999px;
  min-width: 88px;
  border-color: #5a0c16;
  font-size: 0.75rem;
}
.dock-ca {
  color: var(--ledger-ink);
  background: var(--ledger);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  border: 0;
}
.dock-chart {
  border-radius: 999px 6px 6px 999px;
  color: #1c1408;
  background: linear-gradient(180deg, #e8c56b, var(--brass-deep));
}
.dock-x {
  width: 40px; padding: 0;
  border-radius: 6px;
  background: var(--wax);
}
.dock-tg {
  border-radius: 8px;
  color: #1c1408;
  background: linear-gradient(90deg, #8a6a28, #e8c56b, #8a6a28);
}

/* ========== SCENES ========== */
.scene {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  padding: 48px 18px 72px;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.scene-bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: #0a0706;
  background-size: cover;
  background-position: center;
}
.scene-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,5,4,0.55) 0%, rgba(7,5,4,0.12) 40%, rgba(7,5,4,0.72) 100%);
}
.scene-press .scene-bg { background-image: url("../img/env-press.webp"); }
.scene-molten .scene-bg { background-image: url("../img/env-molten.webp"); background-position: center 40%; }
.scene-rail .scene-bg { background-image: url("../img/env-rail.webp"); }
.scene-stacks .scene-bg { background-image: url("../img/env-stacks.webp"); }
.scene-hall .scene-bg { background-image: url("../img/env-hall.webp"); }
.scene-tower .scene-bg { background-image: url("../img/env-tower.webp"); background-position: center 30%; }
.scene-grotto .scene-bg { background-image: url("../img/env-grotto.webp"); }
.scene-dispatch .scene-bg { background-image: url("../img/env-dispatch.webp"); }

.scene-copy {
  position: relative; z-index: 4;
  width: min(720px, 100%);
  margin-bottom: 16px;
}
.kicker {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.scene h2 {
  margin: 2px 0 8px;
  font-family: "Eczar", "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--gold-pale);
  text-shadow: 0 3px 16px rgba(0,0,0,0.7);
}
.blurb {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(239,224,192,0.92);
  max-width: 40em;
}
.blurb strong { color: var(--gold); font-weight: 700; }

/* Press */
.press-stage {
  position: relative; z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: end;
  min-height: 280px;
  width: min(860px, 100%);
}
.lever {
  width: 84px; height: 180px;
  position: relative;
  align-self: center;
}
.lever-arm {
  position: absolute;
  left: 36px; top: 10px;
  width: 14px; height: 130px;
  background: linear-gradient(90deg, #6a6a6a, #d0d0d0, #4a4a4a);
  border-radius: 7px;
  transform-origin: 50% 100%;
  transition: transform 0.18s ease-in;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.lever.is-pulled .lever-arm { transform: rotate(48deg); }
.lever-knob {
  position: absolute;
  left: 18px; top: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e25563, var(--wax));
  color: #fff6e8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--wax-deep);
  z-index: 1;
}
.die-well {
  position: relative;
  width: min(280px, 56vw);
  height: min(280px, 56vw);
  justify-self: center;
  display: grid; place-items: center;
}
.press-ram {
  position: absolute;
  top: -30px;
  width: 70%; height: 40px;
  background: linear-gradient(180deg, #888, #222);
  border-radius: 6px 6px 2px 2px;
  transform: translateY(-80px);
  transition: transform 0.16s ease-in;
  z-index: 3;
  box-shadow: 0 8px 12px rgba(0,0,0,0.5);
}
.die-well.is-stamping .press-ram { transform: translateY(20px); }
.die-coin {
  width: 70%; height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
  transform: scale(1);
  transition: transform 0.12s ease;
}
.die-well.is-stamping .die-coin { transform: scale(1.06, 0.72); }
.press-bloom {
  position: absolute; inset: -10%;
  background: radial-gradient(circle, rgba(255,230,150,0.85), transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.die-well.is-stamping .press-bloom { opacity: 1; }
.press-tray {
  min-width: 90px;
  min-height: 90px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px;
}
.press-tray img {
  width: 52px; height: 52px;
  animation: tray-drop 0.55s cubic-bezier(.2,1.4,.3,1) both;
}
@keyframes tray-drop {
  from { transform: translateY(-80px) scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Molten hotspots */
.crucible-hotspots {
  position: absolute; inset: 0; z-index: 5;
}
.crucible {
  position: absolute;
  width: 18%; height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,200,80,0.18), transparent 70%);
  color: var(--gold-pale);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #000;
}
.crucible span {
  background: rgba(16,8,5,0.55);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,70,0.4);
}
.crucible.c1 { left: 8%; top: 42%; }
.crucible.c2 { left: 38%; top: 28%; }
.crucible.c3 { right: 6%; top: 32%; left: auto; }
.crucible.is-pouring { filter: brightness(1.3); }
.pour-stream {
  position: absolute;
  width: 10px;
  background: linear-gradient(#fff3c0, #ffb000, #e85d20);
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 0 16px var(--gold-hot);
  animation: pour-out 0.8s ease-out both;
  z-index: 6;
}
@keyframes pour-out {
  from { height: 0; opacity: 1; }
  to { height: 140px; opacity: 0.85; }
}

/* Rail */
.rail-stage {
  position: absolute; inset: 0; z-index: 4;
}
.rail-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.rail-coin {
  position: absolute;
  width: 88px; height: 88px;
  left: 0; top: 0;
  margin-left: -44px; margin-top: -44px;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.6));
  will-change: transform;
  pointer-events: none;
  z-index: 5;
}
.toy-btn {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1408;
  background: linear-gradient(180deg, #e8c56b, var(--brass-deep));
  padding: 10px 16px;
  border-radius: 3px 10px;
  box-shadow: 0 4px 0 #5a4314;
}
.rail-send {
  position: absolute;
  right: 18px; bottom: 24px;
  z-index: 6;
}

/* Stacks */
.stack-row {
  position: relative; z-index: 4;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 12px;
  min-height: 260px;
  width: 100%;
  padding: 0 4px 8px;
}
.coin-stack {
  position: relative;
  width: 96px;
  height: 240px;
  border: 0;
  background: none;
  cursor: pointer;
}
.coin-stack img {
  position: absolute;
  left: 50%;
  width: 92px; height: 92px;
  margin-left: -46px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.45));
  pointer-events: none;
}

/* Hall frieze */
.frieze-frame {
  position: relative; z-index: 4;
  width: min(920px, 100%);
  margin: 0 auto 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #3a2a12, #1a1208);
  box-shadow:
    0 0 0 2px #8a6a28,
    0 0 0 6px #1a1208,
    0 20px 40px rgba(0,0,0,0.55);
}
.frieze-banner {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Tower */
.scene-tower {
  justify-content: flex-end;
  align-items: center;
}
.tower-col {
  position: relative; z-index: 4;
  width: min(280px, 70vw);
  height: min(68svh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  background: none;
}
.tower-coins {
  position: absolute;
  inset: 0 0 72px;
  pointer-events: none;
}
.tower-coins img {
  position: absolute;
  left: 50%;
  width: 140px;
  margin-left: -70px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.tower-plaque {
  position: relative;
  z-index: 2;
  background: var(--ledger);
  color: var(--ledger-ink);
  font-family: "IM Fell English", serif;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  padding: 8px 12px;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.tower-plaque em { font-style: italic; font-size: 0.78rem; color: #6a5430; display: block; }
.tower-col.is-rattle .tower-coins { animation: rattle 0.5s ease-in-out; }
@keyframes rattle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-1deg); }
  75% { transform: translateX(6px) rotate(1deg); }
}

/* Grotto */
.grotto-hits {
  position: absolute; inset: 0; z-index: 5;
}
.stal {
  position: absolute;
  width: 12%; height: 28%;
  top: 4%;
  background: transparent;
}
.stal.s1 { left: 6%; }
.stal.s2 { left: 24%; }
.stal.s3 { left: 44%; }
.stal.s4 { left: 62%; }
.stal.s5 { left: 80%; }
.gold-drop {
  position: absolute;
  width: 16px; height: 22px;
  background: radial-gradient(circle at 50% 70%, #fff3c0, #ffb000 50%, #e85d20);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  box-shadow: 0 0 12px var(--gold-hot);
  pointer-events: none;
  z-index: 6;
}

/* Dispatch */
.dispatch-props {
  position: relative; z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 20px;
}
.disclaimer {
  position: relative; z-index: 4;
  width: min(720px, 100%);
  background: rgba(16,8,5,0.78);
  border-left: 4px solid var(--wax);
  padding: 14px 16px;
  color: var(--ledger);
  font-size: 0.92rem;
  line-height: 1.45;
}
.disclaimer p { margin: 0 0 8px; }
.disclaimer .fine { margin: 0; font-size: 0.78rem; color: var(--brass); }

/* ========== PHONE first screen fit ========== */
@media (max-width: 720px) {
  .hero {
    justify-content: flex-start;
    padding-top: calc(42px + var(--safe-t));
    padding-bottom: calc(var(--dock-h) + var(--safe-b) + 10px);
  }
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 6px;
    justify-items: center;
    text-align: center;
  }
  .press-cradle { order: 0; }
  .hero-copy { order: 1; }
  .hero-coin { width: min(42vw, 148px); }
  h1 .n1 { font-size: 2.15rem; }
  h1 .n2 { font-size: 1.55rem; margin-left: 0; }
  .eyebrow { font-size: 0.9rem; }
  .lede { margin-left: auto; margin-right: auto; font-size: 0.85rem; }
  .unofficial-chip { font-size: 0.58rem; align-self: center; }
  .workbench {
    justify-content: center;
    margin-top: 10px;
    gap: 10px 12px;
  }
  .prop-buy { width: 100px; height: 100px; }
  .prop-buy .wax-face { font-size: 0.9rem; }
  .prop-ca { width: min(100%, 320px); transform: none; text-align: left; }
  .prop-chart { width: 140px; height: 42px; }
  .prop-x { width: 58px; height: 58px; }
  .x-cut { font-size: 1.4rem; }
  .prop-tg { width: 42px; height: 90px; }
  .press-stage { grid-template-columns: auto 1fr; }
  .press-tray { grid-column: 1 / -1; min-height: 60px; }
  .rail-coin { width: 64px; height: 64px; margin-left: -32px; margin-top: -32px; }
  .coin-stack { width: 72px; height: 210px; }
  .coin-stack img { width: 70px; height: 70px; margin-left: -35px; }
  .tower-coins img { width: 110px; margin-left: -55px; }
  .dock { gap: 6px; padding-left: 6px; padding-right: 6px; }
  .dock > * { padding: 0 6px; font-size: 0.62rem; }
  .dock-buy { min-width: 74px; }
}

@media (max-width: 400px) {
  .hero-coin { width: 128px; }
  h1 .n1 { font-size: 1.95rem; }
  h1 .n2 { font-size: 1.4rem; }
  .prop-buy { width: 90px; height: 90px; }
  .symbol-line, .meta-line { font-size: 0.82rem; }
}


/* 16:9 plate that matches background-size: cover; background-position: center */
.plate-align {
  position: absolute;
  aspect-ratio: 16 / 9;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}
.plate-align button,
.plate-align a,
.plate-align .die-well,
.plate-align .press-tray,
.plate-align .frieze-frame,
.plate-align .coin-stack,
.plate-align .crucible,
.plate-align .lever {
  pointer-events: auto;
}

.scene-press,
.scene-rail,
.scene-hall,
.scene-stacks {
  justify-content: flex-start;
}
.scene-press .scene-copy,
.scene-rail .scene-copy,
.scene-hall .scene-copy,
.scene-stacks .scene-copy {
  z-index: 6;
  background: linear-gradient(90deg, rgba(7,5,4,0.82), rgba(7,5,4,0.25) 70%, transparent);
  padding: 10px 18px 14px 4px;
  margin-bottom: 0;
  pointer-events: none;
}

/* Press: coin sits on the brass die */
.press-stage {
  display: block;
  min-height: 0;
  width: auto;
  grid-template-columns: none;
}
.lever {
  position: absolute;
  left: 16%;
  top: 48%;
  width: 84px;
  height: 180px;
  align-self: auto;
}
.die-well {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 16%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  justify-self: auto;
  min-width: 140px;
}
.press-ram {
  top: -8%;
  width: 78%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #666, #1a1a1a 70%);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.16s ease-in, opacity 0.12s ease;
}
.die-well.is-stamping .press-ram { transform: translateY(35%); opacity: 0.9; }
.press-tray {
  position: absolute;
  left: 64%;
  top: 72%;
  min-width: 90px;
  min-height: 90px;
}

/* Hall: official banner sits in the wall recess */
.hall-plate { z-index: 4; }
.frieze-frame {
  position: absolute;
  left: 23.1%;
  top: 44.8%;
  width: 53.3%;
  height: 17.6%;
  margin: 0;
  padding: 6px 8px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frieze-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Stacks on pedestals (desktop); floor row on small screens */
.stack-row {
  min-height: 0;
  padding: 0;
}
.stack-row.plate-align {
  display: block;
}
.coin-stack {
  position: absolute;
  width: 11%;
  height: 28%;
  min-width: 72px;
}
.coin-stack img {
  width: 100%;
  height: auto;
  margin-left: 0;
  left: 0;
  transform: none;
}
.coin-stack img { left: 50%; margin-left: 0; transform: translateX(-50%); width: 92%; height: auto; }

/* front-left, mid-left, front-center, mid-right, front-right */
.coin-stack:nth-child(1) { left: 9%; top: 52%; height: 30%; width: 14%; }
.coin-stack:nth-child(2) { left: 25%; top: 42%; height: 26%; width: 10%; }
.coin-stack:nth-child(3) { left: 43%; top: 58%; height: 32%; width: 15%; }
.coin-stack:nth-child(4) { left: 72%; top: 42%; height: 26%; width: 10%; }
.coin-stack:nth-child(5) { left: 80%; top: 54%; height: 30%; width: 14%; }

/* Molten pour targets on the 16:9 plate */
.crucible-hotspots.plate-align { z-index: 5; }
.crucible.c1 { left: 12%; top: 30%; width: 22%; height: 34%; }
.crucible.c2 { left: 40%; top: 18%; width: 16%; height: 28%; }
.crucible.c3 { left: 68%; right: auto; top: 20%; width: 22%; height: 36%; }

.rail-send {
  bottom: calc(var(--dock-h) + var(--safe-b) + 14px);
  right: 18px;
}

.dock-ca { min-width: 44px; }

@media (max-width: 720px) {
  .stack-row.plate-align {
    position: absolute;
    inset: auto 0 0 0;
    left: 0; top: auto; right: 0; bottom: calc(var(--dock-h) + var(--safe-b));
    transform: none;
    width: 100%;
    height: 230px;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 5;
  }
  .coin-stack,
  .coin-stack:nth-child(n) {
    position: relative;
    left: auto; top: auto;
    width: 70px;
    height: 200px;
  }
  .press-stage.plate-align {
    /* keep 16:9 alignment on phone too */
  }
  .die-well { min-width: 110px; }
  .lever { left: 4%; top: 50%; transform: scale(0.85); transform-origin: top left; }
}
