/* BlasTaBits: the "Bit Bin" look from the game (src/game/theme.css, screens/bitbin.css): candy toy blocks on a
   deep violet night, cube-extruded headings, chunky buttons that sink when pressed, rising glowing cubes. */

@font-face {
  font-family: 'Lilita One';
  src: url('../fonts/lilita-one-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-600.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-800.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --night: #170d2e;
  --night-2: #1d1139;
  --violet: #2a1a52;
  --violet-2: #3b2370;
  --violet-3: #4a2d8a;
  --pink: #ff4f8b;
  --gold: #ffd23f;
  --lime: #8ee03c;
  --sky: #3fa7ff;
  --grape: #b87bff;
  --cream: #fff7ec;
  --muted: #c9bbf2;
  --display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  --wrap: min(1200px, 100% - 40px);
  --focus: 0 0 0 3px var(--night), 0 0 0 6px var(--gold), 0 0 18px 6px #ffd23f66;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% 10%, #3b2370aa, transparent 70%),
    radial-gradient(900px 600px at 0% 40%, #2a1a52, transparent 70%),
    var(--night);
  color: var(--cream);
  font: 600 17px/1.55 var(--body);
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
picture {
  display: block;
}
.hero-media picture {
  position: absolute;
  inset: 0;
}
.card .shot picture,
.builder .shot picture,
.gallery picture {
  height: 100%;
}
a {
  color: var(--gold);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--violet);
  font-weight: 800;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ---- rising cubes (the title screen's) ---- */
.rising {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.rising i {
  position: absolute;
  left: var(--x);
  bottom: -30px;
  width: var(--s);
  height: var(--s);
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
  opacity: 0.4;
  animation: rise var(--d) linear infinite;
  animation-delay: var(--w);
}
@keyframes rise {
  to {
    transform: translateY(-115vh) rotate(540deg);
    opacity: 0;
  }
}
main,
.top,
footer {
  position: relative;
  z-index: 1;
}

/* ---- the wordmark: each letter its own toy block ---- */
.wordmark {
  display: flex;
  justify-content: center;
  gap: clamp(3px, 0.6vw, 8px);
  margin: 0;
  font: 400 clamp(29px, 7.9vw, 92px) / 1 var(--display);
  letter-spacing: 0;
}
.wordmark .l {
  display: inline-grid;
  place-items: center;
  width: 1.06em;
  height: 1.16em;
  border-radius: 0.17em;
  background: var(--c);
  color: #fff;
  text-shadow: 0 0.06em 0 #0006;
  box-shadow:
    inset 0 0.09em 0 #ffffff70,
    inset 0 -0.13em 0 #00000040,
    0 0.12em 0 #120a26,
    0 0.2em 0.3em #0007;
  animation:
    drop 0.6s cubic-bezier(0.25, 1.5, 0.45, 1) both,
    bob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 70ms), calc(0.8s + var(--i) * 140ms);
}
.wordmark .l:nth-child(odd) {
  rotate: -3deg;
}
.wordmark .l:nth-child(4n + 2) {
  rotate: 2deg;
}
.wordmark.small {
  font-size: 21px;
  gap: 2px;
}
.wordmark.small .l {
  box-shadow:
    inset 0 0.09em 0 #ffffff70,
    inset 0 -0.13em 0 #00000040,
    0 0.12em 0 #120a26;
  animation: none;
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-2.2em) rotate(20deg);
  }
}
@keyframes bob {
  50% {
    translate: 0 -0.08em;
  }
}

/* ---- buttons: stacked toy blocks that sink when pressed ---- */
.btn {
  --b: var(--pink);
  --s: #b8245c;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 24px 10px 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(#ffffff26, #ffffff00 55%), var(--b);
  color: #fff;
  font: 400 21px/1.1 var(--display);
  text-decoration: none;
  text-shadow: 0 2px 0 #0005;
  box-shadow:
    inset 0 3px 0 #ffffff55,
    inset 0 -3px 0 #0000002a,
    0 6px 0 var(--s),
    0 10px 18px #0007;
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    filter 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 3px 0 #ffffff55,
    inset 0 -3px 0 #0000002a,
    0 1px 0 var(--s),
    0 3px 8px #0007;
}
.btn:focus-visible {
  box-shadow:
    var(--focus),
    0 6px 0 var(--s);
  border-radius: 16px;
}
.btn .tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff33;
  box-shadow:
    inset 0 2px 0 #ffffff55,
    inset 0 -3px 0 #0000002e;
}
.btn .tile svg {
  width: 20px;
  height: 20px;
}
.btn small {
  display: block;
  font: 700 13px/1.2 var(--body);
  opacity: 0.9;
  text-shadow: none;
}
.btn .words {
  display: grid;
  text-align: left;
}
.btn.sky {
  --b: var(--sky);
  --s: #1d6bb8;
}
.btn.discord {
  --b: #5865f2;
  --s: #3640b0;
}
.btn.violet {
  --b: var(--violet-3);
  --s: #24124a;
}
.btn[aria-disabled='true'] {
  cursor: default;
}
.btn[aria-disabled='true']:hover {
  transform: none;
  filter: none;
}
.btn[aria-disabled='true']:active {
  transform: none;
  box-shadow:
    inset 0 3px 0 #ffffff55,
    inset 0 -3px 0 #0000002a,
    0 6px 0 var(--s),
    0 10px 18px #0007;
}
.btn.slim {
  min-height: 42px;
  padding: 6px 16px;
  font-size: 17px;
  border-radius: 12px;
  box-shadow:
    inset 0 2px 0 #ffffff55,
    inset 0 -3px 0 #0000002a,
    0 4px 0 var(--s),
    0 6px 12px #0006;
}
.btn.slim:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 #ffffff55,
    0 1px 0 var(--s);
}

