﻿:root {
  --bg: #0b1020;
  --surface: #131b33;
  --surface-2: #1a2647;
  --line: #2a3a67;
  --text: #e8edff;
  --muted: #9caad3;
  --accent: #49e39f;
  --danger: #ff6c83;
  --laser: #8cc0ff;
}

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

body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, #162043 0%, transparent 36%),
    radial-gradient(circle at 80% 15%, #1d2f5c 0%, transparent 30%),
    var(--bg);
}

.layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.game-card {
  width: min(100%, 920px);
  background: color-mix(in srgb, var(--surface) 94%, black);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgb(0 0 0 / 0.45);
  padding: 1rem;
}

.game-header {
  margin-bottom: 0.8rem;
}

.game-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.game-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.canvas-wrap {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #070d1f;
}

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

.status {
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1530;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

.actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font: inherit;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: var(--accent);
}
