/* Compost Mortem — the public website, on the tokens and chunky components of base.css, over the living landscape
   (landscape.css, js/landscape.js). It looks like the game's interface: the main menu's big buttons, navy sheets with
   a sunburst head, cloud tiles to pick from, recessed trays. Text sits on sheets; only titles outlined in navy stand on
   the landscape itself. */

:root {
  --topbar-h: 76px;
  --sheet-text: #EEF2FF;
  --sheet-muted: #C7D2FF;
  --sheet-radius: 30px;
}

html {
  background: #6FC3EF;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}
body { background: transparent; overflow-x: hidden; }
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
main { position: relative; }

a { color: inherit; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border: var(--border) solid var(--navy);
  border-radius: 12px;
  background: var(--flash);
  color: var(--navy);
  font-family: var(--font-display);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The game's eyebrow: small outlined capitals in its gold, no pill. */
.eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #FFE04A;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.2em var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 0.1em 0 var(--navy);
}
.section-title { text-wrap: balance; }

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1320px;
  margin-inline: auto;
}
.topbar__inner > * { pointer-events: auto; }
.topbar .wordmark {
  margin-right: auto;
  padding: 5px 18px 5px 5px;
  border: var(--border) solid var(--navy);
  border-radius: 999px;
  background: linear-gradient(180deg, #2A3A8C, var(--navy-face) 60%);
  box-shadow: inset 0 -5px 0 var(--navy-lip), 0 5px 0 rgba(16, 22, 58, 0.45);
}
.topbar .wordmark img { width: 42px; height: 42px; border-radius: 50%; border-width: 3px; }
.topnav {
  display: flex;
  gap: 2px;
  padding: 5px;
  border: var(--border) solid var(--navy);
  border-radius: 999px;
  background: rgba(16, 22, 58, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--navy);
  transition: background 0.15s;
}
.topnav a:hover, .topnav a.is-current { background: rgba(255, 255, 255, 0.16); }
.topbar__cta .btn__icon { width: 1.2em; height: 1.2em; }
.topbar__menu {
  display: none;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: var(--border) solid var(--navy);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--navy-top), var(--navy-face) 60%);
  box-shadow: inset 0 -5px 0 var(--navy-lip), 0 4px 0 rgba(16, 22, 58, 0.45);
  color: #fff;
  cursor: pointer;
}
.topbar__menu svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 var(--navy)); }

/* ---------- The game's main-menu buttons ---------- */

.menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55em;
  width: 100%;
  min-height: 64px;
  padding: 0.45em 0.9em 0.62em 0.7em;
  border: 5px solid var(--navy);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--t-top) 0%, var(--t-face) 52%, var(--t-deep, var(--t-face)) 100%);
  box-shadow: inset 0 -0.3em 0 var(--t-lip), 0 0.24em 0 var(--navy), 0 0.6em 1.4em rgba(4, 8, 30, 0.25);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 0.9vw, 1.35rem);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6px;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12));
  pointer-events: none;
}
.menu-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.menu-btn:active { transform: translateY(0.2em); box-shadow: inset 0 -0.15em 0 var(--t-lip), 0 0.05em 0 var(--navy); }
.tone-yellow.menu-btn { --t-deep: #FFA800; }
.menu-btn__icon {
  position: relative;
  flex: none;
  width: 2em;
  height: 2em;
  color: #fff;
  filter: drop-shadow(0 0.1em 0 var(--navy)) drop-shadow(0 0 1.5px var(--navy)) drop-shadow(0 0 1.5px var(--navy));
}
.menu-btn__text { position: relative; display: grid; gap: 0.18em; }
.menu-btn__label {
  font-size: 1.9em;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.16em var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--navy);
}
.menu-btn__sub {
  font-size: 0.82em;
  letter-spacing: 0.03em;
  -webkit-text-stroke: 0.2em var(--navy);
  paint-order: stroke fill;
  color: #FFF7C8;
}
.tone-blue .menu-btn__sub { color: #D8F1FF; }
.menu-btn--slim { min-height: 52px; justify-content: center; }
.menu-btn--slim .menu-btn__label { font-size: 1.5em; }
.menu-btn--slim .menu-btn__icon { width: 1.7em; height: 1.7em; }
.menu-btn__chip {
  position: absolute;
  right: -8px;
  top: -16px;
  padding: 0.35em 0.7em 0.4em;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: linear-gradient(180deg, #FF8A7A, #E0302B 60%);
  box-shadow: inset 0 -3px 0 #9C1A17;
  color: #fff;
  font-size: 0.75em;
  transform: rotate(6deg);
  -webkit-text-stroke: 0.16em var(--navy);
  paint-order: stroke fill;
}

/* ---------- Sheets: the game's navy panels with a sunburst head ---------- */

.sheet {
  position: relative;
  margin-inline: auto;
  border: 5px solid var(--navy);
  border-radius: var(--sheet-radius);
  background: linear-gradient(180deg, #31449C 0, var(--navy-face) 260px);
  box-shadow: inset 0 -12px 0 var(--navy-lip), 0 10px 0 rgba(16, 22, 58, 0.6), 0 28px 60px rgba(4, 8, 30, 0.35);
  color: var(--sheet-text);
}
.sheet--narrow { max-width: 900px; }
.sheet--card { max-width: 560px; margin-inline: 0; }
.sheet__head {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 48px) clamp(22px, 3vw, 34px);
  border-bottom: 5px solid var(--navy);
  border-radius: calc(var(--sheet-radius) - 5px) calc(var(--sheet-radius) - 5px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.sheet__head--row { grid-template-columns: 1fr auto; align-items: end; }
.sheet__lede { max-width: 64ch; color: #fff; font-weight: 700; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); text-shadow: 0 2px 0 rgba(16, 22, 58, 0.6); }
.sheet__body { padding: clamp(20px, 3.5vw, 44px) clamp(18px, 4vw, 48px) clamp(30px, 4vw, 54px); }
.sheet__body > * + * { margin-top: clamp(20px, 3vw, 34px); }
.sheet p a, .sheet li a { color: #FFE04A; font-weight: 700; }
.sheet .plan a, .sheet .stamp a { color: var(--navy-face); font-weight: 800; }

/* SunburstBackdrop: light rays turning slowly round a glow, darker towards the edges. */
.sunburst {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, var(--sunburst-glow) 0%, var(--sunburst-mid) 45%, var(--sunburst-edge) 100%);
}
.sunburst::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 120%;
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.11) 0 10deg, transparent 10deg 20deg);
  animation: sunburst-turn 120s linear infinite;
}
.sunburst::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, 0.35), transparent 45%), linear-gradient(180deg, rgba(16, 22, 58, 0) 40%, rgba(16, 22, 58, 0.35));
}
@keyframes sunburst-turn { to { transform: rotate(360deg); } }

