@font-face {
  font-family: 'Pixelify Sans';
  src: url('assets/pixelify-sans-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/ibm-plex-sans-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #080b0d; --surface: #0b1116; --text: #deeaef;
  --accent: #acd6e2; --secondary: #a1b7c3; --muted: #8ca6b4; --line: #31434d;
  --body: 'IBM Plex Sans', Arial, sans-serif;
  --heading: 'Pixelify Sans', 'Courier New', monospace;
  font-family: var(--body);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; scrollbar-color: #5d7c8b #0b1116; scrollbar-width: thin; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a, button { transition: color .18s, background .18s, border-color .18s; }
a:hover, button:hover { color: #e0f8ff; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; left: 20px; top: -90px; z-index: 100; background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; }
.skip-link:focus { top: 15px; }
.scanlines { position: fixed; inset: 0; z-index: 10; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, #000a 2px, #000a 3px); opacity: .11; }
body.crt-off .scanlines { display: none; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 100px)); height: 88px; margin: auto; border-bottom: 1px solid #34434c70; }
.small-logo { display: grid; place-items: center; width: 48px; height: 48px; }
.small-logo img { width: 38px; height: 38px; object-fit: contain; }
.topbar nav { display: flex; align-items: center; gap: 32px; }
.topbar nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--secondary); font: 500 17px/1.4 var(--heading); }
.home { position: relative; isolation: isolate; width: min(1400px, 100%); min-height: 714px; margin: auto; padding: 70px max(50px, calc((100% - 1280px)/2)) 200px; overflow: hidden; }
.hero-art { position: absolute; z-index: -2; inset: 25px 0 130px 22%; overflow: hidden; transform: skewY(-3deg); transform-origin: right center; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.64); transform: skewY(3deg) scale(1.07); }
.hero-art:after { position: absolute; content: ''; inset: -30px; background: linear-gradient(90deg, #080b0d 0%, #080b0df0 12%, #080b0d61 40%, #080b0d05 64%, #080b0d38 100%), linear-gradient(0deg, #080b0d 0%, #080b0d00 43%, #080b0d00 65%, #080b0d 100%); transform: skewY(3deg); }
.hero-edge { position: absolute; z-index: -1; inset: 30px 30px 134px 39%; border-top: 1px solid #a9d2dc29; transform: skewY(-3deg); pointer-events: none; }
.masthead { position: relative; max-width: 640px; }
.masthead h1 { display: flex; align-items: center; gap: 0; margin: 0 0 22px; font: 500 clamp(88px, 11vw, 154px)/1 var(--heading); letter-spacing: -.025em; color: #badfeb; text-shadow: 0 0 16px #73b9d333; }
.masthead h1 span { color: #d9f2fa; }
.hero-logo { width: 78px; height: 96px; object-fit: contain; margin-right: 20px; }
.intro { margin: 0 0 10px; font: 500 21px/1.4 var(--heading); color: #c5d8e2; }
.game-names { margin: 0 0 28px; max-width: 44ch; font-size: 14px; line-height: 1.75; color: var(--secondary); }
.main-links { position: relative; max-width: 460px; }
.purchase-links { display: flex; align-items: stretch; gap: 12px; }
.purchase, .info-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 22px; min-height: 48px; padding: 11px 18px; font: 500 18px/1.3 var(--heading); border: 1px solid #8eafbd; white-space: nowrap; }
.purchase { background: var(--accent); color: #0b1820; border-color: var(--accent); }
.purchase:hover { background: #d0ebf3; border-color: #d0ebf3; color: #0b1820; }
.info-link { background: #0b151be8; color: #d2e6ee; }
.info-link:hover { background: #1c313e; border-color: #c8e9f4; }
.discord { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 12px; color: var(--secondary); font: 500 18px/1.4 var(--heading); }
.hero-game-note { position: absolute; right: max(50px, calc((100% - 1280px)/2)); bottom: 190px; display: flex; gap: 24px; color: #c3d8e3; font-size: 13px; }
.hero-game-note > span:last-child { color: var(--muted); }
.games-wrap { position: absolute; left: max(50px, calc((100% - 1280px)/2)); right: max(50px, calc((100% - 1280px)/2)); bottom: 20px; border-top: 1px solid var(--line); }
.games-label { margin: 15px 0 10px; font-size: 13px; color: var(--muted); }
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.game-option { display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 68px; min-width: 0; padding: 0 0 16px; text-align: left; border-bottom: 1px solid #405661; color: var(--secondary); font: 500 18px/1.4 var(--heading); }
.game-option img { width: 64px; height: 42px; object-fit: cover; filter: saturate(.45) brightness(.72); transition: filter .2s; }
.game-check { visibility: hidden; color: var(--accent); }
.game-option[aria-pressed=true] { border-color: #c2e3ef; color: #edf7fb; }
.game-option[aria-pressed=true] .game-check { visibility: visible; }
.game-option[aria-pressed=true] img, .game-option:hover img { filter: saturate(.9) brightness(1); }
.game-option:hover { color: #e3f3fa; }
.showcases { width: min(1120px, calc(100% - 100px)); margin: 58px auto 0; padding-bottom: 90px; }
.showcase-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.showcase-heading h2 { margin: 0; font: 500 42px/1.2 var(--heading); letter-spacing: -.015em; }
.showcase-heading h2 span { color: var(--accent); }
.showcase-heading > span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 30px; }
.video-card { display: block; min-width: 0; padding: 0; text-align: left; }
.video-picture { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #030608; }
.video-picture img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.7); transition: filter .2s, transform .4s; }
.video-card:hover img { filter: brightness(1) saturate(1); transform: scale(1.025); }
.video-title { display: block; margin-top: 14px; color: #d1e0e9; font: 500 20px/1.4 var(--heading); }
.video-author { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
footer { display: flex; align-items: center; gap: 22px; width: min(1280px, calc(100% - 100px)); margin: auto; border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 13px; color: var(--muted); }
.footer-logo { display: grid; place-items: center; width: 44px; height: 44px; }
.footer-logo img { width: 30px; height: 30px; object-fit: contain; }
footer > button { margin-left: auto; min-height: 44px; padding: 8px; color: var(--secondary); font: 500 16px/1.4 var(--heading); }
footer > a:last-child { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
dialog { width: min(1040px, calc(100% - 44px)); max-height: calc(100dvh - 40px); padding: 0; background: var(--surface); color: var(--text); border: 1px solid #45606e; border-radius: 3px; font: 400 16px/1.6 var(--body); overscroll-behavior: contain; }
dialog::backdrop { background: #000d; }
dialog[open] { animation: arrive .18s ease-out; }
.dialog-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-heading h2 { margin: 0; font: 500 28px/1.3 var(--heading); }
.close-dialog { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: #c2d9e4; border: 1px solid transparent; }
.close-dialog:hover { border-color: var(--line); background: #18303e; }
.info-layout { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 28px; padding: 28px; }
.info-tabs { display: flex; flex-direction: column; align-self: start; gap: 7px; padding-right: 16px; border-right: 1px solid var(--line); }
.info-tabs button { min-height: 44px; text-align: left; padding: 10px 12px; color: var(--secondary); font: 500 18px/1.4 var(--heading); border: 1px solid transparent; }
.info-tabs button[aria-selected=true] { color: #ecf8ff; background: #19303d; border-color: #628a9d; }
.info-tabs button:hover { background: #142633; }
.info-panel { min-width: 0; outline-offset: 8px; }
.info-summary h3 { margin: 0 0 10px; font: 500 32px/1.3 var(--heading); }
.info-summary p { margin: 0 0 20px; max-width: 65ch; color: var(--secondary); font-size: 16px; line-height: 1.65; }
.info-summary ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 22px; color: #b0c8d6; font-size: 14px; }
.info-summary li::before { content: '· '; color: #d0e6f0; }
.overview-list { display: flex; flex-direction: column; }
.overview-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 18px; align-items: center; gap: 17px; width: 100%; min-height: 100px; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.overview-row:first-child { border-top: 1px solid var(--line); }
.overview-row img { width: 92px; height: 70px; object-fit: contain; background: #030507; }
.overview-row strong { display: block; margin-bottom: 5px; color: #d9edf7; font: 500 23px/1.3 var(--heading); }
.overview-description { display: block; color: var(--secondary); font-size: 14px; line-height: 1.55; }
.overview-row > .icon { color: var(--accent); }
.overview-row:hover { background: #142633; }
#info-full-image { display: block; border: 1px solid var(--line); background: #020303; text-align: center; }
#info-image { width: 100%; max-height: 510px; object-fit: contain; height: auto; }
#info-full-image > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px; border-top: 1px solid var(--line); color: #a9cadb; font-size: 14px; }
.info-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.info-bottom { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 26px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.info-bottom a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
#video-dialog { width: min(920px, calc(100% - 40px)); }
.video-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-player iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--secondary); font-size: 14px; }
.video-details { padding: 24px; }
.video-details h3 { margin: 0 0 9px; font: 500 24px/1.45 var(--heading); }
.video-details > p { color: var(--secondary); font-size: 14px; margin: 0 0 18px; }
.video-details > a { display: inline-flex; align-items: center; min-height: 44px; color: #b6deef; font-size: 16px; text-decoration: underline; }
.video-details > p.playback-note { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
@keyframes arrive { from { opacity: .75; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1050px) {
  .topbar, footer { width: calc(100% - 64px); }
  .home { padding: 76px 32px 200px; }
  .hero-art { left: 12%; }
  .hero-game-note { right: 32px; }
  .games-wrap { left: 32px; right: 32px; }
  .games { gap: 17px; }
  .game-option { grid-template-columns: 48px minmax(0, 1fr) 16px; gap: 9px; font-size: 17px; }
  .game-option img { width: 48px; height: 36px; }
  .showcases { width: calc(100% - 64px); }
  .video-grid { gap: 32px 24px; }
}
@media (max-width: 700px) {
  .topbar { width: calc(100% - 40px); height: 76px; }
  .topbar nav { gap: 22px; }
  .topbar nav a { gap: 7px; font-size: 17px; }
  .small-logo img { width: 34px; height: 34px; }
  .home { min-height: 816px; padding: 48px 24px 260px; }
  .hero-art { top: 184px; bottom: 200px; left: 0; right: -30px; transform: skewY(-5deg); }
  .hero-art img { transform: skewY(5deg) scale(1.1); filter: saturate(.7) brightness(.55); object-position: 60% center; }
  .hero-art::after { background: linear-gradient(0deg, #080b0d 2%, transparent 50%, #080b0d15 65%, #080b0d 99%), linear-gradient(90deg, #080b0dcc, #080b0d00 85%); transform: skewY(5deg); }
  .hero-edge { left: 55%; right: 20px; top: 190px; bottom: 200px; transform: skewY(-5deg); }
  .masthead h1 { font-size: clamp(64px, 21vw, 96px); margin-bottom: 22px; }
  .hero-logo { width: 54px; height: 76px; margin-right: 15px; }
  .intro { font-size: 21px; margin-bottom: 10px; }
  .game-names { font-size: 14px; max-width: 30ch; margin-bottom: 27px; }
  .purchase-links { gap: 10px; }
  .purchase, .info-link { font-size: 16px; gap: 8px; padding: 11px 10px; min-height: 48px; }
  .purchase { flex-shrink: 0; }
  .info-link { flex: 1; min-width: 0; white-space: normal; }
  .discord { font-size: 18px; }
  .hero-game-note { right: 24px; left: 24px; bottom: 242px; justify-content: space-between; gap: 15px; font-size: 13px; }
  .games-wrap { left: 24px; right: 24px; bottom: 20px; }
  .games-label { margin: 16px 0 11px; font-size: 13px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
  .game-option { grid-template-columns: 44px minmax(0, 1fr) 16px; min-height: 68px; padding-bottom: 13px; font-size: 17px; gap: 8px; }
  .game-option img { width: 44px; height: 34px; }
  .showcases { width: calc(100% - 48px); margin-top: 44px; padding-bottom: 64px; }
  .showcase-heading { margin-bottom: 26px; }
  .showcase-heading h2 { font-size: 36px; }
  .showcase-heading > span { font-size: 13px; }
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
  .video-title { font-size: 21px; }
  .video-author { font-size: 14px; }
  footer { width: calc(100% - 48px); gap: 15px; padding: 20px 0 24px; font-size: 12px; flex-wrap: wrap; }
  footer > button { font-size: 16px; }
  footer > a:last-child { font-size: 13px; }
  dialog, #video-dialog { max-height: calc(100dvh - 24px); width: calc(100% - 24px); }
  .dialog-heading { gap: 12px; padding: 12px 16px; }
  .dialog-heading h2 { font-size: 25px; }
  .info-layout { display: block; padding: 20px 16px; }
  .info-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 0 22px; margin-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .info-tabs button { padding: 10px 5px; text-align: center; min-height: 44px; font-size: 17px; }
  .info-summary h3 { font-size: 30px; }
  .info-summary p { font-size: 16px; }
  .info-summary ul { font-size: 14px; gap: 8px 14px; }
  .overview-row { grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 12px; padding: 15px 0; }
  .overview-row img { width: 58px; height: 58px; }
  .overview-row strong { font-size: 22px; }
  .overview-description { font-size: 14px; }
  .info-bottom { padding: 10px 16px; gap: 23px; font-size: 14px; }
  .info-note { font-size: 13px; }
  .video-details { padding: 20px; }
  .video-details h3 { font-size: 22px; }
}
@media (max-width: 360px) {
  .home { min-height: 880px; }
  .purchase-links { flex-direction: column; }
  .home { padding-inline: 20px; }
  .games-wrap, .hero-game-note { left: 20px; right: 20px; }
  .purchase, .info-link { padding-inline: 10px; gap: 10px; font-size: 16px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 16px; }
  .hero-logo { width: 44px; margin-right: 12px; }
  .games { gap: 15px 14px; }
  .game-option { grid-template-columns: 36px minmax(0, 1fr) 14px; gap: 7px; }
  .game-option img { width: 36px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
