/* SeifGames — neon arcade theme */

:root {
  --bg: #07040f;
  --bg-2: #0c0719;
  --surface: #110a24;
  --surface-2: #170f30;
  --surface-3: #21173f;
  --line: rgba(170, 140, 255, .14);
  --line-2: rgba(170, 140, 255, .26);
  --text: #f4efff;
  --muted: #a99dcc;
  --faint: #6d6290;
  --pink: #ff2e97;
  --pink-2: #ff6ec4;
  --cyan: #19f0ff;
  --purple: #9b5cff;
  --yellow: #ffe14d;
  --glow-pink: 0 0 6px rgba(255, 46, 151, .9), 0 0 18px rgba(255, 46, 151, .55), 0 0 42px rgba(255, 46, 151, .3);
  --glow-cyan: 0 0 6px rgba(25, 240, 255, .9), 0 0 18px rgba(25, 240, 255, .5), 0 0 42px rgba(25, 240, 255, .25);
  --text-glow-pink: 0 0 4px rgba(255, 46, 151, .9), 0 0 14px rgba(255, 46, 151, .7), 0 0 30px rgba(255, 46, 151, .45);
  --text-glow-cyan: 0 0 4px rgba(25, 240, 255, .9), 0 0 14px rgba(25, 240, 255, .6), 0 0 30px rgba(25, 240, 255, .35);
  --r: 12px;
  --r-lg: 20px;
  --font-display: "Orbitron", "Audiowide", ui-sans-serif, system-ui, sans-serif;
  --font-logo: "Audiowide", "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "VT323", ui-monospace, Consolas, monospace;
  --container: 1320px;
  --gutter: 28px;
  --header-h: 70px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15.5px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(155, 92, 255, .16), transparent 60%),
    radial-gradient(900px 520px at -10% 10%, rgba(255, 46, 151, .10), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(25, 240, 255, .07), transparent 60%);
}
/* faint CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px);
  transform: translateZ(0); /* its own layer: drawn once (a blend mode here made the browser re-blend the page every frame) */
}
.site-header, main, .site-footer, .nav { position: relative; z-index: 1; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.i { flex: none; display: inline-block; }
[data-icon] { display: inline-block; width: 20px; height: 20px; flex: none; }
kbd {
  font: 400 15px/1 var(--font-pixel);
  padding: 2px 6px 3px;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--cyan);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.neon-pink { color: var(--pink-2); text-shadow: var(--text-glow-pink); }
.neon-cyan { color: var(--cyan); text-shadow: var(--text-glow-cyan); }
.pixel { font-family: var(--font-pixel); letter-spacing: .04em; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 3px rgba(25, 240, 255, .9)) drop-shadow(0 0 10px rgba(255, 46, 151, .55)); transition: transform .35s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-word { font: 400 21px/1 var(--font-logo); letter-spacing: .04em; white-space: nowrap; }
.logo-word .lw-1 { color: #ffd6ec; text-shadow: var(--text-glow-pink); }
.logo-word .lw-2 { color: #d6fcff; text-shadow: var(--text-glow-cyan); animation: flicker 7s infinite; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 5, 20, .94); /* solid instead of a live background blur, which was costly while scrolling */
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink) 20%, var(--purple) 50%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 10px rgba(255, 46, 151, .6), 0 0 18px rgba(25, 240, 255, .35);
  opacity: .85;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 30px; }
.nav { display: flex; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px;
  font: 600 13px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid transparent;
  transition: color .2s, border-color .2s, box-shadow .2s, text-shadow .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--cyan); border-color: rgba(25, 240, 255, .55); box-shadow: inset 0 0 12px rgba(25, 240, 255, .18), 0 0 12px rgba(25, 240, 255, .25); text-shadow: 0 0 8px rgba(25, 240, 255, .7); }
