/* ============================================================
   Cidade 3D IMG — HUD e telas
   ============================================================ */
:root{
  --accent:#ffb020;
  --accent2:#25d0ff;
  --good:#3ddc84;
  --bad:#ff4d4d;
  --ink:#eaf2ff;
  --panel:rgba(8,12,20,.72);
  --stroke:rgba(255,255,255,.14);
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; overflow:hidden; background:#05070c; color:var(--ink);
  font-family:var(--font); user-select:none; -webkit-user-select:none;
  cursor:default;
  /* no celular: nada de "puxar para atualizar", zoom por duplo toque
     nem aquele realce cinza que o Android pinta em cima de cada botão */
  overscroll-behavior:none; -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
canvas#scene{position:fixed; inset:0; width:100vw; height:100vh; display:block; touch-action:none}
.hidden{display:none !important}
button{font-family:var(--font)}

/* ------------------------- HUD ------------------------- */
#hud{position:fixed; inset:0; pointer-events:none; z-index:30}

/* [42] mira estilo COD Mobile: 62% da largura, 40% do topo */
#crosshair{
  position:absolute; left:62%; top:40%;
  transform:translate(-50%,-50%);
  width:64px; height:64px;
  filter:drop-shadow(0 0 3px rgba(0,0,0,.9));
  transition:transform .06s ease-out;
}
#crosshair.recoil{transform:translate(-50%,-50%) scale(1.28)}

/* [FPS] zoom de mira (ADS): a mira desliza para o centro da tela */
/* [FPS] ADS: a mira NÃO anda de lugar — fica no ombro. O anel só
   clareia/engrossa para sinalizar que o zoom de mira está ativo. */
#crosshair.ads .ch-ring{stroke:rgba(255,225,150,.95); stroke-width:1.7}
#crosshair.ads .ch-line{stroke:rgba(255,225,150,.85)}
#crosshair.ads .ch-dot{fill:#ffd778}
.ch-ring{fill:none; stroke:rgba(255,255,255,.55); stroke-width:1.2}
.ch-dot{fill:var(--accent)}
.ch-line{stroke:rgba(255,255,255,.9); stroke-width:2; stroke-linecap:round}
#crosshair.on-target .ch-ring{stroke:var(--bad)}
#crosshair.on-target .ch-line{stroke:var(--bad)}
#hitmarker{
  position:absolute; inset:0; opacity:0;
  background:
    linear-gradient(45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%),
    linear-gradient(-45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%);
  -webkit-mask:radial-gradient(circle,transparent 34%,#000 36%,#000 60%,transparent 62%);
          mask:radial-gradient(circle,transparent 34%,#000 36%,#000 60%,transparent 62%);
}
#hitmarker.show{animation:hm .28s ease-out}
@keyframes hm{0%{opacity:1;transform:scale(.7)}100%{opacity:0;transform:scale(1.5)}}

/* topo esquerdo */
#topleft{position:absolute; left:22px; top:18px; display:flex; flex-direction:column; gap:10px}

/* [33] corações */
#hearts{display:flex; gap:7px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.7))}
.heart{
  width:30px; height:30px;
  background:var(--bad);
  -webkit-mask:var(--heart-mask) center/contain no-repeat;
          mask:var(--heart-mask) center/contain no-repeat;
  --heart-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.1-8-10.6A4.6 4.6 0 0 1 12 7a4.6 4.6 0 0 1 8 3.4C20 15.9 12 21 12 21z'/%3E%3C/svg%3E");
  transition:transform .2s, opacity .3s;
}
.heart.empty{background:#3b4252; opacity:.5}
.heart.pulse{animation:hb .45s ease}
@keyframes hb{0%,100%{transform:scale(1)}40%{transform:scale(1.45)}}

.stat-row{display:flex; gap:8px}
.stat{
  background:var(--panel); border:1px solid var(--stroke); border-radius:10px;
  padding:6px 12px; min-width:82px; backdrop-filter:blur(8px);
  display:flex; flex-direction:column; align-items:center;
}
.stat-label{font-size:9px; letter-spacing:1.6px; opacity:.6; font-weight:700}
.stat-value{font-size:20px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1.1}
#timer-box.urgent{border-color:var(--bad); animation:urg 1s infinite}
#timer-box.urgent .stat-value{color:var(--bad)}
@keyframes urg{0%,100%{opacity:1}50%{opacity:.55}}
#timer-box.off .stat-value{color:#6d7a90; font-size:14px; padding-top:4px}

/* [10] minimapa rotativo */
#minimap-wrap{
  position:absolute; right:22px; bottom:22px; width:210px; height:210px;
}
#minimap{
  width:100%; height:100%; border-radius:50%;
  background:#0a0f18;
  box-shadow:0 8px 30px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.7);
}
#minimap-ring{
  position:absolute; inset:-4px; border-radius:50%;
  border:2px solid rgba(255,255,255,.25);
  box-shadow:inset 0 0 0 6px rgba(0,0,0,.35);
  pointer-events:none;
}
/* a rosa dos ventos orbita o radar: o JS posiciona conforme a rotação do mapa */
#compass-n{
  position:absolute; left:50%; top:0;
  transform:translate(-50%,-50%) translate(0,201px);
  font-size:11px; font-weight:900; color:var(--accent);
  text-shadow:0 0 6px #000; pointer-events:none;
}

/* objetivo */
#objective{
  position:absolute; right:22px; top:18px;
  background:var(--panel); border:1px solid var(--stroke); border-left:3px solid var(--accent);
  border-radius:10px; padding:10px 14px; backdrop-filter:blur(8px);
  display:flex; gap:10px; align-items:center; min-width:230px;
}
#objective.deliver{border-left-color:var(--good)}
#objective-icon{font-size:24px}
#objective-title{font-size:10px; letter-spacing:2px; font-weight:800; color:var(--accent)}
#objective.deliver #objective-title{color:var(--good)}
#objective-text{font-size:13px; font-weight:600}
#objective-dist{font-size:11px; opacity:.65; font-variant-numeric:tabular-nums}

