*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#100d21;color:#f1efff;font:14px system-ui,sans-serif;overscroll-behavior:none;user-select:none;-webkit-user-select:none}button,select{font:inherit;color:inherit;background:#222039;border:1px solid #7d68aa;border-radius:9px;padding:9px 13px;cursor:pointer;-webkit-tap-highlight-color:transparent}button:active,button.active{background:#8052b8;border-color:#e5c4ff}#game{width:100%;height:100%;display:block;touch-action:none}#hud,#topright,#objective,#direction,#map,#toast,#hint,#touch,#desktop,#overlay{position:absolute}#hud{top:max(14px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));pointer-events:none;text-shadow:0 2px 6px #000} .brand{font-weight:1000;font-style:italic;font-size:24px;letter-spacing:-1px;color:#d2a2ff}.brand small{font-size:9px;letter-spacing:1px;color:#c5bbdf}#money{font-size:25px;font-weight:900;color:#88ffc9}.bar{width:110px;height:5px;background:#5c2946;border-radius:9px;overflow:hidden}.bar i{display:block;height:100%;width:100%;background:#62e5b2}#stars{color:#ffd16d;letter-spacing:3px;font-size:21px}#topright{top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));text-align:right;font-weight:800}#clock,#fps{font-size:11px;text-shadow:0 2px 3px #000;margin-top:5px}#objective{left:14px;top:116px;padding:10px 13px;background:#151227da;border-left:3px solid #a581ff;border-radius:6px;max-width:80%;pointer-events:none}#objective b{display:block;font-size:9px;letter-spacing:2px;color:#c5a2ff;margin-bottom:4px}#objective span{font-size:12px}#direction{top:20%;left:50%;text-align:center;color:#ffe28b;font-size:23px;text-shadow:0 2px 4px #000;pointer-events:none}#direction small{display:block;font-size:11px}#map{width:105px;height:105px;right:14px;bottom:48px;border:1px solid #b09ae0;border-radius:10px;background:#16132c;pointer-events:none}#toast{top:32%;left:50%;transform:translateX(-50%);background:#151227ec;padding:10px 15px;border-radius:8px;color:#f7e3ff;max-width:90%;text-align:center;opacity:0;pointer-events:none;transition:opacity .15s;font-weight:700}#hint{bottom:82px;left:50%;transform:translateX(-50%);text-align:center;font-size:12px;color:#fff;text-shadow:0 1px 4px #000;pointer-events:none}#touch{display:none;bottom:max(16px,env(safe-area-inset-bottom));left:max(15px,env(safe-area-inset-left));right:max(15px,env(safe-area-inset-right));justify-content:space-between;align-items:end;pointer-events:none}#stick{width:118px;height:118px;background:#1c163c88;border:2px solid #c4a1ff8a;border-radius:100%;position:relative;pointer-events:auto;touch-action:none}#knob{position:absolute;width:46px;height:46px;left:34px;top:34px;border-radius:50%;background:#a582dbbb;border:2px solid #e3c6ff;pointer-events:none}.actions{display:grid;grid-template-columns:repeat(2,60px);gap:9px;pointer-events:auto}.actions button{width:60px;height:60px;border-radius:50%;padding:0;background:#251d43cc;font-size:22px;line-height:24px;touch-action:none}.actions button.active{background:#8255b9}.actions small{display:block;font-size:9px;font-weight:900;line-height:12px}#desktop{bottom:12px;left:0;right:0;text-align:center;font-size:10px;color:#ccc3e5;pointer-events:none}body.touch #touch{display:flex}body.touch #desktop{display:none}body.touch #map{bottom:175px;width:85px;height:85px}body.touch #hint{bottom:155px}#overlay{inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,#120e23e8,#241544c0,#0b173be8);padding:20px;overflow:auto}#overlay.hidden{display:none}section{max-width:430px;width:100%;padding:24px;border-left:3px solid #b587ff;background:#130f24c9;box-shadow:0 0 70px #8c47ea33}.eyebrow{font-size:10px;letter-spacing:3px;color:#bf9cf1}h1{font-size:clamp(40px,9vw,76px);font-weight:1000;font-style:italic;letter-spacing:-3px;line-height:.84;margin:18px 0;text-shadow:3px 3px #493468}h1 em{color:#b090ff}.tag{font-weight:800;color:#c1b2ff;letter-spacing:2px;font-size:10px}.tag span{color:#e970bf}section p{color:#c7bbdf}section button{display:block;width:100%;margin:8px 0;font-weight:800}.primary{background:linear-gradient(90deg,#7744c3,#3a67a9);border:1px solid #c6b5ff}section label{display:flex;align-items:center;justify-content:space-between;margin-top:11px;font-size:12px}section label input{margin-right:8px}.muted{font-size:10px;color:#a49bb9}@media(max-height:500px){section{padding:10px}h1{font-size:35px;margin:8px 0}#objective{top:85px}#hud .brand{font-size:16px}#touch{bottom:8px}#map{display:none}section p{margin:6px 0}}