.nav .nav-ic { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger {
  display: flex; align-items: center; gap: 10px;
  height: 42px; min-width: 250px; padding: 0 10px 0 14px;
  border-radius: 10px; background: rgba(17, 10, 36, .8); border: 1px solid var(--line-2);
  color: var(--faint); font-size: 14.5px;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.search-trigger:hover { border-color: rgba(25, 240, 255, .5); color: var(--muted); box-shadow: 0 0 14px rgba(25, 240, 255, .15); }
.search-trigger kbd { margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(17, 10, 36, .8); border: 1px solid var(--line-2); color: var(--pink-2);
  transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--pink); box-shadow: var(--glow-pink); color: #fff; }
.icon-btn:active { transform: scale(.94); }

/* ---------- buttons & chips ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 10px;
  font: 700 14px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .25s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 0 1px rgba(255, 110, 196, .5) inset, 0 8px 26px -6px rgba(255, 46, 151, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 180, 225, .7) inset, var(--glow-pink); }
.btn-neon { color: var(--cyan); border: 1.5px solid var(--cyan); background: rgba(25, 240, 255, .06); box-shadow: inset 0 0 14px rgba(25, 240, 255, .15), 0 0 12px rgba(25, 240, 255, .25); text-shadow: 0 0 8px rgba(25, 240, 255, .6); }
.btn-neon:hover { background: var(--cyan); color: #04121a; text-shadow: none; box-shadow: var(--glow-cyan); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-2); box-shadow: 0 0 14px rgba(255, 46, 151, .3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px; border-radius: 7px;
  font: 400 17px/1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h, 300) 95% 62%); box-shadow: 0 0 8px hsl(var(--h, 300) 95% 62%); }
.chip-accent { border-color: rgba(25, 240, 255, .5); color: var(--cyan); text-shadow: 0 0 8px rgba(25, 240, 255, .6); }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 19px/1 var(--font-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 225, 77, .55);
}

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 46px 0 64px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { /* sky */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 6, 46, .0) 0%, rgba(58, 12, 82, .55) 52%, rgba(7, 4, 15, 0) 52.2%);
}
.sun {
  position: absolute; left: 50%; top: 52%; width: min(560px, 70vw); aspect-ratio: 1; transform: translate(-50%, -88%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe14d 0%, #ff8a3d 35%, #ff2e97 70%, #9b5cff 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 60%, transparent 60% 64%, #000 64% 71%, transparent 71% 76%, #000 76% 82%, transparent 82% 88%, #000 88%);
  mask-image: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 60%, transparent 60% 64%, #000 64% 71%, transparent 71% 76%, #000 76% 82%, transparent 82% 88%, #000 88%);
  filter: drop-shadow(0 0 40px rgba(255, 46, 151, .55));
  opacity: .55;
}
.grid-floor {
  position: absolute; left: -50%; right: -50%; top: 52%; bottom: -10%;
  transform: perspective(380px) rotateX(62deg);
  transform-origin: top center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
/* the grid lines themselves, one tile taller than the floor, slide by a tile (a cheap transform animation);
   paused while the hero is off screen (home.js) */
.grid-floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -64px;
  background-image:
    linear-gradient(rgba(255, 46, 151, .55) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(25, 240, 255, .45) 1.5px, transparent 1.5px);
  background-size: 64px 64px;
  animation: gridMove 1.6s linear infinite;
  will-change: transform;
}
.hero.is-offscreen .grid-floor::before { animation-play-state: paused; }
.horizon { position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), var(--pink), transparent); box-shadow: 0 0 18px var(--pink), 0 0 40px rgba(25, 240, 255, .5); }

.hero-head { text-align: center; max-width: 880px; margin: 0 auto 34px; }
.status-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 8px;
  border: 1px solid rgba(25, 240, 255, .4); background: rgba(7, 4, 15, .6);
  font: 400 19px/1 var(--font-pixel); letter-spacing: .08em; color: var(--cyan); text-transform: uppercase;
}
.status-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 10px #3dff8b; animation: blink 1.4s steps(1) infinite; }
.hero-title {
  font: 900 clamp(2.3rem, 6vw, 4.9rem)/1.02 var(--font-display);
  letter-spacing: .02em; text-transform: uppercase;
  margin: 20px 0 22px;
}
.hero-search {
  display: flex; align-items: center; gap: 12px;
  height: 60px; max-width: 600px; margin: 0 auto; padding: 0 8px 0 18px;
  border-radius: 14px; background: rgba(10, 6, 24, .82); border: 1.5px solid rgba(255, 46, 151, .55);
  box-shadow: 0 0 22px rgba(255, 46, 151, .25), inset 0 0 18px rgba(255, 46, 151, .08);
  color: var(--pink-2);
  transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within { border-color: var(--pink); box-shadow: var(--glow-pink); }
.hero-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 17px; color: var(--text); }
.hero-search input::placeholder { color: var(--faint); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search .btn { height: 44px; padding: 0 18px; }

.hero-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }

/* featured game */
.feature-card {
  position: relative; display: block; overflow: hidden; isolation: isolate; min-height: 380px;
  border-radius: var(--r-lg); border: 1.5px solid rgba(255, 46, 151, .7); background: #0b0618;
  box-shadow: 0 0 0 1px rgba(255, 46, 151, .15), 0 0 28px rgba(255, 46, 151, .35), 0 30px 80px -30px rgba(0, 0, 0, .9);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--glow-pink), 0 30px 80px -30px rgba(0, 0, 0, .9); }