/* [28] velocímetro */
#speedo{position:absolute; right:250px; bottom:24px; width:150px; height:150px}
#speedo-canvas{width:100%; height:100%; filter:drop-shadow(0 6px 18px rgba(0,0,0,.6))}
#speedo-value{
  position:absolute; left:0; right:0; top:52%; text-align:center;
  font-size:34px; font-weight:800; font-variant-numeric:tabular-nums;
  text-shadow:0 2px 10px #000; line-height:1;
}
#speedo-unit{position:absolute; left:0; right:0; top:72%; text-align:center; font-size:10px; letter-spacing:2px; opacity:.65}
#gear{
  position:absolute; left:0; right:0; top:30%; text-align:center;
  font-size:13px; font-weight:800; color:var(--accent2); letter-spacing:1px;
}

/* helicóptero */
#heli-panel{
  position:absolute; right:250px; bottom:30px;
  background:var(--panel); border:1px solid var(--stroke); border-radius:10px;
  padding:10px 14px; backdrop-filter:blur(8px); min-width:150px;
}
.heli-row{display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:11px; opacity:.75}
.heli-row b{font-size:22px; font-weight:800; opacity:1; font-variant-numeric:tabular-nums}
/* [63] linha do armamento: o número grande atrapalharia, aqui é só um rótulo */
#heli-fuel{color:#7CFC00}
.heli-arm{margin-top:4px; border-top:1px solid var(--stroke); padding-top:5px}
.heli-arm b{font-size:12px; letter-spacing:1.2px; color:var(--accent)}
#heli-warn{margin-top:6px; font-size:10px; font-weight:800; color:var(--bad); letter-spacing:1px; display:none}
#heli-panel.too-high #heli-warn{display:block}

/* prompt contextual */
#prompt{
  position:absolute; left:50%; bottom:16%; transform:translateX(-50%);
  background:var(--panel); border:1px solid var(--stroke); border-radius:999px;
  padding:9px 20px; font-size:14px; font-weight:600; backdrop-filter:blur(8px);
  white-space:nowrap;
}
#prompt kbd{
  background:var(--ink); color:#0a0f18; border-radius:5px; padding:1px 7px;
  font-weight:900; font-size:12px; margin:0 2px; font-family:var(--font);
}

/* toasts */
#toasts{
  position:absolute; left:50%; top:56%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.toast{
  font-size:22px; font-weight:900; letter-spacing:.5px;
  text-shadow:0 2px 10px rgba(0,0,0,.9);
  animation:rise 1.5s ease-out forwards;
}
.toast.good{color:var(--good)} .toast.time{color:var(--accent2)}
.toast.bad{color:var(--bad)} .toast.pts{color:var(--accent)}
@keyframes rise{
  0%{opacity:0; transform:translateY(16px) scale(.8)}
  18%{opacity:1; transform:translateY(0) scale(1.08)}
  30%{transform:scale(1)}
  100%{opacity:0; transform:translateY(-46px)}
}

/* [50] carregando objeto */
#carrying{
  position:absolute; left:50%; bottom:8%; transform:translateX(-50%);
  background:linear-gradient(90deg,rgba(255,176,32,.22),rgba(255,176,32,.06));
  border:1px solid rgba(255,176,32,.5); color:var(--accent);
  border-radius:999px; padding:7px 18px; font-size:12px; font-weight:800; letter-spacing:1.5px;
}

/* FPS + perfil gráfico */
#perfbox{
  position:absolute; left:50%; top:52px; transform:translateX(-50%);
  background:var(--panel); border:1px solid var(--stroke); border-radius:999px;
  padding:4px 14px; backdrop-filter:blur(8px);
  display:flex; gap:7px; align-items:baseline;
  font-size:12px; font-variant-numeric:tabular-nums;
}
#fps{font-weight:800; font-size:14px; color:var(--good)}
#perfbox.warn #fps{color:var(--accent)}
#perfbox.bad #fps{color:var(--bad)}
.perf-unit{font-size:9px; letter-spacing:1.4px; opacity:.5; font-weight:700}
#preset-tag{
  font-size:9px; font-weight:800; letter-spacing:1.4px; color:var(--accent2);
  border-left:1px solid var(--stroke); padding-left:8px;
}
/* [60] selo do modo Deus */
#god-tag{
  font-size:9px; font-weight:800; letter-spacing:1.4px; color:#1a1000;
  background:linear-gradient(180deg,#ffc451,var(--accent));
  border-radius:999px; padding:2px 8px;
}

/* relógio dia/noite */
#clockbox{
  position:absolute; left:50%; top:14px; transform:translateX(-50%);
  background:var(--panel); border:1px solid var(--stroke); border-radius:999px;
  padding:5px 16px; font-size:13px; font-weight:700; backdrop-filter:blur(8px);
  display:flex; gap:8px; align-items:center; font-variant-numeric:tabular-nums;
}

/* dano na tela */
#hud.hurt::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 160px 40px rgba(255,0,0,.55);
  animation:hurtflash .6s ease-out forwards;
}
@keyframes hurtflash{from{opacity:1}to{opacity:0}}

/* ------------------------- [56] CELULAR ------------------------- */
#phone{
  position:fixed; inset:0; z-index:40;
  background:rgba(3,6,12,.55); backdrop-filter:blur(4px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
}
#phone-body{
  width:330px; height:660px; background:#12161f; border-radius:42px;
  border:2px solid #2b3342; padding:12px;
  box-shadow:0 40px 90px rgba(0,0,0,.75), inset 0 0 0 6px #0a0d13;
  position:relative; display:flex; flex-direction:column;
}
#phone-notch{
  position:absolute; left:50%; top:14px; transform:translateX(-50%);
  width:110px; height:22px; background:#0a0d13; border-radius:999px; z-index:2;
}
#phone-screen{
  flex:1; background:linear-gradient(170deg,#0f1826,#0a1017);
  border-radius:32px; overflow:hidden; display:flex; flex-direction:column;
}
#phone-header{
  padding:34px 16px 10px; display:flex; align-items:center; gap:10px;
  border-bottom:1px solid rgba(255,255,255,.07); font-size:13px;
}
#phone-back{font-size:24px; cursor:pointer; opacity:0; pointer-events:none; line-height:1}
#phone-back.on{opacity:.8; pointer-events:auto}
#phone-title{flex:1; font-weight:700}
#phone-signal{font-size:10px; opacity:.5; letter-spacing:-1px}

