:root {
  --navy: #0B2545; --navy2: #13315C; --sea: #2EC4B6; --sand: #F4E3B5; --sun: #FFD166; --orange: #FF8C42;
  --red: #E63946; --ink: #111; --panel: rgba(11, 37, 69, .95); --px: "Press Start 2P", monospace;
  --body: "Pixelify Sans", system-ui, sans-serif;
  --top: max(8px, env(safe-area-inset-top)); --bot: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0B4F6C; color: #fff; font-family: var(--body); font-size: 16px; }
#map { position: fixed; inset: 0; width: 100vw; height: 100vh; touch-action: none; cursor: grab; }
#map:active { cursor: grabbing; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--sun); }
body.video .ui { display: none !important; }

/* moldura pixel */
.brand, .pop, #agoraChip, #countdown, #dock, .sheet, #zoom button, #toast, #ticker, #hint, .btn, .acts > button {
  border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.3), inset 3px 3px 0 rgba(255,255,255,.1);
}

#hud { position: fixed; top: var(--top); left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; background: var(--panel); padding: 6px 10px; pointer-events: auto; position: relative; }
.brand h1 { font: 9px/1.45 var(--px); margin: 0; letter-spacing: 1px; }
.brand h1 em { font-style: normal; color: var(--sun); }
#demo { position: absolute; left: -3px; bottom: -16px; background: var(--sun); color: var(--ink); font: 6px var(--px); padding: 3px 5px; border: 2px solid #000; }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pop { background: var(--panel); padding: 6px 10px 5px; text-align: right; pointer-events: auto; }
.pop b { display: block; font: 16px/1 var(--px); color: var(--sun); }
.pop small { font: 7px/1.8 var(--px); color: #B8E0D2; }
#agoraChip { background: var(--panel); padding: 5px 8px; font: 13px/1.3 var(--body); pointer-events: auto; color: #fff; }
#agoraChip b { color: var(--sun); }
#seguindo { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--top) + 64px); background: var(--sun); color: var(--ink); border: 3px solid #000; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; font-size: 14px; max-width: calc(100vw - 16px); white-space: nowrap; }
#seguindo[hidden] { display: none; }
#seguindo span { overflow: hidden; text-overflow: ellipsis; }
#seguindo button { background: var(--ink); color: #fff; border: 0; width: 28px; height: 28px; font: 9px var(--px); flex: none; }
.agora { background: rgba(255,209,102,.14); padding: 8px 10px; border-left: 4px solid var(--sun); }
#countdown { background: var(--red); padding: 4px 8px; font: 7px/1.6 var(--px); pointer-events: auto; }
#countdown b { font-size: 9px; }

.crab { width: 24px; height: 24px; display: inline-block; flex: none; background:
  linear-gradient(var(--red),var(--red)) 6px 10px/12px 8px no-repeat,
  linear-gradient(var(--red),var(--red)) 0 6px/5px 5px no-repeat,
  linear-gradient(var(--red),var(--red)) 19px 6px/5px 5px no-repeat,
  linear-gradient(#111,#111) 8px 6px/2px 4px no-repeat,
  linear-gradient(#111,#111) 14px 6px/2px 4px no-repeat;
  filter: drop-shadow(0 0 4px #9CF6C8); animation: glow 1.6s ease-in-out infinite; }
.crab.big { transform: scale(3); margin: 30px auto 40px; display: block; }
@keyframes glow { 50% { filter: drop-shadow(0 0 9px #9CF6C8); } }

#zoom { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 5; }
#zoom button { width: 44px; height: 44px; background: var(--panel); font: 16px var(--px); }
@media (pointer: coarse) { #zoom { display: none; } }

#ticker { position: fixed; left: 8px; bottom: calc(78px + var(--bot)); max-width: min(360px, calc(100vw - 16px)); background: var(--panel); padding: 5px 10px 5px 6px; font-size: 14px; z-index: 5; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; }
#ticker span { overflow: hidden; text-overflow: ellipsis; }
#ticker img { image-rendering: pixelated; flex: none; }
#ticker.in { animation: slide .4s ease-out; }
@keyframes slide { from { transform: translateX(-24px); opacity: 0; } }

#hint { position: fixed; left: 8px; bottom: calc(128px + var(--bot)); background: #fff; color: var(--ink); padding: 8px 12px; font-size: 15px; z-index: 6; animation: bob 1.2s ease-in-out infinite; }
#hint::after { content: ""; position: absolute; left: 28px; bottom: -11px; border: 8px solid transparent; border-top-color: #fff; }
@keyframes bob { 50% { transform: translateY(-4px); } }

#dock { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--bot)); display: flex; background: var(--navy); z-index: 6; }
#dock button { flex: 1; background: none; border: 0; border-right: 3px solid #000; padding: 7px 2px 8px; font: 7px/1.4 var(--px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#dock button span { font-size: 19px; font-family: system-ui; line-height: 1; }
#dock button:last-child { border-right: 0; }
#dock button.on { background: var(--navy2); color: var(--sun); }
#dock .cta { background: var(--orange); color: var(--ink); }
#dock .cta.on { background: var(--sun); color: var(--ink); }

.sheet { position: fixed; left: 8px; right: 8px; bottom: calc(76px + var(--bot)); max-height: 56vh; background: var(--panel); z-index: 7; display: flex; flex-direction: column; animation: up .22s ease-out; }
.sheet.hidden { display: none; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
#sheetClose { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; background: var(--red); border: 3px solid #000; font: 11px var(--px); z-index: 2; }
#sheetBody { overflow-y: auto; padding: 14px 14px 16px; overscroll-behavior: contain; }
#sheetBody h2 { font: 11px/1.6 var(--px); color: var(--sun); margin: 4px 44px 12px 0; }
#sheetBody h3 { font: 9px/1.6 var(--px); margin: 16px 0 8px; color: var(--sea); }
#sheetBody p { margin: 8px 0; line-height: 1.35; }
.hint { color: #B8E0D2; font-size: 14px; }
.small { font-size: 12px; }
.empty { color: var(--sand); text-align: center; padding: 10px 0; }
.big { font: 22px/1.2 var(--px); color: var(--sun); margin: 6px 0 10px !important; }
.big small { font-size: 9px; color: #B8E0D2; margin-left: 6px; }
input[type=search] { width: 100%; padding: 11px; font: 17px var(--body); background: #fff; color: var(--ink); border: 3px solid #000; margin-bottom: 6px; border-radius: 0; }
.row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 2px solid rgba(0,0,0,.35); padding: 6px 4px; }
.row:hover { background: rgba(255,255,255,.08); }
.row img { image-rendering: pixelated; background: #8ECAE6; flex: none; }
.row small { color: #B8E0D2; font-size: 14px; }
.andar { font: 8px var(--px); color: var(--sun); width: 28px; flex: none; }
.perfil { display: flex; gap: 14px; align-items: center; }
.perfil .av { image-rendering: pixelated; background: #8ECAE6; border: 3px solid #000; flex: none; }
.perfil h2 { margin-bottom: 6px !important; }
.at { color: #B8E0D2; font-size: 13px; margin: 6px 0 0 !important; }
.prof { font-size: 18px; margin: 0 !important; }
.cargo { display: inline-block; background: var(--orange); color: var(--ink); font: 7px/1.4 var(--px); padding: 4px 6px; margin: 6px 0 0 !important; }
.casa { background: rgba(46,196,182,.15); padding: 10px; border-left: 4px solid var(--sea); }
.acts { display: flex; gap: 8px; margin: 12px 0 8px; }
.acts > button, .btn { flex: 1 1 0; background: var(--navy2); padding: 11px 8px; font: 8px/1.5 var(--px); text-align: center; text-decoration: none; color: #fff; display: inline-block; }
.btn.wide { display: block; width: 100%; margin: 10px 0; }
.primary { background: var(--orange) !important; color: var(--ink) !important; }
button:disabled { opacity: .6; }
.bar { height: 12px; background: rgba(0,0,0,.45); border: 2px solid #000; margin: 6px 0; }
.bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--sun) 0 6px, var(--orange) 6px 8px); }
.rank { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 2px solid rgba(0,0,0,.35); padding: 8px 4px; align-items: center; }
.rank .pos { font: 9px var(--px); color: var(--sun); grid-row: span 2; }
.rank .ct { font: 8px var(--px); }
.rank .bar { grid-column: 2 / 4; margin: 0; height: 9px; }
.fund { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--navy2); border: 2px solid #000; padding: 6px 8px; font-size: 14px; }
.ep { background: rgba(255,255,255,.06); padding: 12px; border-left: 4px solid var(--sun); }
.ep small { font: 7px var(--px); color: var(--sea); }
.ep h3 { color: #fff !important; margin: 8px 0 !important; }
.ep ul, details ul { padding-left: 18px; margin: 8px 0; }
.ep li, details li { margin: 4px 0; }
.vote { margin-top: 14px; }
.opt { margin: 8px 0; }
.opt > span { font-size: 15px; }
.opt .pct { float: right; font: 9px var(--px); color: var(--sun); margin-top: 3px; }
details { background: rgba(0,0,0,.2); padding: 8px; margin: 6px 0; }
summary { cursor: pointer; }
.misterio { background: #0a1730; border: 3px solid #000; padding: 12px; margin-top: 14px; box-shadow: 0 0 18px rgba(156,246,200,.25) inset; }
.misterio h3 { color: #9CF6C8 !important; margin-top: 0 !important; }
.misterio .lock { color: #7a8aa0; }
.lk { background: none; border: 0; color: var(--sun); text-decoration: underline; padding: 0; }
.steps { padding-left: 22px; }
.steps li { margin: 10px 0; line-height: 1.4; }
code { background: #fff; color: var(--ink); padding: 3px 6px; font-family: var(--px); font-size: 8px; line-height: 2; }
.falta { background: rgba(255,140,66,.15); border-left: 4px solid var(--orange); padding: 10px; }

#toast { position: fixed; left: 50%; top: 110px; transform: translate(-50%, -20px); background: #fff; color: var(--ink); padding: 10px 14px; width: max-content; max-width: 90vw; opacity: 0; transition: .25s; z-index: 9; pointer-events: none; font-size: 16px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#loading { position: fixed; inset: 0; background: var(--navy); display: grid; place-content: center; text-align: center; z-index: 20; font: 10px var(--px); }

@media (min-width: 760px) {
  .brand h1 { font-size: 12px; }
  .pop b { font-size: 20px; }
  #dock { left: 50%; right: auto; transform: translateX(-50%); width: 520px; }
  #dock button { font-size: 8px; }
  .sheet { left: auto; right: 64px; top: 120px; bottom: 90px; width: 380px; max-height: none; }
  #ticker { bottom: 90px; }
  #hint { left: calc(50% - 254px); bottom: 96px; }
}
@media (max-width: 759px) { #seguindo { top: calc(var(--top) + 122px); } }

/* ---------- JOGAR ---------- */
#bJogar { position: fixed; right: 8px; bottom: calc(80px + var(--bot)); z-index: 6; background: var(--sun); color: var(--ink); border: 3px solid #000; font: 11px var(--px); padding: 12px 14px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), 0 0 0 3px rgba(255,209,102,.35); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), 0 0 0 8px rgba(255,209,102,0); transform: scale(1.04); } }
body.jogando #dock, body.jogando #ticker, body.jogando #hint, body.jogando #bJogar, body.jogando #seguindo, body.jogando #countdown { display: none !important; }
#game[hidden] { display: none; }
#gTop { position: fixed; left: 8px; top: calc(var(--top) + 52px); display: flex; gap: 6px; z-index: 6; }
#gTop > * { background: var(--panel); border: 3px solid #000; padding: 5px 9px; font-size: 15px; color: #fff; }
#gTop b { color: var(--sun); }
#gActs { position: fixed; right: 8px; bottom: calc(14px + var(--bot)); display: grid; grid-template-columns: repeat(2, 56px); direction: rtl; gap: 8px; z-index: 6; }
#gActs button { width: 56px; height: 56px; background: var(--panel); border: 3px solid #000; font-size: 24px; box-shadow: inset -3px -3px 0 rgba(0,0,0,.3); }
#gActs button.on { background: var(--sun); }
#gSair { background: var(--red) !important; font: 13px var(--px) !important; }
#gFalar { position: fixed; left: 50%; translate: -50% 0; bottom: calc(150px + var(--bot)); z-index: 6; background: #fff; color: var(--ink); border: 3px solid #000; padding: 10px 14px; font-size: 16px; animation: bob 1.2s ease-in-out infinite; max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gFalar[hidden] { display: none; }
#joy { position: fixed; left: 18px; bottom: calc(22px + var(--bot)); width: 120px; height: 120px; border-radius: 50%; background: rgba(11,37,69,.45); border: 3px solid rgba(0,0,0,.6); z-index: 6; touch-action: none; display: none; }
#joy i { position: absolute; left: 36px; top: 36px; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); border: 3px solid #000; }
@media (pointer: coarse) { #joy { display: block; } }
#dlg { position: fixed; left: 8px; right: 8px; bottom: calc(150px + var(--bot)); z-index: 8; background: #fff; color: var(--ink); border: 3px solid #000; display: flex; gap: 10px; padding: 10px; align-items: center; box-shadow: 0 6px 0 rgba(0,0,0,.35); cursor: pointer; }
#dlg[hidden] { display: none; }
#dlg img { image-rendering: pixelated; background: #8ECAE6; border: 3px solid #000; flex: none; }
#dlg b { font: 9px var(--px); color: #8E3B46; display: block; }
#dlg small { color: #555; font-size: 13px; }
#dlg p { margin: 6px 0 0; font-size: 17px; line-height: 1.3; }
#dlg > div { flex: 1; min-width: 0; }
#dlgNext { background: var(--sun); border: 3px solid #000; width: 40px; height: 40px; font: 11px var(--px); flex: none; align-self: flex-end; }
#banner { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%) scale(.6); opacity: 0; z-index: 9; pointer-events: none; background: var(--sun); color: var(--ink); border: 4px solid #000; padding: 14px 20px; text-align: center; min-width: 260px; }
#banner b { display: block; font: 12px/1.6 var(--px); }
#banner small { font-size: 16px; }
#banner.show { animation: banner 2.6s ease-out; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20%, 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 30; }
#flash.on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.miss { margin: 10px 0; }
.miss > span:first-child { font-size: 16px; }
.miss .ct { float: right; font: 9px var(--px); color: var(--sun); margin-top: 4px; }
.miss.ok > span:first-child { color: #9CF6C8; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 10px; }
.fig { background: #8ECAE6; border: 2px solid #000; text-align: center; padding: 3px 0 2px; overflow: hidden; }
.fig img { image-rendering: pixelated; display: block; margin: 0 auto; }
.fig small { display: block; font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.fig.nao { background: rgba(0,0,0,.35); }
.fig.nao span { display: block; height: 48px; line-height: 48px; font: 14px var(--px); color: #4A5A66; }
@media (min-width: 760px) {
  #bJogar { right: auto; left: calc(50% + 270px); bottom: 14px; }
  #dlg { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 40px; }
  #gFalar { bottom: 130px; }
}
@media (max-width: 759px) { body.jogando #agoraChip { display: none !important; } }
#gActs > * { direction: ltr; }
body.shake #map { animation: shake .35s; }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }
body.dentro #gViajar, body.dentro #gCorrer { visibility: hidden; }
/* editor de visual */
.avedit { display: flex; gap: 12px; align-items: flex-start; }
.avedit canvas { image-rendering: pixelated; border: 3px solid #000; flex: none; width: 108px; height: 119px; position: sticky; top: 0; }
.avopts { flex: 1; min-width: 0; }
.avrow { margin-bottom: 8px; }
.avrow small { display: block; font: 7px var(--px); color: var(--sea); margin-bottom: 4px; }
.avrow > div { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { width: 26px; height: 26px; border: 2px solid #000; padding: 0; }
.sw.on { outline: 3px solid var(--sun); outline-offset: 1px; }
.tag.on { background: var(--sun); color: var(--ink); }
/* mini-games */
#mg { position: fixed; inset: 0; z-index: 25; background: rgba(5,12,30,.72); display: grid; place-items: center; padding: 12px; }
.mgbox { background: var(--panel); border: 4px solid #000; width: min(420px, 100%); padding: 10px; }
.mghead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mghead b { font: 10px var(--px); color: var(--sun); }
.mgx { background: var(--red); border: 3px solid #000; width: 32px; height: 32px; font: 10px var(--px); }
#mg canvas { width: 100%; image-rendering: pixelated; border: 3px solid #000; display: block; touch-action: none; }
.mgmsg { min-height: 44px; font-size: 16px; text-align: center; margin: 8px 0; }
.mgbtn { width: 100%; background: var(--sun); color: var(--ink); border: 3px solid #000; padding: 18px 14px; font: 11px var(--px); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mgbtn:active { background: #FFB703; transform: translateY(2px); }
#mg { -webkit-user-select: none; user-select: none; }
@media (max-width: 759px) { #gFalar { bottom: calc(214px + var(--bot)); } #dlg { bottom: calc(214px + var(--bot)); } }
.avside { display: flex; flex-direction: column; gap: 8px; align-items: center; flex: none; position: sticky; top: 0; }
.avedit canvas { width: 110px; height: 160px; position: static; }
.avtabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.publico { background: rgba(255,209,102,.1); border-left: 4px solid var(--sun); padding: 4px 10px 8px; margin-top: 12px; }
.cod { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cod code { font-size: 10px; padding: 8px; }
.row img, .fig img, #dlg img, .perfil .av, #ticker img { object-fit: contain; }
#gEu { position: relative; padding-bottom: 8px !important; }
.xpbar { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; background: rgba(0,0,0,.5); }
.xpbar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width .4s; }
#ganhos { position: fixed; left: 10px; top: calc(var(--top) + 100px); z-index: 7; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.ganho { background: rgba(11,37,69,.92); border: 2px solid #000; color: #FFD166; font-size: 14px; padding: 3px 8px; animation: ganho 2.6s ease-out forwards; width: max-content; }
@keyframes ganho { 0% { opacity: 0; transform: translateX(-12px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.sw { position: relative; }
.sw.lock { opacity: .55; }
.sw i { position: absolute; left: -4px; right: -4px; bottom: -12px; font: 8px var(--body); font-style: normal; color: #FFD166; text-align: center; }
.tag.lock { opacity: .7; border-style: dashed; }
.avrow > div { row-gap: 14px; }
.moedas { font: 9px var(--px); color: var(--sun); margin-left: 6px; }
.rank.eu { background: rgba(255,209,102,.15); }
.rank { grid-template-columns: 32px 1fr auto; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.slot { background: rgba(0,0,0,.3); border: 2px solid #000; padding: 6px 2px 4px; text-align: center; color: #fff; position: relative; }
.slot span { font-size: 24px; display: block; }
.slot b { position: absolute; right: 4px; top: 2px; font: 8px var(--px); color: var(--sun); }
.slot small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja, .pedido { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 2px solid rgba(0,0,0,.35); }
.loja .nm, .pedido .nm { flex: 1; min-width: 0; }
.loja.nao { opacity: .55; }
.pedido img { image-rendering: pixelated; background: #8ECAE6; flex: none; }
.pedido.ok { opacity: .6; }
.fig .cor { font-size: 9px !important; }
#dlgGift { background: #fff; border: 3px solid #000; width: 40px; height: 40px; font-size: 18px; flex: none; align-self: flex-end; }
#viagem { position: fixed; inset: 0; z-index: 28; background: linear-gradient(#8ECAE6, #1A8FA0 60%, #0B4F6C); display: grid; place-items: center; animation: up .3s ease-out; }
#viagem[hidden] { display: none; }
#viagem b { font: 12px/1.8 var(--px); color: #fff; text-shadow: 2px 2px 0 #0B2545; padding: 0 20px; text-align: center; animation: bob 1s ease-in-out infinite; }
body.na-ilha #gViajar { visibility: hidden; }
#ganhos { top: calc(var(--top) + 170px); }
@media (min-width: 760px) { #ganhos { top: calc(var(--top) + 110px); } }
#gBico { position: fixed; left: 8px; top: calc(var(--top) + 96px); z-index: 6; background: #FFF6D6; color: var(--ink); border: 3px solid #000; padding: 5px 9px; font-size: 13px; max-width: calc(100vw - 80px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
#gBico[hidden] { display: none; }
#gBico b { color: #8E3B46; }
#tut { position: fixed; inset: 0; z-index: 26; background: rgba(5,12,30,.6); display: grid; place-items: center; padding: 14px; animation: up .2s ease-out; }
.tutbox { background: #FFF8E7; color: var(--ink); border: 4px solid #000; max-width: 400px; width: 100%; padding: 16px 16px 10px; box-shadow: 0 8px 0 rgba(0,0,0,.35); position: relative; }
.tuticon { font-size: 40px; position: absolute; right: 14px; top: 8px; }
.tutbox h3 { font: 11px/1.6 var(--px); color: #8E3B46; margin: 0 50px 10px 0; }
.tutbox ol { padding-left: 20px; margin: 0 0 12px; font-size: 16px; line-height: 1.35; }
.tutbox li { margin: 6px 0; }
.tutbox small { display: block; text-align: center; color: #777; margin-top: 6px; font-size: 12px; }
@media (max-width: 759px) { #gBico { top: calc(var(--top) + 100px); } #ganhos { top: calc(var(--top) + 140px); } }
#gBico { top: auto !important; bottom: calc(150px + var(--bot)); max-width: 62vw; }
@media (min-width: 760px) { #gBico { bottom: 24px; left: 8px; max-width: 360px; } }
@media (max-width: 759px) { #ganhos { top: calc(var(--top) + 100px) !important; } }
.avbuy { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: #FFF6D6; color: var(--ink); border: 3px solid #000; padding: 6px 8px; margin-bottom: 10px; font-size: 14px; }
.avbuy span { flex: 1 1 140px; line-height: 1.3; }
.avbuy .tag { color: var(--ink); background: #fff; }
.avbuy .tag.on { background: var(--sun); }
#gRoleta { background: var(--sun) !important; color: var(--ink) !important; animation: pulse 1.4s ease-in-out infinite; }
#gRoleta[hidden] { display: none; }
#eleChip { background: #C0392B; color: #fff; border: 3px solid #000; padding: 4px 8px; font-size: 13px; pointer-events: auto; animation: pulse 1.6s ease-in-out infinite; }
#eleChip[hidden] { display: none; }
.cand { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 2px solid rgba(0,0,0,.35); }
.cand img { image-rendering: pixelated; background: #8ECAE6; flex: none; }
.cand .nm { flex: 1; min-width: 0; }
.cand .ct { font: 10px/1.5 var(--px); color: var(--sun); text-align: right; }
.cand.lider { background: rgba(255,209,102,.12); }
.comovota { background: #fff; color: var(--ink); padding: 10px; border: 3px solid #000; margin-top: 10px; font-size: 15px; }
.comovota a { color: #8E3B46; }
/* jogo no celular: nada por cima da barra do jogo; toast abaixo dela; barra quebra linha se faltar espaço */
body.jogando #eleChip { display: none !important; }
body.jogando #toast { top: calc(var(--top) + 124px); }
@media (max-width: 420px) { #gTop { right: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #gTop::-webkit-scrollbar { display: none; } #gTop > * { font-size: 13px; padding: 4px 7px; flex: none; } }
body.jogando #onlineStatus { top: calc(var(--top) + 98px) !important; background: #142e36 !important; opacity: .95; }
body.jogando #toast { top: calc(var(--top) + 136px); }
.miss[data-m] { cursor: pointer; } .miss.foco { outline: 3px solid #8ECAE6; }
.qlogin { display: flex; align-items: center; background: #fff; border: 3px solid #000; margin: 6px 0; }
.qlogin span { font: 18px var(--px); color: var(--ink); padding: 0 6px 0 10px; }
.qlogin input { flex: 1; border: 0; outline: 0; font-size: 18px; padding: 12px 8px; min-width: 0; }
#qPin { width: 100%; font-size: 18px; padding: 10px; border: 3px solid #000; margin-bottom: 6px; box-sizing: border-box; }
.qvis { margin-top: 12px; } .qvis summary { cursor: pointer; color: var(--sun); padding: 8px 0; }
.qvis input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px; margin: 6px 0; }
.qgiver { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.06); padding: 8px; border: 2px solid #000; }
.qgiver img { image-rendering: pixelated; background: #8ECAE6; flex: none; } .qgiver p { margin: 0; font-style: italic; }
.qpremio { background: rgba(255,209,102,.12); border-left: 4px solid var(--sun); padding: 6px 8px; }
#sheetBody .quest { border: 3px solid #000; background: rgba(255,255,255,.05); padding: 8px; margin: 8px 0; } #sheetBody .quest.foco { outline: 3px solid #8ECAE6; }
.qp { padding: 3px 0; opacity: .7; } .qp.ok { opacity: .5; text-decoration: line-through; } .qp.agora { opacity: 1; color: var(--sun); }
.trab { display: flex; gap: 8px; align-items: center; padding: 8px 2px; border-bottom: 2px solid rgba(0,0,0,.35); } .trab.on { background: rgba(255,209,102,.12); }
.trab .em { font-size: 26px; } .trab .nm { flex: 1; min-width: 0; }
.tag.sel { background: var(--sun); color: var(--ink); }
#gChat { position: relative; } #gChatN { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font: 9px var(--px); padding: 3px 4px; border: 2px solid #000; font-style: normal; }
#chatBox { position: fixed; left: 8px; bottom: calc(150px + var(--bot)); width: min(360px, calc(100vw - 150px)); max-height: 46vh; display: flex; flex-direction: column; background: rgba(11,23,48,.94); border: 3px solid #000; z-index: 30; }
#chatBox[hidden] { display: none; }
.chd { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: #13315C; } .chd b { font: 9px var(--px); color: var(--sun); } .chd button { background: var(--red); border: 2px solid #000; color: #fff; width: 26px; height: 26px; }
#chatLog { overflow-y: auto; padding: 6px 8px; flex: 1; min-height: 80px; font-size: 14px; } .chm { padding: 3px 0; overflow-wrap: anywhere; } .chm small { opacity: .5; font-size: 10px; }
.chn { background: none; border: 0; color: #64e9d3; font-weight: 700; padding: 0; cursor: pointer; font-size: 14px; } .chm.eu .chn { color: var(--sun); }
#chatForm { display: flex; gap: 4px; padding: 6px; } #chatIn { flex: 1; min-width: 0; font-size: 16px; padding: 8px; border: 2px solid #000; } #chatForm button { background: var(--sun); border: 2px solid #000; font: 9px var(--px); padding: 0 8px; }
.chregra { font-size: 11px; opacity: .65; margin: 0 8px 6px; }

/* Painéis são superfícies opacas. Classes de cartões internos não devem alterar a janela. */
#sheet { background: #0B2545; margin: 0; padding: 0; flex-direction: column; align-items: stretch; isolation: isolate; }
#sheetBody { min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
#sheetClose { z-index: 5; }
#sheetBody .qgiver { background: #13315C; }
#sheetBody .qgiver > div { min-width: 0; }
#sheetBody .qpremio { background: #293b50; }
/* No modo jogo, uma janela tem prioridade sobre HUD, chat e diálogo. */
body.jogando:has(#sheet:not(.hidden))::before { content: ""; position: fixed; inset: 0; background: rgba(5,12,30,.48); z-index: 18; touch-action: none; }
body.jogando #sheet:not(.hidden) { z-index: 21; }
body.jogando:has(#sheet:not(.hidden)) :is(#game, #hud, #zoom, #dlg, #chatBox, #onlineStatus, #ganhos, #banner) { visibility: hidden; pointer-events: none; }
body.jogando:has(#sheet:not(.hidden)) #map { pointer-events: none; }
body.jogando:has(#sheet:not(.hidden)) #toast { z-index: 24; }
@media (max-width: 759px) {
  body.jogando #sheet { top: auto; bottom: calc(8px + var(--bot)); max-height: 82vh; max-height: 82dvh; }
}

/* HUD de exploração compacto; ranking sempre acessível durante a partida. */
#gRank { background:#FFD166 !important;color:#0B2545 !important;font-weight:bold; }
#gTop { align-items:stretch; }
#gTop #gRank { min-width:40px; }
#gTop button:focus-visible,#gMenu:focus-visible,#gMini:focus-visible,#gTarget:focus-visible { outline:2px solid #FFD166;outline-offset:2px; }
#gExplore { position:fixed;left:8px;right:8px;top:calc(var(--top) + 135px);display:flex;align-items:flex-start;justify-content:space-between;gap:8px;z-index:6;pointer-events:none; }
#gExplore button { pointer-events:auto;border:3px solid #000;box-shadow:inset -2px -2px 0 rgba(0,0,0,.35);background:#0B2545; }
#gTarget { text-align:left;padding:7px 9px;min-width:0;max-width:min(64%,290px);display:flex;flex-direction:column;gap:3px; }
#gTarget small { color:#FFD166;font-size:10px; }
#gTarget b { color:#fff;font-size:13px;line-height:1.25;overflow-wrap:anywhere; }
#gTargetDistance { color:#B8E0D2!important; }
#gMini { padding:3px;width:88px;flex:none;display:flex;flex-direction:column;align-items:center;gap:2px; }
#gMiniCanvas { width:76px;height:64px;image-rendering:pixelated;display:block;background:#2A8FB0; }
#gPlace { width:76px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px;color:#FFD166; }
#gMenu { background:#FFD166!important;color:#0B2545;font-size:24px;font-weight:bold; }
#cityMap { display:block;width:auto;max-width:100%;height:min(52vh,480px);margin:10px auto;image-rendering:pixelated;border:3px solid #000;cursor:crosshair; }
.rkpodium { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0; }
.rkpod { display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;background:#13315C;border:2px solid #000;padding:9px 4px;min-width:0;overflow-wrap:anywhere; }
.rkpod span { font-size:27px; }.rkpod b { font-size:14px; }.rkpod small { color:#B8E0D2;font-size:12px; }.rkpod.p1 { border-color:#FFD166; }
.rkself { display:flex;flex-direction:column;gap:5px;padding:11px;background:#203d5c;border-left:4px solid #FFD166;margin:10px 0; }.rkself b { color:#FFD166; }.rkself small { color:#B8E0D2; }
.activity { width:100%;display:flex;align-items:center;text-align:left;gap:10px;background:#13315C;border:2px solid #000;margin:5px 0;padding:10px;min-height:48px; }.activity>span { font-size:23px; }.activity div { flex:1;min-width:0; }.activity small { display:block;color:#B8E0D2;margin-top:4px; }.activity strong { color:#FFD166;font-size:20px; }
.achievement { background:#13315C;border:2px solid #000;padding:8px;margin:6px 0; }.achievement small { float:right;color:#FFD166; }.achievement .bar { clear:both; }
.gameMenu { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }.gameMenu button { min-height:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;background:#13315C;border:2px solid #000;padding:8px;text-align:center; }.gameMenu span { font-size:23px; }.gameMenu b { font-size:13px;overflow-wrap:anywhere; }
body.jogando:has(#sheet:not(.hidden)) #gExplore { visibility:hidden;pointer-events:none; }
@media(max-width:759px) {
 #gTop { right:8px;display:flex;flex-wrap:nowrap;gap:4px;overflow:visible; }
 #gTop>* { min-width:0;padding:5px 6px;font-size:13px; }
 #gTop #gEu { flex:1;white-space:nowrap;font-size:12px; }
 #gTop #gRank,#gTop #gQuest,#gTop #gMiss { flex:none;min-width:36px; }
 #gTop #gAlbum,#gTop>span { display:none; }
 #gTop #gRoleta { display:none; }
 #gActs { grid-template-columns:repeat(2,48px);gap:6px; }
 #gActs button { width:48px;height:48px;font-size:21px; }
 #gActs #gVisual,#gActs #gFoto,#gActs #gViajar,#gActs #gSair { display:none; }
 #gBico { bottom:calc(112px + var(--bot)); }
 #gFalar { bottom:calc(124px + var(--bot)); }
 #dlg { bottom:calc(124px + var(--bot)); }
 #chatBox { bottom:calc(124px + var(--bot));width:min(360px,calc(100vw - 16px)); }
 body.jogando #toast { top:calc(var(--top) + 235px); }
 #joy { width:110px;height:110px;left:12px; }
 #joy i { left:32px;top:32px; }
}
@media(min-width:760px){#gExplore{right:15px;top:calc(var(--top) + 100px);}#gMini{width:105px;}#gMiniCanvas{width:96px;height:80px;}}
@media(max-height:480px) and (orientation:landscape){#gExplore{top:calc(var(--top) + 90px);}#gMiniCanvas{height:44px;}#gTarget{max-width:180px;}}
@media(prefers-reduced-motion:reduce){#sheet,#gFalar,#bJogar,.crab{animation:none!important;}}

#chatQuick{display:flex;flex-wrap:wrap;gap:4px;padding:5px 6px;}#chatQuick button{background:#13315C;color:#fff;border:2px solid #000;padding:6px;font-size:12px;min-height:32px;}

.activity:disabled,.activity button:disabled,.achievement button:disabled{opacity:.55;cursor:not-allowed;}.patrimonio .activity>span{font-size:25px;}.careergoals .achievement button{margin-top:7px;}.patrimonio .activity .tag{flex:none;max-width:100px;}

/* Conta é uma tela separada e legível; não intercepta o botão da presença. */
#accountDialog{width:min(420px,calc(100vw - 28px));max-height:85dvh;overflow:auto;box-sizing:border-box;font-family:'Pixelify Sans',sans-serif;color:#fff!important;background:#0B2545!important;border:3px solid #64e9d3!important;border-radius:5px!important;}
#accountDialog::backdrop{background:rgba(5,12,30,.72)}#accountDialog h3{color:#FFD166;font-size:20px}#accountDialog p{font-size:15px;line-height:1.45}#accountDialog button{font-family:inherit;background:#13315C;color:white;border:2px solid #000;min-height:42px;padding:8px 12px;margin:3px 0;cursor:pointer}#accountDialog #closeAccount{width:100%;background:#FFD166;color:#0B2545;font-weight:bold}#accountDialog input{font:inherit;background:#fff;color:#10253e;border:2px solid #000;padding:10px}#accountDialog pre:empty{display:none}body:has(#accountDialog[open]) :is(#game,#gExplore,#onlineStatus){visibility:hidden;pointer-events:none;}

/* Interface 8 — conversa em primeiro plano e HUD compacto. */
#onlineStatus[data-connected="false"]{color:#FFD166!important;border-color:#80683b!important;}
#chatBox{left:8px;right:8px;bottom:calc(8px + var(--bot) + var(--keyboard,0px));width:auto;max-width:460px;max-height:min(60dvh,calc(100dvh - var(--keyboard,0px) - 24px));background:#0B2545;border:3px solid #000;box-shadow:0 0 0 2px #315273,0 8px 20px #0005;z-index:70;box-sizing:border-box;}
#chatBox .chd{padding:8px 10px;min-height:38px;}#chatBox .chd button{width:34px;height:34px;font-size:20px;}
#chatState{padding:4px 10px;color:#FFD166;font-size:12px;}#chatState[data-connected="true"]{color:#9DE6C3;}
#chatLog{min-height:58px;padding:6px 10px;overscroll-behavior:contain;}
#chatLog .chm{background:#193955;border:1px solid #335873;padding:7px 9px;margin:5px 18px 5px 0;font-size:14px;line-height:1.3;}
#chatLog .chm.eu{background:#24465b;border-color:#587a8f;margin:5px 0 5px 18px;}
.chmeta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:3px;}
#chatLog .chm small{color:#C4D6E5;opacity:1;font-size:10px;flex:none;}
#chatNotice{font-size:12px;color:#FFD166;padding:0 10px;min-height:0;overflow-wrap:anywhere;}
#chatNotice:not(:empty){padding:5px 10px;}
#chatQuick{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:5px 8px;}#chatQuick button{flex:none;font-size:12px;padding:5px 7px;}
#chatForm{padding:6px 8px;}#chatForm button{color:#10253e;font-family:inherit;font-size:14px;font-weight:bold;min-width:64px;}
#chatForm button:disabled,#chatQuick button:disabled{opacity:.45;cursor:not-allowed;}
#chatBox .chregra{font-size:10px;line-height:1.25;}
body.chat-open :is(#gBico,#gFalar,#joy,#gActs,#gExplore,#dlg){visibility:hidden;pointer-events:none;}
body.chat-open #map{pointer-events:none;}
@media(max-width:759px){
 body.jogando #onlineStatus{top:calc(var(--top) + 92px)!important;font-size:10px!important;padding:4px 6px!important;max-width:48vw!important;}
 #gExplore{top:calc(var(--top) + 120px);gap:5px;}
 #gTarget{max-width:62%;padding:5px 7px;gap:1px;}
 #gTarget b{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
 #gTarget small{font-size:10px;}
 #gMini{width:72px;}#gMiniCanvas{width:60px;height:48px;}#gPlace{width:60px;font-size:9px;}
 #gBico{bottom:calc(126px + var(--bot));font-size:12px;max-width:56vw;padding:4px 6px;}
 #gFalar{bottom:calc(157px + var(--bot));}
 #joy{width:100px;height:100px;bottom:calc(16px + var(--bot));}#joy i{left:27px;top:27px;}
 #gActs{grid-template-columns:repeat(2,44px);gap:5px;}#gActs button{width:44px;height:44px;}
}

/* Interfaces exclusivas: nenhum controle de jogo sobre minigames. */
body:has(#mg) :is(#game,#gExplore,#onlineStatus,#chatBox,#gBico,#gFalar){visibility:hidden;pointer-events:none;}body:has(#mg) #map{pointer-events:none;}

.guideStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.guideStats>div{background:#13315C;border:2px solid #000;padding:8px 5px;text-align:center;overflow-wrap:anywhere}.guideStats small,.guideXP small{display:block;color:#B8E0D2;font-size:11px}.guideStats b{display:block;color:#FFD166;font-size:16px;margin-top:5px}.guideXP{margin:10px 0 14px}.guideNext,.guideAsset{background:#13315C;border:2px solid #000;padding:12px;margin:10px 0}.guideNext{border-left:4px solid #FFD166}.guideNext>small,.guideAsset>small{color:#FFD166;font-size:11px}.guideNext h3,.guideAsset h3{color:#fff;margin:8px 0}.guideNext p,.guideAsset p{margin:7px 0}.guideMilestones>div{display:flex;align-items:center;gap:8px;padding:8px;background:#13315C;border-bottom:1px solid #36516d}.guideMilestones b{flex:1;font-size:13px}.guideMilestones small{color:#B8E0D2;font-size:11px}.guideLinks{margin-top:12px}

#gFalar{animation:none!important;white-space:normal;overflow-wrap:anywhere;text-align:center;max-width:min(78vw,360px);background:#FFD166;color:#0B1730;font-weight:bold;box-shadow:0 3px 0 #6B4D24;padding:9px 12px}body:has(#tut) :is(#game,#gExplore,#onlineStatus){visibility:hidden;pointer-events:none;}

.casosTurno .mgbox{width:min(460px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.caseBody{padding:12px;display:flex;flex-direction:column;gap:10px}.caseBody h3{font:700 18px/1.35 sans-serif;color:#FFD166;margin:3px 0}.caseBody p,.caseBody small{font:14px/1.45 sans-serif;color:#B8E0D2}.caseOption{border:2px solid #000;background:#13315C;color:#fff;text-align:left;font:600 15px/1.35 sans-serif;padding:13px;min-height:48px}.caseOption:disabled{opacity:.6}.caseOption:focus-visible{outline:3px solid #FFD166}

#poiSearch{box-sizing:border-box;width:100%;min-height:44px;margin:8px 0;padding:10px;background:#fff;color:#10253e;border:2px solid #000;font:16px sans-serif;}#poiSearch:focus-visible{outline:2px solid #FFD166}#poiResults{min-height:48px}

#cityMap{width:100%;height:auto;max-height:54dvh;object-fit:contain;touch-action:none;user-select:none;background:#0B2545;box-sizing:border-box;cursor:grab}#cityMap:active{cursor:grabbing}.mapControls{display:flex;gap:6px;flex-wrap:wrap}.mapControls button{background:#13315C;color:#fff;border:2px solid #000;padding:8px;min-height:44px;font:600 14px sans-serif;flex:1}.mapControls #mapMinus,.mapControls #mapPlus{font-size:22px;flex:0 0 44px}#mapInfo{min-height:32px;font:13px/1.3 sans-serif}#gMini{width:88px}#gMiniCanvas{width:76px;height:64px}#gPlace{width:76px}
#cityMap{max-height:none;aspect-ratio:4/5;width:min(100%,44dvh);height:auto;object-fit:fill;}

.avBody{padding:12px;display:grid;gap:10px;color:#fff;font:15px/1.4 sans-serif}.avBody p{margin:0}.avArt{text-align:center;font-size:60px;background:#13315C;padding:16px;animation:avBob 2s ease-in-out infinite alternate}.avGrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.avGrid button{background:#13315C;color:#fff;border:2px solid #000;padding:12px;min-height:48px;font:600 16px sans-serif}.digTrack{position:relative;height:28px;background:#9B4244;border:2px solid #000;overflow:hidden}.digZone{position:absolute;top:0;height:100%;background:#54C78C}.digNeedle{position:absolute;top:0;width:4px;height:100%;background:#fff;box-shadow:0 0 4px #000}.avBody canvas{width:100%;height:auto;touch-action:none;image-rendering:pixelated}@keyframes avBob{to{transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.avArt{animation:none}}
/* chat por cima do jogo: transparente, some sozinho; tocar abre o chat completo */
#chatFeed { position: fixed; left: 8px; bottom: calc(150px + var(--bot)); width: min(330px, calc(100vw - 150px)); display: flex; flex-direction: column; gap: 4px; z-index: 7; pointer-events: auto; }
body:not(.jogando) #chatFeed, body.chat-open #chatFeed { display: none; }
#chatFeed .cf { background: rgba(11,23,48,.55); color: #fff; padding: 5px 8px; border-left: 3px solid #64e9d3; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; text-shadow: 0 1px 2px #000; transition: opacity .6s, transform .6s; animation: cfIn .25s ease-out; }
#chatFeed .cf b { color: #64e9d3; } #chatFeed .cf.eu { border-left-color: var(--sun); } #chatFeed .cf.eu b { color: var(--sun); }
#chatFeed .cf.sai { opacity: 0; transform: translateX(-12px); }
@keyframes cfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.busmap #cityMap{width:min(100%,49dvh);border-color:#55A9FF}.busmap #mapInfo{color:#D8F2FF;background:#13315C;padding:9px;border:2px solid #000}.busmap #mapRoute{min-height:48px;white-space:normal}

/* Visual 17: superfície sólida, contorno pixel mais fino e contraste noturno. */
:root{--panel:#112C46;--navy:#102840;--navy2:#1B3A56;--sun:#FFDA85;--sea:#70D4CE}
.brand,.pop,#gTop>* ,#gActs button,#gTarget,#gMini{border:2px solid #0A192B;box-shadow:inset 0 1px 0 #496581,0 2px 0 #0A192B,0 3px 6px #08152344;border-radius:3px}
#gActs button.on,#gRank{color:#13263A}#gActs button.on{background:#FFDA85}
#sheet,#chatBox{background:#112B43;border:2px solid #52718A;box-shadow:0 6px 24px #06152688;border-radius:5px}
#sheetBody .btn,#sheetBody .activity,#sheetBody .tag,#chatQuick button{border-color:#081D30;border-width:2px;border-radius:3px;box-shadow:inset 0 1px 0 #59718A44}
#sheetBody .btn.primary{color:#13273A;background:#FFDA85}#sheetBody .hint{line-height:1.45;color:#BFD8E1}#sheetBody h2{line-height:1.8}#chatForm button{color:#10253E;background:#FFDA85}#gTarget b{line-height:1.35}#gMiniCanvas,#cityMap{border-color:#486981}#joy{border-color:#0B1C30;box-shadow:inset 0 0 0 2px #7BADC322}#joy i{box-shadow:0 3px 0 #9E7538}
@media(prefers-reduced-motion:reduce){.brand,.pop,#gTarget,#gActs button{transition:none}}

/* Bus 19: a fixed header and footer, flexible map viewport, no vertical scrolling. */
body.jogando #sheet.buspanel:not(.hidden){top:calc(var(--top) + 4px);bottom:calc(6px + var(--bot));left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));max-height:none;width:auto;max-width:620px;margin:0 auto;}
#sheet.buspanel #sheetBody{flex:1;display:flex;flex-direction:column;overflow:hidden;padding:8px;gap:6px;min-height:0;}
#sheet.buspanel #sheetClose{top:7px;right:7px;}
#sheet.buspanel h2{margin:3px 44px 5px 0;font:700 18px/1.25 system-ui,sans-serif;color:#FFDA85;}
.busHeader{flex:none;display:grid;gap:4px;min-width:0;}
.busOrigin,.busTrip{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #496984;background:#1B3A56;border-radius:4px;min-width:0;}
.busOrigin div,.busTrip div{flex:1;min-width:0;display:grid;gap:1px;}
.busOrigin small,.busTrip small{font:10px/1.1 system-ui,sans-serif;color:#BFD8E1;letter-spacing:.5px;}
.busOrigin b,.busTrip b{font:700 14px/1.25 system-ui,sans-serif;overflow-wrap:anywhere;}
.busDot{width:12px;height:12px;border-radius:50%;background:#FFD166;border:2px solid #fff;flex:none;}
.busStatus,.busFree{color:#FFDA85;font:700 11px/1.2 system-ui,sans-serif;white-space:nowrap;}
.busHeader label{font:600 12px/1.2 system-ui,sans-serif;color:#D8E8EF;}
#busDestination{height:42px;width:100%;font:600 16px system-ui,sans-serif;background:#F0F5F8;color:#10253E;border:2px solid #55A9FF;border-radius:4px;padding:4px 8px;}
.busMapWrap{flex:1;min-height:50px;position:relative;overflow:hidden;border:1px solid #52718A;border-radius:4px;background:#0B2545;}
#busCanvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;image-rendering:pixelated;}
.busMapTools{position:absolute;right:4px;top:4px;display:grid;gap:4px;}
.busMapTools button{width:36px;height:36px;background:#123554;color:#fff;border:1px solid #9BB7CB;border-radius:4px;font:700 18px system-ui,sans-serif;}
.busMapHint{position:absolute;bottom:3px;left:4px;right:4px;pointer-events:none;text-align:center;color:#fff;background:#102840CC;border-radius:3px;font:11px/1.3 system-ui,sans-serif;padding:3px;}
.busFooter{flex:none;display:grid;gap:4px;padding:0 0 2px;}
#sheetBody .busFooter p{font:12px/1.25 system-ui,sans-serif;margin:0;color:#C9DFE7;}
#sheetBody #busAction{min-height:48px;margin:0;font:700 15px/1.2 system-ui,sans-serif;padding:8px;white-space:normal;}
#busAction:disabled{background:#38536A!important;color:#D2DEE4!important;opacity:1;cursor:default;}
#gBusQuick{width:42px;height:42px;flex:none;align-self:flex-start;border:2px solid #0A192B;border-radius:4px;background:#1B3A56;color:#fff;font-size:22px;box-shadow:0 2px 0 #0A192B;}
body.dentro #gBusQuick,body.na-ilha #gBusQuick{display:none;}
@media(max-height:460px) and (orientation:landscape){#sheet.buspanel #sheetBody{display:grid;grid-template-columns:minmax(165px,1fr) minmax(180px,1.6fr);grid-template-rows:1fr auto;gap:6px}.busHeader{grid-column:1;grid-row:1;align-content:start}.busMapWrap{grid-column:2;grid-row:1 / span 2;min-height:0}.busFooter{grid-column:1;grid-row:2}.busMapTools{right:3px;top:3px;grid-template-columns:repeat(2,32px)}.busMapTools button{width:32px;height:32px}#sheet.buspanel h2{font-size:16px}.busMapHint{display:none}}
@media(max-width:360px){#gBusQuick{width:36px;height:36px;font-size:19px}#gTarget{max-width:48%}}
/* Gothampari */
#mg.gotham .mgbox{background:#0B1226;border-color:#2EC4B6;color:#E8ECF5}
#mg.gotham .mghead b{color:#FFD166}
#mg.gotham .mgbtn{background:#2EC4B6;color:#0B1730}
/* Gothampari HD: moldura moderna (sem pixel) */
#mg.gotham .mgbox{width:min(560px,100%);border:1.5px solid rgba(100,233,211,.55);border-radius:18px;background:linear-gradient(180deg,#0E1636,#070B1C);box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04) inset;padding:12px}
#mg.gotham .mghead b{font:900 17px/1.1 Montserrat,system-ui,sans-serif;letter-spacing:.5px;color:#FFD166}
#mg.gotham .mgx{border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font:700 14px system-ui,sans-serif}
#mg.gotham canvas{image-rendering:auto;border:0;border-radius:12px;box-shadow:0 0 0 1px rgba(100,233,211,.25)}
#mg.gotham .mgmsg{font:600 13px/1.4 Montserrat,system-ui,sans-serif;color:#C9D1E8;min-height:2.6em;margin:8px 2px}
#mg.gotham .mgbtn{font:900 16px/1 Montserrat,system-ui,sans-serif;letter-spacing:.4px;border:0;border-radius:14px;padding:15px 10px;background:linear-gradient(180deg,#64E9D3,#2EC4B6);color:#06101F;box-shadow:0 6px 18px rgba(46,196,182,.35)}
#mg.gotham .mgbtn:active{transform:translateY(1px) scale(.99)}
/* ===== QG DA POLÍCIA ===== */
#mg.pol { background: radial-gradient(ellipse at top, rgba(31,58,104,.88), rgba(5,10,24,.94)); padding: 10px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; }
#mg.pol .polbox { width: min(460px, 100%); flex: none; margin: auto 0; background: linear-gradient(180deg, #13244A, #0B1730); border: 2px solid #C9A23A; border-radius: 16px; box-shadow: 0 0 0 4px #0B1730, 0 18px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); color: #E8ECF5; overflow: hidden; }
#mg.pol .polhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(90deg, #1F3A68, #162B4F); border-bottom: 1px solid rgba(201,162,58,.6); }
#mg.pol .polhead b { flex: 1; font: 700 15px Montserrat, system-ui, sans-serif; letter-spacing: .06em; color: #FFD166; text-transform: uppercase; }
#mg.pol .polstar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE08A, #C9A23A); color: #1F3A68; font-size: 15px; box-shadow: 0 0 10px rgba(255,209,102,.6); }
#mg.pol .mgx { border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; width: 34px; height: 34px; font: 600 14px sans-serif; }
#mg.pol .polbody { padding: 12px; display: flex; flex-direction: column; gap: 10px; font: 15px/1.35 Montserrat, system-ui, sans-serif; }
#mg.pol canvas.polcv { width: 100%; height: auto; image-rendering: auto; border: 0; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.polbtn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px; background: linear-gradient(180deg, #FFE08A, #E8B93A); color: #0B1730; font: 700 16px Montserrat, system-ui, sans-serif; box-shadow: 0 4px 0 #8A6A1A, 0 8px 18px rgba(0,0,0,.35); cursor: pointer; touch-action: manipulation; }
.polbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8A6A1A; }
.polbtn:disabled { opacity: .45; }
.polbtn.sec { background: rgba(255,255,255,.12); color: #E8ECF5; box-shadow: none; }
.polbtn.grande { font-size: 26px; padding: 22px; background: linear-gradient(180deg, #FF7A82, #E63946); color: #fff; box-shadow: 0 5px 0 #8E1F28; }
.polmsg { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); text-align: center; }
.polmsg.alerta { background: rgba(230,57,70,.2); border: 1px solid rgba(230,57,70,.6); }
.hint { opacity: .7; font-size: 13px; margin: 0; text-align: center; }
#mg.pol h3, #mg.pol h4 { margin: 4px 0 0; font: 700 16px Montserrat, system-ui, sans-serif; color: #FFD166; }
#mg.pol h4 { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.polsteps { display: flex; flex-direction: column; gap: 8px; }
.polstep { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid rgba(142,202,230,.35); border-radius: 12px; padding: 12px; background: rgba(142,202,230,.08); color: #E8ECF5; font: 15px Montserrat, system-ui, sans-serif; cursor: pointer; }
.polstep span { font-size: 22px; }
.polstep:active { background: rgba(142,202,230,.22); }
.polstep.feito { opacity: .35; text-decoration: line-through; }
.xpt { height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.xpt i { display: block; height: 100%; background: linear-gradient(90deg, #C9A23A, #FFE08A); border-radius: 6px; transition: width .3s; }
.polxp { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.25); }
.polxp .xpl { display: flex; justify-content: space-between; font-size: 13px; color: #FFD166; }
.polxp small { opacity: .85; text-align: center; }
.polres { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.polres .carimbo { align-self: center; font: 700 30px Montserrat, system-ui, sans-serif; letter-spacing: .08em; color: #27AE60; border: 4px solid currentColor; border-radius: 10px; padding: 4px 18px; transform: rotate(-4deg); animation: carimbo .45s cubic-bezier(.2,1.6,.4,1) both; }
.polres.ruim .carimbo { color: #FF5A5F; }
@keyframes carimbo { from { transform: rotate(-4deg) scale(2.4); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.polres .estrelas { font-size: 38px; letter-spacing: 6px; }
.polres .estrelas i { font-style: normal; color: rgba(255,255,255,.15); }
.polres .estrelas i.on { color: #FFD166; text-shadow: 0 0 12px rgba(255,209,102,.8); }
.polres .sub { margin: 0; font-size: 16px; }
.polres .lin { margin: 0; font-size: 13px; opacity: .8; }
.polres .ganhos { display: flex; gap: 8px; justify-content: center; }
.polres .ganhos span { padding: 6px 12px; border-radius: 20px; background: rgba(255,209,102,.15); color: #FFD166; font-weight: 700; }
.cadpistas { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; background: #F4E9CF; color: #3B2A1E; box-shadow: inset 0 0 0 1px #D8C59A; }
.cadpistas b { font-size: 14px; }
.cadpistas span { font-size: 14px; padding-left: 4px; border-left: 3px solid #E63946; }
.cadpistas i { font-size: 13px; opacity: .6; }
.testemunha { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.07); }
.testemunha img, .cmd img, .ficha .ret { image-rendering: pixelated; border-radius: 10px; width: 66px; flex: none; box-shadow: 0 0 0 2px #C9A23A; }
.testemunha small, .cmd small { display: block; opacity: .7; font-size: 12px; }
.testemunha p, .cmd p { margin: 4px 0 0; font-style: italic; }
.lineup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.susp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, #47546E, #2B3443); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.susp img { width: 78px; image-rendering: pixelated; border-radius: 8px; background: repeating-linear-gradient(0deg, #3A465E 0 8px, #34405A 8px 9px); }
.susp b { font-size: 14px; text-align: center; }
.susp .fala { min-height: 2.6em; font-size: 12px; font-style: italic; text-align: center; opacity: .9; }
.susp .sb { display: flex; gap: 4px; width: 100%; }
.susp .sb button { flex: 1; border: 0; border-radius: 8px; padding: 8px 2px; font: 600 12px Montserrat, system-ui, sans-serif; background: rgba(255,255,255,.12); color: #E8ECF5; }
.susp .sb .acusa { background: #E63946; color: #fff; }
.susp .sb button:disabled { opacity: .4; }
#mg.blitz .hot { padding: 8px 10px; border-radius: 10px; background: rgba(230,57,70,.18); border: 1px dashed #FF5A5F; text-align: center; }
#mg.blitz .hot b { font-family: monospace; font-size: 17px; letter-spacing: .08em; color: #fff; }
.docs { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.doc { border-radius: 10px; padding: 8px; color: #13244A; display: flex; flex-direction: column; gap: 2px; font-size: 13px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.doc.cnh { background: linear-gradient(135deg, #E3F0D8, #C9E1B8); flex-direction: row; gap: 8px; align-items: center; }
.doc.cnh img { width: 40px; image-rendering: pixelated; border-radius: 4px; }
.doc.crlv { background: linear-gradient(135deg, #FFF8E7, #F1E2BE); }
.doc small { font-size: 10px; letter-spacing: .06em; opacity: .7; display: block; }
.doc b { font-size: 14px; }
.doc em { font-style: normal; font-weight: 700; font-family: monospace; font-size: 14px; }
.acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acoes button { border: 0; border-radius: 12px; padding: 14px 4px; font: 700 15px Montserrat, system-ui, sans-serif; background: #27AE60; color: #fff; box-shadow: 0 4px 0 #1B7A43; }
.acoes button[data-d="multa"] { background: #E8B93A; color: #0B1730; box-shadow: 0 4px 0 #8A6A1A; }
.acoes button.det { background: #E63946; box-shadow: 0 4px 0 #8E1F28; }
.acoes button:active { transform: translateY(3px); box-shadow: none; }
.alist { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.alist .ins { width: 88px; filter: drop-shadow(0 0 12px rgba(255,209,102,.5)); }
.alist p { margin: 0; }
.alist .jur { font-style: italic; min-height: 4em; padding: 10px; border-left: 3px solid #C9A23A; background: rgba(255,255,255,.05); text-align: left; }
.ficha { display: flex; gap: 12px; align-items: center; }
.ficha .ret { width: 77px; }
.ficha .fd { display: flex; flex-direction: column; gap: 2px; }
.ficha .fd .ins { width: 52px; }
.ficha small { opacity: .7; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stats span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 11px; opacity: .9; }
.stats b { font-size: 20px; color: #FFD166; }
.meds { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.meds span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 24px; filter: grayscale(1); opacity: .35; text-align: center; }
.meds span.on { filter: none; opacity: 1; background: rgba(255,209,102,.12); }
.meds small { font-size: 10px; }
.pats { display: flex; flex-direction: column; gap: 3px; }
.pats span { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; font-size: 14px; opacity: .45; }
.pats span.on { opacity: 1; }
.pats span.eu { background: rgba(255,209,102,.15); box-shadow: inset 0 0 0 1px #C9A23A; }
.pats img { width: 26px; }
.pats small { margin-left: auto; font-size: 11px; opacity: .75; }
.oc { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); border-left: 4px solid #2E86C1; }
.oc.perseguicao { border-left-color: #E63946; }
.oc.blitz { border-left-color: #E8B93A; }
.oc .oe { font-size: 28px; }
.oc div { flex: 1; }
.oc p { margin: 2px 0; font-size: 14px; }
.oc small { opacity: .7; font-size: 12px; }
.oc .prio { font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 6px; background: rgba(230,57,70,.3); margin-left: 4px; vertical-align: middle; }
.oc .polbtn { width: auto; padding: 10px 12px; font-size: 14px; }
.cmd { display: flex; gap: 12px; align-items: flex-start; }
.cmdfala { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.07); }
.cmdfala p { margin: 4px 0 0; font-style: italic; min-height: 3.6em; }
.cerimtxt { display: flex; flex-direction: column; gap: 8px; }
.efetivo { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.efetivo span { display: flex; flex-direction: column; align-items: center; font-size: 11px; gap: 3px; overflow: hidden; text-overflow: ellipsis; }
.efetivo img { width: 33px; image-rendering: pixelated; border-radius: 6px; }
.presos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.presos div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px; border-radius: 10px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 3px, transparent 3px 12px), #2B3443; }
.presos img { width: 44px; image-rendering: pixelated; }
.presos b { font-size: 13px; }
.presos small { font-size: 11px; opacity: .7; }
/* HUD da ocorrência e rádio da Central (por cima do mapa) */
#polHud { position: fixed; z-index: 14; left: 50%; transform: translateX(-50%); top: calc(118px + env(safe-area-inset-top)); width: min(360px, calc(100% - 24px)); padding: 8px 12px; border-radius: 14px; background: rgba(11,23,48,.92); border: 1px solid rgba(142,202,230,.4); color: #E8ECF5; font: 14px Montserrat, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 4px; pointer-events: auto; }
#polHud .ph { display: flex; justify-content: space-between; align-items: center; }
#polHud .ph b { color: #FFD166; letter-spacing: .04em; }
#polHud .ph span { font: 700 16px monospace; }
#polHud small { opacity: .9; }
#polHud .pd { opacity: .6; font-size: 12px; }
#polHud .pcan { position: absolute; right: 8px; bottom: 6px; border: 0; background: none; color: #8ECAE6; font: 12px Montserrat, system-ui, sans-serif; text-decoration: underline; }
#polHud.ir small.pf { padding-right: 56px; }
#polHud.chase { border-color: #E63946; animation: giro 0.6s steps(2) infinite; }
#polHud.chase.perde { background: rgba(80,10,16,.92); }
@keyframes giro { 0% { box-shadow: 0 0 22px rgba(230,57,70,.7); } 100% { box-shadow: 0 0 22px rgba(46,134,193,.8); } }
#polHud .pbar { position: relative; height: 16px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
#polHud .pbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2E86C1, #E63946); transition: width .2s; }
#polHud.quase .pbar i { background: linear-gradient(90deg, #E63946, #FFD166); }
#polHud .pbar em { position: relative; display: block; text-align: center; font: 700 11px Montserrat, system-ui, sans-serif; line-height: 16px; font-style: normal; letter-spacing: .08em; }
#polRadio { position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); top: calc(118px + env(safe-area-inset-top)); width: min(380px, calc(100% - 24px)); padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, #1F3A68, #0B1730); border: 1px solid #C9A23A; color: #E8ECF5; font: 15px Montserrat, system-ui, sans-serif; box-shadow: 0 10px 28px rgba(0,0,0,.5); animation: radioIn .35s cubic-bezier(.2,1.4,.4,1); }
#polRadio.sai { opacity: 0; transform: translate(-50%, -12px); transition: .3s; }
@keyframes radioIn { from { opacity: 0; transform: translate(-50%, -20px); } }
#polRadio .prh { display: flex; align-items: center; gap: 6px; color: #FFD166; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
#polRadio .prled { width: 8px; height: 8px; border-radius: 50%; background: #E63946; box-shadow: 0 0 8px #E63946; animation: pisca 0.8s infinite; }
@keyframes pisca { 50% { opacity: .2; } }
#polRadio p { margin: 6px 0 8px; min-height: 2.7em; }
#polRadio .prb { display: flex; gap: 8px; }
#polRadio .prb button { flex: 1; border: 0; border-radius: 10px; padding: 10px; font: 700 14px Montserrat, system-ui, sans-serif; }
#polRadio .ok { background: linear-gradient(180deg, #FFE08A, #E8B93A); color: #0B1730; }
#polRadio .no { background: rgba(255,255,255,.12); color: #E8ECF5; }
body:has(#mg) :is(#polHud, #polRadio) { visibility: hidden; }
.doc span { display: block; }
.doc.cnh > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
body:has(#polHud) #gTarget { visibility: hidden; }

/* ===== EVENTO DA HORA ===== */
#gCol { display:flex;flex-direction:column;gap:6px;min-width:0;max-width:min(64%,290px);pointer-events:none; }
#gCol #gTarget { max-width:100%; }
#gEvento { display:flex;align-items:center;gap:7px;text-align:left;padding:5px 8px;background:linear-gradient(135deg,#5B2A86,#B23A6F)!important;animation:evPulse 2.4s ease-in-out infinite; }
#gEvento[hidden] { display:none; }
#gEvIco { font-size:20px;line-height:1; }
#gEvento b { display:block;color:#FFE08A;font-size:12px;line-height:1.2; }
#gEvento small { display:block;color:#F6E7FF;font-size:10px;line-height:1.25; }
#gEvento.acaba small { color:#FFD166; }
@keyframes evPulse { 0%,100% { box-shadow:inset -2px -2px 0 rgba(0,0,0,.35),0 0 0 rgba(255,209,102,0); } 50% { box-shadow:inset -2px -2px 0 rgba(0,0,0,.35),0 0 12px rgba(255,209,102,.55); } }
body:has(#polHud) #gEvento { visibility:hidden; }

#gGestosPanel{position:fixed;right:8px;bottom:calc(158px + var(--bot));z-index:9;width:min(248px,70vw);background:#112B43;border:2px solid #52718A;border-radius:6px;padding:6px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;box-shadow:0 4px 14px #08152388}#gGestosPanel[hidden]{display:none}#gGestosPanel button{display:grid;justify-items:center;gap:2px;min-height:51px;color:white;background:#1B3A56;border:2px solid #091B2B;border-radius:4px;font:600 12px system-ui,sans-serif;padding:5px}#gGestosPanel span{font-size:23px}body.chat-open #gGestosPanel,body:has(#mg) #gGestosPanel,body:has(#tut) #gGestosPanel{display:none}#gGestos{color:#FFDA85}@media(max-height:480px){#gGestosPanel{bottom:calc(100px + var(--bot));right:110px}}

/* mini-games modernos (todos, menos Gothampari e polícia, que têm o próprio tema): vidro escuro, cantos redondos, Montserrat */
#mg:not(.gotham):not(.pol) { background: radial-gradient(ellipse at top, rgba(18,60,96,.82), rgba(4,10,24,.9)); backdrop-filter: blur(3px); }
#mg:not(.gotham):not(.pol) .mgbox { width: min(520px, 100%); border: 1.5px solid rgba(255,209,102,.45); border-radius: 18px; background: linear-gradient(180deg, #123B63, #0B1E3A); color: #EEF3FA; box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); padding: 12px; }
#mg:not(.gotham):not(.pol) .mghead b { font: 800 16px/1.15 Montserrat, system-ui, sans-serif; letter-spacing: .3px; color: #FFD166; }
#mg:not(.gotham):not(.pol) .mgx { border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font: 700 14px system-ui, sans-serif; }
#mg:not(.gotham):not(.pol) canvas { image-rendering: auto; border: 0; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1); }
#mg:not(.gotham):not(.pol) .mgmsg { font: 600 14px/1.4 Montserrat, system-ui, sans-serif; color: #D5E2F2; min-height: 2.8em; margin: 9px 2px; }
#mg:not(.gotham):not(.pol) .mgbtn { font: 800 15px/1 Montserrat, system-ui, sans-serif; letter-spacing: .4px; border: 0; border-radius: 14px; padding: 16px 10px; background: linear-gradient(180deg, #FFE08A, #FFB703); color: #10233F; box-shadow: 0 6px 18px rgba(255,183,3,.3); }
#mg:not(.gotham):not(.pol) .mgbtn:active { transform: translateY(1px) scale(.99); }

/* 37: grouped game menu, showroom and home designer */
.gp37-menuhero{background:linear-gradient(115deg,#19475c,#142d49);border:1px solid #63808f;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px;color:#fff}.gp37-menuhero b{font:700 19px/1.2 system-ui,sans-serif}.gp37-menuhero small{font:13px system-ui;color:#FFDB91}
.gp37-search{width:100%;padding:10px 12px;min-height:44px;margin:10px 0 2px;border:1px solid #5D7D93;border-radius:9px;background:#102B42;color:white;font:16px system-ui}
.gp37-menu-group h3{font:700 14px system-ui!important;color:#A8D6D3!important;margin:15px 0 6px!important}.gp37-menu-group .gameMenu{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.gp37-menu-group .gameMenu button{border:1px solid #45657E;border-radius:9px;background:linear-gradient(#23435C,#142D46);min-height:64px;font-family:system-ui}.gp37-menu-group .gameMenu b{font:600 12px/1.25 system-ui}.gp37-menu-group [hidden],.gp37-menu-group .gameMenu button[hidden]{display:none!important}
.gp37-carview{display:block;width:100%;max-width:320px;height:auto;margin:0 auto 10px;background:radial-gradient(ellipse at 50% 68%,#536879,#182837);border:1px solid #496981;border-radius:12px;image-rendering:pixelated}
.gp37-vehicle-spec{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;padding:12px;background:#17344D;border-radius:8px;margin:12px 0;font:13px system-ui}.gp37-vehicle-spec b{color:#FFD166}
.gp37-stat{height:12px;display:flex;align-items:center;gap:5px;font:10px system-ui;color:#BBD0DA}.gp37-stat i{display:block;max-width:65px;height:4px;background:#74CABD;border-radius:3px}
.gp37-decor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gp37-decor button{background:#18334A;border:1px solid #58758B;border-radius:9px;padding:10px;min-width:0;color:white;display:flex;flex-direction:column;gap:6px;text-align:left}.gp37-decor small{font:11px system-ui;color:#C6DDE2}.gp37-decor b{font:600 13px system-ui}.gp37-swatches{display:flex;height:42px;border-radius:5px;overflow:hidden;width:100%}.gp37-swatches i{flex:1}
.gp37-tour{padding:12px;margin:8px 0;background:#17344D;border:1px solid #496980;border-radius:10px;font:14px/1.4 system-ui}.gp37-tour b{color:#FFDA85}.gp37-tour small{color:#C5DBE2}
@media(max-width:350px){.gp37-menu-group .gameMenu{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* turnos (atendimentos) e aventuras no mesmo visual moderno dos mini-games */
#mg .caseBody, #mg .avBody { font: 500 15px/1.45 Montserrat, system-ui, sans-serif; color: #EEF3FA; }
#mg .caseBody h3, #mg .avBody h3 { font: 800 18px/1.3 Montserrat, system-ui, sans-serif; color: #FFD166; }
#mg .caseBody p, #mg .caseBody small { font: 500 14px/1.45 Montserrat, system-ui, sans-serif; color: #B8E0D2; }
#mg .caseOption, #mg .avGrid button { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: linear-gradient(180deg, #1A4577, #12325A); color: #fff; font: 700 15px/1.35 Montserrat, system-ui, sans-serif; box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .08s, background .2s; }
#mg .caseOption:active, #mg .avGrid button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
#mg .caseOption.certa { background: linear-gradient(180deg, #2FBF71, #1F8A50); }
#mg .caseOption.errada { background: linear-gradient(180deg, #F0606A, #B92B37); }
#mg .caseTempo { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
#mg .caseTempo i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #FFD166, #FF8C42); transform-origin: left; }
#mg .avArt { border-radius: 14px; background: radial-gradient(ellipse at top, #1E5A8E, #0E2A4C); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
#mg .digTrack { border: 0; border-radius: 14px; box-shadow: inset 0 2px 6px rgba(0,0,0,.4); background: linear-gradient(180deg, #A84A4D, #7E2F32); }
#mg .digZone { background: linear-gradient(180deg, #6BE0A0, #3FAE72); }
#mg .digNeedle { border-radius: 2px; }
#mg .avBody canvas { border-radius: 12px; image-rendering: auto; }

/* aviso oficial da equipe no chat */
#chatLog .chm.adm{background:linear-gradient(135deg,#5a3d00,#2a2200);border:2px solid #FFD166;margin:6px 0;box-shadow:0 0 10px #ffd16655;}#chatLog .chm.adm .chn{color:#FFD166;font-weight:900;}#chatLog .chm.adm span{color:#fff;font-weight:700;}#chatFeed .cf.adm{background:#3d2a00;border:2px solid #FFD166;}#chatFeed .cf.adm b{color:#FFD166;}

/* City journal and community shortcuts */
.gp43-journal{background:linear-gradient(135deg,#203c56,#352d56);border:1px solid #617b98;border-radius:14px;padding:16px;display:grid;gap:8px;color:#f4efea;margin:8px 0 14px}
.gp43-journal>span{font-size:10px;letter-spacing:1.4px;color:#d9c9ff;font-weight:800}
.gp43-journal>b{font-family:'Pixelify Sans',monospace;font-size:36px;line-height:1;color:#ffd166}
.gp43-journal>small{font-size:13px;color:#dbe5ed}
.gp43-meter{height:9px;border-radius:8px;background:#101d35;overflow:hidden}
.gp43-meter i{display:block;height:100%;background:linear-gradient(90deg,#ffbf69,#ffe7a0);border-radius:8px}
.gp43-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.gp43-stats>div{display:grid;text-align:center;background:#102b40;border:1px solid #4b687b;padding:9px 3px;border-radius:10px}
.gp43-stats b{font-size:23px;color:#ffd166}.gp43-stats small{font-size:10px;color:#d3e5ed}
.gp43-profile-actions{display:grid;gap:7px;margin-top:12px}

.gp44-filters{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.gp44-filters button{padding:8px 10px;border:1px solid #536e85;border-radius:8px;background:#162d43;color:#e5eff5;font-size:12px}.gp44-filters button.on{background:#ffd166;color:#142438;border-color:#ffd166;font-weight:700}.gp44-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:10px 0 16px}.gp44-week>div{display:grid;gap:5px;justify-items:center;background:#102b40;border:1px solid #426279;border-radius:8px;padding:6px 2px;color:#fff}.gp44-week small{font-size:10px}.gp44-week b{font-size:11px}.gp44-week i{width:14px;height:34px;border-radius:4px;background:linear-gradient(to top,#ffd166 var(--day-fill),#243b54 var(--day-fill));}.gp44-week i.full{background:#72d9ab}

.gpshub .activity .tag{min-height:36px;min-width:34px}.gpshub .activity>div{min-width:0;flex:1}.gpshub .gp43-journal>b{overflow-wrap:anywhere}

.gp46-drive .activity.selected{border:2px solid #FFD166;background:#21394e}.gp46-drive .activity strong{color:#FFD166}#gCorrer[data-driving="true"]{background:#7d303e!important;border-color:#f0b7b2!important;color:#fff!important;font-size:20px!important}

/* Social room panels */
.meeting .gp43-journal>b{overflow-wrap:anywhere}.meeting #homeGuests .activity{min-height:44px}.meeting #homeGuests .activity small{color:#B8E0D2}

.graphics52 .activity[aria-pressed=true]{border:2px solid #FFD166;background:#21394e}.graphics52 .activity strong{color:#FFD166}

.service53 .serviceTicket{display:grid;gap:6px;background:#102b40;border:1px solid #527084;border-radius:10px;padding:10px;margin:10px 0}.service53 .serviceTicket span{padding:6px;color:#c0d3e0}.service53 .serviceTicket span.next{background:#ffd166;color:#142338;border-radius:6px;font-weight:800}.service53 .serviceTicket span.done{color:#71ddae}.service53 .serviceChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.service53 .caseOption{min-height:44px;font-size:14px}.service53 .serviceFeedback{min-height:2em;color:#b9e4d7}.service53 .caseBody{max-height:70vh;overflow:auto}

#gGestosPanel{width:min(310px,calc(100vw - 16px));gap:6px;padding:9px;max-height:65vh;overflow:auto;border-radius:12px}#gGestosPanel .gestureHeading{grid-column:1/-1;display:grid;gap:2px;padding:4px;color:#fff}#gGestosPanel .gestureHeading small{font-size:10px;color:#bcd0df}#gGestosPanel button{min-height:55px;border-radius:8px;touch-action:manipulation}#gGestosPanel .gestureStop{grid-column:1/-1;display:flex;align-items:center;justify-content:center;background:#703e49;min-height:37px}#gGestosPanel .gestureStop span{font-size:15px}

.polActions55{display:flex;gap:6px;flex-wrap:wrap}.polActions55 button,#polHud .pcan{min-height:34px;padding:6px 9px}#polHud .proute{background:#1e5269;color:white;border:1px solid #72c6d9;border-radius:6px;font-weight:700}.pol .acoes button{min-height:48px}.pol .polstep{min-height:45px}.mgbox canvas{touch-action:none}

.polCentral56{display:grid;gap:8px}.polCentral56 .polbtn{min-height:44px}.communityTicket56,.inspection56,.evidence56{padding:8px;background:#203a51;color:#e4f5ff;border-radius:7px;line-height:1.4}.inspection56{font-size:13px;margin:7px 0}.evidence56{display:block;font-size:12px}.communityTicket56{border:1px solid #ffd166;font-weight:700;margin:8px 0}.pol .polstep{width:100%;margin-bottom:5px}
