
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: #080818;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#wrapper {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
#ui {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 10px;
  background: #0a0a22;
  border-bottom: 1px solid #1a1a44;
  flex-shrink: 0;
}
.stat { text-align: center; }
.stat-label { font-size: 9px; color: #444466; letter-spacing: 2px; text-transform: uppercase; }
.stat-val { font-size: 20px; font-weight: bold; }
#score-val { color: #00ffcc; text-shadow: 0 0 12px #00ffcc88; }
#level-val { color: #ff00ff; text-shadow: 0 0 12px #ff00ff88; }
#lives-val { color: #ff4466; text-shadow: 0 0 12px #ff446688; font-size: 16px; }
#canvas-wrap {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#controls {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #0a0a22;
  border-top: 1px solid #1a1a44;
  flex-shrink: 0;
}
.ctrl-btn {
  flex: 1;
  padding: 20px 0;
  background: #0d0d2a;
  border: 1px solid #2a2a66;
  border-radius: 6px;
  color: #aaaacc;
  font-size: 28px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s, border-color 0.1s;
}
.ctrl-btn:active, .ctrl-btn.pressed {
  background: #00ffcc1a;
  border-color: #00ffcc;
  color: #00ffcc;
}
#btn-drop {
  flex: 1.4;
  color: #ffaa00;
  border-color: #ffaa0066;
  font-size: 26px;
  text-shadow: 0 0 10px #ffaa0088;
}
#btn-drop:active, #btn-drop.pressed {
  background: #ffaa001a;
  border-color: #ffaa00;
  color: #ffaa00;
  text-shadow: 0 0 16px #ffaa00;
}

/* OVERLAY SCREENS */
#overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,24,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  z-index: 20;
}
#overlay.hidden { display: none; }
.logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 20px #00ffcc, 0 0 50px #ff00ff;
  margin-bottom: 4px;
}
.tagline {
  font-size: 10px;
  letter-spacing: 4px;
  color: #444466;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.mode-btn {
  width: 100%;
  max-width: 300px;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mode-btn:active { opacity: 0.7; transform: scale(0.97); }
.c-pink  { color: #ff00ff; border-color: #ff00ff88; }
.c-pink:hover  { background: #ff00ff15; }
.c-teal  { color: #00ffcc; border-color: #00ffcc88; }
.c-teal:hover  { background: #00ffcc15; }
.c-amber { color: #ffaa00; border-color: #ffaa0088; }
.c-amber:hover { background: #ffaa0015; }
.c-red   { color: #ff4466; border-color: #ff446688; }
.c-red:hover   { background: #ff446615; }
.c-blue  { color: #00aaff; border-color: #00aaff88; }
.c-blue:hover  { background: #00aaff15; }

.go-title { font-size: 38px; letter-spacing: 8px; color: #ff4466; text-shadow: 0 0 20px #ff4466; font-weight: 900; }
.go-label { font-size: 10px; letter-spacing: 3px; color: #444466; text-transform: uppercase; margin-top: 12px; }
.go-score { font-size: 52px; color: #00ffcc; text-shadow: 0 0 24px #00ffcc; font-weight: 900; }
.go-sub   { font-size: 13px; color: #555588; margin-bottom: 20px; }

/* FLASH */
#flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 15;
  transition: opacity 0.08s;
}
