@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Press+Start+2P&display=swap");

:root {
  --arcade-ink: #1a0533;
  --arcade-deep: #080113;
  --arcade-pink: #ff0080;
  --arcade-cyan: #00ffcc;
  --arcade-yellow: #ffff55;
  --arcade-blue: #4f7dff;
  --arcade-metal: #b8b6cf;
  --pixel-font: "Press Start 2P", "Courier New", monospace;
  --soft-font: "Nunito", "Segoe UI", sans-serif;
}

.games-page *,
.games-page *::before,
.games-page *::after {
  box-sizing: border-box;
}

.games-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 0, 128, 0.18), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(0, 255, 204, 0.17), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 85, 0.12), transparent 34%),
    linear-gradient(135deg, #120621 0%, #23103d 48%, #071824 100%);
  color: #fff8ff;
}

.games-main {
  min-height: 100vh;
}

.games-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 3rem;
}

.games-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.games-hero-copy h1 {
  margin: 0.2rem 0 0.65rem;
  color: #fff;
  font-family: var(--pixel-font);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.08;
  text-shadow:
    0 0 12px rgba(255, 0, 128, 0.75),
    0 0 28px rgba(0, 255, 204, 0.48),
    4px 4px 0 rgba(255, 0, 128, 0.28);
}

.games-hero-copy p {
  max-width: 48rem;
  margin: 0;
  color: rgba(255, 248, 255, 0.82);
  font: 800 clamp(1rem, 2vw, 1.18rem)/1.7 var(--soft-font);
}

.games-kicker {
  margin: 0;
  color: var(--arcade-cyan);
  font-family: var(--pixel-font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 255, 204, 0.72);
}

.games-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.games-hero-badges span,
.game-card-tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.18);
  color: #fff8ff;
  font: 900 0.82rem/1 var(--soft-font);
  padding: 0.48rem 0.72rem;
  backdrop-filter: blur(10px);
}

.arcade-cabinet-wrap {
  display: grid;
  place-items: center;
  perspective: 1200px;
  overflow: clip;
  margin: 1.2rem 0 1.7rem;
  padding-bottom: 1.2rem;
}

.arcade-cabinet {
  --cabinet-edge: rgba(255, 255, 255, 0.18);
  position: relative;
  width: min(940px, 100%);
  padding: clamp(1rem, 2vw, 1.7rem) clamp(1rem, 2.4vw, 2.2rem) clamp(1.1rem, 2vw, 1.8rem);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px 34px 26px 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 14% 86%, rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #280854 0%, var(--arcade-ink) 42%, #090216 100%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.04),
    inset 24px 0 44px rgba(255, 0, 128, 0.12),
    inset -24px 0 44px rgba(0, 255, 204, 0.1),
    0 45px 110px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(255, 0, 128, 0.22);
  clip-path: polygon(7% 0, 93% 0, 100% 17%, 94% 100%, 6% 100%, 0 17%);
}

.arcade-cabinet::before,
.arcade-cabinet::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 3%;
  width: 11%;
  background: linear-gradient(180deg, rgba(0, 255, 204, 0.22), transparent 42%, rgba(255, 0, 128, 0.18));
  opacity: 0.45;
  pointer-events: none;
}

.arcade-cabinet::before {
  left: 0;
  border-right: 1px solid var(--cabinet-edge);
  clip-path: polygon(0 0, 100% 6%, 72% 100%, 0 100%);
}

.arcade-cabinet::after {
  right: 0;
  border-left: 1px solid var(--cabinet-edge);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 28% 100%);
}

.cabinet-glow {
  position: absolute;
  inset: 2% 7%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 0, 128, 0.32), transparent 30%),
    radial-gradient(circle at 76% 22%, rgba(0, 255, 204, 0.28), transparent 28%);
  filter: blur(24px);
  opacity: 0.72;
  pointer-events: none;
}

.arcade-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 4px solid #2bf5ff;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 0, 128, 0.28), transparent 18% 82%, rgba(0, 255, 204, 0.26)),
    linear-gradient(135deg, #19032e, #34086d);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(0, 255, 204, 0.52),
    0 0 30px rgba(255, 0, 128, 0.38);
  padding: 1rem 0;
}

