* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, #1a1035 0%, #0a0612 55%, #050308 100%);
  font-family: "Courier New", Courier, monospace;
  color: #e8dcc8;
}

.arcade {
  padding: 12px 20px 16px;
  background: linear-gradient(180deg, #3d2a4a 0%, #251830 40%, #1a1220 100%);
  border-radius: 12px;
  box-shadow:
    0 0 0 4px #5c4a6e,
    0 0 0 8px #1a0f24,
    0 24px 60px rgba(0, 0, 0, 0.75);
}

.cabinet-top {
  text-align: center;
  padding: 8px 0 10px;
}

.logo {
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  color: #ffd866;
  text-shadow: 0 0 8px #ff6b6b, 0 2px 0 #8b2942;
}

.screen-bezel {
  position: relative;
  padding: 14px;
  background: #0d0d12;
  border-radius: 6px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.9);
}

#game {
  display: block;
  width: min(92vw, 768px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  border: 2px solid #2a2a38;
}

.overlay {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 8, 24, 0.88);
  text-align: center;
  pointer-events: none;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: #7ee787;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0 #1a4d2e;
}

.overlay #overlay-sub {
  color: #79c0ff;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.overlay .hint {
  font-size: 0.75rem;
  color: #a8a29e;
  line-height: 1.6;
}

.overlay .blink {
  margin-top: 1.5rem;
  color: #ffd866;
  animation: blink 0.9s step-end infinite;
  font-weight: bold;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.cabinet-bottom {
  padding-top: 10px;
}

.hud-outside {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.7rem;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

.hud-outside b {
  color: #fbbf24;
  margin-left: 4px;
}
