
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#090f25;color:#fff;font-family:system-ui,-apple-system,Segoe UI,sans-serif;user-select:none;-webkit-user-select:none}canvas{display:block;width:100%;height:100%;touch-action:none}#hud{position:fixed;top:env(safe-area-inset-top);left:0;right:0;padding:12px 14px;z-index:2;pointer-events:none;text-shadow:0 2px 6px #000}#hudrow{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:900;font-size:clamp(11px,2.8vw,15px)}#bars{display:flex;gap:8px;margin-top:9px}.bar{height:10px;background:#202646;border:1px solid #59618b;border-radius:10px;overflow:hidden;flex:1}.bar b{display:block;height:100%;width:100%;background:linear-gradient(90deg,#e64665,#ff8b7b);transition:width .15s}.bar:nth-child(2) b{width:0;background:linear-gradient(90deg,#49c5f2,#e1f7ff)}.bar:nth-child(3) b{width:0;background:linear-gradient(90deg,#efb739,#fff08b)}#labels{display:flex;justify-content:space-between;font-size:10px;color:#c6d3f9;margin-top:4px}#controls{position:fixed;right:12px;top:calc(env(safe-area-inset-top) + 76px);display:flex;gap:7px;z-index:3}#controls button{width:40px;height:40px;padding:0;margin:0;border:1px solid #65749c;background:#1c2850d9;color:#fff;border-radius:11px;font-size:19px}button{cursor:pointer;touch-action:manipulation;border:0;border-radius:12px;padding:13px 18px;font-size:15px;font-weight:900;background:#ffd452;color:#151932}button:focus-visible{outline:3px solid #fff}#overlay{position:fixed;inset:0;z-index:10;background:#070c20e8;display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}#panel{width:min(460px,100%);max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #6776a8;border-radius:24px;padding:clamp(17px,4vw,28px);background:linear-gradient(160deg,#1b2950,#101a37);box-shadow:0 22px 80px #000a;text-align:center}h1{font-size:clamp(27px,7vw,40px);line-height:1.06;color:#ffd451;margin:8px 0 14px;letter-spacing:-1px}p{line-height:1.55;color:#cdd8f4;font-size:14px}#badge{font-size:48px}#actions{display:grid;gap:9px;margin-top:17px}#actions button{width:100%;margin:0}.choice{background:#293a69;color:#fff;text-align:left;border:1px solid #667eac;display:flex;gap:12px;align-items:center}.choice span:first-child{font-size:27px}.choice small{display:block;font-weight:400;color:#cad6f0;margin-top:4px;font-size:12px}.secondary{background:#29395f;color:#f1f5ff;border:1px solid #6475a4}.muted{font-size:11px;color:#9eaed4}#hint{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 12px);left:0;right:0;z-index:1;text-align:center;font-size:11px;color:#a7b9de;pointer-events:none}a{color:#ffe183}#controls{display:none}#toast{position:fixed;top:calc(env(safe-area-inset-top) + 130px);left:50%;transform:translateX(-50%);font-weight:900;color:#ffe17b;text-shadow:0 2px 8px #000;z-index:4;pointer-events:none;text-align:center;opacity:0;transition:opacity .2s;white-space:nowrap}#toast.show{opacity:1}@media(max-height:610px){#panel{padding:13px}#badge{font-size:30px}h1{font-size:27px;margin:3px 0}p{margin:7px 0;font-size:12px}}

/* Accessible, responsive upgrade selection */
#overlay{background:rgba(5,10,28,.84);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#panel{width:min(540px,100%);background:linear-gradient(155deg,#24365e,#131e3e);border:1px solid #8298c5;padding:clamp(20px,4vw,34px);box-shadow:0 25px 90px #000c}
#panel.upgrade-panel{width:min(570px,100%);text-align:left}
#panel.upgrade-panel #badge{text-align:center;font-size:0;line-height:0;margin-bottom:10px}
#panel.upgrade-panel #badge svg{width:43px;height:43px;color:#ffda67;filter:drop-shadow(0 0 12px #e4a92d66)}
#panel.upgrade-panel h1{text-align:center;font-size:clamp(26px,5vw,36px);letter-spacing:-.7px;line-height:1.1;margin:10px 0 12px}
#panel.upgrade-panel #description{text-align:center;color:#dce6ff;font-size:clamp(14px,2vw,16px);margin:0 0 20px}
#panel.upgrade-panel #actions{gap:12px;margin:0}
#panel.upgrade-panel button.choice{min-height:92px;display:flex;align-items:center;gap:16px;padding:16px;background:#304675;border:1.5px solid #7289b9;border-radius:15px;text-align:left;color:#fff;transition:background .15s,border-color .15s,transform .15s}
#panel.upgrade-panel button.choice:hover,#panel.upgrade-panel button.choice:focus-visible{background:#405b91;border-color:#ffdb79;transform:translateY(-1px)}
#panel.upgrade-panel button.choice:active{transform:scale(.99)}
.choice-icon{flex:none;width:54px;height:54px;border-radius:13px;background:#182a53;border:1px solid #6b84b9;display:flex;align-items:center;justify-content:center;color:#ffdc77}
.choice-icon svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.choice-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.choice-name{font-size:16px;font-weight:850;line-height:1.25;color:#fff}.choice-description{font-size:13px;line-height:1.45;font-weight:450;color:#d8e3fa}
#panel.upgrade-panel .muted{font-size:12px;line-height:1.45;margin:18px 0 0;text-align:center;color:#b9c9e7}
@media(max-width:480px){#overlay{padding:12px}#panel.upgrade-panel{padding:22px 17px;border-radius:20px}#panel.upgrade-panel button.choice{min-height:82px;padding:12px;gap:12px}.choice-icon{width:46px;height:46px}.choice-icon svg{width:26px;height:26px}.choice-name{font-size:15px}.choice-description{font-size:12px}}
@media(max-height:640px){#panel.upgrade-panel{padding:14px 18px}#panel.upgrade-panel h1{font-size:25px;margin:5px 0}#panel.upgrade-panel #description{margin:0 0 10px}#panel.upgrade-panel button.choice{min-height:66px;padding:9px 12px}#panel.upgrade-panel #actions{gap:7px}.choice-icon{width:42px;height:42px}}

#hurtFlash{position:fixed;inset:0;z-index:5;pointer-events:none;background:radial-gradient(circle at center,transparent 40%,rgba(180,20,40,.45));opacity:0;transition:opacity .08s}
#hurtFlash.show{opacity:1}
#boot{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#070c20;color:#cdd8f4;font-weight:700;letter-spacing:.04em}
#boot.hide{display:none}

#lbBox{margin-top:14px;text-align:left}
#lbStatus{font-size:11px;color:#9eaed4;margin-bottom:6px}
#lbStatus[data-state="online"]{color:#8dffc1}
#lbStatus[data-state="offline"]{color:#ffb4a2}
#lbPreview{font-size:12px;margin-bottom:8px}
.lb-row{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px solid #2a3a60}
#lbJoin{display:flex;gap:8px;margin-top:8px}
#lbName{flex:1;min-width:0;border:1px solid #667eac;border-radius:10px;background:#182447;color:#fff;padding:10px 12px;font-size:14px}
#lbJoin button{width:auto;white-space:nowrap;padding:10px 12px;font-size:12px}
.lb-privacy{margin-top:8px!important;font-size:10px!important}

.tagline-sub{margin-top:8px!important;font-size:11px!important}
.tagline-sub a{color:#ffe183;text-decoration:none}
.tagline-sub a:hover{text-decoration:underline}
#actions button{font-size:14px}