#phone-contacts{padding:14px; display:flex; flex-direction:column; gap:10px; overflow:hidden}
.phone-hint{font-size:11px; opacity:.55; line-height:1.4}
#phone-number, #chat-input{
  width:100%; background:#0a1017; border:1px solid #2a3444; color:var(--ink);
  border-radius:10px; padding:11px 13px; font-size:15px; font-family:var(--font);
  outline:none;
}
#phone-number:focus, #chat-input:focus{border-color:var(--accent2)}
#phone-call{
  background:var(--accent2); color:#03121a; border:0; border-radius:10px;
  padding:11px; font-weight:800; letter-spacing:1px; cursor:pointer; font-size:13px;
}
.phone-sub{font-size:9px; letter-spacing:2px; opacity:.45; margin-top:6px; font-weight:800}
#phone-list{display:flex; flex-direction:column; gap:6px; overflow-y:auto}
.phone-item{
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06);
  border-radius:10px; padding:9px 12px; cursor:pointer; display:flex; gap:10px; align-items:center;
}
.phone-item:hover{background:rgba(255,255,255,.09)}
.phone-item .av{
  width:30px; height:30px; border-radius:50%; flex:0 0 auto;
  display:grid; place-items:center; font-size:11px; font-weight:800; color:#0a0f18;
}
.phone-item .nm{font-size:13px; font-weight:600}
.phone-item .nb{font-size:10px; opacity:.5; font-variant-numeric:tabular-nums}
.phone-item .tag{margin-left:auto; font-size:9px; font-weight:800; letter-spacing:1px; padding:2px 6px; border-radius:5px}
.tag.pick{background:rgba(255,176,32,.2); color:var(--accent)}
.tag.drop{background:rgba(61,220,132,.2); color:var(--good)}

#phone-chat{flex:1; display:flex; flex-direction:column; min-height:0}
#chat-who{padding:8px 16px; font-size:11px; opacity:.5; border-bottom:1px solid rgba(255,255,255,.06)}
#chat-log{flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:8px}
.bubble{
  max-width:78%; padding:9px 13px; border-radius:16px; font-size:13px; line-height:1.35;
  animation:pop .18s ease-out;
}
@keyframes pop{from{opacity:0; transform:translateY(6px)}}
.bubble.me{align-self:flex-end; background:var(--accent2); color:#03121a; border-bottom-right-radius:5px; font-weight:600}
.bubble.them{align-self:flex-start; background:#1d2735; border-bottom-left-radius:5px}
.bubble.sys{align-self:center; background:transparent; color:#7b879b; font-size:11px; font-style:italic}
.bubble.typing{color:#7b879b; font-style:italic}
#chat-input-row{display:flex; gap:8px; padding:12px; border-top:1px solid rgba(255,255,255,.07)}
#chat-send{
  background:var(--accent2); border:0; border-radius:10px; width:46px; color:#03121a;
  font-size:17px; cursor:pointer; font-weight:800;
}
/* a barrinha de baixo fecha o celular — é o gesto que a mão já conhece */
#phone-home{
  height:5px; width:120px; background:#3a4354; border-radius:99px;
  margin:10px auto 2px; cursor:pointer; flex:0 0 auto;
  transition:background .15s;
}
#phone-home:hover{background:#5a6678}
#phone-tip{font-size:11px; opacity:.5}

/* ------------------------- TELAS ------------------------- */
/* a cidade 3D continua rodando atrás da tela de abertura */
/*
 * A tela de abertura cresceu (mais teclas, o seletor de movimento na cidade e
 * o botão de voltar ao jogo) e passou a não caber em 720p. Com
 * `overflow:hidden` + centralização, o que sobrava ficava INALCANÇÁVEL: o
 * botão de iniciar simplesmente sumia embaixo da janela.
 *
 * A rolagem vem de `overflow-y:auto`, e a centralização de `margin:auto` no
 * filho em vez de `align-items:center` — centralizar pelo flex corta o topo
 * do conteúdo quando ele é mais alto que a janela, e aí o título é que some.
 */
#title-screen{
  position:fixed; inset:0; z-index:50; display:flex; align-items:flex-start; justify-content:center;
  overflow-y:auto; overflow-x:hidden;
}
#title-bg{
  position:absolute; inset:-20%;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,140,20,.34), transparent 52%),
    radial-gradient(ellipse at 80% 75%, rgba(37,140,255,.32), transparent 52%),
    linear-gradient(180deg, rgba(5,7,12,.62), rgba(5,7,12,.88));
  filter:blur(18px); animation:drift 22s ease-in-out infinite alternate;
}
@keyframes drift{to{transform:translate(4%,-3%) scale(1.12)}}
#title-content::before{
  content:''; position:absolute; inset:-40px -60px;
  background:radial-gradient(ellipse at center, rgba(5,7,12,.78), transparent 72%);
  z-index:-1;
}

#title-content{position:relative; text-align:center; padding:26px; max-width:760px; margin:auto}
#game-title{
  margin:0 0 6px; font-size:clamp(40px,7.5vw,88px); font-weight:900; letter-spacing:-3px; line-height:.92;
}
#game-title span{color:#fff}
#game-title b{
  background:linear-gradient(180deg,#ffd580,var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
#game-title em{
  font-style:normal; color:var(--accent2);
  text-shadow:0 0 40px rgba(37,208,255,.55);
}
#tagline{margin:0 0 26px; opacity:.6; font-size:15px; letter-spacing:.4px}

/* atalhos da abertura para OPÇÕES e CONTROLES */
#title-links{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:18px;
}
.menu-link{
  background:rgba(255,255,255,.05); border:1px solid var(--stroke); color:var(--ink);
  border-radius:10px; padding:11px 20px; font-size:12px; font-weight:800;
  letter-spacing:1.5px; cursor:pointer; font-family:var(--font);
  transition:background .12s, border-color .12s;
}
.menu-link:hover{background:rgba(255,255,255,.12); border-color:var(--accent2)}

kbd{
  background:#e9eef7; color:#0a0f18; border-radius:5px; padding:2px 7px;
  font-size:11px; font-weight:800; font-family:var(--font);
  box-shadow:0 2px 0 #97a1b3;
}

#timer-toggle{
  display:inline-flex; align-items:center; gap:9px; margin-bottom:22px;
  font-size:13px; opacity:.85; cursor:pointer;
}
#timer-toggle input{width:17px; height:17px; accent-color:var(--accent); cursor:pointer}

