.tale-bench {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(530px, calc(100vw - 22px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
  padding: clamp(13px, 2.5vw, 24px);
  border: 1px solid #887350;
  border-radius: 9px;
  background: #26231d;
  color: #f4e5c6;
  box-shadow: 0 20px 70px #0d0b09dc;
  font-family: system-ui, sans-serif;
}
.tale-bench::backdrop { background: #14110ccb; }
.tale-bench header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tale-bench h2 { margin: .3rem 0; font: 600 clamp(21px, 5vw, 30px)/1.1 Georgia, serif; color: #f7dfab; }
.tale-bench p { margin: .4rem 0; }
.tale-bench .bench-place { color: #cbb898; font-size: .82rem; }
.tale-bench .bench-tool { color: #add0bd; font-size: .9rem; }
.tale-bench .bench-instructions { font-size: .9rem; line-height: 1.4; margin: .7rem 0; }
.tale-bench canvas {
  display: block;
  width: min(100%, 50dvh);
  aspect-ratio: 100/64;
  margin: 0 auto;
  background: #302821;
  box-shadow: 0 0 0 1px #66563e;
  touch-action: none;
  border-radius: 6px;
}
.tale-bench .bench-status { min-height: 1.3rem; color: #e7cf9b; margin-top: .65rem; }
.tale-bench .bench-help { color: #d1c3aa; font-size: .82rem; line-height: 1.35; }
.tale-bench .bench-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0; }
.tale-bench button {
  min-height: 42px;
  padding: .45rem .7rem;
  border-radius: 5px;
  font: 600 .83rem system-ui, sans-serif;
  border: 1px solid #886f49;
  background: #41372a;
  color: #f7e4be;
  touch-action: none;
}
.tale-bench button:focus-visible { outline: 2px solid #aad7bc; outline-offset: 2px; }
.tale-bench button.active,.tale-bench .bench-finish { background: #aed2ac; color: #202b22; border-color: #b3d4a1; }
.tale-bench [hidden] { display: none; }
@media (max-width: 520px) {
  .tale-bench canvas { width: min(100%, 60dvh); }
}
