:root { color-scheme: light; font-family: "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  display: grid;
  place-items: center;
  background: #f6f5f0;
  color: #232323;
  overscroll-behavior: none;
}
.game { width: min(100vw, 460px); padding: 8px 0 18px; user-select: none; }
canvas { display: block; width: 100%; height: auto; touch-action: none; }
.status {
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-7px);
}
.controls { display: grid; grid-template-columns: repeat(3, 85px); gap: 20px; justify-content: center; }
button {
  height: 42px;
  border: 1px solid #7d786e;
  border-radius: 7px;
  background: #ebe8e0;
  color: #2d2d2d;
  font: 38px/1 "Segoe UI Symbol", "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
button:hover { background: #d7d2c8; }
button:active { transform: translateY(1px); }
#newGame { padding-bottom: 5px; }
button:focus-visible { outline: 3px solid #468ce1; outline-offset: 2px; }
button svg { width: 31px; height: 31px; fill: currentColor; }
.stroke { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thick { stroke-width: 4; }
.red { stroke: #dc3232; }
.sound-off { display: none; }
button.muted .sound-on { display: none; }
button.muted .sound-off { display: block; }
@media (max-width: 420px) {
  .controls { grid-template-columns: repeat(3, minmax(64px, 1fr)); gap: 10px; padding: 0 12px; }
}
