/* =====================================================================================================================
   Z181 UI PRO PASS — loaded last. One language for options, buttons and item text: brass = selected / primary,
   green = owned / success, glass cards with a 1px light edge, readable type (nothing under 10px), clear hover / press / focus.
   Z182 ONBOARDING — the call-up card, the training step card on the HUD and the trial showcase.
   ===================================================================================================================== */
:root{ --sel:#e9b64c; --sel-2:#ffd98a; --sel-bg:linear-gradient(180deg,rgba(233,182,76,.26),rgba(233,182,76,.09)); --card:linear-gradient(180deg,rgba(22,29,19,.9),rgba(10,14,9,.94));
  --edge-1:rgba(255,255,255,.1); --edge-2:rgba(255,255,255,.18); --txt-2:rgba(234,242,220,.68); --txt-3:rgba(234,242,220,.48); }

/* ---------- option chips (settings, segmented choices) ---------- */
.seg{gap:6px;}
.seg-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:7px 14px;border-radius:10px;font-family:var(--hud);font-size:12.5px;font-weight:700;letter-spacing:1.2px;color:#e6ecda;
  background:rgba(255,255,255,.045);border:1px solid var(--edge-1);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s var(--ease);}
.seg-chip small{opacity:1;font-family:var(--font);font-size:10px;font-weight:600;color:var(--txt-3);margin-left:2px;letter-spacing:.3px;}
.seg-chip:hover{border-color:rgba(233,182,76,.55);background:rgba(233,182,76,.07);color:#fff;}
.seg-chip:active{transform:translateY(1px);}
.seg-chip.on{background:var(--sel-bg);border-color:var(--sel);color:#fff;box-shadow:inset 0 1px 0 rgba(255,236,190,.28),0 0 16px rgba(233,182,76,.2);}
.seg-chip.on small{color:rgba(255,226,170,.85);}
.seg-chip.on::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--sel-2);box-shadow:0 0 8px rgba(255,217,138,.9);margin-right:2px;}
/* ---------- settings rows ---------- */

@media (min-width:1280px){ #settings .settings{max-width:1180px !important;} }   /* the big controller map only when a controller is in use (it is in PHÍM TẮT too) */
/* ---------- buttons ---------- */

.btn:focus-visible{outline:2px solid var(--sel-2);outline-offset:3px;}
.btn.btn-primary{text-shadow:0 1px 0 rgba(255,240,200,.55);}
/* ---------- titles & subtitles on every dialog ---------- */
.overlay > .subtitle{font-size:12px;letter-spacing:5px;color:var(--txt-2);}
/* ---------- upgrade cards (choose a reward) ---------- */
#upcards{gap:16px !important;max-width:none !important;}
@media (min-width:760px){ #upcards{flex-wrap:nowrap !important;} }
.upcard{width:clamp(190px,19vw,240px) !important;min-height:220px;padding:22px 18px 18px !important;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;}
.upcard .ic{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,rgba(233,182,76,.28),rgba(233,182,76,.06));border:1px solid rgba(233,182,76,.35);color:var(--sel-2);}
.upcard .ic svg{width:28px;height:28px;}
.upcard .nm{font-family:var(--hud);font-size:17px !important;font-weight:800;letter-spacing:2px;color:#fff;margin-top:4px;}
.upcard .ds{font-size:13px !important;line-height:1.4;color:var(--txt-2) !important;letter-spacing:.2px;flex:1;}
.upcard .pw{font-family:var(--hud);font-size:11px;font-weight:700;letter-spacing:1px;color:#9be04a;padding:4px 10px;border-radius:999px;background:rgba(155,224,74,.1);border:1px solid rgba(155,224,74,.3);}
/* ---------- contract cards (briefing) ---------- */
.brcard{padding:18px 16px 16px !important;gap:6px;}
.brcard .nm{font-size:15px !important;letter-spacing:2px;}
.brcard .ds{font-size:12.5px !important;line-height:1.45 !important;color:var(--txt-2) !important;letter-spacing:.2px !important;}
.brcard .br-tag{font-size:9.5px !important;letter-spacing:1.6px;}

/* ---------- field manual ---------- */
.guide-row{border-radius:14px !important;background:var(--card) !important;border:1px solid var(--edge-1) !important;padding:14px 16px !important;}
.guide-row .g-ic{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;background:rgba(233,182,76,.1);border:1px solid rgba(233,182,76,.28);color:var(--sel-2);}
.guide-row .g-ic svg{width:24px !important;height:24px !important;}
.guide-row .g-tx b{font-family:var(--hud);font-size:14px !important;letter-spacing:2px !important;}
.guide-row .g-tx span{font-size:13px !important;line-height:1.5 !important;color:rgba(240,244,232,.8) !important;}
.guide-act{display:flex;gap:12px;justify-content:center;margin-top:10px;pointer-events:auto;}
/* ---------- ranking empty state ---------- */
.rk-msg{max-width:420px;margin:40px auto;padding:26px 24px;border-radius:16px;background:var(--card);border:1px dashed rgba(233,182,76,.35);font-size:14px;line-height:1.5;color:var(--txt-2);}

/* =====================================================================================================================
   Z182 ONBOARDING
   ===================================================================================================================== */
#trainInvite,#trialShow{background:radial-gradient(120% 90% at 50% 30%,rgba(10,14,8,.55),rgba(3,4,3,.94)) !important;}

@keyframes tiIn{from{opacity:0;transform:translateY(16px) scale(.985);}to{opacity:1;transform:none;}}

@keyframes tiFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-6px);}}

.tc-head{display:flex;align-items:center;gap:10px;margin-bottom:6px;}
.tc-n{font-family:var(--hud);font-size:10px;font-weight:700;letter-spacing:2.5px;color:var(--sel);}