/* [13] seletor de iluminação e [61] de movimento na cidade */
#cycle-choice, #pop-choice, #qual-choice, #dist-choice, #toque-choice{margin:0 0 18px}
#vol-choice{margin:0 0 4px}
.choice-note{
  display:block; margin-top:7px; font-size:10px; opacity:.35; letter-spacing:.4px;
}
.choice-label{
  display:block; font-size:9px; letter-spacing:2px; opacity:.45;
  font-weight:800; margin-bottom:8px;
}
.choice-group{display:flex; gap:6px; justify-content:center; flex-wrap:wrap}
.choice{
  background:rgba(255,255,255,.05); border:1px solid var(--stroke); color:var(--ink);
  border-radius:8px; padding:8px 15px; font-size:11px; font-weight:700;
  letter-spacing:1px; cursor:pointer; font-family:var(--font);
  transition:background .12s, border-color .12s, color .12s;
}
.choice:hover{background:rgba(255,255,255,.11)}
.choice.active{
  background:rgba(37,208,255,.16); border-color:var(--accent2); color:var(--accent2);
}

#start-btn, #restart-btn, #resume-title-btn{
  background:linear-gradient(180deg,#ffc451,var(--accent));
  color:#1a1000; border:0; border-radius:12px;
  padding:15px 46px; font-size:17px; font-weight:900; letter-spacing:2px;
  cursor:pointer; box-shadow:0 10px 30px rgba(255,176,32,.32);
  transition:transform .12s, box-shadow .12s; display:block; margin:0 auto;
}
#start-btn:hover, #restart-btn:hover, #resume-title-btn:hover{
  transform:translateY(-2px); box-shadow:0 14px 38px rgba(255,176,32,.45);
}
/*
 * [62] Voltar ao jogo é a ação principal quando existe partida em andamento, e
 * "começar de novo" passa a ser a secundária — jogar fora o que estava
 * rolando não pode ser o botão mais chamativo da tela.
 */
#resume-title-btn{
  background:linear-gradient(180deg,#5fe0ff,var(--accent2)); color:#00212c;
  box-shadow:0 10px 30px rgba(37,208,255,.32); margin-bottom:10px;
}
#resume-title-btn:not(.hidden) ~ #start-btn{
  background:transparent; color:var(--ink); border:1px solid var(--stroke);
  box-shadow:none; padding:11px 30px; font-size:13px;
}
#start-btn:disabled{filter:grayscale(1) brightness(.6); cursor:wait; transform:none}
#reset-cfg.ghost, .ghost{
  background:transparent; color:var(--ink); border:1px solid var(--stroke);
  box-shadow:none; margin-top:10px; padding:11px 30px; font-size:13px;
  border-radius:12px; cursor:pointer; font-weight:800; letter-spacing:1.5px;
}
.ghost:hover{background:rgba(255,255,255,.09)}
#loading-note{margin-top:14px; font-size:12px; opacity:.5; height:16px}

/* as preferências ficam salvas; isso volta tudo ao padrão */
#reset-cfg{
  display:block; margin:10px auto 0; background:none; border:0;
  color:var(--ink); opacity:.4; font-size:11px; letter-spacing:.6px;
  text-decoration:underline; cursor:pointer; padding:4px;
}
#reset-cfg:hover{opacity:.8}

#over-screen{
  position:fixed; inset:0; z-index:45; display:flex; align-items:flex-start; justify-content:center;
  padding:16px; overflow-y:auto;
  background:rgba(3,6,12,.7); backdrop-filter:blur(9px);
}
#over-screen .panel{margin:auto}
.panel{
  background:var(--panel); border:1px solid var(--stroke); border-radius:20px;
  padding:40px 54px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.panel h2{margin:0 0 8px; font-size:38px; font-weight:900; letter-spacing:-1px}
#over-title.win{color:var(--good)}
.muted{opacity:.6; font-size:13px; margin:0 0 24px}
#over-stats{display:flex; gap:34px; justify-content:center; margin-bottom:28px}
#over-stats div{display:flex; flex-direction:column}
#over-stats b{font-size:34px; font-weight:900; color:var(--accent)}
#over-stats span{font-size:10px; letter-spacing:2px; opacity:.55; font-weight:700}

#fatal{
  position:fixed; inset:0; z-index:99; background:#0a0d13; color:#ff8080;
  padding:40px; overflow:auto; font-family:ui-monospace,Consolas,monospace; font-size:13px;
}
#fatal pre{white-space:pre-wrap; color:#c9d4e4}
#fatal .fatal-btn{
  display:block; margin:26px auto 0; padding:18px 34px; font-size:18px; font-weight:800;
  background:#ff5a5a; color:#0a0d13; border:0; border-radius:14px; cursor:pointer; touch-action:manipulation;
}

/* ============================================================
   BOB EM BUSCA DA AGI SAGRADA — telas da campanha
   ============================================================ */

/* ---------------------- barra do chefão ---------------------- */
#boss-bar{
  position:fixed; left:50%; top:26px; transform:translateX(-50%);
  z-index:30; width:min(620px, 76vw); text-align:center; pointer-events:none;
}
#boss-name{
  font-size:15px; font-weight:900; letter-spacing:3px; color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.9); margin-bottom:6px;
}
#boss-track{
  height:15px; border:2px solid rgba(255,255,255,.28); border-radius:999px;
  background:rgba(3,6,12,.72); overflow:hidden; box-shadow:0 6px 22px rgba(0,0,0,.55);
}
#boss-fill{
  height:100%; width:100%; border-radius:999px;
  background:linear-gradient(90deg,#ff4d4d,#ff8a3d);
  transition:width .18s ease-out;
}
/* abaixo de 1/4 de vida o chefão entra em fúria — a barra avisa */
#boss-fill.rage{background:linear-gradient(90deg,#ffb020,#ff4d4d); animation:bossPulse .5s infinite alternate}
@keyframes bossPulse{from{filter:brightness(1)}to{filter:brightness(1.7)}}
#boss-phase{
  font-size:10px; letter-spacing:2px; opacity:.75; margin-top:5px; font-weight:700;
}

/* ---------------------- cartão de fase ---------------------- */
#phase-card{
  position:fixed; left:50%; top:38%; transform:translate(-50%,-50%);
  z-index:44; text-align:center; pointer-events:none;
  animation:phaseIn .7s cubic-bezier(.16,1,.3,1);
}
@keyframes phaseIn{from{opacity:0; transform:translate(-50%,-50%) scale(.85)}to{opacity:1}}
#phase-card.out{opacity:0; transition:opacity .5s}
#phase-flag{font-size:56px; line-height:1}
#phase-title{
  font-size:34px; font-weight:900; letter-spacing:-.5px; margin-top:6px;
  text-shadow:0 4px 24px rgba(0,0,0,.9);
}
#phase-place{font-size:13px; letter-spacing:3px; opacity:.7; margin-top:4px; font-weight:700}