/* ---------- Small parts ---------- */

.tray {
  border: 4px solid var(--navy);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--tray-top), var(--tray-bottom));
  box-shadow: inset 0 6px 0 rgba(0, 0, 0, 0.3), 0 3px 0 rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
}
.chip--free, .chip--full { color: #fff; }
.tag { box-shadow: 0 3px 0 var(--navy); }
.pill--soon { color: #fff; text-decoration: none; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 700; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: #3CBF2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.hint { font-family: var(--font-display); color: #FFE04A; }

/* A picture from the game in a navy frame, labelled where it comes from. */
.shot { position: relative; margin: 0; }
.shot img, .shot video {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid var(--navy);
  border-radius: 20px;
  background: var(--navy);
  box-shadow: 0 6px 0 rgba(16, 22, 58, 0.5);
}
.shot .tag { position: absolute; left: 14px; bottom: -12px; }

/* The comic caption between landscapes: "Meanwhile…". */
.caption-box {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: clamp(30px, 8vh, 90px) auto;
  padding: 0.5em 1.1em 0.6em;
  border: 5px solid var(--navy);
  border-radius: 10px;
  background: linear-gradient(180deg, #FFF27A, #FFD60A);
  box-shadow: 0 6px 0 var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem);
  transform: rotate(-2deg);
}

/* ---------- Hero: the game's main menu ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--topbar-h) + 24px) 0 80px;
}
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
}
.hero__brand { display: grid; justify-items: center; gap: clamp(6px, 1vw, 12px); }
.logo {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-4deg);
  color: #FFC21A;
}
/* The navy stroke and drop sit behind the gradient fill, as the game outlines its title. */
.logo::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--navy);
  -webkit-text-stroke: 0.2em var(--navy);
  text-shadow: 0 0.1em 0 var(--navy), 0 0.16em 0.3em rgba(4, 8, 30, 0.35);
}
.logo span {
  display: inline-block;
  background: linear-gradient(180deg, #FFF06A 15%, #FFC21A 55%, #FFA800 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  margin: 0.2em 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  -webkit-text-stroke: 0.2em var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--navy);
}

.island { position: relative; width: min(100%, 560px); margin-top: clamp(4px, 1vw, 14px); }
.island__crew { position: relative; aspect-ratio: 600 / 330; margin-bottom: -20%; z-index: 2; }
.island__creature {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 0 rgba(16, 22, 58, 0.25));
  cursor: pointer;
  transition: transform 0.2s ease;
}
.island__creature:hover { transform: translateX(-50%) translateY(-4%) rotate(-3deg); }
.island__rock { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 0 rgba(16, 22, 58, 0.18)); }
.boom {
  position: absolute;
  left: 70%;
  top: 0;
  z-index: 3;
  padding: 0.25em 0.6em;
  border: 4px solid var(--navy);
  border-radius: 14px;
  background: #FFE04A;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.6rem;
  transform: rotate(10deg) scale(0);
  pointer-events: none;
}

