:root {
  --tinta: #12060c;
  --tinta-2: #3b1427;
  --magenta: #df1381;
  --rosa: #e4277e;
  --laranja: #fb8a3a;
  --amarelo: #ffc233;
  --creme: #fff5ec;
  --creme-2: #ffe9d8;
  --pessego: #fddab5;
  --suave: #5a3343;
  --display: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --texto: "Noto Serif", Georgia, serif;
  --linha: 3px solid var(--tinta);
  --sombra-painel: 0 18px 36px -20px rgba(70, 0, 34, .75);
  --saida: cubic-bezier(.16, 1, .3, 1);
  --peca: 62px;
  --rotulo: 58px;
  --fundo-1: #c40c70;
  --fundo-2: #f45f63;
  --fundo-3: #ffc233;
  color-scheme: light;
}
@media (min-width: 720px) {
  :root { --peca: 78px; --rotulo: 84px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--fundo-1);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.5;
  color: var(--tinta);
  overflow-x: hidden;
  background-color: var(--fundo-3);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 0 0 0 0 0 .04 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(172deg, var(--fundo-1) 0, var(--fundo-2) 900px, var(--fundo-3) 1700px);
  background-repeat: repeat, no-repeat;
}
body.com-barra { padding-bottom: 150px; }

::selection { background: var(--tinta); color: var(--amarelo); }
input, textarea { caret-color: var(--magenta); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pagina {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.pagina--estreita { max-width: 520px; }
.tela { animation: entrar .45s var(--saida) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- marca ---------- */
.marca {
  margin: 8px 0 26px;
  display: grid;
  justify-items: center;
  color: var(--creme);
  text-align: center;
  font-weight: inherit;
}
.marca__clube {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .44em;
  margin-right: -.44em;
  text-transform: uppercase;
  line-height: 1.2;
}
.marca__fio { display: flex; align-items: center; gap: 10px; width: min(280px, 78%); margin: 12px 0 8px; }
.marca__fio span { flex: 1; height: 1.5px; background: currentColor; opacity: .9; }
.marca__fio svg { width: 24px; height: 24px; flex: none; fill: var(--amarelo); }
.marca__titulo {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87.5%;
  font-size: clamp(64px, 20vw, 120px);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.marca__titulo small {
  display: block;
  font-size: .36em;
  letter-spacing: .02em;
  font-stretch: 100%;
  font-weight: 700;
  margin-top: .25em;
}
.chamada {
  margin: -6px auto 22px;
  max-width: 32ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1vw + 15px, 22px);
  line-height: 1.3;
  text-align: center;
  color: var(--creme);
  text-wrap: balance;
}

/* ---------- painéis e campos ---------- */
.painel {
  background: var(--creme);
  border: var(--linha);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--sombra-painel);
}
@media (min-width: 720px) { .painel { padding: 24px; } }
.painel + .painel { margin-top: 18px; }

.rotulo {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.rotulo small { font-family: var(--texto); font-weight: 400; font-size: 14px; color: var(--suave); }
.rotulo--segundo { margin-top: 18px; }
.campo {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: var(--linha);
  border-radius: 12px;
  background: #fff;
  color: var(--tinta);
  font: 400 18px/1 var(--texto);
  transition: box-shadow .2s var(--saida);
}
.campo--codigo { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.campo--codigo::placeholder { text-transform: none; letter-spacing: .04em; font-weight: 600; font-size: 20px; }
.campo--pequeno { height: 44px; font-size: 16px; border-width: 2px; }
.campo::placeholder { color: #8a6474; opacity: 1; letter-spacing: normal; }
.campo:focus { outline: none; box-shadow: 0 0 0 4px var(--rosa); }

.erro {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffe1cf;
  color: #7a1a00;
  font-size: 15px;
  line-height: 1.4;
}
.nota { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--suave); }
.nota--centro { text-align: center; }

/* ---------- botões ---------- */
.botao {
  --fundo: var(--creme);
  --cor: var(--tinta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: var(--linha);
  border-radius: 14px;
  background: var(--fundo);
  color: var(--cor);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--tinta);
  transition: transform .15s var(--saida), box-shadow .15s var(--saida), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.botao:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--tinta); }
.botao:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }
.botao:disabled { opacity: .55; cursor: default; transform: none; box-shadow: 0 4px 0 var(--tinta); }
.botao--forte { --fundo: var(--tinta); --cor: var(--amarelo); }
.botao--magenta { --fundo: var(--magenta); --cor: var(--creme); }
.botao--largo { width: 100%; margin-top: 20px; }
.botao--mini { min-height: 40px; padding: 0 14px; font-size: 15px; border-width: 2px; border-radius: 10px; box-shadow: 0 3px 0 var(--tinta); }
.botao--perigo { --fundo: #ffe1cf; --cor: #7a1a00; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- topo da sessão ---------- */
.topo { color: var(--creme); margin-bottom: 16px; }
.topo__linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.topo__marca {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--creme);
  text-decoration: none;
}
.topo__titulo {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87.5%;
  font-size: clamp(32px, 7vw, 54px);
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.topo__meta { margin: 0; font-size: 15px; line-height: 1.5; color: var(--creme); opacity: .95; }
.topo__meta b { font-family: var(--display); letter-spacing: .06em; }

.selo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 6, 12, .72);
  color: var(--creme);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
.selo-status--erro { background: #ffe1cf; color: #7a1a00; }

/* ---------- abas ---------- */
.abas {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 0 -2px 6px;
  scrollbar-width: none;
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  background: rgba(255, 245, 236, .82);
  color: var(--tinta);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.aba[aria-selected="true"] { background: var(--tinta); color: var(--amarelo); }
.aba__conta { font-family: var(--texto); font-weight: 400; font-size: 13px; opacity: .8; }
.aba--nova { background: transparent; color: var(--creme); border-color: var(--creme); border-style: dashed; }

.segmentos { display: inline-flex; border: 2px solid var(--tinta); border-radius: 12px; overflow: hidden; background: #fff; }
.segmentos button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.segmentos button + button { border-left: 2px solid var(--tinta); }
.segmentos button[aria-pressed="true"] { background: var(--tinta); color: var(--amarelo); }

/* ---------- cabeçalho de cada tier list ---------- */
.lista__cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.lista__titulo { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4vw, 32px); line-height: 1.05; }
.lista__dica { margin: 4px 0 0; font-size: 15px; color: var(--suave); line-height: 1.4; }

/* ---------- quadro da tier list ---------- */
.quadro {
  border: var(--linha);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.quadro--rotulos-longos { --rotulo: 104px; }
.nivel {
  display: grid;
  grid-template-columns: var(--rotulo) 1fr;
  border-top: 2px solid var(--tinta);
}
.nivel:first-child { border-top: 0; }
.nivel__rotulo {
  display: grid;
  place-items: center;
  padding: 6px 4px;
  background: var(--cor);
  border-right: 2px solid var(--tinta);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 4.5vw, 32px);
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
  color: var(--cor-texto, var(--tinta));
}
.quadro--rotulos-longos .nivel__rotulo { font-size: 15px; line-height: 1.1; }
.nivel__itens {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  min-height: calc(var(--peca) + 14px);
  padding: 7px;
  transition: background .2s;
}
.quadro.tem-selecao .nivel__itens { cursor: pointer; }
.quadro.tem-selecao .nivel:hover .nivel__itens,
.nivel__itens.is-alvo { background: var(--creme-2); }

.banco { margin-top: 16px; }
.banco__cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.banco__titulo { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.banco__conta { font-size: 14px; color: var(--suave); }
.banco .nivel__itens {
  border: 2px dashed var(--tinta);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}
.banco .nivel__itens:empty::before {
  content: attr(data-vazio);
  margin: auto;
  font-size: 15px;
  color: var(--suave);
  text-align: center;
}

/* ---------- peças ---------- */
.peca {
  position: relative;
  display: inline-block;
  vertical-align: top;
  flex: none;
  width: var(--peca);
  height: var(--peca);
  padding: 0;
  border: 2px solid var(--tinta);
  border-radius: 10px;
  overflow: hidden;
  background: var(--creme);
  cursor: pointer;
  transition: transform .18s var(--saida), box-shadow .18s var(--saida);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.peca__foto { position: absolute; inset: 0; display: block; overflow: hidden; }
.peca img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  pointer-events: none;
}
/* Retrato: proporção de capa de livro (2:3) */
.peca--retrato { width: calc(var(--peca) * .8); height: calc(var(--peca) * 1.2); }
.peca--retrato img { object-position: 50% 50%; }
/* Redondo: bolinha com o nome embaixo */
.peca--redondo {
  width: calc(var(--peca) + 6px);
  height: auto;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.peca--redondo .peca__foto {
  position: relative;
  width: var(--peca);
  height: var(--peca);
  margin: 0 auto;
  border: 2px solid var(--tinta);
  border-radius: 50%;
  background: var(--creme);
}
.peca--redondo .peca__nome {
  position: static;
  display: block;
  padding: 3px 0 0;
  background: none;
  color: var(--tinta);
}
.peca--redondo .peca__inicial { padding-bottom: 0; }
.peca.peca--redondo[aria-pressed="true"] { outline: none; box-shadow: none; }
.peca.peca--redondo[aria-pressed="true"] .peca__foto { outline: 3px solid var(--magenta); outline-offset: 2px; box-shadow: 0 10px 18px -8px rgba(70, 0, 34, .7); }
.peca__nome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 3px 3px;
  background: linear-gradient(rgba(18, 6, 12, 0), rgba(18, 6, 12, .88) 55%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 720px) { .peca__nome { font-size: 12px; } }
.peca--sem-foto .peca__foto { background: linear-gradient(150deg, var(--magenta), var(--laranja)); }
.peca__inicial {
  display: grid;
  place-items: center;
  height: 100%;
  padding-bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(var(--peca) * .44);
  color: var(--creme);
}
.peca--texto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: var(--peca);
  max-width: calc(var(--peca) * 2.5);
  padding: 4px 8px;
  background: var(--creme);
}
.peca__texto {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
@media (min-width: 720px) { .peca__texto { font-size: 13.5px; } }
.peca[aria-pressed="true"] {
  z-index: 1;
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 18px -8px rgba(70, 0, 34, .7);
}
.peca.is-arrastando { opacity: .4; }
.peca__selo {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--tinta);
  color: var(--amarelo);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.peca--texto .peca__selo { position: static; margin-left: 6px; flex: none; }
.peca__tirar {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--creme);
  border-radius: 50%;
  background: var(--tinta);
  color: var(--creme);
  font-size: 14px;
  line-height: 1;
}

/* ---------- barra de escolher nível ---------- */
.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--tinta);
  color: var(--creme);
  box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .55);
  animation: subir .28s var(--saida) both;
}
@keyframes subir { from { transform: translateY(100%); } }
.barra__topo, .barra__niveis { max-width: 820px; margin: 0 auto; }
.barra__topo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.barra__foto { width: 40px; height: 40px; flex: none; border-radius: 8px; border: 2px solid var(--creme); object-fit: cover; object-position: 50% 22%; }
.barra__foto--retrato { width: 32px; height: 46px; }
.barra__foto--redondo { border-radius: 50%; }
.barra__nome { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.barra__nome small { display: block; font-family: var(--texto); font-weight: 400; font-size: 13px; opacity: .8; }
.barra__fechar {
  width: 40px;
  height: 40px;
  flex: none;
  border: 2px solid var(--creme);
  border-radius: 50%;
  background: transparent;
  color: var(--creme);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.barra__niveis { display: flex; gap: 6px; }
.barra__nivel {
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  border: 2px solid var(--creme);
  border-radius: 12px;
  background: var(--cor);
  color: var(--tinta);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}
.barra__nivel--longo { font-size: 12px; line-height: 1.05; white-space: normal; overflow-wrap: anywhere; }
.barra__nivel[aria-current="true"] { box-shadow: inset 0 0 0 3px var(--tinta); }
.barra__nivel--tirar { flex: .8 1 0; background: transparent; color: var(--creme); font-size: 13px; font-family: var(--texto); font-weight: 600; white-space: normal; line-height: 1.1; }

/* ---------- mensagens ---------- */
.faixa {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tinta);
  color: var(--creme);
  font-size: 15px;
  line-height: 1.45;
}
.faixa--clara { background: var(--creme-2); color: var(--tinta); border: 2px solid var(--tinta); }
.pronto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--tinta);
  color: var(--creme);
}
.pronto p { margin: 0; flex: 1 1 240px; font-size: 15px; line-height: 1.45; }
.pronto strong { color: var(--amarelo); font-family: var(--display); font-size: 18px; }
.pronto .botao { --fundo: var(--amarelo); border-color: var(--amarelo); box-shadow: none; }

.vazio { padding: 26px 8px; text-align: center; color: var(--suave); }
.vazio strong { display: block; color: var(--tinta); font-family: var(--display); font-size: 20px; margin-bottom: 4px; }

.carregando { display: grid; place-items: center; min-height: 40vh; color: var(--creme); font-family: var(--display); font-size: 20px; }

.aviso-flutuante {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--tinta);
  color: var(--creme);
  font-size: 15px;
  box-shadow: var(--sombra-painel);
  transform: translateX(-50%);
  animation: cair .3s var(--saida) both;
}
.aviso-flutuante--erro { background: #ffe1cf; color: #7a1a00; border: 2px solid #7a1a00; }
@keyframes cair { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- detalhe de um item (resultado) ---------- */
dialog.folha {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: var(--linha);
  border-radius: 18px;
  background: var(--creme);
  color: var(--tinta);
  box-shadow: var(--sombra-painel);
}
dialog.folha::backdrop { background: rgba(18, 6, 12, .55); }
dialog.folha--larga { width: min(760px, calc(100vw - 24px)); }
.folha__corpo { padding: 20px 18px; }
.folha__topo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.folha__topo .peca { --peca: 72px; cursor: default; }
.folha__titulo { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.folha__sub { margin: 2px 0 0; font-size: 15px; color: var(--suave); }
.folha__acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dist { display: grid; gap: 6px; }
.dist__linha { display: grid; grid-template-columns: minmax(52px, 34%) 1fr 64px; align-items: center; gap: 8px; font-size: 14px; }
.dist__nivel { display: grid; place-items: center; min-height: 30px; padding: 2px 4px; border: 2px solid var(--tinta); border-radius: 8px; background: var(--cor); color: var(--cor-texto, var(--tinta)); font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.05; text-align: center; overflow-wrap: anywhere; }
.dist__barra { height: 14px; border-radius: 7px; background: var(--creme-2); overflow: hidden; border: 1.5px solid var(--tinta); }
.dist__barra span { display: block; height: 100%; background: var(--tinta); }
.dist__num { text-align: right; color: var(--suave); }

@media (max-width: 380px) {
  :root { --peca: 56px; --rotulo: 50px; }
}

/* ==========================================================================
   Tema com capa do livro
   ========================================================================== */
.capa-lateral { display: none; }
.capa-mini {
  flex: none;
  width: 52px;
  height: 78px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--tinta), 0 10px 22px -8px rgba(0, 0, 0, .55);
  transform: rotate(-3deg);
}
.com-capa .layout-capa { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .com-capa .layout-capa { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 36px; align-items: start; }
  .com-capa .capa-lateral { display: block; position: sticky; top: 28px; }
  .com-capa .capa-mini { display: none; }
}
.capa-lateral img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--tinta), 0 34px 60px -22px rgba(0, 0, 0, .6);
  transform: rotate(-2deg);
}
.capa-lateral p {
  margin: 20px 4px 0;
  color: var(--creme);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

/* ==========================================================================
   Tela de votar (rodada ao vivo)
   ========================================================================== */
.topo--jogo { display: flex; align-items: center; gap: 14px; }
.topo--jogo .topo__textos { flex: 1; min-width: 0; }
.topo--jogo .topo__titulo { font-size: clamp(26px, 6vw, 42px); margin: 4px 0 2px; }

.cartao-jogo {
  max-width: 560px;
  margin: 0 auto;
  padding: 26px 18px 24px;
  border: var(--linha);
  border-radius: 26px;
  background: var(--creme);
  box-shadow: var(--sombra-painel);
  text-align: center;
}
@media (min-width: 720px) { .cartao-jogo { padding: 32px 30px 28px; } }
.jogo__categoria {
  margin: 0 0 16px;
  color: var(--suave);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.jogo__nome { margin: 18px 0 2px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8vw, 44px); line-height: 1.02; text-wrap: balance; }
.jogo__aviso { margin: 14px 0 0; font-size: 15px; color: var(--suave); min-height: 1.5em; }

/* foto grande */
.destaque {
  position: relative;
  width: min(52vw, 240px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 4px solid var(--tinta);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--magenta), var(--laranja));
  box-shadow: 0 0 0 8px var(--creme-2), 0 22px 40px -18px rgba(0, 0, 0, .55);
  animation: surgir .5s var(--saida) both;
}
.destaque img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.destaque--retrato { width: min(40vw, 180px); aspect-ratio: 2 / 3; border-radius: 14px; }
.destaque--retrato img { object-position: 50% 50%; }
.destaque__inicial { display: grid; place-items: center; height: 100%; color: var(--creme); font-family: var(--display); font-weight: 800; font-size: 76px; }
.destaque--texto {
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--creme-2);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.15;
  text-wrap: balance;
}
.destaque--mini { width: 112px; box-shadow: 0 0 0 5px var(--creme-2); }
.destaque--mini.destaque--retrato { width: 86px; }
.destaque--mini .destaque__inicial { font-size: 40px; }
.destaque--mini.destaque--texto { width: auto; min-height: 0; padding: 14px 16px; font-size: 20px; }
@keyframes surgir { from { opacity: 0; transform: scale(.85); } }

