:root {
  --vermelho: #b3110f;
  --vermelho-escuro: #3a0404;
  --ouro: #ffcc33;
  --ouro-claro: #fff3a8;
  --ouro-escuro: #b97c00;
  --marrom: #5a2400;
  --creme: #fff4e0;
  --verde: #17a34a;
  --texto: #2a1203;
  --display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --corpo: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gradiente-ouro: linear-gradient(180deg, var(--ouro-claro), var(--ouro) 45%, var(--ouro-escuro));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--corpo);
  color: var(--creme);
  background: #1a0202;
}

button { font: inherit; border: 0; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  /* Cenário: imagem gerada (assets/bg.webp) por cima do fundo provisório em CSS */
  background:
    url('assets/bg.webp') center top / cover no-repeat,
    radial-gradient(ellipse at 50% 18%, rgba(255, 190, 80, .55), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.12) 46px 50px),
    linear-gradient(180deg, #c3170f 0%, #8e0b07 45%, var(--vermelho-escuro) 100%);
}

.celular-only { display: none; }
@media (min-width: 700px) and (pointer: fine) {
  .celular-only {
    display: block;
    position: fixed;
    left: 24px; top: 24px;
    max-width: 220px;
    font-weight: 800;
    color: var(--ouro-claro);
    font-size: 18px;
  }
  #app { box-shadow: 0 0 0 4px var(--ouro-escuro), 0 0 60px rgba(0,0,0,.6); }
}

.tela {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
}
.tela.ativa { display: flex; }

/* ---------- Logo e personagem (imagem gerada ou provisório) ---------- */
.logo-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-texto {
  font-family: var(--display);
  line-height: .85;
  text-align: center;
  background: var(--gradiente-ouro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #6b0000) drop-shadow(0 0 2px #6b0000) drop-shadow(0 6px 10px rgba(0,0,0,.5));
}
.logo-texto small { display: block; font-size: .48em; letter-spacing: .18em; }
.logo-texto em {
  display: block;
  margin-top: .12em;
  font-style: normal;
  font-family: var(--corpo);
  font-weight: 900;
  font-size: .26em;
  letter-spacing: .5em;
  text-transform: uppercase;
  padding-left: .5em;
}

.personagem-slot { display: flex; align-items: flex-end; justify-content: center; }
.personagem-slot img, .personagem-slot svg {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.45));
}
.personagem-slot svg { aspect-ratio: 200 / 220; }

/* ---------- CARREGANDO ---------- */
#tela-carregando {
  justify-content: center;
  gap: 3dvh;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0), rgba(0,0,0,.45));
}
.logo-grande { width: min(84vw, 360px); height: 22dvh; display: flex; align-items: center; justify-content: center; }
.logo-grande .logo-texto { font-size: clamp(46px, 15vw, 70px); }
.personagem-intro { height: 32dvh; width: 100%; animation: flutua 2.4s ease-in-out infinite; }
@keyframes flutua { 50% { transform: translateY(-8px); } }

.carregando { width: min(78vw, 320px); }
.barra { height: 14px; border-radius: 999px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px var(--ouro-escuro); overflow: hidden; }
.barra span { display: block; height: 100%; width: 0; background: var(--gradiente-ouro); border-radius: 999px; transition: width .2s; }
.carregando p { margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--ouro-claro); }

.btn-ouro {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .03em;
  color: var(--marrom);
  background: var(--gradiente-ouro);
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #8a5800, 0 10px 20px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.7);
  min-height: 52px;
}
.btn-ouro:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a5800, 0 4px 10px rgba(0,0,0,.4); }
#btn-jogar { animation: pulsa 1.2s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: scale(1.06); } }

.aviso { font-size: 12px; opacity: .8; max-width: 300px; line-height: 1.4; }

/* ---------- JOGO ---------- */
#tela-jogo { padding-top: env(safe-area-inset-top); }

