:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #11151c;
  color: #eef3f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(51, 118, 255, 0.22), transparent 32%),
    linear-gradient(145deg, #0b0f16 0%, #16202c 48%, #171318 100%);
}

.game-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #070b12;
}

.camera,
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.camera {
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0.28;
  filter: saturate(0.8) contrast(1.08);
}

#game {
  z-index: 1;
}

.hud {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}

.hud span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.68);
  backdrop-filter: blur(10px);
  font-size: clamp(12px, 1.8vw, 15px);
}

.hud strong {
  color: #6ee7b7;
}

.start-panel {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(7, 11, 18, 0.72);
}

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

.start-panel h1 {
  margin: 0;
  font-size: clamp(42px, 10vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
}

.start-panel p {
  max-width: 560px;
  margin: 0;
  color: #cbd5df;
  font-size: clamp(15px, 2.4vw, 19px);
}

button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #36d399;
  color: #07110d;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .hud {
    top: 10px;
    left: 10px;
    right: 10px;
  }
}
