:root {
  --night: #0a0c0f;
  --night-2: #121719;
  --parch: #f1e6cb;
  --parch-2: #e4d3ab;
  --parch-3: #cdb784;
  --ink: #3e2a1b;
  --ink-soft: #6b5036;
  --red: #9e1d17;
  --red-deep: #6d110c;
  --gold: #c9a45c;
  --gold-hi: #f0d898;
  --gold-lo: #8a6a2f;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --display: "Uncial Antiqua", "Cinzel", serif;
  --caps: "Cinzel", "Cormorant Garamond", serif;
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--parch);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  background:
    radial-gradient(ellipse 80% 55% at 70% 8%, rgba(120, 140, 160, .16), transparent 60%),
    radial-gradient(ellipse 120% 70% at 50% 115%, rgba(201, 164, 92, .13), transparent 60%),
    linear-gradient(180deg, #0c1116 0%, #0d1214 45%, #0a0c0d 100%);
  overflow-x: hidden;
}

/* ---------- night sky, forest, mist ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.moon {
  position: fixed; top: 3.2vh; right: 4.5vw; width: 72px; height: 72px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 38% 36%, #fbf6e6 0%, #e9e0c6 45%, #cfc4a4 70%, #b7ab8a 100%);
  box-shadow: 0 0 40px 8px rgba(240, 232, 205, .18), 0 0 160px 60px rgba(180, 190, 210, .07);
  opacity: .85;
}
.moon::after { /* a cloud drifting across */
  content: ""; position: absolute; left: -60px; top: 34px; width: 220px; height: 26px; border-radius: 50%;
  background: rgba(12, 17, 22, .75); filter: blur(9px); animation: cloud 48s linear infinite;
}
@keyframes cloud { from { transform: translateX(-160px); } to { transform: translateX(260px); } }

.treeline {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; z-index: 0; pointer-events: none;
}
.eyes {
  position: fixed; z-index: 1; bottom: 15vh; left: 7vw; display: flex; gap: 9px; pointer-events: none;
  opacity: 0; animation: eyes 23s ease-in-out 6s infinite;
}
.eyes i {
  width: 6px; height: 4px; border-radius: 50%; background: #ffcf4a;
  box-shadow: 0 0 6px 2px rgba(255, 190, 40, .8), 0 0 18px 6px rgba(255, 160, 20, .25);
}
@keyframes eyes {
  0%, 62% { opacity: 0; }
  66%, 76% { opacity: .9; }
  77% { opacity: 0; } 78% { opacity: .9; }
  86%, 100% { opacity: 0; }
}
.ground-mist { position: fixed; inset: auto 0 0 0; height: 40vh; z-index: 1; pointer-events: none; overflow: hidden; }
.ground-mist span {
  position: absolute; bottom: -8vh; left: -50%; width: 200%; height: 30vh;
  background: radial-gradient(ellipse 30% 50% at 50% 60%, rgba(200, 210, 215, .10), transparent 70%),
              radial-gradient(ellipse 25% 45% at 20% 70%, rgba(200, 210, 215, .08), transparent 70%),
              radial-gradient(ellipse 25% 45% at 80% 65%, rgba(200, 210, 215, .09), transparent 70%);
  animation: drift 60s linear infinite;
}
.ground-mist span:nth-child(2) { bottom: -2vh; opacity: .7; animation-duration: 90s; animation-direction: reverse; }
.ground-mist span:nth-child(3) { bottom: 6vh; opacity: .45; animation-duration: 120s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(25%); } }

