/* Self-hosted (OFL, see /fonts/OFL-*.txt): no third-party request before first paint. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-700.5741b7f01a.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --wine: #430c13;
  --red: #d42a20;
  --red-deep: #9e1a12;
  --ink: #13232f;
  --reel: #f7f1e6;
  --paper: #edf0f3;
  --text: #13232f;
  --muted: #526577;
  --line: #cfd7df;
  --live: #17a35a;
  --accent: #b8231a; /* red for small text on paper: 5.6:1 (the brand red is 4.4:1 there) */
  --band: #13232f;
  --cut: 18px;
  --dot: 4px;
  /* Ordered (Bayer 2x2) dither, 75% then 50% then 25%: how pixel art fades one colour into the next. */
  --fade-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v1H0zM1 1h1v1H1zM0 2h1v1H0zM1 3h1v1H1zM0 4h1v1H0z'/%3E%3C/svg%3E");
  --fade-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 5h2v1H0zM1 4h1v1H1zM0 3h1v1H0zM1 2h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E");
  --pixel: "Silkscreen", ui-monospace, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1922;
    --text: #e6ecf1;
    --muted: #9cafbe;
    --line: #253a4b;
    --live: #3ccf7f;
    --accent: #ff7a6e;
    --footer: #07111a;
    --band: #07111a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.55 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* The R monogram's bowl is cut at 45°; tiles, buttons and the cabinet take the same cut on the right. */
.cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, 0 100%);
}

/* Hero */

.hero { position: relative; background: var(--hero, var(--wine)); color: #fff; padding-bottom: clamp(56px, 8vw, 104px); }

/* Dithered edges: a coloured block fades into the next one in whole pixels instead of a straight line.
   Real elements, not pseudo-elements, so contrast checkers can still read the text around them. */
.edge {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--dot) * 6);
  background: inherit;
  -webkit-mask: var(--fade-down) 0 0 / calc(var(--dot) * 2) 100% repeat-x;
  mask: var(--fade-down) 0 0 / calc(var(--dot) * 2) 100% repeat-x;
  pointer-events: none;
}

.edge { top: 100%; }

.edge-up { top: auto; bottom: 100%; -webkit-mask-image: var(--fade-up); mask-image: var(--fade-up); }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; }