/* tempo */
.tempo { margin: 14px auto 0; max-width: 320px; }
.tempo__num { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; }
.tempo__num small { font-family: var(--texto); font-weight: 400; font-size: 13px; color: var(--suave); }
.tempo__barra { height: 10px; margin-top: 8px; border: 2px solid var(--tinta); border-radius: 6px; background: var(--creme-2); overflow: hidden; }
.tempo__barra span { display: block; height: 100%; background: var(--magenta); transform-origin: left center; }
.tempo--acabando .tempo__num { color: #b3261e; }

/* opções de voto */
.opcoes { display: grid; gap: 10px; margin-top: 22px; }
.opcao-voto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px;
  border: var(--linha);
  border-radius: 16px;
  background: var(--cor);
  color: var(--cor-texto, var(--tinta));
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--tinta);
  transition: transform .15s var(--saida), box-shadow .15s var(--saida), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.opcao-voto:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }
.opcao-voto__marca { font-family: var(--texto); font-weight: 600; font-size: 13px; opacity: 0; }
.opcao-voto[aria-pressed="true"] { outline: 4px solid var(--tinta); outline-offset: 3px; }
.opcao-voto[aria-pressed="true"] .opcao-voto__marca { opacity: 1; }
.opcoes--votou .opcao-voto:not([aria-pressed="true"]) { opacity: .5; }
.opcao-voto:disabled { cursor: default; transform: none; }
.opcoes--fechadas .opcao-voto { opacity: .45; }