.marquee-bulbs {
  position: absolute;
  inset: 0.34rem;
  border-radius: 12px;
  background:
    radial-gradient(circle, var(--arcade-yellow) 0 28%, transparent 30%) 0 0 / 36px 100%;
  opacity: 0.18;
  animation: marqueeBulbs 900ms steps(2) infinite;
}

.marquee-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  gap: 2.2rem;
  color: #fff;
  font-family: var(--pixel-font);
  font-size: clamp(0.8rem, 2vw, 1.35rem);
  text-shadow:
    0 0 8px var(--arcade-yellow),
    0 0 18px var(--arcade-pink);
  text-transform: uppercase;
  white-space: nowrap;
  animation: marqueeSlide 12s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
}

.marquee-track span::before {
  content: "★";
  margin-right: 2.2rem;
  color: var(--arcade-yellow);
}

.cabinet-face {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: clamp(0.6rem, 1.5vw, 1.1rem);
  align-items: center;
  margin-top: 1rem;
}

.speaker-stack {
  display: grid;
  gap: 0.72rem;
  padding: 1rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.22);
}

.speaker-stack span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #070112, #686076 42%, #070112);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.18);
}

.screen-bezel {
  position: relative;
  border: 12px solid #08020f;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 22% 76%, rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, #171020, #040107);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.14),
    inset 0 0 28px rgba(0, 0, 0, 0.82),
    0 0 32px rgba(0, 255, 204, 0.18);
  padding: 0.85rem;
}

.screen-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  color: var(--arcade-cyan);
  font-family: var(--pixel-font);
  font-size: clamp(0.55rem, 1.4vw, 0.78rem);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}

.screen-status strong {
  color: var(--arcade-yellow);
}

#arcade-best {
  color: #fff8a8;
}

.crt-screen {
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(0, 255, 204, 0.52);
  border-radius: 24px;
  background: #07131d;
  box-shadow:
    inset 0 0 46px rgba(0, 255, 204, 0.18),
    inset 0 0 90px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(0, 255, 204, 0.28);
  aspect-ratio: 640 / 420;
}

#arcade-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #07131d;
}

.crt-vignette,
.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-vignette {
  border-radius: 35% / 9%;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 26%);
  mix-blend-mode: screen;
}

.crt-scanlines {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(255, 0, 128, 0.08), rgba(0, 255, 204, 0.06));
  opacity: 0.4;
  animation: scanlineDrift 4s linear infinite;
}

.screen-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  color: #fff;
  text-align: center;
  text-shadow: 0 0 18px var(--arcade-cyan);
  transition: opacity 180ms ease, transform 180ms ease;
}

.screen-message.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.screen-message strong {
  color: var(--arcade-yellow);
  font-family: var(--pixel-font);
  font-size: clamp(1rem, 3vw, 2rem);
  line-height: 1.45;
  text-transform: uppercase;
}

.screen-message span {
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.82);
  font: 900 1rem/1.55 var(--soft-font);
}

.control-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(260px, 1.4fr) minmax(120px, 0.8fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
  align-items: center;
  margin-top: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px 18px 30px 30px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 18% 82%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #331164 0%, #170529 100%);
  box-shadow:
    inset 0 18px 28px rgba(255, 255, 255, 0.06),
    inset 0 -20px 34px rgba(0, 0, 0, 0.32),
    0 18px 36px rgba(0, 0, 0, 0.32);
  transform: perspective(600px) rotateX(6deg);
}

.joystick {
  --joy-x: 0;
  --joy-y: 0;
  position: relative;
  width: 132px;
  height: 132px;
  justify-self: center;
}

.joy-hit {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.joy-up,
.joy-down {
  left: 38px;
  width: 56px;
  height: 44px;
}

.joy-up { top: 0; }
.joy-down { bottom: 0; }

.joy-left,
.joy-right {
  top: 38px;
  width: 44px;
  height: 56px;
}

.joy-left { left: 0; }
.joy-right { right: 0; }

.joy-base {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.32), transparent 16%),
    linear-gradient(135deg, #0b0614, #302046);
  box-shadow:
    inset 0 0 0 8px #07020f,
    0 0 0 3px rgba(0, 255, 204, 0.32),
    0 16px 26px rgba(0, 0, 0, 0.34);
}

.joy-stick {
  position: absolute;
  left: 58px;
  top: 50px;
  width: 17px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #716781, #eeeaf9, #5f536e);
  transform: translate(calc(var(--joy-x) * 15px), calc(var(--joy-y) * 15px)) rotate(calc(var(--joy-x) * 10deg));
  transform-origin: bottom;
  transition: transform 90ms ease;
}

