* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: 'Rubik', Arial, sans-serif; color: #fff; user-select: none; }
#game canvas { display: block; }
.hidden { display: none !important; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#topRight { position: absolute; top: 18px; right: 24px; text-align: right; text-shadow: 2px 2px 0 #000, 0 0 6px #000; }
#clock { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 30px; letter-spacing: 2px; }
#weapon { font-size: 16px; font-weight: 600; margin-top: 2px; color: #e9f5ff; }
#ammo { color: #ffd23f; }
#money { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 44px; color: #7cf29a; letter-spacing: 1px; line-height: 1; margin-top: 4px; }
#money.flash { color: #fff; }
#stars { font-size: 30px; letter-spacing: 3px; margin-top: 2px; }
#stars span { color: rgba(255,255,255,0.18); }
#stars span.on { color: #ffd23f; }
#stars.blink span.on { animation: blink 0.5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

#minimapWrap { position: absolute; left: 24px; bottom: 22px; width: 220px; }
#minimap { width: 220px; height: 220px; border-radius: 50%; border: 4px solid rgba(0,0,0,0.75); box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 6px 18px rgba(0,0,0,0.5); background: #234; }
#bars { margin-top: 8px; display: flex; gap: 6px; }
.bar { flex: 1; height: 10px; background: rgba(0,0,0,0.6); border: 2px solid rgba(0,0,0,0.8); border-radius: 3px; overflow: hidden; }
.bar div { height: 100%; width: 100%; transition: width 0.15s; }
.bar.hp div { background: linear-gradient(#5fe07a, #2a9d46); }
.bar.armor div { background: linear-gradient(#7ab8ff, #2f6fd6); }
.bar.small { width: 120px; height: 7px; margin: 6px auto 0; flex: none; }
.bar.small div { background: linear-gradient(#ffd23f, #f4a20c); }

#area { position: absolute; right: 30px; bottom: 120px; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 40px; letter-spacing: 2px; color: #fff; text-shadow: 3px 3px 0 #0b3d2e, 0 0 10px #000; opacity: 0; transition: opacity 0.6s; }
#area.show { opacity: 1; }

#speedo { position: absolute; right: 30px; bottom: 26px; text-align: center; text-shadow: 2px 2px 0 #000; }
#speedVal { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 64px; line-height: 0.9; }
#speedo .unit { font-size: 14px; font-weight: 600; opacity: 0.85; }

#radio { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-family: 'Bebas Neue', Impact, sans-serif; font-size: 30px; color: #ffd23f; text-shadow: 2px 2px 0 #000; opacity: 0; transition: opacity 0.5s; }
#radio.show { opacity: 1; }

#hint { position: absolute; left: 24px; top: 22px; max-width: 360px; background: rgba(0,0,0,0.72); border-left: 4px solid #ffd23f; padding: 10px 14px; font-size: 15px; line-height: 1.4; border-radius: 3px; opacity: 0; transition: opacity 0.3s; }
#hint.show { opacity: 1; }
#hint b { color: #ffd23f; }

#objective { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); font-size: 20px; font-weight: 600; text-align: center; max-width: 70%; text-shadow: 2px 2px 0 #000, 0 0 8px #000; }
#objective em { color: #ffd23f; font-style: normal; }
#timer { position: absolute; right: 24px; top: 190px; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 38px; text-shadow: 2px 2px 0 #000; }
#timer.low { color: #ff5a5a; }

#bigMsg { position: absolute; top: 30%; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity 0.4s; }
#bigMsg.show { opacity: 1; }
#bigTitle { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 78px; letter-spacing: 3px; color: #ffd23f; text-shadow: 4px 4px 0 #000, 0 0 20px rgba(0,0,0,0.7); }
#bigSub { font-size: 24px; font-weight: 600; text-shadow: 2px 2px 0 #000; }

#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: none; --gap: 8px; }
#crosshair.on { display: block; }
#crosshair i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #000; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; border: 2px solid rgba(255,255,255,0.85); border-radius: 50%; left: calc(-1 * var(--gap)); top: calc(-1 * var(--gap)); width: calc(2 * var(--gap)); height: calc(2 * var(--gap)); box-sizing: border-box; filter: drop-shadow(0 0 1px #000); transition: width .08s, height .08s, left .08s, top .08s; }
#crosshair::after { display: none; }
#crosshair.lock i { background: #ff3b3b; }
#crosshair.lock::before { border-color: rgba(255,60,60,0.95); }
#crosshair.hit i { background: #ffd23f; }
#hitmark { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; pointer-events: none; }
#hitmark::before, #hitmark::after { content: ''; position: absolute; left: 12px; top: 0; width: 2px; height: 26px; background: #fff; box-shadow: 0 0 2px #000; }
#hitmark::before { transform: rotate(45deg); } #hitmark::after { transform: rotate(-45deg); }
#hitmark.show { animation: hitm .25s ease-out; }
#hitmark.kill::before, #hitmark.kill::after { background: #ff3030; }
@keyframes hitm { 0% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(0.9); } }
#scope { position: absolute; inset: 0; display: none; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 34vh, #000 34.3vh); }
#scope.show { display: block; }
#scope::before, #scope::after { content: ''; position: absolute; background: rgba(0,0,0,0.85); }
#scope::before { left: 50%; top: 16vh; bottom: 16vh; width: 2px; margin-left: -1px; }
#scope::after { top: 50%; left: calc(50% - 34vh); right: calc(50% - 34vh); height: 2px; margin-top: -1px; }
#wheel { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; background: radial-gradient(circle, rgba(10,16,24,0.15) 0 22%, rgba(10,16,24,0.78) 23% 64%, rgba(10,16,24,0) 65%); opacity: 0; transform: scale(0.9); transition: opacity .12s, transform .12s; pointer-events: none; }
#wheel.show { opacity: 1; transform: scale(1); }
.wslot { position: absolute; width: 112px; height: 62px; margin: -31px 0 0 -56px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.2; }
.wslot b { font-weight: 600; } .wslot span { color: #ffd23f; font-size: 12px; }
.wslot.sel { border-color: #ffd23f; background: rgba(255,210,63,0.22); transform: scale(1.08); }
.wslot.empty { opacity: 0.35; }
.wcenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.wcenter .wn { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 30px; letter-spacing: 2px; color: #ffd23f; }
.wcenter .wa { font-size: 13px; opacity: 0.8; }

#damage { position: absolute; inset: 0; box-shadow: inset 0 0 160px rgba(220,0,0,0.9); opacity: 0; transition: opacity 0.25s; }

/* ---------- Full map ---------- */
#fullmap { position: fixed; inset: 0; background: rgba(5,10,20,0.88); display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
#bigmap { width: min(80vh, 90vw); height: min(80vh, 90vw); border: 4px solid #000; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.legend { margin-top: 12px; display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid #000; }

/* ---------- Menus ---------- */
#menu, #pause { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, rgba(10,60,80,0.55), rgba(0,0,0,0.88)); }
#pause { background: rgba(0,0,0,0.55); cursor: pointer; }
.menuBox { background: rgba(8,16,24,0.88); border: 2px solid rgba(255,210,63,0.5); border-radius: 10px; padding: 34px 44px; max-width: 640px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.menuBox.small { padding: 24px 40px; }
.menuBox h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 96px; letter-spacing: 6px; line-height: 0.9; color: #2ec4b6; text-shadow: 5px 5px 0 #0b3d2e; }
.menuBox h1 span { color: #ffd23f; margin-left: 12px; }
.menuBox h2 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 54px; letter-spacing: 4px; color: #ffd23f; }
.tag { font-size: 18px; opacity: 0.85; margin: 6px 0 20px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; text-align: left; font-size: 15px; margin-bottom: 18px; }
.controls b { display: inline-block; min-width: 108px; color: #ffd23f; }
.tip { font-size: 14px; opacity: 0.8; margin-bottom: 20px; }
#playBtn { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 36px; letter-spacing: 4px; padding: 10px 56px; background: #ffd23f; color: #0b1a22; border: none; border-radius: 6px; cursor: pointer; box-shadow: 0 5px 0 #b38c12; transition: transform 0.1s; }
#playBtn:hover { transform: translateY(-2px); background: #ffe070; }
#playBtn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b38c12; }
#loadErr { margin-top: 16px; color: #ff6b6b; }

#deathScreen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(60,0,0,0.35); pointer-events: none; animation: fadeIn 0.8s; }
#deathText { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 120px; letter-spacing: 6px; color: #e63946; text-shadow: 5px 5px 0 #000; }
#deathText.busted { color: #3a86ff; }
#deathSub { font-size: 22px; font-weight: 600; text-shadow: 2px 2px 0 #000; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Qualidade / carregamento ---------- */
.quality { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 4px 0 14px; font-size: 15px; }
.quality span { opacity: 0.85; margin-right: 4px; }
.quality button { font-family: 'Rubik', Arial, sans-serif; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 5px; border: 2px solid rgba(255,210,63,0.5); background: transparent; color: #fff; cursor: pointer; }
.quality button.on { background: #ffd23f; color: #0b1a22; border-color: #ffd23f; }
.quality button:hover { border-color: #ffd23f; }
.tip.small { font-size: 12px; margin: 0; }
#loading { margin-top: 14px; font-size: 14px; opacity: 0.8; }
#playBtn:disabled { opacity: 0.5; cursor: wait; }

/* ---------- Cutscenes ---------- */
#hud.cine > * { opacity: 0 !important; transition: opacity 0.4s; }
#cine { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#cine .cbar { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 0.7s ease; }
#cine .cbar.top { top: 0; } #cine .cbar.bottom { bottom: 0; }
#cine.bars .cbar { height: 11vh; }
#cineTitle { position: absolute; left: 0; right: 0; top: 34%; text-align: center; opacity: 0; transition: opacity 1s; }
#cineTitle.show { opacity: 1; }
#cineT { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 110px; letter-spacing: 8px; color: #2ec4b6; text-shadow: 5px 5px 0 #0b3d2e, 0 0 30px rgba(0,0,0,0.6); line-height: 1; }
#cineS { font-size: 24px; font-weight: 600; text-shadow: 2px 2px 0 #000, 0 0 12px #000; margin-top: 8px; }
#sub { position: absolute; left: 50%; bottom: calc(11vh + 26px); transform: translateX(-50%); width: min(820px, 86vw); text-align: center; opacity: 0; transition: opacity 0.25s; }
#sub.show { opacity: 1; }
#subWho { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
#subText { display: inline-block; font-size: 22px; font-weight: 600; line-height: 1.35; background: rgba(0,0,0,0.55); padding: 8px 16px; border-radius: 6px; text-shadow: 1px 1px 0 #000; min-height: 1.35em; }
#cineSkip { position: absolute; right: 22px; bottom: calc(11vh - 34px); font-size: 13px; color: rgba(255,255,255,0.75); opacity: 0; transition: opacity 0.5s; }
#cine.bars #cineSkip { opacity: 1; }
#cineSkip b { color: #ffd23f; }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 6; }
#menu, #pause { z-index: 10; } #deathScreen { z-index: 7; }

/* ---------- Multiplayer ---------- */
.mp { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 2px 0 4px; font-size: 14px; }
.mp span { opacity: 0.85; }
.mp input { width: 150px; padding: 6px 8px; border-radius: 5px; border: 2px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); color: #fff; font: 14px Rubik, Arial; user-select: text; }
.mp button { font: 600 14px Rubik, Arial; padding: 6px 12px; border-radius: 5px; border: 2px solid #2ec4b6; background: transparent; color: #fff; cursor: pointer; }
.mp button:hover { background: rgba(46,196,182,0.25); }
#mpStatus { font-size: 12px; opacity: 0.85; margin-bottom: 10px; min-height: 15px; }
#nametags { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.nametag { position: absolute; left: 0; top: 0; font: 600 13px Rubik, Arial; color: #fff; text-shadow: 1px 1px 0 #000, 0 0 4px #000; white-space: nowrap; display: none; }
#killfeed { position: absolute; right: 24px; top: 230px; text-align: right; font-size: 14px; font-weight: 600; text-shadow: 1px 1px 0 #000; }
#killfeed div { margin-top: 3px; background: rgba(0,0,0,0.45); padding: 3px 8px; border-radius: 4px; display: inline-block; clear: both; float: right; }
#online { position: absolute; left: 24px; top: 8px; font-size: 13px; font-weight: 600; color: #9fd8ff; text-shadow: 1px 1px 0 #000; display: none; margin-top: 18px; }
#chat { position: absolute; left: 24px; bottom: 290px; width: 380px; pointer-events: none; }
#chatLog div { font-size: 14px; text-shadow: 1px 1px 0 #000, 0 0 3px #000; margin-top: 2px; }
#chatInput { display: none; width: 100%; margin-top: 6px; padding: 6px 8px; border-radius: 4px; border: 2px solid #ffd23f; background: rgba(0,0,0,0.7); color: #fff; font: 14px Rubik, Arial; pointer-events: auto; user-select: text; }
#chat.open #chatInput { display: block; }
#chat.open #chatLog div { animation: none !important; opacity: 1 !important; }
@keyframes chatFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Menus de lojas / imóveis ---------- */
#shopMenu { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); width: 400px; max-height: 76vh; display: flex; flex-direction: column; background: rgba(8,14,22,0.92); border: 2px solid rgba(255,210,63,0.6); border-radius: 8px; pointer-events: auto; z-index: 8; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
#shopMenu.hidden { display: none; }
.smHead { position: relative; padding: 12px 16px 8px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.smTitle { font: 400 30px 'Bebas Neue', Rubik, Arial; color: #ffd23f; letter-spacing: 1px; padding-right: 30px; }
.smSub { font-size: 13px; opacity: 0.85; }
.smX { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12); color: #fff; font-size: 16px; cursor: pointer; }
.smList { overflow-y: auto; padding: 6px; }
.smItem { padding: 10px 12px; border-radius: 5px; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 15px; }
.smItem.sel { background: rgba(255,210,63,0.22); outline: 1px solid rgba(255,210,63,0.6); }
.smItem.off { opacity: 0.4; cursor: default; }
.smPrice { color: #7cf29a; font-weight: 600; }
.smDesc { width: 100%; font-size: 12px; opacity: 0.7; }
.smFoot { padding: 8px 14px; font-size: 11px; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.1); }
#ifade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 9; transition: opacity 0.3s; }
#vehHud { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); background: rgba(0,0,0,0.6); padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 600; display: none; white-space: nowrap; }
#newGameBtn, .pauseBtn { margin-top: 10px; font: 600 13px Rubik, Arial; padding: 7px 14px; border-radius: 5px; border: 2px solid rgba(255,255,255,0.35); background: transparent; color: #fff; cursor: pointer; }
#newGameBtn.confirm { border-color: #e63946; color: #ffb3b8; }
.touchHelp { display: none; font-size: 13px; opacity: 0.85; margin: 6px 0; }

/* ---------- Controles de toque ---------- */
#touch { display: none; }
html.mobile #touch { display: block; position: fixed; inset: 0; z-index: 4; touch-action: none; user-select: none; -webkit-user-select: none; }
html.mobile #touch.c-none, html.mobile #touch.c-menu { pointer-events: none; }
html.mobile #touch.c-none .tb, html.mobile #touch.c-menu .tb { display: none; }
#joyBase { display: none; position: absolute; left: 0; top: 0; width: 124px; height: 124px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.7); box-shadow: 0 0 12px rgba(0,0,0,0.5); pointer-events: none; z-index: 2; }
#joyKnob { position: absolute; left: 37px; top: 37px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.tb { position: absolute; display: none; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,0.42); border: 2px solid rgba(255,255,255,0.45); color: #fff; font: 600 24px Rubik, Arial; align-items: center; justify-content: center; touch-action: none; }
.tb.on { background: rgba(255,210,63,0.5); }
.tb.lit { border-color: #ffd23f; background: rgba(255,210,63,0.35); }
#touch.c-foot .t-foot, #touch.c-car .t-car, #touch.c-boat .t-boat, #touch.c-plane .t-plane, #touch.c-heli .t-heli, #touch.c-cine .t-cine { display: flex; }
.b-fire { right: 26px; bottom: 120px; width: 86px; height: 86px; font-size: 34px; }
.b-aim { right: 128px; bottom: 150px; }
.b-jump { right: 120px; bottom: 54px; }
.b-brake { right: 120px; bottom: 54px; }
.b-enter { right: 26px; bottom: 26px; width: 56px; height: 56px; font-size: 22px; }
.b-act { right: 206px; bottom: 54px; }
.b-weap { right: 212px; bottom: 140px; width: 54px; height: 54px; font-size: 20px; }
.b-reload { right: 40px; bottom: 228px; width: 50px; height: 50px; font-size: 18px; }
.b-horn { right: 206px; bottom: 54px; }
.b-up { right: 34px; bottom: 190px; }
.b-down { right: 34px; bottom: 104px; }
.b-yl { right: 200px; bottom: 54px; width: 54px; height: 54px; }
.b-yr { right: 128px; bottom: 54px; width: 54px; height: 54px; }
.b-map { left: 240px; top: 12px; width: 46px; height: 46px; font-size: 20px; }
.b-chat { left: 296px; top: 12px; width: 46px; height: 46px; font-size: 20px; }
.b-pause { left: 50%; top: 10px; margin-left: -23px; width: 46px; height: 46px; font-size: 20px; }
.b-skip { right: 24px; top: 24px; }
html.mobile #minimapWrap { transform: scale(0.72); transform-origin: left bottom; }
html.mobile #topRight { transform: scale(0.8); transform-origin: right top; }
html.mobile #shopMenu { right: 12px; width: min(420px, 60vw); max-height: 86vh; }
html.mobile .smItem { padding: 13px 12px; font-size: 16px; }
html.mobile .smFoot, html.mobile .controls { display: none; }
html.mobile .touchHelp { display: block; }
html.mobile #hint { max-width: 46vw; font-size: 14px; }
html.mobile #menu .menuBox { max-height: 96vh; overflow-y: auto; padding: 14px 22px; }
html.mobile #menu h1 { font-size: 64px; margin: 0; }
html.mobile #chat { bottom: 160px; }

/* ---------- Mira tática 360°, GPS, serviço policial, atordoante ---------- */
#tac { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; pointer-events: none; display: none; }
#navHud { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 12px; background: rgba(28,0,48,0.78); border: 2px solid #c77dff; border-radius: 10px; padding: 6px 16px 6px 12px; max-width: 420px; }
#navHud .navA { font-size: 30px; color: #e0b3ff; line-height: 1; }
#navHud div b { display: block; font-size: 15px; }
#navHud div small { font-size: 12px; opacity: 0.8; }
#dutyHud { position: absolute; left: 24px; top: 62px; display: none; background: rgba(10,30,80,0.78); border-left: 4px solid #3a86ff; padding: 5px 10px; font-size: 13px; border-radius: 3px; }
#flashbang { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 7; }
#fullmap { z-index: 5; }
.mapHelp { font-size: 12px; opacity: 0.8; margin-top: 6px; }
.mapBtns { display: none; gap: 8px; margin-top: 8px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }
.mapBtns span { padding: 8px 12px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; cursor: pointer; font-weight: 600; }
html.mobile .mapBtns { display: flex; }
html.mobile .mapHelp { display: none; }
html.mobile #bigmap { width: min(72vh, 90vw); height: min(72vh, 90vw); }
.b-tgt { right: 128px; bottom: 228px; width: 50px; height: 50px; font-size: 20px; }
.b-mode { right: 186px; bottom: 228px; width: 46px; height: 46px; font-size: 16px; }
.b-tac { left: 408px; top: 12px; width: 46px; height: 46px; font-size: 20px; }
html.mobile #navHud { top: 64px; max-width: 46vw; }

/* ---------- Apps de corrida/entrega ---------- */
#tripHud { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); display: none; min-width: 320px; max-width: 520px; background: rgba(10,12,18,0.86); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 9px 14px; pointer-events: auto; z-index: 6; text-align: center; }
#tripHud .tpTxt { font-size: 14px; }
#tripHud .tpTxt small { display: block; font-size: 12px; opacity: 0.75; margin-top: 2px; }
#tripHud .tpBtns { display: flex; gap: 8px; justify-content: center; margin-top: 7px; }
#tripHud .tpBtns span { padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,0.14); cursor: pointer; font-weight: 600; font-size: 13px; }
#tripHud .tpBtns span:first-child { background: #2a9d8f; }
html.mobile #tripHud { bottom: 12px; max-width: 52vw; }

/* ---------- iPhone / iPad (Safari) ---------- */
html, body { -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
html.mobile #hud, html.mobile #touch { left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); bottom: env(safe-area-inset-bottom, 0px); }
