/* STUDIO+1 — 8-bit arcade design system (original build, no external brand assets) */

:root {
  --bg: #060609;
  --panel: #0e0e15;
  --ink: #f4f4f4;
  --dim: #8b8b96;
  --line: #23232e;
  --p1: #ff2d78;   /* player 1 — magenta */
  --p2: #2de2e6;   /* player 2 — cyan */
  --coin: #ffb703; /* coins & scores only */
  --px: 4px;
  --font-pixel: 'Press Start 2P', monospace;
  --font-term: 'VT323', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  /* faint pixel-grid graph paper */
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: var(--font-term);
  font-size: 21px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--p1); color: var(--bg); }
img { max-width: 100%; display: block; }

h1, h2, h3, .btn, nav, .hud, .pix { font-family: var(--font-pixel); }

/* ---------- CRT scanlines + vignette ---------- */
.crt::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.035) 0 1px, transparent 1px 3px);
}
.crt::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,0.55) 100%);
}

/* ---------- starfield ---------- */
.stars, .stars::before, .stars::after {
  content: "";
  position: fixed; inset: -100vh 0 0 0;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 30px 40px, #ffffff80 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 160px 120px, #ffffff50 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 270px 60px, #2de2e670 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 190px, #ff2d7860 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 220px 230px, #ffffff58 50%, transparent 51%),
    radial-gradient(2px 2px at 40px 250px, #ffb70350 50%, transparent 51%);
  background-size: 300px 260px;
  animation: starfall 90s linear infinite;
}
.stars::after { background-position: 150px 100px; animation-duration: 140s; opacity: 0.6; }
@keyframes starfall { from { transform: translateY(0); } to { transform: translateY(100vh); } }

main, header, footer, section { position: relative; z-index: 1; }

/* ---------- layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.kicker {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--p2);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.kicker::before { content: "// "; color: var(--dim); }

h2.title {
  font-size: clamp(20px, 3.6vw, 34px);
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2.title .p1 { color: var(--p1); }
h2.title .p2 { color: var(--p2); }
.p1 { color: var(--p1); }
.p2 { color: var(--p2); }
.coin-c { color: var(--coin); }

.sub { color: var(--dim); font-size: 23px; max-width: 640px; margin-bottom: 48px; }

.glow-p1 { text-shadow: 0 0 8px rgba(255,45,120,0.8), 0 0 28px rgba(255,45,120,0.35); }
.glow-p2 { text-shadow: 0 0 8px rgba(45,226,230,0.8), 0 0 28px rgba(45,226,230,0.35); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,6,9,0.94);
  border-bottom: 3px solid var(--line);
  font-size: 10px;
}
.hud-inner {
  max-width: 1380px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hud .logo { color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: 1px; }
.hud .logo .plus { color: var(--p1); }
.hud nav { display: flex; gap: 22px; }
.hud nav a { color: var(--dim); text-decoration: none; padding: 4px 0; letter-spacing: 1px; }
.hud nav a:hover { color: var(--ink); }
.hud nav a.active { color: var(--p2); border-bottom: 2px solid var(--p2); }
.hud .credits-count { color: var(--dim); }
.hud .credits-count b { color: var(--coin); font-weight: normal; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 17px 30px;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--p1);
  border: var(--px) solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform 0.05s steps(1), box-shadow 0.05s steps(1);
  cursor: pointer;
  letter-spacing: 1px;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: none; }
.btn.alt { background: var(--p2); }
.btn.ghost { background: transparent; color: var(--p2); border-color: var(--p2); box-shadow: 6px 6px 0 0 rgba(45,226,230,0.4); }

/* ---------- hero / title screen ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero .insert {
  font-family: var(--font-pixel);
  font-size: 10px; color: var(--dim); letter-spacing: 3px;
  margin-bottom: 34px;
}
.hero .insert .coin-c { animation: coinpulse 1.4s steps(2) infinite; }
@keyframes coinpulse { 50% { opacity: 0.3; } }
.hero h1 {
  font-size: clamp(26px, 6vw, 58px);
  line-height: 1.45;
  text-transform: uppercase;
}
.hero .tagline { margin-top: 26px; font-size: 25px; color: var(--dim); max-width: 620px; }
.press-start {
  margin-top: 54px;
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.8vw, 16px);
  color: var(--coin);
  letter-spacing: 3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- pixel invader sprite (box-shadow art) ---------- */
.invader {
  --s: 6px;
  width: var(--s); height: var(--s);
  margin: 0 auto 40px;
  background: transparent;
  position: relative;
  transform: translateX(calc(var(--s) * -5));
  animation: hover-bob 1.6s steps(2) infinite;
  box-shadow:
    calc(var(--s)*2) 0 var(--p2), calc(var(--s)*8) 0 var(--p2),
    calc(var(--s)*3) var(--s) var(--p2), calc(var(--s)*7) var(--s) var(--p2),
    calc(var(--s)*2) calc(var(--s)*2) var(--p2), calc(var(--s)*3) calc(var(--s)*2) var(--p2), calc(var(--s)*4) calc(var(--s)*2) var(--p2), calc(var(--s)*5) calc(var(--s)*2) var(--p2), calc(var(--s)*6) calc(var(--s)*2) var(--p2), calc(var(--s)*7) calc(var(--s)*2) var(--p2), calc(var(--s)*8) calc(var(--s)*2) var(--p2),
    var(--s) calc(var(--s)*3) var(--p2), calc(var(--s)*2) calc(var(--s)*3) var(--p2), calc(var(--s)*4) calc(var(--s)*3) var(--p2), calc(var(--s)*5) calc(var(--s)*3) var(--p2), calc(var(--s)*6) calc(var(--s)*3) var(--p2), calc(var(--s)*8) calc(var(--s)*3) var(--p2), calc(var(--s)*9) calc(var(--s)*3) var(--p2),
    0 calc(var(--s)*4) var(--p2), var(--s) calc(var(--s)*4) var(--p2), calc(var(--s)*2) calc(var(--s)*4) var(--p2), calc(var(--s)*3) calc(var(--s)*4) var(--p2), calc(var(--s)*4) calc(var(--s)*4) var(--p2), calc(var(--s)*5) calc(var(--s)*4) var(--p2), calc(var(--s)*6) calc(var(--s)*4) var(--p2), calc(var(--s)*7) calc(var(--s)*4) var(--p2), calc(var(--s)*8) calc(var(--s)*4) var(--p2), calc(var(--s)*9) calc(var(--s)*4) var(--p2), calc(var(--s)*10) calc(var(--s)*4) var(--p2),
    0 calc(var(--s)*5) var(--p2), calc(var(--s)*2) calc(var(--s)*5) var(--p2), calc(var(--s)*3) calc(var(--s)*5) var(--p2), calc(var(--s)*4) calc(var(--s)*5) var(--p2), calc(var(--s)*5) calc(var(--s)*5) var(--p2), calc(var(--s)*6) calc(var(--s)*5) var(--p2), calc(var(--s)*7) calc(var(--s)*5) var(--p2), calc(var(--s)*8) calc(var(--s)*5) var(--p2), calc(var(--s)*10) calc(var(--s)*5) var(--p2),
    0 calc(var(--s)*6) var(--p2), calc(var(--s)*2) calc(var(--s)*6) var(--p2), calc(var(--s)*8) calc(var(--s)*6) var(--p2), calc(var(--s)*10) calc(var(--s)*6) var(--p2),
    calc(var(--s)*3) calc(var(--s)*7) var(--p2), calc(var(--s)*4) calc(var(--s)*7) var(--p2), calc(var(--s)*6) calc(var(--s)*7) var(--p2), calc(var(--s)*7) calc(var(--s)*7) var(--p2);
}
@keyframes hover-bob { 50% { transform: translateX(calc(var(--s) * -5)) translateY(calc(var(--s) * -1)); } }

/* ---------- background decorations ---------- */
.sprite {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-pixel);
  opacity: 0.55;
  animation: floaty 3.6s steps(2) infinite;
  text-shadow: 0 0 10px currentColor;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }

.invader.mini {
  --s: 3px;
  position: absolute; margin: 0;
  opacity: 0.6;
  animation-duration: 2.2s;
}
.invader.mini.alt-c { filter: hue-rotate(155deg) saturate(1.3); } /* cyan -> magenta */

.watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-pixel);
  font-size: clamp(120px, 24vw, 250px);
  line-height: 1;
  color: rgba(255,255,255,0.028);
}

/* ---------- mini arcade characters ---------- */

/* spinning coin */
.coin-spin {
  position: absolute; z-index: 0; pointer-events: none;
  width: 18px; height: 18px;
  background: var(--coin);
  border: 3px solid #a97a02;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255,183,3,0.55);
  animation: coinflip 1.5s steps(6) infinite;
}
@keyframes coinflip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.12); } }

/* marching invader (wrap an .invader.mini inside .march) */
.march {
  position: absolute; z-index: 0; pointer-events: none;
  animation: marchacross 48s steps(140) infinite;
}
.march .invader.mini { position: static; }
@keyframes marchacross {
  from { transform: translateX(-90px); }
  to   { transform: translateX(calc(100vw + 30px)); }
}

/* chomper + ghost runway (place above .pixel-ground) */
.chomp-strip {
  position: relative;
  height: 58px;
  overflow: hidden;
}
.chomp-strip .dots {
  position: absolute; inset: 0;
  background: radial-gradient(4px 4px at 24px 50%, rgba(244,244,244,0.5) 46%, transparent 52%);
  background-size: 48px 100%;
  background-repeat: repeat-x;
}
.chomp-strip .eaten {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--bg);
  animation: eatpath 16s linear infinite;
}
@keyframes eatpath { from { width: 0; } to { width: 100%; } }
.chomp-strip .runner {
  position: absolute; top: 50%;
  display: flex; align-items: center; gap: 26px;
  transform: translateY(-50%);
  animation: runacross 16s linear infinite;
}
@keyframes runacross {
  from { transform: translate(-120px, -50%); }
  to   { transform: translate(100vw, -50%); }
}