.hero__menu { display: grid; gap: clamp(14px, 2vw, 22px); }
.hero__lede {
  padding: 14px 18px;
  border: 4px solid var(--navy);
  border-radius: 20px;
  background: rgba(16, 22, 58, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  box-shadow: 0 5px 0 rgba(16, 22, 58, 0.4);
}
.hero__lede b { color: #FFE04A; }
.hero__buttons { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: rgba(16, 22, 58, 0.72);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.hero__chips svg { width: 20px; height: 20px; color: #FFE04A; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #fff;
  font-family: var(--font-display);
  text-decoration: none;
  text-shadow: 0 2px 0 var(--navy), 0 0 4px var(--navy);
  transform: translateX(-50%);
}
.scroll-cue svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 var(--navy)); animation: cue-bob 1.6s ease-in-out infinite; }
@keyframes cue-bob { 50% { transform: translateY(6px); } }

/* ---------- Scenes: a sheet floating over the landscape ---------- */

.scene { position: relative; padding: clamp(60px, 16vh, 180px) 0; }
.scene + .scene { padding-top: clamp(30px, 8vh, 90px); }
.sheet--wide { max-width: 1100px; }

/* Trailer */
.trailer { margin: 0; display: grid; gap: 14px; }
.trailer__frame { position: relative; }
.trailer__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 590;
  border: 5px solid var(--navy);
  border-radius: 22px;
  background: var(--navy);
}
.trailer__video.is-portrait { aspect-ratio: 4 / 3; }
.trailer__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(76px, 10vw, 110px);
  aspect-ratio: 1;
  border: 6px solid var(--navy);
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF06A, #FFC21A 55%, #FFA800);
  box-shadow: inset 0 -8px 0 #C26E00, 0 7px 0 var(--navy);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}
.trailer__play:hover { transform: translate(-50%, -52%) scale(1.04); }
.trailer__play svg { width: 48%; height: 48%; margin-left: 8%; filter: drop-shadow(0 3px 0 var(--navy)); }
.trailer.is-playing .trailer__play { display: none; }
.trailer figcaption { color: var(--sheet-muted); font-size: 0.95rem; }

