:root {
  --bg: #12002b; --bg2: #2a0054; --card: rgba(255,255,255,.07); --line: rgba(255,255,255,.14);
  --pink: #ff2e9a; --cyan: #22e6ff; --yellow: #ffe45c; --text: #fff; --muted: #c9b8e8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Poppins, system-ui, sans-serif; color: var(--text);
  background: radial-gradient(120% 80% at 50% 0%, var(--bg2), var(--bg) 70%) fixed; overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 6px; font-size: .85em; }

/* luzes de discoteca */
.lights { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lights i {
  position: absolute; top: -20vh; left: 50%; width: 30vmax; height: 160vh; transform-origin: 50% 0;
  background: linear-gradient(to bottom, hsla(var(--c), 100%, 60%, .34), transparent 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(10px); margin-left: -15vmax;
  animation: sweep 7s ease-in-out infinite alternate;
}
.lights i:nth-child(1) { --c: 320; left: 10%; }
.lights i:nth-child(2) { --c: 190; left: 38%; animation-duration: 9s; animation-delay: -3s; }
.lights i:nth-child(3) { --c: 55; left: 62%; animation-duration: 8s; animation-delay: -5s; }
.lights i:nth-child(4) { --c: 270; left: 90%; animation-duration: 10s; animation-delay: -1s; }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }

#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 16px 16px 96px; }
body[data-route="telao"] #app { max-width: 1400px; padding-bottom: 24px; }

.logo {
  font-family: Monoton, Poppins, sans-serif; font-weight: 400; text-align: center; margin: 8px 0; line-height: 1.15;
  font-size: clamp(34px, 11vw, 56px); color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink); animation: flicker 4s infinite;
}
.logo.xs { font-size: 20px; margin: 0; }
@keyframes flicker { 0%, 92%, 96%, 100% { opacity: 1; } 94% { opacity: .55; } }
.sub { text-align: center; color: var(--muted); margin: 0 0 18px; }

.ball {
  width: 84px; height: 84px; margin: 6px auto 0; border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 32% 28%, #fff, #b9c6ff 35%, #6a5acd 70%, #2b1b6b);
  box-shadow: 0 0 30px rgba(180,200,255,.7), 0 0 80px rgba(255,46,154,.45);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { background-position: 0 0, 120px 0, 0 0; } }

