:root{--red:#c91a09;--yellow:#f2cd37;--blue:#0055bf;--ink:#1b2a34;--panel:#141e28b8}*{box-sizing:border-box}html,body{color:#fff;touch-action:none;-webkit-user-select:none;user-select:none;background:#8ec5ff;height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}#game{width:100%;height:100%;display:block;position:fixed;inset:0}[hidden]{display:none!important}.panel{background:var(--panel);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:10px;padding:10px 14px}#instruments{font-variant-numeric:tabular-nums;min-width:150px;line-height:1.55;position:fixed;top:12px;left:12px}#instruments .k{color:var(--yellow);width:34px;font-size:12px;font-weight:700;display:inline-block}#instruments b{font-size:18px}.throttle{align-items:center;gap:4px;margin-top:4px;display:flex}.throttle .bar{background:#fff3;border-radius:5px;flex:1;height:10px;overflow:hidden}#thr{background:linear-gradient(90deg, var(--yellow), var(--red));width:0;height:100%}#over{white-space:nowrap;text-overflow:ellipsis;max-width:calc(100vw - 360px);font-weight:600;position:fixed;top:12px;left:50%;overflow:hidden;transform:translate(-50%)}#over:empty{display:none}#minimap{cursor:pointer;border:4px solid var(--ink);background:#58ab41;border-radius:16px;width:240px;height:240px;transition:width .2s,height .2s;position:fixed;bottom:12px;right:12px;box-shadow:0 4px 14px #00000059}#message{text-align:center;text-shadow:0 2px 8px #0009;pointer-events:none;width:90vw;font-size:30px;font-weight:800;position:fixed;top:32%;left:50%;transform:translate(-50%,-50%)}#message small{margin-top:6px;font-size:16px;font-weight:600;display:block}#topRight{gap:8px;display:flex;position:fixed;top:12px;right:12px}#phoneChip.on{background:#2f8a45;border-color:#8fe0a0}button.big.phone-btn{background:#1b2a34;box-shadow:0 4px #000}.phone-card{text-align:center;justify-items:center;gap:8px;display:grid}.phone-card h2,.phone-card .sub{margin:0}#qr{width:240px;max-width:100%;height:240px;image-rendering:pixelated;border:8px solid var(--yellow);border-radius:12px}.phone-card .room{margin:0;font-size:18px}.phone-card .room b{letter-spacing:.2em;color:var(--red);font-size:28px}.phone-card .url{color:#556;word-break:break-all;margin:0;font-size:12px}.phone-card .status{margin:0;font-weight:700}.phone-card .status.ok{color:#2f8a45}.phone-card .status.bad{color:var(--red)}.chip{background:var(--panel);color:#fff;cursor:pointer;border:2px solid #ffffff59;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:700}#labels{pointer-events:none;position:fixed;inset:0}.label{background:var(--yellow);color:var(--ink);white-space:nowrap;border-radius:6px;padding:4px 8px;font-size:13px;font-weight:800;position:absolute;transform:translate(-50%,-100%);box-shadow:0 2px #b8972a}.label:after{content:"";border:6px solid #0000;border-bottom:0;border-top-color:var(--yellow);position:absolute;bottom:-6px;left:50%;transform:translate(-50%)}.overlay{background:#0a1e3c73;justify-content:center;align-items:safe center;padding:16px;display:flex;position:fixed;inset:0;overflow-y:auto}.card{color:var(--ink);background:#fff;border-radius:16px;width:100%;max-width:480px;padding:24px;box-shadow:0 10px #d9d9d9,0 20px 40px #0000004d}.card h1{align-items:center;gap:4px;margin:0;font-size:34px;display:flex}.brick{border-radius:3px;width:18px;height:18px;margin-right:2px;display:inline-block}.brick.r{background:var(--red)}.brick.y{background:var(--yellow)}.brick.b{background:var(--blue);margin-right:10px}.sub{color:#556;margin:6px 0 16px}#loading .bar{background:#eee;border-radius:7px;height:14px;overflow:hidden}#loadBar{background:var(--yellow);width:0;height:100%;transition:width .2s}#loadText{color:#556;font-size:14px}#startButtons{gap:10px;display:grid}button.big{background:var(--red);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:14px;font-size:17px;font-weight:800;box-shadow:0 4px #7a1005}button.big.alt{background:var(--blue);box-shadow:0 4px #003577}button.big:active{transform:translateY(3px);box-shadow:0 1px #7a1005}.controls{margin-top:18px;font-size:14px;line-height:2}kbd{text-align:center;background:#f2f2f2;border:1px solid #ccc;border-bottom-width:3px;border-radius:4px;min-width:22px;margin-right:2px;padding:0 6px;font-family:inherit;font-size:12px;line-height:20px;display:inline-block}.tip{border-left:4px solid var(--yellow);background:#fff6d6;border-radius:4px;padding:8px 10px;font-size:14px}.credit{color:#889;margin-bottom:0;font-size:11px}#stick{background:#141e2859;border:3px solid #fff6;border-radius:50%;width:140px;height:140px;position:fixed;bottom:24px;left:24px}#knob{background:var(--yellow);border-radius:50%;width:60px;height:60px;margin:-30px 0 0 -30px;position:absolute;top:50%;left:50%;box-shadow:0 3px #b8972a}#throttleTouch{background:#141e2859;border:3px solid #fff6;border-radius:14px;width:64px;height:160px;position:fixed;bottom:24px;right:270px}#throttleTouch span{font-size:10px;font-weight:800;position:absolute;bottom:-20px;left:50%;transform:translate(-50%)}#throttleKnob{background:var(--red);border-radius:8px;height:30px;position:absolute;bottom:0;left:6px;right:6px}#touchButtons{gap:8px;display:flex;position:fixed;bottom:16px;left:50%;transform:translate(-50%)}@media (width<=700px){#minimap{width:140px;height:140px;top:56px;bottom:auto;right:12px}#throttleTouch{right:20px}#instruments{min-width:120px;padding:6px 10px;font-size:13px}#instruments b{font-size:15px}#over{max-width:90vw;font-size:13px;top:auto;bottom:200px}#message{font-size:22px}}#minimap.big{width:min(70vh,70vw);height:min(70vh,70vw)}.gear.floats{color:var(--yellow)}.label.pin{background:var(--pin);color:#fff;font-size:14px;box-shadow:0 2px #00000059}.label.pin:after{border-top-color:var(--pin)}.chip.on{background:var(--yellow);color:var(--ink)}#rotate{z-index:20;text-align:center;background:var(--ink);justify-content:center;align-items:center;padding:16px;font-size:24px;font-weight:800;display:none;position:fixed;inset:0}@media (orientation:portrait){body.touch-play #rotate{display:flex}}@media (height<=500px){#instruments{top:8px;left:max(8px, env(safe-area-inset-left));min-width:0;padding:6px 10px;font-size:11px;line-height:1.35}#instruments b{font-size:14px}#instruments .k{width:38px}.label{padding:2px 6px;font-size:10px}.label.pin{font-size:11px}body.touch-play #phoneChip{display:none}#minimap{width:120px;height:120px;top:52px;right:max(8px, env(safe-area-inset-right));bottom:auto}#minimap.big{width:min(80vh,60vw);height:min(80vh,60vw)}#topRight{top:8px;right:max(8px, env(safe-area-inset-right))}#over{max-width:40vw;padding:4px 10px;font-size:12px;top:8px;bottom:auto}#stick{width:120px;height:120px;left:max(16px, env(safe-area-inset-left));bottom:16px}#knob{width:50px;height:50px;margin:-25px 0 0 -25px}#throttleTouch{right:max(20px, env(safe-area-inset-right));width:56px;height:130px;bottom:22px}#touchButtons{gap:6px;bottom:8px}#touchButtons .chip{padding:6px 10px;font-size:12px}#message{font-size:20px}.card{padding:16px}}#phoneControls{gap:6px;display:grid}.seg-label{color:#556;margin:0;font-size:14px}.seg{background:#eef0f2;border-radius:12px;grid-template-columns:1fr 1fr;gap:6px;padding:4px;display:grid}.seg button{color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:9px;padding:10px 8px;font-size:15px;font-weight:800}.seg button.on{background:var(--yellow);box-shadow:0 2px #b8972a}body.is-touch .controls,body.is-touch .menu-tip-keys{display:none}body.is-touch .card .sub{margin-bottom:10px}.turbo.on,#turboChip.on{color:#ff922b}#turboChip.on{color:#fff;background:#e8590c;border-color:#ffc078}
