/* VOID BREAKER — DARK palette for DAJAI PLAY.
   Original game (all canvas-drawn). No third-party CSS, fonts, or art.
   bg #06060a · surface #0c0c12 · accent/red #E0264A · gold #e8c87a · border #1a1a24 */

:root {
  --bg: #06060a;
  --surface: #0c0c12;
  --border: #1a1a24;
  --red: #E0264A;
  --gold: #e8c87a;
  --ink: #f4f1ea;
  --muted: #9a96a6;
  --mono: var(--font-space-mono), "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ---- HUD ---- */
#hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(6,6,10,0.85), rgba(6,6,10,0));
  pointer-events: none;
}
#hud .stat b { color: var(--gold); font-weight: 600; }
#hud .stat span { color: var(--ink); }
#hud .grow { flex: 1; }
#btn-mute {
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 16px;
  width: 34px; height: 30px;
  background: var(--surface);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
#btn-mute:active { background: var(--red); color: #fff; }

/* ---- canvas ---- */
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--bg);
}

/* ---- touch controls ---- */
#touch {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
html.is-touch #touch { display: block; }

#touch .pad {
  position: absolute;
  bottom: 22px;
  display: flex;
  gap: 12px;
  pointer-events: none;
}
#touch .pad.left { left: 18px; }
#touch .pad.right { right: 18px; flex-direction: row-reverse; }

#touch button {
  pointer-events: auto;
  width: 60px;
  height: 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 12, 18, 0.82);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
#touch button.active,
#touch button:active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
#touch .fire { width: 74px; height: 74px; font-size: 16px; color: var(--red); }
#touch .fire.active { color: #fff; }
#touch .hyper { font-size: 12px; }

/* ---- start hint (mobile) ---- */
#btn-start {
  display: none;
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(224, 38, 74, 0.4);
}
html.is-touch #btn-start { display: block; }
