@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/source-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/source-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --serif: "Source Serif 4", "Baskerville", serif;
  --sans: "Source Sans 3", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --navy: #101a2a;
  --navy-deep: #080f1d;
  --ink: #1a2636;
  --paper: #f6f3eb;
  --crimson: #a8282c;
}

html { scroll-behavior: smooth; }
body { font-size: 17px; overflow-x: clip; }

/* Fixed kinetic scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #a48140, #e4b965, #fff1c9);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
}

.ceremony-strap {
  background: #f4efe2;
  color: #182334;
  text-align: center;
  padding: .35rem .7rem;
  text-transform: uppercase;
  font: 700 .66rem/1.35 var(--sans);
  letter-spacing: .16em;
}
.ceremony-strap span { color: #9b682e; margin-inline: .5rem; }
.ceremony-opening { position: relative; }
.ceremony-mast {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  background: linear-gradient(#080d15c4, #0b111833 80%, transparent);
}
.ceremony-mast .issue {
  width: calc(100% - clamp(32px, 6.3vw, 130px));
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: .8rem;
  border-bottom: 1px solid #fff8;
}
.ceremony-mast .brand {
  justify-self: center;
  font: 400 clamp(1rem, 2vw, 1.58rem)/1.05 var(--serif);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  gap: .55rem;
}
.ceremony-mast .brand img { width: 38px; height: 38px; }
.ceremony-mast .site-nav { gap: clamp(8px, 2.2vw, 33px); }
.ceremony-mast .site-nav a {
  min-height: 46px;
  color: #fff8ea;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease;
}
.ceremony-mast .site-nav a:hover, .ceremony-mast .site-nav a:focus-visible { color: #fbd890; border-bottom-color: #e8c178; }
.ceremony-menu { position: relative; justify-self: start; }
.ceremony-menu summary, .wallet-entry {
  min-height: 42px;
  padding: .55rem .7rem;
  font: 700 .77rem/1.05 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff7e5;
}
.ceremony-menu summary { display: grid; grid-auto-flow: column; gap: .4rem; align-items: center; cursor: pointer; padding-inline: 0; }
.ceremony-menu summary::-webkit-details-marker { display: none; }
.ceremony-menu nav { position: absolute; top: 100%; left: 0; background: #131f30; border: 1px solid #ffffff35; min-width: 165px; box-shadow: 0 8px 24px #0006; }
.ceremony-menu nav a { display: block; text-decoration: none; padding: .53rem .9rem; }
.ceremony-menu nav a:hover { background: #293849; }
.wallet-entry { justify-self: end; border: 1px solid #ffdb8f; background: #10182796; transition: background 160ms ease, color 160ms ease; }
.wallet-entry:hover { background: var(--gold); color: var(--navy); }

/* 1. HERO */
.hero {
  min-height: clamp(675px, calc(100svh - 28px), 940px);
}
.hero h1 { font: 400 clamp(52px, 5.3vw, 88px)/.96 var(--serif); letter-spacing: -.038em; margin-block: 0 16px; text-shadow: 0 10px 26px rgba(0,0,0,.45); }
.hero-title { max-width: 37%; bottom: clamp(46px, 5.4vw, 86px); }
.hero-title p:not(.eyebrow) { font-size: clamp(16px, 1.45vw, 20px); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero-ghost {
  background: rgba(11,19,36,.68);
  color: #fff7e6;
  border-color: #e4b96588;
  transition: background 160ms ease, border-color 160ms ease;
}
.hero-ghost:hover { background: #e4b96528; border-color: var(--gold); }

/* Drifting autumn leaves kept clear of the center faces */
.autumn-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.autumn-leaves span {
  position: absolute;
  top: -22px;
  width: 14px;
  height: 9px;
  border-radius: 80% 0 80% 0;
  opacity: 0;
  animation: leaf-drift var(--dur, 13s) linear var(--delay, 0s) infinite;
}
.autumn-leaves span:nth-child(1) { left: 4%; background: #d96b27; --dur: 13s; --delay: 0s; --drift: 32px; }
.autumn-leaves span:nth-child(2) { left: 16%; background: #c94324; --dur: 15s; --delay: -4s; --drift: -24px; }
.autumn-leaves span:nth-child(3) { left: 30%; background: #e39a2d; --dur: 12s; --delay: -7s; --drift: 28px; }
.autumn-leaves span:nth-child(4) { left: 44%; background: #d45a23; --dur: 14s; --delay: -2s; --drift: -24px; }
.autumn-leaves span:nth-child(5) { left: 84%; background: #e4b965; --dur: 13s; --delay: -9s; --drift: 22px; }
.autumn-leaves span:nth-child(6) { left: 93%; background: #c84824; --dur: 16s; --delay: -6s; --drift: -30px; }
@keyframes leaf-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .68; }
  85% { opacity: .55; }
  100% { transform: translate3d(var(--drift, 28px), 860px, 0) rotate(300deg); opacity: 0; }
}

.project-ca {
  display: grid;
  justify-items: center;
  gap: .18rem;
  width: fit-content;
  min-width: clamp(192px, 21vw, 290px);
  max-width: min(570px, calc(100% - 28px));
  margin: .32rem auto 0;
  padding: .55rem clamp(.9rem, 2.5vw, 1.55rem);
  text-align: center;
  border: 1px solid #dabc78;
  background: linear-gradient(155deg, #1c2a3c, var(--navy) 65%);
  box-shadow: inset 0 0 0 3px #edcc822a, 0 6px 21px #080f1ab3;
  color: #fff6e3;
}
.project-ca strong { color: #f2ca7f; font: 700 .75rem/1.2 var(--sans); letter-spacing: .17em; }
.project-ca-value { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; max-width: 100%; }
.project-ca code { max-width: 100%; overflow-wrap: anywhere; font-size: .86rem; }
.project-ca[data-pending] code { font: 400 clamp(1.12rem, 1.9vw, 1.38rem)/1.18 var(--serif); }
.project-ca-light { display: none; width: 7px; height: 7px; border-radius: 50%; background: #f2ca7f; }
.project-ca[data-pending] .project-ca-light { display: block; }
.project-ca button { min-height: 38px; color: #f6dfac; background: transparent; border: 1px solid #c7a36a; padding-inline: .55rem; cursor: pointer; }
.project-ca button:hover { color: var(--navy); background: #f6dfac; }
.project-ca-status { width: 100%; color: #f6dfac; font-size: .75rem; }
.project-ca-status:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .project-ca { animation: ca-entrance 650ms ease-out both; }
  .project-ca[data-pending] .project-ca-light { animation: ca-light 1.45s ease-in-out .65s 3; }
}
@keyframes ca-entrance {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ca-light {
  0%, 100% { box-shadow: 0 0 0 0 #f2ca7f00; }
  45% { box-shadow: 0 0 0 5px #f2ca7f4d; }
}

.hero-shade { background: linear-gradient(0deg,#080f1ff8 0%,#080f1f91 22%,transparent 57%),linear-gradient(90deg,#0a10186f,transparent 45%); }
.scene-plane { --scene-width: max(100cqw, calc(100cqh * 1376 / 768)); --scene-height: calc(var(--scene-width) * 768 / 1376); }
.coin-stage { bottom: clamp(122px, 10.6vw, 205px); }
.coin-stage[data-placed] { left: var(--coin-x); top: var(--coin-y); bottom: auto; }

/* CRITICAL FIX: Hide .coin-3d when WebGL is inactive so external meme coin logos in .coin-core show cleanly! */
.coin-medal {
  transition: transform 140ms ease-out;
  transform: perspective(760px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.coin-medal.has-webgl { transform: none; }
.coin-medal:not(.has-webgl) .coin-3d { visibility: hidden; pointer-events: none; }
.coin-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.coin-sheen::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -65%;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,244,210,.58), transparent);
  transform: rotate(24deg);
  opacity: 0;
}
.coin-sheen.is-flashing::after { animation: coin-glint 520ms ease-out both; }
@keyframes coin-glint {
  0% { left: -60%; opacity: 0; }
  25% { opacity: .92; }
  100% { left: 120%; opacity: 0; }
}

.show-controls {
  background: rgba(14, 22, 37, .9);
  backdrop-filter: blur(8px);
  padding: 16px 18px;
  bottom: clamp(46px, 5.4vw, 86px);
  box-shadow: 0 18px 36px rgba(0,0,0,.42);
}
.controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.controls-top .eyebrow { margin: 0; }
.mood-pill {
  padding: 3px 8px;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .12em;
  border: 1px solid #e4b96588;
  color: var(--gold);
  background: #080f1dc9;
}
.mood-pill[data-mood="amused"] { border-color: #72c182a0; color: #b7f0be; }
.mood-pill[data-mood="skeptical"] { border-color: #e06a6aa0; color: #ffc7c7; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #e7d9ba;
  font: 700 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .84;
  transition: opacity 180ms ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue i {
  display: block;
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop {
  0%, 100% { transform: scaleY(.5); opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}

.switch-row h2, .holder-card strong, .receipt h1, .receipt h3 { font-family: var(--serif); font-weight: 400; }

/* 2. CEREMONIAL MARQUEE RIBBON */
.ceremony-ticker {
  background: var(--navy-deep);
  border-block: 1px solid #e4b96555;
  color: #f0dfba;
  overflow: hidden;
  padding-block: 11px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee-roll 32s linear infinite;
}
.ceremony-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font: 700 11.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ticker-group span { white-space: nowrap; }
.ticker-group strong { color: var(--gold); }
.ticker-group .sep { color: #a48140; }
@keyframes marquee-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 3. COMPLETE INTERACTIVE PLAYBOOK (IMMEDIATELY BELOW HERO) */
.former-section-anchor { position: absolute; inset: 0 auto auto 0; }
.playbook-section {
  position: relative;
  color: #fff7e7;
  background: radial-gradient(circle at 14% 12%, #1b2c4e 0%, #101a2a 52%, #09101f 100%);
  padding-block: clamp(3.4rem, 6.5vw, 5.5rem);
  border-bottom: 1px solid #e4b96540;
  scroll-margin-top: 12px;
}
.playbook-section .eyebrow { color: var(--gold); }
.playbook-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.playbook-head h2 {
  font: 400 clamp(2.5rem, 5.2vw, 4.4rem)/.98 var(--serif);
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.playbook-head h2 em { color: var(--gold); font-style: italic; }
.playbook-lede {
  margin: 0;
  max-width: 60ch;
  color: #e4dbc9;
  font-size: clamp(16px, 1.35vw, 18.5px);
}
.playbook-lede strong { color: #fff; }
.playbook-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 4-Card Rule Pillars */
.playbook-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
}
.fact-card {
  background: rgba(8, 15, 29, .78);
  border: 1px solid #e4b96545;
  padding: 18px 18px 16px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.fact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.fact-kicker {
  display: block;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.fact-card strong {
  display: block;
  font: 400 clamp(20px, 2vw, 25px)/1.15 var(--serif);
  color: #fff;
  margin-bottom: 8px;
}
.fact-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cfc6b4;
}
.fact-card code { color: #f6d591; font-size: 12px; }

/* Sticky Visual Theater + 4 Steps */
.playbook-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.playbook-sticky {
  position: sticky;
  top: 28px;
}
.playbook-theater {
  border: 1px solid #e4b9655c;
  background: rgba(7, 13, 25, .92);
  box-shadow: 0 24px 52px rgba(0,0,0,.48);
  overflow: hidden;
}
.theater-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #e4b96535;
  background: rgba(18, 30, 52, .82);
}
.theater-label {
  font: 700 11px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--gold);
}
.theater-dots { display: flex; gap: 6px; }
.theater-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff29;
  transition: background 220ms ease, transform 220ms ease;
}
.playbook-theater[data-act="1"] .theater-dots i:nth-child(1),
.playbook-theater[data-act="2"] .theater-dots i:nth-child(2),
.playbook-theater[data-act="3"] .theater-dots i:nth-child(3),
.playbook-theater[data-act="4"] .theater-dots i:nth-child(4) {
  background: var(--gold);
  transform: scale(1.25);
}

.theater-viewport {
  position: relative;
  height: 292px;
  padding: 20px;
}
.theater-scene {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity 340ms ease, transform 360ms cubic-bezier(.16,.84,.28,1);
  pointer-events: none;
}
.playbook-theater[data-act="1"] .theater-scene[data-scene="1"],
.playbook-theater[data-act="2"] .theater-scene[data-scene="2"],
.playbook-theater[data-act="3"] .theater-scene[data-scene="3"],
.playbook-theater[data-act="4"] .theater-scene[data-scene="4"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Scene 1: Mock Wallet */
.mock-wallet, .mock-podium, .mock-verify, .mock-decree {
  width: 100%;
}
.mock-wallet, .mock-verify {
  background: #101c32;
  border: 1px solid #e4b96540;
  padding: 16px;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .12em;
  color: #cbbd9f;
  margin-bottom: 12px;
}
.mock-head b { color: #8fe0a0; }
.mock-tokens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-tokens li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(8, 15, 29, .75);
  border: 1px solid #ffffff16;
}
.mock-tokens img { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #e4b96585; flex: none; }
.mock-tokens span { flex: 1; min-width: 0; }
.mock-tokens strong { display: block; font: 700 14px/1.15 var(--sans); color: #fff; }
.mock-tokens small { display: block; font: 600 11px/1.2 var(--mono); color: #c7bba3; }
.mock-tokens em { font: 700 11px/1 var(--mono); color: var(--gold); font-style: normal; }
.mock-foot { margin: 10px 0 0; font: 600 11px/1.35 var(--mono); color: #a7b1c2; }

/* Scene 2: Live Podium Preview */
.mock-podium {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: linear-gradient(145deg, #15233d, #0d1629);
  border: 1px solid #e4b96555;
  padding: 18px;
}
.mock-coin-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 9px;
  background: radial-gradient(circle at 30% 25%, #f4d38c, #a47934 72%, #6e4e1c);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.mock-coin-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #2b2113;
}
.mock-eyebrow {
  display: block;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: 6px;
}
.mock-podium-meta strong { display: block; font: 400 24px/1.1 var(--serif); color: #fff; }
.mock-podium-meta code {
  display: inline-block;
  margin: 5px 0 8px;
  padding: 2px 8px;
  background: #080f1d;
  border: 1px solid #e4b96566;
  color: #ffe6b2;
  font: 700 11px/1.4 var(--mono);
}
.mock-podium-meta p { margin: 0; font-size: 13px; line-height: 1.45; color: #d5ccba; }

/* Scene 3: Verification Card */
.mock-verify h4 { margin: 0 0 12px; font: 400 23px/1.15 var(--serif); color: #fff; }
.verify-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.verify-checks li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  background: rgba(7, 13, 25, .75);
  border: 1px solid #ffffff16;
  font-size: 13px;
}
.verify-checks span { color: #d0c8b7; }
.verify-checks b { font: 700 11.5px/1 var(--mono); color: var(--gold); }
.verify-checks b.is-pass { color: #84e098; }

/* Scene 4: Live Decree & Crimson Stamp */
.mock-decree {
  position: relative;
  background: #f8f3e6;
  color: var(--navy);
  border: 2px solid #a48140;
  padding: 18px 20px;
  box-shadow: 0 16px 34px rgba(0,0,0,.45);
}
.mock-decree.is-shaken { animation: decree-shake 280ms ease-out; }
@keyframes decree-shake {
  0% { transform: translate(0,0); }
  25% { transform: translate(-3px,3px); }
  50% { transform: translate(3px,-2px); }
  75% { transform: translate(-2px,1px); }
  100% { transform: translate(0,0); }
}
.mock-decree .mock-eyebrow { color: #825f24; margin-bottom: 3px; }
.mock-decree-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mock-decree-head img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #a48140; flex: none; background: var(--navy); }
.mock-decree-head strong { display: block; font: 700 22px/1.1 var(--serif); color: var(--navy); }
.mock-decree-head code { display: inline-block; margin-top: 2px; font: 700 11px/1.3 var(--mono); color: #7a5820; }
.mock-decree-verdict { margin: 0 0 14px; font: italic 22px/1.2 var(--serif); color: #2b3446; }
.mock-decree-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #d5c7aa;
  font: 700 10.5px/1 var(--mono);
  color: #5e6672;
}
.stamp-replay {
  padding: 5px 10px;
  border: 1px solid var(--crimson);
  background: transparent;
  color: var(--crimson);
  font: 700 10.5px/1 var(--mono);
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}
.stamp-replay:hover { background: var(--crimson); color: #fff; }
.mock-seal {
  position: absolute;
  right: 16px;
  top: 22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--crimson);
  background: rgba(248, 243, 230, .94);
  color: var(--crimson);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-13deg);
  pointer-events: none;
}
.mock-seal strong { font: 800 11px/1 var(--sans); letter-spacing: .06em; }
.mock-seal span { font: 700 7.5px/1 var(--mono); letter-spacing: .1em; margin-top: 4px; }
.mock-seal.is-stamping { animation: stamp-slam 440ms cubic-bezier(.16,.92,.3,1.22) both; }
@keyframes stamp-slam {
  0% { opacity: 0; transform: rotate(-22deg) scale(2.2); }
  70% { opacity: 1; transform: rotate(-11deg) scale(.92); }
  100% { opacity: 1; transform: rotate(-13deg) scale(1); }
}

.theater-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e4b96535;
  background: #0a1222;
}
.theater-tabs button {
  border: 0;
  border-right: 1px solid #ffffff14;
  background: transparent;
  color: #bfb6a3;
  padding: 11px 6px;
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.theater-tabs button:last-child { border-right: 0; }
.theater-tabs button:hover { color: #fff; background: #14213a; }
.theater-tabs button[aria-selected="true"] { background: #1a2b4a; color: var(--gold); box-shadow: inset 0 -2px var(--gold); }

/* Right 4-Step Narrative List */
.playbook-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.playbook-steps::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #e4b96538;
}
.playbook-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 12px 22px 0;
  border-bottom: 1px solid #e9d1a629;
  cursor: pointer;
  opacity: .7;
  transition: opacity 220ms ease, border-color 220ms ease;
}
.playbook-steps li:first-child { border-top: 1px solid #e9d1a629; }
.playbook-steps li.is-active, .playbook-steps li:hover { opacity: 1; }
.playbook-steps li.is-active { border-bottom-color: #e4b96588; }
.step-badge {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--mono);
  background: #0d1629;
  border: 1.5px solid #e4b96566;
  color: var(--gold);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.playbook-steps li.is-active .step-badge {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(228,185,101,.16);
}
.step-kicker {
  margin: 0 0 5px;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: .16em;
  color: var(--gold);
}
.playbook-steps h3 {
  margin: 0 0 6px;
  font: 400 clamp(22px, 2.2vw, 29px)/1.12 var(--serif);
  color: #fff;
}
.playbook-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #dbd3c3;
}
.playbook-steps code { color: #f6d591; font-size: 13px; }

/* Compact Host Mood Bench */
.host-bench {
  padding-top: 26px;
  border-top: 1px solid #e4b96535;
}
.host-bench-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.host-bench-head .eyebrow { margin: 0; }
.host-bench-head > span { font-size: 13.5px; color: #cbc2af; }
.host-bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bench-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  text-align: left;
  background: rgba(8, 15, 29, .84);
  border: 1px solid #e4b96548;
  color: #fff8ea;
  transition: transform 220ms ease, border-color 200ms ease, background 200ms ease;
}
.bench-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(16, 28, 50, .95);
}
.bench-shot {
  position: relative;
  width: 92px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid #e4b96566;
  flex: none;
  background: #162033;
}
.bench-shot img.shot-calm {
  position: absolute;
  left: -390.2%;
  top: -97.1%;
  width: 600.9%;
  max-width: none;
  height: auto;
}
.bench-shot img.shot-rx {
  position: absolute;
  left: -74%;
  top: -5%;
  width: 184%;
  max-width: none;
  height: auto;
}
.bench-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 5px;
  background: rgba(8, 15, 29, .9);
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 700 8px/1 var(--mono);
  letter-spacing: .1em;
}
.bench-tag.is-amused { border-color: #6ab575; color: #b7f0be; }
.bench-tag.is-skeptical { border-color: #e06a6a; color: #ffc7c7; }
.bench-copy { min-width: 0; }
.bench-copy strong { display: block; font: 400 18px/1.15 var(--serif); color: #fff; margin-bottom: 4px; }
.bench-copy span { display: block; font: italic 13.5px/1.38 var(--serif); color: #d5ccba; }

/* 4. YOUR TOKENS / INVENTORY */
.holder-section { padding-block: clamp(2.6rem, 6.2vw, 4.8rem); }
.section-heading h2 { font: 400 clamp(2.3rem, 5vw, 4rem)/1.02 var(--serif); letter-spacing: -.038em; margin: 0; }
.holder-card {
  min-height: 94px;
  background: #fffbf1;
  border-color: #c9b998;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.holder-card:hover { transform: translateY(-2px); border-color: #9e7a3b; box-shadow: 0 10px 22px rgba(23,35,54,.08); }
.holder-card img { width: 58px; height: 58px; background: #101a2a; }
.nominee-plea { font: italic 1.08rem var(--serif); margin-bottom: .65rem; }
.archive-section { border-bottom: 1px solid #d8ccb2; }
.archive-orders { padding: 0; list-style: none; }
.archive-orders li { border-top: 1px solid #dfd4be; padding-block: .72rem; }
.archive-orders a { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: space-between; }
.ceremony-dialog { max-width: min(500px, calc(100vw - 32px)); width: 100%; color: var(--ink); background: #fffbef; border: 1px solid #ad8852; padding: clamp(1.3rem, 4vw, 2.2rem); }
.ceremony-dialog::backdrop { background: #090c13b8; }
.ceremony-dialog h2 { font: 400 clamp(1.7rem, 5vw, 2.35rem)/1.05 var(--serif); margin: 0 2rem .75rem 0; }
.dialog-close { position: absolute; top: .67rem; right: .72rem; padding: 0; width: 2.6rem; height: 2.6rem; font-size: 1.6rem; background: transparent; border: 1px solid #c6b396; }

.inventory-heading, .inventory-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.inventory-tools { margin-block: .8rem; justify-content: start; align-items: center; }
#inventory-status:empty { display: none; }
#inventory-status { color: #40382d; }
#hero-name { min-width: 0; overflow-wrap: anywhere; }
#hero-coin-symbol {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 8%;
  color: #fff0ce;
  background: radial-gradient(circle at 50% 35%, #354c6a, #101a2a 79%);
  font: 600 clamp(.83rem, 1.9vw, 1.85rem)/1.1 var(--sans);
  text-align: center;
  overflow-wrap: anywhere;
}
.coin-medal:is([data-fallback], [data-pending-logo]) #hero-coin-symbol { display: grid; }
.coin-medal[data-fallback] #hero-avatar { visibility: hidden; }
#hero-ticker { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder-card strong, .holder-card small { overflow-wrap: anywhere; }
.holder-card .holding-balance { color: #6e4c28; }

/* 5. MARKETS LEADERBOARD + PODIUM JUMP */
.market-section { padding-block: clamp(3rem, 6.5vw, 5.4rem); background: #eee5d5; border-block: 1px solid #d4c4a7; }
.market-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.market-filters { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.15rem; }
.market-sort { color: #403729; display: flex; align-items: center; gap: .45rem; font-size: .83rem; }
.market-sort select { min-height: 42px; border: 1px solid #9d8151; background: #f9f2df; color: #242234; padding-inline: .45rem; font: inherit; }
.market-windows { display: flex; gap: .36rem; }
.market-windows button { min-width: 55px; min-height: 43px; padding-inline: .7rem; border: 1px solid #9d8151; color: #242234; background: transparent; font: 700 .9rem var(--sans); cursor: pointer; }
.market-windows button[aria-pressed="true"] { background: #1c2838; border-color: #1c2838; color: #fff8e8; }
.market-status, .market-sources { color: #554d40; font-size: .88rem; }
.market-table { width: 100%; text-align: left; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.market-table th { color: #514836; font-size: .82rem; font-weight: 700; }
.market-table :is(th,td) { padding: .7rem .5rem; border-bottom: 1px solid #cbbc9e; }
.market-table :is(th,td):first-child { padding-left: 0; }
.market-table td a { color: #1f324e; font-weight: 700; white-space: nowrap; }
.market-token { display: inline-flex; align-items: center; gap: .46rem; }
.market-token img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.market-kind { display: block; margin-left: 1.95rem; color: #66543d; font-size: .71rem; }
.market-table td[data-trend="up"] { color: #176142; }
.market-table td[data-trend="down"] { color: #9b2828; }
.market-podium-btn {
  padding: 5px 10px;
  border: 1px solid #9d8151;
  background: #fbf5e6;
  color: #202d42;
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.market-podium-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.market-sources { margin-top: 1.2rem; }
.market-sources a { color: inherit; }

/* 7. CLERK'S RULES & CA BOX */
.rules-ca-box {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #e4b96552;
  background: rgba(8, 15, 29, .65);
}
.rules-ca-box p { margin: 0 0 10px; color: #f6dfac; }
.rules-ca-box p:last-child { margin-bottom: 0; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .playbook-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playbook-grid { grid-template-columns: 1fr; }
  .playbook-sticky { position: static; }
  .host-bench-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .ceremony-strap { font-size: .55rem; letter-spacing: .1em; }
  .ceremony-strap span { margin-inline: .15rem; }
  .ceremony-mast .issue { min-height: 48px; gap: .45rem; }
  .ceremony-mast .brand { font-size: clamp(.73rem,3.2vw,.96rem); gap: .25rem; white-space: nowrap; }
  .ceremony-mast .brand img { width: 25px; height: 25px; }
  .ceremony-menu summary, .wallet-entry { font-size: .64rem; min-height: 36px; letter-spacing: .055em; }
  .wallet-entry { padding-inline: .40rem; }
  .ceremony-mast .site-nav { justify-content: space-around; gap: 0; padding: 0 9px; }
  .ceremony-mast .site-nav a { min-height: 30px; font-size: .62rem; letter-spacing: .08em; }
  .project-ca { min-width: 152px; margin-top: .15rem; padding: .24rem .72rem; gap: .06rem; }
  .project-ca strong { font-size: .62rem; }
  .project-ca[data-pending] code { font-size: .92rem; }
  .hero { min-height: 0; padding-top: clamp(390px, 95vw, 520px); }
  .hero-art, .hero-shade { height: clamp(405px, 99vw, 540px); }
  .hero-art { --art-x:.62; --art-y:.72; }
  .hero-shade { background: linear-gradient(#080f1d66,transparent 32%,transparent 57%,#101a2a); }
  .hero-title { max-width: none; }
  .hero h1 { font-size: clamp(42px, 11.4vw, 66px); margin-bottom: 12px; }
  .coin-stage { top: clamp(158px, 41vw, 191px); bottom: auto; }
  .show-controls { margin-top: 16px; }
  .scroll-cue { display: none; }
  .playbook-facts { grid-template-columns: 1fr; }
  .theater-viewport { height: 325px; padding: 14px; }
  .theater-scene { inset: 14px; }
  .mock-podium { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .mock-coin-wrap { width: 84px; height: 84px; padding: 7px; }
  .theater-tabs button { font-size: 9.5px; padding: 10px 3px; }
}

@media (max-width: 490px) {
  .market-table .market-price, .market-table .market-action-col { display: none; }
  .market-token img { width: 18px; height: 18px; }
  .market-kind { margin-left: 1.6rem; }
  .market-table :is(th,td) { padding-inline: .26rem; }
  .market-table td { font-size: .83rem; }
}
@media (max-width: 370px) { .ceremony-mast .brand img { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .autumn-leaves span, .scroll-cue i, .mock-seal.is-stamping, .mock-decree.is-shaken { animation: none !important; }
  .motion-ready [data-reveal] { opacity: 1 !important; translate: 0 0 !important; }
}