.joy-knob {
  position: absolute;
  left: 43px;
  top: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.75), transparent 20%),
    linear-gradient(135deg, #ff4ba5, #b40061);
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(255, 0, 128, 0.58),
    0 16px 24px rgba(0, 0, 0, 0.28);
  transform: translate(calc(var(--joy-x) * 18px), calc(var(--joy-y) * 18px));
  transition: transform 90ms ease;
}

.arcade-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: clamp(0.7rem, 2vw, 1.1rem);
}

.arcade-action,
.coin-slot,
.game-play-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.arcade-action {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 50%;
  color: #fff;
  font: 900 0.78rem/1.2 var(--soft-font);
  text-transform: uppercase;
  box-shadow:
    inset 0 8px 14px rgba(255, 255, 255, 0.26),
    inset 0 -12px 18px rgba(0, 0, 0, 0.26),
    0 12px 22px rgba(0, 0, 0, 0.32);
}

.arcade-action span {
  font-family: var(--pixel-font);
  font-size: clamp(0.58rem, 1.3vw, 0.8rem);
}

.arcade-action small {
  font-size: 0.7rem;
  opacity: 0.78;
}

.arcade-fire {
  background: radial-gradient(circle at 34% 28%, #ff9ccc, var(--arcade-pink) 58%, #870045);
}

.arcade-special {
  background: radial-gradient(circle at 34% 28%, #d9fff8, var(--arcade-cyan) 58%, #007766);
}

.arcade-start {
  background: radial-gradient(circle at 34% 28%, #fff8ad, var(--arcade-yellow) 58%, #9b8700);
  color: #2c1748;
}

.arcade-action:hover,
.coin-slot:hover,
.game-play-btn:hover {
  filter: saturate(1.1);
  transform: translateY(-3px) scale(1.03);
}

.arcade-action:active,
.coin-slot:active,
.game-play-btn:active {
  transform: translateY(2px) scale(0.96);
}

.arcade-special.is-cooling {
  filter: saturate(0.62);
}

.coin-slot {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  justify-self: center;
  min-width: 126px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #4a465d, #15111f);
  color: #fff;
  font: 900 0.78rem/1 var(--soft-font);
  padding: 0.9rem 1rem;
  text-transform: uppercase;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 12px 24px rgba(0, 0, 0, 0.32);
}

.coin-slot-hole {
  width: 74px;
  height: 10px;
  border-radius: 999px;
  background: #050308;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 12px rgba(255, 255, 85, 0.18);
}

.coin-slot.is-inserted .coin-slot-hole,
.coin-slot.needs-coin .coin-slot-hole {
  animation: coinBlink 650ms ease;
}

.coin-slot small {
  color: var(--arcade-cyan);
}

.cabinet-kickplate {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 0;
  width: min(56%, 420px);
  padding: 0.72rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #0c0712, #050208);
  box-shadow: inset 0 12px 18px rgba(255, 255, 255, 0.04);
}

.cabinet-kickplate span {
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #050208, #4a4258, #050208);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 0, 128, 0.08));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  padding: 1.15rem;
  animation: gameCardIn 520ms ease both;
  animation-delay: var(--delay, 0ms);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  backdrop-filter: blur(12px);
}

.game-card::after {
  content: attr(data-watermark);
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  opacity: 0.13;
  filter: blur(0.7px);
  font-size: 5rem;
  pointer-events: none;
  transform: rotate(-10deg);
  transition: transform 200ms ease, opacity 200ms ease;
}

.game-card:hover {
  border-color: rgba(0, 255, 204, 0.42);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 0, 128, 0.16);
  transform: translateY(-6px) scale(1.01);
}

.game-card:hover::after {
  opacity: 0.22;
  transform: rotate(-4deg) scale(1.08);
}

.game-card-emoji {
  display: block;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
  font-size: 3rem;
}

.game-card p {
  margin: 0;
  color: var(--arcade-cyan);
  font-family: var(--pixel-font);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0.45rem 0 0.65rem;
  color: #fff;
  font-family: var(--pixel-font);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.4;
  text-shadow: 0 0 14px rgba(255, 0, 128, 0.46);
}

.game-card-best {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.72rem;
  padding: 0.38rem 0.56rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff8a8;
  font: 900 0.78rem/1 var(--soft-font);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.game-card-best.has-score {
  border-color: rgba(255, 255, 85, 0.42);
  box-shadow: 0 0 18px rgba(255, 255, 85, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.game-card-description,
.game-card-controls {
  display: block;
  color: rgba(255, 248, 255, 0.78);
  font: 800 0.96rem/1.55 var(--soft-font);
}

.game-card-description {
  min-height: 4.5rem;
}

.game-card-controls {
  min-height: 3rem;
  margin-top: 0.65rem;
  border-left: 3px solid rgba(0, 255, 204, 0.36);
  padding-left: 0.7rem;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.9rem 0 1rem;
}

.game-card-tags span {
  color: #fff;
  font-size: 0.72rem;
  padding: 0.34rem 0.5rem;
}

.game-play-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 47px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--arcade-pink), var(--arcade-blue));
  box-shadow: 0 14px 28px rgba(255, 0, 128, 0.22);
  color: #fff;
  font: 900 0.92rem/1 var(--soft-font);
  text-decoration: none;
}

@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeBulbs {
  50% { opacity: 0.34; }
}

@keyframes scanlineDrift {
  to { transform: translateY(12px); }
}

@keyframes coinBlink {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), 0 0 12px rgba(255, 255, 85, 0.18); }
  45% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48), 0 0 26px rgba(255, 255, 85, 0.88); }
}

