/* Celular do jogador: moldura de smartphone dentro do #menuBox; em paisagem baixa o aparelho deita para caber na tela. */
#menuBox:has(.phone-shell){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;width:auto!important;max-width:none!important;overflow:visible!important;display:flex;justify-content:center}
.phone-shell{--ph-bg:#0f1c26;--ph-screen:#172b38;--ph-ink:#f1e6cc;--ph-soft:#9fb7b7;--ph-gold:#eac17c;position:relative;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 28px);display:flex;flex-direction:column;background:var(--ph-bg);border:3px solid #2f4752;border-radius:34px;padding:12px 12px 10px;box-shadow:0 0 0 2px #0a131a,0 24px 70px #000a;color:var(--ph-ink);font-family:system-ui,sans-serif}
.phone-status{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 14px 8px;font:700 12px system-ui;color:var(--ph-soft)}
.phone-notch{width:70px;height:16px;border-radius:10px;background:#050b10}
.phone-head{display:flex;align-items:center;gap:8px;padding:0 4px 8px}
.phone-head h2{margin:0!important;font:750 19px/1.2 system-ui!important;color:var(--ph-ink)}
.phone-shell .btn.phone-back{width:auto;min-height:40px;margin:0;padding:6px 12px;font-size:12px}
.phone-screen{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:linear-gradient(170deg,#1d3a48,var(--ph-screen) 45%,#121f29);border-radius:22px;padding:12px}
.phone-screen h3{margin:12px 2px 6px;font:800 11px system-ui;letter-spacing:.08em;text-transform:uppercase;color:var(--ph-gold)}
.phone-screen p{margin:4px 2px 10px;font-size:13px;line-height:1.4;color:#dde6e2}
.phone-screen .btn{width:100%;margin:0 0 8px;min-height:44px}
.phone-screen .row{display:flex;gap:8px;flex-wrap:wrap}.phone-screen .row .btn{flex:1 1 140px}
.phone-greet{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0 14px}
.phone-greet b{font:800 16px system-ui}.phone-greet span{font-size:12px;color:var(--ph-soft)}
.phone-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 6px}
.phone-app{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:76px;padding:4px 2px;border:0;background:transparent;color:var(--ph-ink);font:700 11px/1.15 system-ui;text-align:center;cursor:pointer;touch-action:manipulation}
.phone-app i,.phone-row i{display:flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;border-radius:14px;background:linear-gradient(150deg,#2f6a73,#1d4450);border:1px solid #6d9a98;color:#f6e3b8;font-style:normal}
.phone-app:nth-child(4n+2) i{background:linear-gradient(150deg,#8a5a3c,#5c3a2a)}.phone-app:nth-child(4n+3) i{background:linear-gradient(150deg,#56607e,#363e58)}.phone-app:nth-child(4n) i{background:linear-gradient(150deg,#5f7a46,#3c5030)}
.phone-app .icon,.phone-row .icon{width:26px;height:26px}
.phone-app:active i,.phone-row:active{filter:brightness(1.25)}
.phone-app span{max-width:78px;overflow-wrap:anywhere}
.phone-letter{font:800 15px system-ui}
.phone-list{display:flex;flex-direction:column;gap:6px}
.phone-row{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:6px 8px;border:1px solid #33515c;border-radius:14px;background:#10222cd9;color:var(--ph-ink);text-align:left;cursor:pointer;touch-action:manipulation}
.phone-row.static{cursor:default}.phone-row i{width:40px;height:40px;border-radius:12px}
.phone-row span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.phone-row b{font:750 13px system-ui}.phone-row small{font-size:11.5px;color:var(--ph-soft);line-height:1.3}
.phone-row .btn.small{width:auto;flex:none;margin:0;min-height:40px;padding:6px 10px;font-size:11px}
.phone-card{display:flex;flex-direction:column;gap:3px;margin:0 0 8px;padding:10px 12px;border-radius:14px;background:#0d1b23;border:1px solid #33515c}
.phone-card small{color:var(--ph-soft);font-size:11.5px}.phone-card b{font:800 15px system-ui}.phone-balance b{font-size:24px;color:var(--ph-gold)}
.phone-note{color:var(--ph-soft)!important;font-size:12px!important}
.phone-home{display:flex;justify-content:center;padding-top:8px}
.phone-shell .btn.phone-close{width:60%;min-height:40px;margin:0;border-radius:20px;font-size:12px}
/* Botão do HUD: no computador fica na coluna de botões; no celular, abaixo do mapa. */
#phoneButton{display:none}
.mobile-play #phoneButton{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;position:fixed;z-index:8;top:calc(var(--edge-top) + 56px);right:calc(var(--edge-right) + 56px);width:48px;height:48px;padding:3px;border:1px solid #adc8c8;border-radius:14px;background:#254554df;color:#f5e8c5;font:800 7px/1 system-ui;touch-action:manipulation}
.mobile-play #phoneButton .icon{width:20px;height:20px}
.mobile-play.ui-open #phoneButton,.mobile-play.map-mode #phoneButton{display:none}
/* No computador o botão fica acima da coluna, sem empurrar os botões da polícia sobre o bloco de ação. */
#btnsTop #btnPhone{position:absolute;top:-44px;right:0}
@media(max-height:500px) and (min-width:521px){#btnsTop #btnPhone{position:static}}
@media(orientation:landscape) and (max-height:520px){
 .phone-shell{width:min(640px,calc(100vw - 20px));max-height:calc(100dvh - 12px);border-radius:26px;padding:8px 10px}
 .phone-status{padding:0 12px 4px}.phone-greet{flex-direction:row;justify-content:space-between;padding:0 4px 8px}
 .phone-grid{grid-template-columns:repeat(6,1fr);gap:6px 4px}.phone-app{min-height:68px}.phone-app i{width:44px;height:44px}
 .phone-screen{padding:8px 10px}.phone-home{padding-top:5px}
}