/* resultado */
.veredito {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  margin: 18px auto 4px;
  padding: 14px 30px 16px;
  border: var(--linha);
  border-radius: 20px;
  background: var(--cor);
  color: var(--cor-texto, var(--tinta));
  box-shadow: 0 6px 0 var(--tinta);
  animation: estourar .7s var(--saida) both;
}
.veredito span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.veredito strong { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 12vw, 64px); line-height: 1; }
.veredito small { font-size: 14px; }
@keyframes estourar { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 60% { transform: scale(1.08) rotate(1deg); } }
.cartao-jogo .dist { margin: 18px auto 0; max-width: 420px; text-align: left; }
.dist__linha--marcada .dist__num { color: var(--tinta); font-weight: 700; }
.meu-voto { margin: 14px 0 0; font-size: 15px; }

/* esperando */
.espera { padding: 18px 4px 8px; }
.espera svg { width: 54px; height: 54px; fill: var(--magenta); animation: girar 7s linear infinite; }
.espera h2 { margin: 14px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 34px); line-height: 1.1; }
.espera p { margin: 0 auto; max-width: 34ch; color: var(--suave); }
@keyframes girar { to { transform: rotate(360deg); } }

/* ==========================================================================
   Palco do backstage (o que vai no Meet)
   ========================================================================== */
