/* Graveyard Waves exploration. Direction: a Roblox night toy. Chunky outlined display type, hard shadows and
   bright pops on an indigo night, the look of the game's own HUD. One dark theme, by design. */

@font-face {
  font-family: 'Fredoka';
  src: url('fonts/Fredoka-wght.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-wght.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-normal-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #16133f;
  --night-2: #1e1a55;
  --panel: #262068;
  --panel-2: #2f2878;
  --ink: #0a0920;
  --text: #f6f3ff;
  --muted: #c4bff0;
  --dim: #9a94d4;
  /* The shared runtime footer and consent controls read these. */
  --exploration-footer-bg: #110e33;
  --exploration-footer-ink: #c4bff0;
  --exploration-footer-border: #2c2672;
  --lime: #a6ff3c;
  --cyan: #3fe0ff;
  --pink: #ff5fb0;
  --yellow: #ffd84a;
  --orange: #ff9a3c;
  --red: #ff4d5e;
  --violet: #c08bff;
  --line: 3px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Component display rules must never un-hide an element (filtered prompts, closed panels). */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(192, 139, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(63, 224, 255, 0.08), transparent 60%),
    var(--night);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--cyan);
}
a:hover {
  color: var(--lime);
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icon,
.bar-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Toy type: white fill, thick ink outline, hard drop ---------- */
.toy,
.toy-h {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.09em 0 var(--ink);
}
.toy-h {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  margin: 0 0 16px;
  -webkit-text-stroke-width: 0.12em;
}
.toy-h em {
  font-style: normal;
  color: var(--lime);
}

/* ---------- Top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  background: rgba(16, 13, 48, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.bar-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-shrink: 0;
}
.bar-home {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font: 600 15px/1 var(--body);
  white-space: nowrap;
}
.bar-logo {
  width: 24px;
  height: 24px;
  color: #fff;
}
.bar-slash {
  color: var(--dim);
}
.bar-section {
  color: var(--muted);
}
.bar-title {
  font: 700 19px/1 var(--display);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.bar-title em {
  font-style: normal;
  color: var(--lime);
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bar-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font: 600 14px/1 var(--display);
  white-space: nowrap;
}
.bar-action:hover {
  background: var(--panel);
  color: #fff;
}
.bar-make {
  margin-left: 6px;
  background: var(--lime);
  color: var(--ink);
  border: var(--line);
  box-shadow: 0 3px 0 var(--ink);
  padding: 8px 16px;
}
.bar-make:hover {
  background: #c4ff7a;
  color: var(--ink);
}
@media (max-width: 1180px) {
  .bar-section,
  .bar-slash {
    display: none;
  }
}
@media (max-width: 980px) {
  /* Icon only, but the label stays the link's accessible name. */
  .bar-action:not(.bar-make) span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .bar-action:not(.bar-make) {
    padding: 8px 10px;
  }
}
@media (max-width: 620px) {
  .bar-title {
    display: none;
  }
  .bar-brand {
    display: none;
  }
  .bar {
    padding: 8px 12px;
  }
  .bar-actions {
    gap: 0;
  }
  .bar-action:not(.bar-make) {
    padding: 8px 8px;
    min-width: 40px;
    justify-content: center;
  }
  .bar-make {
    padding: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .bar-action:not(.bar-make) {
    padding: 8px 5px;
    min-width: 34px;
  }
  /* No room for six actions: the prompt list stays one tap away in the kit and on every asset. */
  .bar-action[href="#prompts"] {
    display: none;
  }
  .bar-make {
    padding: 8px 9px;
  }
}

/* ---------- Pills and tools ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #fff;
  font: 600 16px/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
}
.pill:hover {
  background: #3a3290;
  color: #fff;
}
.pill:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.pill small {
  font: 600 12px/1 var(--mono);
  color: var(--muted);
}
.pill-big {
  min-height: 56px;
  padding: 14px 24px;
  font-size: 19px;
}
.pill-lime {
  background: var(--lime);
  color: var(--ink);
}
.pill-lime:hover {
  background: #c4ff7a;
  color: var(--ink);
}
.pill-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--ink);
}
.pill-ghost {
  background: transparent;
  border-color: rgba(196, 191, 240, 0.45);
  box-shadow: none;
}
.pill-ghost:hover {
  background: var(--panel-2);
  border-color: var(--ink);
}
.pill.is-on {
  background: var(--yellow);
  color: var(--ink);
}
.pill.is-on small {
  color: var(--ink);
}
.tool {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: var(--line);
  border-radius: 12px;
  background: rgba(16, 13, 48, 0.82);
  color: #fff;
  cursor: pointer;
}
.tool:hover {
  background: var(--panel-2);
}
.tool .icon {
  width: 18px;
  height: 18px;
}
.tool[aria-pressed='true'] .icon,
[data-playing] > .icon {
  display: none;
}
[data-playing]::before,
.tool[aria-pressed='true']::before {
  content: '';
  width: 14px;
  height: 16px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: var(--line);
}
.hero-media,
.hero-video {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 11, 42, 0.92) 0%, rgba(14, 11, 42, 0.62) 42%, rgba(14, 11, 42, 0.05) 75%),
    linear-gradient(0deg, rgba(14, 11, 42, 0.85) 0%, transparent 40%);
}
.hero-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px var(--gutter) 56px;
}
.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span {
  align-self: center;
  color: var(--lime);
}
.eyebrow-chip {
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
}
.lede strong {
  color: #fff;
}
/* The game card on the right of the hero: Built for, the Roblox logo, then the game's facts. */
.hero {
  grid-template-columns: minmax(0, 1fr) auto;
}
.hero-game {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 360px;
  margin: 120px clamp(24px, 9vw, 140px) 0 24px;
  padding: 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: rgba(30, 26, 85, 0.94);
  box-shadow: var(--shadow);
}
.hero-game-kicker {
  margin: 0 0 12px;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.hero-game-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 4px 0 var(--ink));
}
.hero-game-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-game-facts li {
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--panel);
}
.hero-game-facts b {
  display: block;
  font: 600 22px/1.1 var(--display);
  color: var(--lime);
}
.hero-game-facts span {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    padding-bottom: 24px;
  }
  .hero-game {
    justify-self: start;
    width: auto;
    max-width: 720px;
    margin: 0 var(--gutter) 48px;
  }
  .hero-game-logo {
    width: 240px;
    margin-bottom: 16px;
  }
  .hero-game-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .hero-game-logo {
    width: 190px;
  }
  .hero-game-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .hero-game-facts b {
    font-size: 18px;
  }
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.92;
  -webkit-text-stroke-width: 0.11em;
}
.statement {
  margin: 0 0 14px;
  font: 600 clamp(20px, 2.4vw, 27px) / 1.25 var(--display);
  color: var(--yellow);
}
.lede {
  margin: 0 0 26px;
  max-width: 60ch;
  color: #e7e3ff;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Download cards (bordered, plain background) ---------- */
.kit {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 8px;
}
.kit-title {
  margin: 0 0 16px;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease;
}
.card:hover {
  transform: translateY(-3px);
  color: var(--text);
  background: var(--panel);
}
.card h3 {
  margin: 0;
  font: 700 21px/1.15 var(--display);
  overflow-wrap: anywhere;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.card .card-type {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.card b {
  margin-top: auto;
  padding-top: 8px;
  font: 600 15px/1 var(--display);
  color: var(--lime);
}
.card-make {
  background: var(--lime);
  color: var(--ink);
}
.card-make:hover {
  background: #c4ff7a;
  color: var(--ink);
}
.card-make p,
.card-make .card-type,
.card-make b {
  color: var(--ink);
}

/* ---------- Stats ---------- */
.stats {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.stats li {
  padding: 14px 12px;
  border: var(--line);
  border-radius: 14px;
  background: var(--night-2);
  text-align: center;
}
.stats b {
  display: block;
  font: 700 clamp(28px, 3.4vw, 40px) / 1 var(--display);
  color: var(--yellow);
}
.stats li:nth-child(2) b {
  color: var(--cyan);
}
.stats li:nth-child(3) b {
  color: var(--pink);
}
.stats li:nth-child(4) b {
  color: var(--lime);
}
.stats li:nth-child(5) b {
  color: var(--orange);
}
.stats li:nth-child(6) b {
  color: var(--violet);
}
.stats span {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--gutter) 0;
}
.kicker {
  margin: 0 0 12px;
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
}
.section-lede {
  max-width: 68ch;
  margin: 0 0 32px;
  font-size: 18px;
  color: #e7e3ff;
}
.sub {
  margin: 56px 0 8px;
  font: 700 clamp(22px, 2.6vw, 30px) / 1.15 var(--display);
}
.sub-lede {
  max-width: 68ch;
  margin: 0 0 20px;
  color: var(--muted);
}
.panel {
  padding: 22px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
  box-shadow: var(--shadow);
}
.panel h3 {
  margin: 6px 0 8px;
  font: 700 23px/1.15 var(--display);
}
.panel p {
  margin: 0 0 12px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  /* a long tag wraps on phones: a rounded box, not a capsule */
  border-radius: 10px;
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--lime);
}
.tag-pink {
  background: var(--pink);
}
.tag-cyan {
  background: var(--cyan);
}
.tag-yellow {
  background: var(--yellow);
}
.tag-orange {
  background: var(--orange);
}
.tag-violet {
  background: var(--violet);
}
/* Tags sit on light fills: keep the ink colour where a container sets muted paragraphs. */
.panel p.tag,
.step-card p.tag {
  color: var(--ink);
}
.made {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 12px;
  font-size: 14px;
  color: #e7e3ff;
}
.made-compact {
  font-size: 12.5px;
  color: var(--muted);
}
.made > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
.made i {
  font: normal 600 11px/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.prompt-text {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 9, 32, 0.55);
  color: #e7e3ff;
  font: 500 14px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  overflow: auto;
}
.prompt-text.small {
  font-size: 13px;
}
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* ---------- 01 Look ---------- */
.look {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.look-art img {
  width: 100%;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.look-art {
  margin: 0;
}

/* ---------- 02 World ---------- */
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 18px;
  counter-reset: none;
}
.chain li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chain li > img,
.chain .viewer {
  flex: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.chain li:last-child > img {
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
}
.chain li + li::before {
  content: '→';
  position: absolute;
  left: -16px;
  top: 52%;
  font: 700 22px/1 var(--display);
  color: var(--yellow);
}
.assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
}
.asset {
  display: flex;
  flex-direction: column;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.asset-open {
  display: block;
  padding: 0;
  border: 0;
  border-bottom: var(--line);
  background: #f3f1f8;
  cursor: pointer;
}
.asset-open img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.asset-open:hover img {
  transform: scale(1.05);
}
.asset-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}
.asset h4 {
  margin: 0;
  font: 700 19px/1.2 var(--display);
}
.asset-meta {
  margin: 2px 0 0;
  font: 500 13px/1.4 var(--mono);
  color: var(--yellow);
}
.asset .made {
  font-size: 13px;
  flex: 1;
}
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.duo-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
}
.sky-view {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.sky-view img {
  width: 100%;
  aspect-ratio: 2;
  object-fit: cover;
}
.sky-view .pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
}
.tiles {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tiles img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--line);
  border-radius: 10px;
}
.tiles span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.tiles b {
  color: var(--lime);
  font-weight: 700;
}
.tiles .tile-out img {
  filter: grayscale(0.6) brightness(0.8);
}
.tiles .tile-out b {
  color: var(--red);
}

/* ---------- 3D viewers ---------- */
.viewer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3a3290 0%, #1d1855 60%, #120f38 100%) !important;
  touch-action: pan-y;
}
.viewer canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}
.viewer canvas:active {
  cursor: grabbing;
}
.viewer > img.fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f1f8;
}
.viewer-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(10, 9, 32, 0.72);
  font: 600 12px/1.2 var(--mono);
  color: var(--muted);
  pointer-events: none;
}
.viewer-lost {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: rgba(10, 9, 32, 0.88);
  font-weight: 600;
}
.viewer-lost button {
  margin-top: 10px;
}
.viewer-loading::after {
  content: 'Loading 3D…';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 14px/1 var(--mono);
  color: var(--muted);
}