.feature-card > .cover { position: absolute; inset: 0; z-index: -2; }
.feature-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 4, 15, .96) 6%, rgba(7, 4, 15, .55) 46%, rgba(7, 4, 15, .05) 75%); }
.feature-card:hover > .cover img { transform: scale(1.04); }
.fc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 30px; }
.fc-title { font: 900 clamp(1.8rem, 3.6vw, 3rem)/1.02 var(--font-display); letter-spacing: .01em; text-transform: uppercase; margin: 10px 0 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.fc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fc-body p { margin: 0 0 20px; color: #d6cdf0; max-width: 40em; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }

/* SeifGens sponsor */
.sponsor {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: rgba(12, 7, 26, .88); border: 1.5px solid rgba(25, 240, 255, .6);
  box-shadow: 0 0 26px rgba(25, 240, 255, .25), inset 0 0 30px rgba(25, 240, 255, .05);
}
.sponsor-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; flex: none; }
.sponsor-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sponsor:hover .sponsor-img img { transform: scale(1.05); }
.sponsor-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 7, 26, 1), transparent 55%); }
.sponsor-tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 8px; border-radius: 6px; background: rgba(7, 4, 15, .8); border: 1px solid rgba(255, 225, 77, .5); font: 400 16px/1 var(--font-pixel); letter-spacing: .1em; color: var(--yellow); text-transform: uppercase; }
.sponsor-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 22px; flex: 1; }
.sponsor-name { font: 900 28px/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: #e9fdff; text-shadow: var(--text-glow-cyan); }
.sponsor-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ip-copy {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 10px 10px 14px; border-radius: 10px; background: rgba(25, 240, 255, .07); border: 1px dashed rgba(25, 240, 255, .55);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.ip-copy:hover { background: rgba(25, 240, 255, .14); border-style: solid; box-shadow: 0 0 16px rgba(25, 240, 255, .3); }
.ip-copy .ip { font: 400 21px/1 var(--font-pixel); letter-spacing: .04em; color: var(--cyan); text-shadow: 0 0 8px rgba(25, 240, 255, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-copy .go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; background: var(--cyan); color: #04121a; font: 700 11px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.ip-copy.copied .go { background: #3dff8b; }

/* slim sponsor bar (games page) */
.sponsor-bar {
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 10px; margin-top: 22px;
  border-radius: 14px; background: linear-gradient(90deg, rgba(25, 240, 255, .1), rgba(155, 92, 255, .08) 60%, rgba(255, 46, 151, .1));
  border: 1px solid rgba(25, 240, 255, .4); box-shadow: 0 0 20px rgba(25, 240, 255, .12);
}
.sponsor-bar img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.sponsor-bar .txt { min-width: 0; flex: 1; }
.sponsor-bar .txt b { font: 800 16px/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: #e9fdff; text-shadow: var(--text-glow-cyan); }
.sponsor-bar .txt span { display: block; color: var(--muted); font-size: 13.5px; }
.sponsor-bar .ip-copy { width: auto; margin: 0; flex: none; }

/* wide sponsor banner (home) */
.sponsor-banner {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 30px;
  min-height: 320px; padding: 40px 44px; border-radius: 24px; border: 1.5px solid rgba(25, 240, 255, .6);
  box-shadow: 0 0 30px rgba(25, 240, 255, .25);
}
.sponsor-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sponsor-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 4, 15, .95) 0%, rgba(7, 4, 15, .82) 45%, rgba(7, 4, 15, .25) 100%); }
.sponsor-banner h2 { font: 900 clamp(2rem, 4.4vw, 3.4rem)/1 var(--font-display); text-transform: uppercase; margin: 12px 0 14px; }
.sponsor-banner p { color: #d4cbee; margin: 0 0 22px; max-width: 32em; font-size: 16px; }
.sponsor-banner .ip-copy { max-width: 420px; }

/* ---------- sections & rows ---------- */
.section { padding-block: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title {
  display: flex; align-items: center; gap: 12px;
  font: 800 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
.section-title .i { color: var(--pink-2); filter: drop-shadow(0 0 6px rgba(255, 46, 151, .8)); }
.section-sub { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 12px; border-radius: 9px;
  font: 400 19px/1 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan);
  transition: background .2s, text-shadow .2s;
}
.link-more:hover { background: rgba(25, 240, 255, .08); text-shadow: 0 0 10px rgba(25, 240, 255, .7); }
.link-more .i { transition: transform .2s; }
.link-more:hover .i { transform: translateX(3px); }

.row-wrap { position: relative; }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 21vw, 262px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
/* off-screen cards in a row would otherwise reserve their placeholder height and stretch the row */
.row { align-items: start; }
.row .card { content-visibility: visible; }
.row-btn {
  position: absolute; top: calc(50% - 46px); z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(12, 7, 26, .92); border: 1px solid var(--cyan); color: var(--cyan);
  box-shadow: 0 0 14px rgba(25, 240, 255, .35);
  opacity: 0; transition: opacity .2s, background .2s;
}
.row-btn:hover { background: var(--cyan); color: #04121a; }
.row-btn.prev { left: -14px; }
.row-btn.next { right: -14px; }
.row-wrap:hover .row-btn:not([disabled]) { opacity: 1; }
.row-btn[disabled] { pointer-events: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 20px 16px; }

/* ---------- covers ---------- */
.cover { position: relative; overflow: hidden; background: #0b0618; isolation: isolate; container-type: inline-size; }
.cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover img.is-icon { object-fit: contain; padding: 16%; filter: drop-shadow(0 0 18px hsl(var(--h) 95% 60% / .6)); }
.cover-gen {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 7cqi 7cqi 6cqi;
  background:
    radial-gradient(90% 80% at 50% 0%, hsl(var(--h) 95% 55% / .45), transparent 70%),
    linear-gradient(180deg, #120a28, #07040f);
  transition: transform .6s var(--ease);
}
.cover-gen::before { /* tiny synthwave grid: flat and unmasked (a 3D tilt + mask per card was a GPU layer each) */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background-image: linear-gradient(180deg, #0c0720, transparent 70%), linear-gradient(hsl(var(--h2) 95% 60% / .5) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--h2) 95% 60% / .4) 1px, transparent 1px);
  background-size: 100% 100%, 9cqi 9cqi, 9cqi 9cqi; opacity: .6;
}
/* once a full cover image has loaded the generated art underneath isn't drawn at all (SEIF._thumb) */
.cover.has-img .cover-gen { display: none; }
.cover-icon { position: absolute; right: 7%; top: 9%; width: 30%; color: hsl(var(--h) 100% 75%); opacity: .9; }
.cover-icon .i { width: 100%; height: auto; stroke-width: 1.5; }
.cover-title {
  position: relative;
  font-family: var(--font-display); font-weight: 900; line-height: 1; letter-spacing: .01em; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 4px hsl(var(--h) 100% 70%), 0 0 16px hsl(var(--h) 100% 60% / .8);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.cover.mini .cover-title, .cover.has-icon .cover-title { display: none; }
.cover.mini .cover-icon { inset: 0; width: auto; display: grid; place-items: center; }
.cover.mini .cover-icon .i { width: 44%; }
.stage-overlay > .cover .cover-gen > *, .feature-card > .cover .cover-gen > * { display: none; }

/* ---------- game cards ---------- */
.card { position: relative; content-visibility: auto; contain-intrinsic-size: auto 240px; }
.card-hit {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card .cover { aspect-ratio: 16 / 10; }
.card-hit:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--h, 320) 100% 62%);
  box-shadow: 0 0 0 1px hsl(var(--h, 320) 100% 62% / .5), 0 0 22px hsl(var(--h, 320) 100% 60% / .45), 0 20px 40px -20px rgba(0, 0, 0, .9);
}
.card-hit:hover .cover img, .card-hit:hover .cover-gen { transform: scale(1.07); }
.card-play {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(7, 4, 15, .65), rgba(7, 4, 15, .15));
  opacity: 0; transition: opacity .25s;
}
.card-play span {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff;
  box-shadow: var(--glow-pink); transform: scale(.75); transition: transform .3s var(--ease);
}
.card-play .i { margin-left: 3px; }
.card-hit:hover .card-play, .card-hit:focus-visible .card-play { opacity: 1; }
.card-hit:hover .card-play span { transform: scale(1); }
.card-meta { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px 13px; }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cat { display: inline-flex; align-items: center; gap: 7px; font: 400 16.5px/1.1 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h) 95% 62%); box-shadow: 0 0 8px hsl(var(--h) 95% 62%); }
.badge {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  padding: 3px 7px 4px; border-radius: 6px;
  font: 400 15px/1 var(--font-pixel); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(7, 4, 15, .82); border: 1px solid rgba(25, 240, 255, .6); color: var(--cyan);
  text-shadow: 0 0 6px rgba(25, 240, 255, .8);
}
.fav-btn {
  position: absolute; top: 9px; right: 9px; z-index: 4;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(7, 4, 15, .86); border: 1px solid var(--line-2);
  color: #fff; opacity: 0; transition: opacity .2s, color .2s, border-color .2s, box-shadow .2s;
}
.card:hover .fav-btn, .fav-btn:focus-visible, .fav-btn.on { opacity: 1; }
.fav-btn:hover { color: var(--pink-2); border-color: var(--pink); }
.fav-btn.on { color: var(--pink); border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 46, 151, .5); }
.fav-btn.on .i path { fill: currentColor; }
.fav-btn.pop { animation: heart .4s var(--ease); }
@media (hover: none) { .fav-btn { opacity: 1; } }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 14px; background: var(--surface); border: 1px solid hsl(var(--h) 90% 60% / .3);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 50%, hsl(var(--h) 95% 55% / .2), transparent 60%); }
.cat-tile:hover { transform: translateY(-3px); border-color: hsl(var(--h) 100% 62%); box-shadow: 0 0 20px hsl(var(--h) 100% 60% / .45), inset 0 0 20px hsl(var(--h) 100% 60% / .1); }
.cat-icon {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px;
  border: 1.5px solid hsl(var(--h) 100% 62%); color: hsl(var(--h) 100% 72%);
  box-shadow: 0 0 12px hsl(var(--h) 100% 60% / .5), inset 0 0 10px hsl(var(--h) 100% 60% / .25);
}
.cat-icon .i { filter: drop-shadow(0 0 4px hsl(var(--h) 100% 60%)); }
.cat-name { display: block; font: 700 14px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.cat-count { font: 400 17px/1.1 var(--font-pixel); color: var(--muted); letter-spacing: .04em; }
.cat-arrow { margin-left: auto; color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.cat-tile:hover .cat-arrow { transform: translateX(4px); color: hsl(var(--h) 100% 72%); }

/* ---------- page heads (games / info) ---------- */
.page-head { padding-block: 46px 6px; }
.page-title { font: 900 clamp(2rem, 4.8vw, 3.6rem)/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
.page-title .count { color: var(--cyan); text-shadow: var(--text-glow-cyan); }
.page-sub { color: var(--muted); margin: 14px 0 0; max-width: 44em; font-size: 16px; }

/* ---------- library toolbar ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; padding-block: 16px 6px; background: linear-gradient(var(--bg) 78%, rgba(7, 4, 15, 0)); }
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--pink-2);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--pink); box-shadow: 0 0 16px rgba(255, 46, 151, .35); }
.field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 15.5px; color: var(--text); }
.field input::placeholder { color: var(--faint); }
.field input::-webkit-search-cancel-button { display: none; }
.field-clear { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); }
.field-clear:hover { background: var(--surface-3); color: var(--text); }
.select {
  height: 50px; padding: 0 40px 0 14px; border-radius: 12px; appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2319f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 14px center;
  border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px;
}
.select option { background: var(--surface-2); }
.toggle {
  height: 50px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; flex: none;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font-weight: 600; font-size: 14px; transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.toggle:hover { color: var(--text); }
.toggle[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(25, 240, 255, .08); box-shadow: 0 0 14px rgba(25, 240, 255, .3); }
.toggle[aria-pressed="true"][data-toggle="favs"] { border-color: var(--pink); color: var(--pink-2); background: rgba(255, 46, 151, .08); box-shadow: 0 0 14px rgba(255, 46, 151, .35); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted);
  font: 400 19px/1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.chip-btn .i { color: hsl(var(--h, 300) 100% 70%); }
.chip-btn .n { opacity: .6; }
.chip-btn:hover { color: var(--text); border-color: hsl(var(--h, 300) 100% 62% / .6); }
.chip-btn[aria-pressed="true"] { color: #fff; border-color: hsl(var(--h, 300) 100% 62%); background: hsl(var(--h, 300) 100% 55% / .14); box-shadow: 0 0 14px hsl(var(--h, 300) 100% 60% / .45); }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 16px; color: var(--muted); font-size: 14.5px; }
.results-meta b { color: var(--cyan); font-weight: 700; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; border: 1.5px solid var(--pink); color: var(--pink-2); box-shadow: var(--glow-pink); }
.empty h3 { font: 800 20px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.empty p { margin: 0 0 22px; }

/* ---------- play page ---------- */
.play-wrap { padding-block: 16px 20px; }
/* the game and the bar under it: 16:9, as big as fits on the screen below the header (so the whole game shows
   without fullscreen), never wider than the page */
.player {
  --bar-h: 58px;
  --avail: calc(100vh - var(--header-h) - var(--bar-h) - 36px);
  position: relative; width: min(100%, max(560px, var(--avail) * 16 / 9)); margin-inline: auto;
  container: player / inline-size;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1.5px solid rgba(25, 240, 255, .55);
  box-shadow: 0 0 0 1px rgba(25, 240, 255, .12), 0 0 34px rgba(25, 240, 255, .22), 0 50px 120px -50px rgba(0, 0, 0, .95);
}
@supports (height: 100dvh) { .player { --avail: calc(100dvh - var(--header-h) - var(--bar-h) - 36px); } }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; container-type: size; }
.stage iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; background: #000; transform-origin: 0 0; }
.stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; }
/* fallback where the browser can't fullscreen an element (iPhone): fill the window instead */
.stage.pseudo-full { position: fixed; inset: 0; z-index: 300; width: auto; height: auto; aspect-ratio: auto; }
html.stage-full { overflow: hidden; }
html.stage-full main { z-index: 300; }
/* fullscreen button on the game itself: shows while the mouse moves over the game, fades when it stops */
.stage-fs {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(7, 4, 15, .72); border: 1px solid rgba(25, 240, 255, .55); color: var(--cyan);
  box-shadow: 0 0 14px rgba(25, 240, 255, .25);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s var(--ease), background .2s, color .2s;
}
.stage.ui-on .stage-fs, .stage-fs:focus-visible, .stage:not(:has(iframe)) .stage-fs { opacity: 1; transform: none; }
.stage-fs:hover { background: var(--cyan); color: #04121a; }
@media (hover: none) { .stage-fs { opacity: .8; transform: none; } }

.player-bar {
  height: var(--bar-h); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 8px;
  background: linear-gradient(180deg, rgba(23, 15, 48, .98), rgba(13, 8, 30, .98));
  border-top: 1px solid rgba(25, 240, 255, .35);
}
.pb-back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: color .2s, background .2s; }
.pb-back:hover { color: var(--cyan); background: rgba(25, 240, 255, .08); }
.pb-title { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.pb-title h1 { min-width: 0; font: 900 clamp(1rem, 1.5vw, 1.2rem)/1.1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-tags { display: flex; gap: 6px; flex: none; }
.pb-tags .chip { height: 26px; font-size: 16px; }
.pb-actions { display: flex; gap: 6px; flex: none; }
.player-bar .tool-btn { height: 38px; padding: 0 12px; font-size: 13.5px; }
@container player (max-width: 1020px) {
  .player-bar .tool-btn:not(.primary) .tlabel { display: none; }
  .player-bar .tool-btn:not(.primary) { width: 38px; padding: 0; justify-content: center; }
}
@container player (max-width: 700px) {
  .pb-tags { display: none; }
  .player-bar .tool-btn .tlabel { display: none; }
  .player-bar .tool-btn { width: 38px; padding: 0; justify-content: center; }
}
/* phones: the title gets a row of its own, the buttons share the row under it */
@container player (max-width: 520px) {
  .player-bar { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 6px 8px 8px 4px; }
  .pb-title { flex: 1 1 calc(100% - 50px); }
  .pb-actions { flex: 1 1 100%; padding-left: 4px; }
  .player-bar .tool-btn { flex: 1; width: auto; }
}

.help { width: min(100%, 980px); margin: 16px auto 0; }
.help-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: var(--muted); font-size: 14.5px; }
.help-steps li::marker { color: var(--cyan); font-weight: 700; }
.help-steps b { color: var(--text); }
.help-steps li.warn b { color: var(--yellow); }
.link-btn { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(25, 240, 255, .4); text-underline-offset: 3px; }
.report { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.report-note { flex: 1; min-width: 200px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); outline: 0; }
.report-note:focus { border-color: var(--cyan); box-shadow: 0 0 12px rgba(25, 240, 255, .25); }
.report .btn:disabled { opacity: .5; pointer-events: none; }
.panel .device-line { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.tool-btn {
  height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14px; color: var(--text); transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tool-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(25, 240, 255, .3); }
.tool-btn.on { color: var(--pink-2); border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 46, 151, .4); }
.tool-btn.on .i path { fill: currentColor; }
.tool-btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 6px 20px -6px rgba(255, 46, 151, .7); }
.tool-btn.primary:hover { color: #fff; box-shadow: var(--glow-pink); }

.stage-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; width: 100%; isolation: isolate; cursor: pointer; }
.stage-overlay > .cover { position: absolute; inset: 0; z-index: -2; filter: blur(28px) brightness(.45) saturate(1.5); transform: scale(1.2); }
.stage-overlay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(7, 4, 15, .1), rgba(7, 4, 15, .7)); }
/* sized from the stage (cqw/cqh), so it fits a small frame too */
.stage-start { --big: clamp(52px, 13cqh, 76px); display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 3.5cqh, 20px); padding: 16px; text-align: center; }
.stage-thumb { position: relative; width: min(380px, 50cqw, 56cqh * 1.6); }
.stage-thumb .cover { aspect-ratio: 16 / 10; border-radius: 14px; border: 1.5px solid rgba(255, 46, 151, .7); box-shadow: 0 0 30px rgba(255, 46, 151, .4), 0 30px 70px -20px rgba(0, 0, 0, .9); }
.play-big {
  position: absolute; left: 50%; bottom: calc(var(--big) / -2.2); transform: translateX(-50%);
  width: var(--big); height: var(--big); display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 46, 151, .18), var(--glow-pink);
  transition: transform .25s var(--ease);
}
.play-big .i { margin-left: 4px; }
.stage-overlay:hover .play-big { transform: translateX(-50%) scale(1.08); }
.stage-hint { margin-top: calc(var(--big) / 2.2); font: 400 clamp(18px, 4.6cqh, 24px)/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); text-shadow: 0 0 10px rgba(255, 225, 77, .6); animation: blink 1.2s steps(1) infinite; }
.stage-note {
  display: flex; gap: 8px; align-items: flex-start; max-width: min(520px, 88cqw); padding: 8px 12px; border-radius: 10px; text-align: left;
  background: rgba(7, 4, 15, .78); border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; line-height: 1.4;
}
.stage-note .i { flex: none; margin-top: 1px; color: var(--cyan); }
.stage-note.warn { border-color: rgba(255, 225, 77, .6); color: #ffeaa0; }
.stage-note.warn .i { color: var(--yellow); }
.stage-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 16px; background: #05030b; color: var(--muted); font-size: 14.5px; text-align: center; padding: 20px; }
.stage-loading .pixel { font-size: 24px; color: var(--cyan); text-shadow: 0 0 10px rgba(25, 240, 255, .6); text-transform: uppercase; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .06); border-top-color: var(--pink); border-right-color: var(--cyan); animation: spin .8s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 46, 151, .8)); }

