/* BeBet Gaming — a pixel-crowned studio site. Lime, ink and the games' own colour.
   Pixel details (notched corners, dither edges, Silkscreen labels) echo the logo; cover typography stays independent. */
:root {
  --ink-0: #09090c;
  --ink-1: #0f0f14;
  --ink-2: #15151c;
  --ink-3: #1d1d26;
  --ink-4: #282833;
  --ink-5: #353542;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .16);
  --text: #f4f4ee;
  --text-2: #c3c3cc;
  --text-3: #8f8f9b;
  --lime: #cdfb41;
  --lime-hi: #defe86;
  --lime-lo: #87ad16;
  --lime-ink: #111700;
  --accent: var(--lime);
  --accent-2: var(--lime);
  --font: 'Mona Sans', 'Segoe UI', system-ui, sans-serif;
  --pixel: 'Silkscreen', 'Lucida Console', monospace;
  --cover-font: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --header: 76px;
  --gutter: 56px;
  color-scheme: dark;
}
[data-theme=candy] { --accent: #bb6bff; --accent-2: #ffc845; }
[data-theme=sky] { --accent: #49c8ff; --accent-2: #ff9d45; }
[data-theme=arena] { --accent: #ff5a4f; --accent-2: #63c9ff; }
[data-theme=noir] { --accent: #f2c14e; --accent-2: #3fd0c9; }
[data-theme=park] { --accent: #ff8a4c; --accent-2: #ffd23f; }
[data-theme=omen] { --accent: #e8344f; --accent-2: #f5c518; }
[data-theme=bloom] { --accent: #b48cff; --accent-2: #ffc83d; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); scrollbar-gutter: stable; }
body { margin: 0; background: var(--ink-0); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 850; font-stretch: 125%; text-transform: uppercase; line-height: .92; letter-spacing: -.015em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--lime-ink); }
.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1320px; margin-inline: auto; }
#main:focus, #detail-title:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 110; padding: 12px 20px; background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* Pixel vocabulary: notched corners, 2× icons, Silkscreen labels. */
.showcase-card, .game-card::before, .cover-frame, .cover-sheen, .step::before, .credits::before, .contact-card::before, .demo-player, .partner-panel::before, .detail-contact::before, .feature-tags li, .age-gate, .hero-thumb-media {
  clip-path: polygon(0 var(--n,6px), var(--n,6px) var(--n,6px), var(--n,6px) 0, calc(100% - var(--n,6px)) 0, calc(100% - var(--n,6px)) var(--n,6px), 100% var(--n,6px), 100% calc(100% - var(--n,6px)), calc(100% - var(--n,6px)) calc(100% - var(--n,6px)), calc(100% - var(--n,6px)) 100%, var(--n,6px) 100%, var(--n,6px) calc(100% - var(--n,6px)), 0 calc(100% - var(--n,6px)));
}
.i { width: 16px; height: 16px; flex: none; fill: currentColor; shape-rendering: crispEdges; }
.i-crown { width: 18px; height: 14px; }
.i-back { transform: scaleX(-1); }
.i-up { transform: rotate(-90deg); }
.i-mail { width: 20px; height: 16px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--lime); font: 400 16px/1 var(--pixel); letter-spacing: .01em; text-transform: uppercase; }
.kicker:not(:has(.i))::before { content: ""; width: 8px; height: 8px; flex: none; background: currentColor; }

/* Buttons: pixel-rounded slabs with a stepped ledge that presses down. */
.button {
  --bg: var(--ink-4); --bg-hover: var(--ink-5); --ledge: #050507; --fg: var(--text); --s: 4px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; margin: var(--s) var(--s) calc(var(--s) * 2); padding: 10px 18px;
  background: var(--bg); color: var(--fg); border: 0; border-radius: 0;
  font: 750 13px/1.15 var(--font); font-stretch: 118%; letter-spacing: .035em; text-transform: uppercase; text-align: center;
  box-shadow: 0 calc(var(--s) * -1) 0 var(--bg), 0 var(--s) 0 var(--bg), calc(var(--s) * -1) 0 0 var(--bg), var(--s) 0 0 var(--bg), 0 calc(var(--s) * 3) 0 calc(var(--s) * -1) var(--ledge);
  transition: background-color 140ms steps(2), box-shadow 140ms steps(2), transform 140ms steps(2);
}
.button:hover { --bg: var(--bg-hover); }
.button:active:not(:disabled) { transform: translateY(var(--s)); box-shadow: 0 calc(var(--s) * -1) 0 var(--bg), 0 var(--s) 0 var(--bg), calc(var(--s) * -1) 0 0 var(--bg), var(--s) 0 0 var(--bg); }
.button:focus-visible { outline-offset: calc(var(--s) + 5px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-lime { --bg: var(--lime); --bg-hover: var(--lime-hi); --ledge: var(--lime-lo); --fg: var(--lime-ink); }
.button-dark { --bg: #24242e; --bg-hover: #30303c; --ledge: #040406; }
.button-sm { --s: 3px; min-height: 38px; padding: 7px 13px; gap: 8px; font-size: 12px; }
.button-lg { --s: 5px; min-height: 56px; padding: 12px 26px; font-size: 15px; gap: 12px; }
.button-sm .i { width: 14px; height: 14px; }
.button-sm .i-mail { width: 17.5px; height: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text); font: 750 13px/1.2 var(--font); font-stretch: 118%; letter-spacing: .035em; text-transform: uppercase; background: linear-gradient(currentColor 0 0) 0 100% / 0 2px no-repeat; transition: background-size 260ms var(--ease); }
.text-link:hover { background-size: 100% 2px; }
.text-link .i { width: 14px; height: 14px; transition: transform 160ms steps(2); }
.text-link:hover .i { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header); border-bottom: 1px solid transparent; transition: background-color 220ms, border-color 220ms, backdrop-filter 220ms; }
.site-header.is-scrolled, .game-page-open .site-header { background: rgb(9 9 12 / .86); border-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 46px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 600; }
.desktop-nav a { position: relative; display: flex; align-items: baseline; gap: 6px; padding-block: 10px; color: var(--text-2); transition: color 160ms; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 200ms steps(4); }
.desktop-nav a:hover, .desktop-nav a.is-current { color: var(--text); }
.desktop-nav a.is-current::after { transform: scaleX(1); }
.nav-count { font: 400 10px/1 var(--pixel); color: var(--lime); }
.header-cta { margin-block: 3px 6px; }
.menu-toggle, .mobile-nav { display: none; }

/* Hero: the featured game's artwork, dissolving into ink through an ordered dither. */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(640px, min(100svh, 900px)); margin-top: calc(var(--header) * -1); padding-top: var(--header); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art { position: absolute; inset: 0 0 0 26%; background: var(--ink-1); }
.hero-image, .hero-transition { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 50% 42%; opacity: 0; }
.hero-image.is-active { opacity: 1; }
.hero-transition { opacity: 0; }
.hero-transition.is-running { opacity: 1; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-0) 0, rgb(9 9 12 / .55) 22%, rgb(9 9 12 / 0) 52%), linear-gradient(0deg, var(--ink-0) 0, rgb(9 9 12 / .5) 16%, rgb(9 9 12 / 0) 38%), linear-gradient(180deg, rgb(9 9 12 / .75) 0, rgb(9 9 12 / 0) 20%); }
.hero-dither { position: absolute; top: 0; bottom: 0; left: 26%; width: 384px; background: var(--ink-0); -webkit-mask: url(assets/dither-x.png) 0 0 / 384px 96px repeat-y; mask: url(assets/dither-x.png) 0 0 / 384px 96px repeat-y; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: end; gap: 48px; padding-block: 72px 64px; }
.hero-copy { max-width: 720px; padding-bottom: 6px; }
.hero h1 { margin: 0 0 28px; font-size: clamp(44px, 5.9vw, 86px); }
.hero-intro { max-width: 540px; margin: 0 0 34px; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: -4px; }
.hero-title-accent { color: var(--lime); }
.showcase { display: grid; gap: 12px; }
.showcase-card { --n: 8px; padding: 22px 24px 18px; background: rgb(12 12 16 / .8); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
.showcase-top { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; color: var(--text-3); font: 400 12px/1 var(--pixel); text-transform: uppercase; }
.showcase-position { color: var(--text-2); font-variant-numeric: tabular-nums; }
.showcase-category { margin: 0 0 8px; color: var(--accent); font: 400 12px/1 var(--pixel); text-transform: uppercase; transition: color 200ms; }
.showcase-title { margin: 0 0 18px; font-size: 30px; font-weight: 850; font-stretch: 125%; line-height: .95; text-transform: uppercase; letter-spacing: -.015em; }
.showcase-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; border-block: 1px solid var(--line); }
.showcase-stats > div { padding: 12px 0 12px 14px; min-width: 0; }
.showcase-stats > div:first-child { padding-left: 0; }
.showcase-stats > div + div { border-left: 1px solid var(--line); }
.showcase-stats dt { margin-bottom: 7px; color: var(--text-3); font: 400 10px/1 var(--pixel); text-transform: uppercase; }
.showcase-stats dd { margin: 0; font-size: 18px; font-weight: 800; font-stretch: 112%; line-height: 1.1; white-space: nowrap; }
.showcase-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-left: -3px; }
.hero-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.hero-thumb { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding: 6px 6px 9px; background: rgb(12 12 16 / .62); color: var(--text-2); text-align: left; font-size: 11px; font-weight: 700; font-stretch: 112%; line-height: 1.15; text-transform: uppercase; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); transition: color 160ms, box-shadow 160ms steps(2), background-color 160ms; }
.hero-thumb-media { --n: 3px; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--ink-3); }
.hero-thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover { color: var(--text); background: rgb(20 20 26 / .78); }
.hero-thumb[aria-pressed=true] { color: var(--text); box-shadow: inset 0 0 0 2px var(--lime); }
/* Five or more games share the showcase's width: the names set narrower so the longest (The Grabfather) still fits. */
.hero-picker:has(> :nth-child(5)) { gap: 8px; }
.hero-picker:has(> :nth-child(5)) .hero-thumb { padding-inline: 5px; font-size: 10px; font-stretch: 75%; letter-spacing: 0; }

