@font-face {
  font-family: Cove;
  src: local("Trebuchet MS");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  color: #26352f;
  background: #faf5e8;
  font:
    600 16px Cove,
    system-ui,
    sans-serif;
}
main {
  max-width: 630px;
  margin: auto;
  padding: 10px 12px;
}
header,
nav,
.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
header {
  justify-content: space-between;
  margin-bottom: 7px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    bold clamp(22px, 5vw, 32px) Georgia,
    serif;
}
button,
select {
  font: inherit;
  color: inherit;
  background: #fff8e7;
  border: 1.5px solid #34443b;
  border-radius: 16px;
  padding: 7px 11px;
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #bb562c;
}
.board {
  position: relative;
  margin: auto;
  width: min(100%, max(300px, 59vh));
  overflow: hidden;
  border: 2px solid #35483e;
  border-radius: 22px;
  background: #ede4cc;
  box-shadow: 0 4px #c7bea6;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}
.score {
  font-size: 14px;
  font-weight: 750;
  color: #365344;
}
.hint {
  min-height: 2.6em;
  margin: 12px auto 5px;
  max-width: 440px;
  text-align: center;
  line-height: 1.3;
}
nav {
  justify-content: center;
}
.overlay {
  position: absolute;
  inset: 0;
  background: #22393266;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 15px;
}
.sheet {
  background: #fff7e4;
  border: 2px solid #34443b;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 5px #293b3044;
}
.sheet h2 {
  font:
    bold 26px Georgia,
    serif;
}
.sheet p {
  margin: 8px 0 15px;
}
.result-actions {
  justify-content: center;
}
.primary {
  background: #ed997b;
}
[hidden] {
  display: none !important;
}
