@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #120a18;
  --night-2: #1b1028;
  --ink: #2a1408;
  --bone: #f6efe4;
  --bone-dim: #e4d5c4;
  --gold: #f2c572;
  --gold-2: #ffe3ad;
  --spice: #ef8a45;
  --line: rgba(242, 197, 114, 0.28);
  --header: 4.6rem;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 430;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.lede,
.gloss p,
.pull,
.commandments li p,
.composed,
.note p,
.pyramid dd,
.close-copy p,
.score-num,
.verdict,
.game-prompt,
.game-feedback,
.missing h1 {
  font-family: Fraunces, Georgia, "Iowan Old Style", serif;
  font-optical-sizing: auto;
}

h1,
h2,
h3 {
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: #ef8a45;
  color: #1a0c08;
}

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

.copy-sink {
  position: fixed;
  left: -9999px;
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.8rem;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(to bottom, rgba(12, 7, 20, 0.78), rgba(12, 7, 20, 0));
}

.site-header.is-scrolled {
  background: rgba(16, 10, 24, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(242, 197, 114, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--gold-2);
}

.site-nav a[aria-current="true"] {
  box-shadow: inset 0 -1px 0 var(--gold);
}

.hero,
.close {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 46% at 82% 72%, rgba(255, 186, 120, 0.55), transparent 58%),
    radial-gradient(ellipse 40% 36% at 64% 48%, rgba(96, 48, 130, 0.4), transparent 70%),
    linear-gradient(180deg, #0c0716 0%, #1a0d32 42%, #5a2a6e 68%, #d47868 84%, #ffd4a0 100%);
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    287px 80px 0 rgba(255, 244, 220, 0.35),
    377px 48px 0 rgba(255, 244, 220, 0.7),
    474px 120px 0 rgba(255, 244, 220, 0.4),
    863px 64px 0 rgba(255, 244, 220, 0.55),
    701px 33px 0 rgba(255, 244, 220, 0.85),
    529px 96px 0 rgba(255, 244, 220, 0.7),
    1181px 28px 0 rgba(255, 244, 220, 0.75),
    1231px 90px 0 rgba(255, 244, 220, 0.5),
    136px 70px 0 rgba(255, 244, 220, 0.8),
    61px 140px 0 rgba(255, 244, 220, 0.4),
    820px 18px 0 rgba(255, 244, 220, 0.55),
    975px 52px 0 rgba(255, 244, 220, 0.65),
    1094px 110px 0 rgba(255, 244, 220, 0.45),
    1289px 76px 0 rgba(255, 244, 220, 0.7),
    396px 150px 0 rgba(255, 244, 220, 0.35),
    640px 44px 0 rgba(255, 244, 220, 0.5),
    150px 36px 1px rgba(255, 244, 220, 0.85),
    1040px 36px 0 rgba(255, 244, 220, 0.4);
  animation: twinkle 8s ease-in-out infinite;
}

.planet {
  position: absolute;
  top: 16%;
  right: 22%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff6e6;
  box-shadow: 0 0 16px rgba(255, 230, 180, 0.85);
}

.planet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 12px;
  border: 1.5px solid rgba(255, 230, 190, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.hero-light {
  position: absolute;
  width: min(78vw, 760px);
  aspect-ratio: 1;
  right: -8%;
  bottom: -18%;
}

.hero-light-small {
  width: min(70vw, 560px);
  right: -4%;
  bottom: -28%;
}

.rays {
  position: absolute;
  inset: -8%;
  background: repeating-conic-gradient(
    from -6deg,
    rgba(255, 226, 170, 0) 0deg 9deg,
    rgba(255, 220, 160, 0.22) 9.4deg 10.3deg
  );
  mask-image: radial-gradient(circle, transparent 0 16%, #000 30%, transparent 64%);
}

.sun {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%,
      #fffaf0 0%,
      #ffe7b0 16%,
      #ffc56a 34%,
      #f08a4a 56%,
      rgba(240, 120, 80, 0.35) 72%,
      rgba(240, 120, 80, 0) 78%);
}

.sun::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 150, 0.45), transparent 62%);
}