.logo { display: block; width: 148px; color: #fff; -webkit-user-select: none; user-select: none; }

.logo svg { width: 100%; height: auto; }

.nav-links { display: flex; flex-wrap: wrap; gap: 4px clamp(12px, 3vw, 32px); font-weight: 600; font-stretch: 112%; }

.nav-links a { padding-block: 6px; border-bottom: 2px solid transparent; text-decoration: none; }

.nav-links a:hover { border-bottom-color: currentColor; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(32px, 6vw, 72px);
}

.hero h1 {
  max-width: 13ch;
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 850;
  font-stretch: 125%;
  line-height: 1.02;
}

.intro { max-width: 44ch; margin: 0 0 32px; color: #f6dcd9; font-size: 1.125rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* The studio reel */

/* The machine: the cabinet, and above it a window the games' leads rise into from behind it. */
.machine { position: relative; max-width: 100%; padding-top: 150px; margin-top: -48px; }

.cameo { position: absolute; top: 0; left: 0; right: 0; height: 150px; overflow: hidden; pointer-events: none; }

.cameo .actor { left: calc(50% - var(--fw) * var(--s) * 0.5px); left: round(down, 50% - var(--fw) * var(--s) * 0.5px, 1px); bottom: 0; translate: 0 101%; }

.cameo .actor.on { translate: 0 0; }

.cabinet {
  --native: 32px;
  --scale: 3;
  --cell: calc(var(--native) * var(--scale));
  --cut: 22px;
  width: max-content;
  max-width: 100%;
  padding: 16px 18px 20px;
  background: var(--red);
  color: #fff;
}

.marquee { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; font: 700 1rem/1 var(--pixel); letter-spacing: 0.08em; }

.lamps { display: flex; gap: 6px; }

.lamps i { width: 8px; height: 8px; background: #6e120c; }

.spinning .lamps i { animation: chase 480ms steps(1) infinite; }
.lamps i:nth-child(2) { animation-delay: 120ms; }
.lamps i:nth-child(3) { animation-delay: 240ms; }
.lamps i:nth-child(4) { animation-delay: 360ms; }

.won .lamps i { animation: blink 300ms steps(1) 4; }
.jackpot .lamps i { animation: blink 160ms steps(1) 14; }

@keyframes chase { 0% { background: #ffe680; } 25% { background: #6e120c; } }
@keyframes blink { 0% { background: #ffe680; } 50% { background: #6e120c; } }

.window {
  position: relative;
  display: grid;
  width: max-content;
  margin-inline: auto;
  grid-template-columns: repeat(3, var(--cell));
  gap: 4px;
  padding: 4px;
  background: var(--ink);
}

.reel { position: relative; height: calc(var(--cell) * 3); overflow: hidden; background: var(--reel); }

/* Cylinder shading: the reel turns away at the top and bottom. */
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(19 35 47 / 0.42), rgb(19 35 47 / 0) 26%, rgb(19 35 47 / 0) 74%, rgb(19 35 47 / 0.42));
  pointer-events: none;
}

.strip { will-change: transform; }

.sym {
  display: block;
  width: var(--cell);
  height: var(--cell);
  background-image: var(--sheet);
  background-size: calc(var(--count) * var(--cell)) var(--cell);
  background-position: calc(var(--i) * var(--cell) * -1) 0;
  image-rendering: pixelated;
}

.payline { position: absolute; top: 50%; width: 0; height: 0; border-block: 9px solid transparent; translate: 0 -50%; }
.payline-left { left: -12px; border-left: 10px solid #fff; }
.payline-right { right: -12px; border-right: 10px solid #fff; }

.won .sym:nth-child(2), .jackpot .sym:nth-child(2) { animation: pay 700ms steps(2) 3; }

@keyframes pay { 50% { background-color: #ffe680; } }

.result { min-height: 3.1em; max-width: calc(var(--cell) * 3 + 8px); margin: 14px 0 12px; font-size: 0.9375rem; font-weight: 600; line-height: 1.55; }

.result a { font-weight: 800; }

.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.spin {
  --cut: 12px;
  min-width: 140px;
  min-height: 52px;
  padding: 0 28px 0 24px;
  border: 0;
  background: #fff;
  color: var(--red-deep);
  font: 700 1.25rem/1 var(--pixel);
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, 0 100%);
}

.spin:hover { background: #ffe9e6; }
.spin:active { translate: 0 2px; }
.spin[aria-disabled="true"] { background: #f3c6c1; cursor: progress; }
.spin:focus-visible { outline-offset: -7px; }

.sound { padding: 8px 0; border: 0; background: none; color: #fff; font: 600 0.875rem/1 "Archivo", sans-serif; font-stretch: 112%; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Buttons */

.button {
  --cut: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px 12px 22px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, 0 100%);
}

.button:focus-visible { outline-offset: -7px; }

.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #ffe1dd; }

.button-glass { background: rgb(255 255 255 / 0.12); color: #fff; }
.button-glass:hover { background: rgb(255 255 255 / 0.2); }

.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-deep); }

/* The other half of a choice: as easy to press as the red one, quieter to look at. */
.button-quiet { background: var(--line); color: var(--text); }
.button-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }

button.button { cursor: pointer; }

/* Games */

main { padding-top: clamp(56px, 8vw, 104px); }

h2 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 850;
  font-stretch: 125%;
  line-height: 1.05;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3vw, 40px); }

.grid-games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); }

.grid-games .tile > h3 { font-size: clamp(1.625rem, 2.4vw, 2rem); }

.card { display: flex; flex-direction: column; scroll-margin-top: 24px; }

.tile { position: relative; display: grid; }

.tile > .tile-art, .tile > h3 { grid-area: 1 / 1; }

.tile-art { container-type: inline-size; position: relative; display: grid; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink); }

/* The title scrim lives inside the clipped art, so the title itself needs no clip-path
   (a clip on the title would also clip the tile-wide link area and its focus ring). */
.tile-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(to top, rgb(19 35 47 / 0.88), rgb(19 35 47 / 0));
  pointer-events: none;
}

.tile-art img, .page-art img, .press-art img {
  position: absolute;
  left: 50%;
  left: round(down, 50%, 1px);
  top: 50%;
  top: round(down, 50%, 1px);
  width: max(calc(var(--art-w) * 1px), round(down, 100cqi, calc(var(--art-w) * 1px)));
  max-width: none;
  height: auto;
  translate: -50% -50%;
  image-rendering: pixelated;
}

/* Native canvases grow in whole steps; the frame crops a canvas too large for a narrow column.
   Parallax also moves in whole pixels, with no zoom that would stretch the art between steps. */
.tile-bg { transform: translate(round(nearest, calc(var(--px, 0) * 10px), 1px), round(nearest, calc(var(--py, 0) * 8px), 1px)); }

.tile-fg { transform: translate(round(nearest, calc(var(--px, 0) * -22px), 1px), round(nearest, calc(var(--py, 0) * -14px + var(--lift, 0px)), 1px)); }

/* A glint crosses the glass in eight hard steps when a tile is pointed at or focused. */
.tile-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / 0.3) 38% 44%, transparent 44% 49%,
    rgb(255 255 255 / 0.18) 49% 52%, transparent 52%);
  translate: -110% 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .tile:is(:hover, :focus-within) { --lift: -10px; }
  .tile:is(:hover, :focus-within) .tile-art::before { animation: glint 560ms steps(8) both; }
}

