:root{color-scheme:dark;--viewport-height: 100vh;--page-gap: clamp(8px, 2vw, 28px);--page-top: max(var(--page-gap), env(safe-area-inset-top, 0px));--page-bottom: max(var(--page-gap), env(safe-area-inset-bottom, 0px));--toolbar-height: 60px}@supports (height: 100dvh){:root{--viewport-height: 100dvh}}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:radial-gradient(ellipse at 50% 10%,#30333c,#1c1e25 48%,#121419);color:#eceef5;font-family:Arial,sans-serif}.game-page{box-sizing:border-box;width:100%;height:var(--viewport-height);display:grid;place-items:center;padding:var(--page-top) max(var(--page-gap),env(safe-area-inset-right,0px)) var(--page-bottom) max(var(--page-gap),env(safe-area-inset-left,0px))}.game-shell{position:relative;box-sizing:border-box;width:min(1400px,100%,calc((var(--viewport-height) - var(--page-top) - var(--page-bottom) - var(--toolbar-height) - 2px) * 1.7777777778 + 2px));overflow:hidden;border:1px solid #ffffff1c;border-radius:14px;background:#151820;box-shadow:0 18px 60px #0006,0 2px 8px #0004}.game-toolbar{box-sizing:border-box;height:var(--toolbar-height);padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(180deg,#282b34,#20232b);border-bottom:1px solid #ffffff12}.game-brand{margin:0;font-size:19px;font-weight:700;letter-spacing:-.5px}.game-tools,.language-control{display:flex;align-items:center;gap:9px}.game-tools{gap:16px}.game-toolbar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.language-control{font-size:13px;color:#bfc5d5}.language-control select{box-sizing:border-box;max-width:130px;min-height:36px;padding:6px 8px;background:#ffffff08;border:1px solid #ffffff1f;border-radius:7px;color:#f0f2f8;font:inherit;cursor:pointer}.language-control option{background:#23262e;color:#f0f2f8}.fullscreen-toggle{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #ffffff1f;border-radius:7px;background:#ffffff08;color:#d9deeb;cursor:pointer}.fullscreen-toggle:hover,.language-control select:hover{background:#ffffff12}.fullscreen-toggle:disabled{opacity:.4;cursor:default}.game-toolbar :focus-visible{outline:2px solid #aebeff;outline-offset:3px}.fullscreen-exit,.fullscreen-toggle[aria-pressed=true] .fullscreen-enter{display:none}.fullscreen-toggle[aria-pressed=true] .fullscreen-exit{display:block}#game{width:100%;aspect-ratio:16 / 9;background:#151820;overflow:hidden}canvas{display:block;touch-action:none}.game-shell:fullscreen{width:100%;height:100%;border:0;border-radius:0;display:flex;flex-direction:column}.game-shell:fullscreen #game{flex:1;min-height:0;aspect-ratio:auto}.game-shell:-webkit-full-screen{width:100%;height:100%;border:0;border-radius:0;display:flex;flex-direction:column}.game-shell:-webkit-full-screen #game{flex:1;min-height:0;aspect-ratio:auto}.game-shell:fullscreen .game-toolbar{height:calc(var(--toolbar-height) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}.game-toolbar{flex-shrink:0}.shell-status{position:absolute;bottom:12px;left:12px;right:12px;margin:0;padding:12px;background:#282b34f5;color:#fff;border-radius:7px;font-size:14px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(max-width:520px),(max-height:480px){:root{--toolbar-height: 48px}.game-toolbar{padding:0 10px;gap:8px}.game-brand{font-size:16px}.game-tools{gap:8px}.language-control{gap:6px}#language-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.game-shell{border-radius:10px}}.android-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:2px solid #6bade0;border-radius:22px;background:#f1f9ff;color:#244365;color-scheme:light;font:16px Trebuchet MS,Arial,sans-serif;box-shadow:0 16px 48px #10274655}.android-dialog[open]{display:flex;flex-direction:column}.android-dialog::backdrop{background:#10274665}.android-dialog h1{flex-shrink:0;margin:0;padding:18px 20px 14px;font:bold clamp(24px,4vw,32px) "Arial Rounded MT Bold","Trebuchet MS",sans-serif;text-align:center;color:#163f70;background:#e1f2ff;border-bottom:1px solid #bfdcf1;overflow-wrap:anywhere}.android-dialog-content{min-height:0;padding:14px 20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#8eb8d7 #e1eff9}.android-dialog p{white-space:pre-line;line-height:1.5}.android-dialog h2{font-size:21px;color:#19538a;margin:24px 0 12px}.instruction-intro p{margin:0 0 12px}.instruction-tip{padding:12px 14px;border-left:4px solid #69b9ed;border-radius:10px;background:#dff1ff}.instruction-row{display:flex;align-items:center;gap:14px;padding:12px;margin:8px 0;background:#fff;border:1px solid #cde3f3;border-radius:14px}.instruction-row:nth-of-type(2n){background:#e8f4fd}.instruction-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.instruction-row img{width:60px;height:60px;padding:5px;box-sizing:border-box;object-fit:contain;flex-shrink:0}.instruction-object{position:relative;width:60px;height:60px;flex-shrink:0}.instruction-object img{position:absolute;left:5px;top:5px;width:50px;height:50px;padding:0;object-fit:fill}.instruction-row h3{font-size:18px;color:#164576;margin:0 0 4px}.instruction-row p{margin:3px 0;font-size:14px}.instruction-row .object-stats{font-size:13px;font-weight:700;color:#3c6488}.android-dialog-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:12px 20px;border-top:1px solid #bfdcf1;background:#e1f2ff}.android-dialog button{width:auto;min-width:112px;min-height:42px;max-width:100%;padding:9px 26px;border:1px solid #2a8aca;border-radius:12px;background:linear-gradient(#72d8ff,#42b5ee);color:#123e69;box-shadow:0 3px #2786bb;font:700 16px Trebuchet MS,sans-serif;cursor:pointer;overflow-wrap:anywhere}.android-dialog button:hover{background:#94e3ff}.android-dialog button:focus-visible{outline:3px solid #19538a;outline-offset:3px}.achievement.locked img{filter:grayscale(1);opacity:.55}.achievement-state{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px!important;font-weight:700;letter-spacing:.4px}.achievement.unlocked{border-color:#91d9ba;background:#effcf6}.achievement.unlocked .achievement-state{color:#14764e;background:#c5f1db}.achievement.locked .achievement-state{color:#60758a;background:#e2eaf1}.personal-score h2{margin:0;font-size:18px}.personal-score p{color:#1683b4;font-size:32px;font-weight:700;margin:2px 0 0}.personal-score:nth-of-type(2) p{color:#8155ca}.personal-score:nth-of-type(3) p{color:#138975}@media(max-width:520px),(max-height:480px){.android-dialog{border-radius:16px;max-height:calc(100dvh - 16px)}.android-dialog h1{padding:10px 12px}.android-dialog-content{padding:8px 10px}.instruction-row{gap:8px;padding:9px}.android-dialog-actions{padding:9px 12px}}