/* ---------------------- caixa de diálogo ---------------------- */
/*
 * A conversa toma a TELA, não um cantinho.
 *
 * Antes era uma faixa no rodapé com texto de 16px: no meio de uma briga
 * a céu aberto ela passava despercebida, e o jogador continuava tentando
 * atirar sem entender por que o Bob tinha parado. Agora o mundo escurece
 * atrás, o retrato cresce e o texto vai ao centro — fica claro, num
 * relance, que o jogo passou a palavra para alguém.
 */
#dialogue{
  --dlg-accent:#ffb020;
  position:fixed; inset:0; z-index:46;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  /* véu radial: escurece as bordas e preserva o centro da ação */
  background:
    radial-gradient(ellipse at center, rgba(3,6,12,.55) 0%, rgba(3,6,12,.88) 70%);
  backdrop-filter:blur(3px);
  gap:clamp(16px, 2.5vw, 34px);
  animation:dlgIn .22s ease-out;
}
@keyframes dlgIn{from{opacity:0}to{opacity:1}}

#dlg-portrait{
  flex:0 0 auto; width:clamp(110px, 13vw, 168px); height:clamp(110px, 13vw, 168px);
  border-radius:16px; border:3px solid var(--dlg-accent); overflow:hidden;
  background:#0a0f18; display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 4px rgba(0,0,0,.5), 0 18px 50px rgba(0,0,0,.7);
}
/* image-rendering pixelated: o retrato é voxel, tem que ficar com a
   borda dura mesmo ao escalar — suavizar mataria a leitura pixel art */
#dlg-portrait canvas{width:100%; height:100%; image-rendering:pixelated}

/* o conjunto retrato + fala, limitado para a linha não ficar longa
   demais — texto muito largo cansa a leitura em voz de diálogo */
#dlg-body{
  flex:0 1 auto; min-width:0; max-width:min(900px, 68vw);
  display:flex; flex-direction:column; justify-content:center;
}
#dlg-name{
  font-size:clamp(15px, 1.7vw, 22px); font-weight:900; letter-spacing:4px;
  margin-bottom:10px; text-shadow:0 2px 14px rgba(0,0,0,.9);
}
#dlg-text{
  font-size:clamp(20px, 2.5vw, 34px); line-height:1.42; color:#fff;
  white-space:pre-wrap; font-weight:600;
  text-shadow:0 3px 18px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.8);
  min-height:1.4em;
}
#dlg-hint{
  font-size:clamp(10px, 1vw, 13px); opacity:.75; letter-spacing:1.5px;
  margin-top:18px; color:#9fb0c8;
}
#dlg-hint kbd{
  background:rgba(255,255,255,.14); color:var(--ink);
  border:1px solid rgba(255,255,255,.28); box-shadow:none;
  border-radius:4px; padding:2px 7px; font-size:.92em; font-weight:800;
}

/* telas estreitas: o retrato sobe e tudo centraliza em coluna */
@media (max-width:640px){
  #dialogue{flex-direction:column; text-align:center}
  #dlg-body{max-width:100%; align-items:center}
}

/* ---------------------- o Plano da AGI ---------------------- */
#plan-screen{
  position:fixed; inset:0; z-index:47; display:flex; align-items:center; justify-content:center;
  background:rgba(3,6,12,.78); backdrop-filter:blur(10px);
}
.plan-panel{max-width:min(880px,94vw); max-height:92vh; overflow-y:auto; padding:34px 40px}
#plan-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px;
}
@media (max-width:720px){ #plan-grid{grid-template-columns:repeat(2,1fr)} }
.plan-item{
  border:1px solid var(--stroke); border-radius:12px; padding:14px 10px;
  background:rgba(255,255,255,.03); text-align:center; position:relative;
  transition:transform .2s;
}
.plan-item.got{
  border-color:var(--good); background:linear-gradient(180deg,rgba(61,220,132,.16),rgba(61,220,132,.04));
}
/* peça recém-conquistada pulsa uma vez: o jogador precisa VER o ganho */
.plan-item.fresh{animation:planPop .9s ease-out 2}
@keyframes planPop{0%{transform:scale(1)}35%{transform:scale(1.09)}100%{transform:scale(1)}}
.plan-icon{font-size:30px; line-height:1; filter:grayscale(1) opacity(.35)}
.plan-item.got .plan-icon{filter:none}
.plan-label{font-size:11px; font-weight:900; letter-spacing:1.5px; margin-top:8px}
.plan-item.got .plan-label{color:var(--good)}
.plan-sub{font-size:9.5px; opacity:.5; margin-top:3px; line-height:1.35}
.plan-check{
  position:absolute; top:7px; right:9px; font-size:13px; color:var(--good);
  opacity:0; transition:opacity .3s;
}
.plan-item.got .plan-check{opacity:1}
#plan-next{
  font-size:12.5px; opacity:.75; margin-bottom:20px; line-height:1.6;
  border-top:1px solid var(--stroke); padding-top:16px;
}
#plan-next b{color:var(--accent)}

/* ---------------------- marcador de portal ---------------------- */
#portal-prompt{
  position:fixed; left:50%; bottom:130px; transform:translateX(-50%);
  z-index:29; text-align:center; pointer-events:none;
  background:rgba(6,10,17,.86); border:1px solid var(--stroke);
  border-left:3px solid var(--accent); border-radius:10px; padding:10px 20px;
}
#portal-prompt .pp-title{font-size:14px; font-weight:900; letter-spacing:2px; color:var(--accent)}
#portal-prompt .pp-sub{font-size:11px; opacity:.65; margin-top:3px}
#portal-prompt kbd{
  background:rgba(255,255,255,.16); color:var(--ink);
  border:1px solid rgba(255,255,255,.3); box-shadow:none;
  border-radius:4px; padding:1px 6px; font-size:10px; font-weight:800;
}

/* ---------------------- trava do míssil teleguiado ---------------------- */
/*
 * O quadro de trava fica ONDE O INIMIGO ESTÁ na tela, não no centro: é
 * ele que diz "é NESSE que vai". Some quando nada está travado, então a
 * ausência também informa.
 */