#trainInvite kbd{display:inline-block;min-width:22px;margin:0 2px;padding:2px 7px;border-radius:6px;font-family:var(--hud);font-size:11.5px;font-weight:800;letter-spacing:1px;text-align:center;color:#1b1306;
  background:linear-gradient(180deg,#fff3cf,#e9c470);box-shadow:0 2px 0 #8a6420,0 3px 6px rgba(0,0,0,.4);}

.tc-bar{height:6px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden;} .tc-bar u{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#e3a83e,#ffe6a8);transition:width .25s var(--ease);}

/* ---------- shop item detail: stat panel + description readable at a glance ---------- */

/* =====================================================================================================================
   Z183 PHONE HUD DECLUTTER — the space above the tank is where the enemy comes from: nothing big may sit there.
   First-time notes → a small 2-line card at the right under the minimap; the radio → one line at the bottom centre;
   the objective chip → one row; the coach line above the radio; banners smaller.
   ===================================================================================================================== */
body.touch #tipCard{inset:auto !important;top:calc(max(8px,env(safe-area-inset-top)) + 168px) !important;right:calc(max(10px,env(safe-area-inset-right)) + 58px) !important;left:auto !important;bottom:auto !important;transform:none !important;width:min(280px,34vw) !important;}
body.touch #tipCard .tc-box{padding:7px 10px 7px !important;border-radius:10px;background:linear-gradient(180deg,rgba(14,19,11,.9),rgba(7,10,6,.92)) !important;}
body.touch #tipCard .tc-head{margin-bottom:2px !important;gap:7px !important;}
body.touch #tipCard .tc-ic{width:22px !important;height:22px !important;padding:3px !important;border-radius:6px !important;}
body.touch #tipCard .tc-kick,body.touch #tipCard .tc-n{display:none !important;}
body.touch #tipCard .tc-ttl{font-size:12.5px !important;letter-spacing:.06em;}
body.touch #tipCard .tc-body{font-size:10.5px !important;line-height:1.35 !important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body.touch #tipCard .tc-foot{margin-top:4px !important;justify-content:flex-end !important;}
body.touch #tipCard .tc-ok{padding:3px 10px !important;font-size:9.5px !important;}
body.touch #radio{top:auto !important;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 4px);max-width:min(420px,46vw);padding:3px 10px 3px 5px;gap:6px;font-size:11px;background:rgba(6,9,6,.7);}
body.touch #radio .rd-tag{font-size:8px;padding:1px 4px;letter-spacing:.12em;}
body.touch #radio .rd-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
body.touch #coach{bottom:calc(100vh - var(--appH,100svh) + max(14px,env(safe-area-inset-bottom)) + 34px) !important;max-width:46vw !important;font-size:11px !important;padding:5px 12px !important;}
body.touch #objChip{min-width:0 !important;max-width:42vw !important;padding:3px 9px 4px !important;}
body.touch #objChip .ob-name{font-size:10.5px !important;} body.touch #objChip .ob-bar{margin:3px 0 0 !important;height:3px !important;}
body.touch #combo{font-size:14px !important;padding:4px 12px !important;max-width:56vw !important;} body.touch #combo.long{font-size:10.5px !important;}
/* power-up timers + the "you picked up" card: the left column under the command buttons, small (they used to sit on the objective chip / the note card) */
body.touch #buffbar{left:calc(max(10px,env(safe-area-inset-left))) !important;right:auto !important;top:calc(max(8px,env(safe-area-inset-top)) + 112px) !important;transform:none !important;flex-direction:row !important;flex-wrap:wrap;align-items:center !important;justify-content:flex-start;gap:4px !important;max-width:38vw;}
body.touch #lootToast{left:calc(max(10px,env(safe-area-inset-left))) !important;right:auto !important;top:calc(max(8px,env(safe-area-inset-top)) + 140px) !important;min-width:0 !important;max-width:min(230px,30vw) !important;padding:4px 9px 4px 5px !important;gap:6px !important;transform:translateX(-8px);}
body.touch #lootToast.on{transform:none;}
body.touch #lootToast .lt-ic{width:24px !important;height:24px !important;padding:3px !important;} body.touch #lootToast.lt-gun .lt-ic{width:52px !important;}
body.touch #lootToast .lt-ds{display:none !important;} body.touch #lootToast .lt-nm{font-size:12px !important;} body.touch #lootToast .lt-nt{font-size:10px !important;margin-top:0 !important;}
@media (max-width:760px){ body.touch #objChip{left:calc(50% + 72px) !important;max-width:30vw !important;} }   /* narrow phones: clear of the weapon chip */
/* Z184 camera tuning steppers: the value sits between − and + */

/* Z189 HIT DIRECTION — a red crescent at the screen edge pointing at whoever just hit you */
#hitDir{position:fixed;inset:0;pointer-events:none;z-index:12;}
#hitDir i{position:absolute;left:50%;top:50%;width:min(46vh,340px);height:min(46vh,340px);margin:calc(min(46vh,340px)/-2) 0 0 calc(min(46vh,340px)/-2);border-radius:50%;
  transform:rotate(var(--a));border-top:clamp(5px,1vh,9px) solid rgba(255,40,24,calc(0.9*var(--k)));filter:drop-shadow(0 0 10px rgba(255,40,20,.8));
  -webkit-mask:linear-gradient(90deg,transparent 18%,#000 38%,#000 62%,transparent 82%);mask:linear-gradient(90deg,transparent 18%,#000 38%,#000 62%,transparent 82%);animation:hitDirFade 1.1s ease-out forwards;}
@keyframes hitDirFade{0%{opacity:1;scale:1.06;}100%{opacity:0;scale:1;}}