/* cartões */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; margin: 14px 0; backdrop-filter: blur(10px); overflow: hidden;
}
.card.glow { border-color: rgba(255,46,154,.6); box-shadow: 0 0 0 1px rgba(255,46,154,.25), 0 0 34px rgba(255,46,154,.28); }
.card.center { text-align: center; }
.card h2 { margin: 6px 0 12px; font-size: 26px; font-weight: 800; }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--cyan); }
.mt { margin-top: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.lead { font-size: 20px; }
.emoji { font-size: 54px; }

.btn {
  border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 800; font-size: 16px; margin-top: 10px;
  background: rgba(255,255,255,.14); transition: transform .1s;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--pink), #a23bff); box-shadow: 0 6px 24px rgba(255,46,154,.45); }
.btn.ghost { border: 1px solid var(--line); background: transparent; }
.btn.danger { background: rgba(255,70,70,.2); border: 1px solid rgba(255,90,90,.6); width: 100%; }
.btn.wide { width: 100%; display: block; }
.btn.small { padding: 8px 14px; font-size: 14px; margin: 0; }
.btn:disabled { opacity: .4; }
.link { background: none; border: 0; padding: 0; color: var(--cyan); font-size: 13px; text-decoration: underline; }
input, textarea {
  width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 16px;
}

/* bonequinhos */
.av {
  --s: 64px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h), 95%, 72%), hsl(calc(var(--h) + 40), 85%, 42%));
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 0 18px hsla(var(--h), 100%, 60%, .6);
}
.av.xs { --s: 28px; } .av.sm { --s: 44px; } .av.xl { --s: 112px; } .av.xxl { --s: 170px; margin: 12px auto; }
.av .ini { font-weight: 800; font-size: calc(var(--s) * .46); text-shadow: 0 2px 6px rgba(0,0,0,.35); }
/* círculos pequenos: recorte no rosto; palco (xl/xxl): corpo inteiro */
.av:has(img) { overflow: hidden; }
.av img { position: absolute; top: -3%; left: -40%; width: 180%; max-width: none; height: auto; }
.av:has(img) .ini { opacity: 0; }
.av.xl:has(img), .av.xxl:has(img) {
  overflow: visible; border-radius: 0; background: none; box-shadow: none; height: calc(var(--s) * 1.78);
}
.av.xl img, .av.xxl img {
  inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 14px hsla(var(--h), 100%, 65%, .75));
}
.av.win.xl img, .av.win.xxl img { filter: drop-shadow(0 0 18px var(--yellow)); }
.av.win.xl:has(img)::after, .av.win.xxl:has(img)::after { top: -17%; font-size: calc(var(--s) * .3); }
.av.ghost { background: rgba(255,255,255,.1); box-shadow: 0 0 0 2px var(--line); }
.av.idle { animation: bob 2.4s ease-in-out infinite; }
.av.win { animation: jump .55s ease-in-out infinite; box-shadow: 0 0 0 3px var(--yellow), 0 0 34px var(--yellow); }
.av.cry { animation: sob .45s linear infinite; filter: saturate(.45) brightness(.8); }
.av.cry::after { content: "💧"; position: absolute; right: -4%; top: 30%; font-size: calc(var(--s) * .3); animation: tear 1s linear infinite; }
.av.win::after { content: "👑"; position: absolute; top: -34%; font-size: calc(var(--s) * .42); }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes jump { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18%) rotate(4deg); } }
@keyframes sob { 0%, 100% { transform: translateX(-2px) rotate(-2deg); } 50% { transform: translateX(2px) rotate(2deg); } }
@keyframes tear { from { transform: translateY(0); opacity: 1; } to { transform: translateY(90%); opacity: 0; } }

/* entrada */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.whobtn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.whobtn:active { border-color: var(--pink); transform: scale(.96); }