.chomper {
  width: 26px; height: 26px; flex: none;
  background: var(--coin);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,183,3,0.4);
  animation: chomp 0.5s steps(1) infinite;
}
@keyframes chomp {
  0%, 100% { clip-path: polygon(50% 50%, 100% 10%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 90%); }
  50%      { clip-path: polygon(50% 50%, 100% 38%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 62%); }
}

.runner .ghost {
  width: 24px; height: 26px; flex: none;
  position: relative;
  background: var(--p1);
  clip-path: polygon(0 44%, 12% 44%, 12% 22%, 26% 22%, 26% 8%, 40% 8%, 40% 0, 60% 0, 60% 8%, 74% 8%, 74% 22%, 88% 22%, 88% 44%, 100% 44%, 100% 100%, 84% 84%, 67% 100%, 50% 84%, 33% 100%, 16% 84%, 0 100%);
  animation: ghost-bob 0.8s steps(2) infinite;
}
.runner .ghost.g2 { background: var(--p2); }
.runner .ghost::before {
  content: "";
  position: absolute; top: 9px; left: 4px;
  width: 6px; height: 7px; background: #fff;
  box-shadow: 10px 0 #fff;
}
.runner .ghost::after {
  content: "";
  position: absolute; top: 12px; left: 7px;
  width: 3px; height: 3px; background: #101040;
  box-shadow: 10px 0 #101040;
}
@keyframes ghost-bob { 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .stars, .stars::before, .stars::after, .sprite, .invader, .marquee-track,
  .chomp-strip .eaten, .chomp-strip .runner, .chomper, .runner .ghost, .march, .coin-spin,
  .press-start, .hero .insert .coin-c { animation: none !important; }
}