.ao-vivo { display: grid; gap: 18px; }
@media (min-width: 980px) { .ao-vivo { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; } }
.palco {
  padding: 22px 18px;
  border: var(--linha);
  border-radius: 20px;
  background: var(--creme-2);
  text-align: center;
}
@media (min-width: 980px) { .palco { position: sticky; top: 16px; } }
.palco .jogo__nome { font-size: clamp(26px, 3vw, 34px); margin-top: 14px; }
.palco__contagem { margin: 10px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.palco__contagem small { display: block; font-family: var(--texto); font-weight: 400; font-size: 14px; color: var(--suave); }
.palco .botoes { justify-content: center; margin-top: 16px; }
.palco .dist { text-align: left; margin-top: 14px; }
.palco__dica { margin: 8px 0 0; font-size: 15px; color: var(--suave); }
.palco__nomes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.palco__nomes span { padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--tinta); background: #fff; font-size: 13px; }
.palco__nomes span.ja { background: var(--tinta); color: var(--creme); }
#painel-lista:fullscreen .ao-vivo { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
#painel-lista:fullscreen .palco .destaque { width: 260px; }
#painel-lista:fullscreen .palco .destaque--retrato { width: 200px; }

.espera__capa {
  display: block;
  width: min(46vw, 200px);
  margin: 4px auto 6px;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--tinta), 0 26px 44px -20px rgba(0, 0, 0, .6);
  transform: rotate(-3deg);
  animation: surgir .6s var(--saida) both;
}
.espera--capa svg { display: none; }
@media (min-width: 900px) {
  .com-capa .espera__capa { display: none; }
  .com-capa .espera--capa svg { display: inline-block; }
}