.play-info { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 26px; align-items: start; }
.play-side { display: grid; gap: 18px; }
.panel { background: rgba(17, 10, 36, .85); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; }
.panel h2 { display: flex; align-items: center; gap: 10px; font: 800 15px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.panel h2 .i { color: var(--cyan); filter: drop-shadow(0 0 5px rgba(25, 240, 255, .8)); }
.panel p { color: var(--muted); margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel a.inline { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(25, 240, 255, .4); text-underline-offset: 3px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 14.5px; }
.details dt { font: 400 18px/1.2 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.details dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.tips .i { color: var(--pink-2); margin-top: 2px; }

/* ---------- info page ---------- */
.info-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-block: 60px 24px; }
.info-hero .page-title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stat-card { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.stat-card dd { margin: 0; font: 900 34px/1.1 var(--font-display); color: var(--cyan); text-shadow: var(--text-glow-cyan); }
.stat-card dt { margin-top: 6px; font: 400 18px/1.2 var(--font-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-card.accent { border-color: var(--pink); box-shadow: 0 0 20px rgba(255, 46, 151, .3); }
.stat-card.accent dd { color: var(--pink-2); text-shadow: var(--text-glow-pink); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--pink); color: var(--pink-2); box-shadow: 0 0 14px rgba(255, 46, 151, .4); margin-bottom: 18px; }
.feature h3 { font: 800 15px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 24px; border-radius: 18px; border: 1px dashed rgba(25, 240, 255, .4); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 900 38px/1 var(--font-display); color: var(--cyan); text-shadow: var(--text-glow-cyan); margin-bottom: 14px; }
.steps h3 { font: 700 15px/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--pink-2); transition: transform .25s var(--ease); }
.faq details[open] summary { color: var(--cyan); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 46em; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px; }
.bar a { font: 400 18px/1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.bar a:hover { color: var(--text); }
.bar-track { display: block; height: 10px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 3px; background: hsl(var(--h) 100% 60%); box-shadow: 0 0 10px hsl(var(--h) 100% 60%); transform-origin: left; animation: grow 1s var(--ease) both; }
.bar-n { font: 400 18px/1 var(--font-pixel); color: var(--faint); text-align: right; }
.credits { display: flex; flex-wrap: wrap; gap: 8px; }
.credits a { transition: border-color .2s, box-shadow .2s; }
.credits a:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(25, 240, 255, .35); }
.credits .n { color: var(--faint); }
.kbd-list { display: grid; gap: 10px; margin: 0; }
.kbd-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 150; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(4, 2, 10, .7); backdrop-filter: blur(6px); animation: fade .15s ease-out; }
.palette-panel {
  position: relative; width: min(660px, 100%); overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--pink); border-radius: 18px;
  box-shadow: var(--glow-pink), 0 50px 140px -30px rgba(0, 0, 0, .95);
  animation: pop .2s var(--ease);
}
.palette-input { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px; border-bottom: 1px solid var(--line-2); color: var(--pink-2); }
.palette-input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 17px; color: var(--text); }
.palette-input input::placeholder { color: var(--faint); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(440px, 56vh); overflow-y: auto; scrollbar-width: thin; }
.palette-group { padding: 10px 12px 6px; font: 400 18px/1 var(--font-pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.palette-item a { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 11px; border: 1px solid transparent; }
.palette-item .cover { width: 70px; flex: none; aspect-ratio: 16 / 10; border-radius: 7px; }
.palette-item .txt { min-width: 0; display: flex; flex-direction: column; }
.palette-item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .s { font: 400 16px/1.1 var(--font-pixel); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.palette-item .go { margin-left: auto; color: var(--cyan); opacity: 0; transition: opacity .15s; }
.palette-item[aria-selected="true"] a { background: rgba(25, 240, 255, .07); border-color: rgba(25, 240, 255, .45); }
.palette-item[aria-selected="true"] .go { opacity: 1; }
.palette-empty { padding: 36px 12px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 18px; padding: 11px 18px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: 12.5px; }
.palette-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 10px; background: rgba(12, 7, 26, .95); border: 1px solid var(--cyan);
  font: 400 21px/1 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan);
  box-shadow: var(--glow-cyan); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; padding-block: 36px 48px; color: var(--muted); font-size: 14.5px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--pink), transparent); opacity: .7; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; gap: 22px; font: 600 12.5px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { transition: color .2s, text-shadow .2s; }
