/* Crazy Time: o estúdio da Evolution (roda dourada, Top Slot, tickets e os bônus) */

.cz { display: grid; gap: 14px; }

/* Tira dos últimos resultados */
.cz-tira { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-height: 40px; }
.cz-tira::-webkit-scrollbar { display: none; }
.cz-res { flex: none; position: relative; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; align-content: center; background: var(--c); color: #fff; font-weight: 900; font-size: 14px; line-height: 1; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.cz-res small { font-size: 9px; font-weight: 800; opacity: 0.95; }
.cz-res i { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: 9px; background: #fde047; color: #3b0d0d; border-radius: 6px; padding: 1px 4px; font-weight: 900; }
.cz-res.nova { box-shadow: 0 0 0 2px #fff, inset 0 -3px 0 rgba(0, 0, 0, 0.25); }

/* ───── O estúdio ───── */
.cz-palco {
  position: relative; overflow: hidden; border-radius: 26px; padding: 108px 16px 64px; display: grid; justify-items: center;
  background:
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(127, 29, 29, 0.55) 0deg 6deg, rgba(76, 5, 25, 0.55) 6deg 12deg),
    radial-gradient(80% 70% at 50% 45%, #7f1d1d, #2a0613 75%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.6), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.cz-holofote { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 50% 50%, rgba(253, 224, 71, 0.22), transparent 70%); }

/* Top Slot */
.cz-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; background: linear-gradient(180deg, #4a0d0d, #1c0606); box-shadow: 0 0 0 3px #b45309, 0 8px 20px rgba(0, 0, 0, 0.5); z-index: 3; transition: box-shadow 0.3s; }
.cz-top-nome { font-weight: 900; letter-spacing: 2px; font-size: 12px; color: #fcd34d; }
.cz-rolos { display: flex; gap: 6px; }
.cz-rolo { width: 112px; height: 54px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, #111, #333 50%, #111); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15); }
.cz-rolo b { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; font-size: 16px; color: #fff; background: var(--c, transparent); text-align: center; line-height: 1.05; padding: 0 4px; }
.cz-rolo.ouro b { font-size: 24px; color: #fde68a; }
.cz-rolo b.parou { animation: cz-para 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes cz-para { from { transform: translateY(-30%); } }
.cz-top.alinhou { box-shadow: 0 0 0 3px #fde047, 0 0 34px rgba(253, 224, 71, 0.8); }
.cz-top.alinhou .cz-rolo.ouro b { background: #fde047; color: #3b0d0d; }
.cz-top.errou .cz-rolo { opacity: 0.55; }

/* A roda */
.cz-roda-caixa { position: relative; width: min(470px, 100%, 62vh); aspect-ratio: 1; }
.cz-roda { width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.cz-svg { width: 100%; height: 100%; display: block; }
.cz-fatia { stroke: rgba(255, 236, 179, 0.8); stroke-width: 0.8; transition: filter 0.3s; }
.cz-fatia.acesa { filter: brightness(1.6) drop-shadow(0 0 8px #fff); }
.cz-num { font: 900 13px system-ui, sans-serif; }
.cz-rotulo-bonus { font: 900 10px system-ui, sans-serif; fill: #fff; letter-spacing: 0.5px; }
.cz-pino { fill: #fde68a; }
.cz-logo1 { font: 900 26px var(--fonte-titulo, system-ui); fill: #fde68a; }
.cz-logo2 { font: 900 22px var(--fonte-titulo, system-ui); fill: #fff; }
.cz-luz { fill: #fff7cc; }
.cz-luz.b { animation: cz-pisca 0.9s steps(1) infinite; }
.cz-luz.a { animation: cz-pisca 0.9s steps(1) infinite 0.45s; }
.girando-cz .cz-luz { animation-duration: 0.3s; }
@keyframes cz-pisca { 50% { fill: rgba(253, 224, 71, 0.35); } }
.cz-palheta { position: absolute; top: -18px; left: 50%; width: 34px; height: 52px; transform: translateX(-50%); transform-origin: 50% 12px; z-index: 2; background: linear-gradient(180deg, #fef3c7, #f59e0b 60%, #92400e); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }

.cz-status { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 20px; border-radius: 999px; background: rgba(20, 4, 8, 0.72); color: #fff; font-weight: 600; font-size: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.cz-status b { color: #fde047; }

.cz-ganho { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; padding: 14px 30px; border-radius: 22px; text-align: center; font-family: var(--fonte-titulo, inherit); font-size: clamp(30px, 6vw, 54px); color: #fff; background: rgba(15, 5, 10, 0.85); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: cz-entra 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); pointer-events: none; transition: opacity 0.5s; }
.cz-ganho small { display: block; font: 600 12px system-ui, sans-serif; opacity: 0.8; margin-top: 4px; }
.cz-ganho.ganhou { color: #4ade80; box-shadow: 0 0 0 3px #4ade80, 0 16px 40px rgba(0, 0, 0, 0.45); }
.cz-ganho.perdeu { color: #f87171; }
.cz-ganho.igual { color: #fde68a; }
.cz-ganho.some { opacity: 0; }
@keyframes cz-entra { from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; } }

/* ───── Os bônus (cobrem o estúdio) ───── */
.cz-bonus { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 20px; background: radial-gradient(80% 70% at 50% 45%, rgba(20, 5, 30, 0.92), rgba(5, 0, 10, 0.97)); animation: cz-fade 0.4s; }
@keyframes cz-fade { from { opacity: 0; } }
.cz-b-titulo { font-family: var(--fonte-titulo, inherit); font-size: clamp(26px, 5vw, 44px); letter-spacing: 2px; color: #fde68a; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4); }
.cz-b-coinflip .cz-b-titulo { color: #93c5fd; }
.cz-b-cashhunt .cz-b-titulo { color: #86efac; }
.cz-b-pachinko .cz-b-titulo { color: #f5d0fe; }
.cz-b-texto { color: #fff; font-weight: 600; font-size: 15px; text-align: center; }
.cz-b-texto b { color: #fde047; }
.cz-b-texto .vm { color: #f87171; font-weight: 800; }
.cz-b-texto .az { color: #60a5fa; font-weight: 800; }
.cz-b-fim { font-family: var(--fonte-titulo, inherit); font-size: clamp(36px, 7vw, 64px); color: #fde047; text-shadow: 0 0 30px rgba(253, 224, 71, 0.6); animation: cz-entra2 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); text-align: center; }
.cz-b-fim small { display: block; font: 700 14px system-ui, sans-serif; color: #fff; }
@keyframes cz-entra2 { from { transform: scale(0.4); opacity: 0; } }

/* Coin Flip */
.cz-moeda-cena { perspective: 900px; padding: 30px 0; }
.cz-moeda { position: relative; width: 170px; height: 170px; transform-style: preserve-3d; }
.cz-moeda .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; box-shadow: inset 0 0 0 9px #fbbf24, inset 0 0 0 13px #92400e, 0 12px 26px rgba(0, 0, 0, 0.5); }
.cz-moeda .face b { font-family: var(--fonte-titulo, inherit); font-size: 46px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.cz-moeda .vermelho { background: radial-gradient(circle at 40% 35%, #f87171, #b91c1c); }
.cz-moeda .azul { background: radial-gradient(circle at 40% 35%, #60a5fa, #1d4ed8); transform: rotateY(180deg); }

/* Cash Hunt */
.cz-cash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; width: min(560px, 100%); }
.cz-alvo { aspect-ratio: 1.15; border: 0; border-radius: 7px; cursor: pointer; position: relative; background: linear-gradient(180deg, #22c55e, #15803d); color: #fff; font-weight: 900; font-size: clamp(8px, 1.3vw, 12px); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.15s, background 0.3s; }
.cz-alvo .ic { display: none; }
.cz-alvo .ic svg { width: 60%; height: 60%; }
.cz-cash.cobrindo .cz-alvo { animation: cz-embaralha 0.35s ease-in-out 4; }
@keyframes cz-embaralha { 50% { transform: translate(var(--x, 3px), -3px) rotate(4deg); } }
.cz-cash.coberto .cz-alvo { background: linear-gradient(180deg, #fbbf24, #b45309); }
.cz-cash.coberto .cz-alvo .v { display: none; }
.cz-cash.coberto .cz-alvo .ic { display: grid; place-items: center; width: 100%; height: 100%; color: #3b0d0d; }
.cz-cash.coberto .cz-alvo:hover { transform: scale(1.12); box-shadow: 0 0 0 2px #fff; }
.cz-alvo.mirado { box-shadow: 0 0 0 3px #ef4444, 0 0 18px #ef4444 !important; transform: scale(1.15); z-index: 2; }
.cz-alvo.revelado { background: #fde047 !important; color: #14532d; }
.cz-alvo.revelado .v { display: block !important; }
.cz-alvo.revelado .ic { display: none !important; }
.cz-cash.revelado-tudo .cz-alvo:not(.revelado) { opacity: 0.55; }

/* Pachinko */
.cz-pachi { width: min(520px, 100%); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #4a044e, #2e1065); box-shadow: inset 0 0 0 3px #f0abfc; }
.cz-pachi svg { display: block; width: 100%; }
.cz-pinos circle { fill: #f5d0fe; }
.cz-disco { fill: #fde047; stroke: #92400e; stroke-width: 2; transition: cx 0.12s linear, cy 0.12s ease-in; filter: drop-shadow(0 0 6px #fde047); }
.cz-pachi-casas { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; padding: 4px; }
.cz-pachi-casas span { writing-mode: vertical-rl; transform: rotate(180deg); display: grid; place-items: center; height: 64px; border-radius: 5px; background: #a21caf; color: #fff; font-weight: 900; font-size: clamp(8px, 1.4vw, 12px); }
.cz-pachi-casas span.dobro { background: #f59e0b; color: #3b0d0d; }
.cz-pachi-casas span.caiu { background: #fde047; color: #3b0764; box-shadow: 0 0 16px #fde047; }
.cz-pachi-casas.dobrou span:not(.dobro) { animation: cz-dobra 0.45s ease-in-out 2; }
@keyframes cz-dobra { 50% { transform: rotate(180deg) scale(1.2); background: #fde047; color: #3b0764; } }

/* Crazy Time: a roda gigante e os três ponteiros */
.cz-gigante { position: relative; width: min(400px, 82vw); aspect-ratio: 1; margin-top: 22px; }
.cz-gigante svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6)); }
.cz-gt { font: 900 7.5px system-ui, sans-serif; fill: #fff; }
.cz-ponteiro { position: absolute; width: 26px; height: 40px; clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 2; opacity: 0.7; transition: opacity 0.3s, filter 0.3s; }
.cz-ponteiro.azul { top: -22px; left: 50%; transform: translateX(-50%); background: #3b82f6; }
.cz-ponteiro.verde { left: -22px; top: 50%; transform: translateY(-50%) rotate(-90deg); background: #22c55e; }
.cz-ponteiro.amarelo { right: -22px; top: 50%; transform: translateY(-50%) rotate(90deg); background: #facc15; }
.cz-ponteiro.meu { opacity: 1; filter: drop-shadow(0 0 10px #fff); }
.cz-cores { display: flex; gap: 8px; }
.cz-cor { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-weight: 800; text-transform: uppercase; color: #fff; }
.cz-cor.verde { background: #16a34a; }
.cz-cor.azul { background: #2563eb; }
.cz-cor.amarelo { background: #ca8a04; }
.cz-cor.ativo { box-shadow: 0 0 0 3px #fff; }

/* ───── A mesa de apostas ───── */
.cz-mesa { display: grid; gap: 12px; justify-items: center; }
.cz-tickets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(820px, 100%); }
.cz-ticket {
  position: relative; border: 0; cursor: pointer; height: 96px; border-radius: 14px; color: #fff; display: grid; place-items: center; align-content: center; gap: 2px;
  background: linear-gradient(160deg, var(--cc), var(--c) 45%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), inset 0 0 0 6px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, filter 0.2s, box-shadow 0.3s;
}
.cz-ticket::before, .cz-ticket::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--fundo, #1a0b2e); }
.cz-ticket::before { left: -7px; }
.cz-ticket::after { right: -7px; }
.cz-ticket:hover { filter: brightness(1.1); }
.cz-ticket:active { transform: scale(0.97); }
.cz-t-nome { font-family: var(--fonte-titulo, inherit); font-size: 34px; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.cz-ticket.bonus .cz-t-nome { font-size: 17px; letter-spacing: 1px; }
.cz-ticket small { font-size: 10px; font-weight: 800; letter-spacing: 1px; opacity: 0.9; }
.cz-t-top { position: absolute; top: -10px; right: -6px; font-style: normal; font-weight: 900; font-size: 13px; padding: 3px 8px; border-radius: 999px; background: #fde047; color: #3b0d0d; box-shadow: 0 0 14px rgba(253, 224, 71, 0.8); animation: cz-entra2 0.4s; }
.cz-pilha { position: absolute; width: 40px; height: 40px; right: 12px; bottom: 30px; }
.cz-pilha .ficha { position: absolute; left: 0; top: calc(var(--i) * -4px); animation: cz-ficha 0.25s ease-out; }
@keyframes cz-ficha { from { transform: translateY(-14px); opacity: 0; } }
.cz-valor { position: absolute; right: 8px; bottom: 6px; font-size: 11px; background: rgba(0, 0, 0, 0.5); padding: 1px 8px; border-radius: 999px; }
.cz-valor:empty { display: none; }
.cz-ticket.ganhou { box-shadow: 0 0 0 4px #fde047, 0 0 34px rgba(253, 224, 71, 0.8); transform: translateY(-3px); }
.cz-ticket.perdeu .cz-pilha { animation: cz-some 0.6s forwards; }
@keyframes cz-some { to { transform: translateY(-30px); opacity: 0; } }
.cz-fichas { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.cz-fichas .ficha.escolhida { transform: translateY(-6px); box-shadow: inset 0 0 0 4px var(--borda), 0 0 0 3px #fde047, 0 8px 0 rgba(0, 0, 0, 0.35); }
.cz-botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.girando-cz .cz-ticket, .girando-cz .cz-fichas, .girando-cz .cz-botoes .botao:not(.principal-btn) { pointer-events: none; }
.girando-cz .cz-fichas { opacity: 0.5; }
.cz-nota { text-align: center; margin: 0; }

/* ───── Extras ───── */
.cz-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cz-card { background: rgba(10, 8, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.cz-card-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cz-card h3 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.cz-card-topo small { color: var(--texto-3, #a1a1aa); font-size: 11px; }
.cz-stat { display: grid; grid-template-columns: 96px 1fr 38px; gap: 8px; align-items: center; font-size: 12px; }
.cz-stat-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-stat-barra { position: relative; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: visible; }
.cz-stat-barra i { display: block; height: 100%; border-radius: 6px; transition: width 0.6s; }
.cz-stat-barra em { position: absolute; top: -3px; width: 2px; height: 16px; background: #fff; opacity: 0.7; }
.cz-stat b { text-align: right; }
.cz-bola { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cz-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cz-tabela th { text-align: left; font-size: 11px; color: var(--texto-3, #a1a1aa); font-weight: 600; padding: 4px 6px; }
.cz-tabela td { padding: 5px 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cz-tabela .num { text-align: right; }
.cz-ganhos { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.cz-ganho-linha { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.cz-ganho-linha img { width: 32px; height: 32px; border-radius: 50%; }
.cz-ganho-linha b { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-ganho-linha small { font-size: 11px; color: var(--texto-3, #a1a1aa); }
.cz-lucro { color: #4ade80; font-weight: 800; text-align: right; font-size: 14px; }
.cz-lucro small { display: block; font-weight: 600; }

@media (max-width: 1000px) {
  .cz-extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cz-extras > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .cz-palco { padding: 92px 8px 60px; border-radius: 20px; }
  .cz-rolo { width: 84px; height: 44px; }
  .cz-rolo b { font-size: 12px; }
  .cz-rolo.ouro b { font-size: 18px; }
  .cz-top-nome { display: none; }
  .cz-tickets { gap: 7px; }
  .cz-ticket { height: 78px; }
  .cz-t-nome { font-size: 26px; }
  .cz-ticket.bonus .cz-t-nome { font-size: 11px; }
  .cz-ticket small { font-size: 8px; }
  .cz-pilha { display: none; }
  .cz-valor { right: 50%; transform: translateX(50%); bottom: 4px; }
  .cz-status { font-size: 12px; white-space: normal; width: max-content; }
  .cz-extras { grid-template-columns: minmax(0, 1fr); }
  .cz-cash { gap: 2px; }
  .cz-moeda { width: 130px; height: 130px; }
}
