:root{font-family:Arial,Noto Sans SC,sans-serif;color:#304438;background:#fdfdf7;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{min-width:320px;margin:0}button{font:inherit}button:focus-visible{outline:3px solid #eaa731;outline-offset:4px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.game-shell{width:min(100%,820px);min-height:100svh;margin:auto;padding:16px clamp(12px,4vw,30px) 22px;display:flex;flex-direction:column;align-items:stretch;background:#fdfdf7}.game-header{height:92px;flex:none;position:relative;text-align:center}.game-header h1{margin:0;color:#324538;font-size:21px;line-height:29px;font-weight:700}.level-menu-button{position:absolute;top:0;left:0;min-width:64px;height:44px;padding:0 14px;border:0;border-radius:12px;background:#fff;box-shadow:0 2px 10px #28433216;color:#526b57;cursor:pointer}.level-menu-button:hover:not(:disabled){background:#f4faf1}.level-menu-button:disabled{opacity:.55;cursor:default}.stars{display:flex;justify-content:flex-end;gap:6px;padding-right:9%;margin-top:22px}.heart{color:#f2a528;font-size:26px;line-height:1;transition:color .2s,scale .2s}.heart-empty{color:#d9d9d9;scale:.92}.board-region{flex:1;min-height:0;display:grid;place-items:center}.board{width:min(100%,var(--board-target-size, 760px),760px,calc(100svh - 220px));aspect-ratio:1;overflow:hidden;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.grid-dots circle{fill:#d8ddd2;opacity:.8}.arrow-path{color:#35483b;pointer-events:none;outline:none;-webkit-tap-highlight-color:transparent}.arrow-line{fill:none;stroke:currentColor;stroke-width:3px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.arrow-head{fill:currentColor;pointer-events:none}.arrow-path:focus-visible{color:#c38b2b;outline:none}.arrow-path.is-hint{color:#65ad79;filter:drop-shadow(0 0 3px #a8d9a9);animation:hint-glow 1s ease-in-out infinite alternate}.arrow-path.is-error{color:#ec6e6b;animation:error-flash .25s ease-in-out 2}.arrow-path.is-exiting{pointer-events:none}@keyframes hint-glow{to{filter:drop-shadow(0 0 7px #80c987)}}@keyframes error-flash{50%{opacity:.5}}.bottom-bar{flex:none;min-height:84px;position:relative;display:flex;align-items:center;justify-content:center}.feedback{position:absolute;bottom:0;width:100%;margin:0;color:#6c7c72;text-align:center;font-size:14px}.hint-button{position:relative;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:16px;background:#fff;box-shadow:0 2px 10px #28433216;color:#76a17c;cursor:pointer}.hint-button:hover:not(:disabled){background:#f4faf1}.hint-button:disabled{color:#bec8bd;cursor:not-allowed}.hint-button svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.hint-count{position:absolute;top:-8px;right:-7px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#79c63f;color:#fff;font-size:12px;font-weight:700}.modal{position:fixed;z-index:10;inset:0;display:grid;place-items:center;padding:20px;background:#101610bb}.modal-card{width:min(100%,370px);min-height:305px;padding:26px;border-radius:20px;background:#fff;text-align:center;box-shadow:0 16px 60px #0b120a4a}.modal-icon{color:#f2a528;font-size:70px;line-height:1.15}.modal-card h2{margin:12px 0 16px;color:#33473b;font-size:25px}.modal-card p{min-height:45px;margin:0 0 17px;color:#87958b;font-size:14px;line-height:1.6}.modal-card button{min-width:170px;min-height:48px;padding:8px 20px;border:0;border-radius:14px;background:#78bd43;color:#fff;font-size:15px;font-weight:700;cursor:pointer}.modal-card button:hover{background:#68ad36}.modal-card .modal-secondary{display:block;margin:10px auto 0;background:#f1f6ef;color:#526b57}.modal-card .modal-secondary:hover{background:#e7efe3}.level-card{position:relative;min-height:0;padding:28px}.level-card h2{margin:0 0 18px}.level-card .dialog-close{position:absolute;top:8px;right:8px;width:44px;min-width:44px;height:44px;padding:0;border-radius:11px;background:transparent;color:#8e9b90;font-size:24px;line-height:1}.level-card .dialog-close:hover{background:#f1f6ef}.level-input{width:100%;height:50px;padding:0 12px;border:1px solid #dbe5d8;border-radius:14px;outline:none;background:#fbfdf9;color:#304438;font:inherit;font-size:22px;text-align:center}.level-input:focus-visible{border-color:#78bd43;box-shadow:0 0 0 3px #78bd4330}.level-card .level-go,.level-card .level-reset{display:block;width:100%;margin-top:10px}.level-card .level-reset{background:#f1f6ef;color:#526b57}.level-card .level-reset:hover{background:#e7efe3}@media(max-width:580px){.game-shell{padding-top:15px}.board{width:min(100%,var(--board-target-size, 540px),540px,calc(100svh - 195px))}.stars{padding-right:3%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