.footer-links a:hover { color: var(--cyan); text-shadow: 0 0 8px rgba(25, 240, 255, .7); }
.footer-ip { color: var(--cyan); font: 400 18px/1 var(--font-pixel); letter-spacing: .04em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- animation ---------- */
@keyframes gridMove { from { transform: translate3d(0, -64px, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes heart { 40% { transform: scale(1.3); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-feature { grid-template-columns: 1fr; }
  .sponsor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sponsor-img { aspect-ratio: auto; min-height: 100%; }
  .sponsor-img::after { background: linear-gradient(270deg, rgba(12, 7, 26, 1), transparent 55%); }
  .sponsor-body { padding: 22px; }
  .sponsor-banner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .play-info, .info-hero, .two-col { grid-template-columns: 1fr; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .search-trigger { min-width: 0; }
  .search-trigger span { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 62px; }
  body { padding-bottom: 76px; }
  /* backdrop-filter would make the header the containing block for the fixed bottom nav */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 4, 15, .97); }
  .header-inner { gap: 12px; }
  .logo-word { font-size: 18px; }
  .logo-mark { width: 34px; height: 34px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    justify-content: space-around; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 46, 151, .5); background: rgba(9, 5, 20, .97);
    box-shadow: 0 -6px 24px rgba(255, 46, 151, .15);
  }
  .nav a { flex-direction: column; gap: 4px; padding: 6px 20px; font-size: 10px; border: 0; }
  .nav a.active { box-shadow: none; background: none; }
  .nav .nav-ic { display: block; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .search-trigger kbd { display: none; }
  .hero { padding: 28px 0 40px; }
  .hero-search .btn { display: none; }
  .feature-card { min-height: 300px; }
  .fc-body { padding: 20px; }
  .fc-body p { display: none; }
  .sponsor { display: flex; }
  .sponsor-img { aspect-ratio: 16 / 9; min-height: 0; }
  .sponsor-img::after { background: linear-gradient(0deg, rgba(12, 7, 26, 1), transparent 55%); }
  .sponsor-body { padding: 4px 18px 18px; }
  .ip-copy { padding: 8px 8px 8px 12px; }
  .ip-copy .ip { font-size: 18px; }
  .ip-copy .go { padding: 6px 8px; }
  .sponsor-bar { flex-wrap: wrap; }
  .sponsor-bar img { width: 80px; }
  .sponsor-bar .ip-copy { width: 100%; }
  .sponsor-banner { padding: 26px 20px; min-height: 0; }
  .row-btn { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px 12px; }
  .card-meta { padding: 9px 11px 11px; }
  .card-title { font-size: 14px; }
  .fav-btn { top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 8px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 12px; gap: 10px; }
  .cat-icon { width: 40px; height: 40px; border-radius: 10px; }
  .cat-arrow { display: none; }
  .toolbar { position: static; padding-top: 8px; }
  .toolbar-row { flex-wrap: wrap; }
  .toolbar-row .field { flex-basis: 100%; }
  .toolbar-row .select { flex: 1; min-width: 0; }
  .toggle { width: 50px; padding: 0; justify-content: center; }
  .toggle .tlabel { display: none; }
  .play-wrap { padding-top: 10px; }
  .player { --bar-h: 52px; border-radius: 14px; }
  .stage { aspect-ratio: 4 / 3; }
  .stage.pseudo-full, .stage:fullscreen { aspect-ratio: auto; }
  .feature-grid, .steps, .stat-cards { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 90px 1fr 34px; }
  .palette { padding-top: 6vh; }
  .palette-foot { display: none; }
  .toast { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
