:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  color: #f2f0e7;
  background: #111913;
}

* { box-sizing: border-box; }
body { margin: 0; }
.game { position: relative; display: grid; place-items: center; min-height: 100dvh; }

canvas {
  display: block;
  width: min(100vw, calc(100dvh * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  background: #18261c;
  outline: none;
}

.start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #111913e8;
}

.start[hidden] { display: none; }
.resume { position: absolute; top: 1rem; right: 1rem; }
.panel { width: min(100%, 31rem); padding: 2rem; border: 1px solid #58624e; background: #1c281e; }
h1 { margin: 0; font-size: clamp(3rem, 10vw, 6rem); line-height: .98; }
h1 span { color: #eeb76a; }
p { margin-block: 1rem; }
button {
  background: #eeb76a;
  color: #151a12;
  border: 0;
  border-radius: .2rem;
  padding: .55rem 2rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: wait; }
a { color: #f1c788; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff3df; outline-offset: 4px; }
kbd { font: inherit; font-weight: 700; }
#status { min-height: 1.5em; }
#controls { color: #cbd2c2; }