#lock-on{
  position:fixed; z-index:12; width:100px; height:100px;
  margin:-50px 0 0 -50px; pointer-events:none;
  animation:lockIn .16s ease-out;
}
@keyframes lockIn{from{transform:scale(1.6); opacity:0}to{transform:scale(1); opacity:1}}
#lock-on svg{overflow:visible}
#lock-on path{fill:none; stroke:var(--bad); stroke-width:4; stroke-linecap:round}
#lock-on circle{fill:var(--bad)}
#lock-on.ready path{stroke:var(--accent2)}
#lock-on.ready circle{fill:var(--accent2)}
#lock-label{
  position:absolute; left:50%; top:104%; transform:translateX(-50%);
  font-size:9px; font-weight:900; letter-spacing:2px; color:var(--bad);
  text-shadow:0 2px 8px rgba(0,0,0,.9); white-space:nowrap;
}
#lock-on.ready #lock-label{color:var(--accent2)}

/* medidor de recarga, ao lado do velocímetro */
#missile-gauge{
  position:fixed; right:26px; bottom:26px; z-index:11; width:132px;
  pointer-events:none; text-align:right;
}
#mg-bar{
  height:7px; border:1px solid var(--stroke); border-radius:999px;
  background:rgba(3,6,12,.7); overflow:hidden;
}
#mg-fill{
  height:100%; width:0%; border-radius:999px;
  background:linear-gradient(90deg,#25d0ff,#7ce7ff); transition:width .1s linear;
}
#mg-fill.full{background:linear-gradient(90deg,#3ddc84,#9cffc8)}
#mg-label{
  font-size:9px; font-weight:800; letter-spacing:2px; opacity:.7; margin-top:4px;
}
#mg-label kbd{
  background:rgba(255,255,255,.14); color:var(--ink); box-shadow:none;
  border:1px solid rgba(255,255,255,.25); border-radius:3px;
  padding:0 4px; font-size:9px;
}

/* ---------------------- sliders de volume ---------------------- */
.slider-row{
  display:flex; align-items:center; gap:12px;
  margin:8px auto 0; max-width:340px;
}
.slider-row label{
  font-size:10px; font-weight:800; letter-spacing:2px; opacity:.7;
  width:64px; text-align:right;
}
.slider-row input[type=range]{
  flex:1 1 auto; -webkit-appearance:none; appearance:none;
  height:5px; border-radius:999px; background:rgba(255,255,255,.16); outline:none;
}
.slider-row input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:15px; height:15px;
  border-radius:50%; background:var(--accent); cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.6);
}
.slider-row input[type=range]::-moz-range-thumb{
  width:15px; height:15px; border:none; border-radius:50%;
  background:var(--accent); cursor:pointer;
}
.slider-val{
  font-size:10px; font-weight:800; opacity:.55; width:26px; text-align:left;
}

/* aviso sob COMEÇAR DE NOVO: o botão é destrutivo, tem que avisar */
#start-warn{
  font-size:10px; letter-spacing:1px; color:var(--bad);
  opacity:.85; margin-top:8px;
}

/* ============================================================
   TELAS DE OPÇÕES E CONTROLES
   ------------------------------------------------------------
   As duas saíram de dentro da abertura. Ficam por cima dela (z acima
   de #title-screen) porque é de lá que se chega às duas — e o ESC
   fecha o painel antes de voltar ao jogo.
   ============================================================ */
#options-screen, #keys-screen{
  position:fixed; inset:0; z-index:160; display:flex;
  align-items:flex-start; justify-content:center; padding:16px;
  overflow-y:auto; overflow-x:hidden;
  background:rgba(3,6,12,.74); backdrop-filter:blur(10px);
}
.menu-panel{
  width:min(640px,96vw); margin:auto; padding:28px 30px;
  max-height:none;
}
.menu-panel h2{font-size:26px; letter-spacing:2px; margin-bottom:14px}
.menu-actions{
  display:flex; gap:12px; align-items:center; justify-content:center;
  flex-wrap:wrap; margin-top:22px; border-top:1px solid var(--stroke); padding-top:18px;
}
.menu-actions .ghost{margin-top:0}
.menu-actions #reset-cfg, .menu-actions #keys-reset{
  margin:0; background:none; border:0; color:var(--ink); opacity:.4;
  font-size:11px; letter-spacing:.6px; text-decoration:underline;
  cursor:pointer; padding:4px; font-family:var(--font);
}
.menu-actions #reset-cfg:hover, .menu-actions #keys-reset:hover{opacity:.85}

/* ---------------------- lista de teclas ---------------------- */
#keys-note{margin-bottom:6px}
#keys-note.alerta{color:var(--bad); opacity:1}
#keys-list, #keys-touch{text-align:left}
.keys-group{
  font-size:9px; letter-spacing:2px; opacity:.45; font-weight:800;
  margin:18px 0 6px; border-bottom:1px solid var(--stroke); padding-bottom:6px;
}
.keys-row{
  display:flex; align-items:center; gap:12px; padding:4px 2px;
}
.keys-name{flex:1 1 auto; font-size:12.5px; opacity:.85; line-height:1.3}
.keys-tag{font-size:11px; opacity:.5; text-align:right; flex:0 1 auto}
.keys-bind{
  flex:0 0 auto; min-width:88px;
  background:#e9eef7; color:#0a0f18; border:0; border-radius:6px;
  padding:7px 10px; font-family:var(--font); font-size:11.5px; font-weight:800;
  letter-spacing:1px; cursor:pointer; box-shadow:0 2px 0 #97a1b3;
}
.keys-bind:hover{background:#fff}
/* tecla mudada em relação ao padrão: dá para ver o que foi mexido */
.keys-bind.trocada{background:linear-gradient(180deg,#ffd580,var(--accent))}
.keys-bind.esperando{
  background:var(--accent2); color:#03121a; box-shadow:0 2px 0 #1892b3;
  animation:urg 1s infinite;
}
/* a legenda do celular só interessa a quem está no celular */
#keys-touch{display:none}
body.toque #keys-touch{display:block}

/* ============================================================
   CONTROLES NA TELA (celular)
   ============================================================ */
#touch{position:fixed; inset:0; z-index:20; touch-action:none; user-select:none}
#tc-look{position:absolute; inset:0; touch-action:none}

/* ---------------------- analógico ---------------------- */
/*
 * A ZONA é grande e invisível; a base é só o desenho. O dedo pousa em
 * qualquer lugar do canto de baixo à esquerda e o analógico nasce ali —
 * quem joga no celular não olha para o próprio polegar.
 */
#tc-stick-zone{
  position:absolute; left:0; bottom:0;
  width:min(46%,420px); height:min(62%,340px); touch-action:none;
}
#tc-base{
  position:absolute; width:132px; height:132px; margin:-66px 0 0 -66px;
  left:calc(96px + env(safe-area-inset-left));
  top:calc(100% - 96px - env(safe-area-inset-bottom));
  border-radius:50%; border:2px solid rgba(255,255,255,.22);
  background:radial-gradient(circle, rgba(8,12,20,.45), rgba(8,12,20,.18));
  opacity:.45; transition:opacity .15s;
  box-shadow:0 6px 24px rgba(0,0,0,.4);
}
#tc-base.on{opacity:.95}
/* no talo o anel acende: o jogador vê que passou a correr [30] */
#tc-base.correndo{
  border-color:var(--accent); box-shadow:0 0 0 2px rgba(255,176,32,.35), 0 6px 24px rgba(0,0,0,.4);
}
#tc-knob{
  position:absolute; left:50%; top:50%; width:58px; height:58px;
  transform:translate(-50%,-50%); border-radius:50%;
  background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(190,205,225,.6));
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 4px 14px rgba(0,0,0,.55);
}
#tc-base.correndo #tc-knob{
  background:linear-gradient(180deg,#ffd580,var(--accent));
}

