:root {
  color-scheme: dark;
  --bg: #03040a;
  --glow: #39d2ff;
  --ink: #9fb2d6;
  --warn: #ff3b5c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, #0b0f1e 0%, var(--bg) 70%),
    var(--bg);
}

#cabinet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  touch-action: none;
}

#bezel {
  padding: 6px;
  border-radius: 10px;
  background: #0a0c16;
  box-shadow:
    0 0 0 2px #151a2c,
    0 0 40px rgba(57, 210, 255, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.8);
}

#screen {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  border-radius: 6px;
  cursor: crosshair;
  outline: none;
}

#controls {
  display: flex;
  gap: 8px;
}

#controls button {
  font: 700 11px/1 "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  color: var(--glow);
  background: #0a0c16;
  border: 1px solid #243052;
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: 7px 12px;
  cursor: pointer;
  text-transform: uppercase;
}

#controls button:hover,
#controls button:focus-visible {
  border-color: var(--glow);
  outline: none;
}

#controls button:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

#controls button.off {
  color: var(--warn);
}

#hint {
  margin: 0;
  font-size: 11px;
  color: #4f5f86;
  text-align: center;
  padding: 0 12px;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bg);
}

@media (max-height: 560px) {
  #hint {
    display: none;
  }
}