/* ==========================================================================
   Enfeites do fundo (inspirados na capa do tema)
   ========================================================================== */
.pagina { position: relative; z-index: 1; }
.enfeites { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.enf { position: absolute; display: block; color: var(--tinta); }
.enf svg { display: block; width: 100%; height: auto; overflow: visible; }
.enf--brilho svg { fill: var(--creme); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--amarelo) 80%, transparent)); }
.enf--brilho { width: 22px; animation: piscar 4.5s ease-in-out infinite; }
.enf--b1 { left: 12vw; top: 9vh; width: 28px; }
.enf--b2 { left: 4vw; top: 38vh; animation-delay: -1.2s; }
.enf--b3 { right: 12vw; top: 26vh; width: 30px; animation-delay: -2.4s; }
.enf--b4 { right: 3vw; top: 66vh; animation-delay: -3.1s; }
.enf--b5 { left: 15vw; bottom: 18vh; width: 18px; animation-delay: -.6s; }
.enf--b6 { right: 16vw; bottom: 6vh; width: 26px; animation-delay: -1.8s; }
.enf--b7 { left: 24vw; top: 70vh; width: 16px; animation-delay: -2.9s; }
.enf--b8 { right: 24vw; top: 6vh; width: 18px; animation-delay: -3.6s; }
@keyframes balancar { 0%, 100% { rotate: -2deg; } 50% { rotate: 3deg; } }
@keyframes piscar { 0%, 100% { opacity: .25; scale: .7; } 50% { opacity: 1; scale: 1.1; } }
/* artes das laterais, "impressas" no degradê do fundo */
.enfeites-artes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; mix-blend-mode: multiply; }
.arte { position: absolute; bottom: 0; display: block; height: auto; animation: arte-entrar 1.2s var(--saida) both; }
.arte--direita { right: 0; width: min(48vw, 680px); }
.arte--esquerda { left: 0; width: min(34vw, 480px); }
@keyframes arte-entrar { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 719px) {
  .arte { opacity: .6; }
  .arte--direita { width: 82vw; }
  .arte--esquerda { width: 58vw; }
}
@media (prefers-reduced-motion: reduce) { .enf { animation: none !important; } }