@keyframes gameCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .games-shell {
    width: min(100% - 1rem, 1220px);
    padding-top: 6rem;
  }

  .games-hero {
    grid-template-columns: 1fr;
  }

  .games-hero-badges {
    justify-content: flex-start;
  }

  .arcade-cabinet {
    clip-path: none;
    border-radius: 26px;
    transform: none;
  }

  .cabinet-face {
    grid-template-columns: 1fr;
  }

  .speaker-stack {
    display: none;
  }

  .screen-bezel {
    border-width: 8px;
    padding: 0.55rem;
  }

  .control-panel {
    grid-template-columns: 1fr;
    transform: none;
  }

  .coin-slot {
    width: min(100%, 220px);
  }

  .cabinet-kickplate {
    width: 82%;
  }
}

@media (max-width: 560px) {
  .games-hero-copy h1 {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .arcade-buttons {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .arcade-action {
    min-height: 72px;
  }

  .screen-status {
    gap: 0.42rem;
    font-size: 0.52rem;
  }
}

.neon-raider-wrap {
  position: relative;
  min-height: 850px;
  padding: 2rem 0 3.1rem;
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 0, 170, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 25%, rgba(255, 0, 170, 0.14), transparent 38%),
    radial-gradient(circle at 82% 20%, rgba(0, 200, 255, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(5, 0, 9, 0.72), rgba(11, 2, 30, 0.68));
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, 100% 100%;
  animation: arcadeGridDrift 18s linear infinite;
}

.neon-nebula {
  position: absolute;
  inset: -50px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 0, 170, 0.16), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(0, 200, 255, 0.13), transparent 45%),
    radial-gradient(circle at 55% 92%, rgba(150, 0, 255, 0.13), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 140, 0, 0.08), transparent 40%);
  filter: blur(4px);
  opacity: 0.9;
  animation: arcadeNebulaDrift 24s ease-in-out infinite alternate;
}

.neon-cabinet {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, calc(100vw - 1.2rem));
  padding: 0;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  transform: scale(1.12);
  transform-origin: top center;
  filter: drop-shadow(0 30px 58px rgba(0, 0, 0, 0.85));
}

.neon-cabinet::before,
.neon-cabinet::after {
  display: none;
}

.side-art {
  position: absolute;
  top: 78px;
  bottom: 46px;
  width: 11px;
  border-radius: 6px;
  opacity: 0.72;
  background: repeating-linear-gradient(45deg, #ff2fa1 0 4px, #7a00ff 4px 8px, #00e5ff 8px 12px, #7a00ff 12px 16px, #ff2fa1 16px 20px);
  box-shadow: 0 0 16px rgba(255, 0, 190, 0.45);
  animation: arcadeSideLights 6s linear infinite;
}

.side-art-left {
  left: calc(50% - 222px);
}

.side-art-right {
  right: calc(50% - 222px);
}

.neon-marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 422px;
  height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 3px solid #aa00bb;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 0, 128, 0.2), transparent 22% 78%, rgba(0, 255, 204, 0.18)),
    #1e0650;
  box-shadow: 0 0 26px rgba(160, 0, 190, 0.62), inset 0 0 18px rgba(160, 0, 190, 0.16);
  text-align: center;
  text-transform: uppercase;
}