/* ---------- 03 Undead ---------- */
.undead {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.undead-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: var(--line);
}
.undead-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px;
  border: 0;
  border-right: var(--line);
  background: transparent;
  font: 700 19px/1 var(--display);
  cursor: pointer;
}
.undead-tabs button:last-child {
  border-right: 0;
}
.undead-tabs img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  background: #f3f1f8;
  border: 2px solid var(--ink);
}
.undead-tabs button[aria-selected='true'] {
  background: var(--lime);
  color: var(--ink);
}
.undead-tabs button:hover:not([aria-selected='true']) {
  background: var(--panel);
}
.undead-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 520px;
}
.viewer-tall {
  min-height: 520px;
  border-right: var(--line);
}
.undead-info {
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.undead-info h3 {
  margin: 0 0 8px;
  font: 700 36px/1 var(--display);
}
.undead-info > p {
  color: var(--muted);
  margin: 0 0 18px;
}
.clips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.walks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.walks li {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px;
  border: var(--line);
  border-radius: 14px;
  background: var(--night-2);
}
.walks img {
  width: 100%;
  border-radius: 8px;
}
.walks p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.walks b {
  display: block;
  color: #fff;
  font: 700 16px/1.3 var(--display);
}
.walks .is-pick {
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: inset 0 0 0 3px var(--lime);
}
.walks .is-pick b::after {
  content: ' Pick';
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
}
.loops {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.loops-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.loops-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.loop {
  margin: 0;
}
.clip {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0a26;
  box-shadow: var(--shadow);
}
.clip video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.clip-tools {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.loop figcaption {
  margin-top: 10px;
  font: 600 15px/1.35 var(--display);
  color: var(--muted);
}

/* ---------- 04 Arsenal ---------- */
.weapons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.weapon {
  display: flex;
  flex-direction: column;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.weapon .loop .clip {
  border: 0;
  border-bottom: var(--line);
  border-radius: 0;
  box-shadow: none;
}
.weapon .loop figcaption {
  display: none;
}
.weapon-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.weapon-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.weapon-head img {
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #2e2a6e;
  object-fit: contain;
}
.weapon h4 {
  margin: 0;
  font: 700 20px/1.1 var(--display);
}
.weapon .made {
  flex: 1;
  font-size: 13px;
}
.flip {
  height: 220px;
  margin-bottom: 12px;
  border: var(--line);
  border-radius: 14px;
  background: radial-gradient(circle, #2c2675 0%, #120f38 75%);
  display: grid;
  place-items: center;
}
.flip-frames {
  width: 200px;
  height: 200px;
  background: url('img/slash/sheet-1.webp') 0 0 / 200% 200% no-repeat;
  animation: flip 0.5s steps(1) infinite;
}
@keyframes flip {
  0% {
    background-position: 0 0;
  }
  25% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 100%;
  }
  75% {
    background-position: 100% 100%;
  }
}
.icons-sheet {
  width: 220px;
  margin: 0 auto 12px;
  border-radius: 14px;
}

/* ---------- 05 Sound ---------- */
.sfx-board,
.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sfx {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: var(--line);
  border-radius: 16px;
  background: var(--night-2);
}
.sfx h4,
.track h4 {
  margin: 0;
  font: 700 19px/1.2 var(--display);
}
.sfx-name p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.takes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.take {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--panel);
  font: 600 15px/1 var(--display);
  cursor: pointer;
}
.take b {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
}
.take.is-pick {
  box-shadow: inset 0 0 0 2px var(--lime);
}
.take[data-playing],
.track-play[data-playing] {
  background: var(--yellow);
  color: var(--ink);
}
.tracks {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: var(--line);
  border-radius: 16px;
  background: var(--night-2);
}
.track p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.track-play {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: var(--line);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}
.track-play .icon {
  width: 20px;
  height: 20px;
}
.shootout {
  margin-top: 24px;
}
.shootout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.shootout-row .track {
  grid-template-columns: auto 1fr;
  background: var(--panel);
}
.shootout-row .is-pick {
  box-shadow: inset 0 0 0 3px var(--lime);
}

/* ---------- 06 Play ---------- */
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  width: 100%;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0a26;
  box-shadow: var(--shadow);
}
.stage-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stage.live .stage-poster,
.stage.live .stage-play {
  display: none;
}
.stage-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border: var(--line);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 700 clamp(20px, 2.6vw, 30px) / 1 var(--display);
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .stage-play {
    padding: 12px 20px;
    font-size: 19px;
  }
}
.stage-play .icon {
  width: 26px;
  height: 26px;
}
.stage-full {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
}
.stage:fullscreen {
  border: 0;
  border-radius: 0;
  max-height: none;
}
.stage-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- 07 Build ---------- */
.tools3 {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.skills {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.skill-chips {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-chips li {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel-2);
  font: 500 13px/1 var(--mono);
}
.skills-shot img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top;
  border: var(--line);
  border-radius: 14px;
}
.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.wall img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 10px;
  transition: transform 0.15s;
}
.wall .shot:hover img {
  transform: scale(1.04);
}
.fixes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.fixes li {
  padding: 16px 18px;
  border: var(--line);
  border-radius: 16px;
  background: var(--night-2);
  border-left: 8px solid var(--orange);
}
.fixes h4 {
  margin: 0 0 6px;
  font: 700 18px/1.25 var(--display);
}
.fixes p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 08 Orchestration ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.steps .panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.step-n {
  margin: 0 0 10px;
  font: 700 18px/1.2 var(--display);
  color: #fff;
}
.step-n span {
  display: block;
  font: 600 12px/1.4 var(--mono);
  color: var(--yellow);
}
.steps > li {
  min-width: 0;
}
.steps pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(10, 9, 32, 0.6);
  overflow-x: auto;
  font: 500 12.5px/1.5 var(--mono);
  color: var(--lime);
}
.steps .panel p:last-child {
  margin: 0;
  font-size: 14px;
}
.models {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.model {
  padding: 14px 16px;
  border: var(--line);
  border-radius: 16px;
  background: var(--night-2);
  border-top: 8px solid var(--c, var(--lime));
}
.model-pink {
  --c: var(--pink);
}
.model-cyan {
  --c: var(--cyan);
}
.model-lime {
  --c: var(--lime);
}
.model-violet {
  --c: var(--violet);
}
.model-yellow {
  --c: var(--yellow);
}
.model-orange {
  --c: var(--orange);
}
.model-kind {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
}
.model h4 {
  margin: 6px 0 4px;
  font: 700 18px/1.2 var(--display);
}
.model p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.model .model-nums {
  margin-top: 8px;
  color: #fff;
}

/* ---------- 09 Make ---------- */
.make-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.make-steps .panel {
  position: relative;
  padding-top: 26px;
}
.make-steps .n {
  position: absolute;
  top: -16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font: 700 18px/1 var(--display);
}
.credit-line {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 0 var(--gutter);
  font-size: 14px;
  color: var(--dim);
}

/* ---------- Footer ---------- */
.page-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 40px;
  padding: 24px var(--gutter);
  border-top: var(--line);
  background: #110e33;
  font-size: 14px;
}
.page-end .id {
  font: 600 15px/1.2 var(--display);
  margin-right: auto;
}
.page-end a {
  color: var(--muted);
}
.page-end [data-exploration-controls] {
  border-top: 0;
  background: none;
}

