:root {
  --page: #060606;
  --band: #0c0c0c;
  --card: #111111;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --ink: #f2f2f2;
  --muted: #a3a3a3;
  --dim: #737373;
  --red: #ff3b3b;
  --radius: 16px;
  --band-w: 980px;
  --head: "Space Grotesk", Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  font-size: 16.5px;
}
a { color: var(--ink); text-decoration-color: var(--dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; }
.band {
  max-width: var(--band-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--band);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.pad { padding: 0 40px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; display: block; border: 1px solid var(--line-2); }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-name span { color: var(--dim); }
.brand-name .beta {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid #ffc24d; color: #ffc24d; font: 700 11px/1.4 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
nav.site { display: flex; gap: 24px; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
.hero { padding: 64px 40px 36px; }
.eyebrow {
  color: var(--red); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 14px 0 16px; }
.hero h1 span { color: var(--dim); }
.hero p { color: var(--muted); max-width: 600px; font-size: 18px; margin: 0; }
.games { display: grid; gap: 24px; padding: 20px 40px 56px; }
.game {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.game-head { display: flex; align-items: center; gap: 18px; }
.icon { width: 76px; height: 76px; border-radius: 20px; overflow: hidden; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }
.game h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.game p { margin: 0; color: var(--muted); max-width: 720px; }
.game ul { margin: 0; padding-left: 20px; color: #d4d4d4; }
.game li { margin: 3px 0; }
.game li::marker { color: var(--red); }
.badge {
  align-self: flex-start;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 14px;
  font-size: 13.5px; color: var(--muted);
}
.badge b { color: var(--red); font-weight: 600; }
.media { display: grid; gap: 12px; }
.media video { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--line-2); background: #000; }
.media .shots { display: grid; gap: 12px; }
.media .shots img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line-2); }
.media.portrait { grid-template-columns: 290px 1fr; align-items: start; }
.media.portrait .shots { grid-template-columns: 1fr 1fr; }
.media.portrait .shots img:first-child { grid-column: span 2; aspect-ratio: 9 / 8; object-fit: cover; object-position: top; }
.media.landscape .shots { grid-template-columns: repeat(3, 1fr); }
.media.landscape .shots img { aspect-ratio: 20 / 9; object-fit: cover; }
section.block { padding: 40px; border-top: 1px solid var(--line); }
section.block h2 { font-size: 26px; margin: 0 0 10px; }
section.block p { color: var(--muted); max-width: 680px; margin: 0 0 12px; }
.doc { max-width: 760px; padding: 48px 40px 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 12px 0 4px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: #cfcfcf; }
.doc .updated { color: var(--dim); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td { color: #cfcfcf; }
.table-scroll { overflow-x: auto; }
.doc.title .shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 18px 0 6px; border-radius: 14px; border: 1px solid var(--line-2); }
.doc.title .btn { margin: 6px 0 10px; }
.doc.title .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 6px; }
.doc.title .gallery.tall { max-width: 440px; }
.doc.title .gallery img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); }
.doc .sub { color: var(--dim); font-size: 14.5px; margin-top: 26px; }
.doc pre.licence { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.doc em.qc { display: block; font-style: normal; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.doc a:not(.btn) { color: var(--ink); }
footer.site {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 24px 40px 32px; color: var(--dim); font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
footer.site a { color: var(--dim); text-decoration: none; margin-left: 18px; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--ink); }
footer.site .fine { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
footer.site .fine a { margin: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); }
footer.site .lang { display: inline-flex; margin-right: 18px; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; vertical-align: middle; font-size: 13px; font-weight: 600; }
footer.site .lang b, footer.site .lang a { margin: 0; padding: 3px 10px; }
footer.site .lang b { background: #f2f2f2; color: #111; }
@media (max-width: 720px) {
  .pad, header.site, .hero, .games, section.block, .doc, footer.site { padding-left: 16px; padding-right: 16px; }
  .band { border: 0; }
  .hero { padding-top: 40px; }
  .game { padding: 20px; }
  .icon { width: 64px; height: 64px; border-radius: 16px; }
  .brand img { width: 44px; height: 44px; }
  nav.site { gap: 18px; }
  .media.portrait { grid-template-columns: 1fr; }
  .media.portrait video { max-width: 300px; margin: 0 auto; }
  .media.landscape .shots { grid-template-columns: 1fr 1fr; }
  .media.landscape .shots img:last-child { display: none; }
}
#sky { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
body:has(> #sky) { padding-bottom: 60px; }
.band { position: relative; background: rgba(12, 12, 12, 0.78); }
.game { background: rgba(17, 17, 17, 0.9); }
body.home, body.app { background: #05060a; }
.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; max-width: 1440px; margin: 0 auto; }
.page header.site {
  position: sticky; top: 0; z-index: 50; border-bottom: 0;
  box-sizing: border-box; min-height: var(--band-h, 52px); padding: 4px 32px; flex-wrap: nowrap;
  background: rgba(5, 6, 10, .9); box-shadow: 0 0 0 100vmax rgba(5, 6, 10, .9); clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.page header.site .brand img { width: 44px; height: 44px; }
.intro { padding: 18px 32px 8px; }
.intro h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; margin: 0 0 8px; }
.intro h1 span { color: var(--dim); }
.intro p { margin: 0; color: var(--muted); max-width: 640px; }
.shelves { padding: 10px 0 56px; }
.shelf { margin-top: 10px; }
.shelfhead { display: flex; align-items: center; gap: 10px; padding: 0 32px; }
.shelfhead h2 { margin: 0; flex: 1; font-size: clamp(20px, 2.2vw, 26px); }
.shelf.recent .shelfhead h2 { color: var(--dim); }
.shelfhead .nav {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; padding: 0 0 3px;
  background: rgba(16, 16, 20, .9); border: 1px solid var(--line-2); color: var(--ink); font: 700 22px/1 Inter, sans-serif;
}
.shelfhead .nav:hover { border-color: #777; }
.shelfhead .nav[hidden] { display: none; }
.shelfrow.dragging { cursor: grabbing; user-select: none; }
@media (hover: hover) { .shelfhead { min-height: 36px; } }
@media (hover: none) { .shelfhead .nav { display: none; } }
.shelfrow {
  display: flex; gap: 32px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 32px; padding: 22px 32px 30px; scrollbar-width: none;
}
.shelfrow::-webkit-scrollbar { display: none; }
.shelfrow.gliding { scroll-snap-type: none; }
@media (hover: hover) { .shelfrow { scroll-snap-type: none; } }
.shelf[hidden], .shelfrow .card[hidden], .shelfrow .shelfend[hidden] { display: none; }
.shelfrow .shelfend { flex: none; height: 1px; }
.shelfrow .card { flex: 0 0 clamp(260px, 26vw, 360px); scroll-snap-align: start; }
@media (orientation: landscape) and (max-height: 520px) {
  .shelfrow .card { flex-basis: 250px; }
  .intro { display: none; }
}
.card {
  --accent: #fff;
  position: relative; display: flex; flex-direction: column;
  background: rgba(16, 16, 20, .94); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .8, .3, 1.2), box-shadow .25s, border-color .25s;
  will-change: transform;
}
.card.on {
  transform: scale(1.06); z-index: 5; border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 38px -4px var(--accent), 0 24px 60px rgba(0, 0, 0, .7);
}
@media (max-width: 720px) { .card.on { transform: scale(1.03); } }
.card .media { position: relative; display: block; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.card .media video, .card .media canvas.live, .card .media img.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card[data-game="spacering"] .media video { object-position: center 35%; }
.card .media.noclip { background: radial-gradient(circle at 50% 40%, #2a3a1e, #0c120a); }
.card .media.noclip video { display: none; }
.card .media.noclip img.icon { position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); border-radius: 22%; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.card.on .media.noclip img.icon { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -54%) rotate(-3deg); } }
.shelf.skel .shelfhead { min-height: 36px; }
.shelf.skel .shelfhead h2 .b { display: inline-block; width: 160px; height: .8em; vertical-align: middle; }
.card.skel { pointer-events: none; }
.card.skel .media { background: #15181d; }
.shelf.skel .b { border-radius: 6px; background: #1e2228; }
.card.skel .b { display: block; height: 12px; margin: 5px 0; }
.card.skel .b.h { height: 20px; width: 62%; margin: 4px 0; }
.card.skel .b.t { width: 44%; margin: 6px 0 4px; }
.card.skel .b.t + .b { margin-top: 13px; }
.card.skel .b.s { width: 58%; }
@media (min-width: 1385px) { .card.skel .b.x { display: none; } }
.shelf.skel .b { animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .shelf.skel .b { animation: none; } }
.loadnote { margin: 40px 32px; color: var(--muted); font-size: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card .ago {
  position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; font-weight: 600; color: #fff;
  backdrop-filter: blur(4px);
}
.card .ago:empty { display: none; }
.card .status, .card .kind {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; font-weight: 600; color: #ddd;
  backdrop-filter: blur(4px);
}
.card .status { left: auto; right: 12px; }
.card .playbtn {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #0b0b0b; font-family: var(--head); font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); opacity: .9; transition: transform .2s, opacity .2s;
}
.card.on .playbtn { opacity: 1; transform: scale(1.08); }
.card a.media { cursor: pointer; }
.card .body { padding: 16px 18px 18px; }
.card h3 { margin: 0; font-size: 24px; line-height: 1.15; font-family: var(--head); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .tag { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.card .body p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.page footer.site { border-top: 0; padding: 20px 32px 48px; }
.panel {
  width: min(680px, calc(100% - 32px)); margin: 24px auto 56px; padding: 28px;
  background: rgba(16, 16, 20, .94); border: 1px solid var(--line-2); border-radius: 18px;
}
.panel h1 { margin: 0 0 4px; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; word-break: break-word; }
.panel h2 { font-size: 19px; margin: 28px 0 10px; }
.panel p { color: var(--muted); margin: 8px 0; }
.panel .sub { color: var(--dim); font-size: 14.5px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: #f2f2f2; color: #111; border: 0; font: 600 15px Inter, sans-serif; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.btn.ghost:hover { color: var(--ink); border-color: #555; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid #5a2020; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.options { display: grid; gap: 10px; margin-top: 12px; }
.option {
  text-align: left; padding: 12px 16px; border-radius: 12px; cursor: pointer; font: 700 18px var(--head);
  background: #17171c; color: var(--ink); border: 1px solid var(--line-2);
}
.option:hover { border-color: #8ce85c; }
.err { color: var(--red) !important; }
.gamerow {
  display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: #141418;
  border: 1px solid var(--line); margin-bottom: 10px;
}
.gamerow .thumb { width: 84px; aspect-ratio: 16 / 10; border-radius: 8px; object-fit: cover; background: #000; flex: none; }
.gamerow .thumb[src*="icon"] { object-fit: contain; background: #1a2014; }
.gamerow .info { min-width: 0; flex: 1; }
.gamerow .info b { display: block; font-family: var(--head); font-size: 17px; }
.gamerow .info span { color: var(--muted); font-size: 13.5px; }
.gamerow .btn { padding: 7px 14px; font-size: 14px; }
.radios { display: grid; gap: 8px; margin: 10px 0; }
.panel .betaplayer, .betaplayer { width: fit-content; margin: -6px 0 14px; padding: 2px 10px; border-radius: 999px; border: 1px solid #2c5a78;
  color: #8fd3ff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.betaplayer[hidden] { display: none; }
.radios label { display: flex; gap: 10px; align-items: center; color: #ddd; cursor: pointer; }
@media (max-width: 720px) {
  .page header.site, .intro, .shelfhead, .page footer.site { padding-left: 16px; padding-right: 16px; }
  .shelfrow { gap: 16px; padding: 16px 16px 22px; scroll-padding: 0 16px; }
  .shelfrow .card { flex-basis: min(78vw, 340px); }
  .card.on { transform: scale(1.03); }
  .brand-name { font-size: 17px; }
  .brand img, .page header.site .brand img { width: 40px; height: 40px; }
  .page header.site { min-height: 0; padding-top: 2px; padding-bottom: 2px; }
  .panel { padding: 20px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 0; }
  .brand-name .beta { margin-left: 0; }
  .page header.site .brand { position: relative; }
  .page header.site .brand-name .beta {
    position: absolute; left: 24px; bottom: -1px; padding: 0 4px; font-size: 8px; line-height: 1.5;
    background: #05060a; letter-spacing: .06em;
  }
}
body.banded nav.site { display: none; }
