/* =====================================================================
   PropollyGDS — site.css
   Dark arcade-neon theme. One stylesheet for every page.
   Fonts: "Press Start 2P" (pixel headings)  +  "Space Grotesk" (body)
   ===================================================================== */

/* self-hosted fonts (SIL OFL — licenses in /fonts). ~52 KB total, no third-party request. */
@font-face { font-family: 'Press Start 2P'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/press-start-2p-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --bg:       #07060f;
  --bg-2:     #0c0a1c;
  --panel:    #120f26;
  --panel-2:  #191436;
  --line:     #2a2452;
  --line-2:   #3a3270;

  --text:     #ece9ff;
  --muted:    #9d98c8;
  --dim:      #5f5a8a;

  --pink:     #ff2bd6;
  --cyan:     #22f0ff;
  --yellow:   #ffe14a;
  --green:    #3dff8f;
  --purple:   #8a5cff;
  --red:      #ff4d6d;

  --pixel: 'Press Start 2P', 'Courier New', monospace;
  --body:  'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --glow-pink: 0 0 8px rgba(255,43,214,.9), 0 0 24px rgba(255,43,214,.55), 0 0 60px rgba(255,43,214,.25);
  --glow-cyan: 0 0 8px rgba(34,240,255,.9), 0 0 24px rgba(34,240,255,.55), 0 0 60px rgba(34,240,255,.25);

  --radius: 6px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; vertical-align: -.1em; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 6px; vertical-align: 1px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--pink); color: #fff; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- CRT overlay + background ---------- */