/* ---------- Dialogs ---------- */
.modal {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px clamp(18px, 3vw, 36px) 32px;
  border: var(--line);
  border-radius: 22px;
  background: var(--night);
  color: var(--text);
  box-shadow: 0 10px 0 var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(6, 5, 22, 0.78);
  backdrop-filter: blur(4px);
}
.modal-top {
  position: sticky;
  top: -24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -24px 0 12px;
  padding: 16px 0 10px;
  background: var(--night);
}
.modal-top .kicker {
  margin: 0;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font: 600 15px/1 var(--display);
  cursor: pointer;
}
.modal-close:hover {
  background: var(--yellow);
  color: var(--ink);
}
.modal .toy-h {
  font-size: clamp(28px, 3.6vw, 44px);
}
.how-lede {
  max-width: 72ch;
  margin: 0 0 20px;
  color: var(--muted);
}
.how-film {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  margin-bottom: 28px;
}
.how-film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: var(--line);
  border-radius: 16px;
  background: #000;
}
.how-chapters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.how-chapters button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--night-2);
  font: 600 15px/1.2 var(--display);
  text-align: left;
  cursor: pointer;
}
.how-chapters small {
  font: 500 12px/1 var(--mono);
  color: var(--yellow);
}
.how-chapters button:hover {
  border-color: var(--ink);
  background: var(--panel);
}
.how-chapters button[aria-current='true'] {
  background: var(--lime);
  color: var(--ink);
}
.how-chapters button[aria-current='true'] small {
  color: var(--ink);
}
.how-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.how-steps li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: var(--line);
  border-radius: 16px;
  background: var(--night-2);
}
.how-steps .n,
.runs .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font: 700 15px/1 var(--display);
}
.how-steps h3 {
  margin: 2px 0 6px;
  font: 700 19px/1.2 var(--display);
}
.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.how-steps .made {
  margin-bottom: 0;
  font-size: 13px;
}