/* ---- the top bar ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #170d2ee6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 #ffffff12;
  transition: transform 0.25s;
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.top .home {
  text-decoration: none;
  border-radius: 8px;
}
.top nav {
  margin-left: auto;
}
.top nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.top nav a:hover {
  color: #fff;
  background: #ffffff10;
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--violet-2);
  box-shadow:
    inset 0 2px 0 #ffffff22,
    0 4px 0 #120a26;
  color: #fff;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 3px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s;
}
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-btn span::before {
  top: -6px;
}
.menu-btn span::after {
  top: 6px;
}
.menu-btn[aria-expanded='true'] span {
  background: transparent;
}
.menu-btn[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 1080px) {
  .menu-btn {
    display: block;
  }
  .top nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #1d1139f5;
    box-shadow: 0 12px 30px #0009;
    display: none;
  }
  .top nav.open {
    display: block;
    animation: drop-in 0.25s ease-out;
  }
  .top nav ul {
    flex-direction: column;
    width: var(--wrap);
    margin: 0 auto;
    padding: 8px 0 16px;
  }
  .top nav a {
    padding: 12px;
    font-size: 18px;
  }
  .top .play-top {
    margin-left: 0;
  }
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (max-width: 420px) {
  .top .play-top small {
    display: none;
  }
  .top .wrap {
    gap: 10px;
  }
  .wordmark.small {
    font-size: 17px;
  }
}

/* ---- hero ---- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(92svh, 940px);
  padding: 72px 0 96px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero-media,
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-media video {
  opacity: 0;
  transition: opacity 0.8s;
}
.hero-media video.on {
  opacity: 1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, #170d2e99, #170d2e33 70%),
    linear-gradient(#170d2e88, #170d2e22 30%, #170d2e44 65%, var(--night));
}
.hero .wrap {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #170d2ecc;
  box-shadow: inset 0 2px 0 #ffffff1c;
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tagline {
  margin: 4px 0 0;
  font: 400 clamp(24px, 4.2vw, 42px) / 1.15 var(--display);
  color: #fff;
  text-shadow:
    0 3px 0 #170d2e,
    0 6px 24px #000a;
}
.pitch {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  text-shadow: 0 2px 10px #000c;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  margin-top: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #241544e0;
  box-shadow:
    inset 0 2px 0 #ffffff1c,
    0 3px 0 #0006;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.chip b {
  font: 400 17px var(--display);
  color: var(--gold);
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  50% {
    transform: translateY(10px) rotate(45deg);
  }
}

/* ---- sections and their cube-extruded headings ---- */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section + .section {
  padding-top: 0;
}
.head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-align: center;
}
.head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 400 clamp(34px, 5vw, 56px) / 1.05 var(--display);
  color: var(--cream);
  text-shadow:
    0 1px 0 var(--violet-3),
    0 2px 0 var(--violet-3),
    0 3px 0 var(--violet-2),
    0 4px 0 var(--violet-2),
    0 5px 0 var(--violet),
    0 6px 0 var(--violet),
    0 10px 18px #0009;
}
.head h2::before {
  content: '';
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 0.1em;
  background: var(--c, var(--pink));
  box-shadow:
    inset 0 0.06em 0 #ffffff80,
    inset 0 -0.08em 0 #0004,
    0 0.08em 0 #120a26;
  rotate: 12deg;
}
.head p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* A tray: the setup's dark rows, a toy-block panel. */
.tray {
  border-radius: var(--radius);
  background: linear-gradient(#2f1d5c, #24164a);
  box-shadow:
    inset 0 3px 0 #ffffff1a,
    inset 0 -5px 0 #00000030,
    0 7px 0 #110824,
    0 18px 40px #0007;
}

/* History: one small tray, a line of text and a two-stop timeline. */
.history {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px);
  text-align: center;
}
.history > p {
  margin: 0 auto 22px;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.5;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  top: 11px;
  border-top: 3px dashed #ffffff33;
}
.timeline li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 15px;
}
.timeline li::before {
  content: '';
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  border-radius: 5px;
  background: var(--c);
  box-shadow:
    inset 0 3px 0 #ffffff80,
    inset 0 -4px 0 #0004,
    0 3px 0 #120a26;
  rotate: 12deg;
}
.timeline b {
  font: 400 21px/1.1 var(--display);
  color: var(--cream);
}