@keyframes glint { to { translate: 110% 0; } }

.tile > h3 {
  isolation: isolate; /* paints above the art without becoming the link's containing block */
  align-self: end;
  margin: 0;
  padding: 0 20px 20px;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  text-shadow: 0 3px 0 var(--ink);
}

.tile > h3 a { text-decoration: none; }

/* The title link covers the whole tile. */
.tile > h3 a::before { content: ""; position: absolute; inset: 0; }

.tile > h3 a:focus-visible { outline: none; }

.tile > h3 a:focus-visible::before { outline: 3px solid var(--text); outline-offset: 4px; }

.card.lit .tile-art { animation: lit 1100ms ease-out; }

@keyframes lit { 0%, 30% { filter: brightness(1.35) saturate(1.2); } 100% { filter: none; } }

.card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding-top: 18px; }

.status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.9375rem; font-weight: 650; font-stretch: 112%; }

.status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; }

.status-live::before { background: var(--live); }

.status-soon { color: var(--muted); }

.status-soon::before { box-shadow: inset 0 0 0 2px currentColor; }

.blurb { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

.facts dt { color: var(--muted); font-size: 0.8125rem; }

.facts dd { margin: 0; font-weight: 650; }

.card .button, .card .follow { align-self: flex-start; margin-top: auto; }

.follow { padding-block: 10px; font-weight: 650; font-stretch: 112%; text-underline-offset: 3px; }

/* How a slot is made */

.studio { padding-top: clamp(80px, 11vw, 136px); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: step; }

.steps li { padding-top: 18px; border-top: 3px solid var(--text); counter-increment: step; }

.steps li::before { content: counter(step); display: block; margin-bottom: 10px; color: var(--accent); font-size: 2.5rem; font-weight: 900; font-stretch: 125%; line-height: 1; }

.steps h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; font-stretch: 118%; line-height: 1.2; }

.steps p { margin: 0; }

.steps .more { display: inline-block; margin-top: 12px; font-weight: 650; font-stretch: 112%; text-underline-offset: 3px; }

.more-link { margin: 32px 0 0; font-weight: 650; font-stretch: 112%; }

.more-link a { text-underline-offset: 3px; }

/* The cast: a dark band where each game's lead stands on a stage of its own game's backdrop */