.facts { position: relative; border-block: 1px solid var(--line); background: var(--ink-1); }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0; padding: 0; list-style: none; }
.facts-list li { display: grid; align-content: start; gap: 6px; padding: 28px 28px 30px; border-left: 1px solid var(--line); }
.facts-list li:first-child { padding-left: 0; border-left: 0; }
.facts-list strong { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: .01em; }
.facts-list strong::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--lime); }
.facts-list span { color: var(--text-3); font-size: 14px; line-height: 1.5; }
.facts-list strong span { color: inherit; font-size: inherit; }

/* Sections */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: end; gap: 24px 64px; margin-bottom: 52px; }
.section-head h2, .studio-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(38px, 5vw, 72px); }
.section-lead { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.games-section { padding-block: 120px 120px; }
.game-collection { display: grid; gap: 76px; }
.group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.group-title { margin: 0; font-size: clamp(22px, 2vw, 28px); font-stretch: 120%; letter-spacing: 0; }
.group-count { color: var(--lime); font: 400 14px/1 var(--pixel); }
.group-head::after { content: ""; flex: 1; min-width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-5) 0 4px, transparent 4px 10px); }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 28px; }

/* Game cards: box art on the left, the partner facts on the right. */
.game-card { --n: 10px; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, clamp(176px, 37%, 250px)) minmax(0, 1fr); grid-template-areas: "cover body" "stats stats"; grid-template-rows: minmax(0, 1fr) auto; gap: 24px 28px; padding: 26px; }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-2); background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 17%, var(--ink-2)) 0, var(--ink-2) 58%); }
.card-cover { grid-area: cover; position: relative; display: block; align-self: start; aspect-ratio: 3/4; container-type: inline-size; }
.card-cover:focus-visible { outline-offset: 6px; }
.status-badge { --b: var(--lime); --fg: var(--lime-ink); position: absolute; top: -5px; left: -5px; z-index: 8; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% + 2px); padding: 6px 9px 6px 8px; background: var(--b); color: var(--fg); font: 400 clamp(9px, 5cqw, 12px)/1.15 var(--pixel); letter-spacing: .02em; text-transform: uppercase; pointer-events: none; box-shadow: 0 -3px 0 var(--b), 0 3px 0 var(--b), -3px 0 0 var(--b), 3px 0 0 var(--b), 0 8px 0 -2px rgb(0 0 0 / .35); }
.status-badge::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; }
.status-badge[data-status=upcoming] { --b: #121218; --fg: #ffc845; }
.card-body { grid-area: body; display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px 5px; background: var(--ink-4); color: var(--text-2); font: 400 11px/1 var(--pixel); text-transform: uppercase; white-space: nowrap; }
.tag-new { background: var(--lime); color: var(--lime-ink); }
.card-number { margin-left: auto; color: var(--text-3); font: 400 11px/1 var(--pixel); text-transform: uppercase; }
.card-title { margin: 0 0 14px; font-size: clamp(26px, 2.5vw, 36px); }
.card-title a { transition: color 160ms; }
.card-title a:hover { color: var(--accent); }
.card-text { margin: 0 0 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.card-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); }
.card-stats > div { min-width: 0; padding: 16px 0 0 18px; }
.card-stats > div:first-child { padding-left: 0; }
.card-stats > div + div { border-left: 1px solid var(--line); }
.card-stats dt { margin-bottom: 9px; color: var(--text-3); font: 400 11px/1 var(--pixel); text-transform: uppercase; }
.card-stats dd { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: auto 0 0 -3px; }

