*{box-sizing:border-box} :root{--ink:#273f6c;--blue:#386ad2;--paper:#faf9f3;font-family:"Nunito","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper)}body{margin:0;min-height:100svh;background-image:radial-gradient(#a9947020 .8px,transparent .9px);background-size:7px 7px}.defs{width:0;height:0;position:absolute}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,#stage:focus-visible{outline:3px solid #efa024;outline-offset:3px}header{background:#fffdf8;border-bottom:1.5px solid #d9dde1}.nav{max-width:1264px;margin:auto;height:68px;padding:0 4.5%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font:900 20px/1 ui-rounded,"Arial Rounded MT Bold",Arial,sans-serif;letter-spacing:-.6px}.brand svg{width:37px;height:37px}.sound,.restart,.help{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid #c4cbd3;border-radius:999px;background:#fffdf8;font-size:14px;font-weight:650}.sound{padding:8px 15px}.sound .icon{width:17px;height:17px}main{width:min(1100px,91%);margin:clamp(24px,4vh,48px) auto 32px}.title{width:fit-content;margin:auto;position:relative}h1{font-family:ui-rounded,"PingFang SC","Microsoft YaHei",sans-serif;font-size:clamp(32px,4vw,55px);font-weight:950;letter-spacing:.055em;line-height:1.12;margin:0;color:#233f72;text-shadow:1px 2px 0 #fff}.title-bubbles{position:absolute;right:-42px;top:-5px;width:38px;height:38px}.title-bubbles i{position:absolute;width:18px;height:18px;border:1.8px solid #739bc7;border-radius:50%;background:radial-gradient(circle at 33% 28%,white 0 12%,transparent 18%),linear-gradient(135deg,#f7fffd,#b6e1ed)}.title-bubbles i:nth-child(2){left:22px;top:-3px;width:10px;height:10px}.title-bubbles i:nth-child(3){left:19px;top:21px;width:8px;height:8px}.intro{text-align:center;font-size:16px;letter-spacing:.04em;margin:10px 0 22px;color:#59677c}.game{border:2px solid var(--ink);border-radius:24px;overflow:hidden;background:#fffdf8;box-shadow:0 5px 0 #bac5cb}#stage{position:relative;width:100%;height:clamp(350px,54vh,550px);overflow:hidden;background:#bbe2db;touch-action:none;cursor:crosshair;isolation:isolate;user-select:none}#stage.turn{cursor:grab}#stage.turn:active{cursor:grabbing}canvas{width:100%;height:100%;display:block}.meter,.help{position:absolute;top:18px;background:#fffdf6f5;box-shadow:0 2px 0 #45607522}.meter{left:18px;padding:11px 15px 13px;border:1.5px solid #657681;border-radius:15px;width:170px;pointer-events:none}.meter>div{display:flex;align-items:center;gap:5px;font-size:14px}.meter .icon{color:#5299c7;width:16px;height:16px}.meter strong{margin-left:auto;font:800 16px/1.25 ui-rounded,Arial,sans-serif;font-variant-numeric:tabular-nums}.meter progress{display:block;width:100%;height:8px;margin-top:8px;border:0;appearance:none;border-radius:99px;background:#e0e8e9;overflow:hidden}.meter progress::-webkit-progress-bar{background:#e0e8e9}.meter progress::-webkit-progress-value{background:#59b5c1;border-radius:99px}.meter progress::-moz-progress-bar{background:#59b5c1}.help{right:18px;width:34px;height:34px;border:1px solid #667c85}.stagehint,#notice{position:absolute;left:50%;transform:translateX(-50%);border-radius:30px;white-space:nowrap;font-size:14px;letter-spacing:.035em;font-weight:600}.stagehint{bottom:14px;display:flex;align-items:center;gap:8px;padding:7px 13px;color:#3b535f;background:#fffdf1e8;pointer-events:none;border:1px solid #839e9b66}.stagehint span{width:7px;height:7px;background:#65aeb3;border-radius:50%}#notice{bottom:19%;padding:10px 20px;background:white;border:2px solid var(--ink)}.controls{padding:15px 21px;border-top:2px solid var(--ink);display:flex;align-items:center;justify-content:space-between;gap:8px}.toolset{display:flex;gap:9px}.toolset button,dialog button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750;border:1.5px solid #a3afbc;border-radius:12px;background:#fffdf8;padding:10px 17px;font-size:16px}.toolset button[aria-pressed=true],dialog button{background:var(--blue);color:#fff;border-color:#294a86;box-shadow:0 2px 0 #254575}.restart{border:0;background:transparent;color:#59677c;padding:9px;font-size:14px}.restart .icon{width:17px}.sound:hover,.restart:hover,.help:hover,.toolset button:not([aria-pressed=true]):hover{background:#edf3f3}dialog{width:min(380px,89vw);padding:24px;border:2px solid var(--ink);border-radius:20px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#203b5166}dialog h2{margin:0}dialog p{line-height:1.6}dialog button{width:100%}@media(max-width:640px){.nav{height:54px}.brand{font-size:17px}.brand svg{width:30px}.sound{padding:6px 11px}main{width:95%;margin:24px auto}.intro{font-size:15px;margin:8px 0 17px}.game{border-radius:18px}#stage{height:clamp(340px,55svh,540px)}.meter{top:12px;left:12px;width:140px;padding:8px 10px}.help{top:12px;right:12px}.controls{padding:12px 9px}.toolset{gap:6px}.toolset button{padding:9px 10px;font-size:14px;gap:4px}.restart{gap:4px;padding:5px;font-size:13px}}@media(max-height:550px) and (min-aspect-ratio:4/3){.nav{height:42px}main{margin:8px auto}.title h1{font-size:23px}.intro{display:none}.game{margin-top:7px}#stage{height:61svh;min-height:195px}.controls{padding:5px 12px}}
:root{--ink:#293c35;--blue:#436253;--paper:#f3f2ec}body{background-image:none}header{background:#f7f7f1;border-bottom-color:#d3d8cf}.nav{height:55px}.brand{font-size:16px;letter-spacing:.1em}.brand svg{width:29px;height:29px}.sound{background:transparent;border-color:#c7cfc5}.title-bubbles{display:none}main{width:min(1230px,95%);margin:22px auto}h1{font-size:clamp(28px,3vw,40px);color:#2b4035;letter-spacing:.055em;text-shadow:none}.intro{margin:5px 0 15px;color:#637064;letter-spacing:.03em}.game{border:1px solid #8e9d91;border-radius:15px;box-shadow:0 5px 18px #263d3115}#stage{height:clamp(390px,63vh,680px);background:#a2aaa7}.controls{background:#f9faf4;border-top:1px solid #9fa99c;padding:12px 18px}.toolset button{border-radius:8px}.toolset button[aria-pressed=true],dialog button{border-color:#3e5948;box-shadow:none}.meter{background:#f8faf1de;border-color:#7e8f7a;border-radius:10px}.meter .icon{color:#588873}.meter progress::-webkit-progress-value{background:#6b9984}.help,.stagehint{background:#f8faf1de}.stagehint span{background:#70927e}.restart{color:#526457}@media(max-width:640px){main{margin:17px auto;width:96%}.nav{height:47px}.brand{font-size:15px}.intro{margin:5px 0 11px}#stage{height:clamp(365px,60svh,580px)}.controls{padding:10px 8px}}@media(max-height:550px) and (min-aspect-ratio:4/3){.nav{height:35px}main{margin:6px auto}#stage{height:65svh;min-height:190px}.controls{padding:4px 10px}}
