.gx-rapid{--rp-ink:#092230;--rp-gold:#ffd88e;--rp-red:#ee664c;max-width:820px;margin:22px auto;color:#f5f4e9;font:600 15px/1.45 system-ui,sans-serif;isolation:isolate}.gx-rapid *{box-sizing:border-box}.gx-rapid [hidden]{display:none!important}.gx-rapid button,.gx-rapid select{font:inherit}.gx-rapid button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.gx-rapid button:focus-visible,.gx-rapid select:focus-visible{outline:3px solid #8be4ff;outline-offset:3px}.gx-rapid button:disabled{cursor:default;opacity:.46}.rp-shell{position:relative;overflow:hidden;border:3px solid #b28b52;border-radius:20px;background:#081b28;box-shadow:0 18px 42px #07152340,0 0 0 3px #132c39 inset;display:flex;flex-direction:column}.rp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 16px;background:linear-gradient(115deg,#254757,#081e2c);border-bottom:1px solid #9f7c49}.rp-brand strong{display:block;font-size:23px;letter-spacing:.02em;color:#fff3ce}.rp-brand small{color:#9db9c2;font-size:10px;letter-spacing:.13em}.rp-top{display:flex;gap:5px}.gx-rapid button:not(.rp-tap){border:1px solid #55747f;border-radius:8px;color:#f3f3eb;background:#1b3b4a;padding:9px 12px;min-height:40px}.rp-top button{font-size:12px!important;padding:6px 9px!important}.rp-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#2c4e5a;border-bottom:1px solid #2c4e5a}.rp-hud>div{background:#0d2633;padding:8px;text-align:center}.rp-hud span{display:block;font-size:10px;color:#acc6cc}.rp-hud strong{color:#ffe0a3;font-size:25px;font-variant-numeric:tabular-nums;line-height:1.1}.rp-stage{position:relative;display:flex;flex-direction:column;min-height:430px;background:#061825}.rp-scene{display:block;width:100%;height:270px;flex:1 1 auto;min-height:100px}.rp-machine{display:flex;justify-content:space-between;gap:8px;padding:6px 18px;color:#b7cbd1;font-size:12px}.rp-machine strong{color:#ffd586}.rp-charge{margin:0 18px 8px;height:7px;border:1px solid #52717a;border-radius:8px;overflow:hidden;background:#152e3a}.rp-charge i{display:block;height:100%;width:0;background:linear-gradient(90deg,#db6940,#ffe3a3);transition:width .08s}.rp-console{display:flex;gap:12px;align-items:stretch;padding:5px 20px 14px}.rp-tap{flex:1;position:relative;min-height:100px;padding:12px;border:4px solid #512b21;border-radius:22px;color:#fff5d6;background:radial-gradient(ellipse at 40% 12%,#fbab69,#e96045 45%,#a52c2a);box-shadow:0 7px 0 #502820,0 11px 0 #d9b56c,0 15px 0 #263b42,0 19px 22px #0008,inset 0 3px 2px #fff7;text-shadow:0 2px 2px #8a281b;user-select:none;touch-action:none}.rp-tap strong{display:block;font-size:30px;line-height:1.1;letter-spacing:.08em}.rp-tap small{display:block;font-size:11px;margin-top:4px}.rp-tap:active,.rp-tap.is-hit{transform:translateY(4px);box-shadow:0 3px 0 #502820,0 7px 0 #d9b56c,0 11px 0 #263b42,0 15px 18px #0008,inset 0 3px 2px #fff7}.rp-burst{min-width:115px;background:linear-gradient(#5a6554,#25444c)!important;color:#fff0ad!important;border:2px solid #c6a864!important;white-space:pre-line}.rp-burst.is-ready{box-shadow:0 0 14px #ffc15e55;background:linear-gradient(#a36a34,#523a27)!important}.rp-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;padding:12px 17px 8px;font-size:11px;color:#b2c6cc}.rp-status{font-size:12px;color:#c4dce1;padding:0 17px 10px;margin:0!important;min-height:28px}.rp-panel{position:absolute;inset:0;z-index:3;background:linear-gradient(140deg,#122f3ff7,#061421fa);padding:23px 26px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:13px}.rp-panel h2{font-size:26px!important;line-height:1.2!important;color:#ffe0a3!important;border:0!important;background:none!important;margin:0!important;padding:0!important;letter-spacing:0!important;box-shadow:none!important}.rp-panel h2:before,.rp-panel h2:after{display:none!important}.rp-panel p{margin:0!important;font-size:13px;line-height:1.55;color:#c2d6db}.rp-modes,.rp-options,.rp-actions{display:flex;gap:7px;flex-wrap:wrap}.rp-modes button{flex:1;white-space:nowrap;padding:10px 7px!important}.rp-options button{flex:1;white-space:nowrap;padding:8px!important}.rp-modes button[aria-pressed=true],.rp-options button[aria-pressed=true]{border-color:#ffcf84!important;background:#674e30!important;color:#ffe8b8!important}.gx-rapid .rp-primary{background:linear-gradient(#ed8850,#b84a36)!important;border:2px solid #fbc482!important;color:#fff6d9!important;font-size:18px;min-height:48px}.rp-note{font-size:11px!important;color:#a8bfc6!important}.rp-history{font-size:11px;color:#acc7cf}.rp-history summary{cursor:pointer}.rp-history p{font-size:11px}.rp-score{font-size:46px;color:#ffe1a3;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}.rp-result-stats{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;font-size:12px;color:#b8d1da}.rp-result-stats strong{color:#fff3cf}.rp-bars{display:flex;align-items:flex-end;gap:3px;height:58px;padding:8px 0 0;border-bottom:1px solid #50717f}.rp-bar{flex:1;min-width:2px;background:linear-gradient(#ffde86,#e66f47);height:var(--height);position:relative}.rp-bar span{position:absolute;bottom:calc(100% + 1px);left:50%;transform:translateX(-50%);font-size:8px;color:#f3d4a3}.rp-part{display:flex;justify-content:space-between;gap:12px;text-align:left;padding:13px!important}.rp-part small{display:block;font-size:11px;color:#c2d5d7;font-weight:400}.rp-part>span{color:#ffdb8f;white-space:nowrap}.rp-ready{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-size:56px;font-weight:900;color:#fff2cf;text-shadow:0 4px 10px #09232a}.rp-shell:fullscreen,.rp-shell.rp-expanded{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0;padding:max(0px,env(safe-area-inset-top)) max(0px,env(safe-area-inset-right)) max(0px,env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left));margin:0}.rp-expanded{position:fixed;inset:0;z-index:2147483000}.gx-rapid.rp-portal{max-width:none!important;margin:0!important;position:relative;z-index:2147483000}.rp-shell:fullscreen .rp-stage,.rp-expanded .rp-stage{flex:1;min-height:0}.rp-shell:fullscreen .rp-scene,.rp-expanded .rp-scene{height:0;min-height:50px}.rp-shell:fullscreen .rp-panel,.rp-expanded .rp-panel{justify-content:center}.rp-shell:fullscreen .rp-bottom,.rp-expanded .rp-bottom{padding:8px 16px 3px}.rp-shell:fullscreen .rp-status,.rp-expanded .rp-status{padding-bottom:5px;min-height:21px}.rp-shell:fullscreen .rp-console,.rp-expanded .rp-console{flex-shrink:0}.rp-shell:fullscreen .rp-machine,.rp-expanded .rp-machine{flex-shrink:0}.rp-shell:fullscreen .rp-charge,.rp-expanded .rp-charge{flex-shrink:0}
@media(max-width:500px){.gx-rapid{font-size:13px;margin:14px auto}.rp-head{padding:10px}.rp-brand strong{font-size:19px}.rp-top{gap:4px}.rp-top button{font-size:10px!important;padding:5px 6px!important;min-height:34px!important}.rp-hud strong{font-size:23px}.rp-hud>div{padding:7px 3px}.rp-stage{min-height:385px}.rp-scene{height:205px}.rp-console{padding:4px 12px 13px;gap:8px}.rp-tap{min-height:92px;border-radius:18px}.rp-tap strong{font-size:25px}.rp-burst{min-width:88px;font-size:12px!important;padding:5px!important}.rp-panel{padding:18px 14px;gap:12px}.rp-panel h2{font-size:23px!important}.rp-panel p{font-size:12px}.rp-options button{font-size:12px!important}.rp-modes button{font-size:12px!important}.rp-score{font-size:38px}.rp-bottom{padding:13px 12px 5px}.rp-machine{padding:5px 12px}.rp-charge{margin:0 12px 7px}.rp-actions button{flex:1;font-size:12px!important}.rp-history{font-size:10px}.rp-status{padding:0 12px 8px;font-size:11px}}
@media(max-height:500px){.rp-expanded .rp-head,.rp-shell:fullscreen .rp-head{padding:5px 12px}.rp-expanded .rp-hud>div,.rp-shell:fullscreen .rp-hud>div{padding:3px}.rp-expanded .rp-hud strong,.rp-shell:fullscreen .rp-hud strong{font-size:19px}.rp-expanded .rp-tap,.rp-shell:fullscreen .rp-tap{min-height:60px;padding:5px}.rp-expanded .rp-tap strong,.rp-shell:fullscreen .rp-tap strong{font-size:24px}.rp-expanded .rp-console,.rp-shell:fullscreen .rp-console{padding-bottom:9px}.rp-expanded .rp-panel,.rp-shell:fullscreen .rp-panel{padding:10px 18px;justify-content:flex-start;gap:7px}.rp-expanded .rp-panel h2,.rp-shell:fullscreen .rp-panel h2{font-size:19px!important}.rp-expanded .rp-bars,.rp-shell:fullscreen .rp-bars{height:32px}.rp-expanded .rp-score,.rp-shell:fullscreen .rp-score{font-size:29px}.rp-expanded .rp-bottom,.rp-shell:fullscreen .rp-bottom{font-size:10px;padding-top:5px}.rp-expanded .rp-status,.rp-shell:fullscreen .rp-status{font-size:10px;padding-bottom:2px;min-height:16px}}
@media(prefers-reduced-motion:reduce){.gx-rapid *{animation:none!important;transition:none!important}.rp-tap:active,.rp-tap.is-hit{transform:none}}

.rp-top button{min-width:44px;min-height:44px!important;white-space:nowrap}
.rp-bar{max-height:100%}
@media(max-height:500px){
 :is(.rp-expanded,:fullscreen) .rp-stage{display:grid;grid-template-columns:42% minmax(0,1fr);grid-template-rows:auto 7px minmax(0,1fr)}
 :is(.rp-expanded,:fullscreen) .rp-scene{grid-column:1;grid-row:1/4;width:100%;height:100%;min-height:0}
 :is(.rp-expanded,:fullscreen) .rp-machine{grid-column:2;grid-row:1;padding:5px 12px 5px 0}
 :is(.rp-expanded,:fullscreen) .rp-charge{grid-column:2;grid-row:2;margin:0 12px 0 0}
 :is(.rp-expanded,:fullscreen) .rp-console{grid-column:2;grid-row:3;padding:8px 12px 9px 0;min-height:0}
 :is(.rp-expanded,:fullscreen) .rp-bottom button{min-height:32px;padding:4px 8px}
 :is(.rp-expanded,:fullscreen):is([data-panel=menu],[data-panel=pause],[data-panel=result],[data-panel=supply]) :is(.rp-hud,.rp-bottom){display:none}
 :is(.rp-expanded,:fullscreen)[data-panel=menu] .rp-panel{display:grid;grid-template-columns:1fr 1fr;align-content:center;justify-content:normal}
 :is(.rp-expanded,:fullscreen)[data-panel=menu] .rp-panel :is(h2,p){grid-column:1/-1}
 :is(.rp-expanded,:fullscreen)[data-panel=result] .rp-panel{display:grid;grid-template-columns:1fr 1fr;align-content:center}
 :is(.rp-expanded,:fullscreen)[data-panel=result] .rp-panel :is(h2,p,.rp-bars,.rp-actions){grid-column:1/-1}
 :is(.rp-expanded,:fullscreen)[data-panel=supply] .rp-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center}
 :is(.rp-expanded,:fullscreen)[data-panel=supply] .rp-panel :is(h2,p){grid-column:1/-1}
 :is(.rp-expanded,:fullscreen)[data-panel=supply] .rp-part{display:block;padding:8px!important}
 :is(.rp-expanded,:fullscreen)[data-panel=supply] .rp-part>span{display:block}
}
