:root { color-scheme: light; background: #eef3f0; color: #17312a; font: 1rem/1.5 system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { max-width: 55rem; margin: auto; padding: 1rem; }
section { padding: 1.2rem; background: white; border: 1px solid #bacbc1; margin: 1rem 0; border-radius: .8rem; }
h2 { margin: 0 0 .75rem; }
label { margin-inline-end: .35rem; display: inline-block; }
button, select { padding: .5rem; min-height: 44px; font: inherit; color: inherit; margin: .15rem; }
button { border: 1px solid #426f5c; background: #dcece2; border-radius: .4rem; }
:focus-visible { outline: 3px solid #8d421c; outline-offset: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: .35rem; }
.preview { display: grid; max-width: 30rem; }
video, canvas { grid-area: 1 / 1; width: 100%; aspect-ratio: auto; }
canvas { pointer-events: none; }
progress { display: block; width: 100%; height: 1.4rem; accent-color: #287451; }
#pieces { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 0; }
#pieces span { width: 1.5rem; height: 1.5rem; border: 2px dashed #42715e; border-radius: 50%; }
#pieces .placed { border-style: solid; background: #7fc49f; }
dl { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .4rem; }
dd { margin: 0; overflow-wrap: anywhere; }
details { margin-block: .5rem; }
