:root {
  color-scheme: dark;
  --bg-top: #0f1734;
  --bg-bottom: #0b0d12;
  --panel: rgba(10, 14, 24, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.72);
  --accent: #69f0ae;
  --accent-2: #ffd54f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(105, 240, 174, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 213, 79, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  touch-action: none;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

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

.hud {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  color: var(--text);
  min-width: min(86vw, 320px);
}

.hud__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hud__line {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted);
}

.hud__line + .hud__line {
  margin-top: 4px;
}

.overlay {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  pointer-events: none;
}

.overlay__card {
  max-width: min(42vw, 320px);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(15, 19, 31, 0.58);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.overlay__headline {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.overlay__text {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted);
}

.version-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 24, 0.72);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

@media (max-width: 700px) {
  .overlay {
    top: auto;
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .overlay__card {
    max-width: none;
  }

  .version-badge {
    bottom: auto;
    top: 12px;
  }
}