/* Box-art covers: layered artwork, a typeset wordmark and a little depth on hover. */
.game-cover { --cover-shade: #18172c; position: absolute; inset: 0; display: block; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 700ms var(--ease); }
.game-cover.is-tilting { transition-duration: 120ms; }
.cover-frame { --n: 8px; position: absolute; inset: 0; overflow: hidden; background: var(--cover-shade); }
.cover-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.cover-frame .is-soft { filter: blur(6cqw); transform: scale(1.12); }
.cover-frame .cover-artwork { inset: 0 0 auto; height: 85%; object-fit: contain; object-position: center top; }
.cover-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 54%, var(--cover-shade) 86%); pointer-events: none; }
.cover-pop { position: absolute; inset: 0 0 auto; z-index: 3; width: 100%; height: 85%; object-fit: contain; object-position: center top; pointer-events: none; transform: translateZ(0); transition: transform 700ms var(--ease), filter 700ms var(--ease); }
.cover-wordmark { position: absolute; left: 5%; right: 5%; bottom: 5%; z-index: 4; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; text-transform: uppercase; pointer-events: none; transform: translateZ(0); transition: transform 700ms var(--ease); }
.cover-title-line { display: block; max-width: 100%; font: 800 18cqw/.88 var(--cover-font); letter-spacing: -.025em; text-shadow: 0 .65cqw 0 #071825, 0 1.4cqw 2.8cqw #0008; }
.cover-brand { display: block; margin-top: 3cqw; font: 800 clamp(7px, 2.6cqw, 14px)/1.2 var(--cover-font); letter-spacing: .24em; text-shadow: 0 1px 4px #0009; }
.cover-sheen { --n: 8px; position: absolute; inset: 0; z-index: 5; background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgb(255 255 255 / .24), rgb(255 255 255 / 0) 46%); opacity: 0; mix-blend-mode: soft-light; pointer-events: none; transition: opacity 400ms; }
.game-cover[data-cover-theme=sky] { --cover-shade: #083a4b; }
.game-cover[data-cover-theme=sky] .cover-artwork { height: 100%; }
.game-cover[data-cover-theme=sky] .cover-title-line:first-child { font-size: 17cqw; }
.game-cover[data-cover-theme=candy] { --cover-shade: #341153; }
.game-cover[data-cover-theme=arena] { --cover-shade: #061226; }
.game-cover[data-cover-theme=arena] .cover-title-line { text-shadow: 0 .65cqw 0 #7d1013, 0 1.4cqw 2.8cqw #0008; }
.game-cover[data-cover-theme=arena] .cover-title-line:nth-child(2) { font-size: 25cqw; }
.game-cover[data-cover-theme=noir] { --cover-shade: #04222a; }
.game-cover[data-cover-theme=noir] .cover-title-line { font-size: 16.5cqw; text-shadow: 0 .65cqw 0 #8c5a0c, 0 1.4cqw 2.8cqw #0008; }
.game-cover[data-cover-theme=noir] .cover-title-line:first-child { font-size: 9cqw; letter-spacing: .14em; }
.game-cover[data-cover-theme=park] { --cover-shade: #2a1046; }
.game-cover[data-cover-theme=park] .cover-title-line { font-size: 23cqw; text-shadow: 0 .65cqw 0 #b5431d, 0 1.4cqw 2.8cqw #0008; }
/* The game logo: BAD OMEN in yellow over SOCIAL in white. */
.game-cover[data-cover-theme=omen] { --cover-shade: #05262b; }
.game-cover[data-cover-theme=omen] .cover-title-line { font-size: 19cqw; text-shadow: 0 .65cqw 0 #8e1530, 0 1.4cqw 2.8cqw #0008; }
.game-cover[data-cover-theme=omen] .cover-title-line:first-child { color: #f5c518; }
.game-cover[data-cover-theme=omen] .cover-title-line:nth-child(2) { font-size: 15cqw; letter-spacing: .06em; }
/* MOONBLOOM: MOON / BLOOM in white on a violet shadow. As on the official tile,
   the frog fills the card (its layer is card-sized: the flower below the status badge) and its hips go behind the title. */
.game-cover[data-cover-theme=bloom] { --cover-shade: #1e1240; }
.game-cover[data-cover-theme=bloom] .cover-pop { height: 100%; }
.game-cover[data-cover-theme=bloom][data-cover-cut] .cover-pop { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 66%, transparent 88%); mask-image: linear-gradient(180deg, #000 0, #000 66%, transparent 88%); }
.game-cover[data-cover-theme=bloom] .cover-title-line { font-size: 23cqw; text-shadow: 0 .65cqw 0 #5a2fb0, 0 1.4cqw 2.8cqw #0008; }
/* The fighter art is cut at the thighs: his lower edge dissolves into the arena instead. */
.game-cover[data-cover-cut] .cover-pop { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 74%, transparent 96%); mask-image: linear-gradient(180deg, #000 0, #000 74%, transparent 96%); }
.game-cover[data-cover-theme=candy] .cover-pop { height: 80%; }
.game-cover[data-cover-theme=candy] .cover-title-line { font-size: 24cqw; text-shadow: 0 .65cqw 0 #642883, 0 1.4cqw 2.8cqw #0008; }
/* VICE HEAT: VICE in white over HEAT in the game's neon pink, on the night blue of the bay. */
.game-cover[data-cover-theme=vice] { --cover-shade: #0b2531; }
.game-cover[data-cover-theme=vice] .cover-title-line { font-size: 24cqw; text-shadow: 0 .65cqw 0 #b3165f, 0 1.4cqw 2.8cqw #0008; }
.game-cover[data-cover-theme=vice] .cover-title-line:nth-child(2) { color: #ff4f9a; text-shadow: 0 .65cqw 0 #4d0d34, 0 1.4cqw 2.8cqw #0008; }
/* DOMINOODLE: one white line on the game's navy ink, under a domino standing on the ground of its sky. */
.game-cover[data-cover-theme=doodle] { --cover-shade: #1b3f7a; }
.game-cover[data-cover-theme=doodle] .cover-title-line { font-size: 16cqw; text-shadow: 0 .65cqw 0 #1d2456, 0 1.4cqw 2.8cqw #0008; }

/* Process */
.process-section { padding-block: 120px; background: var(--ink-1); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { --n: 10px; position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 30px 30px 26px; }
.step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-2); }
.step-number { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; color: var(--lime); font: 400 48px/1 var(--pixel); }
.step-number::after { content: ""; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, rgb(205 251 65 / .55) 0 4px, transparent 4px 12px); }
.step:last-child .step-number::after { display: none; }
.step-goal { width: 36px; height: 28px; margin-left: auto; }
.step h3 { margin: 0 0 14px; font-size: 22px; font-stretch: 118%; letter-spacing: 0; line-height: 1.05; }
.step p { margin: 0 0 24px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.step .text-link { margin-top: auto; align-self: flex-start; }

/* Studio: a credits screen instead of a list of adjectives. */
.studio-section { padding-block: 130px; }
.studio-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 88px; }
.studio-copy h2 { margin-bottom: 30px; }
.studio-copy p:not(.kicker) { max-width: 560px; margin: 0 0 18px; color: var(--text-2); font-size: 18px; line-height: 1.65; }
.credits { --n: 10px; position: relative; isolation: isolate; padding: 40px 40px 34px; font-family: var(--pixel); text-transform: uppercase; }
.credits::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 80% 60% at 50% 0, rgb(205 251 65 / .09), rgb(205 251 65 / 0)), var(--ink-2); }
.credits-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 30px; color: var(--lime); font: 400 16px/1 var(--pixel); letter-spacing: 0; }
.credits-list { margin: 0; }
.credits-list > div { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 14px; }
.credits-list > div::after { content: ""; order: 1; flex: 1; min-width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-5) 0 2px, transparent 2px 6px); }
.credits-list dt { order: 0; color: var(--text-3); }
.credits-list dd { order: 2; margin: 0; color: var(--text); }
.credits-end { margin: 30px 0 0; color: var(--text-3); font-size: 12px; text-align: center; }

/* Contact: the one lime room in the house. */
.contact-section { position: relative; isolation: isolate; overflow: hidden; background: var(--lime); color: var(--lime-ink); }
.contact-section :focus-visible { outline-color: var(--lime-ink); }
.contact-section .contact-card :focus-visible { outline-color: var(--lime); }
.contact-section::before, .contact-section::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; height: 64px; background: var(--ink-0); -webkit-mask: url(assets/dither-edge.png) 0 0 / 64px 64px repeat-x; mask: url(assets/dither-edge.png) 0 0 / 64px 64px repeat-x; }
.contact-section::before { top: 0; }
.contact-section::after { bottom: 0; transform: scaleY(-1); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 72px; padding-block: 112px; }
.contact-section .kicker { color: var(--lime-ink); }
.contact-copy h2 { margin-bottom: 26px; }
.contact-copy p:not(.kicker) { max-width: 500px; margin: 0; color: rgb(17 23 0 / .78); font-size: 18px; line-height: 1.6; }
.contact-card { --n: 10px; position: relative; isolation: isolate; padding: 34px 34px 28px; color: var(--text); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-0); }
.contact-label { color: var(--text-3); font: 400 12px/1 var(--pixel); text-transform: uppercase; }
#contact-slot { margin: 14px 0 22px; }
#contact-slot .contact-link { display: inline-block; max-width: 100%; color: var(--lime); font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; font-stretch: 112%; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; background: linear-gradient(currentColor 0 0) 0 100% / 0 3px no-repeat; padding-bottom: 4px; transition: background-size 260ms var(--ease); }
#contact-slot .contact-link:hover { background-size: 100% 3px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-left: -4px; }
.mail-note { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; width: min(560px, calc(100% - 32px)); padding: 16px 52px 14px 20px; background: var(--ink-2); color: var(--text-2); font-size: 14px; line-height: 1.5; transform: translateX(-50%); box-shadow: 0 -4px 0 var(--ink-2), 0 4px 0 var(--ink-2), -4px 0 0 var(--ink-2), 4px 0 0 var(--ink-2), 0 0 0 1px var(--line), 0 24px 48px rgb(0 0 0 / .55); animation: note-in 260ms steps(4) both; }
.mail-note p { flex: 1 1 260px; margin: 0; }
.mail-note strong { display: block; color: var(--text); font-weight: 750; }
.mail-note-address { color: var(--lime); font-weight: 700; }
.mail-note-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--text-3); transition: color 160ms; }
.mail-note-close:hover { color: var(--text); }
.mail-note-close .i { width: 12px; height: 12px; }
@keyframes note-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.copy-burst { position: fixed; z-index: 120; width: 6px; height: 6px; background: var(--lime); pointer-events: none; }
.copy-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Footer */
.site-footer { padding-block: 76px 34px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.footer-brand img { width: auto; height: 64px; }
.footer-brand p { max-width: 300px; margin: 20px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.6; }
.footer-heading { margin: 0 0 18px; color: var(--text-3); font: 400 12px/1 var(--pixel); text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color 160ms; }
.footer-col a:hover { color: var(--text); }
#footer-contact-slot { display: block; margin-bottom: 18px; }
#footer-contact-slot .contact-link { color: var(--lime); font-weight: 700; }
.back-top { display: inline-flex; align-items: center; gap: 8px; }
.back-top .i { width: 12px; height: 12px; transition: transform 160ms steps(2); }
.back-top:hover .i { transform: rotate(-90deg) translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding-top: 26px; color: var(--text-3); font-size: 13px; }
.footer-disclaimer { display: flex; align-items: center; gap: 12px; }
.age-mark { display: grid; place-items: center; flex: none; min-width: 34px; height: 24px; padding: 0 5px; background: var(--ink-4); color: var(--text); font: 400 11px/1 var(--pixel); }

/* Game sheet */
.game-detail { position: relative; isolation: isolate; margin-top: calc(var(--header) * -1); padding: calc(var(--header) + 30px) 0 110px; overflow: hidden; }
.detail-backdrop { position: absolute; inset: 0 0 auto; z-index: -1; height: 620px; overflow: hidden; background: var(--ink-1); }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(36px) saturate(1.25); opacity: .5; transform: scale(1.2); }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(9 9 12 / .35) 0, rgb(9 9 12 / .55) 45%, var(--ink-0) 100%); }
.crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; color: var(--text-3); font: 400 12px/1 var(--pixel); text-transform: uppercase; }
.game-back { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-2); transition: color 160ms; }
.game-back:hover { color: var(--text); }
.game-back .i { width: 12px; height: 12px; }
#crumb-title { color: var(--text); }
.detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 40px; }
.detail-title-block { min-width: 0; }
.detail-heading .kicker { color: var(--accent); }
#detail-title { margin: 0 0 20px; font-size: clamp(42px, 6.2vw, 96px); }
.detail-lead { max-width: 680px; margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; flex: none; margin-right: -4px; }
.partner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
.demo-column { min-width: 0; }
.demo-player { --n: 10px; position: relative; width: 100%; aspect-ratio: 16/9; background: #0b0b10; isolation: isolate; }
.demo-cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; }
.demo-cover > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease); }
.demo-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgb(9 9 12 / .42), rgb(9 9 12 / .82)); }
.demo-player:hover .demo-cover > img { transform: scale(1.03); }
.demo-cover-copy { display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 24px; }
.demo-kicker { margin-bottom: 16px; color: var(--accent-2); font: 400 13px/1 var(--pixel); text-transform: uppercase; }
.demo-cover h2 { margin: 0; color: #fff; font-size: clamp(28px, 3.6vw, 50px); text-shadow: 0 2px 24px rgb(0 0 0 / .4); }
.demo-cover p { max-width: 420px; margin: 14px 0 26px; color: rgb(244 244 238 / .88); font-size: 16px; }
.demo-disclaimer { margin-top: 16px; color: rgb(244 244 238 / .72); font: 400 11px/1.4 var(--pixel); text-transform: uppercase; }
.demo-frame-slot, .demo-frame-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-player:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; clip-path: none; background: #0b0b10; }
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 52px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
#demo-status { display: inline-flex; align-items: center; gap: 10px; }
#demo-status::before { content: ""; width: 8px; height: 8px; background: var(--ink-5); }
.is-playing + .demo-toolbar #demo-status::before { background: var(--lime); }
.demo-toolbar > div { display: flex; align-items: center; gap: 22px; }
.demo-toolbar a, .demo-toolbar button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--text-2); font-size: 13px; font-weight: 650; transition: color 160ms; }
.demo-toolbar a:hover, .demo-toolbar button:hover { color: var(--lime); }
.demo-toolbar .i { width: 12px; height: 12px; }
.game-overview { padding-top: 60px; }
.game-overview .kicker { color: var(--accent); }
.game-overview h2 { margin: 0 0 20px; font-size: clamp(30px, 3.4vw, 46px); }
#detail-description { max-width: 760px; margin: 0 0 26px; color: var(--text-2); font-size: 17px; line-height: 1.7; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feature-tags li { --n: 3px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 10px 12px; background: var(--ink-3); color: var(--text); font-size: 14px; font-weight: 650; }
.feature-tags li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent); }
.mode-panel { margin-top: 60px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-size: 26px; font-stretch: 122%; }
.panel-heading > span { color: var(--accent); font: 400 12px/1.3 var(--pixel); text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.mode-table { width: 100%; min-width: 300px; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; text-align: left; }
.mode-table thead th { padding: 6px 20px 2px; color: var(--text-3); font: 400 11px/1 var(--pixel); text-transform: uppercase; }
.mode-table tbody th, .mode-table tbody td { padding: 17px 20px; background: var(--ink-2); }
.mode-table tbody th { font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: .01em; }
.mode-table tbody td { color: var(--text-2); }
.mode-table tbody tr > :first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mode-table tr > :last-child { text-align: right; color: var(--text); font-weight: 750; }
.meter { display: inline-flex; align-items: flex-end; gap: 3px; margin-right: 12px; vertical-align: -1px; }
.meter i { width: 5px; background: var(--ink-5); }
.meter i:nth-child(1) { height: 6px; }
.meter i:nth-child(2) { height: 10px; }
.meter i:nth-child(3) { height: 14px; }
.meter[data-level="1"] i:nth-child(-n+1), .meter[data-level="2"] i:nth-child(-n+2), .meter[data-level="3"] i { background: var(--accent); }
.table-note { margin: 10px 0 0; color: var(--text-3); font-size: 13px; }
.partner-sidebar { display: grid; gap: 16px; min-width: 0; }
.partner-panel { --n: 10px; position: relative; isolation: isolate; padding: 24px 24px 22px; }
.partner-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-2); }
.partner-panel > h2 { margin: 0 0 20px; color: var(--text-3); font: 400 12px/1 var(--pixel); letter-spacing: 0; text-transform: uppercase; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin: 0; }
.stats-grid dt { margin-bottom: 9px; color: var(--text-3); font: 400 10px/1 var(--pixel); text-transform: uppercase; }
.stats-grid dd { margin: 0; font-size: 26px; font-weight: 800; font-stretch: 112%; line-height: 1.05; }
.stats-grid dd small { display: block; margin-top: 7px; color: var(--text-3); font-size: 12px; font-weight: 500; font-stretch: 100%; line-height: 1.4; }
.partner-facts { margin: 0; font-size: 14px; }
.partner-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.partner-facts > div:first-child { padding-top: 0; }
.partner-facts > div:last-child { padding-bottom: 0; border: 0; }
.partner-facts dt { color: var(--text-3); }
.partner-facts dd { margin: 0; font-weight: 650; text-align: right; }
.bonus-panel::before { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 34%, var(--ink-2)) 0, var(--ink-2) 72%); }
.bonus-label { margin: 0 0 14px; color: var(--accent-2); font: 400 12px/1 var(--pixel); text-transform: uppercase; }
.partner-panel.bonus-panel > h2 { margin: 0 0 12px; color: var(--text); font: 850 22px/1 var(--font); font-stretch: 120%; letter-spacing: -.01em; text-transform: uppercase; }
.bonus-panel > p:not(.bonus-label) { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.bonus-metric { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.bonus-metric strong { color: var(--accent-2); font: 400 48px/1 var(--pixel); }
.bonus-metric span { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.detail-contact { --n: 10px; position: relative; isolation: isolate; padding: 24px; color: var(--lime-ink); }
.detail-contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); }
.detail-contact-title { margin: 0 0 8px; font-size: 20px; font-weight: 850; font-stretch: 120%; line-height: 1.05; text-transform: uppercase; }
.detail-contact p:not(.detail-contact-title) { margin: 0 0 16px; color: rgb(17 23 0 / .75); font-size: 14px; line-height: 1.55; }
.detail-contact .button { --bg: var(--lime-ink); --bg-hover: #26300a; --ledge: #5d7a07; --fg: var(--lime); }
.detail-contact :focus-visible { outline-color: var(--lime-ink); }
.more-games { margin-top: 110px; padding-top: 48px; border-top: 1px solid var(--line); }
.more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.more-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); }
.more-head .text-link { flex: none; white-space: nowrap; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 28px; }