/* aviso de orientação: mora dentro de #touch, então já herda "só
   enquanto se joga" — no menu ele seria só barulho */
#tc-rotate{
  position:absolute; left:50%; top:44%; transform:translate(-50%,-50%);
  display:none; pointer-events:none; text-align:center;
  background:rgba(8,12,20,.86); border:1px solid var(--stroke);
  border-radius:999px; padding:9px 18px; font-size:12px; font-weight:700;
}
@media (orientation:portrait){ body.toque #tc-rotate{display:block} }

/* ---------------------- botões de cima ---------------------- */
#tc-top{
  position:absolute; display:flex; gap:8px;
  right:calc(10px + env(safe-area-inset-right));
  top:calc(8px + env(safe-area-inset-top));
}
.tc-icon{
  pointer-events:auto; touch-action:none;
  width:42px; height:42px; border-radius:12px; font-size:18px; line-height:1;
  border:1px solid var(--stroke); background:rgba(8,12,20,.66); color:var(--ink);
  backdrop-filter:blur(6px); cursor:pointer; padding:0;
}
.tc-icon.press{background:rgba(37,208,255,.3); border-color:var(--accent2)}

/* ---------------------- botões de ação ---------------------- */
/*
 * O mínimo que dá para jogar: atirar, pular e agir. Os outros três
 * (descer, visão, míssil) só existem quando existe o que fazer com
 * eles — dentro do veículo ou no meio de uma fase.
 */
#tc-pad{
  position:absolute; width:264px; height:200px; pointer-events:none;
  right:env(safe-area-inset-right); bottom:env(safe-area-inset-bottom);
}
.tc-btn{
  position:absolute; pointer-events:auto; touch-action:none;
  border-radius:50%; padding:0; cursor:pointer;
  border:2px solid rgba(255,255,255,.26); background:rgba(10,15,24,.4);
  color:var(--ink); font-family:var(--font); font-weight:900; letter-spacing:.6px;
  backdrop-filter:blur(6px); box-shadow:0 4px 16px rgba(0,0,0,.4);
  transition:transform .07s, background .07s;
}
.tc-btn.press{transform:scale(.92); background:rgba(255,255,255,.26)}
/* [COD Mobile] o botão de TIRO também é o analógico de mira: deslizar o
   dedo no gatilho gira a câmera e a mira acompanha (o botão fica fixo) */
.tc-btn[data-segura="atirar"]{touch-action:none}
/* [COD Mobile] o botão de TIRO também é o analógico de mira: deslizar o
   dedo no gatilho gira a câmera e a mira acompanha (o botão fica fixo) */
.tc-btn[data-segura="atirar"]{touch-action:none}
.tc-fogo{
  right:16px; bottom:20px; width:94px; height:94px; font-size:13px;
  border-color:rgba(255,77,77,.6); background:rgba(255,77,77,.24); color:#ffdede;
}
.tc-fogo.press{background:rgba(255,77,77,.55)}
.tc-pular{right:118px; bottom:88px; width:70px; height:70px; font-size:11.5px}
.tc-acao{
  right:122px; bottom:14px; width:66px; height:66px; font-size:11.5px;
  border-color:rgba(255,176,32,.6); background:rgba(255,176,32,.2); color:#ffe0a8;
}
.tc-acao.press{background:rgba(255,176,32,.5)}
.tc-sec{width:52px; height:52px; font-size:17px; font-weight:700}
.tc-missil{right:26px; bottom:128px}
.tc-visao{right:198px; bottom:98px}
.tc-descer{right:198px; bottom:24px}
.tc-girar-esq{right:198px; bottom:88px}
.tc-girar-dir{right:254px; bottom:88px}

/* telas curtas (celular deitado): o conjunto encolhe junto */
@media (max-height:430px){
  #tc-pad{transform:scale(.84); transform-origin:100% 100%}
  #tc-base{width:112px; height:112px; margin:-56px 0 0 -56px;
    left:calc(82px + env(safe-area-inset-left)); top:calc(100% - 82px - env(safe-area-inset-bottom))}
  #tc-knob{width:50px; height:50px}
}

/* ============================================================
   HUD no modo toque: tudo sai do caminho dos dedos
   ------------------------------------------------------------
   Canto de baixo à esquerda é do analógico, canto de baixo à direita é
   dos botões. Sobra o alto da tela — e é para lá que o HUD se muda.
   ============================================================ */
body.toque #perfbox{
  left:calc(10px + env(safe-area-inset-left)); top:calc(8px + env(safe-area-inset-top));
  transform:none; padding:3px 10px; font-size:11px;
}
body.toque #clockbox{display:none}
body.toque #topleft{
  left:calc(10px + env(safe-area-inset-left)); top:calc(40px + env(safe-area-inset-top)); gap:6px;
}
body.toque #hearts{gap:4px}
body.toque .heart{width:19px; height:19px}
body.toque .stat{min-width:58px; padding:3px 9px; border-radius:8px}
body.toque .stat-label{font-size:7px; letter-spacing:1px}
body.toque .stat-value{font-size:14px}

