:root {
  color-scheme: dark;
  background: #141b17;
  color: #eef2e8;
  font: 17px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; }
main { width: min(100% - 2rem, 56rem); margin-block: 2rem; }
.eyebrow { color: #b6dca2; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; overflow-wrap: anywhere; }
canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: .9rem; border: 1px solid #6f8467; touch-action: none; }
.results { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
#timer { font-variant-numeric: tabular-nums; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; }
button { font: inherit; color: inherit; cursor: pointer; background: #1f2b22; border: 1px solid #6f8467;
  border-radius: .9rem; padding: .55rem .85rem; min-height: 44px; }
button:focus-visible { outline: 3px solid #e8c685; outline-offset: 3px; }
[hidden] { display: none; }
/* Settings rows wrap instead of clipping: a long label in another language takes its own line and the select keeps
   its full choice (the smoke checks every language at 360 px). */
.setting { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1rem; margin-top: .75rem; }
.setting[hidden] { display: none; }
select {
  font: inherit; color: inherit; background: #1f2b22; border: 1px solid #6f8467; border-radius: .6rem;
  min-height: 44px; padding: .35rem .6rem; max-width: 100%; margin-left: auto;
}
select:focus-visible { outline: 3px solid #e8c685; outline-offset: 3px; }
#head-status { color: #d6e4c8; }