body::before {
  /* faint scanlines */
  content: '';
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,.028) 0 1px, rgba(0,0,0,0) 1px 3px);
  mix-blend-mode: overlay;
}
body::after {
  /* vignette */
  content: '';
  position: fixed; inset: 0; z-index: 9989; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.bg-stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 31%, rgba(34,240,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 84%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 46%, rgba(255,43,214,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 78%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 92%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 22%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 58%, rgba(255,255,255,.3) 50%, transparent 51%);
  background-size: 900px 700px;
}

/* ---------- pixel primitives ---------- */
.pixel { font-family: var(--pixel); line-height: 1.5; letter-spacing: 0; }
.kicker {
  font-family: var(--pixel); font-size: 10px; letter-spacing: .08em;
  color: var(--cyan); text-transform: uppercase;
}
.kicker--pink { color: var(--pink); }
.kicker--yellow { color: var(--yellow); }
.kicker--muted { color: var(--dim); }

.neon-pink { color: var(--pink); text-shadow: var(--glow-pink); }
.neon-cyan { color: var(--cyan); text-shadow: var(--glow-cyan); }

.badge {
  display: inline-block; font-family: var(--pixel); font-size: 8px; line-height: 1;
  padding: 6px 8px; border: 2px solid currentColor; color: var(--yellow);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.badge--soon { color: var(--yellow); }
.badge--locked { color: var(--dim); }
.badge--live { color: var(--green); }

.tag {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 3px; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* pixel buttons */
.btn {
  --c: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 11px; line-height: 1;
  padding: 14px 18px; color: var(--c); background: transparent;
  border: 2px solid var(--c); text-transform: uppercase; text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,.6), inset 0 0 0 0 var(--c);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.btn:hover, .btn:focus-visible {
  text-decoration: none; background: var(--c); color: #07060f;
  box-shadow: 4px 4px 0 rgba(0,0,0,.6), 0 0 18px var(--c);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.btn--pink { --c: var(--pink); }
.btn--yellow { --c: var(--yellow); }
.btn--green { --c: var(--green); }
.btn--ghost { --c: var(--muted); }
.btn--ghost:hover { --c: var(--text); }
.btn--sm { font-size: 9px; padding: 10px 12px; }
.btn__meta { font-size: .8em; opacity: .7; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,6,15,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 18px; height: 64px;
}
.brand {
  font-family: var(--pixel); font-size: 13px; color: var(--text); text-decoration: none;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 22px; height: 22px; flex: 0 0 auto;
  image-rendering: pixelated;
}
.brand em { font-style: normal; color: var(--pink); text-shadow: 0 0 12px rgba(255,43,214,.6); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--pixel); font-size: 9px; color: var(--muted); text-decoration: none;
  padding: 10px 12px; border: 2px solid transparent; text-transform: uppercase;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); border-color: var(--line-2); }
.nav a.is-locked { color: var(--dim); }
.nav a.is-locked::after { content: ' \1F512'; font-family: system-ui; font-size: 9px; }

.socials { display: flex; gap: 6px; }
.socials a {
  display: grid; place-items: center; width: 36px; height: 36px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 4px;
  transition: color .15s, border-color .15s, box-shadow .15s;
}
.socials a:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(34,240,255,.35); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--line-2); color: var(--text); width: 40px; height: 40px; font-family: system-ui, sans-serif; font-size: 20px; line-height: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 64px);
  display: grid; place-items: center; text-align: center;
  padding: 72px 0 120px;
  isolation: isolate;
}
.hero__grid {
  /* synthwave floor */
  position: absolute; left: -20%; right: -20%; bottom: -2px; height: 46%;
  z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,43,214,.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,43,214,.35) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 85%, transparent);
  animation: gridscroll 2.4s linear infinite;
}
@keyframes gridscroll { from { background-position: 0 0; } to { background-position: 0 64px; } }
.hero__sun {
  position: absolute; left: 50%; bottom: 40%; z-index: -2; pointer-events: none;
  width: 340px; height: 340px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,43,214,.55), rgba(138,92,255,.25) 45%, transparent 70%);
  filter: blur(6px);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 12px, transparent 12px 20px);
          mask-image: repeating-linear-gradient(to bottom, #000 0 12px, transparent 12px 20px);
}
.hero__inner { position: relative; max-width: 900px; padding: 0 var(--gutter); }
.hero__kicker { margin-bottom: 26px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero__kicker span::before { content: '\2022'; color: var(--pink); margin-right: 14px; }
.hero__kicker span:first-child::before { content: none; }

.hero__title {
  font-family: var(--pixel);
  font-size: clamp(26px, 6vw, 62px);
  line-height: 1.25;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--pink),
    -2px -2px 0 var(--cyan),
    0 0 30px rgba(255,43,214,.45),
    0 0 60px rgba(34,240,255,.25);
  letter-spacing: .02em;
  margin-bottom: 28px;
  position: relative;
}
.hero__title small {
  display: block; font-size: .32em; color: var(--yellow); margin-top: 20px;
  text-shadow: 0 0 14px rgba(255,225,74,.6);
}
.hero__lede {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 38px;
}
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--pixel); font-size: 8px; color: var(--dim); letter-spacing: .1em;
}
.hero__scroll::after { content: ''; display: block; width: 8px; height: 8px; margin: 10px auto 0; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--locked { opacity: .85; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head__level { display: block; margin-bottom: 12px; }
.sec-head h2 {
  font-family: var(--pixel); font-size: clamp(18px, 3vw, 30px); line-height: 1.3; color: #fff;
  text-shadow: 0 0 18px rgba(34,240,255,.35);
}
.sec-head h2 span { color: var(--cyan); }
.sec-head__meta { color: var(--muted); font-size: 15px; max-width: 460px; }
.sec-head__meta .badge { margin-right: 10px; vertical-align: middle; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--games { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.grid--games .card__title { font-size: 14px; }
.grid--games .card__thumb { aspect-ratio: 16 / 10; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0,0,0,.55);
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card::before {
  /* corner "pixels" */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--line-2), var(--line-2)) top left / 8px 8px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) top right / 8px 8px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) bottom left / 8px 8px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) bottom right / 8px 8px no-repeat;
  transition: background .15s;
}
.card:hover { transform: translate(-3px, -3px); border-color: var(--cyan); box-shadow: 9px 9px 0 rgba(0,0,0,.6), 0 0 28px rgba(34,240,255,.25); }
.card:hover::before {
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 8px 8px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right / 8px 8px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / 8px 8px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 8px 8px no-repeat;
}
.card--pink:hover { border-color: var(--pink); box-shadow: 9px 9px 0 rgba(0,0,0,.6), 0 0 28px rgba(255,43,214,.25); }

.card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; border-bottom: 2px solid var(--line); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,6,15,.75), transparent 45%);
}
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-family: var(--pixel); font-size: 12px; line-height: 1.5; color: #fff; }
.card__title a { color: inherit; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 4; }
.card__text { color: var(--muted); font-size: 15px; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.card__cta { font-family: var(--pixel); font-size: 9px; color: var(--cyan); text-transform: uppercase; }
.card--pink .card__cta { color: var(--pink); }
.card__cta::after { content: ' \BB'; }

/* locked cards */
.card.is-locked { cursor: not-allowed; }
.card.is-locked:hover { transform: none; border-color: var(--line); box-shadow: 6px 6px 0 rgba(0,0,0,.55); }
.card.is-locked:hover::before { background:
    linear-gradient(var(--line-2), var(--line-2)) top left / 8px 8px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) top right / 8px 8px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) bottom left / 8px 8px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) bottom right / 8px 8px no-repeat; }