/* tela de quem vota: recado depois do voto */
.recado { margin: 16px auto 0; max-width: 34ch; padding: 10px 14px; border-radius: 12px; background: var(--creme-2); font-size: 15px; line-height: 1.4; }

/* ==========================================================================
   Logo do clube (duas camadas que seguem as cores do tema)
   ========================================================================== */
:root { --logo-contorno: #ff66c4; --logo-letras: #f4f1ef; }
.logo-clube { position: relative; display: inline-block; flex: none; width: 150px; aspect-ratio: 709 / 355; }
.logo-clube__desenho { position: absolute; inset: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .22)); }
.logo-clube__desenho > span { position: absolute; inset: 0; -webkit-mask: url("/marca/logo-contorno.png") center / contain no-repeat; mask: url("/marca/logo-contorno.png") center / contain no-repeat; background: var(--logo-contorno); }
.logo-clube__desenho > .logo-clube__letras { -webkit-mask-image: url("/marca/logo-letras.png"); mask-image: url("/marca/logo-letras.png"); background: var(--logo-letras); }
/* estrelinhas brilhando de leve atrás do logo */
.logo-clube__brilhos { position: absolute; inset: 0; pointer-events: none; }
.logo-clube__brilhos > span { position: absolute; display: block; aspect-ratio: 1; transform: translate(-50%, -50%); animation: brilho-logo 3.4s ease-in-out infinite; }
.logo-clube__brilhos svg { display: block; width: 100%; height: 100%; fill: var(--logo-letras); filter: drop-shadow(0 0 3px var(--amarelo)) drop-shadow(0 0 6px color-mix(in srgb, var(--amarelo) 70%, transparent)); }
@keyframes brilho-logo {
  0%, 100% { opacity: 0; scale: .4; rotate: 0deg; }
  45% { opacity: .9; scale: 1; rotate: 25deg; }
  60% { opacity: .75; scale: .85; rotate: 35deg; }
}
@media (prefers-reduced-motion: reduce) { .logo-clube__brilhos > span { animation: none; opacity: .6; } }
.topo__logo { margin: 0 0 4px; line-height: 0; }
.logo-clube--jogo { width: min(52vw, 210px); }
.topo--jogo #status { align-self: flex-start; }

