html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070d;
  color: #e8e4ff;
  font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#game-root {
  position: fixed;
  inset: 0;
  touch-action: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #05070d;
  touch-action: none;
}

#hud,
#loading {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hud-bar .spacer {
  flex: 1;
}

.hud-id {
  pointer-events: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 1px 2px #000;
}

.hud-bar button {
  pointer-events: auto;
  touch-action: manipulation;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 13px/1 inherit;
  color: #f4f1ff;
  background: rgba(18, 16, 32, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hud-bar button:active {
  transform: scale(0.97);
}

.hud-bar button.on {
  background: rgba(125, 92, 255, 0.55);
}

.hud-bar.live .hud-id,
.hud-bar.live [data-debug] {
  display: none;
}

.tap-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 12px #05070d;
}

.tap-start h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.04em;
}

.tap-start p {
  margin: 0;
  font-size: 16px;
  opacity: 0.85;
  color: #7dffb3;
}

.tap-start.hidden {
  display: none;
}

.banner {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(58vw, 280px);
  padding: 18px 18px 14px;
  border-radius: 16px;
  text-align: center;
  background: rgba(10, 8, 20, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.banner.hidden {
  display: none;
}

.banner h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 6vw, 32px);
  letter-spacing: 0.02em;
}

.banner p {
  margin: 0 0 12px;
  opacity: 0.85;
  font-size: 13px;
  line-height: 1.3;
}

.banner .row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.banner button {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  min-width: 96px;
  padding: 14px 22px;
  font: 700 16px/1 inherit;
  cursor: pointer;
  color: #12081a;
  background: #7dffb3;
}

.banner.fail button {
  background: #ffd24a;
}

.loading {
  display: none;
  align-items: center;
  justify-content: center;
  background: #05070d;
}

.loading-card {
  font-size: 18px;
  letter-spacing: 0.06em;
}
