/* Itablock — interface "Entardecer": o mundo ao vivo no fundo, texto limpo e vidro escuro. */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@600;800&family=Sora:wght@400;600;700&family=Pixelify+Sans:wght@700&display=swap');
:root {
  --ouro: #f2c218; --ipe: #ffd84a; --mata: #4fbf7f; --folha: #b6f27a; --terra: #a5512e;
  --creme: #f3efe8; --areia: #d9cbb4; --tinta: #1a1410; --perigo: #ff6b5e;
  --vidro: rgba(14, 10, 8, 0.62); --vidro-claro: rgba(255, 255, 255, 0.08); --linha: rgba(255, 255, 255, 0.16);
  --fonte: "Sora", "Segoe UI", system-ui, sans-serif;
  --titulo: "Unbounded", "Trebuchet MS", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #120c08; font-family: var(--fonte); color: var(--creme); user-select: none; -webkit-user-select: none; touch-action: none; }
#palco { position: fixed; left: 0; top: 0; width: 100vw; height: 56.25vw; overflow: hidden; background: #120c08; }
#tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
/* a interface é desenhada em 1280x720 e escalada para caber no palco 16:9 */
#ui { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; transform: scale(var(--escala, 1)); pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui > #veu, #ui > #hud, #ui > #controles-toque, #ui > #toast { pointer-events: none; }
#gire { position: fixed; left: 0; right: 0; bottom: 0; display: none; padding: 18px; text-align: center; font-size: 14px; color: var(--areia); }
@media (orientation: portrait) { body.toque #gire { display: block; } }
[hidden] { display: none !important; }
a { color: var(--ouro); }
a:hover { color: #fff; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }

/* véu: cobre o canvas enquanto o mundo da vitrine ainda está sendo montado */
#veu { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1.6s ease;
  background: radial-gradient(ellipse at 70% 40%, #6e3a1c 0%, #2a160c 55%, #120c08 100%); }
#veu.some { opacity: 0; }

.tela-cheia { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 20; padding: 24px; }
/* telas do menu: o mundo aparece atrás, escurecido do lado do texto */
.fundo-menu { background: linear-gradient(90deg, rgba(12,8,6,.9) 0%, rgba(12,8,6,.72) 45%, rgba(12,8,6,.45) 100%); }
.escurece { background: linear-gradient(90deg, rgba(12,8,6,.88) 0%, rgba(12,8,6,.55) 60%, rgba(12,8,6,.35) 100%); backdrop-filter: blur(2px); }
.escurece.vermelho { background: radial-gradient(ellipse at center, rgba(60,8,4,.55), rgba(40,4,2,.88)); }

h2 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: 32px; letter-spacing: -.5px; }
h3 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: 18px; }

/* ---------- menu principal ---------- */
.tela-menu { align-items: flex-start; justify-content: flex-start; padding: 0;
  background: linear-gradient(90deg, rgba(12,8,6,.92) 0%, rgba(12,8,6,.7) 30%, rgba(12,8,6,0) 60%), linear-gradient(0deg, rgba(12,8,6,.6) 0%, rgba(12,8,6,0) 30%); }
.marca { position: absolute; left: 72px; top: 64px; display: flex; flex-direction: column; gap: 10px; }
.logo { font-family: var(--titulo); font-weight: 800; font-size: 68px; letter-spacing: -1.5px; line-height: 1; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.logo span { color: var(--ouro); }
.biomas { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--areia); }
.biomas i { width: 28px; height: 3px; background: var(--ouro); display: inline-block; }

.menu-lista { position: absolute; left: 72px; top: 260px; display: flex; flex-direction: column; gap: 2px; width: 360px; }
.item-menu { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer;
  font-family: var(--fonte); font-weight: 600; font-size: 22px; color: var(--areia); transition: color .15s, transform .15s; }
.item-menu::before { content: ""; width: 4px; height: 0; background: var(--ouro); transition: height .15s; }
.item-menu:hover, .item-menu:focus-visible, .item-menu.primeiro { color: #fff; }
.item-menu:hover { transform: translateX(4px); }
.item-menu:hover::before, .item-menu:focus-visible::before, .item-menu.primeiro::before { height: 28px; }
.item-menu.primeiro { font-weight: 700; font-size: 27px; }
.menu-lista:hover .item-menu.primeiro:not(:hover) { color: var(--areia); }
.menu-lista:hover .item-menu.primeiro:not(:hover)::before { height: 0; }

.cartao-ultimo { position: absolute; left: 72px; bottom: 64px; width: 400px; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; cursor: pointer;
  background: var(--vidro-claro); border: 1px solid var(--linha); backdrop-filter: blur(10px); transition: background .15s, border-color .15s; }
.cartao-ultimo:hover { background: rgba(255,255,255,.14); border-color: rgba(242,194,24,.6); }
.cartao-ultimo img { width: 112px; height: 63px; border-radius: 8px; object-fit: cover; background: #3d2210; flex-shrink: 0; image-rendering: auto; }
.cartao-ultimo .nome { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-ultimo .det { font-size: 13px; color: var(--areia); }
.rotulo-ouro { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ouro); }

.perfil { position: absolute; right: 40px; top: 36px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--vidro); border: 1px solid var(--linha); cursor: text; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2f8f5b; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.perfil input { all: unset; width: 140px; font-family: var(--fonte); font-weight: 600; font-size: 14px; color: #fff; }
.perfil input::placeholder { color: var(--areia); }
.rodape { position: absolute; left: 40px; bottom: 36px; font-size: 12px; color: var(--areia); display: flex; gap: 18px; }

/* ---------- caixas, campos e botões (telas secundárias) ---------- */
.caixa { display: flex; flex-direction: column; gap: 12px; width: 380px; padding: 20px; border-radius: 16px; background: var(--vidro); border: 1px solid var(--linha); backdrop-filter: blur(10px); }
.caixa.larga { width: 540px; }
.caixa.sem-fundo { background: none; border: 0; backdrop-filter: none; padding: 0; }
.campo { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 13px; color: var(--areia); letter-spacing: .3px; }
.campo input[type=text], .campo input:not([type]), .campo input[type=password] { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--linha); background: rgba(255,255,255,.07); color: #fff; outline: none; }
.campo input:focus { border-color: var(--ouro); background: rgba(255,255,255,.1); }
.campo input[type=range] { accent-color: var(--ouro); }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 14px; color: var(--creme); }
.check input { accent-color: var(--ouro); width: 16px; height: 16px; }
.botao { font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .3px; padding: 12px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--linha); background: rgba(255,255,255,.08); color: var(--creme); transition: background .15s, border-color .15s, transform .1s; }
.botao:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.botao:active { transform: translateY(1px); }
.botao.principal { background: var(--ouro); color: var(--tinta); border-color: var(--ouro); font-weight: 700; }
.botao.principal:hover { background: var(--ipe); }
.botao.destaque { background: #2f8f5b; border-color: #3fae70; color: #fff; }
.botao.destaque:hover { background: #3aa368; }
.botao.pequeno { font-size: 12px; padding: 7px 11px; border-radius: 8px; }
.linha-botoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.escolha { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--linha); width: fit-content; flex-wrap: wrap; }
.escolha button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 7px; border: 0; background: none; color: var(--areia); cursor: pointer; }
.escolha button:hover { color: #fff; }
.escolha button.ativo { background: var(--ouro); color: var(--tinta); font-weight: 700; }
.aviso-pequeno { font-size: 13px; color: var(--areia); max-width: 560px; text-align: center; line-height: 1.5; }
.caixa .aviso-pequeno { text-align: left; }
.rotulo { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ouro); margin: 10px 0 6px; }

/* telas secundárias com cabeçalho alinhado à esquerda */
.tela-secundaria { align-items: flex-start; padding-left: 72px; }
.tela-secundaria > h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--ouro); margin-bottom: 12px; }

/* lista de mundos */
.lista { display: flex; flex-direction: column; gap: 8px; width: 920px; }
.lista.pequena { width: 100%; }
.paginas { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--areia); margin-top: 4px; }
.paginas .botao { min-width: 40px; font-size: 16px; padding: 4px 10px; }
.paginas .botao:disabled { opacity: .3; cursor: default; }
.mundo-item, .lista-item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: var(--vidro); border: 1px solid var(--linha); backdrop-filter: blur(8px); }
.mundo-item { flex-wrap: nowrap; transition: border-color .15s; padding: 8px 10px; }
.mundo-item:hover { border-color: rgba(242,194,24,.5); }
.mundo-item img { width: 104px; height: 58px; object-fit: cover; border-radius: 8px; background: #3d2210; image-rendering: auto; }
.mundo-item .txt { flex: 1; min-width: 0; }
.mundo-item .nome { font-weight: 700; font-size: 17px; }
.mundo-item .det { font-size: 12px; color: var(--areia); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mundo-item .acoes { display: flex; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
#trofeus .lista, #convidar .lista { width: 640px; }
.vazio { text-align: left; color: var(--areia); padding: 24px; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 7;   /* acima da área do analógico (z 6): barra de itens, tutorial e botão de ação recebem o toque */ text-shadow: 0 1px 4px rgba(0,0,0,.55); }
#mira { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
#quebra { position: absolute; left: 50%; top: calc(50% + 16px); transform: translateX(-50%); width: 56px; height: 4px; background: rgba(0,0,0,.45); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .1s; }
#quebra-b { height: 100%; width: 0; background: var(--ouro); }

#bussola { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 420px; height: 40px; border-radius: 12px; background: rgba(12,8,6,.5); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
#bussola-faixa { position: absolute; inset: 0; }
#bussola-faixa span { position: absolute; top: 36%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--areia); white-space: nowrap; }
#bussola-faixa span.n { color: #fff; font-weight: 700; }
#bussola-faixa span.lago { top: 76%; color: #7fd8f0; font-size: 10px; letter-spacing: .5px; }
#bussola::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 6px; margin-left: -1px; background: var(--ouro); }

#info-topo { position: absolute; top: 18px; left: 24px; }
#info-hora { font-weight: 700; font-size: 26px; line-height: 1.1; }
.info-linha { font-size: 13px; color: #f3e3c4; }
#info-rede { font-size: 12px; color: #9fe0bf; margin-top: 4px; }

#karma-xp { position: absolute; top: 16px; right: 24px; display: flex; align-items: center; gap: 12px; text-align: right; }
#karma-txt { font-weight: 700; font-size: 14px; }
#nivel-txt { font-size: 12px; color: #f3e3c4; }
#anel { width: 52px; height: 52px; flex-shrink: 0; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
#anel-xp { transition: stroke-dashoffset .4s, stroke .4s; }

#avisos { position: absolute; right: 24px; top: 92px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.aviso { background: var(--vidro); border-left: 3px solid var(--ouro); padding: 10px 14px; border-radius: 10px; font-size: 14px; animation: aparece .25s ease-out, some 5s forwards; max-width: 340px; text-shadow: none; backdrop-filter: blur(6px); }
.aviso.ruim { border-left-color: var(--perigo); }
@keyframes aparece { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes some { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }

#barras { position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); display: flex; gap: 18px; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; white-space: nowrap; }
.stat { display: flex; align-items: center; gap: 6px; }
.stat .b { width: 110px; height: 6px; background: rgba(0,0,0,.45); border-radius: 3px; overflow: hidden; }
.stat .b div { height: 100%; width: 100%; transition: width .2s; border-radius: 3px; }
.stat .nome { color: #f3e3c4; }
#b-vida { background: var(--perigo); } #b-fome { background: #e0a90c; } #b-sede { background: #5fd0f0; } #b-folego { background: #dff3ff; }
.ic { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ic.vida { background: var(--perigo); } .ic.fome { background: #e0a90c; } .ic.sede { background: #5fd0f0; } .ic.folego { background: #dff3ff; border-radius: 50%; }
.stat.baixo .nome { color: var(--perigo); animation: pisca 1s infinite; }
@keyframes pisca { 50% { opacity: .4; } }

#barra-rapida { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 5px; padding: 6px; border-radius: 14px; background: rgba(12,8,6,.45); backdrop-filter: blur(6px); pointer-events: auto; }
.espaco { width: 50px; height: 50px; background: rgba(255,255,255,.07); border-radius: 10px; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.espaco.sel { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px var(--ouro); }
.espaco.marcado { box-shadow: inset 0 0 0 2px #5fd0c0; }
.espaco img, .espaco .cor { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 3px; }
.espaco .qtd { position: absolute; right: 5px; bottom: 2px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.espaco .dur { position: absolute; left: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--mata); }
#item-nome { position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%); font-weight: 600; font-size: 15px; transition: opacity .4s; }

#vinheta-agua { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,90,110,.15), rgba(5,40,60,.65)); opacity: 0; transition: opacity .25s; }
#flash-dano { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(200,0,0,.5)); opacity: 0; transition: opacity .3s; }
.dica { position: absolute; bottom: 140px; left: 50%; transform: translateX(-50%); font-size: 12px; background: var(--vidro); padding: 8px 12px; border-radius: 10px; max-width: 1180px; text-align: center; animation: some 14s forwards; text-shadow: none; color: var(--areia); }

/* ---------- inventário ---------- */
.painel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 15; background: rgba(14,10,8,.82); border: 1px solid var(--linha); border-radius: 18px; padding: 18px; width: 880px; max-height: 690px; overflow: hidden; backdrop-filter: blur(12px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.painel-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fechar { font: inherit; font-size: 18px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--linha); color: var(--creme); cursor: pointer; }
.fechar:hover { background: rgba(255,255,255,.18); }
.inv-colunas { display: grid; grid-template-columns: auto 1fr; gap: 22px; }
.grade { display: grid; grid-template-columns: repeat(9, 50px); gap: 4px; }
.receitas { display: flex; flex-direction: column; gap: 6px; }
.receita { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); cursor: pointer; border: 1px solid transparent; }
.receita.pode { border-color: rgba(79,191,127,.55); }
.receita.pode:hover { background: rgba(79,191,127,.14); }
.receita.nao { opacity: .45; cursor: default; }
.receita img, .receita .cor { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 3px; }
.receita .nome { font-weight: 600; }
.receita .ing { font-size: 12px; color: var(--areia); }
.receita .onde { margin-left: auto; font-size: 11px; color: var(--areia); }

.codigo-grande { font-family: var(--titulo); font-size: 48px; font-weight: 800; letter-spacing: 4px; text-align: center; color: var(--ouro); }
#toast { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 6px; align-items: center; }
#morte-causa { color: #ffd1c9; font-size: 16px; }

/* ---------- carregando ---------- */
#carregando { background: radial-gradient(ellipse at 70% 40%, #6e3a1c 0%, #2a160c 55%, #120c08 100%); }
.barra { width: 320px; height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
#carregando-barra { height: 100%; width: 10%; background: var(--ouro); transition: width .3s; }
#carregando-texto { font-size: 13px; color: var(--areia); letter-spacing: 1px; }

/* ---------- toque (celular) ---------- */
#controles-toque { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
#controles-toque button { pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); background: rgba(12,8,6,.38); color: #fff; padding: 0; backdrop-filter: blur(4px); -webkit-tap-highlight-color: transparent; }
#controles-toque button svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#controles-toque button.ativo, #controles-toque button:active { background: rgba(242,194,24,.35); border-color: var(--ouro); }
/* joystick flutuante: aparece onde o polegar encosta na metade esquerda */
.zona-joy { position: absolute; left: 0; top: 140px; width: 44%; bottom: 0; pointer-events: auto; touch-action: none; }
.joy { position: absolute; left: 90px; bottom: 120px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.22); transition: opacity .2s; opacity: .55; }
.joy.ativo { opacity: 1; transition: none; }
.joy-pino { position: absolute; left: 62px; top: 62px; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.35); }
.toque-topo { position: absolute; right: 96px; top: 20px; display: flex; gap: 14px; }
.toque-topo button { width: 64px; height: 64px; }
.toque-acoes { position: absolute; right: 0; bottom: 0; width: 360px; height: 420px; }
.toque-acoes button { position: absolute; }
.b-acao { right: 56px; bottom: 140px; width: 136px; height: 136px; background: rgba(12,8,6,.45) !important; }
.b-usar { right: 214px; bottom: 236px; width: 96px; height: 96px; }
.b-pular { right: 214px; bottom: 112px; width: 96px; height: 96px; }
.b-correr { right: 86px; bottom: 302px; width: 76px; height: 76px; }
body.toque #avisos { top: 108px; right: 380px; }
body.toque #karma-xp { right: 24px; top: 96px; }
body.toque #karma-xp > div { display: none; }
/* celular: HUD um pouco maior para continuar legível com a tela reduzida */
body.toque #barra-rapida { bottom: 16px; }
body.toque .espaco { width: 64px; height: 64px; } body.toque .espaco img, body.toque .espaco .cor { width: 40px; height: 40px; }
body.toque #barras { bottom: 100px; font-size: 16px; } body.toque .stat .b { height: 9px; }
body.toque #info-hora { font-size: 34px; } body.toque .info-linha { font-size: 17px; }
body.toque #karma-txt { font-size: 18px; } body.toque #nivel-txt { font-size: 15px; }
body.toque .aviso { font-size: 18px; }
body.toque #dica-pc { display: none; }

/* personagem */
.fundo-lateral { background: linear-gradient(90deg, rgba(12,8,6,.92) 0%, rgba(12,8,6,.75) 36%, rgba(12,8,6,0) 58%); }
.linha-pers { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--areia); font-weight: 600; }
.cores { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.cores button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.cores button.ativo { border-color: var(--ouro); box-shadow: 0 0 0 2px var(--ouro); }
.linha-pers .escolha button { font-size: 12px; padding: 6px 10px; }
.linha-pers .escolha { flex-wrap: wrap; justify-content: flex-end; }
.linha-pers.apagada { opacity: .45; }
.abas-pers { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.abas-pers button { flex: 1; font-family: var(--fonte); font-weight: 700; font-size: 13px; padding: 8px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: var(--areia); cursor: pointer; }
.abas-pers button.ativo { background: var(--ouro); color: #1a120c; border-color: var(--ouro); }
.abas-pers button.sortear { flex: 0 0 auto; }
.aviso-pers { font-size: 12px; color: var(--ouro); line-height: 1.4; }
body.toque .abas-pers button { font-size: 16px; padding: 10px 8px; }

/* personagem v0.6.47: abas com ícone, seções, cartões com miniatura e área de girar */
#personagem h2 { margin-bottom: 10px; }
#pers-opcoes { width: 540px; gap: 12px; padding: 16px 18px; position: relative; z-index: 2; }
#personagem .pers-rodape { display: flex; gap: 10px; position: relative; z-index: 2; }
#personagem .pers-rodape .principal { width: 220px; }
#personagem .pers-rodape .botao:not(.principal) { width: 150px; }
.pers-abas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pers-aba { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--areia); font-family: var(--fonte); cursor: pointer; transition: background .15s, transform .1s; }
.pers-aba .ico { font-size: 22px; line-height: 1; }
.pers-aba .rot { font-size: 12px; font-weight: 700; }
.pers-aba:hover { background: rgba(255,255,255,.1); }
.pers-aba.ativo { background: linear-gradient(180deg, #f6cf3a, #e0a816); color: #1a120c; border-color: #f6cf3a; box-shadow: 0 4px 14px rgba(242,194,24,.3); }
.pers-secoes { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; }
.pers-secoes button { font-family: var(--fonte); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(243,227,196,.8); cursor: pointer; }
.pers-secoes button.ativo { background: rgba(242,194,24,.16); border-color: var(--ouro); color: var(--ouro); }
.pers-aviso { font-size: 12px; color: var(--ouro); line-height: 1.4; }
.pers-grade { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.pers-cartao { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 3px 6px; border-radius: 12px; border: 2px solid rgba(255,255,255,.08); background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.12), rgba(255,255,255,.03) 70%); cursor: pointer; color: var(--areia); font-family: var(--fonte); transition: transform .1s, border-color .15s; }
.pers-cartao:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.pers-cartao img, .pers-cartao .vazio { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: auto; }
.pers-cartao .vazio { display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(255,255,255,.35); }
.pers-cartao .nome { font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; min-height: 24px; display: flex; align-items: center; }
.pers-cartao.ativo { border-color: var(--ouro); background: radial-gradient(circle at 50% 35%, rgba(242,194,24,.3), rgba(242,194,24,.06) 70%); }
.pers-cartao.ativo::after { content: '✓'; position: absolute; top: 4px; right: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--ouro); color: #1a120c; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.pers-cores { display: flex; align-items: center; gap: 12px; }
.pers-cores .rot { font-size: 13px; font-weight: 700; color: var(--areia); width: 44px; }
.pers-cores .bolas { display: flex; gap: 7px; flex-wrap: wrap; }
.pers-cores .bolas button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: transform .1s; }
.pers-cores .bolas button:hover { transform: scale(1.1); }
.pers-cores .bolas button.ativo { border-color: #fff; box-shadow: 0 0 0 2px var(--ouro); transform: scale(1.12); }
#pers-giro { position: absolute; left: 600px; right: 0; top: 0; bottom: 190px; cursor: grab; touch-action: none; z-index: 1; }
#pers-giro:active { cursor: grabbing; }
#pers-dica { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(12,8,6,.6); color: var(--areia); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
#pers-dica.some { opacity: 0; }
body.toque .pers-aba .rot { font-size: 14px; } body.toque .pers-cartao .nome { font-size: 12.5px; } body.toque .pers-cores .bolas button { width: 34px; height: 34px; }

/* dica que aparece só na primeira vez */
#dica-unica { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); max-width: 520px; padding: 12px 18px; border-radius: 14px; background: var(--vidro); border: 1px solid rgba(242,194,24,.55); backdrop-filter: blur(8px); text-align: center; text-shadow: none; animation: desce .35s ease-out; }
#dica-unica .dica-tit { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ouro); margin-bottom: 4px; }
#dica-unica .dica-txt { font-size: 15px; line-height: 1.5; }
#dica-unica kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); border-bottom-width: 3px; background: rgba(255,255,255,.1); font-family: var(--fonte); font-weight: 700; font-size: 14px; }
#dica-unica.saindo { opacity: 0; transition: opacity .5s; }
@keyframes desce { from { transform: translate(-50%, -12px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
body.toque #dica-unica { top: 100px; max-width: 600px; } body.toque #dica-unica .dica-txt { font-size: 19px; }
#controles-toque button.chama { animation: chama 1.2s ease-in-out infinite; }
@keyframes chama { 50% { box-shadow: 0 0 0 8px rgba(242,194,24,.45); border-color: var(--ouro); } }

/* mapa */
#mapa { padding: 0; background: #0c1a24; }
#mapa-tela { position: absolute; inset: 0; width: 1280px; height: 720px; touch-action: none; cursor: grab; }
#mapa-tela:active { cursor: grabbing; }
.mapa-topo { position: absolute; left: 24px; top: 24px; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: rgba(12,8,6,.72); backdrop-filter: blur(6px); }
.mapa-reg { font-size: 14px; color: var(--areia); margin-top: 4px; }
.mapa-botoes { position: absolute; right: 24px; top: 24px; display: flex; gap: 8px; }
.mapa-botoes .botao { min-width: 48px; background: rgba(12,8,6,.7); }
.mapa-botoes .botao.principal { background: var(--ouro); }
.mapa-legenda { position: absolute; left: 32px; bottom: 20px; font-size: 12px; color: var(--areia); background: rgba(12,8,6,.6); padding: 6px 10px; border-radius: 8px; }
body.toque .so-pc { display: none; }
#regiao-nova { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); text-align: center; animation: regiao 4.5s ease forwards; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
#regiao-nova .rn-rot { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ouro); }
#regiao-nova .rn-nome { font-family: var(--titulo); font-weight: 600; font-size: 34px; }
@keyframes regiao { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 75% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; } }

/* logo em blocos (texto em pixel com grama e terra embaixo) */
.logo-bloco { position: relative; display: inline-flex; flex-direction: column; align-items: stretch; filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
.lb-texto { font-family: 'Pixelify Sans', var(--titulo); font-weight: 700; font-size: 78px; line-height: .9; letter-spacing: 1px; padding: 0 10px 6px;
  -webkit-text-stroke: 4px #2a1606; paint-order: stroke fill; text-shadow: 0 4px 0 #6b3d1c, 0 8px 0 #4a2a12, 0 11px 0 #2a1606; }
.lb-ita { color: #f6e7c6; }
.lb-block { color: #f7c51e; }
.lb-chao { height: 26px; margin: 0 2px; border: 3px solid #2a1606; border-radius: 3px; box-shadow: 0 5px 0 #2a1606;
  background:
    repeating-linear-gradient(90deg, #4f8f26 0 6px, transparent 6px 15px) 0 9px / 100% 5px no-repeat,
    linear-gradient(#93d84c 0 4px, #6cb236 4px 9px, transparent 9px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, #b4582c 0 9px, #9a4524 9px 17px, #c86a33 17px 26px) 0 0 / 100% 100%; }
.lb-broto { position: absolute; right: 2px; top: -26px; width: 42px; height: 36px; image-rendering: pixelated; }
.logo-bloco.pequeno .lb-texto { font-size: 60px; }
.logo-bloco.pequeno .lb-chao { height: 20px; }

#bussola-faixa span.mochila { color: #ffd84a; }

/* munição */
#municao { position: absolute; left: calc(50% + 268px); bottom: 20px; text-align: left; min-width: 110px; }
#municao .m-num { font-size: 15px; color: #f3e3c4; }
#municao .m-carga { font-size: 30px; font-weight: 700; color: #fff; }
#municao .m-tipo { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--areia); }
#municao .m-barra { width: 90px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.45); margin-top: 4px; overflow: hidden; }
#municao .m-barra div { height: 100%; width: 0; background: var(--ouro); }
body.toque #municao { left: calc(50% + 320px); bottom: 26px; }
.b-recarregar { right: 314px; bottom: 150px; width: 76px; height: 76px; }

/* marcador de acerto (tiro que pegou num bicho ou bandido) */
#acerto { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; opacity: 0; }
#acerto i { position: absolute; width: 3px; height: 9px; margin: -4.5px 0 0 -1.5px; background: #fff; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
#acerto i:nth-child(1) { transform: rotate(45deg) translateY(-11px); }
#acerto i:nth-child(2) { transform: rotate(135deg) translateY(-11px); }
#acerto i:nth-child(3) { transform: rotate(225deg) translateY(-11px); }
#acerto i:nth-child(4) { transform: rotate(315deg) translateY(-11px); }
#acerto.on { animation: acerto .28s ease-out; }
#acerto.morte i { background: #ff5a3c; height: 12px; }
#acerto.morte.on { animation: acerto-morte .45s ease-out; }
@keyframes acerto { 0% { opacity: 1; transform: scale(1.35); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes acerto-morte { 0% { opacity: 1; transform: scale(1.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.2); } }

/* ---------- história do começo ---------- */
#historia { z-index: 55; background: radial-gradient(ellipse at center, rgba(20,12,6,.55) 0%, rgba(8,5,2,.94) 75%); padding: 0; cursor: pointer; transition: opacity .45s; }
#historia.saindo { opacity: 0; }
#historia .h-cena { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; }
#historia .h-cena.ativa { display: flex; }
.h-pular { position: absolute; top: 22px; right: 26px; z-index: 2; background: rgba(0,0,0,.35); color: var(--areia); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; font-size: 15px; cursor: pointer; }
.h-avancar { position: absolute; right: 36px; bottom: 30px; z-index: 2; background: #e8b24a; color: #2a1606; border: 0; border-radius: 10px; padding: 14px 26px; font-family: var(--titulo); font-weight: 800; font-size: 19px; letter-spacing: .5px; cursor: pointer; box-shadow: 0 6px 0 #9c6a1c, 0 10px 24px rgba(0,0,0,.4); animation: h-pulsa 1.6s ease-in-out infinite; }
@keyframes h-pulsa { 50% { transform: translateY(-2px); } }

.h-jornal { width: 760px; height: 600px; box-sizing: border-box; padding: 22px 30px 18px; color: #2b2116; font-family: Georgia, 'Times New Roman', serif;
  background: radial-gradient(ellipse at 30% 20%, #f4ead2 0%, #e9dbb7 60%, #d9c597 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 60px rgba(120,84,30,.35);
  transform: rotate(-2deg); animation: h-gira 1.1s cubic-bezier(.2,.8,.25,1) both; position: relative; }
.h-jornal::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(90,60,20,.035) 0 2px, transparent 2px 4px); }
@keyframes h-gira { 0% { transform: rotate(-740deg) scale(.05); opacity: 0; } 70% { opacity: 1; } 100% { transform: rotate(-2deg) scale(1); } }
.h-faixa { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; border-bottom: 1px solid #5a4630; padding-bottom: 4px; }
.h-faixa span:nth-child(2) { color: #a3261b; font-weight: 700; letter-spacing: 4px; }
.h-titulo-jornal { text-align: center; font-size: 46px; font-weight: 700; font-family: 'Old English Text MT', 'UnifrakturMaguntia', Georgia, serif; line-height: 1.1; padding: 4px 0 6px; border-bottom: 4px double #3c2e1e; }
.h-manchete { margin: 12px 0 4px; text-align: center; font-size: 42px; line-height: 1; font-weight: 900; letter-spacing: -1px; font-family: Impact, 'Arial Black', Georgia, sans-serif; color: #1d150d; }
.h-linha-fina { margin: 6px 0 10px; text-align: center; font-size: 17px; font-style: italic; border-bottom: 1px solid #5a4630; padding-bottom: 10px; }
.h-colunas { display: flex; gap: 22px; }
.h-col { flex: 1; font-size: 15.5px; line-height: 1.38; text-align: justify; }
.h-col p { margin: 0 0 9px; }
.h-figura { width: 210px; margin: 0; text-align: center; }
#h-muiraquita { width: 176px; height: 176px; image-rendering: pixelated; background: radial-gradient(circle, #efe3c4, #d8c393); border: 2px solid #3c2e1e; padding: 8px; filter: sepia(.25) contrast(1.05); }
.h-figura figcaption { font-size: 12.5px; font-style: italic; margin-top: 6px; line-height: 1.3; }
.h-anuncio { position: absolute; left: 30px; right: 30px; bottom: 18px; border: 2px solid #3c2e1e; padding: 8px 12px; font-size: 14.5px; text-align: center; background: rgba(255,250,235,.35); }

.h-legenda { gap: 18px; padding: 0 160px; text-align: center; }
.h-legenda p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 26px; line-height: 1.35; color: #e9dcc0; text-shadow: 0 2px 12px rgba(0,0,0,.8); min-height: 1.35em; }
.h-legenda .h-grande { font-family: var(--titulo); font-weight: 700; font-size: 38px; color: #fff3d6; letter-spacing: -.5px; }
.h-legenda .h-alerta { font-size: 22px; color: #e8b24a; font-style: italic; }
.linha-botoes { display: flex; gap: 10px; }
.linha-botoes .botao { flex: 1; }

/* sensores (dano, sons, furtividade) */
#sensores { position: absolute; inset: 0; width: 1280px; height: 720px; pointer-events: none; }
.b-agachar { right: 176px; bottom: 350px; width: 68px; height: 68px; }
.b-descer { right: 176px; bottom: 350px; width: 76px; height: 76px; }
.campo-duplo { display: flex; gap: 14px; }
.campo-duplo .campo { flex: 1; }

/* ---------- Rplay Ads ---------- */
#anuncio-banner { position: fixed; z-index: 30; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); }
#anuncio-banner[hidden] { display: none; }
#anuncio-banner img { width: 100%; height: 100%; object-fit: contain; display: block; }
#anuncio-banner span { position: absolute; left: 4px; top: 4px; font: 600 10px/1 var(--fonte); color: #fff; background: rgba(0,0,0,.55); padding: 3px 5px; border-radius: 3px; letter-spacing: .5px; }
#anuncio-premio { position: absolute; inset: 0; z-index: 70; background: #000; display: flex; align-items: center; justify-content: center; }
#anuncio-premio[hidden] { display: none; }
#anuncio-premio .ap-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: pointer; }
#anuncio-premio .ap-topo { position: absolute; left: 0; right: 0; top: 0; height: 64px; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: space-between; padding: 0 96px 0 24px; box-sizing: border-box; font: 700 18px var(--fonte); color: #fff; z-index: 1; }
#anuncio-premio .ap-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.25); }
#anuncio-premio .ap-barra i { display: block; height: 100%; width: 0; background: #fff; }
#anuncio-premio .ap-fechar { position: absolute; right: 12px; top: 8px; width: 48px; height: 48px; border-radius: 10px; border: 0; background: rgba(0,0,0,.78); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; z-index: 2; }
.botao-anuncio { margin-top: 4px; border: 2px solid #c8ffdc; border-radius: 10px; background: #46be78; color: #08200f; font: 800 16px var(--fonte); letter-spacing: .3px; padding: 12px 20px; cursor: pointer; }
.botao-anuncio:hover { background: #55d088; }
.nota-anuncio { font-size: 13px; color: #9fe3b8; margin-top: -6px; }

/* ---------- base reservada para o banner (v0.5.1) ----------
   O banner fica centralizado na base (640×160 no desenho de 1280×720). Os menus sobem e ficam mais largos
   para nunca passar por baixo dele, com ou sem anúncio (assim nada "pula" quando o anúncio chega). */
#mundos, #criar, #entrar, #personagem, #atributos, #opcoes, #pausa, #convidar, #trofeus, #memorias, #morte { padding-bottom: 186px; box-sizing: border-box; }
#criar .caixa, #opcoes .caixa { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 12px; width: 760px; align-items: start; }
#criar .caixa .linha-botoes, #opcoes .caixa .linha-botoes { grid-column: 2; }
#opcoes .caixa > .voltar { grid-column: 2; }
#opcoes .caixa .aviso-pequeno { grid-column: 1; }
#ui.com-banner #toast { bottom: 190px; }

/* mouse livre (navegador que não deixa travar): cursor some em cima do jogo */
body.mouse-livre canvas { cursor: none; }
body.mouse-livre #palco:has(#hud:not([hidden])) #ui { cursor: none; }

/* menu principal: o cartão "Último mundo" fica acima da faixa do banner (v0.5.3) */
.menu-lista { top: 196px; }
.cartao-ultimo { bottom: 180px; }

/* ---------- Diário de campo (memórias) ---------- */
#memorias h2 small { font-family: var(--fonte); font-weight: 500; font-size: 15px; color: var(--areia); margin-left: 12px; letter-spacing: 0; }
.mem-corpo { display: flex; gap: 22px; align-items: flex-start; }
.mem-esq { width: 520px; display: flex; flex-direction: column; gap: 10px; }
#memorias .abas { align-self: flex-start; }
#memorias .abas span { opacity: .7; font-size: 12px; margin-left: 4px; }
#mem-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mem-carta { height: 118px; border-radius: 12px; border: 1px solid var(--linha); background: var(--vidro); color: var(--creme); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 6px; font: 600 13px var(--fonte); }
.mem-carta img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.mem-carta .sem-img { width: 72px; height: 72px; }
.mem-carta.oculta img { filter: brightness(0) opacity(.45); }
.mem-carta.oculta span { color: rgba(255,255,255,.4); }
.mem-carta.sel { border-color: var(--ouro); box-shadow: 0 0 0 2px rgba(242,194,24,.35) inset; }
.mem-carta:hover { background: rgba(255,255,255,.12); }
#mem-navegacao { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--areia); }
#mem-detalhe { width: 400px; min-height: 300px; padding: 16px 18px; border-radius: 16px; background: var(--vidro); border: 1px solid var(--linha); display: flex; flex-direction: column; gap: 6px; }
#mem-detalhe .mem-foto { height: 120px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); border-radius: 12px; }
#mem-detalhe .mem-foto img { height: 116px; width: 116px; object-fit: contain; image-rendering: pixelated; }
#mem-detalhe.oculta .mem-foto img { filter: brightness(0) opacity(.45); }
#mem-detalhe h3 { font-size: 22px; }
#mem-detalhe .mem-cient { font-style: italic; color: var(--areia); font-size: 13px; }
#mem-detalhe .mem-onde { font-size: 13px; color: #cfe8c8; }
#mem-detalhe p { margin: 2px 0 0; font-size: 14px; line-height: 1.42; }
#mem-detalhe .mem-data { font-size: 11px; color: var(--areia); margin-top: auto; }
/* cartão "Memória desbloqueada" */
#memoria-nova { position: absolute; left: 24px; top: 96px; width: 312px; display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(18,12,8,.82); border: 1px solid rgba(242,194,24,.6); box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; z-index: 8; }
#memoria-nova[hidden] { display: none; }
#memoria-nova img { width: 58px; height: 58px; object-fit: contain; image-rendering: pixelated; background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%); border-radius: 10px; }
#memoria-nova small { display: block; color: var(--ouro); font-weight: 700; letter-spacing: 1.4px; font-size: 11px; }
#memoria-nova b { display: block; font-size: 19px; color: #fff; margin: 1px 0; }
#memoria-nova span { font-size: 12px; color: var(--areia); }
#memoria-nova.entra { animation: mem-entra .45s cubic-bezier(.2,.9,.3,1.2) both; }
#memoria-nova.sai { animation: mem-sai .38s ease-in both; }
@keyframes mem-entra { from { transform: translateX(-340px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mem-sai { to { transform: translateX(-340px); opacity: 0; } }

/* ---------- GPS (minimapa moderno, v0.5.6) ---------- */
#minimapa { position: static; width: 220px; height: 140px; border: 0; border-radius: 0; box-shadow: none; background: transparent; display: block; }
#gps { position: absolute; right: 24px; top: 80px; width: 220px; border-radius: 18px; background: rgba(16,20,24,.86); box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.14) inset; pointer-events: auto; cursor: pointer; }
#gps[hidden] { display: none; }
#gps .gps-rodape { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px 7px; font: 600 12px var(--fonte); color: #eef3f7; }
#gps .gps-rodape span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gps #gps-rumo { color: #8fd0ff; flex: none; }
#gps .gps-tecla { flex: none; font: 700 10px var(--fonte); color: #fff; background: rgba(255,255,255,.16); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
#btn-mapa-hud { position: absolute; right: 24px; top: 80px; height: 40px; min-width: 40px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border-radius: 12px; border: 0; background: rgba(16,20,24,.78); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset; pointer-events: auto; cursor: pointer; font: 700 12px var(--fonte); }
#btn-mapa-hud svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
#btn-mapa-hud[hidden] { display: none; }
body.toque #btn-mapa-hud { display: none; }
body.toque #gps { top: 150px; width: 180px; }
body.toque #minimapa { width: 180px; height: 115px; }
body:has(#gps:not([hidden])) #avisos { top: 270px; }
body.toque:has(#gps:not([hidden])) #avisos { top: 350px; }
#mapa-gps[aria-pressed="false"] { opacity: .75; }

/* avisos curtos acima da barra de itens durante o jogo (antes cobriam a barra) */
body:has(#hud:not([hidden])) #toast { bottom: 132px; }
#ui.com-banner #toast { bottom: 190px; }

/* ação do momento (v0.6.1): aparece sozinha acima da barra de itens */
#acao-ctx { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(20, 14, 9, .78); border: 2px solid rgba(242, 194, 24, .55);
  color: #fff4dc; font-size: 17px; font-weight: 600; white-space: nowrap; pointer-events: auto; animation: ac-entra .18s ease-out; }
#acao-ctx .ac-tecla { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; background: var(--ouro, #f2c218); color: #1b130b;
  display: grid; place-items: center; font-size: 14px; font-weight: 800; }
#acao-ctx.info { border-color: rgba(255,255,255,.25); padding-left: 16px; font-weight: 500; }
#acao-ctx.info .ac-tecla { display: none; }
#acao-ctx.alerta { border-color: #e0553f; background: rgba(70, 16, 10, .85); }
#acao-ctx.destaque { animation: ac-entra .18s ease-out, ac-pulsa 1.2s ease-in-out infinite; }
body.toque #acao-ctx { bottom: 170px; font-size: 19px; padding: 10px 20px 10px 10px; }
body.toque #acao-ctx .ac-tecla { height: 40px; min-width: 40px; }
@keyframes ac-entra { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ac-pulsa { 50% { box-shadow: 0 0 0 6px rgba(242, 194, 24, .25); } }
/* tutorial de sobrevivência (cartão à esquerda) */
#missao { position: absolute; left: 24px; top: 200px; width: 300px; padding: 12px 14px; border-radius: 14px; background: rgba(20, 14, 9, .72);
  border: 1px solid rgba(242, 194, 24, .35); color: #f3e3c4; pointer-events: auto; }
#missao .ms-topo { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro, #f2c218); font-weight: 700; }
#missao .ms-passo { color: #cbb894; }
#missao .ms-pular { margin-left: auto; background: none; border: 0; color: #cbb894; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
#missao .ms-nome { font-size: 18px; font-weight: 700; color: #fff; margin: 4px 0 3px; }
#missao .ms-txt { font-size: 13.5px; line-height: 1.35; }
#missao .ms-barra { height: 4px; border-radius: 2px; background: rgba(0,0,0,.4); margin-top: 8px; overflow: hidden; }
#missao .ms-barra div { height: 100%; background: var(--ouro, #f2c218); transition: width .3s; }
#missao.feito { border-color: #6ad083; }
body.toque #missao { top: 210px; width: 290px; }

#barra-rapida .espaco { touch-action: none; }

/* inventário: arrastar e soltar (v0.6.3) */
#inventario .espaco { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#inventario .espaco.arrastando { opacity: .35; }
#inventario .espaco.alvo { outline: 2px solid var(--ouro, #f2c218); outline-offset: -2px; }
.espaco.fantasma { position: fixed; z-index: 200; pointer-events: none; transform: translate(-50%, -50%) scale(1.08); opacity: .92; box-shadow: 0 8px 20px rgba(0,0,0,.45); cursor: grabbing; }
.espaco.fantasma.fora { outline: 2px solid #e0553f; outline-offset: -2px; }
.espaco.fantasma.fora::after { content: 'jogar fora'; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap; font: 700 12px var(--fonte, sans-serif); color: #fff; background: #b8402e; padding: 2px 8px; border-radius: 8px; }
body.toque .so-pc { display: none; }
#inventario .espaco img, #barra-rapida .espaco img { pointer-events: none; -webkit-user-drag: none; user-select: none; }

/* inventário v0.6.4: cabe inteiro na tela, receitas com abas e rolagem própria */
#inventario { width: 1120px; height: 652px; max-height: none; display: flex; flex-direction: column; }
#inventario .inv-colunas { flex: 1; min-height: 0; grid-template-columns: auto 1fr; }
#inventario .inv-colunas > div { min-height: 0; }
#inventario .inv-receitas { display: flex; flex-direction: column; min-height: 0; }
#inventario .abas { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
#inventario .aba { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #f3e3c4; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--fonte, sans-serif); cursor: pointer; display: flex; align-items: center; gap: 6px; }
#inventario .aba:hover { background: rgba(255,255,255,.1); }
#inventario .aba.ativa { background: var(--ouro, #f2c218); color: #1b130b; border-color: transparent; }
#inventario .aba .n { min-width: 18px; height: 18px; border-radius: 9px; background: #4fbf7f; color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
#inventario .aba.ativa .n { background: #1b130b; color: var(--ouro, #f2c218); }
.rolavel { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
#lista-receitas { flex: 1; min-height: 0; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(242,194,24,.55) rgba(255,255,255,.06); }
#lista-receitas::-webkit-scrollbar { width: 10px; }
#lista-receitas::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 6px; }
#lista-receitas::-webkit-scrollbar-thumb { background: rgba(242,194,24,.55); border-radius: 6px; border: 2px solid rgba(14,10,8,.6); }
#lista-receitas::-webkit-scrollbar-thumb:hover { background: rgba(242,194,24,.8); }
#lista-receitas .vazio { color: var(--areia); font-size: 14px; padding: 18px 6px; }
#lista-receitas .receita { flex-shrink: 0; }
body.toque #lista-receitas { padding-right: 4px; }
body.toque #lista-receitas::-webkit-scrollbar { width: 6px; }
/* janelas abertas: cartão do tutorial e botão de ação saem da frente */
body:has(#inventario:not([hidden])) #missao, body:has(#inventario:not([hidden])) #acao-ctx,
body:has(#mapa:not([hidden])) #missao, body:has(#mapa:not([hidden])) #acao-ctx,
body:has(#pausa:not([hidden])) #missao, body:has(#pausa:not([hidden])) #acao-ctx { display: none !important; }
body.toque #inventario .grade { grid-template-columns: repeat(9, 60px); } body.toque #inventario .espaco { width: 60px; height: 60px; }   /* a grade acompanha o espaço maior do toque (antes os espaços se sobrepunham) */
body:has(#inventario:not([hidden])) #toast { z-index: 14; }   /* avisos não cobrem as receitas com o inventário aberto */

/* doação por Pix (v0.6.8) */
.apoiar { font: 700 14px var(--fonte, sans-serif); color: #fff4dc; background: rgba(176, 48, 72, .78); border: 1px solid rgba(255, 170, 190, .45); border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.apoiar:hover { background: rgba(200, 56, 84, .92); }
.apoiar .coracao, #doacao .coracao { color: #ff8fa6; }
.apoiar.pequeno { font-size: 12px; padding: 6px 12px; }
#apoio-menu-bloco { position: absolute; right: 40px; top: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 3; }   /* botão + cartão empilhados no canto superior direito, embaixo do nome */
#apoio-menu-bloco .cartao-apoio { position: static; }
#inventario .topo-dir { display: flex; align-items: center; gap: 10px; }
#doacao { z-index: 40; }
.doa-caixa { position: relative; width: 880px; padding: 26px 30px; border-radius: 20px; background: rgba(20, 14, 9, .94); border: 1px solid rgba(255, 170, 190, .3); box-shadow: 0 24px 60px rgba(0,0,0,.55); color: #f3e3c4; }
.doa-caixa h2 { margin: 0 0 6px; font-size: 28px; color: #fff; }
.doa-fechar { position: absolute; right: 18px; top: 16px; }
.doa-txt { margin: 0 0 18px; font-size: 15px; line-height: 1.45; max-width: 760px; }
.doa-colunas { display: flex; gap: 28px; align-items: flex-start; }
.doa-qr { background: #fff; padding: 10px; border-radius: 14px; text-align: center; }
.doa-qr canvas { display: block; width: 240px; height: 240px; image-rendering: pixelated; }
.doa-legenda { color: #333; font-size: 12px; margin-top: 6px; max-width: 240px; }
.doa-lado { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.doa-rotulo { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro); font-weight: 700; }
.doa-valores { display: flex; flex-wrap: wrap; gap: 8px; }
.doa-valores button { font: 700 16px var(--fonte, sans-serif); color: #fff4dc; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.doa-valores button.ativo { background: var(--ouro); color: #1b130b; border-color: transparent; }
.doa-outro { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.doa-outro input { width: 90px; font: 700 16px var(--fonte, sans-serif); padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: #fff; }
#doa-aviso { font-size: 12px; color: #ffb0a6; }
#doa-copiar-codigo { align-self: flex-start; }
.doa-chave { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.doa-chave b { color: #fff; word-break: break-all; }
.doa-menor { font-size: 12px; color: var(--areia); }
body.toque .doa-caixa { width: 980px; }
body.toque .doa-qr canvas { width: 200px; height: 200px; }
body.toque .doa-legenda { max-width: 200px; }

/* apoio sempre visível (v0.6.9): cartão no menu e na pausa, lembrete gentil no jogo */
.cartao-apoio { position: absolute; left: 40px; bottom: 70px; width: 268px; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(24, 14, 12, .82); border: 1px solid rgba(255, 143, 166, .45); box-shadow: 0 10px 28px rgba(0,0,0,.4); color: #f3e3c4; z-index: 3; }
.cartao-apoio .ca-qr { width: 88px; height: 88px; border-radius: 8px; background: #fff; padding: 4px; image-rendering: pixelated; cursor: pointer; flex-shrink: 0; }
.cartao-apoio .ca-corpo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ca-tit { font-weight: 800; font-size: 15px; color: #fff; }
.ca-tit .coracao { color: #ff8fa6; }
.ca-txt, .al-txt { font-size: 12px; line-height: 1.35; color: #e9d7b6; }
.ca-botoes { display: flex; gap: 6px; flex-wrap: wrap; }
.cartao-apoio.agradece { border-color: #ff8fa6; animation: ca-pulsa 1.6s ease-in-out 4; }
@keyframes ca-pulsa { 50% { box-shadow: 0 0 0 8px rgba(255, 143, 166, .25), 0 10px 28px rgba(0,0,0,.4); } }
#apoio-pausa { left: auto; right: 48px; bottom: 210px; }   /* acima da faixa do banner */
#apoio-lembrete { position: absolute; left: 24px; top: 200px; width: 300px; padding: 12px 14px; border-radius: 14px; background: rgba(24, 14, 12, .86); border: 1px solid rgba(255, 143, 166, .55); box-shadow: 0 10px 28px rgba(0,0,0,.4); color: #f3e3c4; pointer-events: auto; display: flex; flex-direction: column; gap: 8px; animation: al-entra .3s ease-out; }
#apoio-lembrete .al-fechar { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #cbb894; font-size: 16px; cursor: pointer; }
@keyframes al-entra { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
body:has(#apoio-lembrete:not([hidden])) #missao { display: none !important; }
body.toque #apoio-lembrete { top: 210px; }

/* cartão de apoio dentro do inventário (coluna da esquerda, embaixo da mochila) */
.cartao-apoio.no-inv { position: static; width: auto; margin-top: 14px; background: rgba(60, 20, 28, .45); box-shadow: none; }
#btn-limpar-inv { margin-top: 12px; }
/* v0.6.18: cartão do Pix maior no menu */
#apoio-menu { width: 360px; padding: 16px; gap: 16px; }
#apoio-menu .ca-qr { width: 132px; height: 132px; padding: 6px; }
#apoio-menu .ca-tit { font-size: 19px; }
#apoio-menu .ca-txt { font-size: 14px; }
#apoio-menu .ca-botoes .botao { font-size: 14px; padding: 8px 14px; }
#btn-apoiar-menu { font-size: 16px; padding: 11px 20px; }

/* v0.6.19: todos os avisos numa coluna logo abaixo do horário e da temperatura (PC e celular) */
#coluna-avisos { position: absolute; left: 24px; top: 92px; width: 340px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; z-index: 8; }
#coluna-avisos > * { position: static !important; left: auto !important; top: auto !important; right: auto !important; }
#coluna-avisos #avisos { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; }
#coluna-avisos #memoria-nova { width: 312px; }
#coluna-avisos #apoio-lembrete, #coluna-avisos #missao { width: 320px; box-sizing: border-box; }
/* não empilhar demais: com memória nova ou lembrete na tela, o cartão do tutorial espera; no máximo 3 avisos */
body:has(#memoria-nova:not([hidden])) #missao { display: none !important; }
#coluna-avisos #avisos > :nth-last-child(n+4) { display: none; }
body.toque #coluna-avisos { top: 96px; width: 330px; }
body.toque #coluna-avisos #missao, body.toque #coluna-avisos #apoio-lembrete { width: 310px; }

/* v0.6.20: segurar item na barra (celular) para largar — anel enchendo em meio segundo */
#barra-rapida .espaco { position: relative; }
#barra-rapida .espaco.segurando::after { content: ''; position: absolute; inset: -3px; border-radius: 12px; pointer-events: none;
  background: conic-gradient(rgba(224, 85, 63, .9) var(--p, 0%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%);
  animation: segura-enche .5s linear forwards; }
#barra-rapida .espaco.largou::after { animation: none; --p: 100%; }
#barra-rapida .espaco.segurando::before { content: 'largar'; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font: 700 12px var(--fonte, sans-serif); color: #fff; background: #b8402e; padding: 2px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes segura-enche { to { --p: 100%; } }

/* ---------- conversa com o Dev (v0.6.23): no alto, entre os avisos da esquerda e os botões da direita ---------- */
#dialogo { position: absolute; left: 380px; top: 66px; width: 520px; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; background: rgba(10, 14, 34, .9); border: 2px solid rgba(46, 230, 255, .6);
  box-shadow: 0 6px 24px rgba(0,0,0,.45); color: #eef0f6; pointer-events: auto; z-index: 9; cursor: pointer; text-shadow: none;
  animation: dl-entra .22s ease-out; -webkit-user-select: none; user-select: none; }
@keyframes dl-entra { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
#dialogo .dl-rosto { width: 52px; height: 52px; image-rendering: pixelated; border-radius: 8px; border: 2px solid #2f6bff; flex: none; background: #1530c8; }
#dialogo .dl-corpo { flex: 1; min-width: 0; }
#dialogo .dl-topo { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #2ee6ff; letter-spacing: 1px; text-transform: uppercase; }
#dialogo .dl-passo { margin-left: auto; color: #8796c0; font-size: 11px; letter-spacing: 0; }
#dialogo .dl-txt { font-size: 16px; line-height: 1.42; margin-top: 3px; min-height: 45px; }
#dialogo .dl-txt b { color: #ffd84a; }
#dialogo .dl-txt i { color: #9fb0d8; }
#dialogo .dl-rodape { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; min-height: 22px; }
#dialogo .dl-seguir { font-size: 12px; color: #8796c0; animation: dl-pisca 1.1s ease-in-out infinite; }
@keyframes dl-pisca { 50% { opacity: .4; } }
#dialogo .dl-botoes { display: flex; gap: 8px; }
#dialogo .dl-botoes button { border: 0; border-radius: 999px; padding: 8px 14px; font: 700 14px Sora, sans-serif; cursor: pointer; display: flex; align-items: center; gap: 6px; }
#dialogo .dl-pix { background: #f2c218; color: #1b130b; }
#dialogo .dl-nao { background: rgba(255,255,255,.12); color: #eef0f6; }
#dialogo .dl-k { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 5px; background: rgba(0,0,0,.25); font-size: 11px; }
body.toque #dialogo { left: 372px; width: 500px; top: 64px; }
body.toque #dialogo .dl-txt { font-size: 18px; }
body.toque #dialogo .dl-k { display: none; }
body.toque #dialogo .dl-botoes button { padding: 11px 16px; font-size: 16px; min-height: 44px; }
body.toque #dialogo .dl-rosto { width: 48px; height: 48px; }
/* com a conversa aberta, o que ficaria embaixo dela some */
body.conversando #acao-ctx, body.conversando #dica-unica, body.conversando #missao { display: none !important; }

/* ---------- notebook do Dev ---------- */
#notebook { z-index: 38; display: grid; place-items: center; }
#notebook[hidden] { display: none; }
#notebook .nb-lap { position: relative; width: 860px; }
#notebook .nb-fechar { position: absolute; right: -14px; top: -14px; z-index: 2; width: 44px; height: 44px; }
#notebook .nb-tela { height: 440px; border: 14px solid #23262e; border-bottom-width: 18px; border-radius: 16px 16px 6px 6px; background: #141a2e;
  display: grid; grid-template-columns: 300px 1fr; overflow: hidden; box-shadow: 0 0 0 2px #3a3e48, 0 20px 50px rgba(0,0,0,.6); }
#notebook .nb-menu { background: radial-gradient(circle at 50% 30%, #3a2a16, #1b130b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#notebook .nb-menu .logo-bloco { transform: scale(.62); margin: -20px 0; }
#notebook .nb-itens { display: flex; flex-direction: column; gap: 8px; width: 190px; }
#notebook .nb-itens span { padding: 8px 12px; border-radius: 8px; background: rgba(255,244,220,.08); color: #fff4dc; font-weight: 600; font-size: 14px; }
#notebook .nb-itens span:nth-child(2) { background: #f2c218; color: #1b130b; }
#notebook .nb-codigo { display: flex; flex-direction: column; min-width: 0; background: #0f1322; }
#notebook .nb-abas { display: flex; background: #0a0d18; }
#notebook .nb-abas span { padding: 7px 14px; font: 12px ui-monospace, Consolas, monospace; color: #6b7699; }
#notebook .nb-abas .ativa { color: #eef0f6; background: #0f1322; border-top: 2px solid #2ee6ff; }
#notebook pre { flex: 1; margin: 0; padding: 10px 14px; overflow: hidden; font: 13px/1.5 ui-monospace, Consolas, monospace; color: #abb2bf; white-space: pre; }
#notebook pre .kw { color: #c678dd; } #notebook pre .st { color: #98c379; } #notebook pre .cm { color: #5c6680; font-style: italic; }
#notebook pre .fn { color: #61afef; } #notebook pre .nu { color: #d19a66; }
#notebook pre .cursor { display: inline-block; width: 8px; height: 15px; background: #2ee6ff; vertical-align: -3px; animation: dl-pisca .8s steps(1) infinite; }
#notebook .nb-base { height: 22px; margin: 0 -40px; background: linear-gradient(#c4c8d2, #8a8f9c); border-radius: 0 0 22px 22px; display: grid; place-items: center; }
#notebook .nb-marca { font-size: 11px; color: #3a3e48; }
body.toque #notebook .nb-lap { width: 900px; }
body.toque #notebook .nb-tela { height: 470px; }
body.toque #notebook pre { font-size: 15px; }

#dialogo.curupira { border-color: rgba(255, 138, 26, .75); background: rgba(34, 16, 8, .92); }
#dialogo.curupira .dl-topo { color: #ffb32a; }
#dialogo.curupira .dl-rosto { border-color: #ff7a1a; background: #a85c38; }
#dialogo.andarilho { border-color: rgba(201, 161, 74, .7); background: rgba(26, 20, 12, .92); }
#dialogo.andarilho .dl-topo { color: #e8c86a; }
#dialogo.andarilho .dl-rosto { border-color: #c9a14a; background: #5a3a22; }

/* Claudinho (v0.6.34) */
#dialogo.andarilho { border-color: rgba(90, 140, 200, .7); background: rgba(14, 16, 22, .94); }
#dialogo.andarilho .dl-topo { color: #8ab8ff; }
#dialogo.andarilho .dl-rosto { border-color: #4a7ab0; background: #2a3040; }
#dialogo.claudinho { border-color: rgba(200, 48, 42, .75); background: rgba(20, 16, 14, .93); }
#dialogo.claudinho .dl-topo { color: #ff6a5a; }
#dialogo.claudinho .dl-rosto { border-color: #c8302a; background: #f4f1ea; }
/* Golpe Lendário: linhas de velocidade de anime + texto grande */
#anime-golpe { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0; transition: opacity .15s; }
#anime-golpe.on { opacity: 1; }
#anime-golpe .ag-linhas { position: absolute; inset: -20%; background:
  repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.0) 0deg 4deg, rgba(255,255,255,.55) 4.4deg 5deg, rgba(255,255,255,0) 5.4deg 9deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 22%, #000 60%); mask: radial-gradient(circle at 50% 50%, transparent 22%, #000 60%);
  animation: ag-gira .18s steps(3) infinite; }
#anime-golpe::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,0,0,.55) 100%); }
#anime-golpe .ag-txt { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font: 900 clamp(26px, 6vw, 56px)/1.1 Sora, sans-serif; color: #fff;
  -webkit-text-stroke: 2px #1a1410; text-shadow: 4px 4px 0 #c8302a; transform: skew(-8deg); letter-spacing: .02em; }
#anime-golpe .ag-txt b { color: #ffd21a; }
@keyframes ag-gira { to { transform: rotate(6deg); } }

/* vídeo do Claudinho */
#video-clau { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 4, .72); padding: 12px; }
#video-clau[hidden] { display: none; }
#video-clau .vc-caixa { width: min(760px, 100%); max-height: 100%; overflow: auto; background: #17120f; border: 2px solid #c8302a; border-radius: 14px; padding: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
#video-clau .vc-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
#video-clau .vc-topo b { display: block; font: 800 18px Sora, sans-serif; color: #ff6a5a; }
#video-clau .vc-topo span { font: 500 13px Sora, sans-serif; color: #d9d0c4; }
#video-clau .vc-rosto { width: 44px; height: 44px; image-rendering: pixelated; border: 2px solid #c8302a; border-radius: 8px; background: #f4f1ea; }
#video-clau .vc-fechar { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #2a211b; color: #fff; font-size: 18px; cursor: pointer; }
#video-clau .vc-video { position: relative; aspect-ratio: 16 / 9; max-width: calc((100vh - 150px) * 16 / 9); max-width: calc((100dvh - 150px) * 16 / 9); margin: 0 auto; background: #000; border-radius: 10px; overflow: hidden; }
#video-clau iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#video-clau .vc-botoes { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
#video-clau .vc-botoes a { flex: 1 1 200px; text-align: center; padding: 13px 10px; border-radius: 10px; font: 700 15px Sora, sans-serif; color: #fff; text-decoration: none; }
#video-clau .vc-insta { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
#video-clau .vc-yt { background: #e62117; }
@media (orientation: landscape) and (max-height: 520px) { #video-clau .vc-video { max-width: calc((100vh - 140px) * 16 / 9); max-width: calc((100dvh - 140px) * 16 / 9); } #video-clau .vc-caixa { width: min(640px, 100%); padding: 8px; } #video-clau .vc-topo b { font-size: 15px; } #video-clau .vc-rosto { width: 34px; height: 34px; } #video-clau .vc-fechar { width: 34px; height: 34px; } #video-clau .vc-topo { margin-bottom: 6px; } #video-clau .vc-botoes { margin-top: 8px; } #video-clau .vc-botoes a { padding: 9px; } }
#dialogo.claudinho .dl-rosto { object-fit: cover; background: #f8a96b; }

/* controle (v0.6.49): ícones dos botões nas dicas, cursor nos menus e destaque do que está sob o cursor */
.pad { display: inline-flex; align-items: center; justify-content: center; min-width: 1.55em; height: 1.55em; padding: 0 .35em; box-sizing: border-box; border-radius: 999px; font-family: var(--fonte); font-weight: 800; font-size: .82em; line-height: 1; vertical-align: -.2em; color: #fff; background: #3a3f48; border: 1.5px solid rgba(255,255,255,.35); box-shadow: 0 2px 0 rgba(0,0,0,.35); margin: 0 .1em; white-space: nowrap; }
.pad-xbox.pad-a { background: #3fa34d; } .pad-xbox.pad-b { background: #d8423a; } .pad-xbox.pad-x { background: #2f78d0; } .pad-xbox.pad-y { background: #e2b21c; color: #1a1a1a; }
.pad-ps.pad-a, .pad-ps.pad-b, .pad-ps.pad-x, .pad-ps.pad-y { background: #23262d; font-size: .95em; }
.pad-ps.pad-a { color: #8fb4ff; } .pad-ps.pad-b { color: #ff7a7a; } .pad-ps.pad-x { color: #f39ad6; } .pad-ps.pad-y { color: #57dcc0; }
.pad-lt, .pad-rt, .pad-lb, .pad-rb, .pad-ls, .pad-rs, .pad-start, .pad-back { border-radius: 7px; font-size: .72em; padding: 0 .45em; }
.pad-cima, .pad-baixo { border-radius: 5px; font-size: .7em; }
.pad-stick { width: 1.65em; height: 1.65em; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #5a606b, #2a2e35); font-size: .7em; }
#cursor-controle { position: fixed; left: 0; top: 0; width: 26px; height: 26px; z-index: 99999; pointer-events: none; margin: -2px 0 0 -3px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
#cursor-controle svg { width: 100%; height: 100%; fill: #fff; stroke: #1a120c; stroke-width: 1.5; }
body.com-controle .pad-foco { outline: 3px solid var(--ouro); outline-offset: 2px; }
body.com-controle { cursor: none; }
#dica-pc .pad { font-size: .9em; }
body.com-controle #dica-pc { font-size: 11.5px; line-height: 2; width: 300px; max-width: 300px; left: 18px; right: auto; bottom: 16px; transform: none; text-align: left; }

/* atributos (v0.6.51) */
#atr-caixa { width: 620px; gap: 4px; }
.atr-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; color: var(--areia); }
.atr-livres { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(243,227,196,.7); }
.atr-livres.tem { background: rgba(242,194,24,.18); color: var(--ouro); animation: chama 1.6s ease-in-out infinite; }
.atr-linha { display: grid; grid-template-columns: 34px 1fr 150px 40px; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.08); }
.atr-linha:first-child { border-top: 0; }
.atr-ico { font-size: 24px; text-align: center; }
.atr-nome { font-size: 15px; font-weight: 700; color: var(--areia); } .atr-nome b { color: var(--ouro); margin-left: 4px; }
.atr-ef { font-size: 12px; color: rgba(243,227,196,.72); line-height: 1.35; margin-top: 2px; }
.atr-barra { display: flex; gap: 3px; } .atr-barra span { flex: 1; height: 10px; border-radius: 3px; background: rgba(255,255,255,.1); } .atr-barra span.on { background: var(--ouro); }
.atr-mais { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--ouro); background: rgba(242,194,24,.16); color: var(--ouro); font-size: 20px; font-weight: 800; cursor: pointer; font-family: var(--fonte); }
.atr-mais:disabled { opacity: .25; cursor: default; border-color: rgba(255,255,255,.2); color: var(--areia); background: transparent; }
.atr-nota { font-size: 12px; color: rgba(243,227,196,.55); margin-top: 6px; }
#chip-pontos { margin-top: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ouro); background: rgba(242,194,24,.18); color: var(--ouro); font-family: var(--fonte); font-size: 12px; font-weight: 800; cursor: pointer; pointer-events: auto; animation: chama 1.6s ease-in-out infinite; }
#chip-pontos kbd { font-size: 11px; padding: 0 4px; border-radius: 4px; border: 1px solid rgba(242,194,24,.6); margin-left: 3px; }
.bolinha-pontos { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--ouro); color: #1a120c; font-size: .7em; vertical-align: middle; }
body.toque #atr-caixa { width: 760px; } body.toque .atr-mais { width: 46px; height: 46px; }
#atributos .pers-rodape { display: flex; gap: 10px; } #atributos .pers-rodape .principal { width: 220px; } #atributos .pers-rodape .botao:not(.principal) { width: 170px; }
#btn-atr-redistribuir.confirmar { border-color: #e0584a; color: #ff8a7a; }

/* novidades (v0.6.52) */
#novidades { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(8,6,4,.72); backdrop-filter: blur(4px); }
#novidades[hidden] { display: none; }
.nov-cartao { width: 560px; padding: 22px 26px 20px; border-radius: 20px; background: rgba(22,16,11,.97); border: 1px solid rgba(242,194,24,.45); box-shadow: 0 24px 60px rgba(0,0,0,.55); color: var(--areia); text-align: center; animation: desce .35s ease-out; }
.nov-topo { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro); font-weight: 800; }
#nov-pagina { color: rgba(243,227,196,.6); letter-spacing: 0; text-transform: none; font-weight: 700; }
.nov-icone { font-size: 58px; line-height: 1; margin: 14px 0 6px; }
.nov-cartao h3 { font-size: 24px; margin: 4px 0 8px; color: #fff; }
.nov-cartao p { font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.nov-como { text-align: left; padding: 11px 14px; border-radius: 12px; background: rgba(242,194,24,.1); border: 1px solid rgba(242,194,24,.3); font-size: 14px; line-height: 1.6; }
.nov-como-rot { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro); font-weight: 800; margin-bottom: 3px; }
.nov-pontos { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; min-height: 8px; }
.nov-pontos i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); } .nov-pontos i.on { background: var(--ouro); width: 22px; border-radius: 4px; }
.nov-botoes { display: flex; gap: 10px; justify-content: center; margin-top: 12px; } .nov-botoes .botao { min-width: 130px; }
body.toque .nov-cartao { width: 720px; } body.toque .nov-cartao p, body.toque .nov-como { font-size: 18px; }
.atr-ajuda { display: flex; gap: 12px; align-items: center; padding: 7px 12px; margin-bottom: 2px; border-radius: 12px; background: rgba(242,194,24,.12); border: 1px solid rgba(242,194,24,.4); font-size: 12px; line-height: 1.45; color: var(--areia); }
.atr-ajuda[hidden] { display: none; } .atr-ajuda .botao { flex: 0 0 auto; }

#atributos h2 { margin-bottom: 6px; } #atr-caixa { padding: 12px 18px; } .atr-nota { margin-top: 2px; }

/* v0.6.53: tudo acima da faixa do anúncio (640×160 na base do palco) — o anúncio continua aparecendo */
#novidades { align-items: flex-start; padding: 14px 0 0; box-sizing: border-box; }
.nov-cartao { padding: 14px 22px 14px; }
.nov-icone { font-size: 42px; margin: 6px 0 2px; }
.nov-cartao h3 { font-size: 21px; margin: 2px 0 6px; }
.nov-cartao p { font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.nov-como { padding: 8px 12px; font-size: 13px; line-height: 1.5; }
.nov-pontos { margin: 10px 0 2px; } .nov-botoes { margin-top: 8px; }
body.toque .nov-cartao { width: 760px; } body.toque .nov-cartao p, body.toque .nov-como { font-size: 16px; } body.toque .nov-cartao h3 { font-size: 24px; }
.atr-rodape { display: flex; align-items: center; gap: 8px; margin-top: 4px; } .atr-rodape .atr-nota { flex: 1; margin: 0; }
.atr-rodape .botao { min-width: 110px; }
#pers-opcoes { gap: 9px; padding: 12px 16px; }
.pers-aba { padding: 5px 4px 4px; } .pers-aba .ico { font-size: 20px; }
.pers-cartao { padding: 4px 3px 4px; } .pers-cartao .nome { min-height: 22px; }
#personagem h2 { margin-bottom: 6px; }