/* ---------- masthead ---------- */
.masthead { position: relative; z-index: 2; text-align: center; padding: 5.5vh 20px 1vh; }
.kicker {
  margin: 0; font-family: var(--caps); font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); opacity: .9; display: inline-flex; align-items: center; gap: .7em;
}
.kicker .dot { opacity: .6; }
.ring-glyph {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(240, 200, 110, .6), inset 0 0 4px rgba(240, 200, 110, .5);
}
h1 {
  margin: .18em 0 .1em; font-family: var(--display); font-weight: 400;
  font-size: clamp(42px, 7.2vw, 96px); line-height: 1; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 28px rgba(240, 190, 90, .22));
}
.lede { margin: .5em auto 0; max-width: 40em; font-size: clamp(17px, 1.6vw, 21px); font-style: italic; color: #d9ccb0; }

/* ---------- the five arches ---------- */
.stage {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 26px);
  max-width: 1320px; margin: 3.5vh auto 0; padding: 0 clamp(14px, 3vw, 40px);
}
.hero {
  all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: stretch;
  position: relative; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(26px);
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.25s + var(--i) * .13s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.arch {
  position: relative; display: block; aspect-ratio: 1 / 1.9; padding: 7px;
  border-radius: 50% 50% 6px 6px / 26% 26% 6px 6px;
  background: linear-gradient(180deg, #e6c983, #9a7836 40%, #6e5121 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px -10px rgba(0, 0, 0, .9), 0 0 0 rgba(255, 196, 100, 0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, filter .5s;
}
.arch::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: -9px; width: 16px; height: 16px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #f6e2a8, #b38b45 60%, #6e5121);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 12px rgba(240, 200, 120, .25);
}
.arch::after {
  content: ""; position: absolute; z-index: 2; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%;
  transform: translateX(-50%); background: var(--red);
}
.arch-inner {
  position: absolute; inset: 7px; overflow: hidden; display: block;
  border-radius: 50% 50% 3px 3px / 25.5% 25.5% 3px 3px;
  background:
    var(--paper-grain),
    radial-gradient(ellipse 90% 60% at 50% 38%, #fbf3dc 0%, var(--parch) 45%, var(--parch-2) 80%, var(--parch-3) 100%);
  box-shadow: inset 0 0 0 2px rgba(110, 70, 30, .35), inset 0 0 0 6px rgba(241, 230, 203, .9),
              inset 0 0 0 7px rgba(158, 29, 23, .55), inset 0 0 60px rgba(120, 80, 30, .35);
}
.halo {
  position: absolute; left: 50%; bottom: 8%; width: 120%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 214, 140, .55), rgba(255, 214, 140, 0) 60%);
  opacity: 0; transition: opacity .6s;
}
.figure {
  position: absolute; left: 50%; bottom: 3%; height: var(--h); width: auto; max-width: 96%;
  object-fit: contain; object-position: bottom center;
  transform: translateX(-50%); transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .6s, opacity .6s;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .3));
  user-select: none; pointer-events: none;
}
.figure.bust { bottom: 15%; }
.arch-mist {
  position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 25% 100%, rgba(250, 244, 228, .95), transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 100%, rgba(250, 244, 228, .9), transparent 70%),
    linear-gradient(0deg, rgba(240, 230, 205, 1) 0%, rgba(240, 230, 205, .75) 30%, transparent 100%);
}
.arch-mist::before {
  content: ""; position: absolute; inset: 20% -40% 0; opacity: .8;
  background: radial-gradient(ellipse 22% 40% at 30% 60%, rgba(255, 252, 240, .9), transparent 70%),
              radial-gradient(ellipse 22% 40% at 70% 50%, rgba(255, 252, 240, .8), transparent 70%);
  animation: wisps 14s ease-in-out infinite alternate;
}
@keyframes wisps { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

.plaque {
  display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 14px;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.plaque .rune { font-size: 15px; color: var(--gold); opacity: .7; line-height: 1; }
.plaque .name {
  font-family: var(--display); font-size: clamp(20px, 2.1vw, 30px); color: #f6ead0; line-height: 1.1; margin-top: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.plaque .line {
  font-family: var(--caps); font-size: clamp(9.5px, .82vw, 12px); letter-spacing: .14em; text-transform: uppercase;
  color: #bfae8c; margin-top: 5px;
}
.plaque .line i { color: var(--gold); font-style: normal; padding: 0 .2em; }
.plaque .status {
  margin-top: 9px; font-size: 15px; font-style: italic; color: #8e866f; min-height: 1.4em;
  transition: color .4s;
}

/* hover / focus: the chosen one steps into the candlelight */
@media (hover: hover) {
  .stage:has(.hero:hover) .hero:not(:hover) .arch { filter: brightness(.62) saturate(.7); }
  .stage:has(.hero:hover) .hero:not(:hover) .plaque { opacity: .6; }
}
.hero:hover .arch, .hero:focus-visible .arch {
  transform: translateY(-10px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 50px -14px rgba(0, 0, 0, .95),
              0 0 50px 4px rgba(255, 196, 100, .28), 0 0 120px 20px rgba(255, 170, 70, .12);
}
.hero:hover .halo, .hero:focus-visible .halo { opacity: 1; animation: flicker 3.2s infinite; }
.hero:hover .figure, .hero:focus-visible .figure { transform: translateX(-50%) scale(1.045); }
.hero:hover .plaque, .hero:focus-visible .plaque { transform: translateY(-6px); }
.hero:hover .plaque .status, .hero:focus-visible .plaque .status { color: var(--gold-hi); }
.hero:focus-visible .arch { outline: 2px solid var(--gold-hi); outline-offset: 5px; }
@keyframes flicker {
  0%, 100% { opacity: .95; } 20% { opacity: .8; } 40% { opacity: 1; } 55% { opacity: .85; } 75% { opacity: 1; }
}

/* claimed */
.seal {
  position: absolute; left: 50%; bottom: 12%; width: 30%; aspect-ratio: 1; transform: translateX(-50%) scale(0) rotate(-20deg); z-index: 2;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 35% 30%, #d2463a, var(--red) 45%, var(--red-deep) 100%);
  box-shadow: 0 3px 8px rgba(60, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 160, 140, .4);
  display: grid; place-items: center; opacity: 0;
}
.seal span {
  width: 72%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(255, 190, 170, .35); color: rgba(255, 215, 200, .75);
  font-size: clamp(16px, 2vw, 28px); text-shadow: 0 -1px 0 rgba(0, 0, 0, .4);
}
.hero.taken .seal { opacity: 1; transform: translateX(-50%) scale(1) rotate(-8deg); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.hero.taken .figure { filter: sepia(.5) saturate(.6) opacity(.5); }
.hero.taken .plaque .status { color: #e7b9a6; font-style: normal; font-family: var(--caps); font-size: 13px; letter-spacing: .08em; }
.hero.mine .arch {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px -10px rgba(0, 0, 0, .9), 0 0 40px 6px rgba(255, 200, 110, .35);
}
.hero.mine .figure { filter: none; }
.hero.mine .plaque .status { color: var(--gold-hi); }
.hero.stamp .seal { animation: stamp .7s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: translateX(-50%) scale(3.2) rotate(-30deg); }
  60% { opacity: 1; transform: translateX(-50%) scale(.9) rotate(-6deg); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-8deg); }
}

.banner {
  position: absolute; left: 6%; right: 6%; bottom: 4.5%; z-index: 1; padding: 7px 14px 6px;
  font-family: var(--serif); font-weight: 700; font-size: clamp(14px, 1.45vw, 20px); line-height: 1.1; text-align: center; letter-spacing: .02em;
  color: #fff0dc; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #bb3027, var(--red) 50%, #74120d);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  opacity: 0; transform: translateY(10px); transition: opacity .5s .25s, transform .5s .25s;
}
.hero.taken .banner { opacity: 1; transform: none; }

/* ---------- the company roster ---------- */
.company { position: relative; z-index: 2; max-width: 980px; margin: 6vh auto 0; padding: 0 20px; text-align: center; }
.company h2 {
  font-family: var(--caps); font-weight: 500; font-size: 14px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 18px; margin: 0 0 18px;
}
.company h2::before, .company h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .6), transparent); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.roster li {
  padding: 10px 6px; border: 1px solid rgba(201, 164, 92, .18); border-radius: 4px;
  background: rgba(10, 12, 14, .55); backdrop-filter: blur(3px);
  display: flex; flex-direction: column; gap: 2px; transition: border-color .5s, background .5s;
}
.roster .r-hero { font-family: var(--display); color: #e9dcc0; font-size: 18px; }
.roster .r-player { font-style: italic; color: #7c7666; font-size: 16px; overflow-wrap: anywhere; }
.roster li.filled { border-color: rgba(201, 164, 92, .55); background: rgba(60, 20, 14, .45); }
.roster li.filled .r-player { color: var(--gold-hi); font-style: normal; }
.hint { color: #8b8370; font-size: 15px; font-style: italic; margin: 16px 0 0; }

.foot { position: relative; z-index: 2; text-align: center; color: #5f5a4d; font-size: 13px; padding: 7vh 20px 4vh; }

/* ---------- the tome (hero details) ---------- */
.tome {
  width: min(1080px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 6px; color: var(--ink);
  background:
    var(--paper-grain),
    radial-gradient(ellipse 80% 70% at 50% 40%, #faf2dc 0%, var(--parch) 50%, var(--parch-2) 85%, #c9b07c 100%);
  box-shadow: 0 0 0 1px #6e5121, 0 0 0 6px #1b1410, 0 0 0 7px rgba(201, 164, 92, .6), 0 40px 120px rgba(0, 0, 0, .9);
  overflow: auto; overscroll-behavior: contain;
}
.tome::backdrop { background: rgba(4, 6, 8, .72); backdrop-filter: blur(5px) saturate(.7); }
.tome[open] { animation: open .55s cubic-bezier(.2, .8, .2, 1); }
.tome[open]::backdrop { animation: fade .5s ease; }
@keyframes open { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.close-form { position: sticky; top: 0; height: 0; z-index: 3; }
.close {
  position: absolute; right: 12px; top: 8px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  font-size: 34px; line-height: 1; color: var(--ink-soft); border-radius: 50%;
}
.close:hover { color: var(--red); background: rgba(158, 29, 23, .08); }
.tome-grid { display: grid; grid-template-columns: 38% 1fr; }
.tome-art {
  position: relative; padding: 34px 10px 34px 34px;
}
.tome-arch {
  position: sticky; top: 30px; aspect-ratio: 1 / 1.75; overflow: hidden;
  border-radius: 50% 50% 4px 4px / 27% 27% 4px 4px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #fffaea, rgba(255, 250, 234, 0) 75%);
  box-shadow: inset 0 0 0 1px rgba(110, 70, 30, .35), inset 0 0 0 5px rgba(250, 242, 220, .8), inset 0 0 0 6px rgba(158, 29, 23, .45);
}
.tome-arch img {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); height: var(--h, 90%); max-width: 94%;
  object-fit: contain; object-position: bottom;
}
.tome-arch img.bust { bottom: 16%; }
.tome-text { padding: 40px 46px 40px 22px; }
.tome-kicker {
  margin: 0; font-family: var(--caps); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.tome h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; margin: 8px 0 4px; color: #2c1d12; }
.tagline { margin: 0; font-style: italic; font-size: 21px; color: var(--ink-soft); }
.flourish {
  height: 14px; margin: 14px 0 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14'><path d='M0 7 H96 M144 7 H240' stroke='%239e1d17' stroke-width='1'/><path d='M120 1 L127 7 L120 13 L113 7 Z' fill='none' stroke='%239e1d17' stroke-width='1.3'/><circle cx='104' cy='7' r='2' fill='%239e1d17'/><circle cx='136' cy='7' r='2' fill='%239e1d17'/></svg>") left center / 240px 14px no-repeat;
}
.intro { font-size: 19.5px; line-height: 1.55; margin: 0 0 22px; }
.intro::first-letter {
  font-family: var(--display); float: left; font-size: 3.3em; line-height: .82; padding: 6px 8px 0 0; color: var(--red);
}
.attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 14px; }
.attr {
  text-align: center; padding: 10px 6px 9px; border: 1px solid rgba(110, 70, 30, .3); border-radius: 4px;
  background: rgba(255, 250, 235, .45);
}
.attr .label { font-family: var(--caps); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.attr .val { font-family: var(--caps); font-weight: 700; font-size: 34px; line-height: 1.05; color: #2c1d12; }
.attr .tn { font-size: 14.5px; color: var(--ink-soft); }
.derived { display: flex; justify-content: space-between; margin: 0 0 18px; padding: 8px 4px; border-top: 1px solid rgba(110, 70, 30, .25); border-bottom: 1px solid rgba(110, 70, 30, .25); }
.derived div { display: flex; align-items: baseline; gap: 8px; }
.derived dt { font-family: var(--caps); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.derived dd { margin: 0; font-family: var(--caps); font-weight: 700; font-size: 21px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.tome h3 { font-family: var(--caps); font-weight: 500; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 10px 0 7px; }
.chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 2px 11px; border-radius: 999px; border: 1px solid rgba(158, 29, 23, .4); font-style: italic; font-size: 17px; background: rgba(255, 250, 235, .5); }
.skills { list-style: none; padding: 0; margin: 0; }
.skills li { display: flex; justify-content: space-between; align-items: center; font-size: 18px; padding: 1px 0; }
.skills .pips { letter-spacing: 3px; color: var(--ink); font-size: 13px; }
.skills .fav { color: var(--red); font-size: 13px; margin-left: 4px; }
.gear { list-style: none; padding: 0; margin: 0; }
.gear li { font-size: 17.5px; padding: 2px 0 2px 18px; position: relative; }
.gear li::before { content: "❖"; position: absolute; left: 0; top: 5px; font-size: 10px; color: var(--red); }
.blessing { margin: 0; font-size: 17.5px; font-style: italic; }
.legend { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; }

/* action area */
.action { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(110, 70, 30, .3); }
.btn {
  appearance: none; border: 0; cursor: pointer; font-family: var(--caps); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 15px; padding: 15px 30px; border-radius: 3px; color: #fff1e4;
  background: linear-gradient(180deg, #c0322a, var(--red) 55%, var(--red-deep));
  box-shadow: 0 1px 0 rgba(255, 200, 180, .35) inset, 0 6px 18px rgba(110, 10, 5, .4), 0 0 0 1px #4d0a06;
  transition: transform .15s, box-shadow .3s, filter .2s;
}
.btn:hover { filter: brightness(1.1); box-shadow: 0 1px 0 rgba(255, 200, 180, .35) inset, 0 10px 26px rgba(110, 10, 5, .5), 0 0 0 1px #4d0a06, 0 0 24px rgba(220, 60, 40, .35); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(.6) brightness(.9); cursor: progress; }
.btn.ghost { background: none; color: var(--red); box-shadow: inset 0 0 0 1px rgba(158, 29, 23, .6); }
.btn.ghost:hover { background: rgba(158, 29, 23, .07); }
.ask { display: grid; gap: 10px; }
.ask label { font-style: italic; font-size: 20px; }
.ask-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ask input {
  flex: 1 1 220px; font: inherit; font-size: 22px; padding: 10px 14px; color: #2c1d12;
  border: 0; border-bottom: 2px solid var(--ink-soft); background: rgba(255, 252, 240, .7); border-radius: 3px 3px 0 0;
}
.ask input:focus { outline: none; border-bottom-color: var(--red); background: #fffdf4; }
.note { font-size: 16px; font-style: italic; color: var(--ink-soft); margin: 4px 0 0; }
.error { color: var(--red); font-weight: 600; margin: 6px 0 0; }
.claimed-by { display: flex; align-items: center; gap: 16px; }
.claimed-by .wax {
  width: 62px; height: 62px; flex: none; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 35% 30%, #d2463a, var(--red) 45%, var(--red-deep));
  box-shadow: 0 3px 8px rgba(60, 0, 0, .4), inset 0 -3px 6px rgba(0, 0, 0, .35);
  display: grid; place-items: center; color: rgba(255, 215, 200, .8); font-size: 24px;
}
.claimed-by p { margin: 0; font-size: 20px; }
.claimed-by strong { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--red-deep); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 14px 26px; border-radius: 4px; font-size: 19px; font-style: italic; color: #f6ead0;
  background: rgba(20, 14, 10, .92); box-shadow: 0 0 0 1px rgba(201, 164, 92, .5), 0 14px 40px rgba(0, 0, 0, .6);
  transition: opacity .4s, transform .4s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .stage {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    padding: 18px 13vw 10px; margin-top: 2vh; scrollbar-width: none;
  }
  .stage::-webkit-scrollbar { display: none; }
  .hero { flex: 0 0 64vw; scroll-snap-align: center; }
  .plaque .line { font-size: 11px; }
  .roster { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .tome { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .tome-grid { grid-template-columns: 1fr; }
  .tome-art { padding: 26px 22vw 0; }
  .tome-arch { position: relative; top: 0; }
  .tome-text { padding: 20px 22px 36px; }
  .cols { grid-template-columns: 1fr; }
  .derived { flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
  .moon { width: 40px; height: 40px; right: 16px; top: 14px; }
  .kicker .tale { display: none; }
  .lede br { display: none; }
  .masthead { padding-top: 4vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { opacity: 1; transform: none; }
}