.top { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; }
.hello { display: flex; flex-direction: column; align-items: flex-start; flex: 1; line-height: 1.25; gap: 2px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(18,0,43,.86); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabs button { flex: 1; max-width: 170px; border: 0; border-radius: 14px; padding: 12px 6px; background: transparent; font-weight: 600; color: var(--muted); }
.tabs button.on { background: linear-gradient(135deg, var(--pink), #a23bff); color: #fff; }

.crowd { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
button.chip { padding: 8px 14px; }
.chip.on { background: var(--pink); border-color: var(--pink); }
.chip.off { opacity: .6; }

/* duelo */
.duel { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 14px; }
.fighter { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.fname { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.vs { font-family: Monoton, sans-serif; font-size: 30px; color: var(--yellow); text-shadow: 0 0 14px var(--yellow); animation: flicker 2s infinite; }
.timer { font-size: 44px; font-weight: 800; color: var(--yellow); text-shadow: 0 0 18px rgba(255,228,92,.7); line-height: 1.1; }
.progress { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .4s; }
.score { font-size: 34px; font-weight: 800; }
.score small { font-size: 13px; font-weight: 600; color: var(--muted); display: block; }
.winline { font-size: 18px; margin: 8px 0; }
.shameline { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.3); color: var(--muted); font-size: 14px; }
.shameline b { color: var(--yellow); font-size: 17px; }
.champname { font-size: 34px !important; text-shadow: 0 0 20px var(--yellow); }

/* votação */
.crit { margin-top: 16px; }
.critname { font-weight: 800; margin-bottom: 8px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickbtn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 18px; font-weight: 800;
  background: rgba(255,255,255,.08); border: 2px solid var(--line); min-width: 0; overflow-wrap: anywhere;
}
.pickbtn.on { border-color: var(--cyan); background: rgba(34,230,255,.18); box-shadow: 0 0 22px rgba(34,230,255,.5); }
.votestate { margin-top: 14px; font-size: 14px; color: var(--muted); }
.votestate.ok { color: #7dffb0; font-weight: 600; }

/* chaves */
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; margin: 8px -16px; padding-left: 16px; padding-right: 16px; }
.round { flex: 1 0 160px; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.round h4 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); text-align: center; }
.match { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; animation: pop .5s backwards; }
.match.live { border-color: var(--pink); box-shadow: 0 0 18px rgba(255,46,154,.6); }
.slot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 14px; font-weight: 600; min-height: 44px; }
.slot + .slot { border-top: 1px solid var(--line); }
.slot span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty { color: var(--muted); font-weight: 400; font-style: italic; justify-content: center; }
.slot.won { background: rgba(255,228,92,.16); } .slot.won b { color: var(--yellow); }
.slot.lost { opacity: .45; text-decoration: line-through; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.row > div:not(.av) { flex: 1; min-width: 0; }
.row small { display: block; color: var(--muted); font-size: 13px; }
.now { font-size: 20px; margin: 4px 0; }

/* confete */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; background: hsl(var(--c), 95%, 62%); animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* telão */
.tvtop { display: flex; align-items: center; justify-content: center; gap: 24px; }
.tvtop .ball { margin: 0; }
.tv .logo { font-size: clamp(36px, 5vw, 76px); }
.tvmain { max-width: 900px; margin: 0 auto; }
.tv .card h2 { font-size: clamp(30px, 4vw, 54px); }
.tv .kicker { font-size: 18px; }
.tv .av.xl { --s: clamp(130px, 17vw, 230px); }
.tv .av.xxl { --s: clamp(170px, 20vw, 280px); }
.tv .fname { font-size: clamp(22px, 3vw, 40px); }
.tv .vs { font-size: clamp(36px, 5vw, 70px); }
.tv .timer { font-size: clamp(54px, 8vw, 110px); }
.tv .score { font-size: clamp(40px, 6vw, 80px); }
.tv .winline, .tv .muted, .tv .shameline { font-size: clamp(16px, 2vw, 26px); }
.tv .shameline b { font-size: clamp(20px, 2.6vw, 34px); }
.tv .bracket { margin: 0; justify-content: center; }
.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 12px; color: var(--muted); font-size: 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* ---------- gamificação: palco, microfone, reações, pontos ---------- */
.stage { background: radial-gradient(90% 60% at 50% 100%, rgba(255,46,154,.28), transparent 70%), var(--card); }
.singer { font-size: 30px !important; margin: 4px 0 0 !important; text-shadow: 0 0 18px var(--pink); }
.stage .duel { margin-top: 34px; }
.fighter { transition: transform .5s, opacity .5s; position: relative; }
.fighter.sing { transform: scale(1.14); z-index: 2; }
.fighter.sing::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 190%; height: 150%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,220,.5), rgba(255,255,220,.05) 80%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(6px); animation: spot 3s ease-in-out infinite alternate;
}
.fighter.wait { transform: scale(.74); opacity: .45; filter: grayscale(.5); }
@keyframes spot { from { transform: translateX(-50%) rotate(-4deg); } to { transform: translateX(-50%) rotate(4deg); } }
.av.sing { animation: groove 1s ease-in-out infinite; }
@keyframes groove { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-4%); } }
.av.sing img { filter: drop-shadow(0 0 20px #fff) drop-shadow(0 0 30px var(--pink)); }
.mic { position: absolute; right: -6%; bottom: -4%; font-size: calc(var(--s) * .5); transform-origin: 50% 90%; animation: micbob .5s ease-in-out infinite alternate; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); z-index: 3; }
.av.xl:has(img) .mic, .av.xxl:has(img) .mic { right: auto; bottom: auto; left: 46%; top: 19%; font-size: calc(var(--s) * .34); }
@keyframes micbob { from { transform: rotate(-22deg); } to { transform: rotate(-6deg) translateY(-6%); } }
.notes i { position: absolute; top: 4%; left: 60%; font-style: normal; font-size: calc(var(--s) * .26); color: var(--yellow); text-shadow: 0 0 10px var(--yellow); opacity: 0; animation: note 2.1s linear infinite; }
.notes i:nth-child(2) { left: 14%; color: var(--cyan); text-shadow: 0 0 10px var(--cyan); animation-delay: -.7s; }
.notes i:nth-child(3) { left: 82%; color: #fff; animation-delay: -1.4s; }
@keyframes note { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(40%, -170%) rotate(30deg); opacity: 0; } }

.eq { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 34px; margin: 6px 0 12px; }
.eq i { width: 8px; height: 15%; border-radius: 3px; background: linear-gradient(to top, var(--pink), var(--cyan)); }
.eq.on i { animation: eq .6s ease-in-out infinite alternate; }
.eq i:nth-child(3n) { animation-duration: .42s; } .eq i:nth-child(3n+1) { animation-duration: .75s; animation-delay: -.3s; } .eq i:nth-child(4n) { animation-delay: -.5s; }
@keyframes eq { from { height: 12%; } to { height: 100%; } }

.react { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 10px; }
.react button { font-size: 26px; padding: 10px 0; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.08); transition: transform .08s; }
.react button:active { transform: scale(1.35) rotate(-8deg); background: rgba(255,46,154,.35); }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; }
.fx span { position: absolute; bottom: 70px; animation: floatup 2.5s ease-out forwards; }
@keyframes floatup { 0% { transform: translateY(0) scale(.4); opacity: 0; } 12% { opacity: 1; transform: translateY(-8vh) scale(1.2); } 100% { transform: translateY(-78vh) rotate(18deg) scale(1); opacity: 0; } }
.hype { display: flex; align-items: center; gap: 14px; margin: 6px 0; font-weight: 800; }
.hype b { flex: 1; height: 22px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.hype i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), #ff7a00, var(--pink)); box-shadow: 0 0 18px #ff7a00; transition: width .3s; }

