/* Reign
   A dusk sky, one hill, and everything underneath it is the people who lost. */

:root {
  --night: #050506;
  --indigo: #0b0b0d;
  --plum: #15130f;
  --rose: #2a2114;
  --ember: #6e5220;
  --gold: #d8b45a;
  --gold-deep: #a8842c;
  --gold-foil: linear-gradient(180deg, #fbefc4 0%, #e3c46f 38%, #a8842c 68%, #e8cd86 100%);
  --cream: #f4ecdb;
  --cream-dim: rgba(244, 236, 219, 0.62);
  --earth: #0c0b09;
  --earth-deep: #070605;
  --ink: #0c0b09;

  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --ridge: max(30svh, 16.7vw, 210px);
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--earth-deep);
  color: var(--cream);
  font-family: var(--display);
    -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--earth-deep);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
p,
ol,
blockquote {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- demo banner ---------- */

.demo-banner {
  position: relative;
  z-index: 5;
  padding: 8px var(--gutter);
  background: var(--gold);
  color: var(--ink);
  font: 500 0.8rem/1.3 var(--mono);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- the sky ---------- */

.sky {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--night) 0%,
    var(--indigo) 30%,
    var(--plum) 56%,
    var(--rose) 76%,
    var(--ember) 90%,
    #b08a3e 100%
  );
}

.stars {
  position: absolute;
  inset: 0 0 35% 0;
  z-index: -3;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 9%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 23%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 71%, #ffe9b8 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 83%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 36%, #fff 50%, transparent 51%);
  background-size: 520px 420px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* A poster sunburst turning slowly behind the hill. */
.rays {
  position: absolute;
  z-index: -3;
  left: 50%;
  bottom: calc(var(--ridge) * var(--rise, 0.62));
  width: 240vmax;
  aspect-ratio: 1;
  translate: -50% 50%;
  background: repeating-conic-gradient(rgba(216, 180, 90, 0.075) 0 1.5deg, transparent 1.5deg 10deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 22%, transparent 60%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 22%, transparent 60%);
  animation: turn 240s linear infinite;
}

@keyframes turn {
  to { rotate: 360deg; }
}

.sun {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: calc(var(--ridge) * var(--rise, 0.62));
  width: min(42vmin, 380px);
  aspect-ratio: 1;
  translate: -50% 50%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff6d8 0%, #e8c66f 30%, #a8842c 75%, #5c4416 100%);
  box-shadow:
    0 0 50px 10px rgba(216, 180, 90, 0.35),
    0 0 160px 60px rgba(110, 82, 32, 0.4);
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.4vw, 26px) var(--gutter);
}

.wordmark {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
}

/* "I'M THE" in tracked capitals between two hairlines. */
.logo-pre {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font: 500 clamp(0.5rem, 0.75vw, 0.62rem) / 1 var(--mono);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
}

.logo-pre::before,
.logo-pre::after {
  content: '';
  width: 1.8em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* "Richest" in gold-foil italic, with a crown for the dot of the i. */
.logo-main {
  font-family: var(--display);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.04em 0.08em 0.08em;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(216, 180, 90, 0.25));
}

.logo-i {
  position: relative;
}

.logo-crown {
  position: absolute;
  left: 50%;
  bottom: 0.7em;
  width: 0.36em;
  translate: -18% 0;
  rotate: 8deg;
  fill: #e8c66f;
}

.watchers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 241, 214, 0.22);
  border-radius: 999px;
  color: var(--cream-dim);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.watchers span {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(216, 180, 90, 0.7);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgba(216, 180, 90, 0); }
}

/* ---------- the throne ---------- */

.throne {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 1.8vh, 20px);
  padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(20px, 5vh, 56px);
  text-align: center;
}

