/* Tema cartoon turquesa: botões gordinhos 3D, faixa, cartões brancos */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --pri: #12a9c4;
  --pri2: #2fd0dd;
  --priEsc: #0a6f8a;
  --fundoEsc: #074a5e;
  --coral: #ff6b4a;
  --coralEsc: #c9432a;
  --amarelo: #ffd84d;
  --verde: #3ccf6e;
  --verdeEsc: #1f9a49;
  --texto: #0b4558;
  --sub: #5f8a98;
  --titulo: "Lilita One", "Arial Black", system-ui, sans-serif;
}
html, body {
  height: 100%;
  background: var(--fundoEsc);
  color: #fff;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
button { font-family: inherit; cursor: pointer; color: inherit; }
.ico-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }

#app {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  max-width: 520px; margin: 0 auto;
  position: relative; overflow: hidden;
  background: #aeeaf0;
}

/* ---------- Topo ---------- */
#hud {
  position: relative; z-index: 3;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 10px;
  background: linear-gradient(var(--pri2), var(--pri));
  border-bottom: 4px solid var(--priEsc);
}
.topo { display: flex; align-items: center; gap: 10px; }
.saldo {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: var(--fundoEsc); border-radius: 30px; padding: 3px 14px 3px 3px;
  box-shadow: inset 0 3px 0 #0003;
}
.token {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulo); font-size: 20px; color: #a35a00;
  background: radial-gradient(circle at 35% 30%, #fff3a8, #ffcc1f 55%, #e59a00);
  box-shadow: 0 2px 0 #9c5d00;
}
#dinheiro { font-family: var(--titulo); font-size: 22px; color: var(--amarelo); line-height: 1; text-shadow: 0 2px 0 #0005; letter-spacing: .3px; }
#porSeg { font-size: 11.5px; color: #9ff7d0; margin-top: 1px; }
#dinheiro { display: inline-block; transform-origin: left center; }
#dinheiro.bump { animation: bump .22s ease-out; }
@keyframes bump { 40% { transform: scale(1.14); } }
.ia { flex: 1; min-width: 0; }
.iaRotulo { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 4px; white-space: nowrap; }
#iaTexto { font-family: var(--titulo); font-size: 13.5px; letter-spacing: .3px; text-shadow: 0 2px 0 #0003; overflow: hidden; text-overflow: ellipsis; }
#iaPct { font-family: var(--titulo); font-size: 13px; color: var(--amarelo); text-shadow: 0 2px 0 #0003; }
.barra { height: 13px; background: var(--fundoEsc); border-radius: 10px; overflow: hidden; border: 2px solid #fff; }
#iaBarra {
  height: 100%; width: 0;
  background: repeating-linear-gradient(-45deg, #ffd84d 0 8px, #ffb800 8px 16px);
  transition: width .3s; animation: listras 1s linear infinite; background-size: 22.6px 22.6px;
}
@keyframes listras { to { background-position: 22.6px 0; } }

/* ---------- Cena ---------- */
#cenaBox { flex: 1; position: relative; min-height: 0; overflow: hidden; }
#cena { display: block; width: 100%; height: 100%; touch-action: none; }

#faixa {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: var(--coral); padding: 6px 26px 8px; pointer-events: none;
  box-shadow: 0 4px 0 var(--coralEsc); white-space: nowrap;
}
#faixa::before, #faixa::after {
  content: ""; position: absolute; top: 8px; width: 16px; height: 100%;
  background: #b23a22; z-index: -1;
}
#faixa::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
#faixa::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
#faixa .ponto { display: none; }
#faseNome { font-family: var(--titulo); font-size: 19px; color: #fff; text-shadow: 0 2px 0 #a0301a; letter-spacing: .4px; }
#faixa.festa { animation: festa .7s ease-out; }
@keyframes festa { 0% { transform: translateX(-50%) scale(.3); } 60% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }

#andares { position: absolute; right: 8px; top: 60px; display: flex; flex-direction: column; gap: 6px; }
#andares button {
  width: 46px; height: 38px; border: 0; border-radius: 12px;
  background: #ffffffdd; color: var(--priEsc); font-family: var(--titulo); font-size: 15px;
  box-shadow: 0 3px 0 #0002;
}
#andares button.on { background: var(--amarelo); color: #6a3a00; box-shadow: 0 3px 0 #c99a00; }