.neon-marquee::before,
.neon-marquee::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 7px;
  border-radius: 3px;
  background: repeating-linear-gradient(to bottom, #f00 0 5px, #f80 5px 10px, #ff0 10px 15px, #0b0 15px 20px, #0cc 20px 25px, #80f 25px 30px);
  animation: arcadeMarqueeLed 750ms linear infinite;
}

.neon-marquee::before {
  left: 13px;
}

.neon-marquee::after {
  right: 13px;
  animation-direction: reverse;
}

.marquee-sweep {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 35%;
  height: 220%;
  background: linear-gradient(75deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(15deg);
  animation: arcadeMarqueeSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

.neon-marquee strong {
  position: relative;
  z-index: 1;
  color: #ffde00;
  font-family: var(--pixel-font);
  font-size: 1.34rem;
  letter-spacing: 0.18em;
  text-shadow: 0 0 6px #ffde00, 0 0 20px #ff8800;
  animation: arcadeMarqueeFlicker 10s infinite;
}

.neon-marquee span:not(.marquee-sweep) {
  position: relative;
  z-index: 1;
  color: #00ffdd;
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-shadow: 0 0 5px #00ffdd;
}

.neon-cabinet-body {
  position: relative;
  width: 388px;
  border-right: 2px solid #300a62;
  border-left: 2px solid #300a62;
  background: linear-gradient(170deg, #190538 0%, #100120 100%);
}

.neon-cabinet-body::before,
.neon-cabinet-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #cc0066 25%, #cc0066 75%, transparent);
  opacity: 0.45;
}

.neon-cabinet-body::before {
  left: 13px;
}

.neon-cabinet-body::after {
  right: 13px;
}

.monitor-shell {
  padding: 12px 15px 0;
}

.neon-cabinet .screen-bezel {
  position: relative;
  padding: 0;
  border: 10px solid #1f044a;
  border-radius: 7px;
  background: #0b001c;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 200, 180, 0.25);
}

.bezel-screw {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border: 1px solid #303030;
  border-radius: 50%;
  background:
    linear-gradient(#505050, #505050) center / 1px 100% no-repeat,
    linear-gradient(#505050, #505050) center / 100% 1px no-repeat,
    radial-gradient(circle at 35% 30%, #484848, #1a1a1a);
}

.screw-tl { top: -9px; left: -9px; }
.screw-tr { top: -9px; right: -9px; }
.screw-bl { bottom: -9px; left: -9px; }
.screw-br { bottom: -9px; right: -9px; }

.neon-cabinet .crt-screen {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000308;
  box-shadow: 0 0 16px rgba(0, 210, 190, 0.18);
  aspect-ratio: 334 / 234;
}

#arcade-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000308;
  image-rendering: pixelated;
}

.neon-screen .crt-scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 4px);
  opacity: 1;
  animation: none;
}

.neon-screen .crt-vignette {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 88% 88% at 50% 50%, transparent 50%, rgba(0, 0, 14, 0.66) 100%);
  mix-blend-mode: normal;
}

.crt-glass {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  width: 52%;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, transparent 55%);
}

.neon-status-strip,
.control-decal {
  margin: 5px 10px 0;
  border: 1px solid #c8a038;
  border-radius: 3px;
  background: #f0df9e;
  color: #333;
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 0.48rem;
}

.neon-status-strip {
  display: flex;
  justify-content: center;
  gap: 0.72rem;
  padding: 0.28rem 0.36rem;
}

.neon-status-strip strong {
  color: #7a0067;
}

.control-decal {
  padding: 0.24rem 0.28rem;
  line-height: 1.75;
}

.neon-control-panel {
  position: relative;
  width: 422px;
  padding: 12px 22px 14px;
  border: 2px solid #300a62;
  border-top-color: #481580;
  border-bottom: 0;
  background: linear-gradient(156deg, #200948 0%, #160430 60%, #0d021a 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7), inset 0 3px 10px rgba(0, 0, 0, 0.5);
}

.neon-control-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255, 255, 255, 0.012) 12px, rgba(255, 255, 255, 0.012) 13px);
}