.meter { height: 18px; border-radius: 99px; background: var(--cyan); overflow: hidden; margin: 6px 0 10px; box-shadow: 0 0 16px rgba(34,230,255,.5); }
.meter i { display: block; height: 100%; width: var(--w); background: var(--pink); border-right: 3px solid #fff; animation: meter 2.2s cubic-bezier(.2,.9,.3,1) backwards; }
@keyframes meter { from { width: 50%; } 30% { width: 62%; } 55% { width: 40%; } }
.pts { display: inline-block; margin: 4px 0 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255,228,92,.18); border: 1px solid var(--yellow); color: var(--yellow); font-weight: 800; animation: pop .6s .4s backwards; }
.mypts { font-weight: 800; color: var(--yellow); padding: 6px 12px; border-radius: 99px; background: rgba(255,228,92,.14); font-size: 14px; white-space: nowrap; }
.pos { width: 30px; text-align: center; font-size: 20px; font-weight: 800; flex: none; }
.ptsn { font-weight: 800; color: var(--yellow); white-space: nowrap; }
.tomato { position: absolute; left: 30%; top: 20%; font-size: calc(var(--s) * .26); opacity: 0; animation: splat 1.8s ease-in infinite; z-index: 3; }
.tomato:nth-child(odd) { left: 58%; top: 42%; animation-delay: -.6s; } .tomato:last-child { left: 40%; top: 60%; animation-delay: -1.2s; }
@keyframes splat { 0% { transform: translate(260%, -260%) scale(1.6) rotate(0); opacity: 0; } 20% { opacity: 1; } 60% { transform: translate(0, 0) scale(1) rotate(300deg); opacity: 1; } 75% { transform: scale(1.5, .7); } 100% { transform: translateY(60%) scale(1.2, .6); opacity: 0; } }
.tv .singer { font-size: clamp(34px, 5vw, 64px) !important; }
.tv .eq { height: 60px; } .tv .eq i { width: 14px; }
.tv .hype { font-size: clamp(18px, 2.2vw, 30px); } .tv .hype b { height: 34px; }
.tv .meter { height: 30px; }