body.toque #objective{
  left:calc(10px + env(safe-area-inset-left)); right:auto;
  top:calc(112px + env(safe-area-inset-top));
  min-width:0; max-width:44vw; padding:6px 10px; gap:8px;
}
body.toque #objective-icon{font-size:17px}
body.toque #objective-title{font-size:8px; letter-spacing:1.4px}
body.toque #objective-text{font-size:11px}
body.toque #objective-dist{font-size:10px}

body.toque #minimap-wrap{
  right:calc(10px + env(safe-area-inset-right)); top:calc(58px + env(safe-area-inset-top));
  bottom:auto; width:104px; height:104px;
}
body.toque #compass-n{font-size:9px}

body.toque #missile-gauge{
  right:calc(10px + env(safe-area-inset-right)); top:calc(172px + env(safe-area-inset-top));
  bottom:auto; width:104px;
}

/* velocímetro e painel do helicóptero vão para o rodapé central,
   o único pedaço de baixo que não tem dedo em cima */
body.toque #speedo{
  right:auto; left:50%; margin-left:-58px; width:116px; height:116px;
  bottom:calc(2px + env(safe-area-inset-bottom));
}
body.toque #speedo-value{font-size:25px}
body.toque #speedo-unit{font-size:8px}
body.toque #gear{font-size:11px}
body.toque #heli-panel{
  right:auto; left:50%; transform:translateX(-50%); min-width:126px; padding:6px 11px;
  bottom:calc(4px + env(safe-area-inset-bottom));
}
body.toque .heli-row{font-size:9px}
body.toque .heli-row b{font-size:16px}
body.toque .heli-arm b{font-size:10px}

/* a dica sobe para acima da mira: embaixo é tudo botão */
body.toque #prompt{
  bottom:auto; top:25%; font-size:12px; padding:7px 14px;
  max-width:66vw; white-space:normal; text-align:center;
}
body.toque #carrying{bottom:auto; top:19%; font-size:10px; padding:5px 14px}
body.toque #boss-bar{top:calc(6px + env(safe-area-inset-top)); width:min(400px,44vw)}
body.toque #boss-name{font-size:12px; letter-spacing:2px; margin-bottom:4px}
body.toque #boss-track{height:11px}
body.toque #boss-phase{font-size:9px; margin-top:3px}
body.toque #phase-title{font-size:26px}
body.toque #phase-flag{font-size:42px}
body.toque #game-title{font-size:clamp(30px,6.4vw,60px); letter-spacing:-2px}
body.toque #tagline{font-size:13px; margin-bottom:20px}

/* botão de pular a cena — no toque não há tecla F para isso */
#dlg-skip{
  position:absolute; right:16px; bottom:16px; display:none;
  background:rgba(255,255,255,.1); border:1px solid var(--stroke); color:var(--ink);
  border-radius:999px; padding:10px 18px; font-family:var(--font);
  font-size:11px; font-weight:800; letter-spacing:1.5px; cursor:pointer;
}
body.toque #dlg-skip{display:block}
body.toque #dlg-portrait{width:clamp(78px,11vw,120px); height:clamp(78px,11vw,120px)}
body.toque #dlg-text{font-size:clamp(15px,2vw,24px)}

/* ============================================================
   Telas estreitas ou baixas (celular deitado, janela pequena)
   ============================================================ */
@media (max-width:760px), (max-height:560px){
  .panel{padding:24px 20px; border-radius:16px}
  .panel h2{font-size:26px}
  .menu-panel{padding:22px 18px}
  #over-stats{gap:20px; margin-bottom:20px}
  #over-stats b{font-size:26px}
  #start-btn, #restart-btn, #resume-title-btn{padding:14px 34px; font-size:15px}
  .plan-panel{padding:22px 18px}
  .keys-name{font-size:12px}

  /* [56] o celular do jogo cabe no celular de verdade */
  #phone-body{
    width:min(330px,92vw); height:min(660px,86vh);
    border-radius:30px; padding:9px;
  }
  #phone-screen{border-radius:22px}
  #phone-header{padding:12px 14px 9px}
  #phone-notch{display:none}
  #phone-home{margin:7px auto 0}
  #phone-tip{font-size:10px}
}

/* ==================== PAUSA (solo, DM e BR) ==================== */
/* z100: acima de todo o HUD (solo 10/20 e MP 95/96); OPÇÕES/CONTROLES
   sobem para 160 e ficam por cima do painel quando abertos da pausa */
#pause-screen{
  position:fixed; inset:0; z-index:100; display:flex;
  align-items:center; justify-content:center;
  background:radial-gradient(circle at center, rgba(12,20,35,.82) 0%, rgba(3,6,12,.95) 100%);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.pause-panel{
  display:flex; flex-direction:column; gap:12px;
  min-width:min(360px, 88vw); padding:34px 40px;
}
.pause-panel h2{margin-bottom:6px}
.pause-btn{
  padding:14px 20px; font-size:15px; font-weight:900; letter-spacing:2px;
  background:rgba(255,255,255,.07); border:1px solid var(--stroke); color:var(--ink);
  border-radius:14px; cursor:pointer;
  transition:background .15s, transform .12s, border-color .15s;
}
.pause-btn:hover{background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.35)}
.pause-btn:active{transform:scale(.97)}
#pause-retomar{
  background:linear-gradient(180deg,#ffc451,var(--accent)); color:#1a1000; border:none;
  box-shadow:0 8px 24px rgba(255,176,32,.35);
}
#pause-sair{opacity:.85}

/* botão fullscreen global — discreto, topo da tela, todos os modos */
#btn-fs{
  pointer-events:auto;
  pointer-events:auto;
  position:fixed; top:max(148px, calc(env(safe-area-inset-top) + 148px)); right:max(10px, env(safe-area-inset-right));
  z-index:9999; width:38px; height:38px; border-radius:12px;
  background:rgba(10,18,32,.45); border:1px solid rgba(140,170,220,.35);
  color:rgba(220,235,255,.85); font-size:17px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  cursor:pointer; touch-action:manipulation; user-select:none;
}
#btn-fs:active{ background:rgba(30,60,110,.6); }

/* botão fullscreen global — discreto, topo da tela, todos os modos */