#date,#vehicle{font-size:10px;text-shadow:0 1px 4px #000;margin-top:4px}#vehicle{background:#171329c9;padding:6px 8px;border-radius:6px;color:#e2d5ff;max-width:150px}#overlay{align-items:safe center}section{margin:auto 0;flex-shrink:0}#garage{border-top:1px solid #634b85;margin-top:10px}#garage p{margin:8px 0}section select{max-width:62%;padding:7px;font-size:12px}#hud,#topright{z-index:1}#overlay{z-index:3}
#reticle{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:5px;height:5px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #161321aa;pointer-events:none;z-index:2}body:has(#overlay:not(.hidden)) #reticle{display:none}

#weapon{font-size:11px;margin-top:5px;padding:5px 7px;background:#171329ca;border-radius:6px;color:#eadbff;max-width:155px}#reticle.hit{background:#ff5c8b;box-shadow:0 0 0 3px #ff5c8b55;width:8px;height:8px}#reticle.shot{box-shadow:0 0 0 4px #ffd49a88}body.touch .actions{grid-template-columns:repeat(3,49px);gap:7px}body.touch .actions button{width:49px;height:49px;font-size:19px}body.touch .actions small{font-size:8px}body.touch #map{bottom:192px}body.touch #hint{bottom:178px;max-width:55%}#fire{border-color:#f5a4c0}#aim{border-color:#a8b9fb}@media(max-width:350px){body.touch .actions{grid-template-columns:repeat(3,43px);gap:5px}body.touch .actions button{width:43px;height:43px}#stick{width:102px;height:102px}#knob{left:26px;top:26px}}

#backupPanel,#confirmPanel{border:1px solid #9473ca;border-radius:12px;background:#171427;padding:10px;margin:10px 0}#backupPanel[hidden],#confirmPanel[hidden]{display:none!important}#backupList{max-height:190px;overflow:auto}#backupList button{font-size:11px;text-align:left;white-space:normal}#confirmPanel p{color:#f5d2a5}#confirmAccept{border-color:#c86e7f;color:#ffc6d0}

#map{pointer-events:auto;cursor:pointer;z-index:2}#mapButton{font-size:10px;padding:8px}#buildingLabel{position:absolute;transform:translate(-50%,-50%);max-width:65%;font-size:11px;font-weight:800;white-space:nowrap;text-shadow:0 1px 5px #000,0 0 5px #000;pointer-events:none;color:#e9ddff} .gamePanel{position:absolute;inset:0;z-index:6;background:#111321f5;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:auto;display:flex;flex-direction:column;align-items:center;gap:9px}.gamePanel[hidden]{display:none!important}.gamePanel header{width:min(100%,800px);display:flex;justify-content:space-between;align-items:center;gap:10px;color:#d4baff;font-size:13px}.gamePanel header button{font-size:11px}#fullMap{width:min(100%,680px);height:auto;max-height:48vh;object-fit:contain;aspect-ratio:9/7;border:1px solid #776a9c;border-radius:8px;touch-action:manipulation;cursor:crosshair}.legend{font-size:10px;max-width:680px}.gps{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(100%,680px);font-size:12px}.gps button{font-size:10px}#placeSearch{width:min(100%,680px);padding:10px;border:1px solid #7567a2;background:#211d34;color:white;border-radius:7px}#places{width:min(100%,680px);display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:5px;overflow:auto;min-height:80px;flex:1}#places button{font-size:11px;text-align:left;padding:8px}#places button[hidden]{display:none}#wheelRing{width:min(90vw,390px,50vh);aspect-ratio:1;border:1px solid #6b528f;border-radius:50%;position:relative;background:radial-gradient(circle,#27203d 0 27%,#39294f 28% 49%,#171526 50% 100%)}#wheelRing button{position:absolute;transform:translate(-50%,-50%);width:28%;min-height:43px;padding:5px;font-size:clamp(9px,2.8vw,12px);background:#252139e8;white-space:normal}#wheelRing button.selected{background:#7950ad;border-color:#dcc3ff}#wheelItems{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}#wheelItems button{font-size:12px}#wheelTitle{margin:0;color:#d6b8ff} @media(max-height:500px){#map{display:block;width:70px;height:70px;bottom:15px}body.touch #map{bottom:135px}.gamePanel{padding:8px}#fullMap{max-height:42vh}}

#fullMap{width:min(100%,680px,61.7vh);max-height:none;object-fit:fill;flex-shrink:0}.gps{flex-wrap:wrap}.gps span{flex:1;min-width:100px}#mapPanel .gps button{padding:7px;font-size:9px}

#places{align-content:start;grid-auto-rows:min-content}#buildingLabel{inset:0;transform:none;max-width:none;pointer-events:none;z-index:1}#buildingLabel span{position:absolute;transform:translate(-50%,-50%);padding:3px 6px;background:#151322ab;border-radius:4px;font-size:10px;max-width:40vw;overflow:hidden;text-overflow:ellipsis}#buildingLabel span[hidden]{display:none}

#cityLife{position:absolute;left:14px;top:180px;max-width:min(55vw,280px);padding:7px 9px;background:#161426dc;border-left:2px solid #ffad68;border-radius:7px;font-size:11px;line-height:1.35}#cityLife[hidden]{display:none}#cityLife button{font-size:10px;padding:5px 8px;margin-top:5px}#cityEventText{color:#ffe0bc}@media(max-width:500px){#cityLife{top:171px;max-width:48vw;left:9px;font-size:10px}}