#dica {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: var(--fundoEsc); padding: 9px 18px; border-radius: 22px; border: 3px solid #fff;
  font-family: var(--titulo); font-size: 15px; letter-spacing: .3px;
  pointer-events: none; white-space: nowrap; transition: opacity .6s;
  animation: pulsar 1.2s ease-in-out infinite;
}
#dica.sumir { opacity: 0; }
#dica { bottom: 82px; }

/* cartão de missão rápida (canto de baixo) */
#missao {
  position: absolute; left: 8px; bottom: 10px; z-index: 2; width: 214px;
  display: flex; align-items: center; gap: 8px; padding: 7px 9px 7px 7px;
  background: #ffffffee; border-radius: 16px; color: var(--texto);
  box-shadow: 0 4px 0 #0a6f8a55; border: 3px solid #fff; cursor: pointer;
}
#missao .mIco { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: #fff; background: linear-gradient(145deg, var(--pri2), var(--pri)); }
#missao .mIco .ico-svg { stroke-width: 2.5; }
#missao .mTx { flex: 1; min-width: 0; }
#missao b { display: block; font-family: var(--titulo); font-weight: 400; font-size: 13px; color: var(--priEsc); line-height: 1.15; }
#missao small { display: block; font-size: 10.5px; color: var(--sub); margin-top: 2px; }
#missao .mini { height: 6px; background: #d8eef2; border-radius: 4px; overflow: hidden; margin-top: 3px; }
#missao .mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--amarelo), var(--coral)); }
#missao.pronta { border-color: var(--verde); animation: pulsa2 .9s ease-in-out infinite; }
#missao.pronta .mIco { background: linear-gradient(145deg, #6fe08f, var(--verde)); }
#missao.pronta small { color: #18a058; font-weight: 900; }
@keyframes pulsa2 { 50% { transform: scale(1.05); } }

/* faixa de evento aleatório */
#evento {
  position: absolute; left: 10px; right: 64px; top: 58px; z-index: 3;
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 18px;
  background: linear-gradient(100deg, #ff9a3c, var(--coral)); color: #fff; border: 3px solid #fff;
  box-shadow: 0 5px 0 var(--coralEsc); animation: entraEvento .4s cubic-bezier(.2,.9,.3,1.3);
}
#evento.oculto { display: none; }
#evento.bom { background: linear-gradient(100deg, #5be38a, var(--verde)); box-shadow: 0 5px 0 var(--verdeEsc); }
#evento.alerta { background: linear-gradient(100deg, #ff5a6a, #c9283a); box-shadow: 0 5px 0 #8a1622; animation: entraEvento .4s, treme .5s ease-in-out infinite; }
#evento .eIc { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #ffffff33; }
#evento .eIc .ico-svg { stroke-width: 2.6; }
#evento .eTx { flex: 1; min-width: 0; }
#evento b { display: block; font-family: var(--titulo); font-weight: 400; font-size: 15px; text-shadow: 0 2px 0 #0003; }
#evento small { display: block; font-size: 11.5px; opacity: .95; }
#evento .mini { height: 6px; background: #ffffff44; border-radius: 4px; overflow: hidden; margin-top: 3px; }
#evento .mini i { display: block; height: 100%; background: #fff; }
#evento button { border: 0; border-radius: 12px; padding: 8px 10px; font-family: var(--titulo); font-size: 13px; background: #fff; color: var(--coralEsc); box-shadow: 0 3px 0 #0003; flex: none; }
@keyframes entraEvento { from { transform: translateY(-30px) scale(.8); opacity: 0; } }
@keyframes treme { 25% { transform: rotate(-1deg); } 75% { transform: rotate(1deg); } }
#seloTeste {
  position: absolute; left: 8px; top: 146px; z-index: 2; pointer-events: none;
  background: var(--amarelo); color: #6a3a00; font-family: var(--titulo); font-size: 11px; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 10px; box-shadow: 0 2px 0 #c99a00;
}
@keyframes pulsar { 50% { transform: translateX(-50%) scale(1.08); } }

