:root{font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#263d34;background:#edf2ea;line-height:1.6}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;padding:clamp(10px,3vw,32px)}main{max-width:920px;margin:auto;background:#fffdf7;border:2px solid #c5d7c3;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px #27463816}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(18px,4vw,34px);background:#e2eddb;border-bottom:2px solid #b8ceb4}h1,h2,p{margin:0 0 .6em}h1{font-size:clamp(1.8rem,5vw,2.6rem);line-height:1.2}h2{font-size:1.5rem}.eyebrow{font-size:.95rem;font-weight:700;color:#355d46}.art{width:clamp(80px,18vw,130px);flex:none}section{padding:clamp(18px,4vw,34px)}button{font:inherit;min-height:48px;border:2px solid #4e6b59;border-radius:8px;padding:9px 14px;background:#fffdf7;color:#263d34;cursor:pointer;font-weight:700}button:hover:not(:disabled){background:#e9f2e4}button:focus-visible,a:focus-visible{outline:4px solid #1c6380;outline-offset:3px}button:disabled{opacity:.65;cursor:default}.choices{display:flex;flex-wrap:wrap;gap:9px}.primary{background:#315e49;color:#fff;border-color:#244637}.primary:hover:not(:disabled){background:#244637}.bounds{font-weight:700;background:#edf4e7;border-radius:8px;padding:10px}.board-wrap{overflow:auto}.board{display:grid;grid-template-columns:repeat(5,minmax(44px,64px));width:max-content;background:#fff;border:1px solid #9aaf9d}.cell{width:64px;height:64px;border:1px solid #c5d2c4;display:grid;place-items:center;font-size:.9rem;font-weight:800;background:#f8f9f3}.cell.inside{background:#e4efe0}.cell.include{color:#174c37}.cell.exclude{color:#773c2c}.cell.edge-top{border-top:4px solid #a44d2c}.cell.edge-bottom{border-bottom:4px solid #a44d2c}.cell.edge-left{border-left:4px solid #a44d2c}.cell.edge-right{border-right:4px solid #a44d2c}.markers{padding-left:22px;line-height:1.8}fieldset{border:2px solid #c5d7c3;border-radius:9px;margin:18px 0;padding:14px}legend{font-size:1.1rem;font-weight:700}.edge-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}.edge-controls strong{display:block;margin-bottom:5px}.status{background:#fff0d8;border-left:5px solid #a57832;min-height:3em;padding:10px;margin:18px 0;font-weight:700}footer{padding:20px 30px;background:#e8f0e6;border-top:1px solid #c5d7c3}a{color:#1c5874;font-weight:700}@media(max-width:440px){body{padding:6px}header,section{padding:16px}.art{width:72px}.cell{width:48px;height:48px}.board{grid-template-columns:repeat(5,48px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