.cenario {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.logo-jogo {
  position: absolute;
  z-index: 2;
  top: 6px; left: 10px;
  width: min(44vw, 200px);
  height: min(16dvh, 110px);
  display: flex; align-items: flex-start; justify-content: flex-start;
}
.logo-jogo .logo-texto { font-size: clamp(24px, 7.6vw, 34px); text-align: left; }
.personagem-jogo {
  position: absolute;
  inset: 4px 0 -6px 34%;
  transform-origin: 50% 100%;
}
.personagem-jogo img, .personagem-jogo svg { margin-left: auto; margin-right: 6%; }
.personagem-jogo.comemora { animation: comemora .5s ease-in-out 3; }
.personagem-jogo.ruge { animation: ruge .25s ease-in-out 6; }
@keyframes comemora { 25% { transform: rotate(-5deg) scale(1.05); } 75% { transform: rotate(5deg) scale(1.05); } }
@keyframes ruge { 50% { transform: scale(1.12) translateY(-4px); } }

.balao {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  max-width: 44%;
  padding: 8px 11px;
  background: var(--creme);
  color: var(--texto);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

/* Apoio via Pix: discreto durante o jogo */
.apoio-pill {
  position: absolute;
  z-index: 4;
  top: -42px;
  right: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: var(--marrom);
  background: var(--gradiente-ouro);
  box-shadow: 0 0 0 2px #5a1a00, 0 3px 8px rgba(0,0,0,.45);
  animation: brilho-apoio 3s ease-in-out infinite;
}
@keyframes brilho-apoio { 50% { box-shadow: 0 0 0 2px #5a1a00, 0 0 14px rgba(255,204,51,.9); } }
.apoio-pill:active { transform: scale(.95); }
.apoio-linha {
  color: var(--ouro-claro);
  background: rgba(0,0,0,.3);
  border: 2px solid rgba(255,204,51,.6);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 18px;
}

/* Tela de apoio via Pix (acima de tudo, inclusive do plot twist) */
#pix.pix-fundo { z-index: 40; }
.pix-folha { text-align: center; }
.pix-folha h2 { font-size: 28px !important; }
.pix-intro { font-size: 16px !important; }
.pix-folha .btn-ouro { width: 100%; font-size: 20px; }
.pix-passos { text-align: left; margin: 14px 0 6px 22px; font-size: 15px; line-height: 1.6; }
.pix-ou { font-size: 13px !important; opacity: .7; margin: 12px 0 6px !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.pix-qr { display: block; width: min(64vw, 240px); height: auto; margin: 0 auto 10px; border-radius: 12px; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--ouro-escuro); }
.pix-chave { font-size: 14px !important; }
.pix-chave strong { word-break: break-all; }
.btn-linha-escura { width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid var(--texto); background: transparent; color: var(--texto); font-weight: 900; font-size: 15px; }
.btn-texto { width: 100%; min-height: 44px; margin-top: 6px; background: none; color: var(--texto); font-weight: 800; text-decoration: underline; }
.placar {
  position: relative;
  z-index: 3;
  width: min(94vw, 430px);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 12px 5px;
  border-radius: 16px;
  background: linear-gradient(180deg, #5a0606, #1f0101);
  box-shadow: 0 0 0 3px var(--ouro), 0 0 0 5px #5a1a00, 0 6px 16px rgba(0,0,0,.5), 0 0 24px rgba(255,190,40,.35);
}
.placar span { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--ouro-claro); }
.placar strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 10vw, 42px);
  line-height: 1;
  background: var(--gradiente-ouro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #6b0000);
}
.placar strong.subindo { animation: pulsa .3s ease-in-out 3; }
.placar small { font-size: 11px; font-weight: 800; color: #f3c9a0; min-height: 14px; }

.maquina { width: min(94vw, 41dvh, 430px); flex: 0 0 auto; }

.moldura {
  position: relative;
  padding: 9px;
  border-radius: 18px;
  background: var(--gradiente-ouro);
  box-shadow: 0 0 0 3px #5a1a00, 0 0 0 6px #e0a019, 0 0 0 8px #5a1a00, 0 14px 30px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.7);
}
.canto {
  position: absolute;
  width: 22px; height: 22px;
  background: radial-gradient(circle, #ff4b2b 30%, #9b0000 32%, #9b0000 46%, var(--ouro) 48%);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #5a1a00;
  z-index: 2;
}
.c1 { top: -8px; left: -8px; } .c2 { top: -8px; right: -8px; } .c3 { bottom: -8px; left: -8px; } .c4 { bottom: -8px; right: -8px; }

.rolos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #5b0c06, #2a0402);
}

.rolo {
  position: relative;
  aspect-ratio: 1 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(180deg, #7d1a0c, #a8301a 50%, #7d1a0c);
  box-shadow: inset 0 10px 12px -6px rgba(0,0,0,.6), inset 0 -10px 12px -6px rgba(0,0,0,.6);
}

.fita { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.fita.borrando { filter: blur(1.5px); }

.cel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(32px, 10.5vw, 50px);
  line-height: 1;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.45));
}
.cel img, .cel svg { width: 88%; height: 88%; object-fit: contain; }
.cel.wild { position: relative; }
.cel.wild img {
  width: 84%; height: 84%;
  object-fit: cover;
  border-radius: 16px;
  background: radial-gradient(circle, #ffd86b, #c47a00);
  box-shadow: 0 0 0 3px var(--ouro), 0 0 0 5px #7a2a00;
}
.cel.wild::after {
  content: 'WILD';
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: clamp(11px, 3.4vw, 16px);
  letter-spacing: .04em;
  color: #b3110f;
  background: var(--gradiente-ouro);
  box-shadow: 0 0 0 2px #7a2a00;
}
.cel.premiada { animation: brilha .55s ease-in-out infinite alternate; position: relative; z-index: 1; }
@keyframes brilha { to { transform: scale(1.14); filter: drop-shadow(0 0 10px var(--ouro)) drop-shadow(0 0 4px #fff); } }
.cel.travada { background: radial-gradient(circle, rgba(255,204,51,.45), transparent 70%); }

.linhas { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); pointer-events: none; z-index: 3; overflow: visible; }
.linhas polyline {
  fill: none;
  stroke: var(--ouro-claro);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px var(--ouro)) drop-shadow(0 0 2px #ff7a00);
  animation: pisca .3s steps(2) 4;
}
@keyframes pisca { 50% { opacity: .25; } }

.faixa-ganho {
  margin: 8px auto 6px;
  width: min(94vw, 430px);
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  color: var(--ouro-claro);
  min-height: 36px;
  flex: 0 0 auto;
}
.faixa-ganho.ganhou { color: var(--marrom); background: var(--gradiente-ouro); animation: pulsa .5s ease-in-out 2; }
.faixa-ganho span { display: inline-block; }
/* Letreiro de manchetes entre os giros */
.faixa-ganho.letreiro { text-align: left; font-family: var(--corpo); font-weight: 900; font-size: 14px; line-height: 24px; background: #12060a; box-shadow: inset 0 0 0 2px #c4120c; }
.faixa-ganho.letreiro span { padding-left: 20%; animation: letreiro var(--dur, 18s) linear infinite; }
@keyframes letreiro { to { transform: translateX(-100%); } }

/* ---------- Painel inferior (estilo tigrinho) ---------- */
.painel {
  width: 100%;
  flex: 0 0 auto;
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 10px);
  background: linear-gradient(180deg, #2b1408, #0e0603);
  border-top: 2px solid var(--ouro-escuro);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,.5);
}
.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.valor { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 10px; background: rgba(255,255,255,.05); min-width: 0; }
.valor span { font-size: 11px; font-weight: 800; color: #c9a86a; }
.valor strong { font-weight: 900; font-size: clamp(13px, 3.8vw, 16px); color: #fff; white-space: nowrap; }
#ganho { color: var(--ouro); }

.controles { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.btn-redondo {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #4a2a14, #24120a);
  color: var(--ouro-claro);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 0 2px #6b4420, 0 3px 6px rgba(0,0,0,.5);
}
#btn-auto { font-size: 10px; }
.btn-redondo.ligado { background: var(--gradiente-ouro); color: var(--marrom); }
.btn-redondo:active { transform: scale(.92); }

.btn-girar {
  width: 82px; height: 82px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ouro-claro);
  background: radial-gradient(circle at 50% 30%, #3d7a2a, #1d4a12 60%, #0d2a06);
  box-shadow: 0 0 0 4px var(--ouro), 0 0 0 7px #5a3400, 0 6px 16px rgba(0,0,0,.6), inset 0 3px 6px rgba(255,255,255,.25);
  display: grid; place-items: center;
}
.btn-girar svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.btn-girar:active { transform: scale(.95); }
.btn-girar[disabled] svg { animation: gira .5s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- BIG WIN ---------- */
.vitoria {
  position: absolute; inset: 0;
  z-index: 15;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(60,0,0,.55), rgba(0,0,0,.85));
  overflow: hidden;
  animation: aparece .25s ease-out;
}
@keyframes aparece { from { opacity: 0; } }
.raios {
  position: absolute;
  width: 180vmax; height: 180vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,204,51,.28) 0 10deg, transparent 10deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%);
  mask: radial-gradient(circle, #000 10%, transparent 55%);
  animation: gira 12s linear infinite;
}
.vitoria-img {
  position: relative;
  width: min(62vw, 36dvh, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--ouro), 0 0 0 9px #7a2a00, 0 0 40px rgba(255,190,40,.8);
  margin-bottom: 14px;
  animation: estoura .5s cubic-bezier(.2,1.6,.4,1);
}
.vitoria-conteudo { position: relative; text-align: center; animation: estoura .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes estoura { from { transform: scale(.2); } }
.vitoria-titulo {
  font-family: var(--display);
  font-size: clamp(38px, 12vw, 60px);
  line-height: 1;
  background: var(--gradiente-ouro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #7a2a00;
  filter: drop-shadow(0 4px 0 #7a0000) drop-shadow(0 0 18px rgba(255,170,0,.8));
  padding: 0 12px;
}
.vitoria-valor {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 44px);
  color: #fff;
  text-shadow: 0 3px 0 #7a2a00, 0 0 14px rgba(255,200,0,.9);
}
.vitoria-dica { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 28px); font-size: 13px; opacity: .7; }

/* ---------- Folhas (card do caso e menu) ---------- */
.folha-fundo {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex; align-items: flex-end;
  background: rgba(30,0,0,.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.folha {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--creme);
  color: var(--texto);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(env(safe-area-inset-bottom) + 20px);
  border-top: 6px solid var(--ouro);
  animation: sobe .35s cubic-bezier(.2,.9,.3,1.2);
  -webkit-user-select: text;
  user-select: text;
}
@keyframes sobe { from { transform: translateY(100%); } }
.noticia { padding-top: 0; }
.noticia-topo {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -20px 12px;
  padding: 10px 20px;
  background: #c4120c;
  color: #fff;
  z-index: 1;
}
.plantao { font-weight: 900; font-size: 14px; letter-spacing: .08em; }
.noticia-ano { font-family: var(--display); font-size: 22px; background: #fff; color: #c4120c; padding: 0 10px; border-radius: 6px; }
.manchete { font-size: clamp(26px, 7.6vw, 32px) !important; line-height: 1.05; text-align: left !important; margin: 4px 0 12px !important; }
.noticia-texto { font-size: 17px !important; }
.btn-fonte {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--texto);
  border-radius: 12px;
  padding: 12px;
  margin: 4px 0 8px;
  text-decoration: none;
}
.card-premio { font-family: var(--display); font-size: 30px; color: var(--verde); text-align: center; }
.card-premio.bonus { color: var(--vermelho); font-size: 24px; }
.folha h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 6px 0 10px; text-align: center; }
.folha h3 { font-family: var(--display); font-weight: 400; font-size: 18px; margin: 14px 0 8px; }
.folha p { font-size: 16px; line-height: 1.45; margin-bottom: 10px; }
.card-situacao { font-size: 14px !important; background: #f7e3c0; border-left: 4px solid var(--ouro-escuro); padding: 8px 10px; border-radius: 6px; }
.folha .btn-ouro { width: 100%; margin-top: 8px; }
#menu-rodape { font-size: 14px; }
.folha .lista-fontes a { color: var(--vermelho); }

.lista-fontes { text-align: left; font-size: 14px; }
.lista-fontes ol { padding-left: 20px; display: grid; gap: 8px; }

.toast {
  position: absolute;
  left: 50%; bottom: calc(env(safe-area-inset-bottom) + 150px);
  transform: translateX(-50%);
  z-index: 25;
  width: max-content; max-width: 86%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.85);
  border: 1px solid var(--ouro-escuro);
  font-weight: 800; font-size: 14px; text-align: center;
  animation: aparece .2s;
}

/* ---------- PLOT TWIST ---------- */
#tela-twist {
  z-index: 20;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0b0b0b;
  color: #f2f2f2;
  justify-content: flex-start;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
}
#tela-twist.ativa { animation: glitch .9s steps(6) 1; }
@keyframes glitch {
  0% { filter: hue-rotate(0) contrast(3); transform: translateX(-8px); background: var(--vermelho); }
  30% { transform: translateX(6px) skewX(4deg); }
  60% { filter: invert(1); transform: translateX(-3px); }
  100% { filter: none; transform: none; background: #0b0b0b; }
}
.twist-conteudo { width: 100%; max-width: 420px; padding: 0 4px 24px; text-align: center; }
.twist-conteudo p { font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.twist-ola { opacity: .7; margin-bottom: 0 !important; }
.twist-valor { font-family: var(--display); font-size: 42px !important; color: var(--ouro); line-height: 1.1 !important; }
.twist-saldo { font-family: var(--display); font-size: 42px !important; color: #ff4d4d; line-height: 1.1 !important; }
.grafico { background: #161616; border-radius: 12px; padding: 14px 12px 10px; margin: 0 0 18px; }
.grafico-titulo { font-size: 14px !important; font-weight: 800; margin-bottom: 10px !important; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.barra-ano { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.barra-ano i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--gradiente-ouro); }
.barra-ano b { font-size: 10px; color: var(--ouro-claro); white-space: nowrap; margin-bottom: 4px; }
.barra-ano span { font-size: 12px; font-weight: 800; margin-top: 4px; opacity: .8; }
.grafico-total { font-family: var(--display); font-size: 26px !important; color: #ff4d4d; margin: 10px 0 0 !important; }
.twist-titulo { font-family: var(--display); font-weight: 400; font-size: 34px; color: #ff4d4d; margin: 8px 0 14px; }
.twist-lista { list-style: none; text-align: left; margin: 0 0 18px; display: grid; gap: 10px; }
.twist-lista li { background: #1c1c1c; border-left: 4px solid #ff4d4d; padding: 10px 12px; border-radius: 6px; font-size: 15px; line-height: 1.4; }
.twist-cta { font-family: var(--display); font-size: 32px !important; line-height: 1.1 !important; color: var(--ouro); margin-top: 8px; }
.twist-sub { font-weight: 800; }
.twist-botoes { display: grid; gap: 10px; margin: 16px 0; }
.btn-linha {
  font-weight: 800; font-size: 15px;
  color: var(--ouro);
  background: transparent;
  border: 2px solid var(--ouro);
  border-radius: 999px;
  padding: 12px;
  min-height: 48px;
}
#tela-twist .lista-fontes a { color: var(--ouro-claro); }
.btn-whatsapp {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  background: #25d366;
  border-radius: 999px;
  padding: 14px;
  box-shadow: 0 5px 0 #128c4a, 0 10px 20px rgba(0,0,0,.4);
}
.btn-whatsapp:active { transform: translateY(3px); box-shadow: 0 2px 0 #128c4a; }
.twist-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
a.btn-linha { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.extra { margin: 18px 0 0; padding: 16px 14px; border-radius: 14px; background: #161616; border: 1px solid #333; }
.extra-titulo { font-family: var(--display); font-size: 22px !important; color: var(--ouro); margin-bottom: 10px !important; }
.extra-texto { font-size: 15px !important; }
#pix-chave { word-break: break-all; color: var(--ouro-claro); }
.extra-links { display: grid; gap: 8px; }
.extra .btn-ouro { width: 100%; }
.rodape { font-size: 12px !important; opacity: .6; margin-top: 16px; }

/* ---------- Chuva de moedas ---------- */
.chuva { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.moeda { position: absolute; top: -60px; font-size: 30px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(115vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Telas baixas (iPhone SE, Android pequenos) */
@media (max-height: 680px) {
  .maquina { width: min(94vw, 37dvh); }
  .placar strong { font-size: 28px; }
  .balao { font-size: 11px; }
  .btn-girar { width: 70px; height: 70px; }
  .btn-redondo { width: 36px; height: 36px; font-size: 15px; }
  .faixa-ganho { font-size: 15px; min-height: 30px; margin: 5px auto 4px; padding: 4px 10px; }
  .valor strong { font-size: 13px; }
}
