/* Undying Arena — the one stylesheet for every page of undyingarena.glimmerdragon.com.
   Palette G1 "Sunny Lantern"; type Fredoka (display) + Nunito (body), self-hosted, OFL.
   No JavaScript anywhere: menus use <details>, :hover and :focus-within. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --sky: #3EC6F2;
  --lagoon: #14A8D8;
  --sea: #0B5F8A;
  --pink: #E85AD0;
  --violet: #6B46C9;
  --violet-deep: #4B2FA0;
  --green: #6CC24A;
  --gold: #FFC94A;
  --gold-pale: #FFE7A3;
  --gold-deep: #9A6A12;
  --ink: #1A1433;
  --ink-2: #251C49;
  --ink-3: #322768;
  --cloud: #FFF8EC;
  --cloud-2: #F6EAD3;
  --muted: #4E4570;
  --muted-light: #CFC8E8;
  --nightmare: #D90AC9;

  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 1.1rem;
  --focus: var(--violet);
  --shadow: 0 .15rem 0 rgba(26, 20, 51, .12), 0 1rem 2.5rem -1rem rgba(26, 20, 51, .35);

  /* default crest (overridden per land) */
  --crest: var(--violet);
  --crest-2: var(--sky);
  --crest-deep: var(--ink-2);
  --crest-soft: #EEE8FB;
}
.crest--dark-valley { --crest: #3A2A63; --crest-2: #225D4A; --crest-deep: #21183D; --crest-soft: #E9E4F5; --crest-glow: #7BE0A8; }
.crest--temple { --crest: #D9A35B; --crest-2: #A9DEE5; --crest-deep: #0E5560; --crest-soft: #F8EEDD; --crest-glow: #FFD98A; }
.crest--adventure-land { --crest: #E85AD0; --crest-2: #14A8D8; --crest-deep: #3E2483; --crest-soft: #FCE8F8; --crest-glow: #8FE3FF; }
.crest--western { --crest: #C8552B; --crest-2: #8FA37A; --crest-deep: #66270F; --crest-soft: #F9E8DC; --crest-glow: #FFC08A; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.62;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--violet); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--violet-deep); }
strong { font-weight: 800; }
ul, ol { padding-left: 1.25em; }
q { quotes: "“" "”" "‘" "’"; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .3rem; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.2em; }
.i--gold { color: var(--gold); }
.i--kicker { width: .95em; height: .95em; color: var(--pink); margin-right: .45em; vertical-align: -.1em; }

/* dark sections flip the focus ring and links */
.story, .atlas, .cast, .help, .footer, .masthead, .zone-hero, .page-hero, .land-nav, .lost--dark { --focus: var(--gold); }

/* ------------------------------------------------------------------ type helpers */
.kicker {
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .06em;
  color: var(--violet); margin-bottom: .6rem; display: flex; align-items: center;
}
.kicker--light { color: var(--gold); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head__intro { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-head--light h2 { color: var(--cloud); }
.section-head--light .section-head__intro { color: #E6F3FA; }
.section-head--light .kicker { color: var(--gold); }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }

/* gilded rule: line — gem — line */
.rule { display: flex; align-items: center; gap: .75rem; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }

/* ------------------------------------------------------------------ buttons, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn .i { width: 1.1em; height: 1.1em; }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 0 .28rem 0 var(--ink); }
.btn--gold:hover { color: var(--ink); background: #FFD56E; transform: translateY(-2px); box-shadow: 0 .4rem 0 var(--ink); }
.btn--gold:active { transform: translateY(2px); box-shadow: 0 .1rem 0 var(--ink); }
.btn--ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(26, 20, 51, .07); color: var(--ink); }
.btn--dark { color: var(--ink); }

.chip {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .07em;
  padding: .28rem .6rem .24rem; border-radius: .45rem; background: var(--ink); color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .45); white-space: nowrap;
}
.chip--soft { background: rgba(255, 248, 236, .14); color: var(--cloud); box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .45); font-size: .85rem; letter-spacing: .02em; }

.role {
  position: absolute; z-index: 2; top: .75rem; left: .75rem;
  font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .12em;
  padding: .3rem .6rem .26rem; border-radius: .35rem; background: var(--ink); color: var(--cloud);
  box-shadow: 0 .15rem 0 rgba(0, 0, 0, .25);
}
.role--boss { background: var(--violet); color: #fff; }
.role--lieutenant { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 .15rem 0 rgba(0, 0, 0, .25); }
.role--elite { background: var(--ink); color: var(--gold-pale); }

/* ------------------------------------------------------------------ gilded frames (hand-drawn SVG corners) */
.frame {
  position: relative;
  background-image: url("../svg/corner-gold-tl.svg"), url("../svg/corner-gold-tr.svg"), url("../svg/corner-gold-bl.svg"), url("../svg/corner-gold-br.svg");
  background-repeat: no-repeat;
  background-position: .55rem .55rem, calc(100% - .55rem) .55rem, .55rem calc(100% - .55rem), calc(100% - .55rem) calc(100% - .55rem);
  background-size: 2.4rem 2.4rem;
}
.frame--deep {
  background-image: url("../svg/corner-deep-tl.svg"), url("../svg/corner-deep-tr.svg"), url("../svg/corner-deep-bl.svg"), url("../svg/corner-deep-br.svg");
}

/* @shared chrome: tools/build/chrome.css (edit there, then rebuild both sites) */
/* The shared header + footer of glimmerdragon.com and undyingarena.glimmerdragon.com.
   Literal colours (ink #1A1433, night #110D24, gold #FFC94A, cloud #FFF8EC) so both sites
   render it identically whatever their own tokens are. Fonts: Fredoka (both sites ship it). */
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: #FFC94A; color: #1A1433; font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 600;
  padding: .75rem 1.1rem; border-radius: .6rem; border: 2px solid #1A1433; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 1rem; }
.masthead, .footer { --focus: #FFC94A; }
.masthead :focus-visible, .footer :focus-visible { outline: 3px solid #FFC94A; outline-offset: 3px; border-radius: .3rem; }

/* header: sticky ink bar, gold hairline, brand left, nav right; Menu (<details>) below 70rem */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 20, 51, .96);
  border-bottom: 1px solid rgba(255, 201, 74, .35);
  color: #FFF8EC;
}
.masthead__in { width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 90rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; color: #FFF8EC; text-decoration: none; }
.brand:hover { color: #FFC94A; }
.brand__icon { display: block; flex: none; width: 2.6rem; height: 2.6rem; border-radius: .7rem; overflow: hidden; box-shadow: 0 0 0 2px #FFC94A; }
.brand__icon img, .brand__icon svg { display: block; width: 100%; height: 100%; }
.brand__name { font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 24rem) { .brand { gap: .55rem; } .brand__name { font-size: 1.04rem; letter-spacing: .02em; white-space: nowrap; } }
@media (max-width: 26rem) {
  /* a long brand keeps to one line on small phones; the hidden word still names the link */
  .brand__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.nav__list > li { position: relative; }
.nav__list a {
  display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .7rem; border-radius: .6rem;
  color: #FFF8EC; text-decoration: none; font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 500; font-size: 1rem; word-spacing: .12em;
}
.nav__list a:hover, .nav__list a[aria-current="page"], .nav__list a.is-here { color: #FFC94A; }
.nav__list a[aria-current="page"], .nav__list a.is-here { box-shadow: inset 0 -2px 0 #FFC94A; border-radius: 0; }
.has-sub > a::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15rem) rotate(45deg); margin-left: .15rem; }
.sub {
  position: absolute; top: calc(100% - .1rem); left: -.5rem; min-width: 15rem; list-style: none; margin: 0; padding: .5rem;
  background: #251C49; border: 1px solid rgba(255, 201, 74, .45); border-radius: .9rem; box-shadow: 0 1rem 2.5rem -1rem rgba(26, 20, 51, .6);
  opacity: 0; visibility: hidden; transform: translateY(-.3rem); transition: opacity .15s, transform .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { border-radius: .55rem; }
.sub a:hover { background: rgba(255, 255, 255, .06); }
.nav-num {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #FFC94A; color: #1A1433; font-weight: 700; font-size: .85rem; margin-right: .2rem;
}
/* the sister-site link: always last, a plain nav item led by the other site's small mark */
.nav__cross { margin-left: .35rem; }
.nav__list .nav__cross a { gap: .55rem; }
.nav__cross-icon { display: block; flex: none; width: 1.6rem; height: 1.6rem; border-radius: .45rem; overflow: hidden; }
.nav__cross-icon img, .nav__cross-icon svg { display: block; width: 100%; height: 100%; }

/* compact menu (below 70rem), zero JS: "Menu" links to #menu, which shows the panel via :target.
   Following any link in it (another page or an in-page anchor) makes that destination the target,
   so the panel closes by itself and never covers the page you went to. "Close" targets an empty
   anchor inside the sticky bar, so nothing scrolls. */
.menu { position: static; }
/* the two targets sit fixed mid-screen, so following them never scrolls the page */
.menu__anchor { position: fixed; top: 50vh; left: 0; width: 1px; height: 1px; scroll-margin: 0; pointer-events: none; }
.menu__btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; min-width: 44px;
  padding: .45rem .9rem; border-radius: 999px; border: 2px solid #FFC94A; color: #FFC94A; background: #1A1433; text-decoration: none;
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 600; font-size: 1rem;
}
.menu__btn:hover { color: #1A1433; background: #FFC94A; }
.menu__btn .i { width: 1.15em; height: 1.15em; fill: currentColor; }
.menu__panel {
  position: fixed; left: 0; right: 0; top: calc(4.25rem + 1px); z-index: 2;
  background: #1A1433; border-bottom: 2px solid #FFC94A; box-shadow: 0 1.5rem 2rem -1rem rgba(0, 0, 0, .6);
  max-height: calc(100svh - 4.25rem - 1px); overflow-y: auto; visibility: hidden;
}
#menu:target ~ .menu__panel { visibility: visible; }
/* Close sits exactly over the Menu button in the bar */
.menu__close { position: fixed; top: calc((4.25rem - 44px) / 2); right: clamp(1rem, 4vw, 2.5rem); z-index: 3; visibility: hidden; }
#menu:target ~ .menu__panel .menu__close { visibility: visible; }
.menu__panel .menu__close:hover { color: #1A1433; }
.menu__panel ul { list-style: none; margin: 0; padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.25rem; }
.menu__panel li a {
  display: flex; align-items: center; gap: .6rem; min-height: 48px; color: #FFF8EC; text-decoration: none;
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 500; font-size: 1.15rem; word-spacing: .12em;
  border-bottom: 1px solid rgba(255, 248, 236, .1);
}
.menu__panel a:hover, .menu__panel a[aria-current="page"] { color: #FFC94A; }
.menu-lands { padding: .25rem 0 .5rem 1rem !important; }
.menu-lands a { font-size: 1.05rem !important; }
.menu__cross a { gap: .7rem !important; border-bottom: 0 !important; }
@media (min-width: 70rem) {
  .nav { display: block; }
  .menu { display: none; }
}
@media (min-width: 70rem) and (max-width: 87.99rem) {
  /* the full game nav needs the room: the sister link keeps its mark and names itself to assistive tech */
  .nav__list--long .nav__cross-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* footer: night panel with a scalloped top edge; brand block left, two link columns right */
.footer { position: relative; background: #110D24; color: #CFC8E8; padding: 3.5rem 0 2.5rem; font-size: .95rem; line-height: 1.6; }
.footer__edge { position: absolute; top: -19px; left: 0; right: 0; height: 20px; background: #110D24; -webkit-mask: url("../svg/scallop.svg") repeat-x left bottom / 48px 20px; mask: url("../svg/scallop.svg") repeat-x left bottom / 48px 20px; }
.footer p { margin: 0 0 .6rem; }
.footer a { color: #FFC94A; }
.footer a:hover { color: #FFE7A3; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 1.4fr 1fr; } }
.footer__title { font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; color: #FFF8EC; margin-bottom: .3rem !important; }
.footer__status { display: flex; gap: .5rem; align-items: center; font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; color: #FFE7A3; }
.footer__status .i { color: #FFC94A; }
.footer__studio { margin: 1rem 0 0 !important; }
.footer__studio a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 600; color: #FFF8EC; text-decoration: none; }
.footer__studio a:hover { color: #FFC94A; text-decoration: underline; }
.footer__studio img, .footer__studio picture { display: block; width: 2.6rem; height: 2.6rem; border-radius: .7rem; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.footer__nav .footer__h { grid-row: 1; font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 600; font-size: .85rem; letter-spacing: .08em; line-height: 1.2; color: #FFF8EC; margin: 0 0 .5rem; }
.footer__nav ul { grid-row: 2; list-style: none; margin: 0; padding: 0; }
.footer__nav li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-right: .5rem; color: #CFC8E8; text-decoration: none; }
.footer__nav li + li { margin-top: .1rem; }
.footer__nav li a:hover { color: #FFC94A; text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; margin: 0 !important; padding-top: 1.5rem; border-top: 1px solid rgba(255, 201, 74, .2); font-size: .85rem; }
/* anchored headings keep their kicker (the line above them) clear of the sticky bar */
h1[id], h2[id] { scroll-margin-top: 2.75rem; }
@media print { .masthead, .menu, .footer__edge { display: none !important; } }
/* @end shared chrome */

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; color: var(--ink); background: #7FD8F5; }
.hero__art { position: relative; height: clamp(34rem, 56.25vw, 92svh); overflow: hidden; }
.hero__art picture, .zone-hero__vista picture, .bestiary-lead__bg picture, .banner__art picture, .atlas__img { height: 100%; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero__title {
  position: absolute; inset: 0 0 auto; z-index: 2; text-align: center;
  padding: clamp(1.4rem, 4.2vw, 4.5rem) var(--gutter) 0;
}
.wordmark {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .86; letter-spacing: .01em;
  color: var(--gold);
  -webkit-text-stroke: .14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--ink), 0 .13em 0 rgba(26, 20, 51, .28);
}
.wordmark span { display: block; }
.wordmark__top { font-size: clamp(1.9rem, 1rem + 4vw, 4.4rem); letter-spacing: .2em; margin-right: -.2em; color: var(--cloud); }
.wordmark__main { font-size: clamp(3.9rem, 1.6rem + 10.5vw, 10.5rem); }
.tagline { margin: clamp(.6rem, 1.5vw, 1.2rem) 0 0; }
.tagline span {
  display: inline-block; position: relative;
  font-family: var(--display); font-weight: 700; font-size: clamp(1rem, .8rem + 1vw, 1.6rem); letter-spacing: .08em; color: #fff;
  background: var(--violet); padding: .5em 1.6em .45em;
  clip-path: polygon(0 0, 100% 0, calc(100% - .8em) 50%, 100% 100%, 0 100%, .8em 50%);
  filter: drop-shadow(0 .2rem 0 var(--ink));
}
.hero__edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 20px; z-index: 3; background: var(--cloud);
  -webkit-mask: url("../svg/scallop.svg") repeat-x left bottom / 48px 20px;
  mask: url("../svg/scallop.svg") repeat-x left bottom / 48px 20px;
}
@media (max-aspect-ratio: 5/4) {
  .hero__art { height: min(140vw, 88svh); min-height: 30rem; }
  .hero__art img { object-position: 50% 100%; }
}
/* Wide screens: the landscape key art fills the frame edge to edge and its heroes and zombies
   stand in the middle third, so the wordmark takes the open left third instead of sitting over
   their heads. The art is always scaled to the frame width here, so the cast's x position is fixed. */
@media (min-aspect-ratio: 501/400) {
  .hero__title {
    inset: 0 auto 0 0; width: 32%; padding: 0 0 7% 1.5%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
  }
  .hero__title::before {
    content: ""; position: absolute; inset: -10% -25% -10% -40%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  }
  .wordmark__top { font-size: 3.1vw; }
  .wordmark__main { font-size: 7.6vw; }
  .tagline { margin-top: 1.4vw; }
  .tagline span { font-size: max(.8rem, 1.22vw); }
}

/* ------------------------------------------------------------------ intro */
.intro { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; }
.intro__grid { display: grid; justify-items: center; gap: 1.5rem; }
.intro__lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); line-height: 1.3; max-width: 46rem; margin: 0; }
.intro__lead em { font-style: normal; color: var(--violet); box-shadow: inset 0 -.3em 0 rgba(108, 194, 74, .45); }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 500; background: #fff; box-shadow: inset 0 0 0 2px var(--ink-3);
}
.badge--gold { background: var(--gold); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; }
.badge .i { color: var(--ink); width: 1rem; height: 1rem; }
.intro__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: .4rem 0 0; }

/* ------------------------------------------------------------------ story (dark storybook) */
.story {
  background-color: var(--ink);
  background-image: radial-gradient(circle at 18% 22%, rgba(255, 201, 74, .09), transparent 32rem), url("../svg/stars.svg");
  background-size: auto, 22rem 22rem;
  color: var(--cloud); padding: clamp(4rem, 8vw, 7rem) 0;
}
.story__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .story__grid { grid-template-columns: 1.15fr .85fr; } }
.lore {
  background-color: var(--ink-2); border: 1px solid rgba(255, 201, 74, .55); border-radius: .4rem;
  padding: clamp(2rem, 4vw, 3.25rem); box-shadow: inset 0 0 0 .4rem var(--ink-2), inset 0 0 0 calc(.4rem + 1px) rgba(255, 201, 74, .25);
  color: var(--cloud);
}
.lore h2 { color: var(--gold); }
.lore p { color: #EDE8F8; }
.lore strong { color: var(--gold-pale); }
.lore__drop::first-letter {
  float: left; font-family: var(--display); font-weight: 700; font-size: 3.6em; line-height: .82; margin: .06em .12em 0 0; color: var(--gold);
}
.lantern-note { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed rgba(255, 201, 74, .4); }
.lantern-note p { margin: 0; font-size: .98rem; }
.i--lantern { width: 2.2rem; height: 2.75rem; color: var(--gold); }

.talk { display: grid; gap: 1.5rem; }
.talk__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; margin: 0; }
.talk__row--right { grid-template-columns: 1fr 7.5rem; }
.talk__row--right .talk__face { order: 2; }
.talk__face {
  width: 7.5rem; height: 7.5rem; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #4B3B8F, var(--ink-3) 70%);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--ink), 0 0 0 8px rgba(255, 201, 74, .4);
}
.talk__face img { width: 100%; height: 100%; object-fit: cover; }
.talk__bubble { position: relative; background: var(--cloud); color: var(--ink); border-radius: 1.2rem; padding: 1.1rem 1.25rem; border: 2px solid var(--ink); box-shadow: 0 .3rem 0 var(--gold); }
.talk__bubble::before {
  content: ""; position: absolute; top: 50%; left: -.7rem; width: 1.2rem; height: 1.2rem; background: var(--cloud);
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg);
}
.talk__row--right .talk__bubble::before { left: auto; right: -.7rem; transform: translateY(-50%) rotate(-135deg); }
.talk__aside { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.story-quote { margin: 0; }
.say { margin: 0 0 .35rem; }
.say:last-child { margin-bottom: 0; }
.say__who { display: block; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; color: var(--violet); }
.say q { font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.35; }

/* ------------------------------------------------------------------ atlas (the world map as navigation) */
.atlas {
  background-color: var(--sea);
  background-image: linear-gradient(180deg, var(--ink) 0, var(--sea) 14rem);
  color: var(--cloud); padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.atlas__frame { padding-inline: clamp(0rem, 2vw, 2rem); }
.atlas__map {
  position: relative; max-width: 120rem; margin-inline: auto; overflow: hidden;
  aspect-ratio: 4 / 5; border-block: 3px solid var(--gold);
  box-shadow: 0 0 0 1px var(--ink), 0 2rem 4rem -1.5rem rgba(0, 0, 0, .6);
}
/* phones: the 4:5 frame shows the west half. The image covers the frame from the left edge (so its
   alt text, if images are off, wraps inside the frame), and the fog veil keeps the map's own 16:9
   coordinates (16/9 x 5/4 = 222.2 % of the frame's width). */
.atlas__canvas { position: absolute; inset: 0; }
.atlas__img img { object-position: 0 50%; }
.atlas__veil { width: 222.22%; right: auto; }
.atlas__img img { width: 100%; height: 100%; object-fit: cover; color: var(--cloud); font-size: .95rem; line-height: 1.5; }
.atlas__stage { position: relative; max-width: 120rem; margin-inline: auto; }
.atlas__map { background: linear-gradient(180deg, #1C7FB0, var(--sea)); }
.atlas__veil {
  position: absolute; inset: 0;
  background: rgba(214, 232, 240, .5);
  -webkit-backdrop-filter: grayscale(.9) blur(3px) brightness(1.05);
  backdrop-filter: grayscale(.9) blur(3px) brightness(1.05);
  -webkit-mask: url("../svg/veil.svg") no-repeat 0 0 / 100% 100%;
  mask: url("../svg/veil.svg") no-repeat 0 0 / 100% 100%;
}
.atlas__ahead {
  position: absolute; left: 50%; right: 4%; top: 46%; margin: 0; text-align: center;
  display: none; justify-content: center; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: clamp(1rem, .6rem + 1.1vw, 1.7rem); color: var(--ink);
}
.atlas__ahead .i { width: 1em; height: 1em; color: var(--violet); }
.atlas__more { text-align: center; margin: 1.25rem auto 0; font-family: var(--display); font-weight: 500; color: var(--cloud); }
.atlas__more span { display: inline-flex; gap: .5rem; align-items: center; }

.pads { list-style: none; margin: 0; padding: 0; }
/* Phones (and any layout without the map overlay): a plain, ordered list of the four lands. */
@media (max-width: 43.99rem) {
  .pads { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1.25rem var(--gutter) 0; counter-reset: none; }
  .pads .pad { position: static; width: auto; height: auto; }
  .pads .pad a { position: static; display: block; height: 100%; }
  .pads .pad__ring { display: none; }
  .pads .pad__plate, .pads .pad a:hover .pad__plate, .pads .pad a:focus-visible .pad__plate { position: static; transform: none; display: grid; justify-items: start; text-align: left; white-space: normal; height: 100%; min-height: 44px; padding: .6rem .8rem; }
  .pads .pad__plate::after { display: none; }
  .pads .pad__chapter { display: block; }
}
.pad { position: absolute; width: 0; height: 0; }
.pad--dark-valley { left: 29.9%; top: 75.5%; }
.pad--temple { left: 15.6%; top: 56%; }
.pad--adventure-land { left: 21.4%; top: 39.8%; }
.pad--western { left: 29.9%; top: 28%; }
.pad a { position: absolute; left: 0; top: 0; display: block; color: var(--ink); text-decoration: none; }
.pad__ring {
  position: absolute; left: 0; top: 0; width: 2.6rem; height: 1.6rem; transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink);
}
.pad__plate {
  --tip: 50%;
  position: absolute; left: 0; bottom: 1.25rem; transform: translateX(calc(-1 * var(--tip)));
  display: grid; justify-items: center; text-align: center; white-space: nowrap;
  background: var(--cloud); border: 2px solid var(--ink); border-radius: .7rem; padding: .35rem .7rem .4rem;
  box-shadow: 0 .25rem 0 var(--ink); transition: transform .18s ease, background-color .18s ease;
}
.pad__plate::after { content: ""; position: absolute; left: var(--tip); bottom: -.5rem; width: .8rem; height: .8rem; background: var(--cloud); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.pad__num { font-family: var(--display); font-weight: 600; font-size: .75rem; letter-spacing: .1em; color: var(--violet); }
.pad__name { font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.1; }
.pad__chapter { display: none; font-family: var(--display); font-weight: 500; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.pad a:hover .pad__plate, .pad a:focus-visible .pad__plate { background: var(--gold); transform: translateX(calc(-1 * var(--tip))) translateY(-.2rem); }
/* Adventure Land's plate leans left so it never covers Western's ring just up and to the right. */
.pad--adventure-land .pad__plate { --tip: 84%; }
.pad a:hover .pad__plate::after, .pad a:focus-visible .pad__plate::after { background: var(--gold); }
.pad a:focus-visible { outline: none; }
.pad a:focus-visible .pad__plate { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (min-width: 44rem) {
  .atlas__stage > .pads { position: absolute; inset: 0; pointer-events: none; }
  .atlas__stage > .pads a { pointer-events: auto; }
  .atlas__map { aspect-ratio: 16 / 9; }
  .atlas__canvas { width: 100%; }
  .atlas__veil { width: auto; right: 0; }
  .atlas__ahead { display: flex; }
  .atlas__more { display: none; }
  .pad__chapter { display: block; }
  .pad__name { font-size: 1.1rem; }
  .pad__plate { padding: .45rem .9rem .5rem; bottom: 1.4rem; }
}
@media (min-width: 44rem) and (max-width: 63.99rem) { .pad__chapter { display: none; } }

/* ------------------------------------------------------------------ zones (hanging land banners) */
.zones { padding: clamp(4rem, 7vw, 6rem) 0; }
.banners { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .banners { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .banners { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.banner__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--cloud);
  background: var(--crest-deep); border-top: .45rem solid var(--crest);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), 50% 100%, 0 calc(100% - 1.5rem));
  transition: transform .2s ease, filter .2s ease;
}
.banner__link:hover { color: var(--cloud); transform: translateY(-.35rem); filter: brightness(1.08); }
.banner__link:focus-visible { outline: none; filter: brightness(1.15); }
.banner:focus-within { outline: 3px solid var(--violet); outline-offset: 4px; }
.banner__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--gold); }
.banner__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.banner__link:hover .banner__art img { transform: scale(1.04); }
.banner__body { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.3rem 2.6rem; flex: 1; }
.banner__num { font-family: var(--display); font-weight: 500; font-size: .85rem; letter-spacing: .08em; color: var(--gold-pale); }
.banner__name { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.05; }
.banner__chapter { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; color: var(--gold); }
.banner__blurb { margin-top: .4rem; color: #EFEAF7; font-size: .98rem; flex: 1; }
.banner__go { margin-top: .8rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; color: var(--gold); }

/* ------------------------------------------------------------------ cast (character select) */
.cast {
  background-color: #241A4D;
  background-image: radial-gradient(ellipse 60% 40% at 50% 0, rgba(232, 90, 208, .22), transparent 70%), url("../svg/stars.svg");
  background-size: auto, 22rem 22rem;
  color: var(--cloud); padding: clamp(4rem, 7vw, 6rem) 0;
}
.looks {
  display: grid; gap: 1.5rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 0; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(62, 198, 242, .14), rgba(62, 198, 242, 0) 70%), #241A4D;
  border: 1px solid rgba(255, 201, 74, .3);
}
@media (min-width: 60rem) { .looks { grid-template-columns: 17rem 1fr; } }
.looks__text { align-self: center; padding-bottom: 1rem; }
.looks__title { font-size: 2rem; color: var(--gold); margin-bottom: .3rem; }
.looks__text p { color: #E7E1F5; margin: 0; }
.looks__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: .25rem clamp(.25rem, 1vw, 1rem); }
.look { display: grid; justify-items: center; gap: .4rem; padding-bottom: 1.2rem; position: relative; }
.look::before { content: ""; position: absolute; bottom: 2.6rem; left: 50%; width: 80%; height: 1.1rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }
.look { --hs: 1; }
.look--s { --hs: .7; }
.look--l { --hs: 1.12; }
.looks__row { --lh: 1; }
.look { --sh: calc(9.5rem * var(--lh) * var(--hs)); min-width: 0; }
.look .cutout, .party__seat .cutout { display: block; width: 100%; }
/* every figure the same height whatever its pose: width-led, capped at --sh, never distorted */
.look .cutout img, .party__seat .cutout img { position: relative; width: 100%; height: auto; max-height: var(--sh); object-fit: contain; object-position: 50% 100%; }
.look__name { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--cloud); text-align: center; line-height: 1.2; }
.look__name small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted-light); }
/* Any count of looks (3-9): below the desktop row they wrap into two balanced rows, never an orphan. */
@media (max-width: 71.99rem) {
  .looks__row { gap: .5rem 0; }
  .look { flex: 0 0 var(--cell, 25%); }
  .look .cutout { width: min(100%, calc(var(--ar, .6) * var(--sh))); margin-inline: auto; }
  .looks__row--n3 { --cell: 33.33%; } .looks__row--n4 { --cell: 25%; } .looks__row--n5, .looks__row--n6 { --cell: 33.33%; }
  .looks__row--n7, .looks__row--n8 { --cell: 25%; } .looks__row--n9 { --cell: 20%; }
}
@media (max-width: 43.99rem) { .look { --sh: calc(7.5rem * var(--lh) * var(--hs)); } .look__name { font-size: .8rem; } .look__name small { font-size: .66rem; } .looks__row--n9 { --lh: .85; } }
@media (min-width: 44rem) { .look { --sh: calc(13rem * var(--lh) * var(--hs)); } }
@media (min-width: 72rem) {
  .look { --sh: calc(13.5rem * var(--lh) * var(--hs)); flex: var(--ar, .6) 1 0; max-width: calc(var(--ar, .6) * var(--sh) + 2rem); } .looks__row { flex-wrap: nowrap; gap: 0 .4rem; }
  .looks__row--n8 { --lh: .88; } .looks__row--n9 { --lh: .8; }
  .looks__row--n8 .look__name, .looks__row--n9 .look__name { font-size: .82rem; max-width: 6.5rem; }
}

/* creative groups (pre-composed, transparent): whole from tablets up; a swipeable panorama on phones */
.crew { margin: 0; }
.crew__strip { position: relative; background: radial-gradient(ellipse 58% 12% at 50% 95%, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0)); border-radius: var(--radius); }
.crew__strip img { width: 100%; height: auto; }
.crew__cap { margin: .5rem 0 0; font-size: .9rem; color: var(--muted-light); text-align: center; text-wrap: balance; }
.looks__crew { padding-bottom: 1.2rem; }
.looks > *, .together__grid > * { min-width: 0; }
.crew--section { margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); max-width: 60rem; }
@media (max-width: 43.99rem) {
  .crew__strip { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 201, 74, .6) transparent; }
  .crew__strip picture { width: max-content; }
  .crew__strip img { width: auto; height: 12.5rem; max-width: none; }
  .crew__cap::after { content: " Swipe to see everyone."; color: var(--gold-pale); }
}
/* the characters page "choose your look" row stands on its own (no box) */
.looks__row--choose { margin-top: .5rem; }

.plinths { --cols: 2; --gap: .75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.plinths > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 40rem) { .plinths { --cols: 3; --gap: 1.25rem; } }
@media (min-width: 64rem) { .plinths { --cols: 4; --gap: 1.6rem; } }
.plinth {
  position: relative; display: flex; flex-direction: column; text-align: center;
  padding: 0 .9rem 1.2rem; border-radius: var(--radius);
  /* opaque (the old 4-9 % white over the cast violet), so no background star shows through the text */
  background: linear-gradient(180deg, #2D2354, #382F5D);
  border: 1px solid rgba(255, 201, 74, .25);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.plinth__stage { position: relative; aspect-ratio: 1; margin: 0 -.9rem; display: grid; place-items: end center; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.plinth__stage::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 201, 74, .32), rgba(255, 201, 74, 0)); transition: opacity .25s ease, transform .25s ease; opacity: .7;
}
.plinth__stage::after {
  content: ""; position: absolute; left: 50%; bottom: .5rem; width: 70%; height: 1.4rem; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, #5A4A9E, #34296A); box-shadow: 0 0 0 2px rgba(255, 201, 74, .65), 0 .35rem 0 #1A1433;
}
.plinth__stage .portrait { position: relative; z-index: 1; width: 92%; margin-bottom: 1.05rem; transition: transform .25s ease; }
.plinth__stage .portrait img { width: 100%; height: auto; }
.plinth__plate { position: relative; z-index: 2; margin: -.4rem auto .75rem; padding: .45rem 1rem .5rem; min-width: 70%; background: var(--ink); border: 2px solid var(--gold); border-radius: .55rem; box-shadow: 0 .25rem 0 rgba(0, 0, 0, .35); }
.plinth__name { font-size: 1.15rem; margin: 0; color: var(--cloud); }
.plinth__link { color: var(--cloud); text-decoration: none; }
.plinth__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.plinth__link:hover { color: var(--gold); }
.plinth__link:focus-visible { outline: none; }
.plinth:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.plinth { container-type: inline-size; }
/* In a narrow card the role and the land stack instead of wrapping round the middle dot. */
@container (max-width: 13rem) {
  .story-quote--card { margin-inline: -.45rem; padding: .6rem .65rem; }
  .story-quote--card .say q { font-size: .92rem; }
  .plinth__plate { padding-inline: .45rem; margin-inline: -.35rem; }
}
@container (max-width: 15rem) { .plinth__side > span { display: block; } .plinth__side > .plinth__sep { display: none; } }
.plinth__side { margin: .1rem 0 0; font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .05em; color: var(--gold); }
.plinth__line { font-size: .95rem; color: #E7E1F5; margin: 0; }
.plinth__land { margin: auto 0 0; padding-top: .9rem; }
.plinth.crest--dark-valley .i--crest { color: var(--crest-glow); }
.plinth__land a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--gold); font-family: var(--display); font-weight: 600; }
.i--crest { width: .95rem; height: 1.15rem; color: var(--crest); }
.plinth:hover { transform: translateY(-.4rem); border-color: rgba(255, 201, 74, .7); box-shadow: 0 1.2rem 2rem -1.2rem rgba(255, 201, 74, .55); }
.plinth:hover .plinth__stage::before, .plinth:focus-within .plinth__stage::before { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
.plinth:hover .portrait, .plinth:focus-within .portrait { transform: translateY(-.35rem); }
.story-quote--card { margin-top: .9rem; padding: .75rem .8rem; border-radius: .7rem; background: rgba(255, 248, 236, .08); border-left: 3px solid var(--gold); text-align: left; }
.story-quote--card .say__who { color: var(--gold); }
.story-quote--card .say q { font-size: 1rem; color: var(--cloud); }
.more-link { margin: 2.5rem 0 0; text-align: center; }

/* ------------------------------------------------------------------ bestiary index */
.bestiary-index { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--cloud); }
.bestiary-leads { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .bestiary-leads { grid-template-columns: 1fr 1fr; } }
.bestiary-lead a { display: grid; height: 100%; color: var(--cloud); text-decoration: none; background: var(--crest-deep); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; border: 2px solid var(--ink); }
.bestiary-lead a:hover { color: var(--cloud); transform: translateY(-.3rem); }
.bestiary-lead a:focus-visible { outline-color: var(--violet); }
.bestiary-lead__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.bestiary-lead__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); }
.bestiary-lead__bg { position: absolute; inset: 0; }
.bestiary-lead__art::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, var(--crest-deep)); z-index: 1; }
.bestiary-lead__fig { position: absolute; z-index: 2; bottom: 0; right: 8%; height: 92%; }
.bestiary-lead__fig img { height: 100%; width: auto; filter: drop-shadow(0 .6rem .8rem rgba(0, 0, 0, .45)); transition: transform .3s ease; transform-origin: 50% 100%; }
.bestiary-lead a:hover .bestiary-lead__fig img { transform: scale(1.04); }
.bestiary-lead__body { display: grid; gap: .2rem; padding: .25rem 1.4rem 1.4rem; position: relative; z-index: 2; margin-top: -2.2rem; }
.bestiary-lead__land { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--gold-pale); }
.bestiary-lead__land .i--crest { color: var(--crest-glow, var(--gold)); }
.bestiary-lead__name { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; }
.bestiary-lead__count { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; color: var(--gold); }

.horde { margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; gap: 1rem; justify-items: center; }
.horde__row { list-style: none; margin: 0; padding: 0 1rem; display: flex; justify-content: center; align-items: flex-end; border-bottom: 3px solid var(--ink); width: min(100%, 52rem); position: relative; }
.horde__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.6rem; height: .3rem; background: repeating-linear-gradient(90deg, var(--green) 0 1.2rem, transparent 1.2rem 1.8rem); }
.horde__row li { margin: 0 -1.1rem; }
/* Every zombie stands on the ground line: no inline gap, no lifted feet. */
.horde .cutout, .horde .cutout img { display: block; }
.horde .cutout img { height: 7rem; width: auto; margin-bottom: -.4rem; }
@media (min-width: 44rem) { .horde .cutout img { height: 11.5rem; margin-bottom: -.65rem; } .horde__row li { margin: 0 -.8rem; } }
.horde figcaption { max-width: 34rem; text-align: center; color: var(--muted); }
.horde figcaption strong { color: var(--ink); }

/* ------------------------------------------------------------------ how it plays */
.play { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--cloud-2); border-top: 1px solid rgba(154, 106, 18, .25); }
.route { list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 44rem) { .route { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .route { grid-template-columns: repeat(4, 1fr); } }
.route__step { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.3rem 1.3rem; box-shadow: 0 .3rem 0 var(--ink); }
.route__step h3 { margin-top: .7rem; }
.route__step p { margin: 0; font-size: .98rem; }
.route__num {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink);
  background: var(--gold); clip-path: polygon(50% 0, 62% 30%, 100% 50%, 62% 70%, 50% 100%, 38% 70%, 0 50%, 38% 30%);
}
@media (min-width: 72rem) {
  .route__step:not(:last-child)::after { content: ""; position: absolute; top: 2.9rem; right: -1.25rem; width: 1.25rem; border-top: 3px dotted var(--ink); }
}
.scene { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: .6rem; background-color: var(--ink); border-radius: .5rem; }
.scene img { width: 100%; height: auto; border-radius: .25rem; }
.scene figcaption { color: var(--cloud); font-family: var(--display); font-weight: 500; padding: .7rem 2.6rem .35rem; font-size: .98rem; }
.grow { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .grow { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.grow__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.ledger { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ledger li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .9rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px dashed rgba(26, 20, 51, .25); }
.ledger .chip { justify-self: start; }
@media (max-width: 30rem) { .ledger li { grid-template-columns: 1fr; gap: .35rem; } }
.grow__note { color: var(--muted); }
.arsenal { background-color: var(--ink); color: var(--cloud); border-radius: .5rem; padding: 2rem 1.75rem; border: 1px solid var(--gold); }
.arsenal .arsenal__title { color: var(--gold); margin-bottom: .2rem; }
.arsenal p { color: var(--muted-light); }
.arsenal__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.arsenal__list li { font-family: var(--display); font-weight: 500; padding: .5rem .75rem; border-radius: .5rem; background: rgba(255, 248, 236, .07); border-left: 3px solid var(--gold); }

/* ------------------------------------------------------------------ together */
.together { background: var(--sky); padding: clamp(4rem, 7vw, 6rem) 0 0; overflow: hidden; }
.together__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 60rem) { .together__grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }
.together .kicker--light { color: var(--ink); }
.together .kicker--light .i { color: var(--violet); }
.together h2 { color: var(--ink); }
.together__text { padding-bottom: clamp(3rem, 6vw, 5rem); }
.together__lead { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.ticks li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; align-items: start; background: rgba(255, 248, 236, .82); border-radius: .8rem; padding: .7rem .9rem; border: 2px solid var(--ink); }
.i--tick { width: 1.5rem; height: 1.5rem; color: var(--violet); margin-top: .05rem; }
.party { display: flex; justify-content: center; align-items: flex-end; order: 2; position: relative; padding-top: 1rem; }
@media (min-width: 60rem) { .party { order: 0; } }
.party::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 3.2rem; background: var(--lagoon); border-top: 3px solid var(--ink); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
/* Any party size (3-9) and mixed heights: --ph shrinks the whole party as it grows, --hs sizes one seat. */
.party { --ph: 1; }
.party--n6 { --ph: .9; } .party--n7 { --ph: .8; } .party--n8 { --ph: .72; } .party--n9 { --ph: .66; }
.party__seat { --hs: 1; --sh: calc(7.5rem * var(--ph) * var(--hs)); position: relative; display: grid; justify-items: center; margin: 0 -.15rem; flex: var(--ar, .6) 1 0; min-width: 0; max-width: calc(var(--ar, .6) * var(--sh)); }
.party__seat--s { --hs: .7; } .party__seat--l { --hs: 1.12; }
.party__seat--you { --sh: calc(9.5rem * var(--ph) * var(--hs)); }
.party--n7 .party__seat, .party--n8 .party__seat, .party--n9 .party__seat { margin: 0 -.4rem; }
@media (min-width: 44rem) {
  .party__seat { margin: 0 -.6rem; }
  .party__seat { --sh: calc(13rem * var(--ph) * var(--hs)); }
  .party__seat--you { --sh: calc(16.5rem * var(--ph) * var(--hs)); }
}
.party__tag { position: relative; z-index: 1; margin: -.4rem 0 .8rem; font-family: var(--display); font-weight: 600; font-size: .8rem; background: var(--cloud); border: 2px solid var(--ink); border-radius: 999px; padding: .1rem .6rem; }
.party__seat--you .party__tag { background: var(--gold); }
@media (max-width: 30rem) { .party__tag { font-size: .7rem; padding: .05rem .4rem; } }
@media (max-width: 43.99rem) { .party--n7 .party__seat:not(.party__seat--you) .party__tag, .party--n8 .party__seat:not(.party__seat--you) .party__tag, .party--n9 .party__seat:not(.party__seat--you) .party__tag { visibility: hidden; } }

/* ------------------------------------------------------------------ fair-play charter */
.charter { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--cloud); }
.charter__sheet {
  position: relative; background-color: #FFFDF7; border: 2px solid var(--gold-deep); border-radius: .4rem;
  padding: clamp(2rem, 5vw, 3.75rem) clamp(1.25rem, 5vw, 3.75rem);
  box-shadow: inset 0 0 0 .45rem #FFFDF7, inset 0 0 0 calc(.45rem + 1px) rgba(154, 106, 18, .45), var(--shadow);
}
.charter__seal { position: absolute; top: -2.2rem; right: clamp(1rem, 4vw, 3rem); width: 6.5rem; height: 6.5rem; color: var(--gold); filter: drop-shadow(0 .25rem 0 rgba(26, 20, 51, .35)); }
.charter h2 { max-width: 18ch; }
.charter__intro { font-size: 1.1rem; color: var(--muted); }
.charter__cols { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 60rem) { .charter__cols { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.charter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.charter__list li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid rgba(154, 106, 18, .25); }
.i--no { width: 1.5rem; height: 1.5rem; color: #B3261E; margin-top: .1rem; }
.i--yes { width: 1.5rem; height: 1.5rem; color: #2E7D32; margin-top: .1rem; }
.scales { display: grid; gap: 1rem; align-content: start; }
.scales__pan { border-radius: var(--radius); padding: 1.4rem 1.5rem; border: 2px solid var(--ink); }
.scales__pan h3 { font-size: 1rem; letter-spacing: .06em; margin-bottom: .2rem; }
.scales__pan p { margin: 0; }
.scales__pan--buy { background: var(--gold); box-shadow: 0 .3rem 0 var(--ink); }
.scales__big { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1.05; }
.scales__pan--never { background: var(--ink); color: var(--cloud); }
.scales__pan--never h3 { color: var(--gold); }

/* ------------------------------------------------------------------ help */
.help { background: var(--ink); color: var(--cloud); padding: clamp(4rem, 7vw, 5.5rem) 0; }
.help h2 { color: var(--cloud); }
.help .kicker { color: var(--gold); }
.help a { color: var(--gold); }
.help__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .help__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.help__mail a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.help__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 201, 74, .35); }
.help__links a { display: flex; align-items: center; justify-content: space-between; min-height: 3.2rem; color: var(--cloud); text-decoration: none; border-bottom: 1px solid rgba(255, 201, 74, .35); font-family: var(--display); font-weight: 500; }
.help__links a::after { content: "→"; color: var(--gold); font-family: var(--body); }
.help__links a:hover { color: var(--gold); padding-left: .3rem; }

/* ------------------------------------------------------------------ footer (shared chrome; page tweaks only) */
.help + .footer .footer__edge, .land-nav + .footer .footer__edge { display: none; }

/* ------------------------------------------------------------------ land pages */
.zone-hero { position: relative; isolation: isolate; color: var(--cloud); min-height: clamp(30rem, 72svh, 50rem); display: flex; align-items: flex-end; background: var(--crest-deep); }
.zone-hero__vista { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.zone-hero__vista img { width: 100%; height: 100%; object-fit: cover; }
.zone-hero__vista::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 51, .35) 0, rgba(26, 20, 51, 0) 30%, rgba(26, 20, 51, 0) 42%, var(--crest-deep) 92%);
}
.zone-hero__in { display: grid; gap: 1.5rem; padding: 7rem 0 clamp(2rem, 4vw, 3rem); align-items: end; }
@media (min-width: 64rem) { .zone-hero__in { grid-template-columns: 1fr 26rem; gap: 3rem; } }
/* Phones and tablets: the title block sits higher on the vista, so the scrim starts higher too. */
@media (max-width: 63.99rem) {
  .zone-hero__vista::after { background: linear-gradient(180deg, rgba(26, 20, 51, .35) 0, rgba(26, 20, 51, .05) 16%, rgba(26, 20, 51, .5) 34%, var(--crest-deep) 64%); }
}
.crumbs { width: fit-content; max-width: 100%; font-family: var(--display); font-weight: 500; font-size: .95rem; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(26, 20, 51, .78); color: var(--cloud); }
.crumbs a { color: var(--gold); }
.zone-hero__chapter { margin: 0 0 .8rem; }
.zone-hero__chapter span {
  display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: clamp(.82rem, .75rem + .3vw, 1rem);
  background: var(--gold); color: var(--ink); padding: .45em 1.5em .4em;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%, .7em 50%);
}
.zone-hero__name {
  font-size: clamp(3.2rem, 1.8rem + 7vw, 7.5rem); font-weight: 700; line-height: .92; margin: 0 0 .5rem;
  color: var(--cloud); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--ink);
}
.zone-hero__mood { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 .9rem rgba(26, 20, 51, .9); }
.facts { margin: 0; display: grid; gap: .1rem; background: rgba(26, 20, 51, .86); border: 1px solid rgba(255, 201, 74, .6); border-radius: .8rem; padding: .6rem 1.2rem; }
.facts > div { padding: .65rem 0; border-bottom: 1px dashed rgba(255, 201, 74, .3); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--gold); margin-bottom: .3rem; }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.diff { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; padding: .25rem .55rem; border-radius: .35rem; }
.diff--normal { background: var(--cloud); color: var(--ink); }
.diff--hard { background: var(--gold); color: var(--ink); }
.diff--nightmare { background: #A8089A; color: #fff; box-shadow: inset 0 0 0 2px var(--nightmare); }

.zone-lore { background: var(--crest-deep); color: var(--cloud); padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 7vw, 5.5rem); }
.zone-lore__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { .zone-lore__grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.zone-lore .lore { background-color: rgba(26, 20, 51, .55); }
.zone-lore__main, .zone-lore__side { display: grid; gap: 1.25rem; }
.story-quote--panel { background: var(--cloud); color: var(--ink); border-radius: 1rem; padding: 1.1rem 1.3rem; border: 2px solid var(--ink); box-shadow: 0 .3rem 0 var(--gold); }
.way { padding: 1.3rem 1.4rem; border: 1px solid rgba(255, 201, 74, .45); border-radius: 1rem; }
.way h3 { color: var(--gold); font-size: 1.15rem; }
.way p { margin: 0; color: #E9E4F5; }
.trail { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.trail li { font-family: var(--display); font-weight: 500; background: rgba(255, 248, 236, .1); border: 1px solid rgba(255, 248, 236, .35); border-radius: 999px; padding: .25rem .8rem; }
.trail li:not(:last-child)::after { content: ""; display: inline-block; width: .9rem; margin-left: .7rem; margin-right: -.45rem; border-top: 2px dotted var(--gold); vertical-align: middle; }
.zone-map { margin: 0; padding: .55rem; background-color: rgba(26, 20, 51, .55); border-radius: .5rem; border: 1px solid rgba(255, 201, 74, .45); }
.zone-map img { width: 100%; border-radius: .3rem; }
.zone-map figcaption { font-size: .88rem; color: var(--muted-light); padding: .6rem 2.6rem .35rem; }

.zone-action { background: var(--cloud-2); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.scenes { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .scenes--two { grid-template-columns: 1fr 1fr; } }
.scenes .scene { margin: 0; }
.zone-bestiary { background: var(--cloud-2); padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); }
.codex-grid { --cols: 1; --gap: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.codex-grid > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 34rem) { .codex-grid { --cols: 2; } }
@media (min-width: 56rem) { .codex-grid { --cols: 3; } }
@media (min-width: 72rem) { .codex-grid { --cols: 4; } }
.codex { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 .3rem 0 var(--ink); transition: transform .2s ease; }
.codex:hover { transform: translateY(-.25rem); }
.codex__stage {
  position: relative; height: 17rem; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 9% at 50% 93%, rgba(26, 20, 51, .35), transparent 70%),
    radial-gradient(circle at 50% 45%, var(--crest-soft) 0, var(--crest-soft) 30%, transparent 72%),
    linear-gradient(180deg, var(--crest-2), var(--crest));
  border-bottom: 3px solid var(--ink);
}
/* The top band stays clear for the ELITE / BOSS / LIEUTENANT tag, so no tag sits on a head. */
.codex__stage .cutout { height: calc(100% - 2.75rem); max-width: calc(100% - 1rem); margin-bottom: .6rem; display: flex; align-items: flex-end; justify-content: center; }
.codex__stage .cutout img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; }
.codex--star .codex__stage { box-shadow: inset 0 0 0 4px var(--gold); }
.codex__body { padding: 1rem 1.15rem 1.25rem; }
.codex__name { font-size: 1.35rem; margin-bottom: .1rem; }
.codex__sub { font-family: var(--display); font-weight: 500; font-size: .85rem; color: var(--violet); margin: 0 0 .35rem; }
.codex__note { margin: 0; font-size: .95rem; color: var(--muted); }
.crest--temple .codex__stage .role--elite, .crest--western .codex__stage .role--elite { background: var(--ink); }
.locals { background: #241A4D; color: var(--cloud); padding: clamp(3.5rem, 6vw, 5rem) 0; }
.locals h2 { color: var(--cloud); }
.locals .kicker { color: var(--gold); }
.locals { --focus: var(--gold); }

.land-nav { background: #110D24; padding: 2rem 0 2.5rem; }
.land-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.land-nav__link {
  display: flex; align-items: center; gap: .9rem; min-height: 5rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  color: var(--cloud); text-decoration: none; background: var(--crest-deep); border: 1px solid rgba(255, 201, 74, .45);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .9rem + .7vw, 1.45rem); line-height: 1.15;
}
.land-nav__link small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--gold); }
.land-nav__link .i { color: var(--gold); width: 1.4rem; height: 1.4rem; }
.land-nav__link--next { justify-content: flex-end; text-align: right; }
@media (max-width: 34rem) { .land-nav__grid { grid-template-columns: 1fr; gap: .75rem; } .land-nav__link { min-height: 4.25rem; } }
.land-nav__link:hover { color: var(--gold); }

/* ------------------------------------------------------------------ page heroes (characters, legal, faq) */
.page-hero {
  --text-l: max(var(--gutter), (100% - var(--wrap)) / 2);
  background-color: var(--ink);
  /* The starfield stays clear of the text column: a band of plain ink runs behind the title, lead and chips. */
  background-image:
    linear-gradient(90deg, transparent calc(var(--text-l) - 2rem), var(--ink) calc(var(--text-l) - .25rem), var(--ink) min(100% - var(--gutter) + .25rem, var(--text-l) + 54rem), transparent min(100% - var(--gutter) + 2rem, var(--text-l) + 57rem)),
    url("../svg/stars.svg");
  background-size: 100% 100%, 22rem 22rem;
  color: var(--cloud); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative;
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 20px; background: var(--cloud); -webkit-mask: url("../svg/scallop.svg") repeat-x left bottom / 48px 20px; mask: url("../svg/scallop.svg") repeat-x left bottom / 48px 20px; }
.page-hero--cast::after { background: #241A4D; }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem); font-weight: 700; color: var(--gold); margin-bottom: .4rem; }
.page-hero__lead { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); max-width: 44rem; color: #EDE8F8; margin: 0; }
.page-hero__mail { margin: 1rem 0 0; }
.page-hero a { color: var(--gold); }
.jump { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 201, 74, .6); color: var(--cloud); text-decoration: none; font-family: var(--display); font-weight: 500; }
.jump a:hover { background: var(--gold); color: var(--ink); }

.roster .cast-group { background-color: #241A4D; color: var(--cloud); padding: clamp(3rem, 6vw, 4.5rem) 0; --focus: var(--gold); }
.roster .cast-group:nth-child(odd) { background-color: #1D1540; }
.roster .cast-group h2 { color: var(--cloud); }
.roster .cast-group .section-head__intro { color: var(--muted-light); }
.roster .plinth { scroll-margin-top: 6rem; }
.roster .plinth:target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.lantern-card { display: flex; gap: 1.5rem; align-items: center; padding: 2rem 2.25rem; border: 1px solid rgba(255, 201, 74, .55); border-radius: .5rem; }
.lantern-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--gold) !important; }
.lantern-card p { margin: 0; color: #E7E1F5; }
.i--lantern-big { width: 4rem; height: 5rem; color: var(--gold); flex: none; }

/* ------------------------------------------------------------------ legal + FAQ (ported text, restyled) */
.legal-wrap { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); }
.legal { max-width: 46rem; margin-inline: auto; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px solid rgba(154, 106, 18, .3); scroll-margin-top: 6rem; }
.legal > h2:first-child, .legal > .box:first-child h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5rem; }
.legal li::marker { color: var(--violet); }
.legal em { color: var(--muted); }
.box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.6rem .6rem; box-shadow: 0 .3rem 0 var(--gold); margin-bottom: 2rem; }
.box h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.contact { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .78rem + 1.5vw, 1.35rem); }
.contact a { white-space: nowrap; }
@media (max-width: 24rem) { .box { padding-inline: 1.1rem; } }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-scroll th { font-family: var(--display); font-weight: 600; text-align: left; background: var(--ink); color: var(--gold); padding: .8rem 1rem; }
.table-scroll td { vertical-align: top; padding: 1rem; border-top: 1px solid rgba(26, 20, 51, .15); }
.table-scroll tr:nth-child(even) td { background: #FBF5E9; }
@media (max-width: 47.99rem) {
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-scroll tr { border-top: 3px solid var(--ink); }
  .table-scroll tr:first-child { border-top: 0; }
  .table-scroll td { border-top: 1px solid rgba(26, 20, 51, .12); }
  .table-scroll td::before { display: block; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; color: var(--violet); margin-bottom: .3rem; }
  .table-scroll td:nth-child(1)::before { content: "Feature"; }
  .table-scroll td:nth-child(2)::before { content: "What goes to Apple"; }
  .table-scroll td:nth-child(3)::before { content: "What we see"; }
  .table-scroll td:nth-child(1) { background: var(--cloud-2) !important; }
}
.faq { margin: 0; }
.faq dt {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.3;
  margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--ink); color: var(--cloud); border-radius: var(--radius) var(--radius) 0 0;
  scroll-margin-top: 6rem; position: relative; padding-left: 3rem;
}
.faq dt::before { content: ""; position: absolute; left: 1.1rem; top: 1.35rem; width: 1rem; height: 1rem; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.faq dt:target { box-shadow: 0 0 0 3px var(--gold); }
.faq dd { margin: 0; padding: 1.1rem 1.2rem .2rem; background: #fff; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* ------------------------------------------------------------------ 404 */
.lost { padding: clamp(3rem, 8vw, 6rem) 0; min-height: 60svh; display: grid; align-items: center; }
.lost__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .lost__grid { grid-template-columns: 18rem 1fr; gap: 3rem; } }
.lost__face { width: min(18rem, 70vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, var(--crest-2, #A9DEE5), var(--sky)); box-shadow: 0 0 0 4px var(--ink), 0 0 0 10px var(--gold); justify-self: center; }
.lost__face img { width: 100%; height: 100%; object-fit: cover; }
.lost h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.lost__lead { font-size: 1.2rem; color: var(--muted); }
.lost .intro__cta { justify-content: flex-start; }

/* ------------------------------------------------------------------ motion (only when welcome) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .pad__ring { animation: pad-pulse 2.4s ease-out infinite; }
  .pad--temple .pad__ring { animation-delay: .6s; }
  .pad--adventure-land .pad__ring { animation-delay: 1.2s; }
  .pad--western .pad__ring { animation-delay: 1.8s; }
  .i--lantern, .i--lantern-big { animation: lantern 3.6s ease-in-out infinite; }
  .charter__seal { animation: seal-turn 40s linear infinite; }
}
@keyframes pad-pulse {
  0% { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 0 0 0 0 rgba(255, 201, 74, .8); }
  70% { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 0 0 0 1.1rem rgba(255, 201, 74, 0); }
  100% { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 0 0 0 0 rgba(255, 201, 74, 0); }
}
@keyframes lantern { 0%, 100% { filter: drop-shadow(0 0 .2rem rgba(255, 201, 74, .35)); } 50% { filter: drop-shadow(0 0 .9rem rgba(255, 201, 74, .85)); } }
@keyframes seal-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .masthead, .menu, .hero__edge, .footer__edge, .land-nav { display: none !important; }
  body { background: #fff; }
}

.locals .plinths > :only-child { flex-basis: min(100%, 17rem); }

/* Fredoka's word space is narrow at small sizes: open it a touch in labels */
.pad__name, .menu__panel a, .nav__list a, .banner__name, .bestiary-lead__name, .plinth__name, .codex__name, .land-nav__link, .look__name, .crumbs { word-spacing: .12em; }
.legal a, .legal p { overflow-wrap: anywhere; }

/* @generated aspect */
.ar--hero-astronaut { --ar: 0.460; }
.ar--hero-diver { --ar: 0.782; }
.ar--hero-frog { --ar: 0.660; }
.ar--hero-jester { --ar: 0.609; }
.ar--hero-luchador { --ar: 0.599; }
.ar--hero-penguin-suit { --ar: 0.607; }
.ar--hero-pigeon { --ar: 0.633; }
.ar--hero-pumpkin { --ar: 0.502; }
.ar--hero-rockstar { --ar: 0.905; }
.ar--hero-santa { --ar: 0.540; }
.ar--hero-surfer { --ar: 0.668; }
.ar--hero-witch { --ar: 0.666; }
/* @end aspect */