/* Pop-in on scroll (only with JS and motion allowed). */
.js .pop {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.25, 1.4, 0.45, 1);
  transition-delay: calc(var(--k, 0) * 60ms);
}
.js .pop.in {
  opacity: 1;
  transform: none;
}

/* ---- trailer ---- */
.player {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 10px;
}
.player .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.player button {
  all: unset;
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.player button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s,
    filter 0.3s;
}
.player button:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.player button:focus-visible {
  box-shadow: inset 0 0 0 4px var(--gold);
  border-radius: 12px;
}
.play-cube {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(76px, 11vw, 112px);
  aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(#ffffff30, #fff0 60%), var(--pink);
  box-shadow:
    inset 0 4px 0 #ffffff66,
    inset 0 -6px 0 #0003,
    0 8px 0 #b8245c,
    0 14px 30px #000a;
  transition: transform 0.15s;
  animation: bob 2.6s ease-in-out infinite;
}
.player button:hover .play-cube {
  transform: scale(1.08) rotate(-4deg);
}
.play-cube svg {
  width: 42%;
  margin-left: 8%;
}
.player .len {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #170d2ecc;
  font-weight: 800;
  font-size: 14px;
}
.player video {
  width: 100%;
  height: 100%;
}

/* ---- picture cards ---- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card .shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 8px 8px 0;
  border-radius: 12px;
  background: var(--violet);
}
.card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .shot img {
  transform: scale(1.04);
}
.card .body {
  padding: 16px 18px 20px;
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font: 400 23px/1.15 var(--display);
  color: #fff;
}
.card h3 .cube {
  flex: none;
  align-self: flex-start;
  margin-top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--c);
  box-shadow:
    inset 0 2px 0 #ffffff80,
    inset 0 -2px 0 #0003,
    0 2px 0 #120a26;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Modes */
.modes {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.modes .card {
  grid-column: span 4;
}
.modes .card:nth-child(n + 4) {
  grid-column: span 3;
}
.mode-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px 6px;
  border-radius: 10px;
  background: var(--c);
  color: #fff;
  font: 400 22px/1.1 var(--display);
  text-shadow: 0 2px 0 #0005;
  box-shadow:
    inset 0 2px 0 #ffffff66,
    inset 0 -3px 0 #0003,
    0 4px 0 #120a26cc;
  rotate: -2deg;
}
.modes .pitch-line {
  margin-bottom: 6px;
  color: #fff;
  font-weight: 800;
}

/* Places */
.places {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.places .shot {
  aspect-ratio: 8 / 5;
}
.places h3 {
  font-size: 22px;
}

/* Characters */
.cast {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 48px) clamp(10px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.figure {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.figure .stand {
  position: relative;
  width: 100%;
  aspect-ratio: 200 / 410;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0 6% 9%;
}
.figure .stand::before {
  content: '';
  position: absolute;
  inset: 22% 0 0;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    linear-gradient(#2f1d5c, #24164a);
  box-shadow:
    inset 0 3px 0 #ffffff1a,
    inset 0 -5px 0 #00000030,
    0 6px 0 #110824;
}
.figure .stand::after {
  content: '';
  position: absolute;
  bottom: 7%;
  left: 18%;
  right: 18%;
  height: 7%;
  z-index: -1;
  border-radius: 50%;
  background: #0007;
  filter: blur(4px);
}
.figure img {
  width: 100%;
  height: auto;
  transition: transform 0.3s cubic-bezier(0.25, 1.6, 0.45, 1);
  transform-origin: 50% 100%;
}
.figure:hover img {
  transform: translateY(-6px) rotate(-2deg);
}
.figure b {
  font: 400 18px/1.1 var(--display);
}
.builder {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(16px, 2vw, 22px);
}
.builder .shot {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}
.builder .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.builder h3 {
  margin: 0 0 10px;
  font: 400 clamp(28px, 3.2vw, 40px) / 1.1 var(--display);
  color: var(--gold);
  text-shadow: 0 3px 0 #0007;
}
.builder p {
  margin: 0 0 10px;
  color: var(--muted);
}

/* Blasters */
.blasters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.blaster {
  display: grid;
  grid-template-rows: auto 1fr;
}
.blaster .art {
  display: grid;
  place-items: center;
  height: 170px;
  margin: 8px 8px 0;
  padding: 14px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 40%, transparent), transparent 68%),
    #1f1240;
}
.blaster .art picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.blaster .art img {
  max-height: 142px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px #0008);
  transition: transform 0.35s cubic-bezier(0.25, 1.6, 0.45, 1);
}
.blaster:hover .art img {
  transform: rotate(-6deg) scale(1.06);
}
.blaster .special {
  margin-top: 8px;
  font-size: 14px;
  color: #e7dcff;
}
.blaster .special b {
  color: var(--gold);
}
.extras {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(16px, 2vw, 24px);
}
.extras .tray {
  padding: 22px 22px 24px;
}
.extras h3 {
  margin: 0 0 12px;
  font: 400 26px/1.1 var(--display);
  color: var(--gold);
}
.jetpack {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}
.jetpack picture,
.jetpack img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 10px #0008);
}
.jetpack p,
.extras > div > p {
  margin: 0;
  color: var(--muted);
}
.specials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.specials li {
  display: grid;
  align-content: start;
  grid-template-columns: 14px 1fr;
  gap: 2px 10px;
  font-size: 15px;
  color: var(--muted);
}
.specials li::before {
  content: '';
  grid-row: span 2;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 4px;
  background: var(--c);
  box-shadow:
    inset 0 2px 0 #ffffff80,
    0 2px 0 #120a26;
}
.specials b {
  color: #fff;
  font-weight: 800;
}
.streak-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

/* Achievements */
.achievements {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ach {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}
.ach picture,
.ach img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  box-shadow: 0 4px 0 #0f0820;
  transition: transform 0.3s cubic-bezier(0.25, 1.6, 0.45, 1);
}
.ach:hover img {
  transform: rotate(-6deg) scale(1.06);
}
.ach b {
  display: block;
  font: 400 19px/1.15 var(--display);
  color: #fff;
}
.ach span {
  font-size: 15px;
  color: var(--muted);
}

/* Gallery */
.gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li:nth-child(1),
.gallery li:nth-child(8) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow:
    0 5px 0 #110824,
    0 12px 24px #0006;
}
.gallery button:focus-visible {
  box-shadow: var(--focus);
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition:
    transform 0.4s,
    filter 0.3s;
}
.gallery button:hover img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0c061aee;
  color: #fff;
}
.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade 0.2s;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox figure {
  margin: 0;
  width: min(100vw - 32px, (100dvh - 120px) * 16 / 9);
}
.lightbox img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 20px 60px #000c;
  animation: zoom-in 0.25s cubic-bezier(0.25, 1.4, 0.45, 1);
}
@media (min-width: 700px) {
  .lightbox figure {
    width: min(100vw - 170px, (100dvh - 110px) * 16 / 9);
  }
}
.lightbox figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--violet-3);
  color: #fff;
  font: 400 26px/1 var(--display);
  box-shadow:
    inset 0 3px 0 #ffffff33,
    0 5px 0 #120a26;
  cursor: pointer;
}
.lb-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #120a26;
}
.lb-close {
  top: 14px;
  right: 14px;
}
.lb-prev {
  left: 14px;
  top: 50%;
  translate: 0 -50%;
}
.lb-next {
  right: 14px;
  top: 50%;
  translate: 0 -50%;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes zoom-in {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

/* The closing call */
.cta-band {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(32px, 5vw, 56px) 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, #4a2d8a, transparent 70%),
    linear-gradient(#2f1d5c, #24164a);
}
.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.cta-band .wordmark,
.lost .wordmark {
  font-size: clamp(28px, 6vw, 60px);
}

/* Footer */
footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer p {
  margin: 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
footer a {
  color: var(--cream);
  font-weight: 800;
  text-decoration-color: #ffffff40;
  text-underline-offset: 3px;
}

/* ---- sizes ---- */
@media (max-width: 1100px) {
  .features,
  .blasters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cast {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .modes .card,
  .modes .card:nth-child(n + 4) {
    grid-column: span 6;
  }
  .modes .card:nth-child(1) {
    grid-column: span 12;
  }
  .achievements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .extras {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .features,
  .blasters,
  .places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cast {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .builder {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery li:nth-child(1),
  .gallery li:nth-child(8) {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  :root {
    --wrap: min(1200px, 100% - 28px);
  }
  .features,
  .places,
  .achievements {
    grid-template-columns: 1fr;
  }
  .modes .card,
  .modes .card:nth-child(n + 4),
  .modes .card:nth-child(1) {
    grid-column: span 12;
  }
  .cast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .blasters {
    grid-template-columns: 1fr;
  }
  .blaster {
    grid-template-columns: 128px 1fr;
    grid-template-rows: none;
    align-items: center;
  }
  .blaster .art {
    height: 112px;
    margin: 8px 0 8px 8px;
    padding: 8px;
  }
  .blaster .art img {
    max-height: 96px;
  }
  .blaster .body {
    padding: 12px 14px 14px 12px;
  }
  .card h3 {
    font-size: 21px;
  }
  .specials {
    grid-template-columns: 1fr;
  }
  .jetpack {
    grid-template-columns: 84px 1fr;
  }
  .jetpack picture,
  .jetpack img {
    width: 84px;
  }
  .btn {
    min-height: 54px;
    font-size: 19px;
  }
  .ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }
  .hero {
    padding: 56px 0 88px;
  }
  .gallery {
    gap: 8px;
  }
  .head h2 {
    gap: 10px;
  }
  .ach {
    grid-template-columns: 64px 1fr;
  }
  .ach picture,
  .ach img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rising {
    display: none;
  }
  .js .pop {
    opacity: 1;
    transform: none;
  }
}