/* ---------- fim da sessão: a tier list pronta para compartilhar ---------- */
.final__titulo { margin: 2px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 34px); line-height: 1.1; }
.final__texto { margin: 0 auto 16px; max-width: 34ch; color: var(--suave); }
.final__imagem { display: grid; place-items: center; width: 100%; max-width: 400px; margin: 0 auto; }
.final__imagem img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--sombra-painel); -webkit-touch-callout: default; }
.final__imagem--carregando { aspect-ratio: 4 / 5; padding: 16px; border: 2px dashed color-mix(in srgb, var(--tinta) 30%, transparent); border-radius: 16px; color: var(--suave); font-size: 15px; animation: final-pulsar 1.6s ease-in-out infinite; }
@keyframes final-pulsar { 50% { opacity: .55; } }
.final__acoes { display: grid; justify-items: center; margin: 0 0 18px; }
.final__baixar { margin-top: 14px; font-size: 15px; }
.final__acoes .botao--largo { max-width: 400px; }
@media (prefers-reduced-motion: reduce) { .final__imagem--carregando { animation: none; } }

/* ==========================================================================
   Página inicial de quem vota: logo do clube + dragões, fadinhas, luas e estrelas
   ========================================================================== */
.marca__logo { line-height: 0; margin-bottom: 2px; }
.logo-clube--entrada { width: min(56vw, 250px); }
.fantasia .fant { position: absolute; display: block; }
.fantasia .fant svg { display: block; width: 100%; height: auto; overflow: visible; }
.fant--virada svg { transform: scaleX(-1); }

.fant--lua svg { fill: var(--creme); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--amarelo) 80%, transparent)); }
.fant--lua { animation: lua-balancar 14s ease-in-out infinite; }
.fant--lua1 { right: 7vw; top: 7vh; width: clamp(64px, 8vw, 120px); }
.fant--lua2 { left: 7vw; bottom: 9vh; width: clamp(34px, 3.6vw, 54px); opacity: .75; animation-delay: -6s; }
.fant--lua2 svg { transform: rotate(140deg); }
@keyframes lua-balancar { 0%, 100% { rotate: -6deg; } 50% { rotate: 5deg; } }

