@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--ink:#eff4e9;--muted:#a9bcb0;--dim:#849e91;--green:#b9e39c;--gold:#d9c68e;--border:rgba(210,233,208,.15);--panel:rgba(22,49,41,.86);font-family:'Noto Sans JP',sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#102923;color:var(--ink);min-height:100dvh;font-size:16px}.ambient{position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(9,30,26,.63),rgba(9,29,25,.3) 48%,rgba(9,30,26,.64)),linear-gradient(0deg,#0c231ee6,transparent 70%),url('./assets/garden.webp') center/cover no-repeat;pointer-events:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--green);outline-offset:5px}button{border:0}a{color:inherit;text-decoration:none}.topbar{max-width:1456px;margin:auto;padding:30px 56px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(209,232,217,.12)}.wordmark{display:flex;align-items:center;gap:12px;font-family:'Cormorant Garamond',Georgia,serif;font-size:29px;letter-spacing:3px;font-weight:500}.wordmark>span{font-size:20px;letter-spacing:3.5px}.top-actions{display:flex;gap:12px}.icon-btn,.quiet-button{background:transparent;display:grid;place-items:center;border:1px solid var(--border);width:40px;height:40px;border-radius:50%;color:#c4d4c8;transition:background .2s,color .2s}.icon-btn:hover,.quiet-button:hover{background:#c5e3b51c;color:white}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.game-layout{max-width:1344px;margin:0 auto;display:grid;grid-template-columns:minmax(190px,1fr) minmax(320px,540px) minmax(190px,1fr);gap:clamp(24px,4.8vw,72px);padding:35px 48px 32px;align-items:start}.eyebrow{font-size:12px;letter-spacing:2.3px;color:var(--gold);font-weight:500;margin:0 0 14px}.journey{padding-top:45px}h1{font-size:clamp(26px,2.65vw,38px);font-weight:500;letter-spacing:.06em;line-height:1.65;margin:0 0 17px}.intro{font-size:14px;line-height:2;color:var(--muted);margin:0 0 32px}.chapter-link{display:flex;align-items:center;gap:12px;text-align:left;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:transparent;width:100%}.chapter-mark{font-family:'Cormorant Garamond',Georgia,serif;font-size:34px;color:var(--gold)}.chapter-link small{display:block;font-size:10px;letter-spacing:1.7px;color:var(--dim);margin-bottom:5px}.chapter-link strong{font-size:14px;font-weight:500;white-space:nowrap}.chevron{margin-left:auto;color:var(--gold);font-size:24px}.route{display:flex;gap:0;align-items:center;padding:26px 0}.route button{flex:0 0 32px;height:32px;border-radius:50%;border:1px solid #9bb6a53b;background:#16372dd9;color:#aec3b4;font-size:12px;position:relative;z-index:1}.route button:not(:last-child){margin-right:14px}.route button:not(:last-child):after{content:'';position:absolute;width:14px;height:1px;background:#a1c5a545;top:15px;left:31px}.route button.current{background:var(--green);border-color:var(--green);color:#25412f;box-shadow:0 0 23px #acd79826}.route button.done{border-color:#b9e39c88;color:var(--green)}.route button:disabled{opacity:.6}.special-note{display:flex;gap:11px;margin-top:26px}.note-spark{color:var(--gold);font-size:22px}.special-note p{font-size:12px;line-height:2;color:var(--dim);margin:0}.special-note b{font-weight:500;color:#c4d5c6;font-size:13px}.journey-foot{font-size:10px;color:#88a192;letter-spacing:1.6px;margin:65px 0 0}.level-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.level-heading .eyebrow{font-size:11px;margin:0 0 4px}.level-heading h2{font-weight:500;font-size:22px;margin:0;letter-spacing:.05em}.quiet-button{border:0;width:32px;height:32px}.game-hud{display:flex;align-items:stretch;background:#18392fcc;border:1px solid var(--border);border-radius:16px;margin-bottom:13px;min-height:88px;padding:14px 0;backdrop-filter:blur(16px)}.moves-panel{width:104px;min-width:89px;text-align:center;border-right:1px solid var(--border)}.moves-panel>span,.mission-panel>span{font-size:12px;color:var(--muted);display:block}.moves-panel strong{font-family:'Cormorant Garamond',Georgia,serif;font-size:38px;line-height:1.13;display:block;font-weight:600;color:#edf2de;font-variant-numeric:tabular-nums}.moves-panel strong.low{color:#ffa98d;animation:low 1.4s infinite}.mission-panel{padding:0 20px;flex:1}.mission-panel>span{margin-bottom:8px}#goals{display:flex;align-items:center;gap:18px}.goal{display:flex;gap:7px;align-items:center;font-size:17px;font-weight:600;line-height:1}.goal small{font-size:12px;color:var(--muted);font-weight:400}.goal.complete{color:var(--green)}.goal-icon{width:24px;height:24px;display:grid;place-items:center}.goal-icon svg{width:24px;height:24px}.goal-icon.color-1{color:#b8e76d}.goal-icon.ice{color:#9addf5}.goal-icon.vine{color:#a6c579}.goal-icon.stone{color:#bfbdb0}.goal-icon.score{color:var(--gold)}.board-shell{position:relative;aspect-ratio:1;border-radius:19px;border:1px solid #86a88888;background:linear-gradient(135deg,#355344,#193a2f 45%,#2f4b3b);padding:9px;box-shadow:0 18px 50px #0005,inset 0 1px 0 #f7e5ac44,0 0 0 4px #a4b9960a}.board-shell:before{content:'';position:absolute;inset:4px;border:1px solid #a8c59a30;border-radius:15px;pointer-events:none}.board-shell canvas{width:100%;height:100%;display:block;border-radius:12px;touch-action:none;cursor:grab;user-select:none}.board-shell canvas:active{cursor:grabbing}.board-corners{position:absolute;inset:-4px;pointer-events:none;border-radius:24px;background:linear-gradient(var(--gold),var(--gold)) top left/12px 2px no-repeat,linear-gradient(var(--gold),var(--gold)) top left/2px 12px no-repeat,linear-gradient(var(--gold),var(--gold)) bottom right/12px 2px no-repeat,linear-gradient(var(--gold),var(--gold)) bottom right/2px 12px no-repeat;opacity:.65}.score-row{display:flex;align-items:center;gap:12px;min-height:47px;font-size:10px;letter-spacing:1px;color:var(--muted)}.score-row b{font-size:15px;letter-spacing:.5px;color:#e5eadd;font-weight:500;padding-left:4px;font-variant-numeric:tabular-nums}.score-progress{height:4px;background:#afcfb32b;flex:1;border-radius:4px;position:relative;margin:0 9px 0 2px}.score-progress>span{display:block;width:0;height:100%;background:var(--gold);border-radius:4px;transition:width .4s}.score-progress i{position:absolute;top:-8px;font-size:17px;font-style:normal;color:#6d8873;text-shadow:0 2px 5px #17382a}.score-progress i:nth-of-type(1){left:30%}.score-progress i:nth-of-type(2){left:63%}.score-progress i:nth-of-type(3){right:-7px}.score-progress i.lit{color:var(--gold)}.best{font-size:10px;white-space:nowrap;letter-spacing:.5px}.boosters{display:flex;gap:11px}.booster{flex:1;position:relative;background:#19382dbc;border:1px solid var(--border);padding:12px 9px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;font-size:12px;transition:background .2s,transform .2s;white-space:nowrap}.booster:hover{background:#325541c9;transform:translateY(-2px)}.booster.active{background:#415334;border-color:var(--gold)}.booster small{position:absolute;top:-6px;right:7px;min-width:20px;height:19px;border-radius:6px;background:#d5d8b8;color:#28402d;padding:1px 4px;font-size:11px}.booster-icon{display:flex;color:#d9c997}.booster-icon svg{width:20px;height:20px}.play-tip{font-size:12px;text-align:center;color:#b3c9b9;margin:15px -10px 0;line-height:1.7;min-height:21px}.field-guide{padding-top:55px}.field-guide>.eyebrow{font-size:10px}.field-guide>h2{font-weight:500;font-size:20px;letter-spacing:.08em;margin:0 0 26px}.recipe{display:flex;gap:15px;align-items:center;margin-bottom:27px}.recipe-gem{width:43px;height:43px;flex-shrink:0;display:grid;place-items:center;box-shadow:inset 0 2px 1px #ffffff80,0 5px 12px #0004;font-size:26px;position:relative}.line-demo{background:linear-gradient(135deg,#bbe9ff,#4db5cf 40%,#2b7daa);border-radius:10px;color:#e5ffff;transform:rotate(-8deg)}.bomb-demo{background:linear-gradient(135deg,#d3b7fa,#a06ae1 40%,#603694);border-radius:13px;color:#ffe5ff;transform:rotate(10deg)}.prism-demo{background:conic-gradient(#f6c885,#e896b7,#afa2fa,#8de1e1,#b8e78c,#f6c885);border-radius:50%;color:#fff;box-shadow:inset 0 0 0 4px #fffe,0 0 18px #c5e4b522}.match-count{font-size:10px;letter-spacing:1.3px;color:#b6ba93}.recipe h3{font-size:14px;font-weight:500;margin:3px 0 6px}.recipe p{font-size:11px;line-height:1.8;color:var(--muted);margin:0;white-space:nowrap}.guide-divider{height:1px;background:var(--border);margin:29px 0 22px}.gimmick-guide{display:flex;flex-direction:column;gap:12px}.gimmick-item{display:flex;gap:10px;align-items:center;font-size:12px;color:#bacdbe}.gimmick-item svg{width:21px;height:21px;flex-shrink:0;color:#c9dcb9}.text-button{display:flex;justify-content:space-between;align-items:center;width:100%;background:transparent;color:#cbd8bd;font-size:12px;margin-top:25px;padding:13px 0;border-bottom:1px solid var(--border)}.garden-sign{display:flex;gap:13px;align-items:center;margin:49px 0 0;color:#adbc9566}.garden-sign>span:first-child{font-size:42px;font-family:Georgia,serif}.garden-sign>span:last-child{font-family:'Cormorant Garamond',Georgia,serif;font-size:17px;letter-spacing:3px;line-height:1.3}.footer{max-width:1344px;padding:0 48px 20px;margin:auto;display:flex;justify-content:space-between;color:#8da797;font-size:10px;letter-spacing:1.5px}.footer>span:nth-child(2){letter-spacing:1px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#board-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;font-size:clamp(20px,3vw,36px);letter-spacing:1px;font-weight:800;text-align:center;text-shadow:0 3px 0 #234733,0 0 30px #234733,0 5px 14px #0008;color:#fff7c8;opacity:0;transform:scale(.9);transition:opacity .2s,transform .25s}.board-shell.flash #board-message{opacity:1;transform:scale(1)}.board-shell.shake{animation:shake .23s}.board-shell.armed{box-shadow:0 0 0 2px var(--gold),0 0 35px #cfb56533}dialog{color:var(--ink);background:linear-gradient(150deg,#2b493b,#132d26);border:1px solid #c6d5a64d;border-radius:24px;width:min(480px,calc(100% - 32px));padding:36px;box-shadow:0 30px 120px #000b;max-height:88dvh;overflow-y:auto}dialog::backdrop{background:#081b17bc;backdrop-filter:blur(8px)}.modal-close{position:absolute;right:16px;top:16px;font-size:23px;width:32px;height:32px}#modal-content>h2{font-size:27px;font-weight:500;margin:12px 0 14px}#modal-content>.eyebrow{margin-top:5px}#modal-content p{font-size:14px;color:#bfd0c3;line-height:1.9}.modal-symbol{font-family:'Cormorant Garamond',serif;font-size:66px;color:var(--gold);line-height:1.2;margin-top:12px}.result{text-align:center}.result-stars{font-size:41px;letter-spacing:12px;color:#789076;margin:20px 0}.result-stars .on{color:#e6cf83;filter:drop-shadow(0 0 12px #d8c88340)}.result-score{font-family:'Cormorant Garamond',Georgia,serif;font-size:54px;color:#e9f0d8;line-height:1.2}.result-stats{display:flex;justify-content:center;gap:30px;font-size:12px;color:var(--muted);margin:16px 0 26px}.primary-button{border-radius:10px;background:#c2e39c;color:#234332;min-height:48px;padding:12px 22px;font-weight:600;font-size:14px;width:100%;transition:background .2s,transform .2s}.primary-button:hover{background:#d5f4b4;transform:translateY(-1px)}.secondary-button{background:transparent;border:1px solid var(--border);border-radius:10px;min-height:44px;padding:10px 20px;font-size:14px;width:100%;margin-top:10px;color:#cddbc8}.rules-list{display:grid;gap:15px;margin:24px 0}.rule-item{display:flex;gap:14px;align-items:center}.rule-item .recipe-gem{width:36px;height:36px;font-size:22px}.rule-item p{margin:0;font-size:12px!important;line-height:1.8!important}.rule-item b{color:var(--ink);font-size:14px}.rule-terrain{display:grid;gap:10px;border-top:1px solid var(--border);padding-top:18px;margin:16px 0 24px}.rule-terrain div{display:flex;gap:10px;font-size:12px;color:var(--muted);line-height:1.8}.rule-terrain svg{flex-shrink:0;color:var(--green)}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:25px 0 20px}.level-tile{display:flex;align-items:center;flex-direction:column;gap:5px;padding:15px 5px 12px;border:1px solid var(--border);border-radius:12px;background:#24483566}.level-tile.current{border-color:var(--green);background:#a9d28513}.level-tile strong{font-family:'Cormorant Garamond',Georgia,serif;font-size:30px;color:var(--gold)}.level-tile span{font-size:10px;color:#bfd1c2}.level-tile small{font-size:13px;letter-spacing:3px;color:#77896b}.level-tile small .on{color:#dbc383}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;font-size:14px;border-bottom:1px solid var(--border)}.settings-row input{width:21px;height:21px;accent-color:var(--green)}.settings-block{margin:10px 0 25px}.modal-small{font-size:11px!important;color:#91a99b!important}.pause-title{margin-bottom:25px!important}@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes low{50%{opacity:.65}}@media(min-width:1500px){.game-layout{padding-top:45px}}@media(max-width:1150px){.game-layout{gap:28px;padding:28px 30px;grid-template-columns:minmax(170px,1fr) minmax(320px,490px) 180px}.topbar{padding:24px 32px}.journey h1{font-size:27px}.intro{font-size:12px}.recipe{gap:10px}.recipe p{font-size:10px;white-space:normal}.recipe-gem{width:35px;height:35px}.journey .eyebrow{font-size:10px;letter-spacing:1px}.field-guide{padding-top:40px}.chapter-link{gap:9px}.chapter-link strong{font-size:12px}.route button:not(:last-child){margin-right:9px}.route button:not(:last-child):after{width:9px}.footer{padding:0 30px 20px}}@media(max-width:960px){.game-layout{grid-template-columns:minmax(160px,1fr) minmax(320px,500px);max-width:820px;gap:40px}.field-guide{display:none}.journey{padding-top:40px}.footer{max-width:820px}.footer>span:last-child{display:none}}@media(max-width:660px){.topbar{padding:16px 20px;border-bottom:0}.wordmark{font-size:25px;gap:8px}.wordmark>span{font-size:16px;letter-spacing:2.4px}.top-actions{gap:7px}.icon-btn{width:34px;height:34px}.icon-btn svg{width:17px;height:17px}.game-layout{display:block;padding:5px 18px 18px;max-width:500px}.journey{display:none}.play-area{width:100%}.level-heading{margin:3px 3px 14px}.level-heading h2{font-size:19px}.level-heading .eyebrow{font-size:10px;letter-spacing:2px}.game-hud{min-height:78px;padding:11px 0;border-radius:13px;margin-bottom:11px}.moves-panel{width:85px;min-width:85px}.moves-panel strong{font-size:34px}.moves-panel>span,.mission-panel>span{font-size:11px}.mission-panel{padding:0 16px}#goals{gap:15px}.goal{font-size:16px}.board-shell{padding:7px;border-radius:16px}.board-shell canvas{border-radius:10px}.score-row{gap:8px;font-size:9px;min-height:43px}.score-row b{font-size:14px}.best{font-size:9px}.boosters{gap:9px}.booster{padding:11px 7px;font-size:11px}.booster-icon svg{width:18px;height:18px}.play-tip{font-size:11px;margin-top:14px}.footer{padding:6px 21px 20px;font-size:9px;max-width:500px;gap:12px}.footer>span:nth-child(2){font-size:9px}.ambient{background-position:center;background-image:linear-gradient(0deg,#0c231ee0,#102b2370),url('./assets/garden.webp')}dialog{padding:30px 24px;border-radius:19px}#modal-content>h2{font-size:23px}.game-layout:has(.board-shell.armed) .play-tip{color:var(--gold)}}@media(max-width:360px){.topbar{padding:14px}.wordmark>span{font-size:14px;letter-spacing:1.8px}.game-layout{padding-left:12px;padding-right:12px}.top-actions{gap:5px}.icon-btn{width:31px;height:31px}.goal{gap:4px}.mission-panel{padding:0 12px}#goals{gap:12px}.best{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Comfortable reading and a complete playing surface at laptop sizes. */
.intro{font-size:16px}.chapter-link strong,.booster,.play-tip,.moves-panel>span,.mission-panel>span,.text-button,.gimmick-item{font-size:14px}.recipe p{font-size:12px}.rule-item p,.rule-terrain div{font-size:14px!important}.score-progress i:nth-of-type(1){left:48%}.score-progress i:nth-of-type(2){left:68%}.level-tile span{font-size:12px}.chapter-link small,.chapter-link strong{white-space:normal}
@media(min-width:961px){.game-layout{grid-template-columns:minmax(180px,1fr) minmax(320px,min(500px,calc(100svh - 480px))) minmax(180px,1fr)}}
@media(min-width:961px) and (max-height:950px){.topbar{padding-top:20px;padding-bottom:20px}.game-layout{grid-template-columns:minmax(180px,1fr) minmax(320px,min(500px,calc(100svh - 480px))) minmax(180px,1fr);padding-top:22px;padding-bottom:22px}.level-heading{margin-bottom:14px}.game-hud{min-height:80px;padding:11px 0}.journey,.field-guide{padding-top:30px}.special-note{margin-top:16px}.journey-foot{margin-top:35px}.field-guide .recipe{margin-bottom:23px}.garden-sign{margin-top:25px}}
@media(max-width:660px){.booster{font-size:12px}.play-tip{font-size:12px}.moves-panel>span,.mission-panel>span{font-size:12px}.mission-panel{padding:0 13px}.goal{font-size:15px}.goal-icon,.goal-icon svg{width:22px;height:22px}.level-tile span{font-size:12px}.modal-small{font-size:12px!important}}

.play-area>.level-heading{margin-bottom:0}
.play-area>.score-row{min-height:36px;margin-bottom:12px}
.board-shell+.boosters{margin-top:16px}
#modal-close[hidden]{display:none}