.motes span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff4d8;
  opacity: 0.75;
  animation: mote 16s linear infinite;
}

.motes span:nth-child(1) { left: 62%; bottom: 28%; animation-duration: 15s; }
.motes span:nth-child(2) { left: 74%; bottom: 34%; width: 2px; height: 2px; animation-duration: 19s; animation-delay: -4s; }
.motes span:nth-child(3) { left: 81%; bottom: 26%; animation-duration: 13s; animation-delay: -7s; }
.motes span:nth-child(4) { left: 58%; bottom: 22%; width: 2px; height: 2px; animation-duration: 21s; animation-delay: -2s; }
.motes span:nth-child(5) { left: 88%; bottom: 32%; animation-duration: 17s; animation-delay: -9s; }
.motes span:nth-child(6) { left: 69%; bottom: 20%; width: 4px; height: 4px; opacity: 0.45; animation-duration: 23s; animation-delay: -6s; }

.dunes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(34vh, 300px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(42rem, 100%);
  padding: 6.75rem 1.35rem 16vh;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.hero h1 {
  font-size: clamp(3.7rem, 8.4vw, 7.4rem);
  font-weight: 620;
  color: var(--bone);
  text-shadow: 0 12px 40px rgba(12, 6, 24, 0.28);
}

.line {
  display: block;
}

.line-italic {
  font-style: italic;
  font-weight: 560;
  color: #ffe6b8;
  padding-left: 0.42em;
}

.lede {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff8ee;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 227, 173, 0.5);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--gold-2);
  background: rgba(255, 227, 173, 0.08);
}

.button-primary {
  background: linear-gradient(180deg, #ffe7b8, #f2c572);
  color: var(--ink);
  border-color: transparent;
}

.button-primary:hover {
  background: linear-gradient(180deg, #fff1d0, #f6d08a);
}

.button:disabled {
  opacity: 0.45;
  cursor: default;
}

.gloss {
  margin: 1.6rem 0 0;
  padding: 0 0 0 0.95rem;
  border-left: 2px solid var(--gold);
  max-width: 30rem;
}

.gloss p {
  margin: 0;
  min-height: 4.4em;
  font-style: italic;
  font-weight: 540;
  font-size: 1.32rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff6e8;
  text-shadow: 0 1px 14px rgba(16, 6, 24, 0.55);
}

.gloss-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  margin-top: 0.35rem;
  margin-left: 0.95rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(14, 8, 22, 0.78);
}

.gloss-controls button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

#gloss-count {
  color: var(--bone-dim);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

section[id] {
  scroll-margin-top: 5.25rem;
}

.section {
  padding: clamp(4.25rem, 9vw, 7.25rem) 1.25rem;
}

.section-canon,
.section-edits {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(120, 60, 90, 0.18), transparent 60%),
    var(--night-2);
}

.wrap {
  width: min(72rem, 100%);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(46rem, 100%);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  max-width: 14ch;
}

.nowrap {
  white-space: nowrap;
}

.deck {
  max-width: 40rem;
  margin: 1.1rem 0 0;
  color: var(--bone-dim);
  font-size: 1.08rem;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.8fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

.manifesto-grid h2 {
  grid-column: 1 / -1;
}

.prose p {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: #f4ebdf;
  font-size: 1.08rem;
  line-height: 1.65;
}

.prose p:last-child {
  margin-bottom: 0;
}

.pull {
  margin: 0.4rem 0 0;
  padding-top: 0.2rem;
  font-style: italic;
  font-weight: 540;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--gold-2);
}

.pull::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--gold);
}

.canon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.82fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.2rem;
}

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

