/* Amigo Secreto da Turma — noite de Natal em neon, adesivos e vidro. */
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(fontes/unbounded-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fontes/unbounded-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-display: swap; src: url(fontes/unbounded-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(fontes/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fontes/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fontes/space-grotesk-latin-700-normal.woff2) format("woff2"); }

:root {
  --noite: #090a1c;
  --noite-2: #121436;
  --vidro: rgb(255 255 255 / .065);
  --vidro-forte: rgb(255 255 255 / .11);
  --borda: rgb(255 255 255 / .13);
  --texto: #f5f2ff;
  --suave: #aeabd6;
  --neon: #ff3d6e;
  --menta: #2ef2a6;
  --ouro: #ffd23f;
  --gelo: #6fd6ff;
  --uva: #a77bff;
  --chiclete: #ff7ad9;
  --tinta: #10112b;
  --raio: 22px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --corpo: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sombra-dura: 4px 4px 0 #000;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--noite); color: var(--texto);
  font: 500 16px/1.45 var(--corpo); overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.01em; }
h2 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 10px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- céu ---------- */
.ceu { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #23205e 0%, var(--noite) 55%) fixed; }
.ceu::after { content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .32; animation: flutua 18s ease-in-out infinite alternate; }
.a1 { background: var(--neon); left: -30vmax; top: -25vmax; }
.a2 { background: var(--menta); right: -35vmax; top: 10vmax; opacity: .2; animation-delay: -6s; }
.a3 { background: var(--uva); left: -10vmax; bottom: -45vmax; opacity: .28; animation-delay: -12s; }
@keyframes flutua { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
.floco { position: absolute; top: -5%; color: #fff; opacity: .5; font-size: .8rem; animation: cair linear infinite; }
@keyframes cair { to { transform: translate3d(30px, 110vh, 0) rotate(240deg); } }

/* ---------- gradientes de cor ---------- */
.g-neon { --g1: #ff3d6e; --g2: #ff9a3d; }
.g-menta { --g1: #2ef2a6; --g2: #00b3ff; }
.g-ouro { --g1: #ffd23f; --g2: #ff8a3d; }
.g-gelo { --g1: #6fd6ff; --g2: #7b6cff; }
.g-uva { --g1: #a77bff; --g2: #ff7ad9; }
.g-chiclete { --g1: #ff7ad9; --g2: #ffd23f; }

/* ---------- avatar ---------- */
.av { display: inline-grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 30%;
  font-size: 1.55rem; line-height: 1; background: linear-gradient(135deg, var(--g1, #ff3d6e), var(--g2, #ff9a3d));
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18), 0 0 0 2px var(--noite); }
.av.p { width: 2.2rem; height: 2.2rem; font-size: 1.15rem; }
.av.g { width: 5.4rem; height: 5.4rem; font-size: 3rem; border-radius: 32%; box-shadow: inset 0 -5px 0 rgb(0 0 0 / .18), 0 10px 40px -8px var(--g1); }
.av.tv { width: 12rem; height: 12rem; font-size: 7rem; border-radius: 30%; box-shadow: 0 0 120px -10px var(--g1); }
.av.mais { background: var(--vidro-forte); font: 700 .75rem var(--corpo); }

/* ---------- tipografia ---------- */
.titulo-xl { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; margin: .4rem 0 1rem; position: relative; }
.titulo-xl span { display: block; }
.titulo-xl .l1 { font-size: clamp(2.6rem, 14.5vw, 6rem); color: transparent; -webkit-text-stroke: 2px var(--texto); }
.titulo-xl .l2 { font-size: clamp(2.6rem, 14.5vw, 6rem); background: linear-gradient(90deg, var(--neon), var(--ouro), var(--menta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adesivo { position: absolute; right: 0; top: 38%; transform: rotate(8deg); font: 700 .8rem var(--display); text-transform: none;
  background: var(--menta); color: var(--tinta); padding: .4rem .7rem; border-radius: 999px; border: 2px solid #000; box-shadow: var(--sombra-dura); }
.titulo-l { font-size: 1.55rem; font-weight: 900; line-height: 1.1; }
.titulo-m { font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.lead { color: var(--suave); font-size: 1.05rem; }
.suave { color: var(--suave); }
.pequeno { font-size: .86rem; }
.centro-txt { text-align: center; }
.centro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rotulo { display: block; font: 700 .7rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--suave); }
.link { color: var(--ouro); text-decoration: underline; text-underline-offset: 3px; }
.link-sutil { display: block; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; background: none; border: 0; padding: .4rem; }
.cresce { flex: 1; min-width: 0; }
.pilha { display: flex; flex-direction: column; gap: .8rem; }
.linha-flex { display: flex; gap: .6rem; align-items: center; }
.linha-botoes { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- faixa que corre ---------- */
.faixa { overflow: hidden; white-space: nowrap; background: var(--ouro); color: var(--tinta); border-block: 2px solid #000;
  transform: rotate(-2deg); margin: .6rem -1rem 0; font: 900 .85rem var(--display); text-transform: uppercase; }
.faixa-trilho { display: inline-flex; gap: 1rem; padding: .45rem 0; animation: correr 22s linear infinite; }
.faixa-trilho b { color: var(--neon); }
@keyframes correr { to { transform: translateX(-33.33%); } }

/* ---------- cartões ---------- */
.cartao { background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.1rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: .7rem; }
.cabeca-cartao { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.cabeca-pagina { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.pilula { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; background: var(--vidro-forte);
  border: 1px solid var(--borda); font: 700 .78rem var(--corpo); white-space: nowrap; }
.pilula.ouro { background: var(--ouro); color: var(--tinta); border-color: #000; }
.pilula.aura { background: linear-gradient(90deg, var(--uva), var(--chiclete)); color: #fff; border: 0; }
.pilula.gelo { background: rgb(111 214 255 / .16); }
.pilula.vermelha { background: var(--neon); border-color: var(--neon); }
.aviso { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 18px; background: var(--vidro-forte); border: 1px solid var(--borda); font-size: .92rem; }
.aviso > .ic { margin-top: .1rem; color: var(--ouro); }
.aviso.menta { background: rgb(46 242 166 / .12); border-color: rgb(46 242 166 / .35); }
.aviso.menta > .ic { color: var(--menta); }
.aviso.ouro { background: rgb(255 210 63 / .1); border-color: rgb(255 210 63 / .35); }
.seguro { flex-direction: row; align-items: flex-start; gap: .8rem; }
.seguro > .ic { width: 1.8rem; height: 1.8rem; color: var(--menta); }
.seguro p { color: var(--suave); font-size: .9rem; }
.pequeno-cartao { padding: .9rem 1rem; }

/* ---------- botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.15rem;
  border-radius: 16px; border: 2px solid #000; background: var(--texto); color: var(--tinta); font: 700 1rem var(--corpo);
  box-shadow: var(--sombra-dura); transition: transform .12s, box-shadow .12s; text-align: center; }
.botao:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.botao:disabled { opacity: .45; pointer-events: none; }
.botao.grande { min-height: 3.6rem; font-size: 1.08rem; width: 100%; border-radius: 18px; }
.botao.largo { width: 100%; }
.botao.mini { min-height: 2.3rem; padding: .35rem .8rem; font-size: .88rem; border-radius: 12px; box-shadow: 3px 3px 0 #000; }
.botao.ouro { background: var(--ouro); }
.botao.vermelho { background: var(--neon); color: #fff; }
.botao.claro { background: rgb(255 255 255 / .9); }
.botao.contorno { background: transparent; color: var(--texto); border: 2px solid var(--borda); box-shadow: none; }
.botao.contorno:active { transform: scale(.98); }
.botao.perigo { color: #ff8aa6; border-color: rgb(255 61 110 / .45); }
.botao-icone { display: inline-grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 14px; border: 1px solid var(--borda);
  background: var(--vidro-forte); flex: none; }
.botao-icone.mini { width: 2.2rem; height: 2.2rem; border-radius: 11px; }
.botao-icone.fantasma { background: transparent; border-color: transparent; color: var(--suave); }
.botao-icone.ouro { background: var(--ouro); color: var(--tinta); border: 2px solid #000; box-shadow: 3px 3px 0 #000; }

/* ---------- capa (fora da conta) ---------- */
.capa { padding-bottom: 3rem; }
.capa-corpo { width: min(560px, 100%); margin: 0 auto; padding: 1.4rem 16px 0; display: flex; flex-direction: column; gap: 1.1rem; }
.selo-topo { align-self: flex-start; padding: .35rem .8rem; border-radius: 999px; background: var(--vidro-forte); border: 1px solid var(--borda); font-weight: 700; font-size: .85rem; }
.portas { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; }
.quem-ja { display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center; }
.pilha-avatares { display: flex; flex-wrap: wrap; justify-content: center; }
.pilha-avatares .av { margin: 0 -.3rem .3rem 0; }
.como h2 { font-size: 1.1rem; }
.passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.passos li { display: flex; gap: .8rem; align-items: flex-start; }
.passos li > span { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--ouro); color: var(--tinta);
  font: 900 .95rem var(--display); border: 2px solid #000; }
.passos b { display: block; }
.passos div { color: var(--suave); font-size: .92rem; }
.passos div b { color: var(--texto); font-size: 1rem; }

/* ---------- contagem ---------- */
.contagem { text-align: center; align-items: center; background: linear-gradient(160deg, rgb(255 61 110 / .22), rgb(167 123 255 / .14)); }
.contagem .grande { font: 900 1.7rem var(--display); }
.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; width: 100%; }
.num { background: rgb(0 0 0 / .28); border: 1px solid var(--borda); border-radius: 16px; padding: .55rem 0; }
.num b { display: block; font: 900 1.7rem var(--display); }
.num span { font-size: .72rem; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.contagem.compacto .num b { font-size: 1.4rem; }
.info { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; color: var(--suave); font-size: .88rem; }
.info span { display: inline-flex; gap: .3rem; align-items: center; }
.info:empty { display: none; }

/* ---------- topo e navegação ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgb(9 10 28 / .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--borda); }
.topo-barra { width: min(640px, 100%); margin: 0 auto; display: flex; align-items: center; gap: .6rem; padding: .6rem 16px; }
.marca { font: 900 .9rem var(--display); text-transform: uppercase; letter-spacing: .02em; margin-right: auto; }
.topo-barra .botao-icone + .marca { margin-left: .2rem; }
.tela { width: min(640px, 100%); margin: 0 auto; padding: 1.1rem 16px 7.5rem; display: flex; flex-direction: column; gap: 1rem; }
.faixa-aviso { display: flex; gap: .5rem; align-items: center; justify-content: center; padding: .6rem 16px; background: rgb(255 210 63 / .16); color: var(--ouro); font-weight: 700; font-size: .88rem; text-align: center; }
.nav { position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgb(18 20 54 / .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--borda);
  border-radius: 24px; padding: .45rem .3rem; box-shadow: 0 18px 50px -12px #000; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .68rem; font-weight: 700; color: var(--suave); padding: .25rem 0; }
.nav a[aria-current="page"] { color: var(--texto); }
.nav a[aria-current="page"] .nav-ic { background: var(--vidro-forte); }
.nav-ic { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2rem; border-radius: 12px; }
.nav-ic .ic { width: 1.35rem; height: 1.35rem; }
.nav a.central .nav-ic { width: 3.5rem; height: 3.5rem; margin-top: -1.6rem; border-radius: 20px; background: var(--neon) !important; color: #fff;
  border: 2px solid #000; box-shadow: var(--sombra-dura), 0 0 30px -4px var(--neon); }
.nav a.central .ic { width: 1.7rem; height: 1.7rem; }
.contador { position: absolute; top: -.35rem; right: -.35rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--ouro);
  color: var(--tinta); font: 900 .66rem/1.15rem var(--corpo); text-align: center; border: 2px solid var(--noite); }
.contador:empty { min-width: .8rem; width: .8rem; height: .8rem; padding: 0; }
.abas .contador { position: static; margin-left: .35rem; display: inline-block; }

/* ---------- formulários ---------- */
.entrada { width: 100%; min-height: 3.2rem; padding: .75rem 1rem; border-radius: 16px; border: 2px solid var(--borda); background: rgb(0 0 0 / .3);
  color: var(--texto); font-size: 1.02rem; resize: vertical; }
.entrada::placeholder { color: #7f7cab; }
.entrada:focus { outline: none; border-color: var(--ouro); box-shadow: 0 0 0 4px rgb(255 210 63 / .18); }
.entrada.codigo { text-align: center; font: 900 1.9rem var(--display); letter-spacing: .3em; text-transform: uppercase; }
.campo { display: flex; flex-direction: column; gap: .35rem; }
.campo > label, .campo > .rotulo { font-weight: 700; font-size: .9rem; color: var(--texto); text-transform: none; letter-spacing: 0; font-family: var(--corpo); }
.erro { color: #ff8aa6; font-weight: 700; font-size: .9rem; min-height: 0; }
.erro:empty { display: none; }
.marcar { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem; border-radius: 16px; background: var(--vidro); border: 1px solid var(--borda); cursor: pointer; }
.marcar input { width: 1.4rem; height: 1.4rem; accent-color: var(--menta); flex: none; margin: .1rem 0 0; }
.busca { display: flex; align-items: center; gap: .5rem; padding: 0 1rem; border-radius: 16px; border: 2px solid var(--borda); background: rgb(0 0 0 / .3); }
.busca input { flex: 1; min-height: 3rem; border: 0; background: transparent; outline: none; }
.grade-avatares { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.grade-avatares button { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--vidro); font-size: 1.5rem; display: grid; place-items: center; }
.grade-avatares button[aria-pressed="true"] { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: #fff; transform: scale(1.06); }
.cores { display: flex; gap: .55rem; flex-wrap: wrap; }
.cores button { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 3px solid transparent; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.cores button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--noite), 0 0 0 5px var(--g1); }
.cores.mini button { width: 2rem; height: 2rem; }
.previa { display: flex; flex-direction: column; align-items: center; gap: .5rem; font: 700 1.1rem var(--display); }
.combinado ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.combinado li { line-height: 1.4; }

/* ---------- escolher nome ---------- */
.grade-nomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.nome-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .5rem; border-radius: 18px;
  background: var(--vidro); border: 1px solid var(--borda); font-weight: 700; text-align: center; transition: transform .15s; }
.nome-card:active { transform: scale(.96); }
.nome-card span:not(.av) { word-break: break-word; }

/* ---------- pin ---------- */
.pin-tela { gap: .9rem; padding-top: .6rem; }
.pin-pontos { display: flex; gap: .8rem; justify-content: center; margin: .3rem 0; }
.pin-pontos span { width: 1.1rem; height: 1.1rem; border-radius: 999px; border: 2px solid var(--suave); transition: all .15s; }
.pin-pontos span.cheio { background: var(--ouro); border-color: var(--ouro); transform: scale(1.15); box-shadow: 0 0 16px var(--ouro); }
.tremer { animation: tremer .4s; }
@keyframes tremer { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.teclado { display: grid; grid-template-columns: repeat(3, 4.6rem); gap: .7rem; justify-content: center; }
.teclado button { height: 4.6rem; border-radius: 22px; border: 1px solid var(--borda); background: var(--vidro-forte); font: 700 1.6rem var(--display); }
.teclado button:active { background: var(--ouro); color: var(--tinta); }
.teclado .apagar { background: transparent; border-color: transparent; }

/* ---------- início ---------- */
.ola { display: flex; align-items: center; gap: 1rem; }
.ola .titulo-l { font-size: 1.7rem; }
.etiqueta { display: inline-flex; margin-top: .4rem; padding: .3rem .7rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: linear-gradient(90deg, var(--g1, var(--uva)), var(--g2, var(--chiclete))); color: var(--tinta); }
.etiqueta.contorno { background: transparent; border: 1px dashed var(--suave); color: var(--texto); }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: .8rem; }
.bloco { min-height: 9rem; justify-content: space-between; }
.bloco b { font: 900 1.15rem var(--display); }
.bloco .suave { font-size: .85rem; }
.amigo-bloco { background: linear-gradient(150deg, rgb(255 61 110 / .45), rgb(255 154 61 / .2)); border-color: rgb(255 61 110 / .5); }
.aura-num { font-size: 1.5rem !important; background: linear-gradient(90deg, var(--uva), var(--chiclete)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.barra { height: .6rem; border-radius: 999px; background: rgb(0 0 0 / .35); overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--menta), var(--gelo)); transition: width .5s; }
.missoes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.item-missao { display: flex; align-items: center; gap: .7rem; padding: .55rem .4rem; border-radius: 14px; }
.missoes li:not(.bloqueada) .item-missao:active { background: var(--vidro-forte); }
.check { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 9px; border: 2px solid var(--suave); flex: none; font-size: .8rem; }
.feita .check { background: var(--menta); border-color: var(--menta); color: var(--tinta); }
.feita .cresce { text-decoration: line-through; color: var(--suave); }
.bloqueada { opacity: .55; }
.bloqueada .check { border: 0; }
.pts { font: 700 .78rem var(--corpo); color: var(--ouro); white-space: nowrap; }
.mini-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.mini-rank li { display: flex; align-items: center; gap: .6rem; }
.mini-rank b { color: var(--ouro); }
.medalha { font-size: 1.3rem; }

/* ---------- vazio ---------- */
.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 2rem 1rem; color: var(--suave); }
.vazio strong { color: var(--texto); font: 700 1.15rem var(--display); }
.vazio-emoji { font-size: 3rem; }
.grande-vazio { padding-top: 3rem; }
.pacote-fechado { font-size: 6rem; animation: balanca 2.4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgb(255 61 110 / .5)); }
.pequeno-vazio { padding: 1.4rem .5rem; }
.pequeno-vazio .vazio-emoji { font-size: 2rem; }
@keyframes balanca { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-6px); } }

/* ---------- abas ---------- */
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 18px; background: var(--vidro); border: 1px solid var(--borda); position: sticky; top: 3.7rem; z-index: 10; backdrop-filter: blur(14px); }
.abas button { min-height: 2.8rem; border-radius: 14px; border: 0; background: transparent; font-weight: 700; color: var(--suave); }
.abas button[aria-selected="true"] { background: var(--texto); color: var(--tinta); }
#aba-corpo { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- pacote (abrir o amigo) ---------- */
.palco-pacote { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: 1rem 0 2rem; }
.pacote { position: relative; width: min(260px, 72vw); aspect-ratio: 5 / 7; border-radius: 26px; border: 3px solid #000; overflow: hidden;
  background: conic-gradient(from 200deg, #ff3d6e, #ffd23f, #2ef2a6, #6fd6ff, #a77bff, #ff7ad9, #ff3d6e);
  box-shadow: 8px 8px 0 #000, 0 0 80px -10px rgb(255 61 110 / .8); display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1.2rem .8rem; color: var(--tinta); animation: pulsa 1.8s ease-in-out infinite; }
.pacote::before { content: ""; position: absolute; inset: 12px; border-radius: 18px; background: rgb(255 255 255 / .82); }
.pacote > span { position: relative; }
.pacote-brilho { position: absolute !important; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .9) 45%, transparent 60%);
  transform: translateX(-100%); animation: brilho 2.6s ease-in-out infinite; z-index: 2; }
.pacote-topo { font: 900 1rem var(--display); letter-spacing: .04em; }
.pacote-emoji { font-size: 5.5rem; }
.pacote-raridade { font: 700 .72rem var(--display); text-transform: uppercase; }
.pacote.abrindo { animation: abrir 1.5s forwards; }
@keyframes pulsa { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.03); } }
@keyframes brilho { 60%, 100% { transform: translateX(100%); } }
@keyframes abrir { 0% { transform: scale(1); } 15%, 45% { transform: scale(1.05) rotate(-6deg); } 30%, 60% { transform: scale(1.05) rotate(6deg); }
  80% { transform: scale(1.25) rotate(0); filter: brightness(2); } 100% { transform: scale(.2) rotate(720deg); opacity: 0; } }

/* ---------- carta do amigo / perfil / vibe ---------- */
.carta-amigo, .perfil-cartao, .resultado-vibe { position: relative; overflow: hidden; border-radius: 28px; border: 3px solid #000; box-shadow: 6px 6px 0 #000;
  background: linear-gradient(150deg, var(--g1), var(--g2)); color: var(--tinta); padding: 1.5rem 1.2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem;
  animation: entraCarta .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes entraCarta { from { transform: rotateY(90deg) scale(.6); opacity: 0; } }
.carta-brilho { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 20%, rgb(255 255 255 / .85) 35%, transparent 50%, rgb(255 255 255 / .5) 65%, transparent 80%); background-size: 250% 100%; animation: holo 4s linear infinite; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.carta-topo { font: 900 .78rem var(--display); text-transform: uppercase; letter-spacing: .1em; background: rgb(0 0 0 / .85); color: #fff; padding: .3rem .8rem; border-radius: 999px; }
.carta-emoji, .perfil-emoji { font-size: 5.5rem; line-height: 1.1; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .18)); }
.carta-nome { font: 900 2rem/1 var(--display); word-break: break-word; }
.carta-vibe { font-weight: 700; padding: .25rem .7rem; background: rgb(255 255 255 / .55); border-radius: 999px; }
.carta-rodape { font: 700 .66rem var(--display); text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-top: .3rem; }
.perfil-aura { font-weight: 700; }
.resultado-vibe { padding: 2rem 1.2rem; }
.vibe-emoji { font-size: 6rem; animation: balanca 2.4s ease-in-out infinite; }
.vibe-nome { font: 900 1.8rem/1.05 var(--display); }
.resultado-vibe p { font-weight: 500; max-width: 30ch; }
.desejos { margin: 0; display: grid; gap: .3rem .8rem; }
.desejos dt { font-weight: 700; color: var(--suave); font-size: .85rem; margin-top: .4rem; }
.desejos dd { margin: 0; white-space: pre-line; }
.codinome-cartao, .detetive { background: linear-gradient(150deg, rgb(46 242 166 / .2), rgb(0 179 255 / .1)); border-color: rgb(46 242 166 / .35); }
.codinome { font: 900 1.45rem var(--display); }

/* ---------- pistas ---------- */
.slots { display: flex; flex-direction: column; gap: .5rem; }
.slot { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem .5rem; border-radius: 16px; background: rgb(0 0 0 / .28); border: 2px dashed var(--borda); }
.slot.cheio { border-style: solid; border-color: rgb(46 242 166 / .5); }
.slot input { flex: 1; min-width: 0; min-height: 2.5rem; border: 0; background: transparent; outline: none; }
.slot-n { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 9px; background: var(--vidro-forte); font: 900 .85rem var(--display); flex: none; }
.pistas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.pista { display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem .6rem .7rem; border-radius: 16px; background: rgb(46 242 166 / .12); border: 1px solid rgb(46 242 166 / .35); }
.pista.trancada { background: rgb(0 0 0 / .25); border: 1px dashed var(--borda); color: var(--suave); }
.plot-twist { background: linear-gradient(150deg, rgb(255 210 63 / .25), rgb(255 61 110 / .2)); border-color: rgb(255 210 63 / .5); text-align: center; align-items: center; }
.par-revelado { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.par-revelado .quem { display: flex; align-items: center; gap: .5rem; font: 900 1.4rem var(--display); }
.seta { color: var(--suave); font-weight: 700; }

/* ---------- palpite / votos ---------- */
.grade-palpite { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .45rem; }
.chip-pessoa { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .3rem; border-radius: 16px; background: var(--vidro); border: 2px solid transparent;
  font-size: .8rem; font-weight: 700; text-align: center; transition: transform .15s; }
.chip-pessoa span:not(.av) { word-break: break-word; line-height: 1.15; }
.chip-pessoa.on { border-color: var(--ouro); background: rgb(255 210 63 / .16); transform: scale(1.04); box-shadow: 0 0 24px -6px var(--ouro); }
.chip-pessoa:disabled { opacity: .5; }
.palpite-atual { display: flex; align-items: center; gap: .5rem; font-weight: 700; }

/* ---------- chat ---------- */
.conversa { display: flex; flex-direction: column; gap: .4rem; max-height: 52vh; min-height: 10rem; overflow-y: auto; padding: .3rem; border-radius: 16px; background: rgb(0 0 0 / .25); overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.minha { align-self: flex-end; align-items: flex-end; }
.msg.dele { align-self: flex-start; }
.balao { padding: .55rem .85rem; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
.minha .balao { background: linear-gradient(135deg, var(--neon), #ff6b5a); border-bottom-right-radius: 6px; }
.dele .balao { background: var(--vidro-forte); border-bottom-left-radius: 6px; }
.so-emoji .balao { background: none !important; font-size: 2.4rem; padding: 0 .2rem; }
.apagada .balao { background: none; border: 1px dashed var(--borda); color: var(--suave); font-style: italic; font-size: .88rem; }
.hora { display: inline-flex; align-items: center; gap: .2rem; font-size: .7rem; color: var(--suave); padding: .1rem .4rem; }
.mini-menu { display: inline-grid; place-items: center; width: 1.8rem; height: 1.5rem; border: 0; background: none; color: var(--suave); border-radius: 8px; }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .45rem .8rem; border-radius: 999px; background: var(--vidro-forte); border: 1px solid var(--borda); font-size: .85rem; font-weight: 700; }
.enviar { display: flex; gap: .5rem; align-items: flex-end; }
.enviar textarea { flex: 1; min-height: 2.9rem; max-height: 8rem; padding: .7rem .9rem; border-radius: 16px; border: 2px solid var(--borda); background: rgb(0 0 0 / .3); resize: none; }
.enviar textarea:focus { outline: none; border-color: var(--ouro); }

/* ---------- jogos ---------- */
.jogos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.jogo { position: relative; min-height: 11rem; justify-content: flex-end; gap: .3rem; overflow: hidden; border: 2px solid #000; box-shadow: var(--sombra-dura);
  background: linear-gradient(160deg, var(--g1), var(--g2)); color: var(--tinta); }
.jogo b { font: 900 1rem/1.1 var(--display); }
.jogo > span:not(.pilula):not(.jogo-emoji) { font-size: .8rem; font-weight: 700; opacity: .8; }
.jogo-emoji { position: absolute; top: .4rem; right: .5rem; font-size: 3.2rem; transform: rotate(10deg); }
.jogo .pilula { position: absolute; top: .7rem; left: .7rem; background: rgb(0 0 0 / .8); color: #fff; border: 0; font-size: .7rem; }
.selos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.selo { display: flex; flex-direction: column; gap: .15rem; padding: .7rem; border-radius: 16px; background: rgb(0 0 0 / .25); border: 1px dashed var(--borda); opacity: .5; filter: grayscale(1); }
.selo.ganho { opacity: 1; filter: none; border: 1px solid rgb(255 210 63 / .5); background: rgb(255 210 63 / .1); }
.selo-emoji { font-size: 1.6rem; }
.selo small { color: var(--suave); font-size: .74rem; line-height: 1.25; }

/* ---------- quiz ---------- */
.quiz, .enquete { display: flex; flex-direction: column; gap: 1rem; }
.quiz-topo { display: flex; align-items: center; gap: .7rem; }
.quiz-pergunta { font-size: 1.6rem; animation: entraCarta .5s ease; }
.quiz-opcoes { display: flex; flex-direction: column; gap: .7rem; }
.quiz-opcoes.emojis { display: grid; grid-template-columns: 1fr 1fr; }
.quiz-opcoes.emojis .opcao-quiz { font-size: 3rem; justify-content: center; min-height: 7rem; }
.opcao-quiz { display: flex; align-items: center; min-height: 4rem; padding: .9rem 1.1rem; border-radius: 20px; border: 2px solid #000; box-shadow: var(--sombra-dura);
  font-weight: 700; font-size: 1.02rem; text-align: left; color: var(--tinta); animation: sobe .4s backwards; transition: transform .12s; }
.opcao-quiz:active, .opcao-quiz.escolhida { transform: scale(.97) rotate(-1deg); }
.o0 { background: var(--ouro); } .o1 { background: var(--menta); animation-delay: .05s; } .o2 { background: var(--gelo); animation-delay: .1s; } .o3 { background: var(--chiclete); animation-delay: .15s; }
@keyframes sobe { from { transform: translateY(16px); opacity: 0; } }

/* ---------- enquetes e prêmios ---------- */
.pergunta-cartao { align-items: center; text-align: center; background: linear-gradient(160deg, rgb(255 61 110 / .3), rgb(167 123 255 / .2)); }
.premio-emoji { font-size: 2.8rem; }
.premios { display: grid; gap: .8rem; }
.premio { align-items: center; text-align: center; }
.vencedores { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.vencedores span { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.05rem; }

/* ---------- ranking ---------- */
.podio { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: .5rem; margin-top: .5rem; }
.degrau { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .85rem; }
.degrau b { font-size: .95rem; word-break: break-word; }
.degrau > span:not(.av) { color: var(--ouro); font-weight: 700; }
.bloco-podio { width: 100%; display: grid; place-items: center; border-radius: 16px 16px 6px 6px; border: 2px solid #000; color: var(--tinta); font: 900 1.6rem var(--display); box-shadow: var(--sombra-dura); }
.d1 .bloco-podio { height: 7rem; background: var(--ouro); }
.d2 .bloco-podio { height: 5rem; background: #dfe3f0; }
.d3 .bloco-podio { height: 3.8rem; background: #ffad6b; }
.lista-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.lista-rank li { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 16px; background: var(--vidro); border: 1px solid var(--borda); }
.lista-rank li.eu { border-color: var(--ouro); background: rgb(255 210 63 / .1); }
.lista-rank b { color: var(--ouro); }
.pos { font: 900 .9rem var(--display); width: 2.2rem; color: var(--suave); }
.voce-rank { text-align: center; color: var(--suave); }
.como-aura { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; }
.como-aura li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--borda); }
.como-aura b { color: var(--menta); }

/* ---------- mural ---------- */
.recado-form textarea { min-height: 4.5rem; }
.recado-form .linha-flex { justify-content: space-between; }
.posts { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .posts { grid-template-columns: 1fr 1fr; } }
.post { --giro: 0deg; position: relative; padding: .9rem 1rem .7rem; border-radius: 20px; border: 2px solid #000; box-shadow: var(--sombra-dura);
  background: linear-gradient(160deg, var(--g1), var(--g2)); color: var(--tinta); transform: rotate(var(--giro)); display: flex; flex-direction: column; gap: .5rem; }
.post header { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.post .av { box-shadow: 0 0 0 2px #000; }
.post .hora, .post .mini-menu { color: rgb(16 17 43 / .7); }
.post p { font-weight: 700; font-size: 1.02rem; white-space: pre-wrap; word-break: break-word; }
.reacoes { display: flex; flex-wrap: wrap; gap: .3rem; }
.reacoes button { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem .5rem; border-radius: 999px; border: 1.5px solid rgb(0 0 0 / .3); background: rgb(255 255 255 / .45); font-size: .95rem; }
.reacoes button[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }
.reacoes b { font-size: .78rem; }

/* ---------- organização ---------- */
.destaque-cartao { align-items: center; text-align: center; background: linear-gradient(160deg, rgb(255 210 63 / .2), rgb(255 61 110 / .12)); border-color: rgb(255 210 63 / .4); }
.codigo-grande { display: block; text-align: center; font: 900 2.4rem var(--display); letter-spacing: .18em; color: var(--ouro); text-shadow: 0 0 30px rgb(255 210 63 / .5); }
.lista-turma, .lista-perguntas, .lista-mod { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.lista-turma li, .lista-perguntas li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--borda); }
.lista-turma small { display: block; color: var(--suave); font-size: .78rem; }
.lista-perguntas small { color: var(--suave); }
.denuncia { padding: .9rem; border-radius: 16px; background: rgb(255 61 110 / .1); border: 1px solid rgb(255 61 110 / .35); display: flex; flex-direction: column; gap: .5rem; }
.denuncia blockquote { margin: 0; padding: .6rem .8rem; border-left: 3px solid var(--neon); background: rgb(0 0 0 / .25); border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.lista-mod li { display: flex; flex-direction: column; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid var(--borda); font-size: .9rem; }
.lista-mod small { color: var(--suave); }
.lista-mod span { color: var(--suave); word-break: break-word; }
details.cartao summary { cursor: pointer; list-style: none; }
details.cartao summary::-webkit-details-marker { display: none; }
details.cartao summary h2::after { content: " ▾"; color: var(--suave); }
.link-caixa { padding: .8rem; border-radius: 12px; background: rgb(0 0 0 / .3); word-break: break-all; font-size: .85rem; }

/* ---------- telão ---------- */
.telao { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.telao .faixa { margin: 1rem -1rem 0; font-size: clamp(.8rem, 1.4vw, 1.2rem); }
.telao-corpo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(.8rem, 2.2vh, 1.6rem); padding: 2rem 5vw 4rem; }
.tv-rotulo { font: 700 clamp(.9rem, 1.6vw, 1.4rem) var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--suave); }
.tv-titulo { font: 900 clamp(3rem, 9vw, 8rem)/.92 var(--display); text-transform: uppercase; }
.tv-titulo em { font-style: normal; background: linear-gradient(90deg, var(--neon), var(--ouro), var(--menta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-titulo.pequeno-t { font-size: clamp(2.2rem, 6vw, 5rem); }
.tv-sub { font-size: clamp(1rem, 2vw, 1.7rem); color: var(--suave); }
.telao .controles { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.telao .botao.grande { width: auto; padding-inline: 2rem; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.tv-doador { display: flex; align-items: center; gap: 1.2rem; font: 900 clamp(2rem, 5vw, 4.4rem) var(--display); }
.tv-dicas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; width: min(900px, 100%); }
.tv-dicas li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-radius: 22px; background: var(--vidro); border: 2px dashed var(--borda);
  font: 700 clamp(1.1rem, 2.4vw, 2rem) var(--corpo); color: var(--suave); text-align: left; }
.tv-dicas li.aberta { border: 2px solid var(--menta); color: var(--texto); background: rgb(46 242 166 / .12); animation: sobe .5s; }
.tv-dicas li span { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--menta); color: var(--tinta); font: 900 1.2rem var(--display); }
.tv-suspense span { display: block; font: 900 clamp(8rem, 30vw, 22rem)/1 var(--display); background: linear-gradient(90deg, var(--neon), var(--ouro)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: zum .6s ease-out; }
@keyframes zum { from { transform: scale(2.4); opacity: 0; } }
.tv-revelado { display: flex; flex-direction: column; align-items: center; gap: 1rem; font: 900 clamp(2.6rem, 7vw, 6rem)/1 var(--display); }
.tv-revelado.entra { animation: entraCarta .9s cubic-bezier(.2, 1.4, .4, 1); }
.tv-codinome { font-size: clamp(1.1rem, 2.4vw, 2rem); }
.tv-codinome b { color: var(--ouro); }
.tv-palpite { font: 700 clamp(1rem, 2vw, 1.6rem) var(--corpo); padding: .6rem 1.2rem; border-radius: 999px; background: var(--vidro-forte); }
.tv-palpite.acertou { background: var(--menta); color: var(--tinta); }
.tv-contagem { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); color: var(--suave); font-weight: 700; }
.tv-cantos { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; }
.wrapped { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: min(1000px, 100%); }
.wrapped div { padding: 1.2rem; border-radius: 24px; background: linear-gradient(160deg, rgb(255 61 110 / .3), rgb(167 123 255 / .2)); border: 1px solid var(--borda); animation: sobe .6s backwards; }
.wrapped div:nth-child(2) { animation-delay: .15s; } .wrapped div:nth-child(3) { animation-delay: .3s; } .wrapped div:nth-child(4) { animation-delay: .45s; }
.wrapped div:nth-child(5) { animation-delay: .6s; } .wrapped div:nth-child(6) { animation-delay: .75s; }
.wrapped b { display: block; font: 900 clamp(2rem, 5vw, 4.4rem)/1 var(--display); }
.wrapped span { color: var(--suave); font-size: clamp(.8rem, 1.4vw, 1.2rem); }
.tv-premios { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; width: min(1200px, 100%); }
.tv-premio { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; border-radius: 22px; background: var(--vidro-forte); border: 1px solid var(--borda); animation: sobe .5s backwards; }
.tv-premio span { font-size: 2.6rem; }
.tv-premio small { color: var(--suave); font-size: clamp(.8rem, 1.2vw, 1.05rem); }
.tv-premio b { font: 900 clamp(1.1rem, 2vw, 1.7rem) var(--display); color: var(--ouro); }
.tv-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; width: min(720px, 100%); }
.tv-rank li { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.2rem; border-radius: 20px; background: var(--vidro-forte); border: 1px solid var(--borda);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem); animation: sobe .6s backwards; }
.tv-rank li > span { width: 3rem; font-size: 1.6em; }
.tv-rank b { flex: 1; text-align: left; font-family: var(--display); }
.tv-rank em { font-style: normal; color: var(--ouro); font-weight: 700; }
@media (max-width: 700px) { .wrapped { grid-template-columns: 1fr 1fr; } }

/* ---------- folha, toast, confete ---------- */
.fundo-folha { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .6); display: flex; align-items: flex-end; justify-content: center; animation: aparece .2s; }
.folha { width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--noite-2); border: 1px solid var(--borda); border-bottom: 0;
  border-radius: 28px 28px 0 0; padding: .8rem 16px calc(1.4rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .9rem; animation: sobeFolha .28s cubic-bezier(.2, 1, .3, 1); }
.alca { align-self: center; width: 3rem; height: .3rem; border-radius: 999px; background: var(--borda); }
.folha h2 { font-size: 1.25rem; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobeFolha { from { transform: translateY(100%); } }
.toast { position: fixed; z-index: 60; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: .6rem;
  max-width: calc(100% - 32px); padding: .75rem 1.1rem; border-radius: 18px; background: var(--texto); color: var(--tinta); font-weight: 700; border: 2px solid #000;
  box-shadow: var(--sombra-dura); animation: toast 3s forwards; }
.toast-emoji { font-size: 1.3rem; }
@keyframes toast { 0% { transform: translate(-50%, -150%); } 10%, 88% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -150%); } }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.confete i { position: absolute; left: var(--x); top: var(--y); width: .6rem; height: .85rem; border-radius: 2px; animation: voa 2.4s cubic-bezier(.15, .6, .4, 1) forwards; }
.confete i.emoji { width: auto; height: auto; font-style: normal; font-size: 1.8rem; background: none; }
@keyframes voa { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

@media (min-width: 720px) {
  .grade-avatares { grid-template-columns: repeat(9, 1fr); }
  .titulo-l { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .floco { display: none; }
}

/* ---------- ajustes finos ---------- */
.abas button { white-space: nowrap; font-size: .92rem; }
.marca { white-space: nowrap; }
.topo-barra .pilula { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.jogo b, .jogo > span:not(.jogo-emoji):not(.pilula) { position: relative; z-index: 1; }
.jogo b { font-size: .95rem; }
.jogo-emoji { font-size: 2.6rem; top: .5rem; right: .5rem; opacity: .95; }
.jogo { padding-top: 4.2rem; }
.titulo-xl { margin-bottom: 2rem; }
.adesivo { top: auto; bottom: -1.7rem; right: .3rem; transform: rotate(-4deg); }