/* pixel-city crenellated ground strip */
.pixel-ground {
  height: 46px;
  background:
    repeating-linear-gradient(90deg, #10101a 0 30px, transparent 30px 58px, #10101a 58px 74px, transparent 74px 112px) top left / 112px 22px repeat-x,
    repeating-linear-gradient(90deg, rgba(255,45,120,0.5) 0 4px, transparent 4px 46px, rgba(45,226,230,0.5) 46px 50px, transparent 50px 88px) top left / 88px 8px repeat-x,
    linear-gradient(#10101a, #10101a) bottom left / 100% 24px no-repeat;
}

/* checkerboard zipper divider */
.pixel-divider {
  height: 20px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 20px, transparent 20px 40px) top left / 40px 10px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 20px, var(--line) 20px 40px) bottom left / 40px 10px repeat-x;
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: var(--panel);
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-pixel); font-size: 11px;
  padding: 13px 0;
}
.marquee-track { display: inline-block; animation: mscroll 26s linear infinite; }
.marquee-track span { margin-right: 44px; color: var(--dim); }
.marquee-track span:nth-child(odd) { color: var(--ink); }
.marquee-track .star { color: var(--coin); }
@keyframes mscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- service cards (power-ups) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card {
  background: var(--panel);
  border: 3px solid var(--line);
  padding: 30px 26px 34px;
  position: relative;
  transition: transform 0.05s steps(1);
}
.card:hover { border-color: var(--p1); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 0 var(--p1); }
.card:nth-child(even):hover { border-color: var(--p2); box-shadow: 6px 6px 0 0 var(--p2); }
.card .glyph {
  font-family: var(--font-pixel);
  font-size: 26px; line-height: 1;
  margin-bottom: 20px;
  color: var(--p1);
}
.card:nth-child(even) .glyph { color: var(--p2); }
.card h3 { font-size: 12px; text-transform: uppercase; line-height: 1.8; margin-bottom: 12px; }
.card p { color: var(--dim); font-size: 20px; }
.card .lvl {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-pixel); font-size: 9px; color: var(--dim);
}
/* skill bar */
.bar { margin-top: 20px; height: 12px; border: 2px solid var(--line); padding: 2px; }
.bar i {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--p1) 0 8px, transparent 8px 10px);
}
.card:nth-child(even) .bar i { background: repeating-linear-gradient(90deg, var(--p2) 0 8px, transparent 8px 10px); }

/* ---------- portfolio cabinets ---------- */
.cab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; }
.cab {
  display: block; text-decoration: none;
  background: var(--panel);
  border: 3px solid var(--line);
  transition: transform 0.05s steps(1);
}
.cab:hover { border-color: var(--coin); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 0 var(--coin); }
.cab .screen {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  border-bottom: 3px solid var(--line);
  background:
    linear-gradient(rgba(6,6,9,0.25), rgba(6,6,9,0.25)),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,0.045) 14px 15px);
  text-align: center;
  padding: 20px;
}
.cab .screen .art { font-family: var(--font-pixel); font-size: 34px; }
.cab .screen .art-name {
  font-family: var(--font-pixel); font-size: 12px; color: var(--ink);
  line-height: 1.8; text-transform: uppercase;
}
.cab .plate { padding: 18px 18px 20px; }
.cab .plate .cat { font-family: var(--font-pixel); font-size: 9px; color: var(--p2); letter-spacing: 1px; text-transform: uppercase; }
.cab .plate .result { color: var(--dim); font-size: 19px; margin-top: 8px; }
.cab .plate .score {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-family: var(--font-pixel); font-size: 10px; color: var(--coin);
}
/* per-project screen tints */
.cab.t1 .screen { background-color: rgba(255,45,120,0.12); }
.cab.t2 .screen { background-color: rgba(45,226,230,0.12); }
.cab.t3 .screen { background-color: rgba(255,183,3,0.12); }