/* ---------- Folha (painel que sobe) ---------- */
#folha {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64%;
  background: #effbfd; border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 24px #074a5e55;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.15);
  z-index: 4;
}
#folha.fechada { transform: translateY(105%); }
.folhaTopo {
  display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(var(--pri2), var(--pri)); border-radius: 26px 26px 0 0; padding: 11px;
  border-bottom: 4px solid var(--priEsc);
}
#folhaTitulo { display: flex; align-items: center; gap: 8px; font-family: var(--titulo); font-size: 22px; letter-spacing: .5px; text-shadow: 0 2px 0 #0004; }
#folhaTitulo .ico-svg { stroke-width: 2.6; }
#fechar {
  position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #fff; background: var(--coral); color: #fff; font-size: 16px;
  display: grid; place-items: center; box-shadow: 0 3px 0 var(--coralEsc);
}
#fechar .ico-svg { stroke-width: 3.2; }
#painel { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 18px; }

.qtd { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.qtd button {
  border: 0; background: #d3f1f5; color: var(--priEsc); font-family: var(--titulo); font-size: 14px;
  padding: 5px 13px; border-radius: 12px;
}
.qtd button.on { background: var(--amarelo); color: #6a3a00; box-shadow: 0 2px 0 #c99a00; }

.item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px; padding: 9px 10px; margin-bottom: 9px;
  box-shadow: 0 4px 0 #c6eaf0; color: var(--texto);
  animation: aparece .3s ease-out both;
}
@keyframes aparece { from { transform: translateY(8px); opacity: 0; } }
.item .ic {
  width: 52px; height: 52px; flex: none; border-radius: 16px; position: relative;
  display: grid; place-items: center; font-size: 26px; color: #fff;
  background: linear-gradient(145deg, var(--pri2), var(--pri));
  box-shadow: 0 3px 0 var(--priEsc), inset 0 2px 0 #ffffff55;
}
.item .ic .ico-svg { stroke-width: 2.4; filter: drop-shadow(0 1px 0 #0003); }
.item .ic b {
  position: absolute; right: -6px; bottom: -6px; min-width: 22px; text-align: center;
  background: var(--coral); color: #fff; font-family: var(--titulo); font-weight: 400; font-size: 13px;
  border-radius: 10px; padding: 1px 6px; border: 2px solid #fff;
}
.item .tx { flex: 1; min-width: 0; }
.item .nm { font-family: var(--titulo); font-size: 16.5px; color: var(--priEsc); letter-spacing: .2px; }
.item .ds { font-size: 12px; color: var(--sub); line-height: 1.25; margin-top: 1px; }
.item .ds em { font-style: normal; color: #18a058; font-weight: 900; }
.item .ds .ver { display: inline-flex; align-items: center; gap: 4px; color: var(--coral); }
.item .prox { margin-top: 4px; font-size: 11.5px; color: var(--priEsc); line-height: 1.3; }
.item .prox .ico-svg { margin-right: 3px; color: var(--coral); }
.item .prox b { color: var(--coral); }
.item .prox span { float: right; font-family: var(--titulo); font-weight: 400; color: var(--priEsc); }
.item .prox .mini { height: 7px; background: #d8eef2; border-radius: 6px; overflow: hidden; margin-top: 3px; }
.item .prox .mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--amarelo), var(--coral)); border-radius: 6px; }
.item .prox.max { color: var(--sub); }
.item .prox.max .ico-svg { color: var(--sub); }
.item .btn {
  border: 0; border-radius: 15px; flex: none; min-width: 96px; padding: 8px 8px 9px; line-height: 1.1;
  font-family: var(--titulo); font-size: 15px; color: #fff; text-shadow: 0 1px 0 #0004;
  background: var(--verde); box-shadow: 0 4px 0 var(--verdeEsc);
}
.item .btn small { display: block; font-family: "Nunito", sans-serif; font-size: 10px; font-weight: 900; opacity: .9; }
.item .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--verdeEsc); }
.item .btn.caro { background: #c9dde2; color: #85a3ab; box-shadow: 0 4px 0 #aac5cc; text-shadow: none; }
.item.bloq { opacity: .55; }
.item.bloq .ic { background: #b9cfd5; box-shadow: 0 3px 0 #94adb4; }
.item.feito { background: #eafbea; box-shadow: 0 4px 0 #c5ecc8; }
.item.feito .ic { background: linear-gradient(145deg, #6fe08f, var(--verde)); box-shadow: 0 3px 0 var(--verdeEsc); }
.item.feito .btn { background: transparent; box-shadow: none; color: var(--verde); font-size: 24px; min-width: 40px; text-shadow: none; }
.item.destaque { background: #fff8db; box-shadow: 0 4px 0 #f3dd8a; }
.item.destaque .ic { background: linear-gradient(145deg, #ffe47a, #ffb800); box-shadow: 0 3px 0 #c98a00; }
.item.mudanca { background: linear-gradient(100deg, #ff9a3c, var(--coral)); box-shadow: 0 4px 0 var(--coralEsc); color: #fff; }
.item.mudanca .nm { color: #fff; text-shadow: 0 2px 0 #0003; }
.item.mudanca .ds { color: #fff3ea; }
.item.mudanca .ic { background: #ffffff33; box-shadow: none; }
.titulo { font-family: var(--titulo); font-size: 15px; color: var(--priEsc); margin: 12px 2px 8px; letter-spacing: .3px; }
.vazio { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--sub); text-align: center; padding: 12px; }
.stats { background: #fff; border-radius: 18px; padding: 6px 14px; color: var(--texto); box-shadow: 0 4px 0 #c6eaf0; }
.stats div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 2px dashed #d8f0f4; font-size: 14px; }
.stats div:last-child { border: 0; }
.stats b { font-family: var(--titulo); font-weight: 400; color: var(--priEsc); font-size: 16px; }
.conqs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.conq { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 3px 0 #c6eaf0; color: var(--texto); opacity: .75; }
.conq .cIc { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; background: #b9cfd5; }
.conq .cIc .ico-svg { stroke-width: 2.4; }
.conq .cTx { min-width: 0; flex: 1; }
.conq b { display: block; font-family: var(--titulo); font-weight: 400; font-size: 13px; color: var(--priEsc); line-height: 1.1; }
.conq small { display: block; font-size: 10.5px; color: var(--sub); line-height: 1.2; }
.conq .mini { height: 5px; background: #d8eef2; border-radius: 4px; overflow: hidden; margin-top: 3px; }
.conq .mini i { display: block; height: 100%; background: var(--pri); }
.conq.ok { opacity: 1; background: #fff8db; box-shadow: 0 3px 0 #f3dd8a; }
.conq.ok .cIc { background: linear-gradient(145deg, #ffe47a, #ffb800); box-shadow: 0 2px 0 #c98a00; }
.secundario, .perigo {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px;
  border: 0; border-radius: 16px; padding: 13px; font-family: var(--titulo); font-size: 16px;
}
.secundario { background: var(--pri); color: #fff; box-shadow: 0 4px 0 var(--priEsc); }
.perigo { background: #ffe0d8; color: var(--coralEsc); }

/* ---------- Barra de botões redondos ---------- */
#barra {
  display: flex; justify-content: space-around; align-items: flex-start;
  background: linear-gradient(var(--pri2), var(--pri));
  border-top: 4px solid var(--priEsc);
  padding: 8px 6px calc(6px + env(safe-area-inset-bottom));
  z-index: 5;
}
.redondo { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; color: #fff; }
.redondo .ico {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  border: 3px solid #fff; transition: transform .15s;
}
.redondo .ico .ico-svg { stroke-width: 2.6; filter: drop-shadow(0 2px 0 #0003); }
.redondo:active .ico { transform: scale(.88); }
.redondo small { font-family: var(--titulo); font-size: 12.5px; letter-spacing: .3px; text-shadow: 0 2px 0 #0005; }
.redondo[data-aba="negocio"] .ico { background: radial-gradient(circle at 35% 30%, #7ff0a5, #24b85a); box-shadow: 0 4px 0 #157a3a; }
.redondo[data-aba="melhorias"] .ico { background: radial-gradient(circle at 35% 30%, #ffe98a, #ffb800); box-shadow: 0 4px 0 #b07a00; }
.redondo[data-aba="vida"] .ico { background: radial-gradient(circle at 35% 30%, #ffb08f, #ff6b4a); box-shadow: 0 4px 0 #b8401c; }
.redondo[data-aba="imperio"] .ico { background: radial-gradient(circle at 35% 30%, #c8a4ff, #8a5cf6); box-shadow: 0 4px 0 #5b33b8; }
.redondo.ativo .ico { transform: translateY(-5px) scale(1.07); }
.aviso {
  position: absolute; top: -3px; right: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral); border: 2px solid #fff; color: #fff; font-family: var(--titulo); font-size: 13px;
  display: none; place-items: center; animation: pula 1s ease-in-out infinite;
}
.aviso.on { display: grid; }
@keyframes pula { 50% { transform: translateY(-3px); } }

/* ---------- Menu inicial ---------- */
#menu { position: absolute; inset: 0; z-index: 30; transition: opacity .45s, transform .45s; overflow: hidden; }
#menu.fora { opacity: 0; transform: scale(1.06); pointer-events: none; }
.menuFundo {
  position: absolute; inset: 0;
  background: radial-gradient(70% 45% at 50% 60%, #8ff4ff 0%, transparent 70%), linear-gradient(180deg, #2fd0dd 0%, #12a9c4 45%, #0a6f8a 100%);
}
/* bolhas e moedas subindo */
.menuFundo::before, .menuFundo::after {
  content: ""; position: absolute; inset: -50% 0 0 0;
  background-image:
    radial-gradient(circle, #ffffff55 0 6px, transparent 7px),
    radial-gradient(circle, #ffd84d99 0 5px, transparent 6px),
    radial-gradient(circle, #ffffff33 0 10px, transparent 11px);
  background-size: 120px 140px, 170px 190px, 230px 260px;
  background-position: 10px 0, 70px 40px, 30px 90px;
  animation: sobe 12s linear infinite;
}
.menuFundo::after { animation-duration: 18s; opacity: .7; background-position: 60px 20px, 20px 100px, 140px 60px; }
@keyframes sobe { to { transform: translateY(-260px); } }
.menuConteudo {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 34px) 22px calc(env(safe-area-inset-bottom) + 18px);
}
.logo { text-align: center; animation: balanca 3s ease-in-out infinite; }
.logoJogo { display: block; width: 88%; max-width: 360px; height: auto; margin: 0 auto; filter: drop-shadow(0 8px 14px #0005); }
.logo p { margin-top: 2px; }
@keyframes balanca { 50% { transform: rotate(-2deg) translateY(-4px); } }
.logoMarca {
  width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #8ff4ff, #12a9c4); border: 4px solid #fff;
  box-shadow: 0 5px 0 var(--priEsc);
}
.logoMarca span { position: absolute; inset: 12px 9px; border-radius: 10px; background: var(--fundoEsc); }
.logoMarca span::before, .logoMarca span::after {
  content: ""; position: absolute; top: 9px; width: 9px; height: 13px; border-radius: 50%; background: #5ff3ff;
  animation: pisca 4s infinite;
}
.logoMarca span::before { left: 7px; } .logoMarca span::after { right: 7px; }
@keyframes pisca { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.logo h1 {
  font-family: var(--titulo); font-weight: 400; font-size: 52px; line-height: .95; letter-spacing: 1px; color: #fff;
  text-shadow: 0 4px 0 var(--priEsc), 0 8px 0 #0a5a70, 0 10px 18px #0005;
}
.logo h1 b { display: block; font-weight: 400; color: var(--amarelo); font-size: 58px; text-shadow: 0 4px 0 #c98a00, 0 8px 0 #9c6400, 0 10px 18px #0005; }
.logo p {
  display: inline-block; margin-top: 12px; padding: 6px 16px 8px; background: var(--coral); color: #fff;
  font-family: var(--titulo); font-size: 14px; letter-spacing: .3px; border-radius: 6px;
  box-shadow: 0 4px 0 var(--coralEsc); text-shadow: 0 2px 0 #0003;
}
.palco { position: relative; width: 240px; flex: 1; min-height: 190px; max-height: 320px; margin-top: 6px; }
#menuHeroi { position: relative; z-index: 2; width: 100%; height: 100%; display: block; touch-action: none; }
.anel {
  position: absolute; left: 50%; bottom: 2%; width: 180px; height: 46px; margin-left: -90px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #ffffff, #c6f6fb 60%, #8fdde8);
  box-shadow: 0 6px 0 #5fb8c7, 0 14px 24px #0004;
}
.resumo {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; padding: 7px 16px; border-radius: 20px;
  background: var(--fundoEsc); border: 3px solid #fff; font-size: 13px; color: #fff;
}
.resumo .ico-svg { color: var(--amarelo); stroke-width: 2.6; }
.menuBotoes { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 12px; }
.primario {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 4px solid #fff; border-radius: 24px; padding: 13px; font-family: var(--titulo); font-size: 28px; letter-spacing: 1px;
  color: #fff; text-shadow: 0 3px 0 #0004;
  background: linear-gradient(#5be38a, var(--verde)); box-shadow: 0 6px 0 var(--verdeEsc), 0 12px 20px #0004;
  animation: pulo 1.6s ease-in-out infinite;
}
.primario .ico-svg { stroke-width: 3; fill: #fff; }
@keyframes pulo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.primario:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--verdeEsc); }
.linhaBtns { display: flex; gap: 10px; }
.vidro {
  flex: 1; border: 3px solid #fff; border-radius: 18px; padding: 11px 8px; font-family: var(--titulo); font-size: 16px;
  color: #fff; text-shadow: 0 2px 0 #0003; background: var(--coral); box-shadow: 0 5px 0 var(--coralEsc);
}
#btnComo { background: var(--amarelo); color: #6a3a00; text-shadow: none; box-shadow: 0 5px 0 #c99a00; }
.vidro:active { transform: translateY(3px); }
.versao { margin-top: 4px; font-size: 10px; color: #ffffff88; }
.assinatura { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .9; }
.assinatura small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #ffffffcc; }
.assinatura img { height: 46px; width: auto; filter: drop-shadow(0 2px 0 #0a6f8a); }

/* ---------- Abertura ---------- */
#abertura {
  position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(60% 45% at 50% 50%, #12a9c4, #0a6f8a 60%, #074a5e);
  transition: opacity .6s ease;
}
#abertura small {
  font-family: var(--titulo); font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: #ffffffcc;
  opacity: 0; animation: surge .6s .25s ease-out forwards;
}
#abertura img {
  width: 68%; max-width: 330px; height: auto; filter: drop-shadow(0 6px 0 #05384a);
  opacity: 0; transform: scale(.6); animation: logoEntra .8s .45s cubic-bezier(.2, .9, .3, 1.3) forwards;
}
#abertura.fim { opacity: 0; pointer-events: none; }
@keyframes surge { to { opacity: 1; } }
@keyframes logoEntra { 60% { opacity: 1; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

/* ---------- Avisos ---------- */
#toast {
  position: fixed; left: 50%; top: 140px; transform: translate(-50%, -12px) scale(.95);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: 92vw;
  background: #fff; color: var(--priEsc); padding: 8px 14px 8px 8px; border-radius: 18px;
  font-size: 14px; font-weight: 900; border: 3px solid var(--pri);
  box-shadow: 0 6px 0 #074a5e44; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 40;
}
#toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
#toast .tIc { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: #fff; background: linear-gradient(145deg, var(--pri2), var(--pri)); }
#toast .tIc .ico-svg { stroke-width: 2.6; }

#modal { position: fixed; inset: 0; background: #074a5eaa; display: grid; place-items: center; z-index: 50; padding: 20px; }
#modal.oculto { display: none; }
#modal .card {
  background: #fff; color: var(--texto); border-radius: 26px; padding: 22px 20px 18px; width: 100%; max-width: 360px;
  text-align: center; border: 4px solid var(--pri); box-shadow: 0 8px 0 #074a5e66; animation: entra .35s ease-out;
}
@keyframes entra { 0% { transform: scale(.6); } 70% { transform: scale(1.05); } 100% { transform: scale(1); } }
.mIc {
  width: 62px; height: 62px; margin: -50px auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; color: #fff; background: radial-gradient(circle at 35% 30%, #8ff4ff, var(--pri));
  border: 4px solid #fff; box-shadow: 0 4px 0 var(--priEsc);
}
.mIc .ico-svg { stroke-width: 2.6; }
#modalTexto h2 { font-family: var(--titulo); font-weight: 400; font-size: 26px; color: var(--priEsc); margin-bottom: 8px; }
#modalTexto p { font-size: 14.5px; color: var(--sub); line-height: 1.4; margin-bottom: 6px; }
#modalTexto .grande { font-family: var(--titulo); font-size: 36px; color: #f0a500; margin: 10px 0; text-shadow: 0 3px 0 #ffe9a8; }
#modalBotoes { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
#modalBotoes button {
  border: 0; border-radius: 16px; padding: 13px; font-family: var(--titulo); font-size: 19px;
  background: var(--verde); color: #fff; box-shadow: 0 4px 0 var(--verdeEsc); text-shadow: 0 2px 0 #0003;
}
#modalBotoes button.sec { background: #d3f1f5; color: var(--priEsc); box-shadow: 0 4px 0 #b4dfe6; text-shadow: none; }
#modalBotoes button.perigo2 { background: var(--coral); box-shadow: 0 4px 0 var(--coralEsc); }

#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 45; transition: opacity .7s; }
#flash.on { opacity: .9; transition: none; }