.band { position: relative; margin-top: clamp(96px, 12vw, 152px); padding-block: clamp(56px, 7vw, 88px); background: var(--band); color: #dce4ea; }

.band h2 { color: #fff; }

.band-intro { max-width: 52ch; margin: -16px 0 40px; color: #b9c7d2; font-size: 1.125rem; }

.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(20px, 2.4vw, 32px); }

.cast-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.cast-name { margin: 12px 0 0; color: #fff; font-size: 1.5rem; font-weight: 850; font-stretch: 125%; line-height: 1.1; }

.cast-game { margin: 0 0 4px; color: #9fb1bf; font-size: 0.9375rem; }

.cast-game a { color: #fff; font-weight: 650; text-underline-offset: 3px; }

.cast-bio { max-width: 60ch; margin: 0 0 12px; }

.band .act { margin-top: auto; }

/* A stage shows its scene at one whole-number scale (--k, doubled on game pages by --z); a column narrower
   than the scene crops its sides. The strip moves one frame per step, so every art pixel stays square. */
.stage {
  --z: 1;
  --s: calc(var(--k) * var(--z));
  --cut: 14px;
  position: relative;
  flex: none;
  width: 100%;
  max-width: calc(320px * var(--z));
  height: calc(220px * var(--z));
  overflow: hidden;
  background: var(--ink);
}

.scene { position: absolute; bottom: 0; left: calc(50% - 160px * var(--z)); left: round(down, 50% - 160px * var(--z), 1px); width: calc(320px * var(--z)); height: 100%; }

.backdrop { width: 100%; height: 100%; image-rendering: pixelated; }

.actor {
  position: absolute;
  left: calc(var(--x) * var(--s) * 1px);
  bottom: calc(var(--y) * var(--s) * 1px);
  width: calc(var(--fw) * var(--s) * 1px);
  height: calc(var(--fh) * var(--s) * 1px);
  overflow: hidden;
}

.actor img { width: calc(var(--fw) * var(--n) * var(--s) * 1px); max-width: none; height: 100%; image-rendering: pixelated; }

@media (prefers-reduced-motion: no-preference) {
  .actor img { animation: var(--life) steps(1, end) infinite; }
  /* The move plays only when asked for (its button, or a reel landing on its game), never on hover. */
  .acting .actor img, .actor.acting img { animation: var(--act) steps(1, end) infinite; }
  .cameo .actor { transition: translate 300ms steps(5); }
}

/* Reduced motion: the first frame stands still, and an action shows its key frame instead. */
@media (prefers-reduced-motion: reduce) {
  .acting .actor img, .actor.acting img { transform: translateX(calc(var(--key) / var(--n) * -100%)); }
}

.lead { margin-top: clamp(80px, 10vw, 120px); }

.lead-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 64px); align-items: center; }

.lead .stage { --z: 2; }

.lead h2 { margin-bottom: 16px; }

.lead-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; font-size: 1.125rem; }

/* Game and press pages */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(20px, 4vw, 48px);
}

.page-copy:only-child { grid-column: 1 / -1; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; color: #f2dad7; font-size: 0.9375rem; }

.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }

.crumbs a { text-underline-offset: 3px; }

.hero .game-logo { container-type: inline-size; max-width: none; margin-bottom: 24px; }

/* The wordmark takes the largest whole scale that fits its column, never a fluid max-width clamp. */
.game-logo img { width: min(calc(var(--w) * 4px), max(calc(var(--w) * 1px), round(down, 100cqi, calc(var(--w) * 1px)))); max-width: none; height: auto; image-rendering: pixelated; }

.page-hero .status { margin-bottom: 14px; color: #fff; }

.page-art { container-type: inline-size; position: relative; display: grid; justify-self: center; width: 100%; max-width: calc(var(--art-w) * 1px); height: calc(var(--art-h) * 1px); overflow: hidden; margin: 0; background: var(--ink); }

.glance .facts-wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }

.facts-wide dd { font-size: 1.125rem; }

.page-section { padding-top: clamp(56px, 8vw, 96px); }

main > .page-section:last-child { padding-bottom: clamp(72px, 10vw, 120px); }

.symbols { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }

.symbol { display: grid; gap: 2px; }

.symbol-art { --cut: 14px; container-type: inline-size; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; background: var(--reel); }

.symbol-art img { width: min(calc(var(--w) * 2px), max(calc(var(--w) * 1px), round(down, 100cqi, calc(var(--w) * 1px)))); max-width: none; height: auto; image-rendering: pixelated; }

.symbol-name { font-weight: 700; font-stretch: 112%; line-height: 1.3; }

.symbol-role { color: var(--muted); font-size: 0.875rem; }

.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }

.modes li { padding-top: 18px; border-top: 3px solid var(--text); }

.mode-cost { margin: 0 0 10px; color: var(--accent); font-size: 1.25rem; font-weight: 850; font-stretch: 125%; line-height: 1; }

.modes h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; font-stretch: 118%; line-height: 1.2; }

.modes p:last-child { margin: 0; }

.rules { display: grid; gap: 14px; max-width: 72ch; margin: 0; padding: 0; list-style: none; }

.rules li { position: relative; padding-left: 24px; }

.rules li::before { content: ""; position: absolute; top: 0.62em; left: 0; width: 8px; height: 8px; background: var(--accent); }

.note { max-width: 72ch; margin: 28px 0 0; color: var(--muted); font-size: 0.9375rem; }

.press-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }

.boilerplate h3 { margin: 0 0 8px; color: var(--muted); font-size: 0.9375rem; font-weight: 650; font-stretch: 112%; }

.boilerplate p { max-width: 64ch; margin: 0 0 6px; font-size: 1.125rem; }

.boilerplate .copy + h3 { margin-top: 28px; }