/* ---------- live Instagram feed ---------- */
.cab .screen.shot { padding: 0; aspect-ratio: 1 / 1; display: block; position: relative; }
.cab .screen.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.cab:hover .screen.shot img { filter: saturate(1.1); }
.cab .screen.shot .type-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-pixel); font-size: 9px;
  color: var(--bg); background: var(--coin);
  padding: 6px 8px;
  border: 2px solid var(--bg);
}
.cab .screen.shot .type-badge.reel { background: var(--p1); color: #fff; }
.cab .screen.shot .type-badge.carousel { background: var(--p2); }

/* ---------- client case sections ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.tag {
  font-family: var(--font-pixel); font-size: 9px;
  color: var(--p2); border: 2px solid var(--line);
  padding: 8px 10px; letter-spacing: 1px; text-transform: uppercase;
}
.tag:nth-child(even) { color: var(--p1); }

.case { scroll-margin-top: 80px; }
.case .tagline { color: var(--ink); font-size: 24px; font-style: normal; max-width: 640px; margin: 6px 0 18px; }
.case .bio { color: var(--dim); font-size: 21px; max-width: 700px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 34px; }
.shots a { display: block; border: 3px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.shots a:hover { border-color: var(--coin); }
.shots img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 0.15s steps(3); }
.shots a:hover img { transform: scale(1.05); filter: saturate(1.1); }
.shots a.feature { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 680px) { .shots a.feature { grid-column: span 1; aspect-ratio: 4 / 3; } }

/* ---------- sticker board — the chosen project-work layout ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 38px 28px;
  padding: 14px 0 6px;
  margin-top: 28px;
}
.board a {
  display: block;
  background: #e8e8e8;
  padding: 10px 10px 36px;
  border: 3px solid #111;
  box-shadow: 7px 7px 0 0 rgba(255,183,3,0.6);
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.12s steps(3);
  cursor: zoom-in;
  position: relative;
}
.board a:nth-child(2n) { --tilt: 1.8deg; }
.board a:nth-child(3n) { --tilt: -1.2deg; }
.board a:nth-child(4n) { --tilt: 2.4deg; }
.board a:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.board img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.board a::after {
  content: attr(data-cap);
  position: absolute; left: 6px; right: 6px; bottom: 10px;
  text-align: center;
  font-family: var(--font-pixel); font-size: 8px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board a::before {
  content: "";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 18px;
  background: rgba(255,45,120,0.75);
  border: 2px solid rgba(0,0,0,0.3);
}
.board a:nth-child(3n)::before { background: rgba(45,226,230,0.75); }
.board a:nth-child(4n)::before { background: rgba(255,183,3,0.8); }

/* big hero image inside showcase panels */
.sc-hero { display: block; margin-top: 26px; border: 3px solid var(--line); cursor: zoom-in; overflow: hidden; }
.sc-hero img { width: 100%; max-height: 580px; object-fit: cover; display: block; }
.sc-hero:hover { border-color: var(--coin); }

/* ---------- arcade lightbox ---------- */
#arcade-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(6,6,9,0.97);
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 28px;
}
#arcade-lightbox.open { display: flex; }
#arcade-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 74vh;
  object-fit: contain;
  border: var(--px) solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--coin);
  background: #000;
}
#arcade-lightbox .lb-bar {
  display: flex; gap: 22px; align-items: center;
  margin-top: 30px;
  font-family: var(--font-pixel); font-size: 10px; color: var(--coin);
}
#arcade-lightbox .lb-btn {
  font-family: var(--font-pixel); font-size: 10px;
  color: var(--ink); background: transparent;
  border: 3px solid var(--ink);
  padding: 12px 16px; cursor: pointer; letter-spacing: 1px;
}
#arcade-lightbox .lb-btn:hover { color: var(--coin); border-color: var(--coin); }
#arcade-lightbox .lb-close { position: absolute; top: 20px; right: 24px; }
#arcade-lightbox .lb-cap {
  margin-top: 16px;
  font-family: var(--font-pixel); font-size: 9px; color: var(--dim);
  letter-spacing: 1px; text-align: center; max-width: 80vw;
}

/* ---------- hi-score table ---------- */
.scores { border: 3px solid var(--line); background: var(--panel); }
.scores-head, .score-row {
  display: grid;
  grid-template-columns: 74px 1fr 150px;
  gap: 12px; padding: 15px 22px; align-items: center;
}
.scores-head {
  font-family: var(--font-pixel); font-size: 10px;
  color: var(--bg); background: var(--p2); text-transform: uppercase;
}
.score-row { border-top: 2px solid var(--line); font-size: 21px; }
.score-row:hover { background: rgba(45,226,230,0.07); }
.score-row .rank { font-family: var(--font-pixel); font-size: 11px; color: var(--p1); }
.score-row .pts { font-family: var(--font-pixel); font-size: 10px; color: var(--coin); text-align: right; }

/* ---------- CTA panel ---------- */
.cta-panel {
  border: var(--px) solid var(--p1);
  background: var(--panel);
  padding: 60px 32px;
  text-align: center;
}
.cta-panel h2 { font-size: clamp(16px, 3vw, 26px); line-height: 1.6; text-transform: uppercase; }
.cta-panel p { color: var(--dim); max-width: 520px; margin: 16px auto 0; }
.cta-panel .row { margin-top: 38px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ---------- selectable power-up cards + loadout bar ---------- */
.card.selectable { cursor: pointer; user-select: none; }
.card.selectable .equip {
  margin-top: 20px;
  font-family: var(--font-pixel); font-size: 9px;
  color: var(--dim); letter-spacing: 1px;
}
.card.selectable .equip::before { content: "[ ] "; }
.card.selectable.selected { border-color: var(--coin); box-shadow: 6px 6px 0 0 var(--coin); transform: translate(-3px, -3px); }
.card.selectable.selected .equip { color: var(--coin); }
.card.selectable.selected .equip::before { content: "[✓] "; }
.card.selectable.selected .lvl { color: var(--coin); }

.loadout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(6,6,9,0.96);
  border-top: 3px solid var(--coin);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform 0.15s steps(3);
}
.loadout-bar.show { transform: translateY(0); }
.loadout-bar .count { font-family: var(--font-pixel); font-size: 10px; color: var(--coin); letter-spacing: 1px; }
.loadout-bar .btn { padding: 13px 24px; font-size: 11px; margin: 0; }

