:root {
  color-scheme: light;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #fff;
  --subtle: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e8;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 10px; background: #fff; }
.skip:focus { top: 10px; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100% - 1280px)/2)); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { display: block; width: 136px; height: auto; object-fit: contain; }
.brand span { font-size: 13px; padding-left: 16px; border-left: 1px solid #d5d5d9; color: var(--muted); }
.nav nav { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.nav a:hover, .text-link:hover { color: #000; }
.nav-download { padding: 10px 16px; border: 1px solid #d5d5d9; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.nav-download span { margin-left: 12px; }
.hero { width: min(1400px, 100%); margin: auto; }
.hero-copy { width: min(1280px, calc(100% - 48px)); margin: auto; padding: 48px 0 36px; display: flex; gap: 20px; align-items: center; }
.portal-mark { object-fit: contain; flex-shrink: 0; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; margin: 0 0 7px; }
h1 { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 650; }
.lede { margin: 10px 0 0; font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; padding: 13px 20px; min-height: 46px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 600; transition: background .2s, transform .2s; white-space: nowrap; }
.primary { background: var(--ink); color: #fff; }
.primary:hover { background: #333336; transform: translateY(-2px); }
.text-link { font-size: 12px; white-space: nowrap; padding: 10px 0; }
.hero-art { display: block; width: 100%; height: auto; max-height: 540px; aspect-ratio: 16/9; object-fit: contain; background: var(--subtle); animation: none; }
.section { width: min(1280px, calc(100% - 48px)); margin: 56px auto; }
h2 { font-size: 28px; line-height: 1.2; margin: 0; font-weight: 600; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.search input { width: 220px; min-height: 42px; padding: 10px 14px; background: var(--subtle); color: var(--ink); border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 22px; scrollbar-width: thin; }
.filters button { min-height: 36px; padding: 8px 14px; background: none; color: var(--muted); border: 0; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.filters button[aria-pressed=true] { background: var(--ink); color: #fff; }
.game-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.game { display: block; min-width: 0; width: 100%; text-align: left; padding: 0; border: 0; background: none; color: var(--ink); }
.game img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; background: var(--subtle); transition: transform .2s; }
.game:hover img { transform: translateY(-4px); }
.game strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.4; margin-top: 12px; }
.game span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.fine-print { font-size: 10px; color: var(--muted); margin: 20px 0 0; }
.gallery { border-top: 1px solid var(--line); padding-top: 40px; }
.section-heading { margin-bottom: 24px; }
.actual-captures { display: flex; flex-direction: column; gap: 20px; }
.capture-tabs { display: flex; overflow-x: auto; gap: 24px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.capture-tabs button { padding: 10px 0; min-height: 44px; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.capture-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.actual-captures figure { margin: 0; min-width: 0; }
.capture-stage { padding: 20px; background: var(--subtle); border-radius: 6px; }
.capture-stage a { height: min(540px, calc(56.25vw - 48px)); display: flex; align-items: center; justify-content: center; }
.capture-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.actual-captures figcaption { font-size: 11px; color: var(--muted); margin-top: 14px; }
.actual-captures figcaption strong { display: block; font-size: 13px; color: var(--ink); font-weight: 500; }
.actual-captures figcaption span { display: block; margin-top: 4px; }
.capture-stage figcaption { min-height: 52px; }
.promo-clip { margin-top: 24px !important; }
.promo-clip h2 { margin: 12px 0 24px; }
.promo-clip video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; border-radius: 6px; background: #111; }
.teaser-preview { border-bottom: 1px solid var(--line); padding: 0 0 18px; }
.teaser-preview summary { min-height: 44px; padding: 10px 0; font-size: 12px; color: var(--muted); }
.teaser-preview .promo-clip { margin-top: 12px !important; }
.download-section { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px max(24px, calc((100% - 1280px)/2)); background: var(--subtle); }
.download-title { display: flex; align-items: center; gap: 20px; }
.download-title p { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.download-actions { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.download-actions>span, .download-actions>a:not(.button) { font-size: 10px; color: var(--muted); }
.download-actions>a:not(.button) { text-decoration: underline; }
.integrity { margin-top: 20px; margin-bottom: 28px; font-size: 11px; color: var(--muted); }
.integrity summary { min-height: 44px; padding: 10px 0; }
.integrity code { overflow-wrap: anywhere; }
.integrity p { max-width: 760px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px max(24px, calc((100% - 1280px)/2)); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
dialog { width: min(470px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
dialog::backdrop { background: #0008; }
dialog p { font-size: 14px; color: var(--muted); }
dialog form { display: inline-block; margin-left: 12px; }
.text-button { min-height: 44px; font-size: 12px; padding: 8px; background: none; border: 0; text-decoration: underline; }
.video-player { overflow: hidden; border-radius: 6px; background: #111; color: #fff; }
.video-player video { border-radius: 0; cursor: pointer; }
.player-controls { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #18191b; }
.player-controls button { position: relative; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: #fff; }
.player-controls button:hover { background: #343538; }
.player-controls button:disabled { opacity: .35; cursor: default; }
.player-controls button small { position: absolute; font-size: 8px; line-height: 1; top: 14px; left: 12px; }
.player-controls img { display: block; }
.player-controls input { accent-color: #fff; cursor: pointer; min-width: 0; }
.player-controls input:disabled { cursor: default; }
.player-seek { flex: 1; width: 100%; height: 24px; margin: 0 6px; }
.player-time { flex-shrink: 0; min-width: 80px; font-size: 11px; font-variant-numeric: tabular-nums; color: #eee; text-align: center; }
.player-volume { flex: 0 0 64px; width: 64px; }
.player-status { margin: 0; padding: 10px 16px; color: #fff; font-size: 12px; }
.player-direct { display: block; width: max-content; margin: 0 16px 10px auto; color: #b9bbc1; text-decoration: underline; font-size: 10px; }
.video-player:focus-visible, .player-controls :focus-visible { outline-color: #fff; outline-offset: -3px; }
.video-player:fullscreen { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: #000; }
.video-player:fullscreen video { max-height: calc(100svh - 100px); }
.intro-replay { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: none; }
.intro-replay img { filter: invert(1); }
.entry-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; overflow: hidden; }
.entry-dialog::backdrop { background: #fff; }
.entry-world { position: absolute; inset: 0; display: block; overflow: hidden; background: #f5f5f7; }
.entry-game { position: absolute; width: 160px; height: 240px; object-fit: cover; border-radius: 6px; }
.entry-game-one { left: 8%; top: 12%; --x: -180px; --y: -80px; --angle: -12deg; }
.entry-game-two { right: 8%; top: 9%; --x: 180px; --y: -100px; --angle: 12deg; }
.entry-game-three { left: 19%; bottom: 5%; --x: -120px; --y: 150px; --angle: 8deg; }
.entry-game-four { right: 18%; bottom: 3%; --x: 140px; --y: 150px; --angle: -8deg; }
.entry-door { position: absolute; top: 0; bottom: 0; width: 50%; background: #fff; }
.entry-door-left { left: 0; border-right: 1px solid #e5e5e8; }
.entry-door-right { right: 0; border-left: 1px solid #e5e5e8; }
.entry-brand { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; }
.entry-brand img { width: 128px; height: 128px; object-fit: contain; }
.entry-brand h2 { font-size: 32px; margin: 0; }
.entry-skip { position: absolute; top: 24px; right: 28px; min-height: 44px; padding: 10px 16px; border: 1px solid #d5d5d9; border-radius: 6px; background: #fff; color: #1d1d1f; font-size: 12px; }
.is-opening .entry-door-left { animation: open-left 2.4s cubic-bezier(.22,.65,.23,1) both; }
.is-opening .entry-door-right { animation: open-right 2.4s cubic-bezier(.22,.65,.23,1) both; }
.is-opening .entry-brand { animation: portal-enter 2.4s cubic-bezier(.22,.65,.23,1) both; }
.is-opening .entry-game { animation: world-pass 2.4s cubic-bezier(.22,.65,.23,1) both; }
.is-opening .entry-world { animation: world-fade 2.4s ease both; }
.scroll-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
@keyframes open-left { 0%,20% { transform: translateX(0); } 75%,100% { transform: translateX(-105%); } }
@keyframes open-right { 0%,20% { transform: translateX(0); } 75%,100% { transform: translateX(105%); } }
@keyframes portal-enter { 0% { opacity: 0; transform: scale(.86); } 16%,48% { opacity: 1; transform: scale(1); } 82%,100% { opacity: 0; transform: scale(1.8); } }
@keyframes world-pass { 0%,20% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.7); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(var(--angle)) scale(1.35); } }
@keyframes world-fade { 0%,65% { opacity: 1; } 100% { opacity: 0; } }
@media(max-width:1100px) {
  h1 { font-size: 38px; }
  .hero-actions { flex-direction: column; gap: 8px; align-items: start; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
}
@media(max-width:700px) {
  .player-controls { flex-wrap: wrap; padding: 8px; gap: 4px; }
  .player-seek { order: -1; flex: 1 0 calc(100% - 12px); margin: 0 6px 4px; }
  .player-controls button { flex-basis: 32px; width: 32px; height: 32px; padding: 6px; }
  .player-controls button small { top: 12px; left: 10px; }
  .player-volume { display: none; }
  .player-time { margin-right: auto; min-width: 72px; font-size: 10px; }
  .entry-game { width: 96px; height: 144px; }
  .entry-game-one { left: 8%; top: 12%; --x: -45px; --y: -30px; }
  .entry-game-two { right: 8%; top: 9%; --x: 45px; --y: -30px; }
  .entry-game-three { left: 10%; bottom: 8%; --x: -45px; --y: 35px; }
  .entry-game-four { right: 8%; bottom: 6%; --x: 45px; --y: 35px; }
  .entry-brand img { width: 96px; height: 96px; }
  .entry-brand h2 { font-size: 26px; }
  .nav { height: 68px; padding: 0 20px; gap: 12px; }
  .nav nav { display: none; }
  .brand { gap: 10px; }
  .brand img { width: 106px; }
  .brand span { font-size: 11px; padding-left: 10px; }
  .nav-download { font-size: 11px; padding: 9px 12px; }
  .nav-download span { margin-left: 6px; }
  .hero-copy { width: calc(100% - 40px); padding: 32px 0 24px; gap: 14px; flex-wrap: wrap; }
  .hero-copy>.portal-mark { width: 44px; height: 44px; }
  h1 { font-size: 30px; }
  .eyebrow { font-size: 9px; margin-bottom: 6px; }
  .lede { font-size: 14px; margin-top: 8px; }
  .hero-actions { width: 100%; margin: 10px 0 0; flex-direction: row; align-items: center; gap: 20px; }
  .button { font-size: 11px; padding: 12px 16px; gap: 16px; }
  .text-link { font-size: 11px; }
  .hero-art { max-height: none; }
  .section { width: calc(100% - 40px); margin: 36px auto; }
  h2 { font-size: 24px; }
  .library-heading { display: block; margin-bottom: 14px; }
  .search input { width: 100%; margin-top: 18px; }
  .game-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 128px; gap: 14px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: thin; }
  .game strong { font-size: 11px; }
  .filters { margin-bottom: 16px; }
  .gallery { padding-top: 28px; }
  .capture-stage { padding: 12px; }
  .capture-stage figcaption { min-height: 72px; }
  .actual-captures figcaption strong { font-size: 12px; }
  .actual-captures figcaption { font-size: 10px; }
  .promo-clip { margin-top: 14px !important; }
  .download-section { padding: 28px 20px; align-items: start; flex-direction: column; gap: 24px; }
  .download-title { gap: 14px; }
  .download-title .portal-mark { width: 44px; height: 44px; }
  footer { padding: 24px 20px; flex-wrap: wrap; gap: 16px; }
  footer .brand { width: 100%; }
}
@media(max-width:370px) { h1 { font-size: 26px; } .hero-copy>.portal-mark { width: 36px; height: 36px; } .hero-copy { gap: 10px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .scroll-reveal { opacity: 1; transform: none; } .intro-replay { display: none; } }
