:root{--ink:#e4f4e6;--card:#153b3a;--acc:#a9ddc1;box-sizing:border-box}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%;margin:0;overflow:hidden;font-family:Microsoft YaHei,PingFang SC,sans-serif;color:#e4f4e6;user-select:none}body{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#112c30 url('art/garden.webp') center/cover fixed no-repeat;touch-action:none}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible{outline:3px solid #ffd991;outline-offset:3px}[hidden]{display:none!important}.brand{height:70px;display:flex;align-items:center;justify-content:center;flex:none}.brand img{width:270px;height:84px;object-fit:contain;filter:drop-shadow(0 4px 7px #0008)}#app{width:min(1120px,96vw);height:calc(100dvh - 90px);max-height:900px;display:flex;flex-direction:column;padding:10px 14px;background:#102e30dc;border:1px solid #98d1b67a;border-radius:22px;box-shadow:0 15px 50px #0008;overflow:hidden}#bar{height:50px;display:flex;align-items:center;justify-content:space-between;gap:9px;flex:none}.ib{height:38px;min-width:42px;border:1px solid #95bfa680;border-radius:10px;background:#244d48;color:#e8f8e8;padding:0 12px;font-weight:bold}.ib span{font-size:12px;margin-left:5px}#ttl{flex:1;text-align:center;font-size:20px;font-weight:800;color:#ffe0a6}#hud{display:flex;align-items:center;justify-content:center;gap:28px;flex:none;min-height:53px;border-block:1px solid #97c3ab33;margin-top:4px;padding:7px}#hud small{color:#b9d7ca;font-size:12px}.metric{display:flex;gap:8px;align-items:center}.metric strong{font-size:23px;color:#ffe0a6}#pbw{width:100px;height:6px;background:#071d26;border-radius:8px;overflow:hidden}#pb{height:100%;background:#b8e7b3;transition:width .15s}#msg{text-align:center;min-height:27px;font-size:14px;color:#c7e4d7;padding:5px 0;flex:none}#stage{flex:1;min-height:0;position:relative}canvas#c{position:absolute;inset:0;width:100%;height:100%}#bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:none;padding:4px 10px}#pad{display:grid;grid-template-columns:repeat(3,58px);grid-template-rows:repeat(2,34px);gap:5px}#pad button{border:1px solid #b5d7b9;border-radius:9px;background:#b4d8bc;color:#1b4139;font-size:18px;font-weight:bold;touch-action:none;box-shadow:0 2px 0 #628e7d}#pad button:active{transform:translateY(2px)}.playing-partner{display:flex;align-items:center;gap:8px;font-size:12px;color:#c9e2d7}.playing-partner img{width:64px;height:68px;object-fit:contain}.controls-note{font-size:12px;color:#b9d4c7;line-height:1.8;text-align:right}.ov{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:#061b25b5;padding:16px;z-index:20;backdrop-filter:blur(5px)}.ov.on{display:flex}.card{background:linear-gradient(145deg,#224b43,#15333b);color:#e2f3e7;border:1px solid #9dccb68c;border-radius:22px;padding:24px;width:min(450px,94vw);max-height:94dvh;overflow:auto;touch-action:pan-y;text-align:center;box-shadow:0 15px 50px #0008}h2{margin:0 0 9px;color:#ffe0a6;font-size:25px}h3{color:#c4eac6;font-size:16px}p{line-height:1.7}.sub{font-size:14px;color:#b9d7cb;margin:8px 0}.btn{display:block;width:100%;padding:13px 18px;border:1px solid #e1f2c7;border-radius:12px;background:linear-gradient(#d1eec4,#a8d2b4);color:#1c4039;box-shadow:0 4px 0 #4f7f6e;font-size:18px;font-weight:bold;margin-top:12px;transition:transform .15s}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn:active:not(:disabled){transform:translateY(2px)}.btn small{display:block;font-size:12px;font-weight:normal;margin-top:4px}.btn.g{background:#234b4c;border-color:#83b2a9;color:#d5e9dc;box-shadow:0 3px 0 #112e35;font-size:15px}.big{font-size:46px;font-weight:900;color:#ffd992}.rules{text-align:left;font-size:14px;line-height:1.9}.rules p{margin:6px 0}.victory{width:145px;height:140px;object-fit:contain}.sound-toggle,.rules-button{border:1px solid #a5c8b3;background:#214741;color:#d9eddf;border-radius:10px;padding:9px 13px;font-size:13px}.home-actions{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:15px}#start{background:#102e33 url('art/home.webp') center/cover no-repeat;backdrop-filter:none;z-index:25}#start .card{width:min(490px,40vw);background:#102f33b3;border:0;box-shadow:none;padding:22px 25px;overflow:auto;backdrop-filter:blur(2px)}.home-title{width:100%;max-height:175px;object-fit:contain;filter:drop-shadow(0 6px 8px #0008);animation:drift 4s ease-in-out infinite}.home-tag{color:#e1efe3;font-size:16px;letter-spacing:.1em;margin:14px 0;text-shadow:0 2px 5px #000}#record{font-size:13px;color:#c1dfcf;margin-top:13px}.hero-picker{display:flex;justify-content:center;gap:8px;margin:20px auto 8px}.hero-choice{height:77px;width:68px;padding:3px;background:#15383ad9;border:1px solid #84bfa79c;border-radius:13px;transition:transform .2s}.hero-choice img{width:100%;height:100%;object-fit:contain}.hero-choice.selected{border:2px solid #ffe0a6;background:#3b6353;transform:translateY(-4px)}#heroName{font-size:13px;color:#ffe0a6}.at-home>#app,.at-home>.brand{visibility:hidden;pointer-events:none}@keyframes drift{50%{transform:translateY(-5px)}}@media(max-width:700px){#start .card{width:min(440px,92vw);background:#102f33da}.ib span{display:none}#app{width:98vw;padding:8px 6px}.metric{gap:5px}#hud{gap:10px}.metric strong{font-size:19px}#pbw{width:55px}.controls-note{font-size:10px}.playing-partner span{display:none}#msg{font-size:12px}.brand{height:55px}.brand img{height:68px;width:240px}#app{height:calc(100dvh - 65px)}}@media(max-height:680px){.brand{height:48px}.brand img{height:60px}#app{height:calc(100dvh - 58px)}#bar{height:40px}#hud{min-height:43px;padding:4px}#msg{min-height:21px;padding:3px}.home-title{max-height:110px}.hero-picker{margin-top:12px}.hero-choice{width:55px;height:58px}.home-tag{margin:6px 0;font-size:14px}#start .card{padding:12px 20px}.btn{margin-top:9px;padding:9px 14px}#bottom{padding:2px 8px}}@media(prefers-reduced-motion:reduce){.home-title{animation:none}*{scroll-behavior:auto}}

#rules{z-index:40}