/* Age confirmation */
.age-unconfirmed { overflow: hidden; }
.age-unconfirmed::before { content: ""; position: fixed; inset: 0; z-index: 90; background: rgb(9 9 12 / .62); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); }
.access-background { position: fixed; inset: 0; z-index: 91; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgb(9 9 12 / 0), rgb(9 9 12 / .75)); }
.age-gate { --n: 12px; position: fixed; inset: 0; z-index: 100; width: min(460px, calc(100% - 32px)); height: fit-content; max-height: calc(100dvh - 32px); margin: auto; padding: 38px 34px 30px; overflow: auto; overscroll-behavior: contain; border: 0; background: var(--ink-2); color: var(--text); text-align: center; }
.age-gate::backdrop { background: transparent; }
.age-logo { width: 132px; height: auto; margin: 0 auto 26px; }
.age-symbol { display: inline-grid; place-items: center; min-width: 84px; height: 48px; margin: 4px auto 26px; padding: 0 14px; background: var(--lime); color: var(--lime-ink); font: 400 28px/1 var(--pixel); box-shadow: 0 -4px 0 var(--lime), 0 4px 0 var(--lime), -4px 0 0 var(--lime), 4px 0 0 var(--lime); }
.age-symbol-closed { background: var(--ink-4); color: var(--text-2); box-shadow: 0 -4px 0 var(--ink-4), 0 4px 0 var(--ink-4), -4px 0 0 var(--ink-4), 4px 0 0 var(--ink-4); }
.age-gate h2 { margin: 0; font-size: 30px; outline: none; }
.age-description { max-width: 360px; margin: 16px auto 26px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.age-actions { display: grid; gap: 4px; }
.age-actions .button { width: calc(100% - 8px); }

/* Pointer niceties */
@media (hover: hover) and (pointer: fine) {
  .game-card:hover .cover-pop, .game-card:focus-within .cover-pop { transform: translate3d(0, -10%, 80px) scale(1.1); filter: drop-shadow(0 22px 26px rgb(0 0 0 / .5)); }
  /* The fighter steps up and out over the title. */
  .game-card:hover .game-cover[data-cover-cut] .cover-pop, .game-card:focus-within .game-cover[data-cover-cut] .cover-pop { transform: translate3d(0, -20%, 90px) scale(1.06); }
  .game-card:hover .cover-wordmark { transform: translateZ(40px); }
  .game-card:hover .cover-frame img:not(.cover-artwork), .game-card:hover .cover-artwork { transform: scale(1.05); }
  .game-card:hover .cover-frame .is-soft { transform: scale(1.17); }
  .game-card:hover .cover-sheen { opacity: 1; }
}
@keyframes bob { 50% { translate: 0 -1.6%; } }
@media (prefers-reduced-motion: no-preference) {
  .cover-pop { animation: bob 4.2s ease-in-out infinite; }
}

@media (max-width: 1180px) {
  :root { --gutter: 36px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 32px; }
  .game-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 24px; padding: 22px; }
  .partner-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .steps { gap: 14px; }
  .step { padding: 26px 24px 22px; }
  .studio-inner { gap: 56px; }
  .contact-inner { gap: 48px; }
}
@media (min-width: 1220px) {
  /* A group with an odd number of games opens with its newest title across the full row. */
  .group-grid > .game-card:first-child:nth-last-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); grid-template-areas: "cover tags" "cover title" "cover text" "cover stats" "cover actions"; grid-template-rows: auto auto auto auto 1fr; gap: 0 40px; }
  .group-grid > .game-card:first-child:nth-last-child(odd) .card-body { display: contents; }
  .group-grid > .game-card:first-child:nth-last-child(odd) .card-tags { grid-area: tags; }
  .group-grid > .game-card:first-child:nth-last-child(odd) .card-title { grid-area: title; }
  .group-grid > .game-card:first-child:nth-last-child(odd) .card-text { grid-area: text; max-width: 640px; }
  .group-grid > .game-card:first-child:nth-last-child(odd) .card-stats { grid-area: stats; max-width: 720px; }
  .group-grid > .game-card:first-child:nth-last-child(odd) .card-actions { grid-area: actions; align-self: start; margin: 24px 0 0 -3px; }
}
@media (min-width: 761px) and (max-width: 1219px) {
  /* One card per row: the facts move up beside the box art. */
  .game-card { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); grid-template-areas: "cover tags" "cover title" "cover text" "cover stats" "cover actions"; grid-template-rows: auto auto auto auto 1fr; gap: 0 34px; }
  .card-body { display: contents; }
  .card-tags { grid-area: tags; }
  .card-title { grid-area: title; }
  .card-text { grid-area: text; max-width: 620px; }
  .card-stats { grid-area: stats; }
  .card-actions { grid-area: actions; align-self: start; margin: 24px 0 0 -3px; }
}
@media (max-width: 960px) {
  .desktop-nav { gap: 22px; font-size: 13px; }
  .header-inner { gap: 24px; }
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-media { position: relative; inset: auto; height: min(68vw, 560px); margin-top: calc(var(--header) * -1); }
  .hero-art { inset: 0; }
  .hero-art::after { background: linear-gradient(180deg, rgb(9 9 12 / .7) 0, rgb(9 9 12 / 0) 22%), linear-gradient(0deg, var(--ink-0) 0, rgb(9 9 12 / 0) 50%); }
  .hero-dither { inset: auto 0 0; width: auto; height: 192px; -webkit-mask: url(assets/dither-y.png) 0 100% / 48px 192px repeat-x; mask: url(assets/dither-y.png) 0 100% / 48px 192px repeat-x; transform: scaleY(-1); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: -120px; padding-block: 0 56px; }
  .hero-copy { max-width: 720px; }
  .showcase { width: 100%; max-width: 560px; }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list li { padding: 24px 24px 26px; }
  .facts-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .games-section, .process-section { padding-block: 92px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 20px; padding: 28px 26px 24px; }
  .step > * { grid-column: 2; }
  .step-number { grid-column: 1; grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; margin: 0; }
  .step-number::after { display: none; }
  .step-goal { margin: 12px 0 0; }
  .studio-section { padding-block: 96px; }
  .studio-inner, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .credits { max-width: 560px; }
  .contact-inner { padding-block: 88px; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .detail-heading { flex-direction: column; align-items: flex-start; }
  .detail-actions { justify-content: flex-start; margin: 0 0 0 -4px; }
  .partner-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .demo-column, .partner-sidebar { display: contents; }
  .demo-player { order: 1; }
  .demo-toolbar { order: 2; margin-top: -16px; }
  .stats-panel { order: 3; margin-top: 8px; }
  .game-overview { order: 4; padding-top: 34px; }
  .mode-panel { order: 5; margin-top: 30px; }
  .config-panel { order: 6; margin-top: 40px; }
  .bonus-panel { order: 7; }
  .detail-contact { order: 8; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --header: 66px; }
  .brand img { height: 40px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; margin-left: auto; padding: 0 12px; background: var(--ink-3); }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform 200ms steps(3); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-header:has(.mobile-nav.is-open) { background: var(--ink-1); border-color: var(--line); }
  .mobile-nav { position: absolute; top: var(--header); left: 0; right: 0; display: grid; padding: 8px var(--gutter) 22px; background: var(--ink-1); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity 160ms, transform 220ms var(--ease), visibility 0s 220ms; }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .mobile-nav a:not(.button) { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; }
  .mobile-nav .nav-count { font-size: 12px; }
  .mobile-nav .button { margin-top: 20px; }
  .hero-media { height: min(104vw, 480px); }
  .hero-dither { height: 96px; -webkit-mask: url(assets/dither-edge.png) 0 0 / 72px 72px repeat-x; mask: url(assets/dither-edge.png) 0 0 / 72px 72px repeat-x; }
  .hero-inner { margin-top: -64px; gap: 28px; padding-bottom: 44px; }
  .kicker { font-size: 13px; margin-bottom: 18px; }
  .hero h1 { margin-bottom: 20px; font-size: clamp(36px, 10.6vw, 60px); }
  .hero-intro { font-size: 16px; margin-bottom: 26px; }
  .hero-actions .button { flex: 1 1 auto; }
  .showcase-card { padding: 20px 18px 14px; }
  .showcase-title { font-size: 26px; }
  .showcase-stats dd { font-size: 16px; }
  .hero-thumb { font-size: 10px; }
  .facts-list li { padding: 20px 14px 22px; }
  .facts-list strong { font-size: 14px; }
  .facts-list span { font-size: 13px; }
  .section-head h2, .studio-copy h2, .contact-copy h2 { font-size: clamp(34px, 10vw, 52px); }
  .section-lead, .studio-copy p:not(.kicker), .contact-copy p:not(.kicker) { font-size: 16px; }
  .games-section, .process-section { padding-block: 72px; }
  .game-card { grid-template-columns: minmax(0, 132px) minmax(0, 1fr); grid-template-areas: "cover tags" "cover title" "text text" "stats stats" "actions actions"; grid-template-rows: none; gap: 16px 18px; padding: 16px; }
  .card-body { display: contents; }
  .card-tags { grid-area: tags; align-self: start; margin: 0; }
  .card-number { display: none; }
  .card-title { grid-area: title; align-self: end; margin: 0 0 4px; font-size: 24px; }
  .card-text { grid-area: text; margin: 4px 0 0; font-size: 15px; }
  .card-stats > div { padding: 14px 0 2px 12px; }
  .card-stats dt { font-size: 10px; }
  .card-stats dd { font-size: 17px; }
  .card-actions { grid-area: actions; margin: 0 0 0 -3px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); padding: 24px 20px 20px; }
  .step-number { font-size: 36px; }
  .step-goal { width: 27px; height: 21px; }
  .studio-section { padding-block: 76px; }
  .credits { padding: 30px 20px 26px; }
  .credits-list > div { font-size: 12px; gap: 8px; }
  .contact-inner { padding-block: 72px; gap: 36px; }
  .contact-card { padding: 26px 20px 20px; }
  .site-footer { padding-block: 56px 28px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 36px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { align-items: flex-start; }
  .game-detail { padding: calc(var(--header) + 22px) 0 76px; }
  .detail-backdrop { height: 460px; }
  .crumbs { margin-bottom: 24px; }
  #detail-title { font-size: clamp(38px, 11vw, 60px); margin-bottom: 16px; }
  .detail-lead { font-size: 16px; }
  .detail-heading { margin-bottom: 28px; gap: 20px; }
  .detail-actions .button { flex: 1 1 auto; }
  .demo-player { aspect-ratio: 4/3; }
  .demo-player:not(.is-playing) { min-height: 300px; }
  .demo-player.is-playing { aspect-ratio: 3/5; }
  .demo-cover p { font-size: 14px; margin: 12px 0 20px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid dd { font-size: 24px; }
  .mode-table { font-size: 14px; }
  .mode-table tbody th, .mode-table tbody td { padding: 14px 14px; }
  .mode-table thead th { padding-inline: 14px; }
  .more-games { margin-top: 76px; }
  .age-gate { padding: 30px 22px 24px; }
  .age-gate h2 { font-size: 26px; }
}
@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .facts-list { grid-template-columns: minmax(0, 1fr); }
  .facts-list li { padding-left: 0 !important; border-left: 0 !important; }
  .facts-list li + li { border-top: 1px solid var(--line); }
  .game-card { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); }
  .card-title { font-size: 21px; }
  .card-stats > div { padding-left: 9px; }
  .card-stats dd { font-size: 15px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .game-cover { transform: none !important; }
}
