:root { font-family: system-ui, sans-serif; color: #203b38; background: #edf4ee; line-height: 1.55; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 760px; margin: auto; padding: 1.5rem; }
a { color: #17564d; }
h1 { margin-bottom: .25rem; }
button, select { font: inherit; min-height: 48px; border: 2px solid #436760; border-radius: .65rem; background: white; color: #203b38; padding: .55rem .85rem; cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #b35d20; outline-offset: 3px; }
button:disabled { opacity: .7; cursor: default; }
.board { display: grid; grid-template-columns: repeat(4, minmax(54px, 84px)); gap: .5rem; margin: 1rem 0; }
.cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .25rem; }
.cell.on { background: #c6e5ce; border-color: #25614b; }
.cell .dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #215c46; }
.cell small { font-size: .8rem; }
.controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.primary { color: white; background: #25614b; }
.result { margin-top: 1rem; padding: 1rem; background: #d6ecda; border-radius: .75rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.memory-pattern { display: block; width: min(100%, 220px); height: auto; }