.copy { padding: 8px 0; border: 0; background: none; color: inherit; font: 650 0.9375rem/1 "Archivo", sans-serif; font-stretch: 112%; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.facts-sheet { grid-template-columns: minmax(0, 1fr); margin: 0; }

.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }

.asset { display: grid; align-content: start; gap: 2px; }

/* The preview box has a fixed shape; any file, whatever its own size, is fitted inside it. */
.asset-preview { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); }

.asset-white .asset-preview, .asset-wide .asset-preview, .asset-icon .asset-preview { background: var(--ink); border-color: var(--ink); }

.asset-preview img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; }

.asset-wide .asset-preview img { inset: 0; width: 100%; height: 100%; }

.asset-icon .asset-preview img { inset: 10%; width: 80%; height: 80%; }

.asset-name { font-weight: 700; font-stretch: 112%; }

.asset-meta { color: var(--muted); font-size: 0.875rem; }

.asset-links { display: flex; gap: 18px; margin-top: 4px; font-weight: 650; }

.press-games { display: grid; gap: 48px; }

.press-game { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 48px); align-items: start; scroll-margin-top: 24px; }

.press-art { container-type: inline-size; position: relative; display: grid; width: 100%; max-width: calc(var(--art-w) * 1px); height: calc(var(--art-h) * 1px); overflow: hidden; margin: 0; background: var(--ink); }

.press-game h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 850; font-stretch: 125%; }

.press-game h3 a { text-decoration: none; }

.press-game h3 a:hover { text-decoration: underline; }

.press-game p { max-width: 60ch; margin: 0 0 12px; }

.downloads { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }

.downloads a { font-weight: 700; }

.downloads span { color: var(--muted); font-size: 0.875rem; }

.press-shot { margin: 24px 0 0; }

.press-shot img { width: auto; height: auto; max-width: 100%; max-height: 360px; }

.press-shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

.feed-note { margin: 24px 0 0; font-size: 0.9375rem; overflow-wrap: anywhere; }

/* Devlog */

.hero .post-title { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.05; }

.post-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: -14px 0 0; color: #f2dad7; font-size: 0.9375rem; }

.listing { padding-bottom: clamp(72px, 10vw, 120px); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }

.post { padding-top: 18px; border-top: 3px solid var(--text); }

.post-date { margin: 0 0 12px; color: var(--accent); font: 700 0.875rem/1.3 var(--pixel); }

.post h2, .post h3 { margin: 0 0 8px; font-size: 1.375rem; font-weight: 800; font-stretch: 118%; line-height: 1.2; }

.post h2 a, .post h3 a { text-decoration: none; }

.post h2 a:hover, .post h3 a:hover { text-decoration: underline; }

.post p:last-child { margin: 0; }

.prose { max-width: 680px; font-size: 1.125rem; }

.prose > :first-child { margin-top: 0; }

.prose h2 { margin: 56px 0 16px; font-size: clamp(1.625rem, 3vw, 2rem); }

.prose h3 { margin: 36px 0 10px; font-size: 1.25rem; font-weight: 800; font-stretch: 118%; line-height: 1.25; }

.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 20px; }

.prose ul, .prose ol { padding-left: 1.4em; }

.prose li + li { margin-top: 8px; }

.prose a { text-underline-offset: 3px; }

.prose code { padding: 0.1em 0.35em; background: var(--line); font: 0.875em/1 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }

.prose blockquote { padding-left: 20px; border-left: 3px solid var(--accent); }

.prose blockquote p:last-child { margin: 0; }

.prose .note { margin-top: 40px; }

.shot { margin: 32px 0; }

/* Sprites ship at native size and grow by one whole number, so each art pixel stays square. */
.sprites { container-type: inline-size; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px; padding: 24px 16px; background: var(--reel); overflow-x: auto; }

.sprites img { flex: none; width: min(calc(var(--w) * var(--k) * 1px), max(calc(var(--w) * 1px), round(down, 100cqi, calc(var(--w) * 1px)))); max-width: none; height: auto; image-rendering: pixelated; }

.shot .art { width: 100%; height: auto; background: var(--ink); }

.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

/* Analytics choice: sticks to the bottom of the screen while it waits; at the very end of the page it sits
   below the footer instead of over it. Added after load, it moves nothing that is already on screen. */
.consent {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 12px max(16px, (100% - 1160px) / 2);
  border-top: 3px solid var(--text);
  background: var(--paper);
  color: var(--text);
  font-size: 0.9375rem;
}

.consent p { flex: 1 1 30ch; margin: 0; }

.consent a { text-underline-offset: 3px; }