.neon-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.joystick-wrap,
.system-controls,
.arcade-pad-button {
  position: relative;
  z-index: 1;
}

.joystick-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.joystick-wrap > span,
.arcade-pad-button span {
  color: rgba(255, 255, 255, 0.26);
  font-family: var(--pixel-font);
  font-size: 0.48rem;
  text-transform: uppercase;
}

.joystick-gate {
  position: relative;
  width: 72px;
  height: 72px;
  border: 2px solid #2a2a2a;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #454545, #181818);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(255, 255, 255, 0.07);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.joystick-gate::before {
  content: "";
  position: absolute;
  inset: 16px;
  background:
    linear-gradient(#2a2a2a, #2a2a2a) center / 1px 100% no-repeat,
    linear-gradient(#2a2a2a, #2a2a2a) center / 100% 1px no-repeat;
}

.joystick-gate::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #222;
  border-radius: 50%;
}

.joystick-shaft {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 7px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(to right, #777 0%, #bbb 45%, #777 100%);
  transform: translate(-50%, -50%);
  transition: transform 100ms ease-out;
}

.joystick-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #ff6e9a, #7a001e);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 0, 128, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 100ms ease-out;
  pointer-events: none;
}

.system-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.coin-text,
.start-select,
.coin-slot-dx {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.coin-text {
  border: 0;
  background: none;
  color: rgba(255, 178, 0, 0.66);
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  text-shadow: 0 0 4px #ff7700;
  text-transform: uppercase;
  animation: arcadeCoinPulse 2.5s ease-in-out infinite;
}

.small-button-row {
  display: flex;
  gap: 0.75rem;
}

.start-select {
  display: flex;
  width: 58px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid #666;
  border-radius: 4px;
  background: linear-gradient(to bottom, #666 0%, #3a3a3a 45%, #232323 100%);
  box-shadow: 0 3px 0 #0a0a0a, inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--pixel-font);
  font-size: 0.44rem;
  text-transform: uppercase;
  transition: transform 50ms ease, box-shadow 50ms ease, color 120ms ease;
}

.start-select:hover {
  color: rgba(255, 255, 255, 0.92);
}

.start-select:active,
.start-select.pressed {
  transform: translateY(3px);
  box-shadow: 0 0 0 #0a0a0a, inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.credit-readout {
  color: #00ffdd;
  font-family: var(--pixel-font);
  font-size: 0.56rem;
  text-shadow: 0 0 5px #00ffdd;
  text-transform: uppercase;
}

.lily-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 25px;
  border: 1px solid rgba(255, 160, 220, 0.66);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(135deg, rgba(92, 25, 91, 0.88), rgba(255, 76, 166, 0.56));
  color: #ffe8fb;
  cursor: pointer;
  font-family: var(--pixel-font);
  font-size: 0.44rem;
  text-shadow: 0 0 7px rgba(255, 102, 204, 0.9);
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(36, 2, 52, 0.9), 0 0 16px rgba(255, 64, 182, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 80ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.lily-mode-toggle:hover,
.lily-mode-toggle.active {
  filter: brightness(1.15);
  box-shadow: 0 5px 0 rgba(36, 2, 52, 0.9), 0 0 24px rgba(255, 64, 182, 0.5), 0 0 18px rgba(255, 224, 120, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.lily-mode-toggle:active,
.lily-mode-toggle.pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(36, 2, 52, 0.9), 0 0 16px rgba(255, 64, 182, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neon-cabinet-dx.lily-mode-active .neon-marquee {
  box-shadow: 0 0 34px rgba(255, 72, 176, 0.72), inset 0 0 26px rgba(255, 150, 220, 0.2);
}

.neon-cabinet-dx.lily-mode-active .neon-marquee h2 {
  color: #ffe4f7;
  text-shadow: 0 0 8px #ff5fbd, 0 0 18px #ff5fbd, 0 0 28px #fff064;
}

.arcade-pad {
  position: relative;
  z-index: 1;
  width: 138px;
  height: 138px;
}

.arcade-pad-button {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.pad-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pad-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.pad-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.pad-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.round-action {
  --button-light: #ff8c96;
  --button-face: #d81e35;
  --button-dark: #690012;
  --button-shadow: #4a0009;
  --button-glow: rgba(230, 0, 45, 0.55);
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: radial-gradient(circle at 35% 26%, var(--button-light) 0%, var(--button-face) 42%, var(--button-dark) 100%);
  box-shadow: 0 6px 0 var(--button-shadow), 0 7px 10px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 16px var(--button-glow), inset 0 -6px 8px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 40ms ease, box-shadow 40ms ease, filter 140ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.round-action::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 20px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.round-action:hover,
.round-action.charged {
  box-shadow: 0 6px 0 var(--button-shadow), 0 7px 10px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 28px var(--button-glow), 0 0 10px rgba(255, 255, 255, 0.52), inset 0 -6px 8px rgba(0, 0, 0, 0.28);
}

.round-action:active,
.round-action.pressed {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--button-shadow), 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 8px var(--button-glow), inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}

.round-bomb {
  --button-light: #ffe28c;
  --button-face: #d99b00;
  --button-dark: #6b4600;
  --button-shadow: #432c00;
  --button-glow: rgba(220, 165, 0, 0.5);
}

.round-shield {
  --button-light: #8cb0ff;
  --button-face: #1a4bd9;
  --button-dark: #00105e;
  --button-shadow: #000a3d;
  --button-glow: rgba(25, 80, 230, 0.55);
}

.round-fire {
  --button-light: #ff8c96;
  --button-face: #d81e35;
  --button-dark: #690012;
  --button-shadow: #4a0009;
  --button-glow: rgba(230, 0, 45, 0.55);
}

.round-turbo {
  --button-light: #93ffab;
  --button-face: #12a833;
  --button-dark: #003d10;
  --button-shadow: #00280a;
  --button-glow: rgba(20, 190, 55, 0.5);
}

.neon-base {
  display: flex;
  width: 422px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 10px;
  border: 2px solid #22054a;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to bottom, #0e0220, #06010f);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.speaker-grille {
  display: grid;
  grid-template-columns: repeat(7, 5px);
  gap: 3px;
}

.speaker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #242424, #101010);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.coin-slot-dx {
  display: grid;
  width: 70px;
  height: 22px;
  place-items: center;
  border: 2px solid #464646;
  border-radius: 5px;
  background: linear-gradient(to bottom, #363636, #181818);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.coin-slot-dx:hover,
.coin-slot-dx.flash {
  border-color: #8f8f8f;
  box-shadow: 0 0 16px 3px rgba(255, 215, 0, 0.85), inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.coin-slot-dx span {
  width: 38px;
  height: 4px;
  border: 1px solid #484848;
  border-radius: 2px;
  background: #000;
}

.cabinet-legs {
  display: flex;
  width: 330px;
  justify-content: space-between;
  padding: 0 22px;
}

.cabinet-legs span {
  position: relative;
  width: 28px;
  height: 18px;
  border: 2px solid #2c2c2c;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(to bottom, #222, #0f0f0f);
}

.cabinet-legs span::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: -9px;
  width: 46px;
  height: 5px;
  border: 1px solid #2c2c2c;
  border-radius: 3px;
  background: linear-gradient(to bottom, #252525, #0f0f0f);
}

@keyframes arcadeGridDrift {
  to { background-position: 44px 44px, 44px 44px, 0 0, 0 0, 0 0; }
}

@keyframes arcadeNebulaDrift {
  to { transform: translate(-24px, 14px) scale(1.1); }
}

@keyframes arcadeSideLights {
  to { background-position: 0 40px; }
}

@keyframes arcadeMarqueeLed {
  to { background-position: 0 30px; }
}

@keyframes arcadeMarqueeSweep {
  0% { left: -60%; }
  42% { left: 135%; }
  100% { left: 135%; }
}

@keyframes arcadeMarqueeFlicker {
  0%, 85%, 100% { opacity: 1; }
  86% { opacity: 0.45; }
  87% { opacity: 1; }
  89% { opacity: 0.28; }
  90% { opacity: 1; }
}

@keyframes arcadeCoinPulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}

@media (max-width: 680px) {
  .neon-raider-wrap {
    min-height: 660px;
    padding-inline: 0.25rem;
  }

  .neon-cabinet {
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -6.5rem;
  }
}

@media (max-width: 430px) {
  .neon-raider-wrap {
    min-height: 610px;
  }

  .neon-cabinet {
    transform: scale(0.72);
    margin-bottom: -10rem;
  }
}