/* ---------- sorteio ao vivo ---------- */
.draw { display: grid; gap: 10px; margin-top: 8px; }
.dcard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); min-height: 66px; }
.dcard > i { font-family: Monoton, sans-serif; font-style: normal; color: var(--yellow); text-shadow: 0 0 10px var(--yellow); }
.dcard.wait { display: flex; justify-content: center; color: var(--muted); opacity: .5; border-style: dashed; }
.dcard.spin { border-color: var(--cyan); box-shadow: 0 0 22px rgba(34,230,255,.5); }
.dcard.done { border-color: var(--pink); animation: pop .5s backwards; box-shadow: 0 0 18px rgba(255,46,154,.4); }
.dwho { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; font-size: 15px; min-width: 0; }
.dwho b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel { height: 46px; overflow: hidden; filter: blur(.6px); }
.reel > div { animation: reel .45s linear infinite; }
@keyframes reel { to { transform: translateY(-50%); } }
.callbtn { width: 100%; border-radius: 0; background: linear-gradient(135deg, var(--pink), #a23bff); font-size: 13px; }
.tabs button { white-space: nowrap; font-size: 14px; }
.tv .dwho { font-size: clamp(18px, 2.2vw, 30px); height: 64px; } .tv .reel { height: 64px; }
.tv .draw { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* ---------- calçada da fama ---------- */
.fame { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fametile {
  position: relative; border-radius: 10px; padding: 10px 8px 10px; text-align: center; overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.22) 0 1px, transparent 1.5px) 0 0 / 13px 17px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.14) 0 1px, transparent 1.5px) 0 0 / 19px 11px,
    radial-gradient(circle at 45% 80%, rgba(0,0,0,.5) 0 1.5px, transparent 2px) 0 0 / 9px 13px,
    linear-gradient(160deg, #3a3a44, #1c1c24);
  border: 2px solid #111; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.5);
}
.fametile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%); transform: translateX(-120%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.fametile small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.star, .starin { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star { position: relative; aspect-ratio: 1; background: linear-gradient(135deg, #fff3b0, #d4a017 45%, #8a6508 70%, #f5d76e); filter: drop-shadow(0 0 10px rgba(255,200,80,.55)); }
.starin { position: absolute; inset: 5%; background: radial-gradient(circle at 50% 40%, #ff9db5, #e8587f 60%, #b83a63); }
.starin b {
  position: absolute; left: 20%; right: 20%; top: 36%; font-size: 11px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: #ffe9a8; text-shadow: 0 1px 0 #7a5500, 0 0 6px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.av.star { --s: 30%; position: absolute; left: 35%; top: 47%; width: 30%; height: auto; aspect-ratio: 1; clip-path: none; box-shadow: 0 0 0 2px #e8c14a, 0 0 8px rgba(0,0,0,.5); }
.av.star .ini { font-size: 14px; }

/* ---------- batalhas prontas ---------- */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 18px; text-align: center; background: linear-gradient(160deg, rgba(255,46,154,.28), rgba(162,59,255,.22)); border: 1px solid rgba(255,46,154,.5); }
.theme span { font-size: 34px; line-height: 1.1; }
.theme b { font-size: 15px; }
.theme small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.theme:active { transform: scale(.96); }
.theme.played { opacity: .5; filter: grayscale(.6); }
.share { position: relative; z-index: 2; margin-top: 14px; }

/* ---------- marca: Karaokê da Giovanna ---------- */
.tagline { text-align: center; margin: 2px 0 14px; }
.tagline span {
  display: inline-block; padding: 5px 18px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--yellow); border: 2px solid var(--yellow); transform: rotate(-3deg);
  box-shadow: 0 0 14px rgba(255,228,92,.6), inset 0 0 10px rgba(255,228,92,.35); text-shadow: 0 0 10px var(--yellow); animation: flicker 3s infinite;
}
.tvtop { flex-wrap: wrap; }
.tv .tagline { margin: 0; } .tv .tagline span { font-size: clamp(14px, 1.6vw, 24px); }

/* ---------- roleta de desafios, palpite, troféus, minha noite ---------- */
.chal { margin: 10px 0 0; padding: 10px 14px; border-radius: 16px; background: rgba(255,228,92,.14); border: 2px dashed var(--yellow); animation: pop .6s backwards; }
.chal > span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 800; }
.chal b { font-size: 18px; }
.chal.spin { animation: none; border-style: solid; box-shadow: 0 0 22px rgba(255,228,92,.5); }
.chal .dwho { font-weight: 800; white-space: nowrap; }
.pickbtn.slim { flex-direction: row; justify-content: center; padding: 12px 8px; }
.critname small { font-weight: 600; color: var(--yellow); margin-left: 6px; }
.stage .crit { margin: 4px 0 14px; }
.crowdbar { display: flex; align-items: center; gap: 14px; font-weight: 800; margin: 6px 0; }
.crowdbar b { flex: 1; height: 22px; border-radius: 99px; background: var(--cyan); overflow: hidden; }
.crowdbar i { display: block; height: 100%; background: var(--pink); border-right: 3px solid #fff; transition: width .4s; }
.award { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; margin-top: 10px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,228,92,.5); animation: pop .6s backwards; position: relative; z-index: 1; }
.award .aemoji { font-size: 34px; flex: none; width: 42px; text-align: center; }
.award div { min-width: 0; } .award b { display: block; font-size: 18px; }
.award small { display: block; color: var(--muted); font-size: 12px; }
.award small:first-child { color: var(--yellow); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { text-align: center; padding: 10px 2px; border-radius: 14px; background: rgba(0,0,0,.28); }
.stat span { font-size: 20px; } .stat b { display: block; font-size: 22px; color: var(--yellow); line-height: 1.1; }
.stat small { color: var(--muted); font-size: 10px; }
.tv .chal b { font-size: clamp(22px, 3vw, 44px); } .tv .chal > span { font-size: clamp(14px, 1.5vw, 22px); }
.tv .crowdbar { font-size: clamp(18px, 2.2vw, 30px); } .tv .crowdbar b { height: 34px; }
.tv .award b { font-size: clamp(20px, 2.6vw, 36px); } .tv .award small { font-size: clamp(13px, 1.4vw, 20px); } .tv .award .aemoji { font-size: clamp(36px, 4vw, 60px); width: auto; }

/* ---------- carta coringa + repescagem do mico ---------- */
.joker { margin: 10px 0 0; padding: 10px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(34,230,255,.2), rgba(162,59,255,.25)); border: 2px solid var(--cyan); box-shadow: 0 0 20px rgba(34,230,255,.45); animation: pop .6s backwards; }
.joker span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.joker b { font-size: 20px; display: block; } .joker small { color: var(--muted); }
.jokers { display: grid; gap: 8px; }
.jokers .pickbtn { gap: 2px; padding: 10px; } .jokers small { font-weight: 400; color: var(--muted); font-size: 12px; }
.whobtn.on { border-color: var(--cyan); background: rgba(34,230,255,.18); box-shadow: 0 0 22px rgba(34,230,255,.5); }
div.whobtn { cursor: default; }
.tv .joker b { font-size: clamp(22px, 3vw, 44px); } .tv .joker span, .tv .joker small { font-size: clamp(13px, 1.5vw, 22px); }
.tv .who { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.err { position: sticky; top: 0; z-index: 20; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,70,70,.9); font-weight: 600; font-size: 14px; }

/* ---------- avatar redondo com anel (estilo story) ---------- */
.av {
  box-sizing: border-box; aspect-ratio: 1; border: 3px solid transparent; flex: 0 0 auto;
  background:
    radial-gradient(circle at 30% 25%, hsl(var(--h), 95%, 72%), hsl(calc(var(--h) + 40), 85%, 42%)) padding-box,
    linear-gradient(45deg, #ffe45c, #ff2e9a 50%, #a23bff) border-box;
  box-shadow: 0 0 12px rgba(255,46,154,.45);
}
.av.xs { border-width: 2px; box-shadow: none; }
.av.ghost { background: rgba(255,255,255,.1); border-color: var(--line); box-shadow: none; }
.av.win { box-shadow: 0 0 0 2px var(--yellow), 0 0 22px var(--yellow); }
.av.xl:has(img), .av.xxl:has(img) { border: 0; background: none; box-shadow: none; aspect-ratio: auto; }
.av.star { border: 0; }

/* ---------- revisão de diagramação ---------- */
/* duelo: pés alinhados, coroa com espaço próprio */
.duel { align-items: flex-end; }
.vs { align-self: center; }
.av.win.xl:has(img), .av.win.xxl:has(img) { margin-top: calc(var(--s) * .44); }
.champion .kicker { position: relative; z-index: 2; }
.champion .av.xxl { margin-left: auto; margin-right: auto; }
.shameline { line-height: 1.5; }
.shameline b { display: inline-block; margin-top: 2px; }
.score { margin-top: 6px; line-height: 1.15; }
.winline { line-height: 1.4; }
.pts { margin-top: 8px; }

/* listas (ranking, mural) */
.row { gap: 12px; padding: 10px 0; }
.row:first-of-type { border-top: 0; }
.row b { display: block; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ztitle { display: block; color: var(--yellow); font-weight: 600; font-size: 14px; line-height: 1.3; }
.row small { font-size: 12px; margin-top: 1px; }
.pos { width: 32px; }
.rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.rules span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.rules b { color: var(--yellow); }

/* minha noite */
.stats { align-items: stretch; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 2px; }
.stat span { line-height: 1; } .stat small { font-size: 11px; line-height: 1.2; }
.card .chip { margin: 0 4px 6px 0; }
.card h3 { display: flex; align-items: center; gap: 8px; }

/* chaves */
.bracket { align-items: stretch; }
.round { flex: 1 0 150px; gap: 10px; }
.round h4 { padding-bottom: 2px; }
.match { box-shadow: 0 4px 14px rgba(0,0,0,.35); background: rgba(20,4,48,.75); }
.slot { padding: 8px 10px; gap: 8px; }

/* cabeçalho e abas */
.top { padding: 4px 0 10px; gap: 12px; }
.hello b { font-size: 16px; }
.tabs { gap: 4px; padding-left: 8px; padding-right: 8px; }
.tabs button { padding: 12px 4px; font-size: 13px; }

/* entrada */
.who { gap: 12px; }
.whobtn { padding: 14px 6px 12px; }
.whobtn span { line-height: 1.2; overflow-wrap: anywhere; text-align: center; }

/* ---------- telão: tudo cabe em uma tela, sem rolagem ---------- */
body[data-route="telao"] { overflow: hidden; }
body[data-route="telao"] #app { max-width: none; height: 100vh; padding: 1.5vh 2vw; }
.tv { height: 100%; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.5vh 2vw; }
.tv:not(:has(.bracket)) .tvmain { grid-column: 1 / -1; }
.tvtop { grid-column: 1 / -1; gap: 2vw; flex-wrap: nowrap; }
.tv .logo { font-size: 6.5vh; margin: 0; white-space: nowrap; }
.tvtop .ball { width: 8vh; height: 8vh; flex: none; }
.tv .tagline span { font-size: 2vh; }
.tvmain { grid-column: 1; grid-row: 2; max-width: none; margin: 0; min-height: 0; display: flex; }
.tvmain > .card { flex: 1; margin: 0; padding: 2vh 2vw; display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow: hidden; border-radius: 3vh; }
.tv .bracket { grid-column: 2; grid-row: 2; margin: 0; padding: 0; gap: 1vw; overflow: hidden; align-items: stretch; justify-content: stretch; }
.tv .round { flex: 1 1 0; min-width: 0; gap: 1vh; }
.tv .round h4 { font-size: 1.7vh; }
.tv .slot { min-height: 0; padding: .7vh .6vw; font-size: 1.9vh; gap: .5vw; }
.tv .av.xs { --s: 3vh; }
.tv .match { border-radius: 1.4vh; }
.ticker { grid-column: 1 / -1; margin: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 2.2vh; gap: 3vw; }

.tv .kicker { font-size: 2.2vh; }
.tv .card h2 { font-size: 5vh; margin: .5vh 0 1vh; }
.tv .singer { font-size: 5.5vh !important; }
.tv .emoji { font-size: 8vh; line-height: 1.1; }
.tv .lead, .tv .muted, .tv .winline { font-size: 2.6vh; margin: .6vh 0; }
.tv .duel { margin: 2vh 0 1vh; gap: 2vw; }
.tv .av.xl { --s: 17vh; }
.tv .av.xxl { --s: 24vh; margin-top: 0; margin-bottom: 1vh; }
.tv .fname { font-size: 3.4vh; }
.tv .champname { font-size: 6.5vh !important; }
.tv .vs { font-size: 6vh; }
.tv .timer { font-size: 9vh; }
.tv .score { font-size: 8vh; margin: 0; }
.tv .score small { font-size: 2vh; }
.tv .shameline { font-size: 2.4vh; padding: 1.2vh 1.5vw; margin-top: 1vh; }
.tv .shameline b { font-size: 3.4vh; }
.tv .banners { display: flex; gap: 1.5vw; justify-content: center; }
.tv .banners > * { flex: 1; margin: 0; padding: 1vh 1.2vw; }
.tv .chal b, .tv .joker b { font-size: 3vh; }
.tv .chal > span, .tv .joker span, .tv .joker small { font-size: 1.7vh; }
.tv .eq { height: 5vh; margin: .5vh 0 1vh; } .tv .eq i { width: 1vw; }
.tv .crowdbar, .tv .hype { font-size: 2.4vh; margin: .5vh 0; } .tv .crowdbar b, .tv .hype b { height: 3vh; }
.tv .meter { height: 3vh; margin: 1vh 0; }
.tv .progress { height: 2vh; }
.tv .crowd { gap: 1vh 1vw; } .tv .chip { font-size: 2.2vh; }
.tv .draw { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2vh 1.5vw; }
.tv .dcard { min-height: 0; padding: 1vh 1vw; }
.tv .dwho, .tv .reel { height: 6vh; font-size: 2.6vh; }
.tv .av.sm { --s: 5vh; } .tv .av.md { --s: 9vh; }
.tv .who { grid-template-columns: repeat(auto-fit, minmax(14vw, 1fr)); gap: 1.5vh 1.5vw; }
.tv .whobtn { font-size: 2.6vh; padding: 1.5vh 1vw; }
.tv .card:has(.award) { display: grid; grid-template-columns: 1fr 1fr; gap: 1vh 1.5vw; align-content: center; }
.tv .card:has(.award) > :not(.award) { grid-column: 1 / -1; margin: 0; }
.tv .award { margin: 0; padding: 1vh 1vw; }
.tv .award b { font-size: 3vh; } .tv .award small { font-size: 1.7vh; } .tv .award .aemoji { font-size: 4.5vh; width: auto; }
.banners:empty { display: none; }