/* asset dialog */
.asset-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.asset-stage {
  position: sticky;
  top: 54px;
}
.asset-view {
  position: relative;
  aspect-ratio: 1;
  /* square, but never taller than a short screen allows */
  width: min(100%, 70dvh);
  margin-inline: auto;
  border: var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3a3290 0%, #1d1855 60%, #120f38 100%);
}
.asset-view > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f1f8;
}
.asset-view .viewer {
  position: absolute;
  inset: 0;
}
.seg {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.asset-chain {
  display: grid;
  gap: 14px;
}
.step-card {
  padding: 16px 18px;
  border: var(--line);
  border-radius: 16px;
  background: var(--night-2);
}
.step-card h3 {
  margin: 4px 0 6px;
  font: 700 20px/1.2 var(--display);
}
.step-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}
.step-card .params {
  font: 500 13px/1.5 var(--mono);
  color: var(--cyan);
}
.motions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.motions li {
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 13px;
}
.motions li.in-game {
  background: var(--lime);
  color: var(--ink);
}

/* prompts dialog */
.prompt-tools {
  position: sticky;
  top: 44px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
  background: var(--night);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search input {
  min-height: 40px;
  width: min(280px, 80vw);
  padding: 8px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--night-2);
  color: var(--text);
  font: 500 15px/1 var(--body);
}
.runs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.run {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(196, 191, 240, 0.25);
  border-radius: 14px;
  background: var(--night-2);
}
.run.is-target {
  border-color: var(--yellow);
}
.run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.run-head h3 {
  margin: 0;
  font: 700 17px/1.2 var(--display);
}
.run-head span {
  font: 500 12px/1.4 var(--mono);
  color: var(--dim);
}
.run .prompt-text {
  margin-bottom: 8px;
  max-height: 220px;
}
.run .params {
  margin: 0 0 8px;
  font: 500 12px/1.5 var(--mono);
  color: var(--cyan);
  overflow-wrap: anywhere;
}
.run-failed {
  color: var(--red) !important;
}