/* ---------- arcade form ---------- */
.arcade-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.arcade-form label.f-label {
  font-family: var(--font-pixel); font-size: 10px;
  color: var(--p2); letter-spacing: 1px; margin-top: 20px;
}
.arcade-form label.f-label .req { color: var(--p1); }
.arcade-form input, .arcade-form textarea, .arcade-form select {
  font-family: var(--font-term); font-size: 21px;
  color: var(--ink); background: var(--bg);
  border: 3px solid var(--line); border-radius: 0;
  padding: 12px 14px; resize: vertical;
  width: 100%;
}
.arcade-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--p2) 50%), linear-gradient(135deg, var(--p2) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.arcade-form input:focus, .arcade-form textarea:focus, .arcade-form select:focus {
  outline: none; border-color: var(--p2);
  box-shadow: 4px 4px 0 0 rgba(45,226,230,0.25);
}
.arcade-form ::placeholder { color: #4a4a55; }
.arcade-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
@media (max-width: 620px) { .arcade-form .two-col { grid-template-columns: 1fr; } }
.arcade-form .btn { align-self: center; margin-top: 34px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }
.checks label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 3px solid var(--line);
  font-family: var(--font-pixel); font-size: 9px; line-height: 1.6;
  color: var(--dim); cursor: pointer; letter-spacing: 1px;
}
.checks label:hover { border-color: var(--p2); color: var(--ink); }
.checks input { accent-color: var(--coin); width: 18px; height: 18px; flex: none; }
.checks input:checked + span { color: var(--coin); }
.checks label:has(input:checked) { border-color: var(--coin); }

/* ---------- footer ---------- */
footer {
  border-top: 3px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 9px; color: var(--dim); line-height: 2.6;
}
footer .foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer .foot-links a { color: var(--ink); text-decoration: none; }
footer .foot-links a:hover { color: var(--p2); }

/* ---------- page head (subpages) ---------- */
.page-head { padding: 160px 0 30px; text-align: center; }
.page-head h1 {
  font-size: clamp(22px, 4.6vw, 44px);
  line-height: 1.5; text-transform: uppercase;
}
.page-head .sub { margin: 20px auto 0; }

/* mobile menu button (shown ≤720px, injected by app.js) */
.menu-btn {
  display: none;
  font-family: var(--font-pixel); font-size: 10px;
  color: var(--ink); background: transparent;
  border: 3px solid var(--line);
  padding: 10px 12px; cursor: pointer; letter-spacing: 1px;
}
.menu-btn:hover { border-color: var(--p2); color: var(--p2); }

@media (max-width: 720px) {
  .hud nav { display: none; }
  .hud .credits-count { display: none; }
  .menu-btn { display: block; }
  .hud.open nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,6,9,0.98);
    border-bottom: 3px solid var(--p2);
  }
  .hud.open nav a { padding: 18px 24px; border-top: 2px solid var(--line); font-size: 11px; }
  .hud.open nav a.active { border-bottom: 0; color: var(--p2); }

  /* phones: two cards per row instead of one giant card */
  .cab-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cab .plate { padding: 12px 10px 14px; }
  .cab .plate .cat { font-size: 7px; }
  .cab .plate .result { font-size: 15px; margin-top: 6px; }
  .cab .plate .score { font-size: 8px; margin-top: 10px; gap: 6px; }

  .board { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .board a { padding: 6px 6px 26px; box-shadow: 5px 5px 0 0 rgba(255,183,3,0.6); }
  .board a::after { font-size: 6px; bottom: 8px; left: 4px; right: 4px; }
  .board a::before { width: 36px; height: 12px; top: -8px; }

  .shots { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .scores-head, .score-row { grid-template-columns: 56px 1fr 110px; }
}
