:root { color-scheme: light; font-family: system-ui, sans-serif; line-height: 1.6; color: #263a39; background: #f4f1e9; }
* { box-sizing: border-box; } body { margin: 0; } main { max-width: 840px; margin: auto; padding: 24px 18px 44px; }
header, main > section { background: #fff; border: 1px solid #c8d5d1; border-radius: 18px; padding: 22px; margin-bottom: 18px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 6px; } h2, h3 { margin-top: 0; } .eyebrow { color: #315f51; font-weight: 700; margin-bottom: 2px; }
a { color: #174f74; } .buttons { display: flex; flex-wrap: wrap; gap: 10px; } button, summary { font: inherit; min-height: 48px; }
button { border: 2px solid #315e50; color: #173f34; background: #fff; border-radius: 9px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
button.primary, button[aria-pressed="true"] { background: #245a49; color: #fff; } button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a55417; outline-offset: 3px; }
.hint, .groups { background: #e9f1e9; padding: 12px; border-radius: 8px; } .board { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border: 4px solid #315e50; border-radius: 8px; overflow: hidden; }
.cell { min-width: 0; min-height: 78px; padding: 5px; background: #f8faf6; border-right: 3px dashed #a3b4a7; border-bottom: 3px dashed #a3b4a7; overflow-wrap: anywhere; }
.cell[data-right="sealed"] { border-right: 5px solid #285a48; } .cell[data-down="sealed"] { border-bottom: 5px solid #285a48; }
.cell small, .cell strong { display: block; } .cell small { font-size: .78rem; } #groups-toggle { margin-top: 14px; } #status { min-height: 2em; font-weight: 700; }
details { margin-top: 18px; } footer { color: #42574f; }
dialog { max-width: min(90vw, 520px); border: 2px solid #315e50; border-radius: 16px; padding: 24px; color: #263a39; } dialog::backdrop { background: #182c27b3; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
