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

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(55, 126, 73, 0.35), transparent 55%),
    #0b2119;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 20px;
}

.game-header { text-align: center; margin-bottom: 20px; }

.brand {
  color: #a8e68c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand span { color: #d8e7ce; font-weight: 500; }

.game-header h1 {
  margin: 10px 0 0;
  color: #fff5cf;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 0 #315b35;
}

.game-header p { margin: 8px 0 0; color: #c0d3c2; font-size: 14px; }

.game-shell {
  overflow: hidden;
  border: 3px solid #7fa85a;
  border-radius: 16px;
  background: #8ed5c0;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

#game-container { width: 100%; line-height: 0; }

#game-container canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  outline: none;
}

.control-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding: 13px 16px;
  background: #173b2b;
  color: #e2edda;
  font-size: 13px;
  line-height: 1.6;
}

kbd {
  display: inline-block;
  min-width: 25px;
  padding: 2px 6px;
  border: 1px solid #6c9563;
  border-radius: 5px;
  background: #28533a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

footer { padding: 16px 0 0; color: #8eaa95; font-size: 12px; text-align: center; }

@media (max-width: 600px) {
  .page { width: calc(100% - 16px); padding-top: 16px; }
  .game-shell { border-width: 2px; border-radius: 10px; }
  .control-hint { gap: 6px 12px; font-size: 11px; }
}
