:root {
  --bg: #07090c;
  --panel: rgba(16, 20, 28, 0.86);
  --accent: #64ffda;
  --warm: #ffd97a;
  --text: #c8d1dc;
  --muted: #6b7686;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

#stage {
  position: fixed;
  inset: 0;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.hud-left {
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hud-row { display: flex; align-items: center; gap: 12px; margin-top: 2px; }

.bar {
  width: 220px;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar.stamina { width: 220px; height: 7px; }
.bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  border-radius: 6px;
  transition: transform 0.06s linear;
}
.health span {
  background: linear-gradient(90deg, #d0463c, #e8635a);
  box-shadow: 0 0 10px rgba(216, 70, 60, 0.5);
}
.stamina span {
  background: linear-gradient(90deg, #3fe0c0, #64ffda);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

#ammo {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text);
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}
#kills {
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}

.dodge-pip {
  position: relative;
  width: 62px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dodge-pip span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 217, 122, 0.25), rgba(255, 217, 122, 0.4));
}
.dodge-pip label {
  position: relative;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.dodge-pip.ready label { color: var(--warm); text-shadow: 0 0 8px rgba(255, 217, 122, 0.6); }

#seed {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- Boot overlay ---------- */
#boot {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(10, 14, 20, 0.72), rgba(4, 6, 9, 0.96));
  backdrop-filter: blur(3px);
  transition: opacity 0.5s ease;
  cursor: default;
}
#boot.hidden { opacity: 0; pointer-events: none; }

.boot-inner { text-align: center; }

.boot-inner h1 {
  font-size: 64px;
  letter-spacing: 14px;
  font-weight: 800;
  color: #f4f7fb;
  text-shadow: 0 0 30px rgba(100, 255, 218, 0.35), 0 0 4px rgba(255, 217, 122, 0.4);
}
.boot-inner .tag {
  margin-top: 6px;
  color: var(--accent);
  letter-spacing: 5px;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.8;
}
.keys {
  margin: 34px 0 30px;
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.keys b { color: var(--text); letter-spacing: 1px; }

#startBtn {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 4px;
  color: #07090c;
  background: linear-gradient(180deg, #7dffe4, #38d9b8);
  border: 0;
  padding: 14px 34px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(100, 255, 218, 0.35);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
#startBtn:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(100, 255, 218, 0.55); }
#startBtn:active { transform: translateY(0); }
