:root { color-scheme: light; font-family: system-ui, sans-serif; color: #243c31; background: #f3efe5; font-size: 18px; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 55rem); margin: 2rem auto; padding: clamp(1rem, 3vw, 2rem); background: #fffdf7; border: 2px solid #c4d2c0; border-radius: 1rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin: .3rem 0; }
h2 { font-size: 1.2rem; margin: 1rem 0 .4rem; }
p { line-height: 1.6; }
.eyebrow { color: #3b6150; font-weight: 700; margin: 0; }
button, select { font: inherit; color: #243e32; background: #fffdf7; border: 2px solid #577568; border-radius: .5rem; min-height: 44px; padding: .5rem .75rem; cursor: pointer; }
button:hover:not(:disabled) { background: #e7f1e6; }
button:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 4px solid #a14917; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .75; }
button[aria-pressed="true"] { border: 4px solid #a14917; background: #ffead1; }
.toolbar, .list-controls, form { display: flex; flex-wrap: wrap; gap: .5rem; }
form { flex-direction: column; align-items: flex-start; }
label { display: grid; gap: .3rem; }
#status, #summary, #feedback { padding: .7rem; background: #edf4e9; border-radius: .4rem; }
#feedback { border: 2px solid #315547; font-weight: 700; }
#exit-confirm { padding: 1rem; margin: 1rem 0; border: 2px solid #80552e; border-radius: .5rem; background: #fff6e8; }
.board-scroll { overflow-x: auto; max-width: 100%; padding: .3rem; }
.board { display: grid; grid-template-columns: repeat(8, 48px); width: 384px; }
.square { width: 48px; height: 48px; min-height: 48px; position: relative; border: 1px solid #617d6a; border-radius: 0; padding: 0; background: #f7f3e9; }
.square.dark { background: #cbdcc7; }
.square.possible { border: 3px dashed #974511; }
.square svg { width: 38px; height: 38px; display: block; margin: auto; }
.square span { position: absolute; right: 1px; bottom: 0; font-size: 9px; color: #152f25; background: #fff; }
@media (max-width: 360px) { main { width: 100%; margin: 0; padding: .6rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
dialog { max-width: min(90vw, 480px); border: 2px solid #426c60; border-radius: 16px; padding: 24px; color: #243b36; } dialog::backdrop { background: #182c27b3; }
