/* Anton Retro project sites: one look for every decomp / port / revival page.
   Taken from antonretro.com: Poppins (900 for headings), near-black page, #0d0d0d top bar,
   Anton Retro red #e60012, small red uppercase eyebrows over big uppercase headings,
   dark glass panels with a 10% white border, red pill buttons, black gradient footer. */
:root {
  --red: #e60012;
  --red-d: #b3000e;
  --accent: var(--red);            /* a game's config can change this (theme.accent) */
  --bg: #121212;
  --bar: #0d0d0d;
  --panel: rgba(31, 31, 31, .72);
  --panel-solid: #161616;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --text: #fff;
  --text-2: #d1d5db;
  --text-3: rgba(255, 255, 255, .5);
  --ok: #22c55e;
  --hw: #38bdf8;
  --warn: #f59e0b;
  --bad: #ef4444;
  --muted: #9ca3af;
  --r: 16px;
  --font: Poppins, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --nav-h: 70px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); overflow-x: hidden;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
img { max-width: 100%; }
a { color: inherit; }
code { font: 500 .88em var(--mono); background: rgba(255, 255, 255, .08); padding: .1em .35em; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- top bar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px); background: var(--bar); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 16px; max-width: none; padding: 0 16px; }
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; height: 100%; flex: none; }
.nav .brand img { width: 48px; height: 48px; transition: transform .3s; }
.nav .brand:hover img { transform: rotate(12deg); }
.nav .brand span { font-weight: 900; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.nav .brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--text-3); line-height: 1.2; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: block; padding: 8px 11px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: rgba(255, 255, 255, .75); border-radius: 999px; white-space: nowrap; transition: color .2s; }
.nav ul a:hover, .nav ul a.on { color: var(--accent); }
.nav .menu { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; cursor: pointer; }
.nav .progress { position: absolute; left: 0; top: 100%; height: 4px; width: 0; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); border-radius: 0 4px 4px 0; transition: width .2s; }
@media (max-width: 1080px) {
  .nav .menu { display: grid; place-items: center; }
  .nav ul { display: none; position: absolute; top: 100%; right: 12px; flex-direction: column; min-width: 220px; padding: 8px;
    background: rgba(0, 0, 0, .95); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 12px; }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 11px 14px; font-size: 14px; }
}
@media (max-width: 420px) { .nav .brand span { font-size: 15px; letter-spacing: .08em; } .nav .brand img { width: 42px; height: 42px; } }

/* ---------- hero: red band with a dark wave, like the antonretro.com front page ---------- */
.hero { position: relative; background: var(--accent); overflow: hidden; padding: 56px 0 170px; }
.hero > .ar-bg { position: absolute; top: 50%; left: 50%; width: 600%; height: 600%; opacity: .35; pointer-events: none;
  background: url("https://www.antonretro.com/assets/images/Anton_Retro_Background_Graphics.webp") repeat; background-size: 1000px;
  transform: translate(-50%, -50%) rotate(-30deg); animation: ar-bg-scroll 180s linear infinite; will-change: background-position; }
.hero > .ar-grad { position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background: url("https://www.antonretro.com/assets/images/Anton-Retro-gradent.webp") center / cover no-repeat; }
.hero > .ar-dark { position: absolute; inset: 0; background: rgba(0, 0, 0, .1); pointer-events: none; }
.hero > .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; overflow: hidden; pointer-events: none; transform: translateY(1px); z-index: 1; }
.hero > .waves svg { display: block; width: 100%; height: 100%; }
.hero .wv { animation: ar-wave-move linear infinite; }
@keyframes ar-bg-scroll { from { background-position: 0 0; } to { background-position: 1200px 1200px; } }
@keyframes ar-wave-move { from { transform: translate(0); } to { transform: translate(-176px); } }
@media (max-width: 1024px) { .hero > .waves { height: 150px; } }
@media (max-width: 768px) { .hero > .waves { height: 120px; } }
@media (prefers-reduced-motion: reduce) { .hero > .ar-bg, .hero .wv { animation: none; } }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { margin: 6px 0 4px; font-size: clamp(40px, 7vw, 76px); font-weight: 900; line-height: .98; letter-spacing: -.025em;
  text-transform: uppercase; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.hero .sub { font-size: clamp(15px, 2vw, 18px); font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .9); text-transform: uppercase; }