/* The dirt band */
.dig { position: relative; }
.dig__stage { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 60px 0; }
.dig__dirt, .dig__debris { position: absolute; inset: 0; width: 100%; height: 100%; }
.dig__dirt {
  background: linear-gradient(180deg, #A8CC40 0 3%, #995C24 3% 60%, #5E2E12);
}
.js .dig__dirt { background: none; }
/* The earth is painted in noon's light; the landscape's light of the moment darkens it (landscape.js). */
.dig__dirt { cursor: crosshair; filter: brightness(var(--ls-light, 1)); transition: opacity 0.8s ease, filter 1s ease; }
.dig__stage.is-cleared .dig__dirt { opacity: 0; pointer-events: none; }
.dig__debris { pointer-events: none; }
.dig__layout { position: relative; pointer-events: none; }
.dig__card { pointer-events: auto; }
.dig__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* Why */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.features > * + * { margin-top: 0; }
.feature {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 4px solid var(--navy);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--cloud-top), var(--cloud-face));
  box-shadow: inset 0 -7px 0 var(--cloud-lip), 0 6px 0 rgba(16, 22, 58, 0.45);
  color: var(--navy);
}
.feature__shot { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 4px solid var(--navy); }
.feature__icons { display: flex; justify-content: center; gap: 20px; padding: 18px; aspect-ratio: 16 / 7; align-items: center; border-bottom: 4px solid var(--navy); background: radial-gradient(circle at 50% 120%, var(--sunburst-glow), var(--sunburst-mid) 50%, var(--sunburst-edge)); }
.feature__icons svg { width: 30%; max-width: 110px; height: auto; aspect-ratio: 1; color: #fff; filter: drop-shadow(0 4px 0 var(--navy)) drop-shadow(0 0 2px var(--navy)); }
.feature__text { padding: 16px 20px 22px; }
.feature h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; color: var(--navy); }
.feature h3 svg { width: 26px; height: 26px; flex: none; color: var(--navy-face); }
.feature p { margin-top: 6px; color: #29325E; font-weight: 600; }

/* Cloud tiles to pick from (the creature picker, match cards, landscapes) */
.picker { display: grid; gap: clamp(8px, 1.2vw, 14px); }
.picker--creatures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picker--modes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.picker--biomes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  --t-top: var(--cloud-top);
  --t-face: var(--cloud-face);
  --t-lip: var(--cloud-lip);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 6px 12px;
  border: 4px solid var(--navy);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--t-top), var(--t-face) 70%);
  box-shadow: inset 0 -6px 0 var(--t-lip), 0 4px 0 rgba(16, 22, 58, 0.5);
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile[aria-selected="true"], .tile[aria-checked="true"] { --t-top: #FFF06A; --t-face: #FFC21A; --t-lip: #C26E00; }
.tile img { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: contain; }
.tile svg { width: 34px; height: 34px; color: var(--navy-face); }
.tile__name { font-family: var(--font-display); font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.05rem); line-height: 1.05; text-align: center; }
.tile__lock {
  position: absolute;
  right: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: linear-gradient(#D4A6FF, #7B3FF2);
}
.tile__lock svg { width: 14px; height: 14px; color: #fff; }

.crew__details { margin-top: clamp(18px, 2.4vw, 26px); }
.creature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
}
.creature-card + .creature-card { margin-top: 18px; }
.is-picker .creature-card + .creature-card { margin-top: 0; }
.is-picker [data-panel]:not(.is-current) { display: none; }
.creature-card__portrait {
  border: 4px solid var(--navy);
  border-radius: 26px;
  background: radial-gradient(circle at 50% 35%, var(--t-top), var(--t-face) 70%);
  box-shadow: inset 0 -8px 0 var(--t-lip), 0 6px 0 rgba(16, 22, 58, 0.5);
}
.creature-card__portrait img { display: block; width: 100%; height: auto; }
.creature-card__text { display: grid; gap: 10px; justify-items: start; }
.creature-card h3 { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: #fff; -webkit-text-stroke: 0.16em var(--navy); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--navy); }
.creature-card__ability { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.35rem; color: #FFE04A; text-shadow: 0 2px 0 var(--navy); }
.creature-card__ability svg { width: 26px; height: 26px; }
.creature-card__passive { padding: 4px 12px; border-radius: 999px; background: rgba(16, 22, 58, 0.55); color: var(--sheet-muted); font-weight: 700; font-size: 0.95rem; }
.poster-card {
  position: absolute;
  right: clamp(-30px, -2vw, -10px);
  top: clamp(-40px, -3vw, -20px);
  width: clamp(110px, 14vw, 190px);
  margin: 0;
  transform: rotate(6deg);
}
.poster-card img { display: block; width: 100%; height: auto; border: 5px solid var(--navy); border-radius: 18px; box-shadow: 0 6px 0 rgba(16, 22, 58, 0.5); }
.poster-card .tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; font-size: 0.62rem; }

/* Arsenal */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stat { display: grid; justify-items: center; gap: 4px; text-align: center; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem); line-height: 1; color: #FFE04A; -webkit-text-stroke: 0.14em var(--navy); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--navy); font-variant-numeric: tabular-nums; }
.stat dt { font-family: var(--font-display); font-size: 0.95rem; color: #fff; line-height: 1.15; }
.crate-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2vw, 24px); align-items: end; }
.crate { display: grid; justify-items: center; gap: 8px; margin: 0; }
.crate svg { width: min(100%, 130px); height: auto; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.3)); }
.crate figcaption { font-family: var(--font-display); color: #fff; text-shadow: 0 2px 0 var(--navy); font-size: 0.95rem; text-align: center; }
.marquee { display: grid; gap: 10px; margin-inline: calc(-1 * clamp(18px, 4vw, 48px)); overflow: hidden; transform: rotate(-1.5deg); padding: 6px 0; }
.marquee__row { display: flex; gap: 10px; width: max-content; padding-left: 4vw; }
.marquee__row + .marquee__row { margin-left: -12vw; }
.marquee__row li {
  padding: 0.45em 0.9em 0.55em;
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: linear-gradient(var(--cloud-top), var(--cloud-face) 70%);
  box-shadow: inset 0 -4px 0 var(--cloud-lip);
  color: var(--navy);
  font-family: var(--font-display);
  white-space: nowrap;
}
.marquee__row + .marquee__row li { background: linear-gradient(#FFF06A, #FFC21A 70%); box-shadow: inset 0 -4px 0 #C26E00; }
.marquee__row li.is-hazard { background: repeating-linear-gradient(-45deg, #FFD60A 0 10px, #E8B800 10px 20px); }
.arsenal__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.sub-title { margin-bottom: 14px; }
.powerup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.powerup-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 3px solid var(--navy);
  border-radius: 16px;
  background: rgba(16, 22, 58, 0.5);
}
.pu-badge {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--pu);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}
.pu-badge svg { width: 24px; height: 24px; filter: drop-shadow(0 1.5px 0 var(--navy)) drop-shadow(0 0 1px var(--navy)); }
.powerup-list b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: #fff; line-height: 1.1; }
.powerup-list span:last-child { font-size: 0.88rem; color: var(--sheet-muted); line-height: 1.25; }
.hud-demo { display: grid; gap: 10px; margin: 0; }
.hud-demo__screen {
  display: grid;
  gap: 16px;
  min-height: 260px;
  align-content: space-between;
  padding: 16px;
  border: 5px solid var(--navy);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hud-demo__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hud-demo__screen > :not(.hud-demo__backdrop) { position: relative; }
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  padding: 8px 16px 8px 8px;
  border: 4px solid var(--navy);
  border-radius: 999px;
  background: linear-gradient(180deg, #F38CFF, #EB40F2 60%);
  box-shadow: inset 0 -5px 0 #9B1FA3, 0 4px 0 var(--navy);
}
.notice__badge { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--navy); border-radius: 50%; background: #fff; color: #EB40F2; }
.notice__badge svg { width: 24px; height: 24px; }
.notice__text { display: grid; line-height: 1.05; }
.notice__text b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: #fff; text-transform: uppercase; -webkit-text-stroke: 0.18em var(--navy); paint-order: stroke fill; }
.notice__text span { font-family: var(--font-display); color: #fff; font-size: 0.95rem; text-shadow: 0 1.5px 0 var(--navy), 0 0 2px var(--navy); }
.feed { display: grid; justify-items: end; gap: 6px; }
.feed__line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: rgba(16, 22, 58, 0.85);
  font-family: var(--font-display);
  color: #fff;
}
.feed__line b { font-weight: 400; }
.feed__line svg { width: 18px; height: 18px; color: #FFB02E; }
.feed__award { color: #FFE14D; text-transform: uppercase; }
.feed__line--hazard { background: repeating-linear-gradient(-45deg, #FFD60A 0 12px, #E8B800 12px 24px); }
.feed__line--hazard b { color: var(--navy); text-transform: uppercase; }
.feed__line--hazard svg { color: var(--navy); }
.hud-demo figcaption { font-size: 0.9rem; color: var(--sheet-muted); }

/* Modes */
.tile--mode { min-height: 92px; }
.modes__panels { margin-top: clamp(16px, 2vw, 22px); }
.mode-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 2.6vw, 30px); align-items: center; }
.mode-card + .mode-card { margin-top: 16px; }
.is-picker .mode-card + .mode-card { margin-top: 0; }
.mode-card__tray h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1; color: #fff; -webkit-text-stroke: 0.16em var(--navy); paint-order: stroke fill; }
.mode-card__tray p { margin-top: 8px; font-weight: 700; font-size: 1.08rem; }
.mode-card__limits { display: inline-flex; align-items: center; gap: 6px; color: #FFE04A; font-family: var(--font-display); font-weight: 400 !important; }
.mode-card__limits svg { width: 20px; height: 20px; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.way {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 20px 24px;
  border: 4px solid var(--navy);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t-face) 34%, #1F2C70), #1F2C70 70%);
  box-shadow: inset 0 -7px 0 var(--navy-lip), 0 6px 0 rgba(16, 22, 58, 0.45);
}
.way h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: #fff; text-transform: uppercase; -webkit-text-stroke: 0.16em var(--navy); paint-order: stroke fill; }
.way h3 svg { width: 30px; height: 30px; color: var(--t-top); filter: drop-shadow(0 2px 0 var(--navy)); }
.way h3 small { flex-basis: 100%; font-size: 0.55em; color: var(--t-top); }
.levels { display: flex; flex-wrap: wrap; gap: 6px; }
.levels li { padding: 4px 10px; border: 3px solid var(--navy); border-radius: 999px; background: rgba(16, 22, 58, 0.6); font-family: var(--font-display); font-size: 0.9rem; }
.levels li:nth-child(1) { color: #9EF56A; }
.levels li:nth-child(2) { color: #8FE0FF; }
.levels li:nth-child(3) { color: #FFE04A; }
.levels li:nth-child(4) { color: #FFC27A; }
.levels li:nth-child(5) { color: #FF8A7A; }
.shot--small img { border-width: 4px; border-radius: 16px; }

/* Tutorial */
.lessons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: lesson; }
.lessons li {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 8px 16px;
  border: 4px solid var(--navy);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--cloud-top), var(--cloud-face));
  box-shadow: inset 0 -6px 0 var(--cloud-lip), 0 4px 0 rgba(16, 22, 58, 0.45);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
}
.lessons__number { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--navy); border-radius: 50%; background: linear-gradient(#9EF56A, #3CBF2E); color: #fff; -webkit-text-stroke: 0.14em var(--navy); paint-order: stroke fill; }
.lessons__final { --cloud-top: #FFF06A; --cloud-face: #FFC21A; --cloud-lip: #C26E00; }
.lessons__final .lessons__number { background: linear-gradient(#FF8A7A, #E0302B); }
.lessons__end { font-family: var(--font-display); font-size: 1.25rem; color: #FFE04A; text-align: center; text-shadow: 0 2px 0 var(--navy); }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.controls li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border: 3px solid var(--navy); border-radius: 18px; background: rgba(16, 22, 58, 0.5); font-size: 0.95rem; color: var(--sheet-muted); }
.controls svg { width: 34px; height: 34px; color: #FFE04A; }
.controls b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: #fff; }

/* Landscapes */
.tile--biome { min-height: 84px; }
.clock { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 20px; align-items: center; }
.clock__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.15rem; color: #fff; white-space: nowrap; }
.clock__label svg { width: 24px; height: 24px; color: #FFE04A; }
.clock__label output { min-width: 3.2em; color: #FFE04A; }
.clock__range { width: 100%; accent-color: #FFC21A; height: 28px; }
.clock__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shots-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }

/* Full Game */
.bands { display: grid; gap: 12px; }
.band {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 4px solid var(--navy);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(123, 63, 242, 0.55), rgba(31, 44, 112, 0.6));
}
.band__title { font-family: var(--font-display); font-size: 1.45rem; color: #fff; text-transform: uppercase; -webkit-text-stroke: 0.16em var(--navy); paint-order: stroke fill; line-height: 1; }
.band__creatures { display: flex; flex-wrap: wrap; gap: 8px; }
.band__creatures li { display: grid; justify-items: center; width: 84px; font-family: var(--font-display); font-size: 0.85rem; color: #fff; text-shadow: 0 2px 0 var(--navy); }
.band__creatures img { width: 76px; height: 76px; object-fit: contain; }
.band__icons { display: flex; flex-wrap: wrap; gap: 8px; }
.band__icons li { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--navy); border-radius: 50%; background: var(--pu); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); color: #fff; }
.band__icons svg { width: 24px; height: 24px; filter: drop-shadow(0 1.5px 0 var(--navy)) drop-shadow(0 0 1px var(--navy)); }
.band__list { font-weight: 700; color: var(--sheet-muted); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.plans > * + * { margin-top: 0; }
.plan {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 4px solid var(--navy);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--cloud-top), #E3EBFC);
  box-shadow: inset 0 -8px 0 var(--cloud-lip), 0 7px 0 rgba(16, 22, 58, 0.5);
  color: #1B2140;
}
.plan__head { padding: 16px 22px 14px; border-bottom: 4px solid var(--navy); background: linear-gradient(180deg, var(--t-top), var(--t-face) 70%); box-shadow: inset 0 -5px 0 var(--t-lip); }
.plan__head h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.9rem; color: #fff; text-transform: uppercase; -webkit-text-stroke: 0.18em var(--navy); paint-order: stroke fill; line-height: 1; }
.plan__head h3 svg { width: 28px; height: 28px; color: #FFE14D; filter: drop-shadow(0 2px 0 var(--navy)) drop-shadow(0 0 1px var(--navy)); }
.plan__head p { margin-top: 4px; font-family: var(--font-display); color: #fff; text-shadow: 0 1.5px 0 var(--navy), 0 0 2px var(--navy); }
.plan__rows { margin: 0; padding: 8px 22px 20px; display: grid; align-content: start; }
.plan__rows div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 2px dashed #B9C6E6; }
.plan__rows div:last-child { border-bottom: 0; }
.plan__rows dt { font-family: var(--font-display); color: var(--navy-face); }
.plan__rows dd { margin: 0; font-weight: 700; }
.plan__foot { padding: 12px 22px 18px; border-top: 2px dashed #B9C6E6; font-size: 0.92rem; font-weight: 600; color: #3B4672; }
.plan a { color: var(--navy-face); font-weight: 800; }
.plan__body { display: grid; align-content: start; gap: 16px; padding: 18px 22px 20px; }
.plan__body > p { font-weight: 600; }
.plan__action { padding: 0 22px 22px; }
.stamp {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border: 4px solid var(--navy);
  border-radius: 22px;
  background: linear-gradient(180deg, #FFF8D6, #FFE9A3);
  box-shadow: 0 6px 0 rgba(16, 22, 58, 0.45);
  color: #1B2140;
  transform: rotate(-0.6deg);
}
.stamp h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); line-height: 1.1; color: var(--navy); margin-bottom: 6px; }
.stamp p { font-weight: 600; }
.no-nonsense { font-family: var(--font-display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); color: #fff; text-align: center; -webkit-text-stroke: 0.16em var(--navy); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--navy); }

/* FAQ */
.faq__list { display: grid; gap: 10px; }
.qa {
  border: 4px solid var(--navy);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--tray-top), var(--tray-bottom));
  overflow: hidden;
}
.qa summary {
  position: relative;
  padding: 16px 56px 16px 18px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: #FFC21A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%2310163A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  transition: transform 0.2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p, .qa ul { padding: 0 18px 18px; color: var(--sheet-text); }
.qa ul { display: grid; gap: 6px; padding-left: 38px; list-style: disc; }
.faq__more { color: var(--sheet-muted); font-weight: 600; text-align: center; }

/* Get the game */
.download__plans { display: grid; }
.beta-form { position: relative; display: grid; gap: 14px; }
.beta-form__field { display: grid; gap: 6px; }
.beta-form label { font-family: var(--font-display); color: var(--navy-face); }
.beta-form input[type="email"], .beta-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 4px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  color: #10163A;
  font: 700 1.05rem var(--font-body);
}
.beta-form input:focus-visible { outline: 3px solid #FFC21A; outline-offset: 2px; }
.beta-form__field--check label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-family: var(--font-body); font-weight: 600; color: #1B2140; font-size: 0.92rem; }
.beta-form input[type="checkbox"] { width: 26px; height: 26px; margin: 0; accent-color: #3CBF2E; }
.beta-form__error { margin: 0; color: #B3201C; font-weight: 800; }
.beta-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-done b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: #23861B; }

/* Finale */
.finale { position: relative; padding: clamp(80px, 16vh, 180px) 0 clamp(100px, 18vh, 200px); }
.finale__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.finale__copy { display: grid; gap: 18px; justify-items: start; }
.finale__lede { color: #fff; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); text-shadow: 0 2px 0 var(--navy), 0 0 4px var(--navy); }
.finale__buttons { display: grid; gap: 16px; width: min(100%, 520px); }
.finale__mascot { position: relative; margin: 0; }
.finale__mascot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(4, 8, 30, 0.5)); }
.finale__mascot .tag { position: absolute; right: 10%; bottom: 6%; }
.surface-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-display); text-decoration: none; text-shadow: 0 2px 0 var(--navy), 0 0 3px var(--navy); }
.surface-link svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 0 var(--navy)); }

/* ---------- Inner pages: a sheet over the meadow ---------- */

.page { padding: calc(var(--topbar-h) + clamp(30px, 6vh, 70px)) 0 clamp(80px, 14vh, 160px); }
.page .sheet { max-width: 1000px; }
.page--narrow .sheet { max-width: 900px; }
.page-title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); }
.flashes { display: grid; gap: 10px; padding-top: calc(var(--topbar-h) + 20px); }
.flashes + .page { padding-top: 24px; }
.flash { padding: 12px 18px; border: 3px solid var(--navy); border-radius: 16px; background: var(--navy-face); color: #fff; font-weight: 700; }
.flash--success { background: #23861B; }
.flash--error { background: #9C1A17; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.post-card { height: 100%; }
.post-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 4px solid var(--navy);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--cloud-top), var(--cloud-face));
  box-shadow: inset 0 -7px 0 var(--cloud-lip), 0 6px 0 rgba(16, 22, 58, 0.45);
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.post-card__link:hover { transform: translateY(-4px) rotate(-0.6deg); }
.post-card__image { position: relative; aspect-ratio: 16 / 9; border-bottom: 4px solid var(--navy); background: var(--navy-face); overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card__link:hover .post-card__image img { transform: scale(1.04); }
.post-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.post-card__placeholder svg { width: 56px; height: 56px; filter: drop-shadow(0 3px 0 var(--navy)); }
.post-card__body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 22px; }
.post-card__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: var(--navy); }
.post-card__body p { color: #2D3766; font-size: 0.97rem; font-weight: 600; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); color: #4F22B0; }
.post-card__more svg { width: 18px; height: 18px; }
.chip--date { background: var(--navy-face); color: #fff; }
.chip--draft { background: repeating-linear-gradient(-45deg, #FFD60A 0 10px, #E8B800 10px 20px); color: var(--navy); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; }
.pager__info { font-family: var(--font-display); color: #fff; }
.empty-state { display: grid; gap: 12px; justify-items: start; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); color: #fff; text-decoration: none; text-shadow: 0 2px 0 var(--navy); }
.back-link svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.post__image { overflow: hidden; border: 5px solid var(--navy); border-radius: 22px; background: var(--navy); }
.post__image img { width: 100%; }
.more-posts { margin-top: clamp(40px, 8vh, 80px); }

/* An article's body, the privacy notice and the support page: cream paper inside the sheet. */
.prose {
  padding: clamp(22px, 4.5vw, 52px);
  border: 4px solid var(--navy);
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFDF4, #FFF6DC);
  box-shadow: inset 0 -9px 0 #E9D9A8, 0 6px 0 rgba(16, 22, 58, 0.45);
  color: #1B2140;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); margin-top: 1.6em; }
.prose h2 { font-size: 1.85em; }
.prose h3 { font-size: 1.4em; }
.prose h4 { font-size: 1.2em; }
.prose a { color: #4F22B0; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { color: #10163A; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-inline: 0; padding: 0.6em 1.1em; border-left: 6px solid #9DCB3E; border-radius: 0 14px 14px 0; background: rgba(157, 203, 62, 0.14); font-style: italic; }
.prose img, .prose video, .prose iframe { display: block; width: 100%; max-width: 100%; height: auto; border: 4px solid var(--navy); border-radius: 18px; background: var(--navy); }
.prose iframe { aspect-ratio: 16 / 9; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 0.5em; font-size: 0.9em; color: #4A5170; text-align: center; }
.prose hr { border: 0; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, #995C24 0 18px, transparent 18px 28px); }
.prose code { padding: 0.1em 0.35em; border-radius: 6px; background: rgba(16, 22, 58, 0.08); font-size: 0.92em; }
.prose pre { padding: 1em; border-radius: 14px; background: #10163A; color: #FFF2CE; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose th, .prose td { padding: 0.5em 0.7em; border: 2px solid #D9C99A; text-align: left; }
.prose th { background: #F3E5B8; }
.prose .qa { border-color: #D9C99A; background: #fff; }
.prose .qa summary { color: var(--navy); }
.prose .qa p, .prose .qa ul { color: #1B2140; }
.prose .qa-list { display: grid; gap: 10px; }
.support__updated { font-size: 0.92rem; color: #4A5170; }

/* Errors */
.error-page { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--topbar-h) + 30px) 0 80px; }
.error-page .sheet { max-width: 720px; }
.error-page__worm { display: block; width: 160px; height: auto; margin: -110px auto 0; position: relative; z-index: 2; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer and the cookie banner ---------- */

.footer {
  position: relative;
  padding: 40px 0 34px;
  border-top: 5px solid var(--navy);
  background: linear-gradient(180deg, #1F2C70, #10163A);
  color: var(--sheet-muted);
}
.footer__layout { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border: 3px solid var(--navy); border-radius: 14px; }
.footer__name { font-family: var(--font-display); font-size: 1.35rem; color: #FFC21A; -webkit-text-stroke: 0.16em var(--navy); paint-order: stroke fill; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.footer__nav a, .footer__link-button { color: #fff; font-family: var(--font-display); text-decoration: none; }
.footer__link-button { padding: 0; border: 0; background: none; cursor: pointer; }
.footer__nav a:hover, .footer__link-button:hover { color: #FFE04A; }
.footer__small { grid-column: 1 / -1; font-size: 0.85rem; line-height: 1.5; }
.footer__small a { color: #fff; }

.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 var(--gutter) 14px; }
.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  max-width: 980px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 5px solid var(--navy);
  border-radius: 24px;
  background: linear-gradient(180deg, #31449C, var(--navy-face) 60%);
  box-shadow: inset 0 -8px 0 var(--navy-lip), 0 8px 24px rgba(4, 8, 30, 0.45);
  color: var(--sheet-text);
}
.consent__text { flex: 1 1 420px; font-size: 0.95rem; }
.consent__text b { font-family: var(--font-display); font-weight: 400; color: #FFE04A; }
.consent__text a { color: #fff; font-weight: 700; }
.consent__actions { display: flex; gap: 10px; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1099px) {
  .topnav {
    position: fixed;
    top: calc(var(--topbar-h) + 4px);
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, #31449C, var(--navy-face));
    box-shadow: inset 0 -8px 0 var(--navy-lip), 0 10px 30px rgba(4, 8, 30, 0.45);
  }
  .topnav a { padding: 12px 14px; font-size: 1.15rem; }
  .topbar.is-open .topnav { display: flex; }
  .topbar__menu { display: grid; }
}
@media (max-width: 899px) {
  :root { --topbar-h: 68px; }
  .hero__layout, .finale__layout, .arsenal__grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 90px; }
  .island { width: min(100%, 460px); }
  .hero__menu { max-width: 560px; justify-self: center; width: 100%; }
  .features, .ways, .plans, .shots-strip { grid-template-columns: minmax(0, 1fr); }
  .creature-card, .mode-card { grid-template-columns: minmax(0, 1fr); }
  .creature-card__portrait { max-width: 280px; }
  .picker--modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .clock { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: minmax(0, 1fr); }
  .crate-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crate-shelf .crate:nth-child(n + 4) { display: none; }
  .finale__mascot { max-width: 320px; justify-self: center; }
  .poster-card { display: none; }
  .footer__layout { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { justify-content: flex-start; }
  .sheet__head--row { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 560px) {
  .topbar__inner { gap: 8px; }
  .topbar__cta .btn__label { display: none; }
  .topbar .wordmark { padding-right: 12px; gap: 6px; }
  .topbar .wordmark img { width: 36px; height: 36px; }
  .topbar .wordmark__text { font-size: 0.95rem; }
  .topbar__menu { width: 46px; height: 46px; }
  .picker--creatures { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .picker--creatures .tile__name { display: none; }
  .picker--biomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { gap: 6px; }
  .stat dt { font-size: 0.8rem; }
  .menu-btn__label { font-size: 1.6em; }
  .plan__rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Motion ---------- */

[data-reveal] { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px) scale(0.98); }
.intro-pending .intro-item { opacity: 0; }
.is-reduced *, .is-reduced *::before, .is-reduced *::after { animation: none !important; transition: none !important; }
.is-reduced [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
