@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Inter:wght@400;600;800&display=swap');

:root {
  --bg: #070812;
  --panel: rgba(16, 18, 40, .82);
  --cyan: #00f5ff;
  --pink: #ff2bd6;
  --yellow: #ffe45e;
  --green: #57ff8c;
  --text: #f8fbff;
  --muted: #a9b1d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,43,214,.2), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(0,245,255,.18), transparent 30%),
    linear-gradient(135deg, #04040b 0%, #101228 55%, #060714 100%);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.035) 0px,
    rgba(255,255,255,.035) 1px,
    transparent 3px,
    transparent 7px
  );
  mix-blend-mode: overlay;
}

.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(var(--cyan) 1px, transparent 1px);
  background-size: 80px 80px, 130px 130px;
  background-position: 0 0, 40px 20px;
  opacity: .22;
  animation: drift 18s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(80px); }
}

.page {
  position: relative;
  z-index: 2;
  width: min(1260px, 94vw);
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 42px 0 26px;
}

.hero {
  padding: 24px 0;
}

.badge {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(0,245,255,.45);
  border-radius: 999px;
  color: var(--cyan);
  font-family: Orbitron, sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  box-shadow: 0 0 30px rgba(0,245,255,.14);
  background: rgba(0,245,255,.08);
}

h1 {
  margin: 24px 0 16px;
  font-family: Orbitron, sans-serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(0,245,255,.4),
    5px 5px 0 rgba(255,43,214,.18);
}

.subtitle {
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  border: 0;
  cursor: pointer;
  color: var(--text);
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, var(--pink), #6b4dff 48%, var(--cyan));
  box-shadow: 0 15px 35px rgba(255,43,214,.25), 0 0 25px rgba(0,245,255,.18);
}

.ghost {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
}

.launch-info {
  margin-top: 34px;
  padding: 18px;
  max-width: 390px;
  border-left: 4px solid var(--yellow);
  background: rgba(255,255,255,.06);
  border-radius: 0 18px 18px 0;
}

.launch-info span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.launch-info strong {
  font-family: Orbitron, sans-serif;
  color: var(--yellow);
  letter-spacing: .12em;
}

.arcade-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
    var(--panel);
  box-shadow:
    0 30px 90px rgba(0,0,0,.5),
    inset 0 0 40px rgba(0,245,255,.04);
  backdrop-filter: blur(14px);
}

.cabinet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.marquee {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,43,214,.16), rgba(0,245,255,.16));
  font-family: Orbitron, sans-serif;
  color: var(--yellow);
  letter-spacing: .18em;
  text-shadow: 0 0 12px rgba(255,228,94,.7);
}

.light {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: .35; }
  to { opacity: 1; }
}

.screen-wrap {
  position: relative;
  overflow: hidden;
  border: 10px solid #05060e;
  border-radius: 24px;
  background: #02030a;
  box-shadow: inset 0 0 35px rgba(0,0,0,.95), 0 0 35px rgba(0,245,255,.14);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 560;
  image-rendering: pixelated;
  background: #030411;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 28px;
  background: radial-gradient(circle, rgba(8,10,30,.82), rgba(0,0,0,.94));
}

.game-overlay.hidden {
  display: none;
}

.game-overlay h2 {
  margin: 0 0 10px;
  font-family: Orbitron, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,245,255,.65);
}

.game-overlay p {
  max-width: 470px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.game-overlay small {
  display: block;
  margin-top: 16px;
  color: #d9dcff;
  opacity: .8;
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.hud div {
  padding: 13px 10px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,.07);
  color: var(--muted);
}

.hud strong {
  color: var(--yellow);
  font-family: Orbitron, sans-serif;
}

.mobile-controls {
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 46px);
  gap: 5px;
}

.dpad button, .fire {
  border: 0;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 15px rgba(255,255,255,.05);
}

.dpad button[data-dir="up"] { grid-column: 2; grid-row: 1; }
.dpad button[data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad button[data-dir="right"] { grid-column: 3; grid-row: 2; }
.dpad button[data-dir="down"] { grid-column: 2; grid-row: 3; }

.fire {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8bf0, var(--pink));
  box-shadow: 0 0 28px rgba(255,43,214,.3);
}

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,.58);
  padding: 0 0 24px;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .hero {
    text-align: center;
  }

  .subtitle, .launch-info {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(96vw, 720px);
  }

  .arcade-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .screen-wrap {
    border-width: 6px;
    border-radius: 18px;
  }

  .hud {
    grid-template-columns: 1fr;
  }

  .mobile-controls {
    display: flex;
  }

  .marquee {
    font-size: 12px;
  }
}
