*{box-sizing:border-box}html,body{height:100%;margin:0;overscroll-behavior:none}body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:#080e1d;color:#f9fafc;touch-action:manipulation}#app{height:100dvh;max-width:700px;min-height:430px;margin:auto;display:flex;flex-direction:column;background:#111c32;overflow:hidden}header{padding:0 14px;min-height:55px;background:#192846;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #34486d}.brand{font-weight:1000;letter-spacing:.5px;font-size:19px}.brand span{color:#f8c764}.hud{display:flex;gap:14px;font-size:16px;font-weight:800}#worldInfo{height:49px;flex-shrink:0;background:#213150;display:flex;align-items:center;gap:7px;padding:6px 12px;flex-wrap:wrap}#location{font-size:13px;font-weight:900;flex:1;min-width:125px}.small{font-size:10px;color:#dae7ff;background:#354766;border-radius:7px;padding:6px;font-weight:800}#gameWrap{position:relative;min-height:0;flex:1;touch-action:none}canvas{width:100%;height:100%;display:block;touch-action:none}#toast{position:absolute;top:25px;left:50%;transform:translateX(-50%) translateY(-12px);opacity:0;pointer-events:none;z-index:2;padding:12px 16px;border:2px solid #eabf63;border-radius:14px;background:#121e39e8;white-space:nowrap;text-align:center;font-weight:950;font-size:16px;transition:opacity .25s,transform .25s;box-shadow:0 8px 30px #0008}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.overlay{position:absolute;inset:0;background:#070b19d9;display:flex;align-items:center;justify-content:center;padding:12px;z-index:3}.hidden{display:none!important}.panel{background:#1a2949;border:1px solid #50638a;box-shadow:0 12px 45px #0008;border-radius:20px;padding:17px 18px;width:min(410px,100%);text-align:center;max-height:95%;overflow:auto}.face{width:68px;height:68px;border-radius:50%;border:3px solid #e9b451;margin:0 auto 8px;overflow:hidden}.face img{width:155%;height:155%;object-fit:cover;transform:translate(-18%,-2%)}h1{font-size:25px;margin:3px 0 7px}h2{font-size:19px;margin:0}p{color:#cbd8f4;font-size:13px;line-height:1.4;margin:5px 0 12px}.menustack{margin-bottom:10px}.menustack label{display:block;text-align:left;font-size:10px;font-weight:900;color:#dbe6fc;margin:4px 0}.namebar{display:flex;gap:5px}input{min-width:0;flex:1;border:1px solid #5c739e;background:#101a30;color:white;padding:10px;border-radius:9px;font-size:14px}button{border:0;cursor:pointer;color:#fff;background:#324769;border-radius:10px;padding:10px;font-weight:800}.smallbtn{width:44px;background:#406d73}.primary{background:#f2c154;color:#1a2440;width:100%;font-weight:1000;font-size:19px;padding:13px;box-shadow:0 4px 0 #ac7d29}.menubuttons{display:flex;gap:6px;margin-top:10px}.menubuttons button{flex:1}.fine{font-size:11px;color:#9baecf;line-height:1.4;margin-top:7px}footer{background:#192846;min-height:47px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#cad8f5;position:relative}#sound{position:absolute;right:9px;padding:7px 10px;font-size:18px}.modalpanel{max-height:80%;text-align:left}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modalhead button{padding:6px 12px}.tabs{display:flex;gap:6px;margin:6px 0 12px}.tabs button{flex:1;padding:8px}.tabs .active{background:#efbe52;color:#26304c}.rank{display:flex;gap:12px;align-items:center;background:#253756;margin:6px 0;padding:10px;border-radius:10px;font-size:13px}.rank.me{border:1px solid #f2c154}.rank .name{flex:1;overflow-wrap:anywhere}.rank b{white-space:nowrap}.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.collect{padding:11px;background:#253756;border-radius:10px;font-size:12px}.collect strong{display:block;font-size:24px}.collect small{color:#aebedb}#modalBody .notice{color:#b5c7e4;font-size:12px}@media(max-height:590px){header{min-height:42px}#worldInfo{height:38px}.panel{padding:9px 15px}.face{width:45px;height:45px}h1{font-size:21px}p{margin-bottom:5px}.primary{padding:8px}footer{min-height:34px}}