/* lightbox */
.modal-light {
  width: min(1500px, calc(100vw - 32px));
}
.lightbox-body img,
.lightbox-body video {
  width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 12px;
}

/* guide */
.guide {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(360px, calc(100vw - 36px));
  padding: 16px 18px;
  border: var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.guide-step {
  margin: 0;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.guide h2 {
  margin: 8px 0 6px;
  font: 700 22px/1.15 var(--display);
}
.guide p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
}
.guide-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-nav .tool {
  margin-left: auto;
  width: 38px;
  height: 38px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  translate: -50% 120px;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 600 15px/1 var(--display);
  transition: translate 0.2s ease;
}
.toast.show {
  translate: -50% 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .weapons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps,
  .make-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .look,
  .duo,
  .duo-wide,
  .skills,
  .asset-detail {
    grid-template-columns: 1fr;
  }
  .asset-stage {
    position: static;
  }
  .chain {
    grid-template-columns: 1fr 1fr;
  }
  .chain li:last-child {
    grid-column: 1 / -1;
  }
  .chain li:last-child::before {
    display: none;
  }
  .undead-panel {
    grid-template-columns: 1fr;
  }
  .viewer-tall {
    min-height: 380px;
    border-right: 0;
    border-bottom: var(--line);
  }
  .loops-3 {
    grid-template-columns: 1fr 1fr;
  }
  .tools3 {
    grid-template-columns: 1fr;
  }
  .sfx {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sfx > .pill {
    justify-self: start;
  }
  .how-film {
    grid-template-columns: 1fr;
  }
  .how-chapters {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .walks li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .section {
    padding-top: 64px;
  }
  .hero {
    min-height: 0;
  }
  .hero-media::after {
    background: linear-gradient(0deg, rgba(14, 11, 42, 0.96) 0%, rgba(14, 11, 42, 0.7) 55%, rgba(14, 11, 42, 0.25) 100%);
  }
  .hero-copy {
    padding-top: 180px;
    padding-bottom: 40px;
  }
  .hero-toggle {
    top: 12px;
    bottom: auto;
  }
  .hero-ctas .pill-big {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .asset .made {
    display: none;
  }
  .asset h4 {
    font-size: 17px;
  }
  .asset-actions .pill-sm {
    padding: 7px 11px;
  }
  .chain {
    grid-template-columns: 1fr;
  }
  .chain li + li::before {
    display: none;
  }
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .undead-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .undead-tabs button:nth-child(2) {
    border-right: 0;
  }
  .undead-tabs button:nth-child(-n + 2) {
    border-bottom: var(--line);
  }
  .undead-info {
    padding: 18px;
  }
  .loops-3,
  .loops-2,
  .weapons,
  .steps,
  .make-steps,
  .how-steps,
  .shootout-row {
    grid-template-columns: 1fr;
  }
  .make-steps {
    gap: 26px;
  }
  .tracks {
    grid-template-columns: 1fr;
  }
  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px 14px 24px;
    border-radius: 16px;
  }
  .modal-top {
    top: -18px;
    margin-top: -18px;
  }
  .prompt-tools {
    top: 40px;
  }
  .run {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 0;
  }
  .hero-copy {
    padding-top: 40px;
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .stage {
    max-height: calc(100dvh - 90px);
  }
  .bar {
    position: static;
  }
  .modal-top {
    position: static;
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .flip-frames {
    animation: none;
  }
  .card,
  .asset-open img,
  .wall img,
  .pill,
  .toast {
    transition: none;
  }
}

/* Upright phones: a taller stage, so the game's start screen and HUD have room. */
@media (max-width: 620px) and (orientation: portrait) {
  .stage {
    aspect-ratio: 4 / 5;
  }
}