.hero p.lead { font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .92); margin: 18px 0 24px; max-width: 34em; }
.hero .shot { justify-self: center; width: min(100%, 520px); background: #000; border-radius: 20px; padding: 10px;
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .6); transform: rotate(1.2deg); }
.hero .shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hero .shot figcaption { font-size: 12px; color: var(--text-3); text-align: center; padding: 8px 4px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .18); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 36px 0 120px; } .hero .shot { transform: none; } }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: #fff; font: 700 12.8px var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 4px 15px rgba(230, 0, 18, .3); cursor: pointer; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--red-d); border-color: var(--red-d); }
.btn.ghost { background: transparent; color: #fff; border-color: var(--red); box-shadow: none; }
.btn.ghost:hover { background: rgba(230, 0, 18, .15); }
.hero .btn { background: #fff; color: var(--red); border-color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.hero .btn:hover { background: #f3f3f3; }
.hero .btn.ghost { background: rgba(0, 0, 0, .2); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- sections ---------- */
section.block { padding: 40px 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.eyebrow { display: block; font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.shead { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.shead h2 { margin: 4px 0 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.05; }
.shead p { margin: 6px 0 0; color: var(--text-2); max-width: 44em; font-weight: 500; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); }
.pad { padding: 22px 24px; }
.panel h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.panel p { color: var(--text-2); margin: 0 0 10px; font-weight: 400; }
.panel p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: 1fr; } .pad { padding: 18px; } }

/* ---------- progress ---------- */
.headline { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px 30px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(230, 0, 18, .16), rgba(31, 31, 31, .72) 55%); }
.headline .big { font-size: clamp(64px, 11vw, 120px); font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.headline .big small { font-size: .42em; letter-spacing: 0; }
.headline h3 { font-size: 22px; text-transform: uppercase; }
@media (max-width: 680px) { .headline { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; } }
.bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 12px 0 8px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 0 12px var(--accent);
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar.big { height: 18px; }
.bar i.ok { background: var(--ok); box-shadow: 0 0 12px rgba(34, 197, 94, .6); }
.meter .top { display: flex; align-items: baseline; gap: 10px; }
.meter .top h3 { margin: 0; font-size: 15px; }
.meter .pct { margin-left: auto; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.meter p { font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 10px; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.next { margin: 0; padding-left: 20px; color: var(--text-2); }
.next li { margin: 4px 0; }

/* function map: one cell per function, width by size */
.fmap { display: flex; flex-wrap: wrap; gap: 3px; margin: 14px 0 12px; }
.fmap i { display: block; height: 22px; min-width: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.fmap i.c { background: var(--ok); }
.fmap i.asmsrc { background: var(--warn); }
.fmap i:hover { outline: 2px solid #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.legend b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* milestones (optional) */
.ms details { border-top: 1px solid var(--line); padding: 12px 0; }
.ms details:first-of-type { border-top: 0; }
.ms summary { cursor: pointer; display: flex; gap: 12px; align-items: center; font-weight: 700; list-style: none; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary .pct { margin-left: auto; font-weight: 900; }
.ms ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.ms ul.miss li::marker { color: var(--bad); }
.ms ul.done li::marker { color: var(--ok); }

/* ---------- platforms ---------- */
.plat { display: flex; flex-direction: column; gap: 10px; }
.plat .top { display: flex; align-items: center; gap: 12px; }
.plat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.plat h3 { margin: 0; }
.plat .where { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; }
.plat p { font-size: 14.5px; }
.s-hardware { color: var(--hw); } .s-works { color: var(--ok); } .s-emulator { color: #a3e635; }
.s-progress { color: var(--warn); } .s-broken { color: var(--bad); } .s-untested { color: var(--muted); } .s-planned { color: var(--text-3); }
.plat.s-hardware-card { border-color: rgba(56, 189, 248, .35); }
.keyrow { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 14px; background: #000; border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s, border-color .2s; }
.gallery figure:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pixel img, img.pixel { image-rendering: pixelated; }
.gallery figcaption { padding: 10px 12px; font-size: 13px; color: var(--text-2); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .gallery figcaption { padding: 8px 9px; font-size: 11.5px; } }
.gallery figcaption b { display: block; color: #fff; font-size: 13.5px; }
dialog.lb { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1100px); }
dialog.lb::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(4px); }
dialog.lb img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; background: #000; }
dialog.lb p { text-align: center; color: var(--text-2); margin: 10px 0 0; }
dialog.lb button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font-size: 18px; cursor: pointer; }

/* ---------- trivia ---------- */
.trivia { columns: 2 380px; column-gap: 16px; }
.trivia .panel { break-inside: avoid; margin-bottom: 16px; display: block; }
.tag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; background: rgba(255, 255, 255, .08); color: var(--text-2); }
.tag.cut { background: rgba(230, 0, 18, .2); color: #ff8a93; }
.tag.hidden { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.tag.tech { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.md.clamp:not(.open) { max-height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--accent); font: 800 12px var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.md { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.md p, .md ul, .md ol { margin: 0 0 10px; }
.md :last-child { margin-bottom: 0; }
.md ul, .md ol { padding-left: 20px; }
.md li { margin: 3px 0; }
.md strong { color: #fff; }
.md a { color: #ff6b75; }
.md table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 12px; display: block; overflow-x: auto; }
.md th, .md td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md th { color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.md pre { background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font: 13px/1.5 var(--mono); }
.md pre code { background: none; padding: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.md blockquote { margin: 0 0 12px; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); }

/* ---------- downloads / legal ---------- */
.dl { display: flex; align-items: center; gap: 14px; }
.dl .ico { font-size: 22px; width: 44px; text-align: center; color: var(--accent); }
.dl h3 { margin: 0; font-size: 16px; }
.dl p { margin: 0; font-size: 13.5px; }
.dl .btn { margin-left: auto; flex: none; }
@media (max-width: 520px) { .dl { flex-wrap: wrap; } .dl .btn { margin-left: 58px; } }
.legal { border-color: rgba(230, 0, 18, .45); background: linear-gradient(135deg, rgba(230, 0, 18, .12), rgba(31, 31, 31, .72) 60%); }
.legal .big { display: flex; gap: 14px; align-items: flex-start; }
.legal .big i { font-size: 28px; color: var(--accent); margin-top: 4px; }
.legal h3 { font-size: 22px; text-transform: uppercase; }
.md table { overflow-wrap: normal; }
.md table.discs { display: table; }
.discs td:first-child { min-width: 150px; }
.hash { font: 500 12px var(--mono); color: var(--text-3); word-break: break-all; }

/* ---------- article (long read) ---------- */
.article { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 40px 0 60px; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; font-size: 13.5px; }
.toc a { display: block; padding: 5px 10px; color: var(--text-2); text-decoration: none; border-left: 2px solid var(--line); }
.toc a.l3 { padding-left: 22px; font-size: 12.5px; color: var(--text-3); }
.toc a:hover { color: #fff; border-left-color: var(--accent); }
.article .md { font-size: 16.5px; line-height: 1.75; max-width: 46em; }
.article .md h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: #fff; margin: 0 0 20px; text-transform: uppercase; }
.article .md h2 { font-size: 26px; font-weight: 900; color: #fff; margin: 46px 0 12px; scroll-margin-top: calc(var(--nav-h) + 16px); text-transform: uppercase; letter-spacing: -.01em; }
.article .md h3 { font-size: 19px; font-weight: 800; color: #fff; margin: 30px 0 8px; scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }

/* ---------- project list (index) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.pcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }
.pcard .pad { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .bar { margin: 4px 0 0; }

/* ---------- footer ---------- */
footer.foot { margin-top: 40px; background: linear-gradient(rgba(0, 0, 0, .8), #000); border-top: 1px solid var(--line);
  padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.foot .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .08em; font-size: 17px; margin-bottom: 12px; }
.foot .brand img { width: 30px; height: 30px; }
.foot p { color: var(--text-3); font-size: 14px; margin: 0 0 16px; }
.foot h4 { margin: 4px 0 12px; font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul a { display: block; padding: 4px 0; color: var(--text-2); text-decoration: none; font-size: 14px; }
.foot ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; text-decoration: none; transition: transform .2s, background .2s; }
.socials a:hover { transform: translateY(-3px); background: var(--red); }
.foot .base { border-top: 1px solid var(--line); padding-top: 22px; font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; gap: 26px; } }

.err { padding: 80px 0; text-align: center; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.hero.center .wrap { text-align: center; }
.hero.center p.lead { margin-left: auto; margin-right: auto; }
.hero.center h1 { display: inline-flex; align-items: center; gap: .25em; }

/* ---------- the Lab hub (index.html): one category at a time ---------- */
.hub { padding-top: 0; }
.switch { position: sticky; top: calc(var(--nav-h) + 6px); z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px;
  background: rgba(13, 13, 13, .92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; margin: -60px 0 26px; }
.switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: rgba(255, 255, 255, .75); font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.switch button .n { font-size: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.switch button:hover { color: #fff; }
.switch button[aria-selected="true"] { background: var(--red); color: #fff; box-shadow: 0 4px 15px rgba(230, 0, 18, .35); }
.switch button[aria-selected="true"] .n { background: rgba(0, 0, 0, .25); }
.switch .out { margin-left: auto; padding: 9px 16px; }
.picker { display: none; }
@media (max-width: 860px) {
  .switch { display: none; }
  .picker { display: block; position: sticky; top: calc(var(--nav-h) + 6px); z-index: 20; margin: -40px 0 22px; }
  .picker label { display: block; font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 6px 4px; }
  .picker select { width: 100%; appearance: none; padding: 14px 44px 14px 18px; border-radius: 14px; border: 1px solid var(--line-2);
    background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #fff; font: 800 15px var(--font); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
}
.cat { margin-bottom: 40px; }
.cathead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cathead > i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(230, 0, 18, .15); color: var(--red); flex: none; }
.cathead h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
.cathead p { margin: 2px 0 0; color: var(--text-2); }
.pcard h3 { font-size: 19px; text-transform: uppercase; margin: 0; }
.pcard p { font-size: 14px; }
.pcard .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a0a0e, #111); display: grid; place-items: center; font-size: 40px; color: rgba(255, 255, 255, .18); }
.pcard .pline { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.pcard .bar { margin: 6px 0 4px; }
.pcard .bar i { transition: none; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard .plats { display: flex; gap: 8px; color: var(--text-3); font-size: 15px; margin-left: auto; }
.pcard .go { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pcard[aria-disabled="true"] { cursor: default; }
.pcard[aria-disabled="true"]:hover { transform: none; border-color: var(--line); }
.pcard[aria-disabled="true"] .go { color: var(--text-3); }
.mygames { display: flex; align-items: center; gap: 18px; text-decoration: none; border-style: dashed; margin-top: 10px; }
.mygames > i { font-size: 30px; color: var(--red); }
.mygames p { margin: 2px 0 0; }
.mygames .btn { margin-left: auto; flex: none; }
@media (max-width: 560px) { .mygames { flex-wrap: wrap; } .mygames .btn { margin-left: 48px; } }
.pcard .kinds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: -2px; }
.pcard .kinds span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--text-2); }