.commandments li {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.commandments li:last-child {
  border-bottom: 1px solid var(--line);
}

.num {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: 1.25rem;
  color: var(--gold);
}

.commandments li p {
  margin: 0;
  font-weight: 520;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.composer {
  position: sticky;
  top: 5.5rem;
  padding: 1.35rem 1.25rem 1.2rem;
  background: #221232;
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.composer h3,
.margin h3,
.note h3,
.reading h3 {
  font-family: Outfit, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.3;
}

.composed {
  min-height: 7.2rem;
  margin: 0.9rem 0 0;
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.composed.is-commandment {
  font-style: italic;
  font-weight: 540;
}

.composer.is-fresh .composed {
  animation: rise 0.45s ease;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status {
  min-height: 1.4em;
  margin: 0.7rem 0 0;
  color: var(--gold-2);
  font-size: 0.92rem;
}

.margin {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.margin ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.margin li {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(242, 197, 114, 0.16);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
}

.sniff {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.sniff > input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.machine {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "index name"
    "index blurb";
  gap: 0.1rem 0.8rem;
  padding: 0.85rem 0.85rem;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(242, 197, 114, 0.16);
  cursor: pointer;
}

.machine:hover {
  background: rgba(255, 227, 173, 0.04);
}

.sniff:has(#m-courtesy:checked) [for="m-courtesy"],
.sniff:has(#m-oracle:checked) [for="m-oracle"],
.sniff:has(#m-intern:checked) [for="m-intern"],
.sniff:has(#m-kettle:checked) [for="m-kettle"],
.sniff:has(#m-viceroy:checked) [for="m-viceroy"] {
  border-color: rgba(242, 197, 114, 0.85);
  background: rgba(242, 197, 114, 0.08);
}

.sniff:has(#m-courtesy:focus-visible) [for="m-courtesy"],
.sniff:has(#m-oracle:focus-visible) [for="m-oracle"],
.sniff:has(#m-intern:focus-visible) [for="m-intern"],
.sniff:has(#m-kettle:focus-visible) [for="m-kettle"],
.sniff:has(#m-viceroy:focus-visible) [for="m-viceroy"] {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.machine-index {
  grid-area: index;
  align-self: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.machine-name {
  grid-area: name;
  font-weight: 560;
}

.machine-blurb {
  grid-area: blurb;
  color: var(--bone-dim);
  font-size: 0.95rem;
}

.dial {
  width: min(100%, 30rem);
}

.dial svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.meter-track,
.meter-value {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.meter-track {
  stroke: rgba(242, 197, 114, 0.2);
}

.meter-value {
  stroke: url("#arc-gold");
  stroke-dasharray: 100 100;
  stroke-dashoffset: 69;
  transition: stroke-dashoffset 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#m-oracle:checked ~ .stage .meter-value { stroke-dashoffset: 48; }
#m-intern:checked ~ .stage .meter-value { stroke-dashoffset: 29; }
#m-kettle:checked ~ .stage .meter-value { stroke-dashoffset: 16; }
#m-viceroy:checked ~ .stage .meter-value { stroke-dashoffset: 6; }

#m-courtesy:checked ~ .stage.is-reset .meter-value,
#m-oracle:checked ~ .stage.is-reset .meter-value,
#m-intern:checked ~ .stage.is-reset .meter-value,
#m-kettle:checked ~ .stage.is-reset .meter-value,
#m-viceroy:checked ~ .stage.is-reset .meter-value {
  transition: none;
  stroke-dashoffset: 100;
}

.dial-label {
  fill: #e4d5c4;
  font-family: Outfit, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.reading {
  display: none;
}

#m-courtesy:checked ~ .stage .for-courtesy,
#m-oracle:checked ~ .stage .for-oracle,
#m-intern:checked ~ .stage .for-intern,
#m-kettle:checked ~ .stage .for-kettle,
#m-viceroy:checked ~ .stage .for-viceroy {
  display: block;
}

.reading h3 {
  margin-top: 0.2rem;
}

.score {
  margin: 0.55rem 0 0;
}

.score-num {
  display: block;
  font-size: clamp(4rem, 8vw, 5.4rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.score-band {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold);
  font-family: Outfit, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pyramid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.15rem 0 0;
}

.pyramid div {
  margin: 0;
}

.pyramid dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pyramid dd {
  margin: 0.3rem 0 0;
  font-weight: 520;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.verdict {
  margin: 1rem 0 0;
  font-style: italic;
  font-weight: 520;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff6e8;
}

#sniff-again {
  margin-top: 1.1rem;
}

.game {
  margin-top: 1.8rem;
}

.game-static {
  margin: 0;
  padding-left: 0.95rem;
  border-left: 2px solid var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
}

.game-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-prompt {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.original-word {
  margin: 0.8rem 0 0;
  color: var(--bone-dim);
  font-size: 0.95rem;
}

.original-word strong {
  color: var(--bone);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tile {
  display: grid;
  place-items: center;
  width: clamp(2.35rem, 7vw, 3.15rem);
  height: clamp(2.9rem, 8vw, 3.8rem);
  border-radius: 0.4rem;
  background: var(--bone);
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.tile.is-changed {
  background: var(--gold);
  box-shadow: 0 0 0 2px #fff1cc;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.choice {
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 227, 173, 0.45);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.choice em {
  font-style: normal;
  color: var(--gold-2);
}

.choice:hover:not(:disabled) {
  border-color: var(--gold-2);
}

.choice.is-correct {
  background: var(--gold);
  border-color: transparent;
  color: var(--ink);
}

.choice.is-correct em {
  color: #7a3d12;
}

.choice.is-off {
  opacity: 0.5;
}

.choice:disabled {
  cursor: default;
}

.choice .tag {
  margin-left: 0.45rem;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.game-feedback {
  min-height: 3.2em;
  margin: 1rem 0 0;
  font-style: italic;
  font-weight: 520;
  font-size: 1.22rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.verdict-block {
  margin-top: 0.4rem;
}

.verdict-block p {
  margin: 0.6rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 540;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--gold-2);
}

#game-next,
#game-replay {
  margin-top: 0.8rem;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.2rem;
}

.note {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.note h3 {
  margin-bottom: 0.75rem;
}

.note p {
  margin: 0;
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.close {
  min-height: 58vh;
  display: grid;
  align-items: center;
}

.close-copy {
  position: relative;
  z-index: 2;
  width: min(46rem, calc(100% - 2.5rem));
  margin: 12vh auto 22vh;
}

.close-copy p {
  margin: 0;
  font-style: italic;
  font-weight: 540;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff8ee;
  text-shadow: 0 10px 30px rgba(12, 6, 24, 0.35);
}

.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  background: #0d0814;
  color: var(--bone-dim);
  border-top: 1px solid rgba(242, 197, 114, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1.5rem 3rem;
}

.footer-grid p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.footer-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--bone);
  letter-spacing: -0.03em;
}

.site-footer a {
  color: var(--gold-2);
  text-underline-offset: 0.2em;
}

.missing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.35rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 186, 120, 0.35), transparent 60%),
    linear-gradient(180deg, #0c0716, #1a0d32 70%);
}

.missing h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.missing .lede {
  margin-bottom: 1.4rem;
}

@keyframes twinkle {
  50% { opacity: 0.55; }
}

@keyframes mote {
  from { transform: translateY(10px); opacity: 0.2; }
  40% { opacity: 0.8; }
  to { transform: translateY(-48px); opacity: 0.15; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .manifesto-grid,
  .canon-layout,
  .sniff,
  .notes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .composer {
    position: static;
  }

  .machine-col {
    order: 2;
  }

  .stage {
    order: 1;
  }

  .planet {
    right: 8%;
    top: 12%;
  }
}

@media (max-width: 640px) {
  .pyramid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .choice {
    flex: 1 1 100%;
  }

  .hero-copy {
    padding-top: 8.5rem;
    padding-bottom: 22vh;
  }

  .hero-light {
    width: 140vw;
    right: -30%;
    bottom: -8%;
  }

  .gloss p {
    min-height: 5.4em;
  }
}

@media (max-height: 760px) and (min-width: 800px) {
  .hero-copy {
    padding-top: 5.4rem;
    padding-bottom: 12vh;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7vw, 5.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .choice,
  .machine {
    border: 1px solid ButtonText;
  }

  .button-primary,
  .choice.is-correct,
  .tile {
    background: ButtonFace;
    color: ButtonText;
  }
}