.reign-clock {
  color: var(--cream-dim);
  font: 400 clamp(0.7rem, 1.1vw, 0.85rem) / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reign-clock time {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.crown {
  width: clamp(44px, 6vw, 72px);
  fill: var(--gold);
  filter: drop-shadow(0 4px 18px rgba(255, 201, 74, 0.55));
  transform-origin: 50% 100%;
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { rotate: -3deg; translate: 0 0; }
  50% { rotate: 3deg; translate: 0 -5px; }
}

.proclamation {
  max-width: min(22ch, 100%);
  font-size: clamp(2.5rem, 7.6vw, 6.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.proclamation.medium {
  max-width: min(26ch, 100%);
  font-size: clamp(1.9rem, 5.2vw, 4.4rem);
  line-height: 1.02;
}

.proclamation.long {
  max-width: min(32ch, 100%);
  font-size: clamp(1.55rem, 3.9vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.proclamation.vacant {
  font-style: italic;
  font-weight: 400;
  color: var(--cream-dim);
}

.proclamation::before {
  content: '“';
  color: var(--gold);
}

.proclamation::after {
  content: '”';
  color: var(--gold);
}

.proclamation.vacant::before,
.proclamation.vacant::after {
  content: none;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  font: 500 clamp(0.8rem, 1.3vw, 1rem) / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.byline .paid {
  color: var(--gold);
}

.byline .paid:empty {
  display: none;
}

.report {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: rgba(255, 241, 214, 0.42);
  font: 400 0.68rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.report:hover {
  color: var(--cream);
}

.tally .report {
  padding: 0;
}

/* Dethroning: the old words fall off the pile, the new ones land. */
.throne.toppled .proclamation,
.throne.toppled .byline,
.throne.toppled .king-link,
.throne.toppled .crown {
  animation: topple 0.55s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}

.throne.landed .proclamation,
.throne.landed .byline,
.throne.landed .king-link {
  animation: land 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.throne.landed .crown {
  animation: land 0.7s 0.12s cubic-bezier(0.2, 1.8, 0.4, 1) both, bob 6s 0.9s ease-in-out infinite;
}

@keyframes topple {
  to { opacity: 0; translate: 0 45vh; rotate: 9deg; }
}

@keyframes land {
  from { opacity: 0; translate: 0 -40px; scale: 1.08; }
}

.quake {
  animation: quake 0.5s linear;
}

@keyframes quake {
  20% { translate: -6px 3px; }
  40% { translate: 5px -4px; }
  60% { translate: -4px 2px; }
  80% { translate: 3px -1px; }
}

/* ---------- the gate (call to action, standing on the hill) ---------- */

.gate {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  height: calc(var(--ridge) * 0.74);
  padding: 0 var(--gutter);
  text-align: center;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3dc95, var(--gold) 50%, var(--gold-deep));
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 4px var(--night),
    0 0 0 5px rgba(216, 180, 90, 0.7),
    0 18px 40px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: translate 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 250, 230, 0.6) 50%, transparent 60%);
  translate: -120% 0;
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%, 60% { translate: -120% 0; }
  100% { translate: 120% 0; }
}

.cta:hover {
  translate: 0 -2px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 4px var(--night),
    0 0 0 5px var(--gold),
    0 24px 48px rgba(0, 0, 0, 0.65);
}

.cta:active {
  translate: 0 1px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 4px var(--night),
    0 0 0 5px var(--gold),
    0 8px 18px rgba(0, 0, 0, 0.6);
}

.cta:disabled {
  cursor: progress;
  filter: saturate(0.5);
}

.cta-label {
  font: 600 clamp(0.82rem, 1.25vw, 0.98rem) / 1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-price {
  padding: 10px 16px;
  border-radius: 1px;
  background: var(--ink);
  color: var(--gold);
  font: 600 clamp(1.15rem, 1.8vw, 1.4rem) / 1 var(--display);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cta-price:empty {
  display: none;
}

.cta-price.bumped {
  animation: bump 0.5s cubic-bezier(0.2, 1.8, 0.4, 1);
}

@keyframes bump {
  from { scale: 1.35; background: var(--ember); color: #fff; }
}

.cta-note {
  color: var(--cream-dim);
  font: 400 0.78rem/1.4 var(--mono);
  letter-spacing: 0.03em;
}

/* ---------- the ridge ---------- */

.ridge {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: var(--ridge);
  pointer-events: none;
}

.ridge-far {
  fill: #1a1712;
  opacity: 0.75;
}

.ridge-mid {
  fill: #110f0c;
}

.ridge-near {
  fill: var(--earth);
}

.flag rect {
  fill: var(--earth);
}

.pennant {
  fill: #b3203f;
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: flutter 2.6s ease-in-out infinite;
}

@keyframes flutter {
  0%, 100% { transform: skewY(-5deg) scaleX(1); }
  50% { transform: skewY(6deg) scaleX(0.88); }
}

/* ---------- underground ---------- */

.earth {
  position: relative;
  background:
    radial-gradient(rgba(255, 241, 214, 0.035) 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(var(--earth), var(--earth-deep) 900px);
}

.ledger,
.section-head,
.rules,
.colophon,
.bedrock {
  width: min(100% - 2 * var(--gutter), 980px);
  margin-inline: auto;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(28px, 6vw, 64px) 0 clamp(36px, 7vw, 80px);
  text-align: center;
}

.figure {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.figure b {
  color: var(--gold);
  font-size: clamp(1.7rem, 5.4vw, 4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.figure span {
  color: var(--cream-dim);
  font: 400 clamp(0.62rem, 1.1vw, 0.8rem) / 1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-head {
  display: grid;
  gap: 8px;
  padding-bottom: clamp(18px, 3vw, 30px);
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--cream-dim);
  font: 400 0.85rem/1.5 var(--mono);
}

/* Each fallen king is a layer of rock. */
.strata li {
  --tone: #15130f;
  position: relative;
  margin-top: -7px;
  padding: calc(clamp(16px, 2.6vw, 26px) + 7px) var(--gutter) clamp(16px, 2.6vw, 26px);
  background: var(--tone);
  clip-path: polygon(0 7px, 9% 1px, 23% 6px, 38% 0, 54% 5px, 69% 1px, 84% 7px, 100% 2px, 100% 100%, 0 100%);
}

.strata li:nth-child(4n + 2) {
  --tone: #1a1712;
  clip-path: polygon(0 2px, 12% 7px, 29% 1px, 47% 6px, 61% 0, 77% 6px, 91% 1px, 100% 6px, 100% 100%, 0 100%);
}

.strata li:nth-child(4n + 3) {
  --tone: #13110d;
  clip-path: polygon(0 5px, 15% 0, 33% 7px, 50% 2px, 66% 7px, 81% 0, 100% 5px, 100% 100%, 0 100%);
}

.strata li:nth-child(4n + 4) {
  --tone: #181510;
}

.stratum {
  display: grid;
  grid-template-columns: 4.5ch minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px clamp(12px, 3vw, 32px);
  width: min(100%, 980px);
  margin-inline: auto;
}

.stratum .rank {
  color: rgba(255, 241, 214, 0.38);
  font: 400 0.8rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}

.stratum .words {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 241, 214, 0.9);
  overflow-wrap: anywhere;
}

.stratum .who {
  display: block;
  margin-top: 6px;
  color: var(--cream-dim);
  font: 400 0.72rem/1.4 var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stratum .tally {
  display: grid;
  justify-items: end;
  gap: 4px;
  font: 400 0.78rem/1.3 var(--mono);
  color: var(--cream-dim);
  white-space: nowrap;
}

.stratum .tally b {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.strata li.fresh {
  animation: settle 0.9s cubic-bezier(0.2, 1, 0.3, 1) both;
}

@keyframes settle {
  from { max-height: 0; padding-block: 0; opacity: 0; }
  to { max-height: 400px; }
}

.bedrock {
  padding: clamp(28px, 5vw, 48px) 0;
  color: rgba(255, 241, 214, 0.34);
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.strata:not(:empty) + .bedrock {
  border-top: 1px dashed rgba(255, 241, 214, 0.14);
}

/* ---------- rules ---------- */

.rules {
  padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 5vw, 48px);
}

.rules .section-head {
  width: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(255, 241, 214, 0.14);
  border-radius: 18px;
  background: rgba(255, 241, 214, 0.035);
  color: var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.45;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
}

.steps b {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
}

.fine {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 76ch;
  color: rgba(255, 241, 214, 0.5);
  font: 400 0.78rem/1.7 var(--mono);
}

.fine a {
  color: var(--gold);
}

.colophon {
  padding: clamp(32px, 6vw, 72px) 0 calc(clamp(32px, 6vw, 72px) + env(safe-area-inset-bottom));
  color: rgba(255, 241, 214, 0.4);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: italic;
  text-align: center;
}

/* ---------- the decree (claim dialog) ---------- */

.decree {
  width: min(100% - 24px, 520px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow:
    0 0 0 6px rgba(255, 201, 74, 0.35),
    0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.decree::backdrop {
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(6px);
}

.decree[open] {
  animation: unroll 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes unroll {
  from { opacity: 0; translate: 0 24px; scale: 0.96; }
}

.decree form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 5vw, 36px);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 15, 20, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.close:hover {
  background: rgba(27, 15, 20, 0.16);
}

.decree-eyebrow {
  color: var(--rose);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.decree h2 {
  margin-top: -8px;
  outline: none; /* focused only to move the reader to the step, never by Tab */
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 15, 20, 0.7);
}

.field-label output {
  font-variant-numeric: tabular-nums;
}

.field-label output.over {
  color: #c2182b;
}

.field textarea,
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(27, 15, 20, 0.2);
  border-radius: 12px;
  background: #fffaf0;
  font-size: 1.05rem;
}

.field textarea {
  min-height: 5.2em;
  resize: vertical;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.field textarea::placeholder,
.field input::placeholder {
  color: rgba(27, 15, 20, 0.35);
  font-style: italic;
  font-weight: 400;
}

.field textarea:focus,
.field input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.6);
}

.error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbdcd6;
  color: #7c1020;
  font: 500 0.82rem/1.4 var(--mono);
}

.cta-pay {
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 3px var(--cream),
    0 0 0 4px rgba(168, 132, 44, 0.8),
    0 10px 20px rgba(12, 11, 9, 0.2);
}

.decree-note {
  color: rgba(27, 15, 20, 0.6);
  font: 400 0.72rem/1.5 var(--mono);
  text-align: center;
}

/* Two steps in one form. Only one shows at a time; the hidden one keeps its values. */
.decree-step {
  display: grid;
  gap: 16px;
}

.decree-step:not([hidden]) {
  animation: step-in 0.24s ease-out;
}

@keyframes step-in {
  from { opacity: 0; translate: 0 10px; }
}

.decree-head {
  display: grid;
  gap: 10px;
  /* Clear of the close button. */
  padding-right: 44px;
}

.decree-head h2 {
  margin-top: 0;
}

.decree-progress {
  color: rgba(27, 15, 20, 0.55);
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.boost-note {
  padding: 10px 14px;
  border-left: 3px solid #5b2a86;
  background: #efe5f8;
  color: #2f1150;
  font: 500 0.82rem/1.4 var(--mono);
}

.cta-next {
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  padding: 18px 26px;
  box-shadow:
    0 0 0 1px #f8e7b0 inset,
    0 0 0 3px var(--cream),
    0 0 0 4px rgba(168, 132, 44, 0.8),
    0 10px 20px rgba(12, 11, 9, 0.2);
}

.decree-back {
  justify-self: center;
  margin: -8px 0 -10px;
  padding: 14px 18px;
  border: 0;
  background: none;
  color: rgba(27, 15, 20, 0.7);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(27, 15, 20, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}

.decree-back::before {
  content: '\2039'; /* for browsers without alt text, which drop the next line */
  content: '\2039' / ''; /* decoration: not read aloud */
  display: inline-block;
  margin-right: 0.4em;
}

.decree-back:hover,
.decree-back:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .decree-step:not([hidden]) {
    animation: none;
  }
}

/* ---------- the verdict (after paying) ---------- */

.verdict {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: blur(8px);
  animation: fade 0.3s ease;
}

@keyframes fade {
  from { opacity: 0; }
}

.verdict-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 520px);
  padding: clamp(26px, 6vw, 44px);
  border-radius: 24px;
  background: linear-gradient(170deg, var(--indigo), var(--plum));
  box-shadow:
    0 0 0 1px rgba(255, 241, 214, 0.18),
    0 40px 120px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.verdict-card h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.verdict-card p {
  color: var(--cream-dim);
  font-size: 1.1rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.verdict[data-state='checking'] .crown {
  animation: spin 1.4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

.verdict[data-state='outbid'] .crown,
.verdict[data-state='failed'] .crown {
  fill: var(--cream-dim);
  filter: none;
  transform-origin: 50% 50%;
  rotate: 168deg;
  animation: none;
}

@keyframes spin {
  to { rotate: 360deg; }
}

.verdict-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 6px;
}

.verdict-actions .cta {
  padding: 14px 26px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ghost {
  padding: 12px 20px;
  border: 1px solid rgba(255, 241, 214, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 500 0.82rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.ghost:hover {
  background: rgba(255, 241, 214, 0.1);
}

.verdict-actions button:empty {
  display: none;
}

/* ---------- toasts and confetti ---------- */

.toasts {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top));
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100% - 24px, 560px);
  translate: -50% 0;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  animation: toast-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1), toast-out 0.4s 4.6s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; translate: 0 -20px; }
}

@keyframes toast-out {
  to { opacity: 0; translate: 0 -12px; }
}

/* The canvas lives inside the sky (fixed to the viewport all the same), so the celebration
   banner, also in the sky, can paint above the falling pieces. */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- crown celebrations (drawn by public/celebrate.js) ---------- */

/* One overlay on the sky. It is the throne's sibling, so it never shakes or topples with the
   throne, and nothing in it takes clicks. It sets no z-index on purpose, so its children
   stack within the sky: the wash sits behind the throne's words, the crown in front of them,
   and the banner in front of the #confetti canvas (z-index 40) so the name stays readable.
   The banner sits above the throne's first row and never reaches the gate below, and the
   "Take the crown" button keeps its clicks because nothing here takes any. */
.celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* The coronation's royal-purple wash and the calm version's brief tint: in front of the
   stars and sun, behind the words. The ridge comes later in the sky, so the hill stays dark. */
.celebration-wash,
.celebration-tint {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.celebration-wash {
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(140, 82, 196, 0.55), transparent 72%),
    linear-gradient(180deg, rgba(47, 17, 80, 0.88) 0%, rgba(91, 42, 134, 0.6) 55%, rgba(91, 42, 134, 0) 100%);
}

.celebration-tint {
  background: radial-gradient(ellipse 90% 70% at 50% 40%, var(--celebration-primary, var(--gold)), transparent 75%);
  opacity: 0.3;
}

/* "Long live {name}", in the clear space above the throne's first row. celebrate.js sets its top.
   Every style has a solid backing, so the name reads over the stars and the sky. */
.celebration-banner {
  position: absolute;
  z-index: 41;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: min(100% - 2 * var(--gutter), 36rem);
  padding: 10px 26px;
  color: var(--cream);
  font: italic 500 clamp(1.15rem, 3.4vw, 1.9rem) / 1.15 var(--display);
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* Long or emoji-heavy names wrap inside the banner and stop at two lines. */
.celebration-banner-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.celebration-name {
  color: var(--celebration-secondary, var(--gold));
  font-weight: 700;
}

/* Ribbon: a dark band edged in the crown's colour, right across the sky. */
.celebration-banner.banner-ribbon {
  left: 0;
  right: 0;
  translate: none;
  width: auto;
  max-width: none;
  padding-inline: var(--gutter);
  border-block: 5px double var(--celebration-primary, var(--gold));
  background: linear-gradient(180deg, #17130d, #0a0907 50%, #17130d);
}

.banner-ribbon .celebration-banner-text {
  max-width: 36rem;
  margin-inline: auto;
}

/* Scroll: pale paper in the crown's light colour, rolled at both ends. */
.celebration-banner.banner-scroll {
  padding: 12px 30px;
  border-inline: 12px solid var(--celebration-primary, var(--gold));
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 16px, transparent calc(100% - 16px), rgba(0, 0, 0, 0.22)),
    var(--celebration-secondary, var(--cream));
  color: var(--ink);
  text-shadow: none;
}

.banner-scroll .celebration-name {
  color: var(--ink);
}

/* Plaque: an engraved dark panel with a double rule. */
.celebration-banner.banner-plaque {
  padding: 14px 30px;
  border: 2px solid var(--celebration-primary, var(--gold));
  outline: 1px solid var(--celebration-secondary, var(--cream));
  outline-offset: -7px;
  background: linear-gradient(180deg, #1c1813, #0c0b09);
  font: 500 clamp(0.9rem, 2.4vw, 1.15rem) / 1.45 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Coronation: the name lights up. */
.celebration-banner.is-lit .celebration-name {
  color: #fff8e2;
  text-shadow: 0 0 6px var(--celebration-primary, var(--gold)), 0 0 16px var(--celebration-primary, var(--gold));
  animation: name-lit 1.2s ease-in-out infinite alternate;
}

.banner-scroll.is-lit .celebration-name {
  color: var(--ink);
}

@keyframes name-lit {
  from {
    text-shadow: 0 0 2px var(--celebration-primary, var(--gold)), 0 0 6px var(--celebration-primary, var(--gold));
  }
}

/* The large crown that drops onto the message. celebrate.js sets its left, top and width. */
.celebration-crown {
  position: absolute;
  z-index: 1;
  filter: drop-shadow(0 6px 22px rgba(255, 201, 74, 0.6));
}

.celebration-crown svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .celebration-banner.is-lit .celebration-name {
    animation: none;
  }
}

/* Replay, next to the crown number. */
.byline .replay {
  /* A taller tap target than it looks: the negative margin keeps the line where it was. */
  min-height: 32px;
  margin: -10px 0;
  padding: 10px 2px;
  border: 0;
  background: none;
  color: rgba(255, 241, 214, 0.5);
  font: 400 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(216, 180, 90, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}

.byline .replay:hover,
.byline .replay:focus-visible {
  color: var(--gold);
}

/* ---------- demo checkout page ---------- */

.demo-checkout {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  background: linear-gradient(170deg, var(--night), var(--plum));
  text-align: center;
}

.demo-checkout main {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 520px;
}

.demo-checkout h1 {
  color: var(--gold);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
}

.demo-checkout p {
  font-size: 1.2rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.demo-checkout .demo-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-checkout .cta {
  padding: 16px 28px;
  font-size: 1.2rem;
  font-weight: 700;
}

.demo-checkout a {
  color: var(--cream-dim);
  font: 400 0.85rem/1 var(--mono);
}

/* ---------- the climb: the hill grows, and the scenery changes ---------- */

.ridge {
  overflow: visible;
}

.ridge-base {
  fill: var(--earth);
}

.mount {
  transform-origin: 1200px 400px;
  transition: transform 1.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.flag {
  transform-origin: 1200px 80px;
  transition: transform 1.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.ridge-far,
.ridge-mid {
  transition: opacity 1.2s ease, translate 1.2s ease;
}

.sun,
.rays,
.homeworld,
.marble,
.clouds,
.nebula {
  transition: opacity 1.2s ease, bottom 1.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.altitude {
  padding: 6px 14px;
  border: 1px solid rgba(255, 201, 74, 0.45);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.45);
  color: var(--gold);
  font: 500 clamp(0.68rem, 1.1vw, 0.82rem) / 1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Scenery that only exists at some heights. */
.clouds,
.homeworld,
.marble,
.satellite,
.nebula {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.clouds {
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: calc(var(--ridge) * 0.7);
  background:
    radial-gradient(ellipse 22% 60% at 12% 78%, rgba(255, 236, 222, 0.95), transparent 70%),
    radial-gradient(ellipse 30% 70% at 34% 92%, rgba(255, 226, 214, 0.9), transparent 70%),
    radial-gradient(ellipse 24% 55% at 58% 74%, rgba(255, 240, 230, 0.95), transparent 70%),
    radial-gradient(ellipse 34% 75% at 80% 95%, rgba(255, 224, 210, 0.9), transparent 70%),
    radial-gradient(ellipse 20% 50% at 96% 70%, rgba(255, 238, 226, 0.9), transparent 70%),
    linear-gradient(transparent 55%, rgba(255, 230, 216, 0.8));
  filter: blur(6px);
  animation: drift 60s ease-in-out infinite alternate;
}

@keyframes drift {
  from { translate: -4% 0; }
  to { translate: 4% 0; }
}

.homeworld {
  z-index: -2;
  left: 50%;
  top: calc(100% - var(--ridge) * 0.62);
  width: 300vmax;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 18% 4% at 42% 3%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 14% 3% at 58% 5%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 10% 3% at 50% 2%, rgba(86, 160, 96, 0.8), transparent 70%),
    radial-gradient(circle at 50% 0%, #4ea0ff 0%, #1b5fbf 9%, #0a2a66 22%, #04122e 40%);
  box-shadow:
    0 0 0 3px rgba(150, 210, 255, 0.55),
    0 0 70px 26px rgba(90, 170, 255, 0.5);
}

.marble {
  z-index: -2;
  left: 14%;
  top: 22%;
  width: min(10vmin, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 22% at 40% 30%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 40% 18% at 65% 65%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(circle at 60% 55%, #3f9a5b 0 18%, transparent 19%),
    radial-gradient(circle at 35% 35%, #5cb0ff, #1b5fbf 60%, #0a2a66);
  box-shadow: inset -0.9vmin -0.6vmin 1.6vmin rgba(0, 0, 0, 0.65), 0 0 24px rgba(110, 180, 255, 0.5);
}

.satellite {
  z-index: -2;
  top: 26%;
  left: 0;
  width: 46px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6fa8ff 0 36%, #e9eef7 36% 64%, #6fa8ff 64%);
  box-shadow: 0 0 10px rgba(200, 225, 255, 0.8);
}

.nebula {
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 22% 30%, rgba(170, 70, 220, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 38% at 78% 24%, rgba(40, 170, 200, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 40% at 55% 62%, rgba(230, 80, 130, 0.35), transparent 70%);
  filter: blur(20px);
}

/* Clouds and Everest: the lower hills sink away and cloud rolls in. */
.sky[data-stage='clouds'] .clouds {
  opacity: 0.55;
}

.sky[data-stage='clouds'] .ridge-far {
  opacity: 0.4;
}

.sky[data-stage='everest'] {
  background: linear-gradient(180deg, var(--night) 0%, #14120e 40%, #3a2c16 70%, #a07a34 92%, #e8cf8c 100%);
}

.sky[data-stage='everest'] .clouds {
  opacity: 1;
}

.sky:not([data-stage='ground'], [data-stage='clouds']) :is(.ridge-far, .ridge-mid) {
  opacity: 0;
  translate: 0 60px;
}

/* Stratosphere: deep blue above, the haze of the planet below. */
.sky[data-stage='stratosphere'] {
  background: linear-gradient(180deg, #030310 0%, #071040 36%, #123a8a 66%, #4f93d8 88%, #bfe0ff 100%);
}

.sky[data-stage='stratosphere'] .clouds {
  opacity: 0.5;
  height: calc(var(--ridge) * 0.3);
}

.sky[data-stage='stratosphere'] .rays {
  opacity: 0.35;
}

.sky[data-stage='stratosphere'] .sun {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fff3c4 45%, #ffd98a 100%);
  box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.4), 0 0 160px 70px rgba(150, 200, 255, 0.35);
}

/* Everything from here up is space: black sky, stars everywhere, no sunbeams. */
.sky:is([data-stage='space'], [data-stage='orbit'], [data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto'], [data-stage='interstellar']) {
  background: linear-gradient(180deg, #000 0%, #03030d 62%, #080d22 100%);
}

.sky:is([data-stage='space'], [data-stage='orbit'], [data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto'], [data-stage='interstellar']) .stars {
  inset: 0;
  background-size: 340px 280px;
  -webkit-mask-image: none;
  mask-image: none;
}

.sky:is([data-stage='space'], [data-stage='orbit'], [data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto'], [data-stage='interstellar']) .rays {
  opacity: 0;
}

/* Edge of space and orbit: the curve of the Earth below, the sun a hard white star. */
.sky:is([data-stage='space'], [data-stage='orbit']) .homeworld {
  opacity: 1;
}

.sky[data-stage='orbit'] .homeworld {
  top: calc(100% - var(--ridge) * 0.46);
  width: 210vmax;
}

.sky:is([data-stage='space'], [data-stage='orbit']) .sun {
  left: 82%;
  bottom: 74%;
  width: min(7vmin, 64px);
  background: #fff;
  box-shadow: 0 0 30px 12px rgba(255, 255, 255, 0.85), 0 0 110px 50px rgba(255, 244, 214, 0.35);
}

.sky[data-stage='orbit'] .satellite {
  opacity: 1;
  animation: pass 26s linear infinite;
}

@keyframes pass {
  from { translate: -10vw 6vh; rotate: -8deg; }
  to { translate: 110vw -8vh; rotate: -8deg; }
}

/* Planets sit mostly behind the summit so they never cover the words above it. */
.sky:is([data-stage='moon'], [data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn'], [data-stage='pluto']) .sun {
  translate: -50% 80%;
}

.byline,
.report,
.altitude,
.reign-clock {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* The Moon. */
.sky[data-stage='moon'] .sun {
  width: min(44vmin, 400px);
  background:
    radial-gradient(circle at 30% 34%, rgba(120, 118, 112, 0.55) 0 7%, transparent 8%),
    radial-gradient(circle at 62% 26%, rgba(120, 118, 112, 0.45) 0 5%, transparent 6%),
    radial-gradient(circle at 48% 52%, rgba(120, 118, 112, 0.5) 0 10%, transparent 11%),
    radial-gradient(circle at 74% 58%, rgba(120, 118, 112, 0.4) 0 6%, transparent 7%),
    radial-gradient(circle at 24% 66%, rgba(120, 118, 112, 0.4) 0 4%, transparent 5%),
    radial-gradient(circle at 40% 36%, #f4f1ea 0%, #cfcbc2 55%, #8f8b84 100%);
  box-shadow: 0 0 50px 14px rgba(255, 255, 255, 0.28), inset -3vmin -2vmin 6vmin rgba(0, 0, 0, 0.45);
}

.sky[data-stage='moon'] .marble {
  opacity: 1;
}

/* Mars, with home a pale blue dot. */
.sky[data-stage='mars'] .sun {
  width: min(46vmin, 420px);
  background:
    radial-gradient(ellipse 30% 14% at 36% 40%, rgba(110, 40, 22, 0.55), transparent 70%),
    radial-gradient(ellipse 24% 12% at 64% 58%, rgba(110, 40, 22, 0.5), transparent 70%),
    radial-gradient(ellipse 16% 6% at 50% 6%, rgba(255, 240, 230, 0.9), transparent 70%),
    radial-gradient(circle at 40% 36%, #f08a52 0%, #c9532c 55%, #7a2a16 100%);
  box-shadow: 0 0 60px 16px rgba(240, 120, 70, 0.35), inset -3vmin -2vmin 6vmin rgba(0, 0, 0, 0.5);
}

.sky:is([data-stage='mars'], [data-stage='jupiter'], [data-stage='saturn']) .marble {
  opacity: 1;
  width: 5px;
  background: #9fd0ff;
  box-shadow: 0 0 10px 3px rgba(150, 205, 255, 0.8);
}

/* Jupiter and Saturn: banded giants. */
.sky:is([data-stage='jupiter'], [data-stage='saturn']) .sun {
  width: min(50vmin, 460px);
  background:
    radial-gradient(ellipse 12% 7% at 66% 62%, #b5482a 0 60%, transparent 62%),
    linear-gradient(176deg, #c9a37c 0 12%, #e9d3b2 12% 22%, #b9794f 22% 31%, #ecd9bd 31% 44%, #a8623c 44% 52%, #e3c9a4 52% 63%, #b98558 63% 72%, #e9d6b8 72% 84%, #a9764f 84%);
  box-shadow: 0 0 60px 16px rgba(240, 200, 150, 0.3), inset -4vmin -3vmin 8vmin rgba(0, 0, 0, 0.55);
}

.sky[data-stage='saturn'] .sun {
  width: min(44vmin, 400px);
  background: linear-gradient(176deg, #d9c08a 0 16%, #f0e0b4 16% 30%, #cdb07a 30% 42%, #efe2bd 42% 58%, #c9a96e 58% 70%, #ead9a8 70% 86%, #c2a06a 86%);
}

.sky[data-stage='saturn'] .sun::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210%;
  height: 46%;
  translate: -50% -50%;
  rotate: -16deg;
  border-radius: 50%;
  border: clamp(8px, 2.2vmin, 22px) solid rgba(236, 219, 170, 0.8);
  box-shadow: 0 0 0 3px rgba(190, 165, 110, 0.6), inset 0 0 0 3px rgba(190, 165, 110, 0.6);
}

/* Pluto and beyond. */
.sky[data-stage='pluto'] .sun {
  width: min(24vmin, 220px);
  background:
    radial-gradient(ellipse 34% 30% at 58% 60%, #f3e8da 0 70%, transparent 72%),
    radial-gradient(circle at 40% 36%, #d8c2aa 0%, #a98c74 60%, #5f4c40 100%);
  box-shadow: 0 0 40px 10px rgba(230, 215, 200, 0.22), inset -2vmin -1.4vmin 4vmin rgba(0, 0, 0, 0.55);
}

.sky[data-stage='pluto'] .nebula {
  opacity: 0.35;
}

.sky[data-stage='interstellar'] .nebula {
  opacity: 1;
}

.sky[data-stage='interstellar'] .sun {
  opacity: 0;
}

/* ---------- the journey strip ---------- */

.journey {
  width: min(100% - 2 * var(--gutter), 980px);
  margin-inline: auto;
  padding-top: clamp(28px, 6vw, 64px);
}

.journey-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.journey-now b {
  color: var(--gold);
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.journey-now span {
  color: var(--cream-dim);
  font: 400 0.82rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 241, 214, 0.25) transparent;
}

.journey-track li {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 22px 26px 0 0;
  color: rgba(255, 241, 214, 0.42);
}

.journey-track li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 241, 214, 0.16);
}

.journey-track li::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--earth);
  border: 2px solid rgba(255, 241, 214, 0.3);
}

.journey-track li.passed::before {
  background: var(--gold-deep);
}

.journey-track li:is(.passed, .here)::after {
  border-color: var(--gold);
  background: var(--gold);
}

.journey-track li.here::after {
  box-shadow: 0 0 0 5px rgba(255, 201, 74, 0.25);
}

.journey-track li:is(.passed, .here) {
  color: var(--cream);
}

.journey-track b {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.journey-track li.here b {
  color: var(--gold);
}

.journey-track span {
  font: 400 0.66rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .ledger {
    gap: 10px;
  }

  .stratum {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stratum .rank {
    display: none;
  }

  .cta-note {
    font-size: 0.68rem;
  }
}

@media (max-height: 560px) {
  .sky {
    --ridge: max(16.7vw, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Old Money details ---------- */

.altitude {
  border-radius: 0;
  background: transparent;
  border-color: rgba(216, 180, 90, 0.5);
}

.byline,
.reign-clock,
.altitude,
.cta-note,
.watchers {
  letter-spacing: 0.26em;
}

.proclamation::before,
.proclamation::after {
  font-style: normal;
}

.watchers {
  border-radius: 0;
  border-color: rgba(216, 180, 90, 0.3);
}

.section-head h2,
.decree h2,
.verdict-card h2,
.journey-now b {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps li {
  border-radius: 0;
  border-color: rgba(216, 180, 90, 0.22);
}

.steps li::before {
  font-style: italic;
  font-weight: 500;
}

.decree,
.verdict-card {
  border-radius: 2px;
}

.decree {
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.6), 0 0 0 7px var(--night), 0 0 0 8px rgba(216, 180, 90, 0.35), 0 40px 120px rgba(0, 0, 0, 0.8);
}

.verdict-card {
  background: linear-gradient(170deg, #0f0e0b, #070605);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.45), 0 40px 120px rgba(0, 0, 0, 0.8);
}

.field textarea,
.field input {
  border-radius: 0;
}

.field textarea {
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
}

.ghost {
  border-radius: 0;
  border-color: rgba(216, 180, 90, 0.4);
}

.toast {
  border-radius: 0;
  font-style: italic;
  font-size: 1.15rem;
}

.demo-checkout h1 {
  font-style: italic;
}

/* ---------- legal pages and links ---------- */

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 18px;
  font: 400 0.74rem/1.6 var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
}

.colophon-links a,
.legal-foot a {
  color: rgba(255, 241, 214, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 90, 0.35);
}

.colophon-links a:hover,
.colophon-links a:focus-visible,
.legal-foot a:hover,
.legal-foot a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.decree-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal {
  background: linear-gradient(175deg, var(--night), var(--earth-deep) 60%);
}

.legal-head {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px) var(--gutter) 0;
}

.legal-body {
  width: min(100% - 2 * var(--gutter), 720px);
  margin: clamp(32px, 6vw, 64px) auto 0;
  color: rgba(244, 236, 219, 0.82);
  font: 400 0.95rem/1.75 var(--mono);
  overflow-wrap: anywhere;
}

.legal-body h1 {
  color: var(--cream);
  font: italic 600 clamp(2.2rem, 6vw, 3.4rem) / 1.05 var(--display);
}

.legal-body h2 {
  margin: 2.4em 0 0.6em;
  color: var(--gold);
  font: 600 clamp(1.3rem, 3vw, 1.6rem) / 1.2 var(--display);
}

.legal-body p,
.legal-body ul {
  margin: 0 0 1em;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  margin-bottom: 0.6em;
}

.legal-body li::marker {
  color: var(--gold-deep);
}

.legal-body b {
  color: var(--cream);
  font-weight: 500;
}

.legal-body a {
  color: var(--gold);
  text-underline-offset: 2px;
}

.legal-body a.cta {
  color: var(--ink);
  text-decoration: none;
}

.advertise-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  color: var(--cream-dim);
}

.advertise-table th,
.advertise-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 241, 214, 0.14);
  text-align: left;
}

.advertise-table th {
  color: var(--cream);
  font-weight: 500;
}

.legal-updated {
  margin-top: 12px !important;
  color: rgba(255, 241, 214, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  width: min(100% - 2 * var(--gutter), 720px);
  margin: clamp(48px, 8vw, 80px) auto 0;
  padding: 24px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(216, 180, 90, 0.18);
  font: 400 0.78rem/1.6 var(--mono);
  letter-spacing: 0.06em;
}

/* On narrow screens the pay button's label wraps so the price stays visible. */
.cta-pay .cta-price {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .cta-pay .cta-label {
    min-width: 0;
    white-space: normal;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-align: left;
  }
}

.legal-owner {
  margin: 20px 0 28px !important;
  padding: 12px 16px;
  border: 1px solid rgba(216, 180, 90, 0.3);
  border-left: 3px solid var(--gold);
  background: rgba(216, 180, 90, 0.06);
  color: var(--cream);
}

.colophon-owner {
  margin-top: 14px;
  font: 400 0.74rem/1.6 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
}

.colophon-owner a,
.legal-foot-owner a {
  color: var(--gold);
  text-decoration: none;
}

.colophon-owner a:hover,
.colophon-owner a:focus-visible,
.legal-foot-owner a:hover,
.legal-foot-owner a:focus-visible {
  text-decoration: underline;
}

.legal-foot .legal-foot-owner a {
  border-bottom: 0;
}

.legal-foot-owner {
  flex-basis: 100%;
  text-align: center;
  color: rgba(255, 241, 214, 0.45);
}

/* ---------- promo links ---------- */

.king-link {
  margin: 10px 0 0;
  text-align: center;
}

.king-link a,
.stratum .site {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  max-width: 100%;
  color: var(--gold);
  font: 500 clamp(0.74rem, 1.1vw, 0.86rem) / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.king-link a {
  padding: 7px 14px;
  border: 1px solid rgba(216, 180, 90, 0.45);
  border-radius: 999px;
  background: rgba(216, 180, 90, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.king-link a::after,
.stratum .site::after {
  content: '↗';
  font-size: 0.95em;
  opacity: 0.8;
}

.king-link a:hover,
.king-link a:focus-visible {
  border-color: var(--gold);
  background: rgba(216, 180, 90, 0.16);
}

.stratum .site {
  margin-top: 4px;
  font-size: 0.72rem;
  font-style: normal;
  opacity: 0.85;
}

.stratum .site:hover,
.stratum .site:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-optional {
  color: rgba(27, 15, 20, 0.45);
  letter-spacing: 0.06em;
}

.field-hint {
  font: 400 0.78rem/1.4 var(--mono);
  color: rgba(27, 15, 20, 0.6);
}

/* ---------- growth: links into the archive ---------- */

.byline .crown-number {
  margin-left: 0.8em;
  color: rgba(255, 241, 214, 0.5);
  font: 400 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 90, 0.3);
}

.byline .crown-number:hover,
.byline .crown-number:focus-visible {
  color: var(--gold);
}

a.rank {
  text-decoration: none;
}

a.rank:hover,
a.rank:focus-visible {
  color: var(--gold);
}

.archive-link {
  padding-bottom: clamp(20px, 4vw, 36px);
  color: rgba(255, 241, 214, 0.5);
  font: 400 0.78rem/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
}

.archive-link a {
  color: var(--gold);
  text-underline-offset: 3px;
}

/* ---------- growth: "email me if I'm dethroned" ---------- */

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font: 500 0.88rem/1.35 var(--mono);
  color: rgba(27, 15, 20, 0.85);
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #a8842c;
}

.check small {
  display: block;
  margin-top: 3px;
  color: rgba(27, 15, 20, 0.6);
  font-size: 0.76rem;
  font-weight: 400;
}

/* ---------- growth: the share screen ---------- */

.share {
  display: grid;
  gap: 12px;
  width: 100%;
}

.verdict-card .share-text {
  color: var(--cream);
  font-style: italic;
  font-size: 1.25rem;
}

.verdict-card .share-permalink {
  font: 400 0.8rem/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.share-permalink a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(216, 180, 90, 0.5);
  border-radius: 999px;
  background: rgba(216, 180, 90, 0.1);
  color: var(--cream);
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover,
.share-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(216, 180, 90, 0.22);
}

.share-btn[hidden] {
  display: none;
}

/* ---------- growth: server-rendered pages (reign, archive, stats, report) ---------- */

.reign-body,
.fallen-body,
.stats-body,
.report-body,
.page-body {
  width: min(100% - 2 * var(--gutter), 980px);
  margin: clamp(32px, 6vw, 64px) auto 0;
  color: rgba(244, 236, 219, 0.85);
  font: 400 0.95rem/1.6 var(--mono);
  overflow-wrap: anywhere;
}

.reign-body {
  width: min(100% - 2 * var(--gutter), 760px);
}

:is(.fallen-body, .stats-body, .report-body, .page-body) h1 {
  color: var(--cream);
  font: italic 600 clamp(2.2rem, 6vw, 3.4rem) / 1.05 var(--display);
}

:is(.stats-body, .report-body) h2 {
  margin: 2em 0 0.6em;
  color: var(--gold);
  font: 600 1.5rem/1.2 var(--display);
}

.fallen-intro {
  margin: 12px 0 28px;
  color: var(--cream-dim);
}

.fallen-intro a {
  color: var(--gold);
}

.reign-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.reign-number {
  color: var(--gold);
  font: 500 0.78rem/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reign-number b {
  font-weight: 600;
  color: var(--cream);
}

.reign-card .proclamation {
  max-width: 22ch;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.reign-card .proclamation.vacant {
  color: var(--cream-dim);
}

.reign-by {
  color: var(--cream-dim);
  font: 400 0.85rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reign-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 18px 0 6px;
}

.reign-facts div {
  display: grid;
  gap: 2px;
}

.reign-facts dt {
  color: rgba(255, 241, 214, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reign-facts dd {
  margin: 0;
  color: var(--cream);
  font: 600 1.5rem/1.2 var(--display);
  font-variant-numeric: tabular-nums;
}

.reign-cta {
  margin-top: 10px;
}

.reign-cta .cta {
  text-decoration: none;
}

.ghost-link {
  color: var(--gold);
  text-underline-offset: 3px;
}

.reign-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: clamp(36px, 6vw, 56px) 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 241, 214, 0.12);
  font: 400 0.82rem/1.4 var(--mono);
  color: var(--cream-dim);
}

.reign-nav a {
  color: var(--gold);
  text-decoration: none;
}

.reign-nav a:hover,
.reign-nav a:focus-visible {
  text-decoration: underline;
}

.strata.archive {
  list-style: none;
  margin: 0;
  padding: 0;
}

.strata.archive li {
  padding-inline: clamp(12px, 3vw, 24px);
}

.strata.archive a.stratum {
  color: inherit;
  text-decoration: none;
}

.strata.archive a.stratum:hover .words,
.strata.archive a.stratum:focus-visible .words {
  color: var(--gold);
}

.removed-note {
  color: var(--cream-dim);
}

/* stats */

.stats-ledger {
  width: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.stats-ledger .figure {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 241, 214, 0.12);
  border-radius: 14px;
  background: rgba(255, 241, 214, 0.03);
}

.stats-ledger .figure b {
  color: var(--cream);
  font: 600 1.9rem/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.stats-ledger .figure span {
  color: var(--cream-dim);
  font-size: 0.78rem;
}

.stats-chart {
  position: relative;
  margin: 0;
}

.stats-chart svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}

.stats-chart .grid {
  stroke: rgba(255, 241, 214, 0.08);
}

.stats-chart .axis {
  stroke: rgba(255, 241, 214, 0.3);
}

.stats-chart .tick {
  fill: rgba(255, 241, 214, 0.55);
  font: 400 12px var(--mono);
  font-variant-numeric: tabular-nums;
}

.stats-chart .line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.stats-chart .end,
.stats-chart .hover circle {
  fill: var(--gold);
  stroke: var(--earth-deep);
  stroke-width: 2;
}

.stats-chart .end-label {
  fill: var(--cream);
  font: 500 13px var(--mono);
}

.stats-chart .crosshair {
  stroke: rgba(255, 241, 214, 0.35);
  stroke-dasharray: 3 3;
}

.chart-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 6px 10px;
  border: 1px solid rgba(216, 180, 90, 0.5);
  border-radius: 8px;
  background: var(--earth-deep);
  color: var(--cream);
  font: 500 0.8rem/1.2 var(--mono);
  white-space: nowrap;
  pointer-events: none;
}

.stats-chart figcaption {
  margin-top: 6px;
  color: var(--cream-dim);
  font-size: 0.78rem;
  text-align: center;
}

.stats-empty {
  color: var(--cream-dim);
}

.stats-table {
  margin-top: 24px;
}

.stats-table summary {
  color: var(--gold);
  cursor: pointer;
}

.stats-table table,
.report-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

:is(.stats-table, .report-body) :is(th, td) {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 241, 214, 0.1);
  text-align: left;
  vertical-align: top;
}

:is(.stats-table, .report-body) a {
  color: var(--gold);
}

.report-body {
  overflow-x: auto;
}

.report-body small {
  color: var(--cream-dim);
}

@media (max-width: 560px) {
  .reign-facts dd {
    font-size: 1.25rem;
  }

  .stats-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.strata.archive .words {
  font-family: var(--display);
}

.legal-body h3 {
  margin: 1.6em 0 0.4em;
  color: var(--cream);
  font: 600 1.2rem/1.3 var(--display);
}

.legal-body code {
  font-size: 0.9em;
  color: var(--cream);
}

/* ---- /contact ---- */

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-field {
  display: grid;
  gap: 6px;
  color: var(--gold);
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-field small {
  color: var(--cream-dim);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(216, 180, 90, 0.35);
  border-radius: 0;
  background: rgba(244, 236, 219, 0.04);
  color: var(--cream);
  font: 400 1rem/1.5 var(--mono);
  letter-spacing: normal;
  text-transform: none;
}

.contact-field textarea {
  min-height: 9em;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.25);
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-send {
  justify-self: start;
}

.contact-note {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.85rem;
}

.contact-error {
  padding: 10px 14px;
  border-left: 3px solid #e0675a;
  background: rgba(224, 103, 90, 0.12);
  color: var(--cream);
}

.reign-report {
  margin: 14px 0 0;
  text-align: center;
  font: 400 0.8rem/1.4 var(--mono);
}

.reign-report a {
  color: var(--cream-dim);
}

.reign-report a:hover,
.reign-report a:focus-visible {
  color: var(--gold);
}

.check-terms a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- boosts: the fading price ---------- */

.price-fade {
  color: var(--gold);
  font: 400 0.74rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* ---------- boosts: the Patrons strip, just below the crown's gate ---------- */

.patrons {
  width: min(100% - 2 * var(--gutter), 720px);
  margin-inline: auto;
  padding: clamp(14px, 2.6vw, 22px) 0;
  border-bottom: 1px solid rgba(216, 180, 90, 0.14);
}

.patron-list {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.patron {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 12px;
  max-width: 100%;
  text-align: center;
}

.patron-link {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--cream-dim);
  font: 400 clamp(0.74rem, 1.1vw, 0.84rem) / 1.45 var(--mono);
  letter-spacing: 0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.patron-tag {
  color: rgba(216, 180, 90, 0.85);
  font-size: 0.86em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.patron-name {
  color: var(--cream);
  font-weight: 500;
}

.patron-arrow {
  color: var(--gold);
}

.patron-link:hover,
.patron-link:focus-visible {
  color: var(--cream);
}

.patron-link:hover .patron-name,
.patron-link:focus-visible .patron-name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

.patron .report {
  padding: 0;
  font-size: 0.62rem;
}

/* ---------- boosts: the Fallen ---------- */

.stratum .tally .boosted {
  color: rgba(216, 180, 90, 0.8);
  font-size: 0.72rem;
}

/* ---------- boosts: the claim form ---------- */

.boost {
  --royal: #5b2a86;
  --royal-deep: #2f1150;
  --royal-soft: #efe5f8;
  --royal-line: rgba(91, 42, 134, 0.35);
  border: 1.5px solid var(--royal-line);
  border-radius: 14px;
  background: linear-gradient(160deg, #f6effc 0%, var(--royal-soft) 55%, #e6d7f4 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 18px -10px rgba(47, 17, 80, 0.45);
  overflow: hidden;
}

.boost summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 16px;
  font: 600 0.78rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal-deep);
  cursor: pointer;
  list-style: none;
}

.boost summary::before {
  content: '✦';
  color: var(--royal);
  letter-spacing: 0;
}

.boost summary .field-optional {
  color: rgba(47, 17, 80, 0.55);
}

.boost summary:hover,
.boost summary:focus-visible {
  background: rgba(91, 42, 134, 0.07);
}

.boost summary::-webkit-details-marker {
  display: none;
}

.boost summary::after {
  content: '+';
  margin-left: auto;
  color: var(--royal);
  font-size: 1.1rem;
  line-height: 1;
}

.boost[open] summary {
  border-bottom: 1px solid var(--royal-line);
}

.boost[open] summary::after {
  content: '−';
}

.boost-body {
  display: grid;
  gap: 14px;
  padding: 14px 16px 18px;
}

.boost-intro {
  color: rgba(47, 17, 80, 0.8);
  font: 400 0.78rem/1.45 var(--mono);
}

.boost .field-label,
.boost .field-hint {
  color: rgba(47, 17, 80, 0.75);
}

.boost .field input {
  border-color: var(--royal-line);
  background: #fdfaff;
}

.boost .field input:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(140, 82, 196, 0.35);
}

.boost-amount {
  display: flex;
  max-width: 220px;
}

.boost-prefix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 2px solid var(--royal-line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--royal);
  color: #fff;
  font: 600 1.05rem/1 var(--mono);
}

.boost-amount input {
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.boost-total {
  color: var(--royal-deep);
  font: 600 0.88rem/1.3 var(--mono);
  letter-spacing: 0.04em;
}

.boost-total.over {
  color: #c2182b;
  font-weight: 500;
}

.boost-listing {
  display: grid;
  gap: 14px;
}

@media (max-width: 560px) {
  .boost-amount {
    max-width: none;
  }
}
