html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0f14;
  color: #e7eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 20, 0.75);
}

.title {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.back {
  color: #e7eefc;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.wrap {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
}

.hud {
  width: min(960px, calc(100vw - 36px));
  border-radius: 14px;
  background: rgba(10, 14, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  padding: 10px 12px;
}

.hudRow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hudRowBottom {
  margin-top: 8px;
  justify-content: space-between;
}

.hudItem {
  display: grid;
  gap: 4px;
  min-width: 88px;
}

.hudLabel {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.2px;
}

.hudValue {
  font-size: 13px;
  font-weight: 700;
}

.hudBar {
  height: 8px;
  width: 160px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.hudBarFill {
  height: 100%;
  background: #29ff6a;
  width: 100%;
}

.hudPrompt {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.hudHint {
  font-size: 12px;
  opacity: 0.7;
}

#game {
  width: min(960px, calc(100vw - 36px));
  height: auto;
  border-radius: 14px;
  background: #0e1520;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  touch-action: none;
}

.hint {
  opacity: 0.8;
  font-size: 14px;
}