.fant--dragao svg { fill: var(--tinta); }
.fant--dragao .membrana { opacity: .82; }
.fant--dragao .osso { fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fant--dragao .asa-longe { opacity: .55; transform-origin: 160px 86px; animation: dragao-asa 1.9s ease-in-out infinite alternate; animation-delay: -.2s; }
.fant--dragao .asa-perto { transform-origin: 150px 86px; animation: dragao-asa 1.9s ease-in-out infinite alternate; }
.fant--dragao { opacity: .5; animation: dragao-planar 11s ease-in-out infinite; }
.fant--dragao1 { left: 5vw; top: 15vh; width: clamp(130px, 17vw, 250px); }
.fant--dragao2 { right: 6vw; top: 42vh; width: clamp(90px, 10vw, 150px); opacity: .34; animation-delay: -5s; }
@keyframes dragao-asa { from { transform: scaleY(1); } to { transform: scaleY(.6) rotate(-3deg); } }
@keyframes dragao-planar { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 16px -12px; rotate: 2deg; } }

.fant--fada svg { fill: var(--creme); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--amarelo) 85%, transparent)); }
.fant--fada .asa { fill: color-mix(in srgb, var(--creme) 45%, transparent); stroke: var(--creme); stroke-width: 1.6; }
.fant--fada .veio { fill: none; stroke: var(--creme); stroke-width: 1; opacity: .7; }
.fant--fada .varinha { fill: none; stroke: var(--creme); stroke-width: 1.8; stroke-linecap: round; }
.fant--fada .asas { transform-origin: 62px 52px; animation: fada-asa .5s ease-in-out infinite alternate; }
.fant--fada .rastro { animation: rastro-cintilar 2.2s ease-in-out infinite; }
.fant--fada { animation: fada-flutuar 6s ease-in-out infinite; }
.fant--fada1 { left: 11vw; top: 55vh; width: clamp(64px, 7vw, 104px); }
.fant--fada2 { right: 13vw; top: 70vh; width: clamp(54px, 5.6vw, 84px); animation-delay: -3s; }
@keyframes fada-asa { to { transform: scaleX(.76) skewY(-4deg); } }
@keyframes fada-flutuar { 0%, 100% { translate: 0 0; } 50% { translate: 6px -14px; } }
@keyframes rastro-cintilar { 50% { opacity: .25; } }

.fant--estrela svg { fill: var(--amarelo); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--amarelo) 90%, transparent)); }
.fant--estrela { width: 14px; animation: piscar 5s ease-in-out infinite; }
.fant--e1 { left: 30vw; top: 5vh; animation-delay: -1s; }
.fant--e2 { left: 3vw; top: 30vh; width: 10px; animation-delay: -2.2s; }
.fant--e3 { right: 20vw; top: 33vh; width: 12px; animation-delay: -3.4s; }
.fant--e4 { left: 22vw; top: 44vh; width: 9px; animation-delay: -.4s; }
.fant--e5 { right: 4vw; top: 84vh; animation-delay: -2.8s; }
.fant--e6 { left: 4vw; top: 74vh; width: 11px; animation-delay: -4.1s; }
.fant--e7 { right: 30vw; top: 90vh; width: 10px; animation-delay: -1.6s; }

/* celular: tudo menor e nas beiradas, para não brigar com o título e o formulário */
@media (max-width: 719px) {
  .fant--lua1 { right: 3vw; top: 1.5vh; width: 46px; }
  .fant--lua2 { left: 3vw; bottom: 3vh; width: 28px; }
  .fant--dragao1 { left: 1vw; top: 2vh; width: 78px; }
  .fant--dragao2 { right: 1vw; top: 15vh; width: 60px; }
  .fant--fada1 { left: 0; top: 30vh; width: 50px; }
  .fant--fada2 { right: 0; top: 43vh; width: 44px; }
  .fant--estrela { width: 10px; }
}
@media (prefers-reduced-motion: reduce) { .fantasia *, .fantasia .fant { animation: none !important; } }

