html{touch-action:manipulation}
:root{font-family:'Yu Gothic UI','Hiragino Kaku Gothic ProN',sans-serif;color:#243c36;background:#eff2e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #528f74;outline-offset:4px}button:disabled{opacity:.35;cursor:default}main{max-width:1180px;margin:auto;padding:0 48px}header{height:112px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #cdd5c7}.brand{font-weight:700;font-size:21px;color:inherit;text-decoration:none;letter-spacing:.13em;display:flex;gap:13px;align-items:center}.brand-dot{width:10px;height:10px;border-radius:50%;background:#85a75a}.edition{font-size:12px;letter-spacing:.1em;color:#6b796b}.layout{display:grid;grid-template-columns:1fr 480px;gap:85px;padding:58px 0 62px;align-items:start}.intro{padding-top:22px}.mark{font-size:52px;color:#78965a;margin-bottom:24px}h1{font-size:38px;line-height:1.7;letter-spacing:.08em;margin:0 0 22px;font-weight:600}.lead{color:#6c7b6d;line-height:2;font-size:14px;margin-bottom:32px}.modes{display:flex;gap:8px}.modes button{background:transparent;border:1px solid #b9c7b5;border-radius:30px;padding:11px 23px;font-size:14px}.modes button[aria-pressed=true]{color:#f3f5e9;background:#293f36;border-color:#293f36}.rule{display:flex;align-items:center;gap:17px;margin:25px 0}.rule p{font-size:13px;line-height:1.9;max-width:210px}.rule #rule-diagram{display:grid;grid-template-columns:repeat(3,12px);gap:4px}.rule i{width:12px;height:12px;border-radius:3px;background:#d6dece}.rule i.active{background:#85a75a}.rule i.center{outline:1px solid #2b4838;outline-offset:1px}details{font-size:12px;line-height:1.9;color:#5d715f;max-width:340px}summary{cursor:pointer;width:max-content}details p{margin:13px 0}.save-note{font-size:10px;color:#81907d;margin-top:36px}.game{position:relative;background:#fafbf5;border:1px solid #d8dfcf;border-radius:22px;padding:28px 30px 25px;box-shadow:0 18px 50px #42572c08}.game-heading{display:flex;justify-content:space-between;align-items:center}.stage-label{font-size:11px;letter-spacing:.06em;color:#75846b}.stage-label b{color:#34513c;margin-left:4px}#size-label{margin-left:15px;color:#8a967f}h2{font-size:18px;font-weight:600;margin:8px 0 0}#progress{font-size:11px;color:#849176;font-variant-numeric:tabular-nums}.stages{display:flex;justify-content:space-between;margin:24px 0}.stages button{width:24px;height:24px;font-size:10px;border:0;border-radius:50%;background:#e8ecdf;color:#7e8c74;padding:0}.stages button.done{background:#cdddaf;color:#395230}.stages button.current{background:#2e4938;color:white}.stats{display:flex;justify-content:space-around;border-top:1px solid #e1e6d7;border-bottom:1px solid #e1e6d7;padding:16px 0}.stats div{text-align:center;display:flex;align-items:center;gap:13px}.stats span{font-size:11px;color:#829076}.stats b{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}.board-wrap{padding:27px 6px 10px}#board{display:grid;gap:4px;touch-action:none;user-select:none;-webkit-user-select:none}#board button{position:relative;aspect-ratio:1;border-radius:4px;background:#293f36;border:2px solid transparent;box-shadow:inset 0 -4px 0 #182b2540;transition:background .18s,box-shadow .18s,transform .15s;padding:0}#board button:before{content:'';position:absolute;left:calc(50% - 5px);top:calc(50% - 5px);width:10px;height:10px;border-radius:50%;background:#5d7666;transition:all .18s}#board button.on{background:#d3e98a;box-shadow:inset 0 -4px 0 #96ad4840}#board button.on:before{background:#faffd5;box-shadow:0 0 18px #fbffc5}#board button.preview{border-color:#dc9270;box-shadow:inset 0 0 0 3px #dc92704d}#board button.selected:after{content:'＋';font-size:20px;color:#dc9270;position:absolute;left:8px;top:2px}#board button.hint{outline:3px dashed #ad785b;outline-offset:3px}#status{font-size:11px;text-align:center;color:#7b8971;min-height:20px;margin:12px 0 19px}.actions{display:flex;justify-content:space-between;gap:6px}.actions button{font-size:11px;background:transparent;border:1px solid #d7dfcc;border-radius:7px;padding:10px 11px}.actions button:hover:not(:disabled){background:#eaf0de}#clear{position:absolute;inset:0;background:#f8faf1f5;border-radius:22px;align-content:center;text-align:center;padding:30px;backdrop-filter:blur(7px)}#clear[hidden]{display:none}.clear-symbol{font-size:70px;color:#82a359}#clear h3{font-size:23px;font-weight:500}#clear p{font-size:13px;color:#71836a}#next{background:#2e4938;color:white;border:0;border-radius:30px;padding:14px 30px;margin-top:20px}footer{border-top:1px solid #cdd5c7;padding:25px 0 30px;display:flex;justify-content:space-between;color:#8a967f;font-size:10px;letter-spacing:.04em}@media(max-width:900px){main{padding:0 25px}.layout{gap:30px;grid-template-columns:1fr 420px}h1{font-size:29px}.game{padding:24px}.edition{display:none}}@media(max-width:700px){main{padding:0 20px;max-width:480px}header{height:75px}.brand{font-size:17px}.layout{display:flex;flex-direction:column;gap:24px;padding:25px 0}.intro{padding:0;width:100%}.mark{display:none}h1{font-size:25px;line-height:1.6;margin-bottom:10px}h1 br{display:none}.lead{font-size:12px;line-height:1.8;margin:0 0 17px}.lead br{display:none}.modes button{padding:9px 23px}.rule{margin:16px 0 10px;gap:13px}.rule p{max-width:none;margin:0;font-size:11px}details{max-width:none;font-size:11px}.save-note{display:none}.game{width:100%;padding:23px 20px;border-radius:18px}.stages button{width:22px;height:22px}.board-wrap{padding:22px 0 6px}#board{gap:3px}#board button{border-radius:3px}footer{font-size:9px;line-height:1.8;padding-top:18px}footer span:last-child{display:none}.actions button{padding:10px 9px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Stage selection and focused play are separate screens. */
body[data-view=select] .game,body[data-view=play] .intro,body[data-view=play] .stage-picker,body[data-view=play] header,body[data-view=play] footer{display:none}
.stage-picker{background:#fafbf5;border:1px solid #d8dfcf;border-radius:22px;padding:28px 30px}.picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.picker-heading h2{margin:0}.stage-picker .stages{display:grid;grid-template-columns:1fr;gap:6px;margin:0}.stage-picker .stages button{width:100%;height:auto;min-height:43px;border-radius:7px;background:transparent;border:1px solid transparent;display:flex;align-items:center;gap:16px;padding:10px 12px;text-align:left;color:#344e3b}.stage-picker .stages button:hover{background:#eaf0de}.stage-picker .stages button.current{background:#e8efda;border-color:#c7d6b5;color:#344e3b}.stage-picker .stages button.done .stage-index{color:#5e7f38}.stage-index{font-size:11px;color:#91a17f;font-variant-numeric:tabular-nums}.stage-title{font-size:13px}.stage-result{margin-left:auto;font-size:10px;color:#82946f;white-space:nowrap}.play-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.play-toolbar button{border:0;background:transparent;padding:5px 0;font-size:12px;color:#6b7e60}#play-mode{font-size:11px;color:#718462}body[data-view=play] main{max-width:580px;padding:0 24px}body[data-view=play] .layout{display:block;padding:28px 0}body[data-view=play] .game{width:100%;margin:auto}body[data-view=play] .game-heading{margin-bottom:20px}body[data-view=play] .board-wrap{max-width:min(100%,calc(100svh - 340px));margin:auto}body[data-view=play] #clear{inset:62px 0 0;border-radius:0 0 22px 22px}
@media(max-width:700px){.stage-picker{width:100%;padding:23px 20px}.stage-picker .stages button{min-height:42px}body[data-view=play] main{padding:0 12px;max-width:480px}body[data-view=play] .layout{padding:12px 0}body[data-view=play] .game{padding:16px 18px}.play-toolbar{margin-bottom:18px}body[data-view=play] .board-wrap{max-width:min(100%,max(180px,calc(100svh - 310px)))}body[data-view=play] #status{margin:8px 0 12px}body[data-view=play] .game-heading{margin-bottom:15px}}

#clear-stars{font-size:46px;color:#a38234;letter-spacing:.13em;padding-left:.13em}#clear #star-guide{font-size:11px;color:#8d987e;margin-top:17px}.clear-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:26px}#clear #next{margin:0;min-width:210px}#retry{background:transparent;border:1px solid #b6c7a1;border-radius:30px;padding:13px 28px;min-width:210px;font-size:13px}.stage-picker .stages button.done .stage-result{color:#927431}


.energy{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#819173;margin-top:15px;padding-top:12px;border-top:1px solid #e1e6d7}.energy b{font-weight:500;color:#48603b;margin-left:7px;font-variant-numeric:tabular-nums}#energy-recovery{font-variant-numeric:tabular-nums;text-align:right}body[data-view=play] .board-wrap{max-width:min(100%,max(180px,calc(100svh - 360px)))}

.stage-paging{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;font-size:12px;color:#6e8261}.stage-paging button{border:1px solid #d7dfcc;background:transparent;border-radius:5px;min-width:38px;height:34px}.stage-paging label{display:flex;align-items:center;gap:12px}.stage-paging select{font:inherit;color:#344e3b;background:#fafbf5;border:1px solid #c5d1b8;border-radius:5px;padding:7px 10px}.stage-paging select:focus-visible{outline:2px solid #528f74;outline-offset:2px}
/* Autumn: warm light against a quiet night. */
:root{color:#e9dcc5;background:#191714;color-scheme:dark}body{background:radial-gradient(ellipse at 15% 0,#432b1d66,transparent 55%),#191714}header,footer{border-color:#45392c}.brand-dot,.rule i.active{background:#c86d37}.edition,.lead,details{color:#b4a389}.mark{color:#c87c3f}.modes button{border-color:#66503b;color:#b8a283}.modes button[aria-pressed=true]{background:#b85f30;border-color:#b85f30;color:#fff0d3}.rule i{background:#453a2e}.rule i.center{outline-color:#dab47b}.rule p,.save-note,footer{color:#a79579}.game,.stage-picker{background:#242019;border-color:#4a3b2c;box-shadow:0 18px 80px #0003}.stage-label,.stats span,#progress,#status,.play-toolbar button,#play-mode,.stage-paging,.stage-index,.stage-result,.energy,#energy-recovery{color:#b69e7d}.stage-label b,.stats b,.energy b{color:#efd3a1}.stats,.energy{border-color:#4a3c2c}.actions button,.stage-paging button{border-color:#5d4933;color:#ceb38d}.actions button:hover:not(:disabled){background:#493320}.stage-paging select{background:#29231b;border-color:#5f4933;color:#e0c39b}.stage-picker .stages button{color:#e5d2b4}.stage-picker .stages button:hover{background:#36291e}.stage-picker .stages button.current{background:#403020;border-color:#765132;color:#f3d4a4}.stage-picker .stages button.done .stage-result,.stage-picker .stages button.done .stage-index{color:#dfa15f}#board button{background:#191916;box-shadow:inset 0 -3px 0 #0003}#board button:before{background:#4d473b}#board button.on{background:#d7994d;box-shadow:inset 0 -3px 0 #a3632e}#board button.on:before{background:#ffe5ab;box-shadow:0 0 22px #ffc75d88}#board button.preview{border-color:#f3d198;box-shadow:inset 0 0 0 2px #f3d19844}#board button.selected:after{color:#fce2aa}#board button.hint{outline-color:#ffe2a5}#clear{background:#272016f5}#clear-stars{color:#e9b965}#clear p,#clear #star-guide{color:#c8aa7c}#clear #next{background:#ba6634;color:#fff0d9}#retry{border-color:#8d603b;color:#e5c69e}button:focus-visible,summary:focus-visible,a:focus-visible{outline-color:#ecb575}#leaves{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:5}body[data-view=select] #leaves{visibility:hidden}
.share-offer{margin-top:27px}.share-offer p,.play-share span{font-size:10px;color:#ad9777;margin:8px 0}.share-offer button,[data-share]{border:1px solid #805732;background:#39271b;border-radius:6px;padding:10px 14px;font-size:11px;color:#efc994}.play-share{display:flex;flex-direction:column;align-items:flex-end;gap:0;margin-top:10px}.play-share span{font-size:9px;margin-bottom:0}.energy{margin-top:12px}#share-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:8;background:#403020;color:#f2d7ab;border-radius:7px;font-size:12px;padding:12px 18px;max-width:90%;width:max-content}#share-status:empty{display:none}#ranking-panel{border-top:1px solid #54402b;padding-top:20px;margin-top:20px;max-width:none}#ranking-panel summary{font-size:14px;color:#e6c59a}.ranking-rule{font-size:10px;line-height:1.8}#profile-form{display:flex;gap:8px;align-items:center;margin:18px 0}#profile-form label{white-space:nowrap;font-size:11px}#player-name{min-width:0;width:100%;font:inherit;font-size:12px;border:1px solid #725437;border-radius:4px;background:#191714;color:#ecd8b6;padding:9px}#player-name:focus{outline:0;border-color:#e3b26b}#profile-form button,#ranking-refresh{border:1px solid #725437;background:transparent;color:#e0bc88;border-radius:4px;padding:8px 10px;white-space:nowrap;font-size:11px}#ranking-list{list-style:none;padding:0;margin:20px 0}#ranking-list li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #443526;padding:10px 0;font-size:11px}#ranking-status,#profile-status,#ranking-result{font-size:10px}#hint.idle{animation:hint-glow 1.5s ease-in-out infinite}@keyframes hint-glow{50%{background:#70502b;border-color:#e7b15e;box-shadow:0 0 15px #d6923b55;color:#ffe2a2}}@media(prefers-reduced-motion:reduce){#hint.idle{animation:none;border-color:#e7b15e;background:#50381f}}body[data-view=play] .board-wrap{max-width:min(100%,max(180px,calc(100svh - 425px)))}
