*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:auto;font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#614536;background:#f9e9d9}button{font:inherit;cursor:pointer;border:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #865230;outline-offset:3px}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}.game-shell{position:relative;width:100vw;min-width:620px;height:100dvh;min-height:340px;display:flex;align-items:center;justify-content:center;gap:clamp(20px,5vw,90px);padding:16px max(18px,env(safe-area-inset-right)) 16px max(18px,env(safe-area-inset-left));isolation:isolate;background:#f7e8d9 url('images/gen/gptimg_1795603464_look.png') center/cover no-repeat}.play-area{position:relative;flex:none;width:min(65vh,57vw);height:min(65vh,57vw);max-width:680px;max-height:680px;border:7px solid #fff7e7;border-radius:24px;box-shadow:0 7px 0 #d9b79b,0 15px 40px #75462c26;overflow:hidden;background:#eff6dc}#game-board{display:block;width:100%;height:100%;touch-action:none}.controls{width:clamp(220px,29vw,360px);padding:22px;background:#fff8ebee;border:2px solid #fffaf2;border-radius:26px;box-shadow:0 8px 30px #805c3022}.game-name{font-size:clamp(22px,3.5vw,36px);font-weight:900;color:#bd652f;letter-spacing:2px}.tagline{font-size:13px;color:#98745c;margin:6px 0 16px}.scores{display:flex;gap:10px}.scores>div{flex:1;background:#ffecd8;border:1px solid #ffd2aa;border-radius:15px;text-align:center;padding:9px 4px;font-size:12px;color:#98745c}.scores strong{display:block;color:#bc602d;font-size:28px;line-height:1.25}.actions{display:flex;gap:8px;margin-top:15px}.actions button,.result-card button{min-height:46px;border-radius:15px;padding:10px 18px;font-weight:800;background:#ff8a3d;color:#fff;box-shadow:0 4px 0 #d66f2e}.actions button:first-child{flex:1}.actions button:last-child{background:#d4e8c8;color:#547147;box-shadow:0 4px 0 #acc69c}#dpad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,43px);gap:6px;justify-content:center;margin:18px 0 0}#dpad button{background:#fff3dd;color:#a8673b;border:1px solid #e9cdb0;border-radius:13px;font-size:25px;box-shadow:0 3px 0 #ddc3a7}#dpad button:first-child{grid-column:2}#dpad button:nth-child(2){grid-column:1;grid-row:2}#dpad button:nth-child(3){grid-column:2;grid-row:2}#dpad button:nth-child(4){grid-column:3;grid-row:2}button:active{transform:translateY(2px);box-shadow:none}.hint{text-align:center;line-height:1.7;font-size:11px;color:#957c68;margin:12px 0 0}.board-message{position:absolute;left:8%;right:8%;top:44%;padding:17px 8px;text-align:center;background:#fff9ecef;border:2px solid #f1d6af;border-radius:18px;font-size:clamp(14px,2vw,22px);font-weight:800;pointer-events:none}.modal{position:absolute;inset:0;z-index:5;background:#62463466;display:grid;place-items:center;backdrop-filter:blur(4px)}.result-card{text-align:center;border-radius:28px;background:#fff8e9;padding:28px 46px;border:4px solid #ffe0b8;box-shadow:0 15px 60px #54321f40}.result-card h1{margin:0;color:#b56839;font-size:26px}.result-card p{font-size:13px;color:#987a64}.result-card>strong{font-size:54px;color:#ef863e}.result-card button{width:100%;margin-top:10px}@media(max-height:520px){.game-shell{gap:6vw}.play-area{width:calc(100dvh - 36px);height:calc(100dvh - 36px)}.controls{padding:12px 17px}.game-name{font-size:23px}.tagline{margin:3px 0 8px;font-size:11px}.scores>div{padding:5px}.scores strong{font-size:23px}.actions{margin-top:9px}.actions button{min-height:40px;padding:8px 12px}#dpad{margin-top:10px;grid-template-rows:repeat(2,38px);grid-template-columns:repeat(3,44px)}.hint{margin-top:8px;font-size:10px}}
