/* Independent responsive FPV cockpit. No generic fit/zoom during flight. */
/* 201: only five/eight-player ranks scroll; retain the four-player layout. */
#uzay-ranks[data-manyplayers="true"]{box-sizing:border-box;max-height:min(260px,calc(100% - 270px - env(safe-area-inset-bottom)));max-width:210px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;pointer-events:auto;padding-right:24px;scrollbar-width:thin;scrollbar-color:#c8b16c #102b3580;scroll-padding:4px}
#uzay-ranks[data-manyplayers="true"]>li{min-width:0}
#uzay-ranks[data-manyplayers="true"] :is(button,b){max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#uzay-ranks[data-manyplayers="true"]::-webkit-scrollbar{width:12px}
#uzay-ranks[data-manyplayers="true"]::-webkit-scrollbar-thumb{background:#c8b16c;border-radius:8px}
@media(max-height:520px) and (orientation:landscape){#uzay-ranks[data-manyplayers="true"]{max-height:calc(100% - 219px - env(safe-area-inset-bottom))}}
@media(max-width:600px) and (orientation:portrait){#uzay-ranks[data-manyplayers="true"]{max-height:min(260px,calc(100% - 270px - env(safe-area-inset-bottom)))}}
#uzay-page #uzay-net{position:absolute;left:max(171px,calc(env(safe-area-inset-left) + 144px));bottom:30px;width:67px;height:67px;border-radius:50%;font-size:10px;padding:5px;background:linear-gradient(to top,#326b68 var(--net-fill,100%),#102d39 var(--net-fill,100%));touch-action:none;user-select:none;-webkit-touch-callout:none}#uzay-net>span{font-size:21px;line-height:20px;color:#b5f5ef}#uzay-net>b{font-size:10px}#uzay-net>small{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;pointer-events:none}.uzay-net-ready{box-shadow:inset 0 0 12px #79e4dc44,0 0 10px #79e4dc44!important}#uzay-net[aria-pressed=true]{border-color:#b5fff6!important}#uzay-net-hit{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 70px #78e4e688;background:repeating-linear-gradient(45deg,transparent 0 42px,#a4f8ef20 42px 44px),repeating-linear-gradient(-45deg,transparent 0 42px,#a4f8ef20 42px 44px)}#uzay-net-status{position:absolute;left:50%;top:62%;transform:translateX(-50%);pointer-events:none;background:#0c343bea;border:1px solid #99eae1;border-radius:9px;padding:6px 10px;font-size:12px;white-space:nowrap}
@media(max-height:520px) and (orientation:landscape){#uzay-page #uzay-net{width:53px;height:53px;left:max(139px,calc(env(safe-area-inset-left) + 117px));bottom:25px;font-size:9px}#uzay-net>span{font-size:17px;line-height:16px}#uzay-net>b{font-size:9px}#uzay-net>small{font-size:8px;width:93px}#uzay-net-status{font-size:10px;padding:5px 8px}}
#uzay-page{margin:0;background:#112d28;color:#f7f0dc;font-family:system-ui,sans-serif}#uzay-page *{box-sizing:border-box}#uzay-page [hidden]{display:none!important}
#uzay-page:has(#uzay-game:not([hidden])) #uzay-toast{bottom:170px;pointer-events:none}
@media(max-height:520px) and (orientation:landscape){#uzay-page:has(#uzay-game:not([hidden])) #uzay-toast{bottom:140px;font-size:11px;padding:8px 12px}}
#uzay-page button{border:1px solid #d9b567;border-radius:11px;padding:10px 15px;color:#f7f0dc;background:linear-gradient(145deg,#315844,#183c30);font:inherit;cursor:pointer;box-shadow:inset 0 1px #ffffff25,0 3px 9px #0003}#uzay-page button:disabled{opacity:.45;cursor:default}#uzay-page button:focus-visible,.uzay-joystick:focus-visible{outline:3px solid #f4c66b;outline-offset:3px}#uzay-page .g-kur,#uzay-page #uzay-begin{background:linear-gradient(135deg,#f8d582,#bf8129);color:#352917;font-weight:750}
#uzay-page .g-orta-alan{gap:20px;flex-wrap:wrap;padding-top:11vh}#uzay-page .g-alan{min-width:0}#uzay-page .g-alan label{display:block;margin-bottom:8px}#uzay-page .g-alt{flex-wrap:wrap;gap:10px}#uzay-page .classic-select{min-height:42px}#uzay-page .classic-native-select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.classic-options{position:fixed;z-index:100100;background:#173f30;color:#f8f4df;border:1px solid #d9b567;border-radius:12px;padding:6px;overflow:auto;box-shadow:0 8px 30px #0007}.classic-options button{display:block;width:100%;padding:10px;text-align:left;color:inherit;background:transparent;border:0;font:inherit}.classic-options button:hover,.classic-options button:focus{background:#396952}
.uzay-intro{position:absolute;left:7%;top:19%;pointer-events:none}.uzay-intro small{letter-spacing:.16em;color:#efc87b}.uzay-intro h2{font-size:clamp(26px,4.5vw,60px);letter-spacing:-.04em;margin:8px 0}.uzay-intro p,.uzay-intro span{font-size:14px;color:#d4e6db}
#uzay-header{display:flex;align-items:center;gap:12px;padding:8px 16px;height:54px;background:#47262a;border-bottom:1px solid #b18c49}#uzay-header h1{font-size:18px;margin:0 auto 0 0}#uzay-header button{padding:7px 12px;font-size:13px}#uzay-lobby{max-width:780px;margin:30px auto;padding:24px;background:#173f30e8;border:1px solid #bc9754;border-radius:24px}#uzay-settings{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0}#uzay-people{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:20px 0}.uzay-person{display:flex;align-items:center;gap:9px;background:#ffffff0b;border:1px solid #ffffff20;border-radius:12px;padding:12px}.uzay-person span{flex:1}.uzay-person button{padding:5px 9px!important}
#uzay-game{position:relative;isolation:isolate;width:100%;height:calc(100dvh - 54px);min-height:240px;overflow:hidden;background:#6c9da7}#uzay-canvas{display:block;width:100%;height:100%;touch-action:none}#uzay-vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse,transparent 35%,#031c244a),linear-gradient(#07272d55,transparent 27%,transparent 70%,#08212bd9)}
#uzay-hit{position:absolute;inset:0;box-shadow:inset 0 0 60px #f56e5a90;pointer-events:none}#uzay-hud{position:absolute;left:18px;top:12px;display:flex;gap:7px}#uzay-hud>div{padding:8px 12px;background:#082731d9;border:1px solid #ffffff30;border-radius:12px;backdrop-filter:blur(5px)}#uzay-hud small{display:block;font-size:9px;letter-spacing:.11em;color:#c1dad6}#uzay-hud strong{display:block;font-size:22px;font-variant-numeric:tabular-nums}#uzay-lap{font-size:10px;color:#d3e4d9}#uzay-top-actions{position:absolute;right:14px;top:14px;display:flex;gap:6px}#uzay-top-actions button{font-size:11px;padding:8px 10px;background:#102e34d9;border-color:#ffffff50}#uzay-ranks{position:absolute;left:18px;top:102px;list-style:none;margin:0;padding:0;font-size:12px;pointer-events:none}#uzay-ranks li{display:flex;gap:8px;padding:5px 9px;margin:4px 0;background:#0b2935c9;border-radius:6px}.uzay-me{outline:1px solid #f4c66b}#uzay-ranks i{width:4px;border-radius:3px}#uzay-ranks b{font-weight:500}#uzay-map{position:absolute;right:14px;top:66px;width:112px;height:112px;border:1px solid #ffffff28;border-radius:18px;background:#092632b8;pointer-events:none}
#uzay-target{position:absolute;left:50%;top:15px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;color:#f8ce71;text-shadow:0 2px 7px #000;pointer-events:none}#uzay-arrow{font-size:29px;line-height:1}#uzay-target b{font-size:12px}#uzay-target small{font-size:10px;color:#e2f0e9}#uzay-reticle{position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);border:1px solid #ffffff24;border-radius:50%;pointer-events:none}#uzay-reticle i{position:absolute;left:18px;top:18px;width:3px;height:3px;background:#faf0cf;border-radius:50%;box-shadow:0 0 6px #fff}#uzay-countdown{position:absolute;top:38%;left:50%;transform:translateX(-50%);font-size:clamp(30px,7vw,76px);font-weight:900;color:#f7d782;white-space:nowrap;text-shadow:0 3px 20px #0008;pointer-events:none}#uzay-network{position:absolute;left:50%;top:27%;transform:translateX(-50%);padding:8px 14px;background:#863b31;border-radius:10px;font-size:12px}
#uzay-telemetry{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);display:flex;gap:22px;align-items:center;text-align:center;pointer-events:none}#uzay-telemetry strong{font-size:30px;display:block;font-variant-numeric:tabular-nums;text-shadow:0 2px 10px #000}#uzay-telemetry small{font-size:9px;letter-spacing:.16em}.uzay-charge{width:4px;height:46px;background:#fff2;border-radius:3px;position:relative;margin:0 6px}.uzay-charge i{position:absolute;bottom:0;width:100%;height:100%;background:#f5c26b;border-radius:3px}.uzay-charge span{position:absolute;top:52px;left:-13px;font-size:8px}
.uzay-joystick{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));width:126px;height:126px;border-radius:50%;border:1px solid #e3c99099;background:radial-gradient(circle,#ffffff12,#09222c66 72%);box-shadow:inset 0 0 0 6px #ffffff0b;touch-action:none;user-select:none;cursor:grab}.uzay-joystick span{position:absolute;width:46px;height:46px;left:calc(50% - 23px);top:calc(50% - 23px);border:1px solid #f8e6b7;border-radius:50%;background:radial-gradient(circle at 34% 28%,#fff0b7,#bb873b);box-shadow:0 6px 14px #0006;pointer-events:none}.uzay-joystick small{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:9px;letter-spacing:.04em;color:#d3e4dc;pointer-events:none}#uzay-left{left:max(25px,env(safe-area-inset-left))}#uzay-right{right:max(25px,env(safe-area-inset-right))}#uzay-page #uzay-boost{position:absolute;right:max(171px,calc(env(safe-area-inset-right) + 144px));bottom:30px;width:67px;height:67px;border-radius:50%;font-size:10px;padding:6px;background:#102d39b8;touch-action:none;user-select:none}#uzay-boost[aria-pressed=true]{background:#c18a32!important;color:#13262c}#uzay-keyhint{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;color:#bdd3c8;white-space:nowrap;pointer-events:none}
#uzay-dialog{border:1px solid #d2aa5f;border-radius:22px;background:#14372e;color:#f8f1dc;width:min(620px,92vw);max-height:90dvh;padding:25px;overflow:auto}#uzay-dialog::backdrop{background:#071a23ad;backdrop-filter:blur(5px)}#uzay-dialog p{line-height:1.6;color:#d1e1d7}#uzay-close{position:absolute;right:10px;top:10px;padding:5px 10px!important}#uzay-dialog h2{margin-top:0;padding-right:25px}#uzay-dialog table{width:100%;border-collapse:collapse;margin:16px 0}#uzay-dialog th,#uzay-dialog td{text-align:left;padding:10px;border-bottom:1px solid #ffffff28}#uzay-dialog-body>button{margin:5px}#uzay-toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);padding:12px 18px;background:#183d31;border:1px solid #d3b265;border-radius:13px;z-index:100200;max-width:85vw}.uzay-confetti{position:fixed;top:-15px;width:8px;height:14px;pointer-events:none;z-index:100210;animation:uzay-party 2.6s ease-in forwards}@keyframes uzay-party{to{transform:translate(35px,105vh) rotate(560deg);opacity:0}}
@media(max-height:520px) and (orientation:landscape){#uzay-header{height:44px;padding:5px 10px}#uzay-header h1{font-size:14px}#uzay-header button{padding:5px 8px;font-size:10px}#uzay-game{height:calc(100dvh - 44px)}#uzay-hud{left:10px;top:9px;gap:5px}#uzay-hud>div{padding:5px 8px}#uzay-hud strong{font-size:16px}#uzay-hud small{font-size:8px}#uzay-lap{font-size:9px}#uzay-top-actions{right:10px;top:9px}#uzay-top-actions button{padding:5px 7px;font-size:9px}#uzay-ranks{left:10px;top:79px;font-size:9px}#uzay-ranks li{padding:3px 6px}#uzay-map{right:10px;top:46px;width:75px;height:75px}#uzay-target{top:9px}#uzay-arrow{font-size:23px}#uzay-target b{font-size:10px}#uzay-target small{font-size:9px}.uzay-joystick{width:100px;height:100px;bottom:max(24px,env(safe-area-inset-bottom))}.uzay-joystick span{width:40px;height:40px;left:calc(50% - 20px);top:calc(50% - 20px)}#uzay-left{left:max(22px,env(safe-area-inset-left))}#uzay-right{right:max(22px,env(safe-area-inset-right))}#uzay-page #uzay-boost{width:53px;height:53px;right:max(139px,calc(env(safe-area-inset-right) + 117px));bottom:25px;font-size:9px}#uzay-telemetry{bottom:31px;gap:15px}#uzay-telemetry strong{font-size:24px}#uzay-keyhint{display:none}.uzay-intro{left:5%;top:18%}.uzay-intro h2{font-size:29px}.uzay-intro p,.uzay-intro span{display:none}#uzay-page .g-orta-alan{gap:10px;flex-wrap:nowrap}#uzay-page .g-alan{max-width:26%}#uzay-page .classic-select{font-size:11px;padding:8px;max-width:100%}#uzay-page .g-alt button{font-size:11px;padding:8px 10px}#uzay-lobby{margin:12px auto;padding:14px;max-width:88vw}#uzay-lobby h2{font-size:19px;margin:3px 0}#uzay-settings{margin:8px 0}#uzay-people{margin:10px 0}.uzay-person{padding:7px;font-size:12px}}
@media(max-width:600px) and (orientation:portrait){.uzay-intro{top:20%}#uzay-page .g-orta-alan{padding-top:19vh}#uzay-page #giris .g-sag h1{font-size:16px}#uzay-page #giris .g-btn{font-size:12px;padding:8px}}
@media(prefers-reduced-motion:reduce){.uzay-confetti{display:none}}
/* Keep setup fields outside a clipped scroll box on short phone screens. */
#uzay-page .g-sag h1{margin:0;font-size:inherit}
@media(max-height:520px) and (orientation:landscape){#uzay-page .g-top{align-items:center}#uzay-page .g-sag{font-size:14px}#uzay-page .g-sag h1{white-space:nowrap}#uzay-page .g-orta-alan{padding-top:20px;min-height:80px;overflow:visible;flex-shrink:1}#uzay-page .g-alan label{font-size:10px;margin-bottom:3px}.uzay-intro{top:29%;}.uzay-intro small{font-size:9px}.uzay-intro h2{font-size:22px;margin:3px 0}#uzay-page .g-top>.kk-tam-ekran{padding:5px 8px;font-size:10px}}

/* Independent combat cockpit: five pointers, no overlap on a 568px phone. */
#uzay-page{background:#090b1e}#uzay-game{background:#090b1e}#uzay-vignette{background:radial-gradient(ellipse,transparent 45%,#09061f80)}#uzay-page #uzay-fire,#uzay-page #uzay-net,#uzay-page #uzay-boost{width:67px;height:67px;bottom:30px;touch-action:none;user-select:none;-webkit-touch-callout:none}#uzay-page #uzay-fire{position:absolute;right:171px;border-radius:50%;background:#342447e0;font-size:11px;padding:5px}#uzay-page #uzay-boost{right:auto;left:50%;transform:translateX(-50%)}#uzay-page #uzay-fire[aria-pressed=true]{background:#7450a5;box-shadow:0 0 25px #a879ed70}#uzay-status{position:absolute;left:50%;top:87px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;font-size:11px;text-shadow:0 1px 5px #000}#uzay-status>i{width:95px;height:4px;border-radius:5px;background:#d3335544;overflow:hidden}#uzay-health-bar{display:block;height:100%;width:100%;background:linear-gradient(90deg,#ffb44d,#42ff99)}#uzay-storm{color:#ffbc81;white-space:nowrap;background:#151629ac;border-radius:5px;padding:4px}#uzay-telemetry{bottom:112px}#uzay-net>small{width:120px}#uzay-dialog table{font-size:13px}#uzay-dialog th,#uzay-dialog td{padding:8px 5px}#uzay-lap{display:none}
@media(max-height:520px) and (orientation:landscape){#uzay-page #uzay-net{left:max(139px,calc(env(safe-area-inset-left) + 117px))}#uzay-page #uzay-fire{right:max(139px,calc(env(safe-area-inset-right) + 117px))}#uzay-page #uzay-fire,#uzay-page #uzay-net,#uzay-page #uzay-boost{width:53px;height:53px;bottom:25px;font-size:9px}#uzay-telemetry{bottom:91px;gap:12px}#uzay-telemetry strong{font-size:18px}#uzay-status{top:64px;font-size:10px}#uzay-storm{font-size:9px}#uzay-net>small{width:110px}#uzay-page #uzay-net>b{font-size:8px}#uzay-dialog table{font-size:11px}#uzay-dialog th,#uzay-dialog td{padding:6px 4px}}
/* Readouts sit beside Turbo, not over the craft/reticle. Charge stays above Turbo. */
#uzay-telemetry{left:auto;right:calc(50% + 43px);bottom:43px;transform:none;gap:10px}#uzay-telemetry strong{font-size:22px}
#uzay-telemetry .uzay-charge{position:absolute;right:-48px;bottom:72px;margin:0}
@media(max-height:520px) and (orientation:landscape){#uzay-telemetry{right:calc(50% + 35px);bottom:34px;gap:7px}#uzay-telemetry strong{font-size:18px}#uzay-telemetry small{font-size:8px}#uzay-telemetry .uzay-charge{right:-39px;bottom:57px}}
@media(max-width:600px) and (orientation:landscape){#uzay-telemetry{gap:5px}#uzay-telemetry strong{font-size:13px}#uzay-telemetry small{font-size:6px;letter-spacing:.02em}}
/* Shared dimensions keep turbo directly above fire in every control layout. */
#uzay-page{--uzay-action-size:67px;--uzay-action-right:max(171px,calc(env(safe-area-inset-right) + 144px));--uzay-action-bottom:30px;--uzay-action-gap:10px}
#uzay-page #uzay-fire,#uzay-page #uzay-boost{left:auto;right:var(--uzay-action-right);transform:none;width:var(--uzay-action-size);height:var(--uzay-action-size)}
#uzay-page #uzay-fire{bottom:var(--uzay-action-bottom)}
#uzay-page #uzay-boost{bottom:calc(var(--uzay-action-bottom) + var(--uzay-action-size) + var(--uzay-action-gap))}
#uzay-controls>.uzay-charge{position:absolute;right:calc(var(--uzay-action-right) - 12px);bottom:calc(var(--uzay-action-bottom) + var(--uzay-action-size) + var(--uzay-action-gap) + 10px);margin:0;pointer-events:none}
#uzay-controls>.uzay-charge span{display:none}
#uzay-status{left:67%;top:18px}
@media(max-height:520px) and (orientation:landscape){#uzay-page{--uzay-action-size:53px;--uzay-action-right:max(139px,calc(env(safe-area-inset-right) + 117px));--uzay-action-bottom:25px}#uzay-status{top:12px}}
@media(max-width:950px){#uzay-status{left:68%;top:44px}}
/* Forward beam projection, not a screen-centre decoration. */
#uzay-reticle{width:30px;height:30px;border:1px solid #8effce88;box-shadow:0 0 0 1px #0008,inset 0 0 12px #061b3155}
#uzay-reticle:before,#uzay-reticle:after{content:'';position:absolute;background:#b8ffda;box-shadow:0 0 4px #032b22}
#uzay-reticle:before{left:14px;top:-5px;width:1px;height:40px}#uzay-reticle:after{left:-5px;top:14px;width:40px;height:1px}
#uzay-reticle i{left:13px;top:13px;width:3px;height:3px;background:#fff}
/* Combat credit stays next to the pilot names, outside the aiming area. */
#uzay-ranks .uzay-bonus{flex-shrink:0;margin-left:4px;color:#f7d782;font-size:10px;font-variant-numeric:tabular-nums}
#uzay-ranks b{min-width:0;flex:1}
#uzay-dialog td:nth-child(2){overflow-wrap:anywhere}
#uzay-dialog td:nth-child(3){font-variant-numeric:tabular-nums}
@media(max-width:600px){#uzay-dialog table{font-size:10px}#uzay-dialog th,#uzay-dialog td{padding:6px 3px}}
/* Portrait stacks actions above their pad; three fingers stay independent. */
@media(max-width:600px) and (orientation:portrait){
 #uzay-page #uzay-net{left:max(25px,env(safe-area-inset-left));bottom:170px;transform:none}
 #uzay-page #uzay-fire,#uzay-page #uzay-boost{right:max(25px,env(safe-area-inset-right));left:auto;transform:none}
 #uzay-page #uzay-fire{bottom:170px}
 #uzay-page #uzay-boost{bottom:247px}
 #uzay-telemetry{left:50%;right:auto;bottom:181px;transform:translateX(-50%);gap:10px}
 #uzay-telemetry strong{font-size:20px}
 #uzay-controls>.uzay-charge{right:13px;bottom:257px}
}
