* { box-sizing: border-box; }

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eaf2ff;
  background: #070d1e;
}

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, #193a69 0%, #0b1430 32%, #070d1e 78%);
}

.game-shell {
  width: min(100%, 1060px);
  padding: 20px;
}

.game-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

h1 { margin: 0 0 4px; font-size: clamp(1.55rem, 4vw, 2.15rem); }
p { margin: 0; color: #91a5c7; }
.controls { color: #91a5c7; font-size: 0.88rem; text-align: right; }

#game-container {
  width: 100%;
  overflow: hidden;
  border: 1px solid #263c61;
  border-radius: 18px;
  background: #0b1430;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(54, 121, 175, 0.05);
  touch-action: none;
}

canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  touch-action: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: #637696;
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .game-shell { padding: 10px; }
  .game-header, footer { display: block; }
  .controls { margin-top: 8px; text-align: left; }
  footer span { display: block; margin-top: 4px; }
}
