
.arcade-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:9px 10px;border:1px solid #514932;border-radius:8px;background:rgba(17,17,17,.88)}
.arcade-entry .tiny{margin:2px 0 0}
.arcade-entry button{white-space:nowrap}
#arcadeOverlay{position:fixed;inset:0;z-index:2147483000;background:rgba(4,4,6,.94);display:none;align-items:center;justify-content:center;padding:14px}
#arcadeOverlay.open{display:flex}
.arcade-shell{width:min(1240px,99vw);max-height:98vh;display:flex;flex-direction:column;background:#0b090d;border:2px solid #7e6a31;border-radius:8px;box-shadow:0 24px 90px rgba(0,0,0,.75),0 0 0 2px #151018 inset;overflow:hidden}
.arcade-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:linear-gradient(#171419,#0e0c10);border-bottom:2px solid #6f5d2b;text-transform:uppercase}
.arcade-head b{color:#f0c44e}.arcade-head .arcade-controls-help{font-size:10px;color:#aaaab4}
.arcade-head button{width:auto}
.arcade-stage-wrap{position:relative;aspect-ratio:16/9;background:#050505;overflow:hidden;box-shadow:inset 0 0 42px rgba(0,0,0,.55)}
#arcadeCanvas{display:block;width:100%;height:100%;background:#000;image-rendering:pixelated;image-rendering:crisp-edges}
.arcade-touch{display:none;position:absolute;inset:0;pointer-events:none;user-select:none;-webkit-user-select:none}
.arcade-touch .arcade-pad,.arcade-touch .arcade-btn{pointer-events:auto;position:absolute;touch-action:none}
.arcade-pad{left:3%;bottom:5%;width:24%;aspect-ratio:1;border-radius:50%;border:2px solid rgba(255,255,255,.22);background:rgba(0,0,0,.35)}
.arcade-pad:before,.arcade-pad:after{content:"";position:absolute;background:rgba(255,255,255,.18);border-radius:8px}
.arcade-pad:before{left:9%;right:9%;top:38%;bottom:38%}.arcade-pad:after{top:9%;bottom:9%;left:38%;right:38%}
.arcade-btn{display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid rgba(255,255,255,.32);font-weight:900;font-size:clamp(10px,2vw,17px);color:#fff;text-shadow:0 1px 2px #000}
.arcade-btn.a{right:19%;bottom:5%;width:13%;aspect-ratio:1;background:rgba(190,35,35,.8)}
.arcade-btn.b{right:4%;bottom:15%;width:13%;aspect-ratio:1;background:rgba(35,80,190,.8)}
.arcade-btn.s{right:12%;bottom:30%;width:11%;aspect-ratio:1;background:rgba(218,166,30,.88);color:#191919;text-shadow:none}
.arcade-btn.start{right:3%;top:3%;width:auto;height:auto;aspect-ratio:auto;padding:8px 12px;border-radius:18px;background:rgba(0,0,0,.55)}
.arcade-btn.join{left:3%;top:3%;width:auto;height:auto;aspect-ratio:auto;padding:8px 12px;border-radius:18px;background:rgba(0,0,0,.55)}
.arcade-foot{padding:7px 10px;background:#100e11;border-top:1px solid #332d33;color:#8f8990;font-size:10px;text-align:center}
@media (pointer:coarse),(max-width:800px){.arcade-touch{display:block}.arcade-controls-help{display:none}.arcade-shell{width:100vw;max-height:100vh;border-radius:0}.arcade-stage-wrap{aspect-ratio:16/9}}

#arcadeOverlay:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 1px,rgba(0,0,0,.025) 2px,rgba(0,0,0,.025) 4px);mix-blend-mode:screen;opacity:.45}
.arcade-head b{font-family:Impact,"Arial Black",sans-serif;letter-spacing:.04em;text-shadow:0 2px 0 #000}
.arcade-foot{font-family:monospace;letter-spacing:.03em}

.arcade-challenge{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;background:rgba(0,0,0,.72);padding:18px}
.arcade-challenge.hidden{display:none}
.arcade-challenge-card{width:min(440px,94vw);padding:20px;border:2px solid #7e6a31;border-radius:10px;background:#161218;box-shadow:0 24px 80px rgba(0,0,0,.75);text-align:center}
.arcade-challenge-card h2{margin:0 0 12px;color:#f0c44e}
.arcade-challenge-card .arcade-challenge-actions{display:flex;gap:8px;justify-content:center;margin:16px 0 10px}
.arcade-challenge-card button{width:auto}
