@scope (.traditional-surface){@font-face {
  font-family: Cove;
  src: local("Trebuchet MS");
}
* {
  box-sizing: border-box;
}
:scope,
:scope {
  margin: 0;
  color: #26352f;
  background: #faf5e8;
  font:
    600 16px Cove,
    system-ui,
    sans-serif;
}
.table-game {
  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;
}
.table-title,
h2,
p {
  margin: 0;
}
.table-title {
  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;
}


.table-game{height:100vh;height:100svh;max-width:500px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:7px;padding:8px}
header{margin:0}.stage{display:grid;place-items:center;container-type:size}
.board{width:min(100%,calc(56.25vh - 80px));width:min(100cqw,56.25cqh);margin:0}
.hint{margin:0;font-size:15px;min-height:2.6em}nav{gap:5px}nav button,nav select{min-height:44px;padding:5px 8px}

header,nav{max-width:none;padding:0;border:0} }