:root {
  --madeira: #c97a3a;
  --madeira-esc: #7a3f17;
  --madeira-borda: #5a2c0e;
  --creme: #fbe7bd;
  --creme-esc: #efcf90;
  --texto: #4a2510;
  --verde: #5cbf3a;
  --verde-esc: #2f7d1c;
  --azul: #3f8fe0;
  --vermelho: #e0473f;
  --ouro: #ffd34a;
  --sombra: rgba(40, 18, 4, .55);
  --hud-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #2f5d23;
  color: var(--texto);
  font-family: 'Pixelify Sans', 'Trebuchet MS', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
button { font-family: inherit; cursor: pointer; }
img { image-rendering: auto; }

/* ---------- painéis de madeira ---------- */
.painel-madeira {
  background: var(--creme);
  border: 4px solid var(--madeira-borda);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--madeira), inset 0 0 0 5px var(--creme-esc), 0 6px 0 var(--sombra);
}
.btn {
  border: 3px solid var(--madeira-borda);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 var(--sombra);
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn img { width: 20px; height: 20px; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 1px 0 var(--sombra); }
.btn.verde { background: var(--verde); }
.btn.azul { background: var(--azul); }
.btn.vermelho { background: var(--vermelho); }
.btn.laranja { background: #f29a2e; }
.btn.roxo { background: #9a5cd6; }
.btn:disabled { background: #a99a86; color: #eee; cursor: not-allowed; }

/* ---------- HUD ---------- */
#hud {
  position: fixed; inset: 0 0 auto 0; height: var(--hud-h);
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(#8b4a1c, #6a3412);
  border-bottom: 4px solid var(--madeira-borda);
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
  z-index: 20;
}
.hud-perfil {
  display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: #fff; text-align: left;
}
.retrato { position: relative; width: 54px; height: 54px; flex: none; }
.retrato img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ouro); background: #6b3a14; object-fit: cover; }
.retrato .nv {
  position: absolute; left: -4px; bottom: -4px; min-width: 24px; height: 24px; padding: 0 4px;
  border-radius: 12px; background: var(--madeira); border: 2px solid var(--ouro);
  color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; text-shadow: 0 1px 0 #000;
}
.perfil-txt { display: flex; flex-direction: column; gap: 4px; }
.perfil-txt b { font-size: 16px; text-shadow: 0 2px 0 rgba(0,0,0,.4); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp { display: block; width: 110px; height: 10px; background: #3b1d08; border: 2px solid #2a1405; border-radius: 6px; overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; background: linear-gradient(#7fe0ff, #2f9be0); }

.hud-moedas, .hud-diam {
  display: flex; align-items: center; gap: 8px;
  background: var(--creme); border: 3px solid var(--madeira-borda); border-radius: 10px;
  padding: 4px 12px 4px 6px; box-shadow: inset 0 -3px 0 var(--creme-esc);
}
.hud-moedas { margin-left: auto; min-width: 200px; }
.hud-moedas img { width: 38px; height: 38px; }
.hud-moedas b { display: block; font-size: 24px; line-height: 1; }
.hud-moedas small { display: block; font-size: 13px; color: #7a5a3a; }
.hud-moedas.pulo b { animation: pulo .25s; }
.hud-diam img { width: 30px; height: 30px; }
.hud-diam b { font-size: 20px; }
.hud-botoes { display: flex; gap: 6px; margin-left: 6px; }
.btn-quad { width: 50px; height: 50px; padding: 0; border: 0; background: none; position: relative; }
.btn-quad img { width: 100%; height: 100%; border-radius: 8px; }
.btn-quad:active { transform: translateY(2px); }
.btn-quad .ponto {
  position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--vermelho); border: 2px solid #fff; animation: pisca 1s infinite;
}

/* ---------- mapa ---------- */
#viewport {
  position: fixed; inset: var(--hud-h) 0 0 0; overflow: auto;
  scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y;
}
#viewport::-webkit-scrollbar { display: none; }
#cena { position: fixed; inset: var(--hud-h) 0 0 0; z-index: 0; overflow: hidden; }
#cena canvas { display: block; }
#viewport { z-index: 1; }
body.cena-ativa #mapaImg { visibility: hidden; }
#viewport.arrastando { cursor: grabbing; }
#mundo { position: relative; transform-origin: 0 0; }
#mapaImg { display: block; width: 100%; height: auto; pointer-events: none; }
#camada { position: absolute; inset: 0; }

.setor, .constr { position: absolute; cursor: pointer; }
.setor .nevoa {
  position: absolute; inset: 0; border-radius: 10px;
  backdrop-filter: grayscale(.9) brightness(.5) blur(1.5px);
  -webkit-backdrop-filter: grayscale(.9) brightness(.5) blur(1.5px);
  background: rgba(20, 30, 10, .25);
  transition: opacity .8s, backdrop-filter .8s;
}
.setor.aberto .nevoa { opacity: 0; pointer-events: none; }
.setor.proximo .nevoa { outline: 3px dashed var(--ouro); outline-offset: -3px; animation: brilho 1.6s infinite; }
.setor:not(.aberto):not(.proximo) .placa { opacity: .8; }

.setor.aberto:hover::after, .constr:hover::after {
  content: ''; position: absolute; inset: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 3px rgba(255,240,170,.75); pointer-events: none;
}

/* placa do setor */
.placa {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -70%) scale(var(--ps, 1));
  transform-origin: 50% 100%;
  padding: 2px 3px 6px 3px;
  background: var(--creme); border: 2px solid var(--madeira-borda); border-radius: 7px;
  box-shadow: inset 0 -2px 0 var(--creme-esc), 0 2px 0 var(--sombra);
  display: flex; align-items: center; gap: 3px; z-index: 2; white-space: nowrap;
}
.placa-ico { width: 18px; height: 18px; flex: none; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.placa-ico img { width: 18px; height: 18px; }
.placa-nv { font-size: 11px; font-weight: 700; line-height: 1; }
.placa-aj { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--verde-esc); flex: none; object-fit: cover; }
.barra { position: absolute; left: 3px; right: 3px; bottom: 1px; height: 4px; background: #6b4a2a; border-radius: 2px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(#9cf06a, #3fae22); }
.barra.rapida i { width: 100% !important; background: repeating-linear-gradient(90deg, #9cf06a 0 8px, #3fae22 8px 16px); background-size: 32px 100%; animation: correr .4s linear infinite; }
.btn-up {
  border: 1px solid var(--madeira-borda); border-radius: 5px; background: #a99a86; color: #fff;
  font-size: 11px; font-weight: 700; padding: 1px 4px; display: flex; align-items: center; justify-content: center; gap: 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.4); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2);
}
.btn-up img { width: 12px; height: 12px; }
.btn-up.pode { background: var(--verde); }
.btn-up.pode:hover { filter: brightness(1.08); }
.btn-up .qtd { opacity: .9; font-weight: 500; }

/* bolha de ação (Plantar / Colher) */
.bolha {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  background: #fff; border: 3px solid var(--madeira-borda); border-radius: 12px;
  padding: 4px 8px; display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px;
  box-shadow: 0 3px 0 var(--sombra); pointer-events: none; z-index: 1; white-space: nowrap;
}
.bolha::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--madeira-borda); border-bottom: 0;
}
.bolha[hidden], .placa-aj[hidden] { display: none; }
.bolha img { width: 24px; height: 24px; }
.bolha .emo { font-size: 20px; line-height: 1; }
.bolha.colher { animation: quica .9s infinite; background: #fff6c8; }
.bolha.plantar { animation: quica 1.4s infinite; }

/* construções */
.constr .etq {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%) scale(var(--ps, 1)); transform-origin: 50% 100%;
  background: rgba(60, 30, 10, .82); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 6px; white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.constr:hover .etq, .constr.destaque .etq { opacity: 1; }
.constr.destaque .etq { background: var(--verde-esc); animation: quica 1.2s infinite; }

/* pop de moedas */
.pop {
  position: absolute; transform: translate(-50%, 0); pointer-events: none; z-index: 5;
  font-weight: 700; font-size: 18px; color: #fff6a0;
  text-shadow: 0 2px 0 #5a2c0e, 2px 0 0 #5a2c0e, -2px 0 0 #5a2c0e, 0 -2px 0 #5a2c0e;
  animation: sobe 1.1s ease-out forwards; display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.pop img { width: 18px; height: 18px; }
.brilhos { position: absolute; inset: 0; pointer-events: none; }
.brilhos span { position: absolute; font-size: 22px; animation: estrela 1s ease-out forwards; }

#voadores { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
#voadores img { position: fixed; width: 26px; height: 26px; transition: transform .7s cubic-bezier(.5,-0.3,.7,1), opacity .7s; }

/* ---------- controles ---------- */
#controles { position: fixed; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 15; }
.multi, .zoom { display: flex; background: var(--madeira-borda); border-radius: 10px; padding: 3px; gap: 3px; box-shadow: 0 3px 0 var(--sombra); }
.multi button, .zoom button {
  border: 0; border-radius: 7px; background: var(--creme); color: var(--texto); font-weight: 700; font-size: 15px;
  min-width: 46px; height: 36px; box-shadow: inset 0 -3px 0 var(--creme-esc);
}
.multi button.on { background: var(--ouro); box-shadow: inset 0 -3px 0 #c99a10; }
.zoom button { font-size: 22px; min-width: 40px; }

#boost {
  position: fixed; left: 50%; top: calc(var(--hud-h) + 10px); transform: translateX(-50%); z-index: 15;
  background: #ffe066; border: 3px solid var(--madeira-borda); border-radius: 10px; padding: 4px 12px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; box-shadow: 0 3px 0 var(--sombra);
}
#boost[hidden] { display: none; }
#boost img { width: 20px; height: 20px; }

/* ---------- missão ---------- */
#missaoCard { position: fixed; left: 12px; bottom: 12px; width: 300px; z-index: 15; padding: 0 0 10px; overflow: visible; }
.missao-topo {
  margin: -4px -4px 6px; padding: 6px 12px; border-radius: 8px 8px 0 0;
  background: linear-gradient(#b0642a, #8a4a1c); color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 2px 0 rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 8px;
}
.excl { width: 22px; height: 22px; border-radius: 5px; background: var(--ouro); color: var(--texto); display: grid; place-items: center; border: 2px solid var(--madeira-borda); text-shadow: none; }
.missao-corpo { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.missao-prog { position: relative; height: 16px; background: #6b4a2a; border: 2px solid var(--madeira-borda); border-radius: 8px; overflow: hidden; }
.missao-prog i { display: block; height: 100%; width: 0; background: linear-gradient(#ffe27a, #f2a91c); transition: width .3s; }
.missao-prog em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; text-shadow: 0 1px 0 #000; }
#missaoResgatar { margin: 8px 14px 0; width: calc(100% - 28px); animation: brilho-btn 1.2s infinite; }
#missaoResgatar[hidden] { display: none; }
#missaoCard.fechado .missao-corpo, #missaoCard.fechado #missaoResgatar { display: none; }
#missaoCard.fechado { padding-bottom: 0; width: auto; }
#missaoCard.fechado .missao-topo { margin-bottom: -4px; border-radius: 8px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: calc(var(--hud-h) + 52px); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  min-width: 240px; max-width: 90vw; padding: 8px 14px; border: 3px solid var(--madeira-borda); border-radius: 10px;
  background: var(--creme); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px;
  box-shadow: inset 0 -3px 0 var(--creme-esc), 0 4px 0 var(--sombra); animation: entra .3s ease-out, sai .4s ease-in 2.6s forwards;
}
.toast img { width: 30px; height: 30px; flex: none; }
.toast.verde { background: #d9f5c4; }
.toast.azul { background: #d3e8fb; }
.toast.vermelho { background: #fbd0cc; }

/* ---------- modal ---------- */
#modalFundo { position: fixed; inset: 0; background: rgba(20, 10, 2, .6); z-index: 60; display: grid; place-items: center; padding: 16px; }
#modalFundo[hidden] { display: none; }
#modal { width: min(460px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: entra .2s ease-out; }
.modal-titulo {
  margin: -4px -4px 0; padding: 8px 10px 8px 16px; border-radius: 8px 8px 0 0;
  background: linear-gradient(#b0642a, #8a4a1c); color: #fff; font-size: 20px; font-weight: 700; text-shadow: 0 2px 0 rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: space-between;
}
#modalFechar { width: 36px; height: 36px; border: 0; background: none; padding: 0; }
#modalFechar img { width: 100%; height: 100%; }
#modalCorpo { padding: 14px 16px 16px; overflow: auto; font-size: 16px; }
#modalCorpo p { margin: 0 0 10px; }
.linha-info { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 2px dashed var(--creme-esc); }
.linha-info:last-child { border: 0; }
.cab-setor { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.cab-setor .grande { width: 64px; height: 64px; display: grid; place-items: center; font-size: 48px; background: #fff3d6; border: 3px solid var(--madeira-borda); border-radius: 10px; }
.cab-setor .grande img { width: 52px; height: 52px; }
.botoes-modal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.botoes-modal .btn { flex: 1; }
.ajudante-box { display: flex; gap: 10px; align-items: center; background: #fff3d6; border: 3px solid var(--madeira-borda); border-radius: 10px; padding: 8px; margin-top: 12px; }
.ajudante-box img { width: 56px; height: 56px; border-radius: 8px; border: 2px solid var(--madeira-borda); }
.ajudante-box div { flex: 1; font-size: 14px; }
.lista-loja { display: flex; flex-direction: column; gap: 10px; }
.item-loja { display: flex; gap: 10px; align-items: center; background: #fff3d6; border: 3px solid var(--madeira-borda); border-radius: 10px; padding: 8px 10px; }
.item-loja .ico { font-size: 30px; width: 40px; text-align: center; }
.item-loja .ico img { width: 36px; height: 36px; }
.item-loja div { flex: 1; font-size: 14px; }
.item-loja b { font-size: 16px; display: block; }
.escolha { display: flex; gap: 14px; justify-content: center; margin: 10px 0 14px; }
.escolha button { background: #fff3d6; border: 4px solid var(--madeira-borda); border-radius: 12px; padding: 6px; }
.escolha button.on { border-color: var(--verde-esc); background: #d9f5c4; box-shadow: 0 0 0 3px var(--verde); }
.escolha img { width: 96px; height: 96px; display: block; border-radius: 8px; }
.campo { width: 100%; font-family: inherit; font-size: 18px; padding: 8px 10px; border: 3px solid var(--madeira-borda); border-radius: 8px; background: #fff; color: var(--texto); }
.lista-missoes { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lista-missoes div { padding: 6px 8px; border-radius: 8px; background: #fff3d6; border: 2px solid var(--creme-esc); display: flex; gap: 8px; align-items: center; }
.lista-missoes .feita { opacity: .55; text-decoration: line-through; }
.lista-missoes .atual { border-color: var(--madeira-borda); background: #fff9e6; font-weight: 700; }
.lista-missoes img { width: 16px; height: 16px; }
.retrato-fala { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.retrato-fala img { width: 80px; height: 80px; border-radius: 10px; border: 3px solid var(--madeira-borda); }
.grande-num { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 8px; justify-content: center; margin: 8px 0; }
.grande-num img { width: 36px; height: 36px; }
.marco { font-size: 13px; color: #7a5a3a; margin-top: 4px; }

/* ---------- animações ---------- */
@keyframes quica { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -62%); } }
@keyframes sobe { 0% { opacity: 0; margin-top: 0; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -60px; } }
@keyframes estrela { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); } }
@keyframes correr { to { background-position: 32px 0; } }
@keyframes pulo { 50% { transform: scale(1.12); } }
@keyframes pisca { 50% { transform: scale(1.25); } }
@keyframes brilho { 50% { outline-color: #fff6c8; } }
@keyframes brilho-btn { 50% { filter: brightness(1.15); } }
@keyframes entra { from { opacity: 0; transform: translateY(-12px); } }
@keyframes sai { to { opacity: 0; transform: translateY(-12px); } }

/* ---------- celular ---------- */
@media (max-width: 720px) {
  :root { --hud-h: 60px; }
  #hud { gap: 6px; padding: 6px 8px; }
  .perfil-txt { display: none; }
  .retrato, .retrato img { width: 44px; height: 44px; }
  .hud-moedas { min-width: 0; flex: 1; padding: 3px 8px 3px 4px; }
  .hud-moedas img { width: 28px; height: 28px; }
  .hud-moedas b { font-size: 18px; }
  .hud-moedas small { font-size: 11px; }
  .hud-diam { padding: 3px 8px 3px 4px; }
  .hud-diam img { width: 22px; height: 22px; }
  .hud-diam b { font-size: 16px; }
  .hud-botoes { margin-left: 0; gap: 4px; }
  .btn-quad { width: 38px; height: 38px; }
  #missaoCard { width: calc(100vw - 24px); bottom: 64px; }
  #controles { flex-direction: row; left: 12px; right: 12px; justify-content: space-between; align-items: center; }
  .multi button { min-width: 40px; font-size: 14px; }
}

/* ---------- conta ---------- */
.conta-box { margin-top: 14px; padding: 10px 12px; background: #fff3d6; border: 3px solid var(--madeira-borda); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.conta-box > span { font-size: 13px; color: #7a5a3a; }
.conta-box .campo { font-size: 16px; padding: 7px 10px; }
.conta-box .botoes-modal { margin-top: 2px; }
.conta-box small { min-height: 16px; color: var(--vermelho); font-weight: 600; text-align: center; }

/* ---------- celular deitado (pouca altura) ---------- */
@media (max-height: 500px) {
  :root { --hud-h: 50px; }
  #hud { gap: 6px; padding: 4px 8px; }
  .perfil-txt { display: none; }
  .retrato, .retrato img { width: 38px; height: 38px; }
  .retrato .nv { min-width: 18px; height: 18px; font-size: 11px; }
  .hud-moedas { min-width: 0; padding: 2px 8px 2px 4px; }
  .hud-moedas img { width: 26px; height: 26px; }
  .hud-moedas b { font-size: 17px; }
  .hud-moedas small { font-size: 10px; }
  .hud-diam { padding: 2px 8px 2px 4px; }
  .hud-diam img { width: 20px; height: 20px; }
  .hud-diam b { font-size: 15px; }
  .btn-quad { width: 36px; height: 36px; }
  #missaoCard { width: 260px; bottom: 8px; left: 8px; }
  #controles { right: 8px; bottom: 8px; gap: 4px; }
  .multi button, .zoom button { min-width: 36px; height: 30px; font-size: 13px; }
  #modal { max-height: calc(100vh - 16px); }
  #modalFundo { padding: 8px; }
  .escolha img { width: 64px; height: 64px; }
}


/* ---------- equipamentos ---------- */
.aj-bonus { font-size: 12px; color: var(--verde-esc); font-weight: 700; }
.ajudante-box .btn small { font-size: 11px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.slot { aspect-ratio: 1; border: 3px dashed #c9a46a; border-radius: 10px; background: #fff8e6; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; padding: 4px; color: #7a5a3a; font-weight: 700; font-size: 12px; }
.slot small { font-size: 10px; font-weight: 600; opacity: .8; }
.slot.cheio { border: 3px solid var(--rar); background: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 8px var(--rar); }
.slot img { width: 70%; height: auto; }
.slot.cheio small { color: var(--verde-esc); opacity: 1; }
.item { position: relative; width: 48px; height: 48px; flex: none; border: 3px solid var(--rar); border-radius: 8px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 6px var(--rar); }
.item img { width: 40px; height: 40px; border-radius: 4px; }
.item em { position: absolute; right: -6px; bottom: -6px; background: var(--madeira-borda); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 4px; border-radius: 6px; }
.item-linha { display: flex; gap: 10px; align-items: center; background: #fff3d6; border: 2px solid var(--creme-esc); border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; }
.item-linha > div { flex: 1; font-size: 14px; }
.bau-premios { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.bau-premios > div { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 120px; text-align: center; font-size: 13px; animation: entra .4s ease-out; }
.bau-premios .item { width: 72px; height: 72px; }
.bau-premios .item img { width: 60px; height: 60px; }


/* ---------- ranking na barra de cima ---------- */
.hud-rank { margin-left: 14px; display: flex; flex-direction: column; gap: 1px; background: rgba(0,0,0,.22); border: 2px solid rgba(255,211,74,.55);
  border-radius: 8px; padding: 3px 10px; color: #fff; font-family: inherit; font-size: 12px; text-align: left; line-height: 1.25; max-width: 260px; }
.hud-rank[hidden] { display: none; }
.hud-rank b { color: var(--ouro); font-size: 12px; }
.hud-rank span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-rank small { opacity: .8; }
.hud-rank .eu { color: #b9ff8a; font-weight: 700; }
.hud-rank:hover { background: rgba(0,0,0,.35); }
#btnRanking { display: none; }
@media (max-width: 1100px) { .hud-rank { display: none !important; } #btnRanking { display: block; } }
@media (max-height: 500px) { .hud-rank { display: none !important; } #btnRanking { display: block; } }
