:root{--ink:#203e35;--soft:#4e6359;--green:#245d4e;--paper:#f8f6e9;--line:#c2cbb7;--serif:Georgia,"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif;--sans:system-ui,"Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans CJK JP",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 var(--sans);overflow-wrap:anywhere}.garden{width:min(100%,820px);margin:auto;background:var(--paper);border:1px solid #bdc7b4}.mast{background:#254b41;color:#fff4d8;padding:9px clamp(13px,3vw,26px);display:flex;justify-content:space-between;align-items:center;gap:6px 18px;flex-wrap:wrap;font-size:14px;letter-spacing:.05em}.mast label{font-size:12px;display:flex;align-items:center;gap:7px}.mast select{font:inherit;font-size:13px;color:#25463a;background:#f4f2df;border:1px solid #b4c4aa;border-radius:5px;padding:5px;min-height:35px;max-width:100%}.garden :is(a,button,select,summary):focus-visible{outline:3px solid #a25031;outline-offset:3px}
article{padding:clamp(12px,3.4vw,27px)}h1,h2,p{margin:0}.chapter{font-size:12px;letter-spacing:.09em;font-weight:650;color:#576741}h1,h2{font-family:var(--serif);line-height:1.35}h1{font-size:clamp(24px,4.6vw,37px);letter-spacing:.05em;margin:3px 0 5px}.opening{margin-bottom:14px}#letter{font-size:14px;color:#405247;line-height:1.8}.panel{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(195px,1fr);border:1px solid #b4c3ac;border-radius:8px;overflow:hidden;background:#edf0e3}.mapbox{display:flex;justify-content:center;flex-direction:column;align-items:center;background:#e9ecdd;padding:10px 8px;border-right:1px solid #b9c4ab}.mapbox svg{width:100%;height:auto;max-height:245px;display:block}.mapbox p{font-size:11px;color:#455947;padding-top:6px}.ledger{padding:14px;align-self:center}.ledger h2,.head h2,#forecast h2{font-size:20px}.ledger table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;line-height:1.35;margin-top:6px}.ledger th,.ledger td{padding:4px 3px;text-align:center}.ledger thead th{font-size:11px;font-weight:550;color:#5b6654;border-bottom:1px solid #a8b799}.ledger tbody th{white-space:nowrap;font-weight:550;font-size:13px}.ledger tbody td{font-weight:650;font-size:14px}.ledger tr+tr{border-top:1px dotted #bdc5b1}.ledger th:first-child{text-align:left}.lettertile{border:1px solid #93a99c;background:#f6f5e4;color:#2d4d40;display:inline-grid;place-items:center;border-radius:3px;margin-right:5px;width:17px;height:17px;font:600 11px/1 Georgia,serif}.hit{color:#206044}.wrong{color:#99502c}.ledger tbody td:last-child{font-weight:450;color:#5b6557}
#forecast{margin-top:12px;padding:10px 12px;border:1px solid #bdc8b9;border-radius:6px;background:#eff2e9;display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}#forecast h2{font-size:16px}#rain{display:flex;list-style:none;gap:4px 12px;padding:0;margin:0;flex-wrap:wrap;font-size:12px}#rain li{border-left:2px solid #709890;padding-left:6px}#rain li.past{color:#6b7169;border-left-color:#bdc6b8}
.control{margin:17px 0 12px}.head,.tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px}.head{justify-content:space-between}#unit,#instruction,#moves{color:var(--soft);font-size:13px}#instruction{margin:4px 0 9px}.head h2{font-size:21px}#gates{display:grid;grid-template-columns:repeat(auto-fit,minmax(133px,1fr));gap:7px}button,.after a{font:inherit;color:var(--ink);cursor:pointer}.gate{border:1px solid #93a993;background:#f9faf0;box-shadow:0 1px 0 #96a69944;border-radius:6px;padding:8px 9px;text-align:left;line-height:1.4;min-height:51px}.gate b{font-size:14px;display:block}.gate .arrow{color:#805f37;margin:0 4px}.gate small{display:block;font-size:11px;color:#4c6959}.gate[aria-disabled="true"]{background:#efeee1;border-color:#c0c4af;box-shadow:none}.gate[aria-disabled="true"] small{color:#66695b}.gate:not([aria-disabled="true"]):hover{background:#e3ecdd}.gate.last{border:2px solid #648b70;padding:7px 8px}.tools{gap:7px}.tools button,.after :is(button,a){font-size:13px;font-weight:600;padding:7px 12px;border:1px solid #a7b39b;border-radius:5px;background:#f7f4e6;min-height:40px}.tools button:disabled{opacity:.45;cursor:default}#moves{margin-left:auto;font-variant-numeric:tabular-nums}#message{border-left:3px solid #93a58d;background:#e9eee1;padding:9px 12px;margin-top:11px;font-size:14px}#message[data-kind="success"]{background:#dcebdd;border-color:#407b58}#message[data-kind="flood"],#message[data-kind="blocked"]{background:#f4e6d8;border-color:#b77246}#detail{font-size:13px}#detail:empty{display:none}.after{margin:8px 0}.after :is(a,button){display:inline-block;color:#fff7df;background:#245b4e;border-color:#245b4e;text-decoration:none}details{font-size:13px;border-top:1px solid var(--line);padding:8px 0}summary{font-weight:650;cursor:pointer}details p{margin:6px 0;line-height:1.8}footer{font-size:12px;color:#536153;text-align:center;border-top:1px solid var(--line);padding:10px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.flow{animation:water-run .8s linear 2}@keyframes water-run{from{stroke-dashoffset:9}to{stroke-dashoffset:0}}
@media(max-width:560px){.panel{grid-template-columns:1fr}.mapbox{padding:7px 8px;border-right:0;border-bottom:1px solid #bdc7af}.mapbox svg{max-height:150px}.mapbox p{padding:0;font-size:10px}.ledger{padding:7px 12px 10px}.ledger h2{font-size:16px}.ledger th,.ledger td{padding:3px}.ledger table{margin-top:3px}#gates{grid-template-columns:repeat(2,minmax(0,1fr))}.gate b{font-size:13px}.chapter{font-size:11px}#letter,#instruction{font-size:13px}#moves{font-size:12px}.tools{gap:6px}.tools button{padding:7px 9px}.head h2{font-size:18px}}
@media(max-width:360px){.mast{font-size:13px}.ledger{padding:5px 9px 8px}.gate{padding:7px}.gate.last{padding:6px}.gate .arrow{margin:0 2px}.tools #moves{flex-basis:100%;margin:0}.ledger tbody th,.ledger tbody td{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
