:root{font-family:system-ui,Microsoft YaHei,sans-serif;color:#f1f4ee;background:#162725;--panel:#122724f2;--line:#647e6d;--accent:#ecce84}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{position:fixed;inset:0;width:100%;height:100%;outline:none;touch-action:none}#app{position:fixed;inset:0;z-index:2;pointer-events:none}header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:linear-gradient(#102521db,transparent)}header strong{font-size:24px;letter-spacing:.14em}.subtitle{display:block;font-size:12px;margin-top:5px;color:#e2e5d8}.card{pointer-events:auto;background:var(--panel);border:1px solid var(--line);padding:24px;box-shadow:0 12px 40px #0005;border-radius:10px}#welcome{position:absolute;top:50%;left:7%;transform:translateY(-50%);max-width:440px}h1{font-size:34px;font-weight:500;line-height:1.4;margin:14px 0}h2{font-size:19px;margin:0 0 16px}p{font-size:14px;line-height:1.8;color:#dde4dd}small{color:var(--accent);letter-spacing:.16em}button,input,a,summary{pointer-events:auto}button{color:#f5f3e9;background:#24483d;border:1px solid #a3b3a1;border-radius:5px;min-height:44px;padding:9px 17px;font:inherit;cursor:pointer}button:hover{background:#355b4b}button:active,button[aria-pressed=true]{background:#796839}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f0c970;outline-offset:3px}#start{background:#e5c67f;color:#20352b;width:100%;font-weight:700;margin-top:12px}a{color:#f1d493}.credits{font-size:12px;margin-top:18px}#panel{position:absolute;right:20px;top:92px;width:340px;max-height:calc(100% - 160px);overflow:auto}label{display:block;font-size:14px;margin-top:14px}input[type=search]{font:inherit;background:#09251f;color:#fff;border:1px solid #819385;width:100%;padding:10px;margin:8px 0 12px;border-radius:4px}input[type=range]{width:100%}#results{display:grid;gap:6px}#results button{text-align:left;width:100%;font-size:13px}#selected{font-size:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}summary{cursor:pointer;margin-top:14px}#status{position:absolute;left:24px;bottom:76px;font-size:13px;padding:10px 14px;background:#132e24df;max-width:calc(100% - 48px);border-radius:4px}#instructions{position:absolute;left:24px;bottom:44px;font-size:12px;color:#f5f4e9;background:#142c24c9;padding:6px 10px}footer{position:absolute;bottom:0;left:0;right:0;padding:9px 18px;background:#10221de8;font-size:10px;color:#d0d8c9}#touch{position:absolute;bottom:72px;left:22px;right:22px;justify-content:space-between;align-items:flex-end;pointer-events:none}#touch:not([hidden]){display:flex}#stick{pointer-events:auto;touch-action:none;width:116px;height:116px;border-radius:50%;background:#102a23a9;border:2px solid #bac9b2;display:grid;place-items:center}#stick span{width:42px;height:42px;background:#d7ddc8a0;border:1px solid #fff8;border-radius:50%}.touch-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.touch-actions button{touch-action:none;min-width:70px}.touch-actions #interact{grid-column:span 2}[hidden]{display:none!important}@media(max-width:700px){header{padding:12px 14px}header strong{font-size:20px}.subtitle{font-size:10px}#welcome{left:16px;right:16px;max-width:none;padding:20px}h1{font-size:28px}#panel{left:14px;right:14px;top:82px;width:auto;max-height:calc(100% - 278px);padding:16px}#instructions{display:none}#status{left:14px;bottom:204px;max-width:calc(100% - 28px);font-size:11px}footer{padding:6px 12px;font-size:9px}header button{font-size:12px;padding:8px 10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}select{pointer-events:auto;display:block;background:#16372d;color:#f1f4ee;font:inherit;width:100%;padding:10px;border:1px solid #a3b3a1;border-radius:5px;margin:8px 0}select:focus-visible{outline:3px solid #f0c970;outline-offset:3px}
