/* DESIGN_VARIANCE: 9 / MOTION_INTENSITY: 6 / VISUAL_DENSITY: 5.
   An editorial arcade: oversized condensed type, custom static artwork,
   legible game selections, and deliberate motion supplied by effects.js.
   All fonts and imagery are local. The catalog and game links work without JS. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-v22.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-800-v13.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a101b;
  --surface: #111c2b;
  --surface-raised: #1b2b3e;
  --text: #eef5fc;
  --muted: #a4b4c8;
  --line: #2c3c51;
  --accent: #80e8f8;
  --accent-ink: #082731;
  --accent-text: #80e8f8;
  --focus: #b5f3ff;
  --shadow: rgb(0 4 13 / .4);
  --body-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --display-font: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hero-gutter: 0px;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f8;
  --surface: #fff;
  --surface-raised: #e0eaf3;
  --text: #14243a;
  --muted: #52677e;
  --line: #bdcddd;
  --accent-text: #056b82;
  --focus: #08738d;
  --shadow: rgb(16 39 67 / .13);
  --hero-gutter: clamp(12px, 2vw, 24px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #eef3f8;
    --surface: #fff;
    --surface-raised: #e0eaf3;
    --text: #14243a;
    --muted: #52677e;
    --line: #bdcddd;
    --accent-text: #056b82;
    --focus: #08738d;
    --shadow: rgb(16 39 67 / .13);
  --hero-gutter: clamp(12px, 2vw, 24px);
  }
}

/* Foundation */
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body-font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
button { appearance: none; cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, a, input { touch-action: manipulation; }
a, button { transition: color .18s, background-color .18s, border-color .18s, box-shadow .18s; }
a:hover { color: var(--accent-text); }
:where(button, a, input, select, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(1px); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
[hidden] { display: none !important; }
.wrap { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); border-radius: 5px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 21px; border: 1px solid; border-radius: 5px; font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #b2f2ff; border-color: #b2f2ff; color: var(--accent-ink); box-shadow: 0 3px 0 rgb(87 187 209 / .2); }
.button-secondary { background: var(--surface); border-color: var(--line); }
.button-secondary:hover, .button-secondary[aria-pressed="true"] { border-color: var(--accent-text); color: var(--accent-text); }
.button-quiet { min-height: 44px; padding: 10px 13px; border: 0; border-radius: 5px; background: transparent; font-size: 13px; }
.button-quiet:hover { background: var(--surface-raised); color: var(--accent-text); }
.inline-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.inline-link span { color: var(--accent-text); font-size: 19px; }

/* Masthead */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 700; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; padding-right: 2px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 19px; font-weight: 700; letter-spacing: -2px; }
.primary-nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.primary-nav a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.header-tools { display: flex; align-items: center; gap: 19px; font-size: 13px; white-space: nowrap; }
.saved-link { display: inline-flex; align-items: center; min-height: 44px; }
.saved-link span:not(:empty) { margin-left: 5px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.theme-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle span { color: var(--text); }
.menu-toggle, .primary-nav .mobile-saved { display: none; }

/* Cover story: an image is an image; the game beneath it is the playable action. */
.arcade-hero { --bg: #0a101b; --surface: #111c2b; --text: #eef5fc; --muted: #a4b4c8; --line: #2c3c51; --accent-text: #80e8f8; --focus: #b5f3ff; --shadow: rgb(0 4 13 / .4); position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 550px; margin-block: 0 40px; padding: 32px var(--hero-gutter); overflow: hidden; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; z-index: -1; top: 0; right: -4%; width: 76%; height: 100%; pointer-events: none; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translate3d(var(--pointer-x, 0px), var(--pointer-y, 0px), 0); transition: transform .5s ease; }
.hero-content { position: relative; grid-column: 1; max-width: 630px; }
.hero-title { margin: 0 0 18px; font-family: var(--display-font); font-size: clamp(96px, 9.4vw, 142px); font-weight: 800; line-height: .8; letter-spacing: -.035em; text-transform: uppercase; }
.hero-title span { display: block; white-space: nowrap; }
.hero-title span + span { margin-top: 6px; color: var(--accent-text); }
.hero-description { max-width: 37ch; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.hero-picker { position: relative; width: min(660px, 100%); margin-top: 23px; }
.hero-choices { display: flex; gap: 8px; margin-bottom: 12px; }
.hero-choices button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-choices button:hover { color: var(--text); border-color: var(--accent-text); }
.hero-choices button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.hero-selection { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 132px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 40px var(--shadow); }
.hero-selection > img { width: 110px; height: 108px; object-fit: cover; border-radius: 4px; background: #081221; }
.selection-copy { display: grid; gap: 5px; min-width: 0; }
.selection-copy h2 { grid-column: 1; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.7px; }
.selection-copy p { grid-column: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.selection-copy > span { grid-column: 1; color: var(--muted); font-size: 12px; line-height: 1.5; }
.selection-play { grid-column: 3; grid-row: 1; align-self: center; min-height: 46px; padding: 11px 15px; }

/* Catalog: two clear control rows instead of an oversized search hero. */
.catalog { min-width: 0; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title { margin: 0 0 20px; font-size: 32px; font-weight: 700; letter-spacing: -1.2px; }
.catalog-heading .section-title { margin: 0; }
.catalog-intro { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-controls { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr); align-items: start; gap: 16px 28px; }
.game-search { display: flex; gap: 6px; min-width: 0; min-height: 54px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.game-search:focus-within { border-color: var(--accent-text); }
.game-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--text); font-size: 16px; }
.game-search input::placeholder { color: var(--muted); opacity: 1; }
.game-search .button-primary { min-height: 44px; padding-inline: 17px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 22px; min-width: 0; }
.type-filters { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.type-filters button, .type-filters a { display: inline-flex; align-items: center; min-height: 54px; padding: 9px 0 11px; border: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.4; }
.type-filters button[aria-pressed="true"], .type-filters a[aria-current] { box-shadow: inset 0 -2px var(--accent-text); color: var(--text); font-weight: 700; }
.type-filters button:hover, .type-filters a:hover { color: var(--text); }
.requirement-filters { display: flex; gap: 7px; align-items: center; }
.requirement-filters button, .fixed-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.requirement-filters button:hover { border-color: var(--accent-text); color: var(--text); }
.requirement-filters button[aria-pressed="true"], .fixed-filter { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 57px; color: var(--muted); font-size: 12px; }
.results-line p { margin: 0; }
.random-button { min-height: 44px; padding: 7px 0 7px 12px; border: 0; background: transparent; color: var(--text); font-size: 12px; }
.random-button span { margin-left: 9px; color: var(--accent-text); font-size: 19px; }

/* A publication rhythm: the image, game name, a reason to play, then metadata. */
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.game-card { min-width: 0; }
.game-cover-link { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 1.6; border: 1px solid var(--line); border-radius: 7px; background: #112338; }
.game-cover { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1.6; transition: transform .35s var(--ease); }
.game-cover-link::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(0deg, rgb(2 9 20 / .76), transparent 48%); }
.card-play-overlay { position: absolute; z-index: 1; bottom: 12px; left: 14px; display: inline-flex; align-items: center; min-height: 26px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 8px #000; }
.game-card:hover .game-cover, .game-card:focus-within .game-cover { transform: scale(1.04); }
.game-card:hover .game-cover-link, .game-card:focus-within .game-cover-link { border-color: var(--accent-text); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 8px; }
.card-title-row h3 { min-width: 0; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.6px; line-height: 1.3; }
.card-title-row h3 a { display: inline-block; padding-block: 7px; }
.save-button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 7px 5px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.4; }
.save-button:hover { background: var(--surface-raised); color: var(--text); }
.save-button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); }
.card-meta { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-meta span { margin-inline: 3px; }
.card-summary { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.5; }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 5px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.play-location-here { color: var(--accent-text); font-weight: 600; }
.device-label { color: var(--muted); }
.title-art { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: start; justify-content: center; width: 100%; height: 100%; padding: 11%; overflow: hidden; aspect-ratio: 1.6; background: #183c58; color: #a0ecfa; }
.title-art::before { position: absolute; z-index: -1; right: -25%; bottom: -54%; width: 75%; aspect-ratio: 1; border: 25px solid currentColor; border-radius: 50%; content: ""; opacity: .17; }
.title-art::after { position: absolute; z-index: -1; top: 16%; right: 8%; width: 20%; aspect-ratio: 1; background: currentColor; content: ""; opacity: .13; transform: rotate(25deg); }
.title-art-name { max-width: 94%; font-family: var(--display-font); font-size: clamp(34px, 3.2vw, 53px); font-weight: 800; line-height: .98; letter-spacing: -.7px; text-transform: uppercase; overflow-wrap: anywhere; }
.title-art-caption { margin-top: 12px; font-size: 12px; font-weight: 500; }
.title-art-1 { background: #4a2439; color: #ffbbcb; }
.title-art-2 { background: #15413f; color: #9fe6da; }
.title-art-3 { background: #4c361b; color: #ffd292; }
.title-art-4 { background: #292d52; color: #c4cdff; }
.empty-state { padding: 48px 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: center; }
.empty-mark { display: block; margin-bottom: 12px; color: var(--accent-text); font-family: var(--display-font); font-size: 58px; font-weight: 800; }
.empty-state h2 { margin-bottom: 12px; font-size: 27px; }
.empty-state p { margin-bottom: 23px; color: var(--muted); font-size: 15px; }
.no-script-note { color: var(--muted); font-size: 14px; }

/* Editorial sections */
.viral-guide-link { margin: 37px 0 0; color: var(--muted); font-size: 14px; }
.viral-guide-link a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.viral-guide-link span { margin-left: 7px; color: var(--accent-text); }
.collection-section { display: grid; grid-template-columns: .9fr 1.4fr; gap: 90px; margin-top: 64px; padding-top: 37px; border-top: 1px solid var(--line); }
.collection-section h2 { margin-bottom: 15px; font-size: 35px; letter-spacing: -1.3px; }
.collection-section > div > p { max-width: 34ch; color: var(--muted); font-size: 16px; }
.collection-links { display: grid; grid-template-columns: 1fr; }
.collection-links a { display: flex; align-items: start; gap: 19px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.collection-links a:first-child { padding-top: 0; }
.collection-number { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--accent-text); font-size: 24px; }
.collection-links strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.5px; }
.collection-links small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.home-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; margin-top: 64px; padding-top: 37px; border-top: 1px solid var(--line); }
.home-explainer h2 { margin-bottom: 22px; font-size: 36px; letter-spacing: -1.5px; }
.home-explainer p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.explain-main p { max-width: 48ch; margin-bottom: 18px; }
.explain-notes { display: grid; gap: 28px; }
.explain-notes h3 { margin: 0 0 9px; font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.explain-notes p { max-width: 48ch; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 19px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 38px; }
.breadcrumbs span:last-child { color: var(--text); }
.page-intro { padding: 24px 0 36px; }
.page-intro h1 { margin-bottom: 17px; font-family: var(--display-font); font-size: clamp(48px, 5vw, 74px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.page-intro p { max-width: 70ch; margin: 0; color: var(--muted); font-size: 16px; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 14px 35px; margin-top: 76px; padding: 33px 0 27px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -.6px; }
.footer-intro p { margin: 8px 0 0; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: 18px; font-size: 12px; }
.site-footer nav a, .analytics-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
.footer-credit { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; }
.status-toast { position: fixed; z-index: 40; bottom: 24px; left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 13px 21px; border-radius: 6px; background: var(--text); color: var(--bg); box-shadow: 0 6px 30px var(--shadow); font-size: 14px; transform: translateX(-50%); }

/* Game pages and their complete, scrollable canvases */
.play-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px 0 27px; }
.play-heading h1 { margin: 0 0 10px; font-family: var(--display-font); font-size: clamp(44px, 4.6vw, 65px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.play-heading .detail-category { margin-bottom: 8px; }
.play-heading .creator-credit { margin: 0; }
.game-arena { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #07111f; scroll-margin-top: 20px; }
.player-launchpad { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 420px; max-height: 560px; aspect-ratio: 2.2; background: #07111f; }
.player-launchpad > .game-cover, .player-launchpad > .title-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.player-launchpad::after { position: absolute; z-index: -1; inset: 0; content: ""; background: rgb(2 9 20 / .58); }
.launchpad-copy { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 580px; padding: 32px; color: #eff7ff; text-align: center; }
.launchpad-copy > p { margin: 0; font-size: 20px; line-height: 1.45; text-wrap: balance; }
.launchpad-copy .button-primary { min-height: 56px; padding: 14px 28px; box-shadow: 0 5px 26px rgb(0 0 0 / .25); font-size: 17px; }
.launchpad-copy .play-note { margin: 0; color: #d1dfed; font-size: 13px; }
.arena-summary { max-width: 80ch; margin: 20px 0 36px; color: var(--muted); font-size: 16px; }
.game-detail-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 54px; padding: 29px 0 45px; }
.detail-art { overflow: hidden; aspect-ratio: 1.6; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.detail-art .title-art-name { font-size: clamp(52px, 6vw, 88px); }
.detail-art .title-art-caption { font-size: 13px; }
.detail-category { margin-bottom: 14px; color: var(--accent-text); font-size: 13px; }
.detail-category span { margin-inline: 7px; color: var(--muted); }
.detail-intro h1 { margin-bottom: 18px; font-family: var(--display-font); font-size: clamp(45px, 4.8vw, 66px); font-weight: 800; line-height: .98; letter-spacing: -.015em; text-transform: uppercase; }
.detail-summary { max-width: 48ch; margin-bottom: 18px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.creator-credit { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.play-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.review-date { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 85px; padding-top: 37px; border-top: 1px solid var(--line); }
.detail-prose section { margin-bottom: 39px; }
.detail-prose h2 { margin-bottom: 19px; font-size: 27px; letter-spacing: -.8px; }
.detail-prose p { max-width: 72ch; margin-bottom: 17px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.controls-list { display: grid; gap: 16px; margin: 0; }
.controls-list > div { display: grid; grid-template-columns: minmax(90px, .32fr) 1fr; align-items: start; gap: 25px; }
.controls-list dt { font-size: 14px; }
.controls-list dd { margin: 0; color: var(--muted); font-size: 15px; }
kbd { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 12px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.game-facts { align-self: start; padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.game-facts h2 { margin-bottom: 24px; font-size: 22px; letter-spacing: -.6px; }
.game-facts dl { display: grid; gap: 20px; margin: 0; }
.game-facts dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.game-facts dd { margin: 0; font-size: 14px; line-height: 1.65; }
.requirements { margin: 25px 0; padding-top: 21px; border-top: 1px solid var(--line); }
.requirements h3 { margin-bottom: 12px; font-size: 15px; }
.requirements ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 14px; }
.requirements li + li { margin-top: 9px; }
.facts-footnote, .license-credit { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.license-credit .inline-link { display: inline; min-height: 0; font-size: inherit; }
.game-player { --frame-height: 660px; margin: 0 0 35px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.game-arena .game-player { margin: 0; border: 0; border-radius: 0; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 10px 20px; }
.player-toolbar h2 { margin: 0; font-size: 19px; letter-spacing: -.5px; }
.player-toolbar > div { display: flex; gap: 5px; }
.player-toolbar button { font-size: 13px; }
.game-player iframe { display: block; width: 100%; height: var(--frame-height); min-height: var(--frame-height); border: 0; background: #07111f; }
.player-status { margin: 0; padding: 0 20px 14px; color: var(--muted); font-size: 13px; }
.player-fallback { margin: 0; padding: 15px 20px; color: var(--muted); font-size: 14px; }
.player-fallback a { text-decoration: underline; text-underline-offset: 3px; }
.game-player[data-slug="word-weave"], .quickplay-dialog[data-slug="word-weave"] { --frame-height: 740px; }
.game-player[data-slug="neon-tower-defense"], .quickplay-dialog[data-slug="neon-tower-defense"] { --frame-height: 700px; }
.game-player[data-slug="gravity-maze"], .quickplay-dialog[data-slug="gravity-maze"] { --frame-height: 720px; }
.game-player:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100dvh; border: 0; border-radius: 0; background: var(--bg); }
.game-player:fullscreen .player-toolbar, .game-player:fullscreen .player-status, .game-player:fullscreen .player-fallback { flex-shrink: 0; }
.game-player:fullscreen iframe { flex: 1 1 0; height: auto; min-height: 0; }
.related-section { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-line h2 { margin: 0; font-size: 31px; letter-spacing: -1px; }

/* Native modal: the close control stays visible while the complete game scrolls. */
.quickplay-dialog { --frame-height: 660px; width: min(1180px, calc(100% - 32px)); max-width: none; max-height: 94dvh; margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); box-shadow: 0 25px 100px rgb(0 0 0 / .6); scrollbar-color: var(--line) var(--bg); }
.quickplay-dialog::backdrop { background: rgb(2 7 16 / .82); backdrop-filter: blur(6px); }
.quickplay-shell { min-width: 0; }
.quickplay-toolbar { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
.quickplay-heading { min-width: 0; }
.quickplay-heading p { margin: 0 0 3px; color: var(--accent-text); font-size: 12px; }
.quickplay-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.8px; line-height: 1.2; }
.quickplay-tools { display: flex; gap: 8px; flex-shrink: 0; }
.quickplay-tools button, .quickplay-footer button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 13px; }
.quickplay-tools button:hover, .quickplay-footer button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.quickplay-status { margin: 0; padding: 10px 22px; color: var(--muted); font-size: 13px; }
.quickplay-viewport { position: relative; width: 100%; background: #07111f; }
.quickplay-viewport:focus-within::after { position: absolute; z-index: 1; inset: 2px; border: 3px solid var(--focus); border-radius: 2px; content: ""; pointer-events: none; }
.quickplay-viewport iframe { display: block; width: 100%; height: var(--frame-height); min-height: var(--frame-height); border: 0; background: #07111f; }
.quickplay-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 22px 17px; border-top: 1px solid var(--line); }
.quickplay-footer > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.quickplay-footer > p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 14px; }
.quickplay-fallback { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 14px; }
[data-quick-fallback] a { text-decoration: underline; text-underline-offset: 3px; }
.quickplay-dialog:fullscreen { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
.quickplay-shell:fullscreen { overflow: auto; width: 100%; height: 100dvh; background: var(--bg); }

/* Guides and policies use the same typography, with a comfortable reading measure. */
.article-page { max-width: 840px; margin: 0 auto; padding-top: 33px; }
.article-page > header { max-width: 800px; margin-bottom: 38px; }
.article-page h1 { margin-bottom: 22px; font-family: var(--display-font); font-size: clamp(48px, 5.6vw, 77px); font-weight: 800; line-height: .98; letter-spacing: -.015em; text-transform: uppercase; }
.article-eyebrow { margin-bottom: 17px; color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.article-body { color: var(--muted); font-size: 17px; line-height: 1.85; }
.article-body h2 { margin: 42px 0 20px; color: var(--text); font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
.article-body h3 { margin: 31px 0 15px; color: var(--text); font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
.article-body p { margin: 0 0 24px; }
.article-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.article-body a:hover { color: var(--accent-text); }
.article-body ul, .article-body ol { margin-bottom: 28px; padding-left: 23px; }
.article-body li { margin-bottom: 11px; padding-left: 4px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote { margin: 32px 0; padding-left: 23px; border-left: 3px solid var(--accent-text); }
.article-body table { display: block; width: 100%; margin: 30px 0; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { color: var(--text); font-size: 13px; }
.article-body code { padding: 3px 5px; border-radius: 3px; background: var(--surface); font-size: .85em; overflow-wrap: anywhere; }
.article-body pre { overflow: auto; padding: 22px; border-radius: 5px; background: var(--surface); }
.article-body img { height: auto; border-radius: 7px; }
.article-body details { padding: 17px 0; border-top: 1px solid var(--line); }
.article-body summary { display: list-item; min-height: 44px; padding-block: 8px; cursor: pointer; color: var(--text); font-weight: 600; }
.article-body details p { margin: 15px 0 0; }
.availability-note { color: var(--muted); font-size: 15px; }

/* Optional analytics remains an equal-choice, readable dialog. */
.analytics-settings { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.analytics-settings:hover { color: var(--accent-text); }
.analytics-consent { position: fixed; z-index: 30; inset: auto 20px 20px auto; width: min(450px, calc(100% - 40px)); padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); box-shadow: 0 8px 30px var(--shadow); }
.analytics-consent h2 { margin-bottom: 11px; font-size: 20px; letter-spacing: -.5px; }
.analytics-consent p { margin-bottom: 18px; font-size: 14px; line-height: 1.6; }
.analytics-consent a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-choices { display: flex; gap: 10px; }
.analytics-choices button { flex: 1; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.analytics-choices button:hover { background: var(--surface-raised); }

/* Laptop */
@media (max-width: 1199px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { gap: 18px; }
  .brand { font-size: 14px; }
  .primary-nav { gap: 17px; }
  .header-tools { gap: 12px; }
  .theme-toggle { font-size: 0; gap: 0; }
  .theme-toggle span { font-size: 12px; }
  .arcade-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 530px; }
  .hero-title { font-size: 108px; }
  .hero-art { right: -8%; width: 79%; }
  .hero-selection { grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; }
  .hero-selection > img { width: 86px; }
  .selection-copy { gap: 5px; }
  .selection-copy h2 { font-size: 19px; }
  .selection-play { padding-inline: 13px; }
  .catalog-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catalog-toolbar { justify-content: space-between; }
  .game-search { max-width: 690px; }
  .game-grid { gap: 32px 18px; }
  .card-title-row h3 { font-size: 17px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 47px; }
  .game-detail-hero { gap: 38px; }
  .home-explainer, .collection-section { gap: 64px; }
  .site-footer { grid-template-columns: 1fr; gap: 15px; }
}

/* Tablet */
@media (max-width: 1023px) {
  .brand > span:last-child { max-width: 113px; white-space: normal; line-height: 1.2; }
  .primary-nav { gap: 13px; font-size: 12px; }
  .header-tools { gap: 10px; font-size: 12px; }
  .arcade-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 520px; }
  .hero-title { font-size: clamp(90px, 12.2vw, 102px); }
  .hero-art { right: -18%; width: 91%; }
  .hero-description { max-width: 32ch; }
  .hero-selection { grid-template-columns: 82px minmax(0, 1fr) auto; gap: 11px; padding: 11px; }
  .hero-selection > img { width: 82px; height: 116px; }
  .selection-copy { grid-template-columns: 1fr; }
  .selection-copy p { grid-column: 1 / -1; grid-row: 2; }
  .selection-copy > span { grid-row: 3; align-self: center; }
  .selection-play { min-height: 44px; padding: 9px 12px; font-size: 13px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-heading { align-items: start; flex-direction: column; gap: 7px; }
  .section-title { font-size: 30px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .game-facts { padding: 22px; }
  .detail-summary { font-size: 16px; }
  .detail-actions .button-primary, .detail-actions .button-secondary { padding-inline: 15px; }
  .collection-section { grid-template-columns: 1fr 1.25fr; gap: 40px; }
  .home-explainer { gap: 45px; }
  .collection-section h2, .home-explainer h2 { font-size: 31px; }
}

/* Mobile: artwork accompanies the title, while the playable card takes priority. */
@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 7px; min-height: 66px; padding-block: 9px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand > span:last-child { max-width: none; white-space: nowrap; }
  .brand-mark { width: 28px; height: 28px; font-size: 17px; letter-spacing: -1.7px; }
  .menu-toggle { display: block; padding-inline: 7px; font-size: 12px; }
  .primary-nav { display: none; grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 24px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
  .menu-open .primary-nav { display: flex; }
  .primary-nav .mobile-saved { display: inline-flex; }
  .saved-link { display: none; }
  .theme-toggle { min-width: 44px; padding-inline: 7px; }
  .arcade-hero { display: block; min-height: 0; margin-bottom: 25px; padding: 22px var(--hero-gutter) 23px; overflow: hidden; }
  .hero-art { top: -6px; right: -8px; width: clamp(210px, 62vw, 360px); height: 215px; opacity: .5; mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .1) 35%, #000 66%); }
  .hero-art img { object-fit: contain; object-position: right top; }
  .hero-content { max-width: none; }
  .hero-title { position: relative; width: 100%; max-width: none; margin-bottom: 13px; font-size: clamp(62px, 16vw, 96px); line-height: .84; letter-spacing: -.025em; }
  .hero-title span + span { margin-top: 4px; }
  .hero-description { position: relative; max-width: 29ch; margin-bottom: 0; font-size: 14px; line-height: 1.5; }
  .hero-picker { width: 100%; margin-top: 14px; }
  .hero-choices { gap: 7px; margin-bottom: 8px; }
  .hero-choices button { min-height: 44px; padding: 8px 17px; font-size: 12px; }
  .hero-selection { grid-template-columns: 92px minmax(0, 1fr); gap: 9px 12px; min-height: 153px; padding: 10px; border-radius: 6px; box-shadow: none; }
  .hero-selection > img { grid-column: 1; grid-row: 1 / 3; width: 92px; height: 137px; border-radius: 3px; }
  .selection-copy { grid-column: 2; grid-row: 1; gap: 4px; }
  .selection-copy h2 { font-size: 19px; letter-spacing: -.6px; }
  .selection-copy p { font-size: 14px; line-height: 1.4; }
  .selection-copy > span { font-size: 12px; line-height: 1.3; }
  .selection-play { grid-column: 2; grid-row: 2; justify-self: start; min-height: 44px; padding: 9px 13px; font-size: 13px; }
  .catalog-heading { gap: 7px; margin-bottom: 16px; }
  .section-title { margin-bottom: 17px; font-size: 28px; letter-spacing: -1px; }
  .catalog-intro { font-size: 14px; line-height: 1.5; }
  .catalog-controls { gap: 9px; }
  .game-search { min-height: 54px; padding: 4px; gap: 3px; }
  .game-search input { padding: 9px 8px; font-size: 16px; }
  .game-search .button-primary { padding-inline: 13px; font-size: 13px; }
  .catalog-toolbar { display: block; }
  .type-filters { gap: 25px; }
  .type-filters button, .type-filters a { min-height: 48px; padding-bottom: 10px; font-size: 13px; }
  .requirement-filters { gap: 7px; padding-top: 10px; }
  .requirement-filters button, .fixed-filter { padding: 8px 11px; font-size: 12px; }
  .results-line { min-height: 54px; gap: 12px; font-size: 12px; }
  .random-button { padding-left: 4px; font-size: 12px; }
  .random-button span { margin-left: 4px; font-size: 16px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 14px; }
  .game-cover-link { aspect-ratio: 1.35; border-radius: 5px; }
  .game-cover { aspect-ratio: 1.35; }
  .card-play-overlay { bottom: 8px; left: 10px; font-size: 12px; }
  .card-title-row { align-items: start; gap: 2px; margin-top: 7px; }
  .card-title-row h3 { font-size: 16px; line-height: 1.25; letter-spacing: -.55px; }
  .card-title-row h3 a { padding-top: 10px; }
  .save-button { padding-inline: 2px; font-size: 12px; }
  .card-meta { margin-bottom: 7px; font-size: 12px; line-height: 1.45; }
  .card-meta span { margin-inline: 1px; }
  .card-summary { margin-bottom: 12px; font-size: 14px; line-height: 1.45; }
  .card-bottom { gap: 3px 7px; font-size: 12px; line-height: 1.45; }
  .title-art { aspect-ratio: 1.35; padding: 10%; }
  .title-art-name { font-size: 36px; }
  .title-art-caption { margin-top: 9px; font-size: 12px; }
  .title-art-long .title-art-name { font-size: 29px; }
  .viral-guide-link { margin-top: 31px; font-size: 14px; line-height: 1.65; }
  .collection-section { grid-template-columns: 1fr; gap: 13px; margin-top: 43px; padding-top: 28px; }
  .collection-section h2 { margin-bottom: 13px; font-size: 29px; letter-spacing: -.9px; }
  .collection-section > div > p { max-width: 36ch; margin-bottom: 11px; font-size: 15px; }
  .collection-links a { gap: 15px; padding: 20px 0; }
  .collection-links a:first-child { padding-top: 10px; }
  .collection-links strong { font-size: 18px; }
  .collection-links small { font-size: 14px; line-height: 1.55; }
  .home-explainer { grid-template-columns: 1fr; gap: 30px; margin-top: 43px; padding-top: 28px; }
  .home-explainer h2 { max-width: 350px; margin-bottom: 18px; font-size: 30px; letter-spacing: -1.1px; }
  .home-explainer p { font-size: 15px; }
  .explain-main p { max-width: none; margin-bottom: 13px; }
  .explain-notes { gap: 24px; }
  .explain-notes h3 { font-size: 18px; }
  .desktop-break { display: none; }
  .breadcrumbs { gap: 10px; padding-top: 12px; font-size: 12px; }
  .page-intro { padding: 18px 0 28px; }
  .page-intro h1 { font-size: 48px; margin-bottom: 14px; }
  .page-intro p { font-size: 15px; }
  .site-footer { gap: 16px; margin-top: 49px; padding: 27px 0; }
  .site-footer nav { gap: 0 20px; font-size: 13px; }
  .footer-intro p { max-width: 34ch; font-size: 13px; }
  .footer-credit { max-width: 45ch; font-size: 12px; }
  .play-heading { gap: 17px; padding: 18px 0 24px; align-items: start; }
  .play-heading h1 { margin-bottom: 10px; font-size: 43px; }
  .play-heading > .button-secondary { flex-shrink: 0; padding-inline: 12px; font-size: 12px; }
  .play-heading .creator-credit { font-size: 12px; }
  .game-arena { border-radius: 6px; }
  .player-launchpad { min-height: 365px; aspect-ratio: auto; }
  .launchpad-copy { gap: 19px; padding: 25px; }
  .launchpad-copy > p { max-width: 25ch; font-size: 18px; }
  .launchpad-copy .button-primary { min-height: 52px; padding: 13px 22px; font-size: 16px; white-space: normal; }
  .launchpad-copy .play-note { font-size: 13px; }
  .arena-summary { margin: 18px 0 28px; font-size: 15px; }
  .game-detail-hero { grid-template-columns: 1fr; gap: 27px; padding: 19px 0 34px; }
  .detail-art { border-radius: 6px; }
  .detail-art .title-art-name { font-size: 65px; }
  .detail-art .title-art-long .title-art-name { font-size: 49px; }
  .detail-category { margin-bottom: 11px; font-size: 12px; }
  .detail-intro h1 { margin-bottom: 17px; font-size: 49px; }
  .detail-summary { margin-bottom: 17px; font-size: 16px; }
  .creator-credit { margin-bottom: 21px; font-size: 14px; }
  .detail-actions { gap: 11px; }
  .detail-actions .button-primary, .detail-actions .button-secondary { padding: 12px 16px; }
  .detail-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 29px; }
  .detail-prose section { margin-bottom: 33px; }
  .detail-prose h2 { margin-bottom: 16px; font-size: 26px; }
  .detail-prose p { font-size: 16px; }
  .controls-list > div { grid-template-columns: minmax(80px, .32fr) 1fr; gap: 18px; }
  .controls-list dd { font-size: 14px; }
  .game-facts { padding: 23px; }
  .game-facts dl { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .game-facts .fact-wide { grid-column: 1 / -1; }
  .player-toolbar { flex-wrap: wrap; gap: 7px; padding: 9px 12px; }
  .player-toolbar h2 { font-size: 17px; }
  .player-toolbar > div { gap: 0; margin-left: auto; }
  .player-toolbar button { padding-inline: 9px; font-size: 12px; }
  .player-status { padding: 0 13px 12px; font-size: 12px; }
  .related-section { margin-top: 42px; padding-top: 28px; }
  .section-line { gap: 16px; margin-bottom: 23px; }
  .section-line h2 { font-size: 28px; }
  .section-line .inline-link { font-size: 12px; }
  .quickplay-dialog { width: calc(100% - 12px); max-height: 98dvh; border-radius: 7px; }
  .quickplay-toolbar { gap: 12px; padding: 12px; }
  .quickplay-heading p { font-size: 12px; }
  .quickplay-heading h2 { font-size: 19px; letter-spacing: -.6px; }
  .quickplay-tools { gap: 5px; }
  .quickplay-tools button { padding-inline: 10px; font-size: 12px; }
  .quickplay-status { padding: 9px 13px; font-size: 12px; }
  .quickplay-footer { gap: 8px 15px; padding: 12px 14px 15px; }
  .quickplay-footer > a, .quickplay-footer > p { font-size: 13px; }
  .article-page { padding-top: 24px; }
  .article-page > header { margin-bottom: 31px; }
  .article-page h1 { font-size: 48px; }
  .article-eyebrow { margin-bottom: 15px; font-size: 12px; }
  .article-body { font-size: 16px; }
  .article-body h2 { margin-top: 35px; font-size: 28px; }
  .article-body h3 { font-size: 21px; }
  .article-body table { font-size: 14px; }
  .article-body th, .article-body td { padding: 12px; }
  .status-toast { bottom: 16px; padding: 12px 16px; font-size: 13px; }
  .empty-state { padding: 36px 20px; }
  .empty-state h2 { font-size: 25px; }
}

@media (max-width: 479px) {
  .catalog-intro { max-width: 33ch; }
  .card-title-row { flex-wrap: wrap; gap: 0 6px; }
  .card-title-row h3 { flex: 1 1 105px; }
  .card-title-row .save-button { margin-left: auto; }
  .analytics-consent { inset: auto 12px 12px; width: calc(100% - 24px); padding: 19px; }
  .analytics-choices { gap: 8px; }
}

@media (max-width: 359px) {
  .wrap { width: calc(100% - 24px); }
  .site-header { gap: 3px; }
  .brand { gap: 6px; font-size: 12px; }
  .brand-mark { width: 26px; height: 26px; font-size: 16px; }
  .hero-title { font-size: 62px; }
  .hero-selection { grid-template-columns: 77px minmax(0, 1fr); gap: 9px; }
  .hero-selection > img { width: 77px; height: 135px; }
  .selection-copy { gap: 6px; }
  .selection-copy h2 { font-size: 18px; }
  .selection-copy > span { grid-column: 1 / -1; }
  .selection-play { grid-column: 2; grid-row: 2; justify-self: start; }
  .type-filters { gap: 20px; }
  .requirement-filters { gap: 5px; }
  .requirement-filters button, .fixed-filter { padding-inline: 9px; }
  .game-grid { gap: 27px 11px; }
  .quickplay-toolbar { align-items: start; }
  .quickplay-tools { flex-direction: column-reverse; gap: 4px; }
  .quickplay-tools button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .hero-art img, .game-card:hover .game-cover, .game-card:focus-within .game-cover, button:active:not(:disabled) { transform: none; }
}