.card.is-locked .card__thumb img { filter: grayscale(1) brightness(.45) contrast(1.1); transform: none; }
.card.is-locked .card__title, .card.is-locked .card__text { color: var(--dim); }
.card.is-locked .card__cta { color: var(--dim); }
.card.is-locked .card__cta::after { content: none; }
.card__lock {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 10px; color: var(--yellow); text-align: center; line-height: 2;
  text-shadow: 0 0 12px rgba(255,225,74,.5);
}
.card__lock svg { width: 34px; height: 34px; fill: var(--yellow); margin-bottom: 6px; filter: drop-shadow(0 0 8px rgba(255,225,74,.5)); }

/* ---------- wide "learn" card ---------- */
.wide {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--line); box-shadow: 6px 6px 0 rgba(0,0,0,.55);
  overflow: hidden; position: relative;
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.wide:hover { border-color: var(--yellow); transform: translate(-3px,-3px); box-shadow: 9px 9px 0 rgba(0,0,0,.6), 0 0 28px rgba(255,225,74,.18); }
.wide__thumb { background: #000; border-right: 2px solid var(--line); }
.wide__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wide__body { padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }
.wide__title { font-family: var(--pixel); font-size: 13px; line-height: 1.6; color: #fff; }
.wide__title a { color: inherit; }
.wide__title a::after { content: ''; position: absolute; inset: 0; }
.wide__text { color: var(--muted); }
.wide__foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: auto; }

/* locked wide card */
.wide.is-locked { cursor: not-allowed; }
.wide.is-locked:hover { transform: none; border-color: var(--line); box-shadow: 6px 6px 0 rgba(0,0,0,.55); }
.wide.is-locked .wide__thumb { position: relative; }
.wide.is-locked .wide__thumb img { filter: grayscale(1) brightness(.45) contrast(1.1); }
.wide.is-locked .wide__title, .wide.is-locked .wide__text { color: var(--dim); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about__text { font-size: 18px; color: var(--muted); }
.about__text strong { color: var(--text); font-weight: 500; }
.about__text h3 { font-family: var(--pixel); font-size: 11px; color: var(--cyan); margin: 26px 0 12px; }
.about__skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.about__skills .tag { font-size: 12px; color: var(--text); border-color: var(--line-2); }

.pcard {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--line); box-shadow: 6px 6px 0 rgba(0,0,0,.55);
  padding: 26px;
}
.pcard__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px dashed var(--line-2); margin-bottom: 20px; }
.pcard__avatar {
  width: 64px; height: 64px; flex: 0 0 auto; image-rendering: pixelated;
  border: 2px solid var(--pink); box-shadow: 0 0 16px rgba(255,43,214,.4);
}
.pcard__name { font-family: var(--pixel); font-size: 11px; color: #fff; line-height: 1.7; }
.pcard__role { color: var(--muted); font-size: 14px; }
.pcard dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 22px; font-size: 14px; }
.pcard dt { font-family: var(--pixel); font-size: 8px; color: var(--dim); padding-top: 4px; }
.pcard dd { margin: 0; color: var(--text); }
.pcard__links { display: grid; gap: 10px; }
.pcard__links .btn { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer .pixel { font-size: 8px; }
.footer a { color: var(--muted); }

/* =====================================================================
   GAME PAGE
   ===================================================================== */
.game-head { padding: 44px 0 26px; }
.game-head__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.game-head h1 { font-family: var(--pixel); font-size: clamp(18px, 3.4vw, 32px); line-height: 1.35; color: #fff; text-shadow: 3px 3px 0 var(--pink), 0 0 26px rgba(255,43,214,.35); }
.game-head__tag { color: var(--muted); font-size: 18px; margin-top: 12px; }
.game-head .tags { margin-top: 16px; }

/* the "cabinet" */
.cab {
  position: relative;
  border: 3px solid var(--line-2);
  background: #000;
  box-shadow: 0 0 0 6px var(--panel), 0 0 0 8px var(--line), 10px 14px 0 rgba(0,0,0,.6), 0 0 60px rgba(138,92,255,.18);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.cab.is-playing { border-color: var(--cyan); box-shadow: 0 0 0 6px var(--panel), 0 0 0 8px var(--line), 10px 14px 0 rgba(0,0,0,.6), 0 0 60px rgba(34,240,255,.28); }
.cab canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; display: block; }
.cab:fullscreen { box-shadow: none; border: 0; aspect-ratio: auto; }
.cab:fullscreen canvas { object-fit: contain; }

.cab__overlay {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(7,6,15,.82), rgba(7,6,15,.94));
  padding: 24px;
}
.cab__overlay[hidden] { display: none; }
.cab__thumb { position: absolute; inset: 0; z-index: 4; object-fit: cover; width: 100%; height: 100%; opacity: .45; filter: blur(2px) saturate(.7); }
.cab__panel {
  position: relative; z-index: 6; display: grid; gap: 18px; justify-items: center; max-width: 520px;
  padding: 30px 34px; background: rgba(7,6,15,.82); border: 2px solid var(--line-2);
  box-shadow: 6px 6px 0 rgba(0,0,0,.6), 0 0 40px rgba(0,0,0,.6);
}
.cab__title { font-family: var(--pixel); font-size: clamp(11px, 2vw, 16px); color: #fff; line-height: 1.6; text-shadow: 0 0 14px rgba(34,240,255,.5); }
.cab__note { color: var(--muted); font-size: 14px; margin: 0; }
.cab__note b { color: var(--yellow); font-weight: 500; }

.pbar { width: min(440px, 80vw); }
.pbar__track {
  height: 22px; border: 2px solid var(--cyan); padding: 3px; background: rgba(0,0,0,.6);
  box-shadow: 0 0 14px rgba(34,240,255,.35), inset 0 0 8px rgba(34,240,255,.2);
}
.pbar__fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(to right, var(--cyan) 0 10px, transparent 10px 13px);
  box-shadow: 0 0 10px var(--cyan);
  transition: width .15s linear;
}
.pbar__label { font-family: var(--pixel); font-size: 10px; color: var(--cyan); margin-top: 12px; display: flex; justify-content: space-between; }

.cab__err { position: relative; z-index: 6; color: var(--red); font-family: var(--pixel); font-size: 10px; line-height: 1.8; max-width: 520px; }
.cab__err small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); margin: 10px 0 16px; }
.cab__err code { font-family: var(--pixel); font-size: 9px; color: var(--yellow); }

