* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #08080c; color: #cfefff; font-family: "Courier New", monospace; overflow: hidden; touch-action: none; user-select: none; }
body { display: flex; align-items: center; justify-content: center; }
#app { display: flex; gap: 16px; align-items: flex-start; }
#stage { position: relative; height: min(94vh, 800px); aspect-ratio: 3 / 5; }
#game { width: 100%; height: 100%; display: block; background: #08080c; border: 1px solid #00f3ff55; box-shadow: 0 0 24px #00f3ff33; }
#overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(8, 8, 12, 0.78); padding: 16px; gap: 14px; }
#overlay.hidden { display: none; }
#overlay h1 { font-size: 32px; letter-spacing: 6px; color: #00f3ff; text-shadow: 0 0 12px #00f3ff; }
#overlay p { color: #ff007f; text-shadow: 0 0 8px #ff007f88; }
#overlay .small { color: #8fa; font-size: 12px; line-height: 1.7; text-shadow: none; opacity: 0.8; }
#hud { display: flex; flex-direction: column; gap: 10px; min-width: 110px; }
.box { border: 1px solid #00f3ff55; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 10px #00f3ff22 inset; }
.lbl { font-size: 11px; letter-spacing: 3px; color: #00f3ff; opacity: 0.8; }
.box span:nth-child(2) { font-size: 20px; color: #fff; text-shadow: 0 0 8px #ffe600; }
#next { width: 80px; height: 80px; }
@media (max-width: 640px) {
  #app { flex-direction: column; align-items: center; gap: 6px; }
  #stage { height: min(78vh, 100vw * 5 / 3); }
  #hud { flex-direction: row; min-width: 0; gap: 6px; }
  .box { padding: 4px 8px; }
  #next { width: 40px; height: 40px; }
}