.consent-actions { display: flex; gap: 10px; }

.consent .button { min-height: 44px; padding: 8px 24px 8px 18px; }

.consent-state { font-weight: 650; }

/* Footer */

.footer { position: relative; background: var(--footer, var(--ink)); color: #dce4ea; }

.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 72px 48px; }

.footer-cta h2 { margin-bottom: 12px; color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }

.footer-cta p { max-width: 52ch; margin: 0 0 28px; font-size: 1.125rem; }

.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px 32px; border-top: 1px solid #253a4b; font-size: 0.9375rem; }

.footer-row p { margin: 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Jack sits on the footer; every stomp stokes his flame. */
.jack-spot { display: grid; justify-items: center; gap: 6px; margin-left: auto; color: #ffd27a; }

.jack { padding: 0; border: 0; background: none; cursor: pointer; }

.jack img { width: calc(var(--w) * 2px); max-width: none; height: auto; image-rendering: pixelated; transform-origin: 50% 100%; }

.jack-spot .flame { min-height: 1.2em; font: 700 0.875rem/1.2 var(--pixel); white-space: nowrap; }

.jack-spot.blazing .flame { color: #fff1b8; text-shadow: 0 0 10px #ff8a1f; }

.jack-spot:has(.jack:is(:hover, :focus-visible)) .flame:empty::before { content: "stomp?"; color: #8fa3b3; }

/* Rampage */

.mogu { position: fixed; left: 50%; bottom: 0; z-index: 50; display: grid; justify-items: center; translate: -50% 0; pointer-events: none; }

.mogu img { width: 400px; max-width: none; height: auto; image-rendering: pixelated; }

.mogu span { --cut: 10px; margin-bottom: -8px; padding: 10px 18px 8px 14px; background: var(--red); color: #fff; font: 700 1.5rem/1 var(--pixel); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

@media (prefers-reduced-motion: no-preference) {
  .mogu { animation: surface 3200ms cubic-bezier(0.3, 0.8, 0.3, 1) both; }
  .mogu span { animation: shout 3200ms steps(1) both; }
}

@keyframes surface {
  0% { transform: translateY(100%); }
  22%, 78% { transform: translateY(0); }
  30%, 46%, 62% { transform: translateY(3%); }
  38%, 54%, 70% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes shout { 0%, 20% { opacity: 0; } 22%, 78% { opacity: 1; } 80% { opacity: 0; } }

/* 404 */

.lost { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh; padding: clamp(64px, 12vh, 140px) 0 0; overflow: hidden; }

.lost-mogu { width: 400px; max-width: none; height: auto; margin: 48px auto 0; image-rendering: pixelated; }

.coins { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-art img, .page-art img { transition: none; }
  /* A steady light instead of blinking. */
  .won .lamps i, .jackpot .lamps i { animation: none; background: #ffe680; }
  .won .sym:nth-child(2), .jackpot .sym:nth-child(2) { animation: none; background-color: #ffe680; }
}

@media (max-width: 1100px) {
  .grid-games, .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .lead .stage { --z: 1; }
}

@media (max-width: 860px) {
  .hero-grid, .page-hero, .press-about, .press-game { grid-template-columns: minmax(0, 1fr); }
  .machine { justify-self: center; margin-top: 0; }
  .steps, .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-games, .cast-grid, .lead-grid { grid-template-columns: minmax(0, 1fr); }
  :root { --dot: 3px; }
}

@media (max-width: 560px) {
  .cabinet { --scale: 2; padding: 14px 14px 16px; }
  .steps, .modes { grid-template-columns: minmax(0, 1fr); }
  .game-logo img { width: min(calc(var(--w) * 2px), max(calc(var(--w) * 1px), round(down, 100cqi, calc(var(--w) * 1px)))); }
  .sprites img { width: min(calc(var(--w) * var(--k-phone) * 1px), max(calc(var(--w) * 1px), round(down, 100cqi, calc(var(--w) * 1px)))); }
  .symbols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .symbol-name { font-size: 0.9375rem; }
  .footer-top { align-items: center; }
}

@media (max-width: 432px) {
  .mogu img, .lost-mogu { width: 200px; }
}

/* Galaxy Fold and other very narrow screens. */
@media (max-width: 315px) {
  .cabinet { padding-inline: 4px; }
  .window { gap: 0; padding: 0; }
  .payline-left { left: 0; }
  .payline-right { right: 0; }
  .controls { gap: 8px; }
  .spin { min-width: 112px; }
}