/* Unity's own warning/error banners (showBanner) */
.cab__banner { position: absolute; left: 0; right: 0; top: 0; z-index: 7; }
.cab__banner-item { font-size: 13px; padding: 8px 14px; background: rgba(255,225,74,.92); color: #1a1600; }
.cab__banner-item--error { background: rgba(255,77,109,.94); color: #fff; }
.cab__banner-item a { color: inherit; text-decoration: underline; }

.cab-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.cab-bar__hint { color: var(--dim); font-size: 13px; font-family: var(--pixel); font-size: 8px; letter-spacing: .06em; }
.cab-bar__hint b { color: var(--muted); font-weight: 400; }

.game-info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 56px 0 24px; }
.game-info h2 { font-family: var(--pixel); font-size: 12px; color: var(--cyan); margin-bottom: 16px; }
.game-info__desc { color: var(--muted); font-size: 17px; }
.controls { display: grid; gap: 10px; margin: 0; }
.controls div { display: flex; align-items: center; gap: 14px; }
.controls dt { margin: 0; flex: 0 0 auto; }
.controls dd { margin: 0; color: var(--muted); font-size: 15px; }
kbd {
  display: inline-block; font-family: var(--pixel); font-size: 9px; color: var(--text);
  background: var(--panel-2); border: 2px solid var(--line-2); border-bottom-width: 4px;
  padding: 7px 9px 6px; min-width: 32px; text-align: center; white-space: nowrap;
}
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.facts dt { font-family: var(--pixel); font-size: 8px; color: var(--dim); padding-top: 4px; }
.facts dd { margin: 0; color: var(--text); }

.more { padding: 40px 0 80px; }
.more h2 { font-family: var(--pixel); font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.more .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.more .card__body { padding: 14px 16px 16px; }
.more .card__text { display: none; }

/* 404 */
.gameover { min-height: calc(100svh - 64px); display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.gameover h1 { font-family: var(--pixel); font-size: clamp(28px, 7vw, 64px); color: var(--red); text-shadow: 0 0 24px rgba(255,77,109,.6), 4px 4px 0 #3a0a14; margin-bottom: 20px; }
.gameover p { color: var(--muted); margin-bottom: 30px; }

/* ---------- konami easter egg ---------- */
body.is-rainbow { animation: hue 4s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .game-info { grid-template-columns: 1fr; }
  .wide { grid-template-columns: 1fr; }
  .wide__thumb { border-right: 0; border-bottom: 2px solid var(--line); aspect-ratio: 16 / 7; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column;
         background: rgba(7,6,15,.97); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; }
  .socials { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .topbar .wrap { justify-content: space-between; }
  .hero { min-height: calc(100svh - 64px); padding: 56px 0 100px; }
  .hero__kicker { font-size: 8px; gap: 8px 12px; }
  .hero__kicker span::before { margin-right: 10px; }
  .hero__grid { height: 36%; }
  .section { padding: 60px 0; }
  .grid { grid-template-columns: 1fr; }
  .cab { box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--line), 6px 8px 0 rgba(0,0,0,.6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__grid, .blink, .hero__scroll::after, body.is-rainbow { animation: none; }
  .card, .wide, .btn, .card__thumb img { transition: none; }
}
