:root {
  --bg: #090414;
  --cabinet: #160022;
  --cabinet-edge: #ff2aa8;
  --cyan: #22f7ff;
  --yellow: #ffe66d;
  --green: #41ff8d;
  --red: #ff3c5f;
  --purple: #9c5cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 42, 168, 0.16), transparent 34rem),
    linear-gradient(180deg, #12051e 0%, #07030e 56%, #020106 100%);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

.arcade-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(10px, 2vw, 28px);
}

.cabinet {
  position: relative;
  width: min(calc(100vw - 24px), calc((100vh - 24px) * 16 / 9), 1280px);
  aspect-ratio: 16 / 9;
  border: clamp(8px, 1.2vw, 18px) solid var(--cabinet);
  border-radius: 8px;
  background: #000;
  box-shadow:
    0 0 0 3px var(--cabinet-edge),
    0 0 24px rgba(255, 42, 168, 0.85),
    0 0 58px rgba(34, 247, 255, 0.34),
    inset 0 0 24px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #06010f;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.crt-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 50%, rgba(0, 0, 0, 0.18) 50%),
    linear-gradient(90deg, rgba(255, 0, 100, 0.06), rgba(0, 255, 255, 0.035), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  mix-blend-mode: screen;
  opacity: 0.72;
}

.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 0 72px rgba(0, 0, 0, 0.72),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.five-row-panel {
  position: absolute;
  left: 49.06%;
  top: 25.83%;
  width: 38.75%;
  height: 49.44%;
  z-index: 3;
  border: 0;
  background: #020106;
  overflow: hidden;
}

.five-row-panel[hidden] {
  display: none;
}

.five-row-video {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 230, 109, 0.96);
  background: #020106;
  box-shadow: 0 0 18px rgba(255, 230, 109, 0.18);
}

.five-row-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 2;
}

.five-row-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background:
    linear-gradient(180deg, rgba(5, 3, 18, 0.8), rgba(5, 3, 18, 0.94)),
    #020106;
  font: 900 clamp(14px, 1.4vw, 22px) "Courier New", Courier, monospace;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-aspect-ratio: 16 / 9) {
  body {
    overflow: auto;
  }
}
