/* Votación People's Choice · Homebrew Fest 2026 · Dark theme 1920x1080 */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("fonts/montserrat-latin-900-normal.woff2") format("woff2"); }

:root {
  --bg: #111112;
  --card: #1c1c1e;
  --card-2: #242427;
  --line: rgba(255,255,255,.07);
  --text: #f4f2ee;
  --muted: #9c9a97;
  --dim: #6d6b69;
  --gold: #e8b541;       /* badge vaso */
  --brown: #2b1a10;      /* texto del badge */
  --green: #85c443;
  --live: #34e08a;
  --warn: #ffb020;
  --alert: #ff2d55;
  --radius: 34px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
body { font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; color: var(--text); cursor: none; -webkit-font-smoothing: antialiased; }
body.show-cursor { cursor: default; }

/* Escenario fijo 1920x1080 que se escala a la pantalla */
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  background:
    radial-gradient(900px 500px at 12% 110%, rgba(133,196,67,.10), transparent 60%),
    radial-gradient(800px 500px at 95% 40%, rgba(232,181,65,.07), transparent 60%),
    var(--bg);
  overflow: hidden;
}

/* ---------- Banda ---------- */
.band { position: absolute; left: 0; top: 0; width: 1920px; height: 218px; overflow: hidden; z-index: 3; pointer-events: none; }
.band img { display: block; width: 1920px; height: 218px; }

/* ---------- Franja de estado (encima de los rectángulos) ---------- */
.strip {
  position: absolute; left: 36px; right: 36px; top: 215px; height: 58px; z-index: 2;
  border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: background .6s ease, border-color .6s ease;
}
.strip-normal, .strip-alert {
  position: absolute; inset: 0; display: flex; align-items: center;
  transition: opacity .5s ease, transform .5s ease;
}
.strip-normal { justify-content: space-between; padding: 0 10px 0 24px; }
.strip-title { font-weight: 800; font-size: 19px; letter-spacing: 2px; text-transform: uppercase; }
.strip-mid { font-weight: 600; font-size: 17px; color: var(--muted); }
.strip-alert {
  justify-content: center; gap: 18px; padding: 0 8px;
  color: #fff; font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: .3px; text-transform: uppercase;
  opacity: 0; transform: translateY(100%);
}
.alertbar-icon { font-size: 34px; }
.alertbar-time {
  font-variant-numeric: tabular-nums; background: rgba(0,0,0,.28);
  padding: 5px 16px; border-radius: 12px;
}
.strip.alert { background: linear-gradient(90deg, #d4142f, var(--alert) 50%, #d4142f); border-color: transparent; animation: barPulse 1.6s ease-in-out infinite; box-shadow: 0 8px 30px rgba(255,45,85,.35); }
.strip.closed { background: #3a3a3e; border-color: transparent; }
.strip.alert .strip-alert, .strip.closed .strip-alert { opacity: 1; transform: none; }
.strip.alert .strip-normal, .strip.closed .strip-normal { opacity: 0; transform: translateY(-100%); }
.strip.closed .alertbar-time { display: none; }
@keyframes barPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }

/* ---------- Grid ---------- */
.grid {
  position: absolute; left: 36px; right: 36px; top: 285px; height: 721px;
  display: grid; grid-template-columns: 860px 470px 470px; gap: 0 24px;
}
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 30px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.card-head { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.head-note { font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-weight: 800; font-size: 40px; line-height: 1.12; letter-spacing: -.5px; margin: 0; }

.live {
  display: flex; align-items: center; gap: 10px;
  background: rgba(52,224,138,.12); color: var(--live);
  font-weight: 800; font-size: 16px; letter-spacing: 2px; padding: 9px 18px; border-radius: 12px;
}
.live .dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 1.8s infinite; }
.live.warn { background: rgba(255,176,32,.14); color: var(--warn); }
.live.closed { background: rgba(255,255,255,.08); color: #d8d6d2; }
.live.closed .dot { animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,224,138,.6); } 70% { box-shadow: 0 0 0 12px rgba(52,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(52,224,138,0); } }

/* ---------- Lista Top 10 ---------- */
.list { position: relative; height: 595px; margin-top: 10px; overflow: hidden; }
.row {
  position: absolute; left: 0; right: 0; top: 0; height: 55px; z-index: 1;
  display: grid; grid-template-columns: 46px 58px 1fr 150px; align-items: center; gap: 0 14px;
  padding: 0 18px 0 16px; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.035);
  transition: transform .85s cubic-bezier(.25,.9,.25,1), opacity .6s ease;
  will-change: transform;
}
.row::before { /* franja de color */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c);
}
.row .fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 10%, transparent));
  transition: width .9s cubic-bezier(.25,.9,.25,1);
  z-index: 0;
}
.row > *:not(.fill) { position: relative; z-index: 1; }
.row.lead { background: rgba(232,181,65,.08); box-shadow: inset 0 0 0 2px rgba(232,181,65,.55); }
.row.bump { animation: bump 1.3s ease-out; }
@keyframes bump { 0% { box-shadow: inset 0 0 0 2px var(--c), 0 0 30px color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: inset 0 0 0 2px transparent, 0 0 0 transparent; } }
.row.lead.bump { animation: bumpLead 1.3s ease-out; }
@keyframes bumpLead { 0% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 34px rgba(232,181,65,.7); } 100% { box-shadow: inset 0 0 0 2px rgba(232,181,65,.55); } }

.pos { font-weight: 900; font-size: 32px; text-align: center; color: var(--c); font-variant-numeric: tabular-nums; }
.row.lead .pos { color: var(--gold); }

/* Badge estilo "vaso" */
.badge {
  width: 54px; height: 50px; border-radius: 13px; background: var(--gold); color: var(--brown);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.badge-num { font-weight: 900; font-size: 25px; letter-spacing: -.5px; }
.badge-lbl { font-weight: 800; font-size: 7.5px; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.badge-sm { width: 64px; height: 60px; border-radius: 15px; flex: none; }
.badge-sm .badge-num { font-size: 30px; }
.badge-sm .badge-lbl { font-size: 8.5px; }

.info { min-width: 0; }
.name { font-weight: 800; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-weight: 500; font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.meta b { color: #cfcdc8; font-weight: 700; }

.score { text-align: right; line-height: 1; }
.votes { font-weight: 900; font-size: 28px; font-variant-numeric: tabular-nums; }
.pct { font-weight: 700; font-size: 14px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.plus {
  position: absolute; right: 168px; top: 14px; z-index: 2; pointer-events: none;
  background: var(--c); color: #111; font-weight: 900; font-size: 17px; padding: 3px 10px; border-radius: 999px;
  animation: plus 1.6s ease-out forwards;
}
@keyframes plus { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

.empty { position: absolute; left: 0; right: 0; top: 90px; bottom: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty.on { display: flex; }
.empty-big { font-size: 96px; animation: bob 2.4s ease-in-out infinite; }
.empty-title { font-weight: 800; font-size: 36px; margin-top: 18px; }
.empty-sub { font-weight: 500; font-size: 19px; color: var(--muted); margin-top: 10px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Donut ---------- */
.donut-wrap { position: relative; width: 410px; height: 410px; margin: 12px auto 0; }
.donut { width: 410px; height: 410px; display: block; overflow: visible; }
.donut .seg { stroke: none; }
.donut .lbl rect { fill: var(--gold); }
.donut .lbl text { fill: var(--brown); font-weight: 900; font-size: 17px; text-anchor: middle; dominant-baseline: central; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.total { font-weight: 900; font-size: 76px; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.total-label { font-weight: 700; font-size: 15px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.leader { margin-top: 20px; background: var(--card-2); border-radius: 22px; padding: 16px 20px 18px; border: 1px solid rgba(232,181,65,.25); }
.leader-top { display: flex; align-items: center; justify-content: space-between; }
.leader-tag { font-weight: 800; font-size: 15px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold); }
.leader-pct { font-weight: 900; font-size: 34px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.leader-body { display: flex; align-items: center; gap: 16px; margin-top: 10px; min-height: 64px; }
.leader-text { flex: 1; min-width: 0; }
.leader-name { font-weight: 800; font-size: 25px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-meta { font-weight: 500; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
/* Nombre largo: hasta 2 líneas y solo el nombre de la cerveza */
.leader.long .leader-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.leader.long .leader-meta { display: none; }

/* ---------- QR ---------- */
.qr { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
.qr-scan { font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.qr-head h2 { font-size: 48px; line-height: 1.05; color: var(--gold); text-transform: uppercase; letter-spacing: 0; }
.qr-img { position: relative; width: 404px; height: 404px; margin-top: 12px; }
.qr-img img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45)); transition: filter .6s, opacity .6s; }
.qr-closed { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-weight: 900; font-size: 46px; text-transform: uppercase; line-height: 1.1; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.8); }
.qr.closed .qr-img img { filter: grayscale(1) brightness(.35); }
.qr.closed .qr-closed { display: flex; }
.close-info { margin-top: 14px; }
.close-label { font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.close-at { font-weight: 800; font-size: 30px; margin-top: 4px; }
.countdown {
  display: inline-block; margin-top: 12px; padding: 10px 40px; border-radius: 999px;
  background: rgba(255,255,255,.07); font-weight: 900; font-size: 46px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.countdown.urgent { background: var(--alert); color: #fff; animation: barPulse 1.6s ease-in-out infinite; }
.countdown.done { background: rgba(255,255,255,.07); color: var(--muted); font-size: 24px; padding: 10px 28px; }

/* ---------- Footer ---------- */
.foot { position: absolute; left: 36px; right: 36px; bottom: 8px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.foot-left { display: flex; align-items: center; gap: 14px; }
.foot-hbpr { height: 50px; }
.foot-title { font-weight: 800; font-size: 16px; line-height: 1.15; }
.foot-sub { font-weight: 500; font-size: 13.5px; color: var(--dim); margin-top: 1px; font-variant-numeric: tabular-nums; }
.foot-credit { font-weight: 600; font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.foot-credit b { color: var(--text); font-weight: 800; letter-spacing: .5px; }
.foot-right { display: flex; align-items: center; gap: 16px; }
.powered { font-weight: 700; font-size: 17px; letter-spacing: 1px; color: var(--muted); }
.aeronet { height: 48px; }

/* ---------- Overlay alerta ---------- */
.overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .6s ease; z-index: 50;
}
.overlay.on { opacity: 1; }
.overlay-box {
  display: flex; align-items: center; gap: 70px; padding: 64px 80px; border-radius: 48px;
  background: linear-gradient(135deg, #e3173a, #ff4d2e);
  box-shadow: 0 40px 120px rgba(255,45,85,.45);
  transform: scale(.85); transition: transform .7s cubic-bezier(.2,1.3,.3,1);
}
.overlay.on .overlay-box { transform: scale(1); }
.overlay-left { max-width: 900px; }
.overlay-clock { font-size: 110px; line-height: 1; animation: shake 1.2s ease-in-out infinite; transform-origin: 50% 60%; display: inline-block; }
@keyframes shake { 0%,100% { transform: rotate(0); } 10% { transform: rotate(-14deg); } 20% { transform: rotate(12deg); } 30% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 50% { transform: rotate(0); } }
.overlay-title { font-weight: 900; font-size: 78px; line-height: 1.03; letter-spacing: -1.5px; margin-top: 18px; text-transform: uppercase; }
.overlay-sub { font-weight: 700; font-size: 34px; margin-top: 16px; opacity: .9; }
.overlay-time { display: inline-block; margin-top: 28px; font-weight: 900; font-size: 96px; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.25); padding: 6px 36px; border-radius: 28px; }
.overlay-qr { width: 420px; text-align: center; font-weight: 800; font-size: 26px; }
.overlay-qr img { width: 420px; height: 420px; display: block; margin-bottom: 16px; }
.qr.closed .qr-scan { visibility: hidden; }

/* =====================================================================
   v6 · Fin de votación: validando resultados + resumen final
   ===================================================================== */
.end-overlay { display: block; background: rgba(10,10,12,.95); z-index: 60; }
.end-band { position: absolute; left: 0; top: 0; width: 1920px; height: 218px; display: block; }
.end-main { position: absolute; left: 0; right: 0; top: 218px; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 90px; }

/* Cervezas animadas a los lados: brindando hacia el centro */
.end-beer { position: relative; width: 220px; height: 260px; flex: none; z-index: 2; }
.end-beer span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 180px; line-height: 1; filter: drop-shadow(0 18px 30px rgba(232,181,65,.35)); }
.end-beer-left span { transform-origin: 70% 90%; animation: toastL 2.4s ease-in-out infinite; }
.end-beer-right span { transform-origin: 30% 90%; animation: toastR 2.4s ease-in-out infinite; }
@keyframes toastL { 0%,100% { transform: scaleX(-1) translateY(0) rotate(0); } 30% { transform: scaleX(-1) translateY(-18px) rotate(-16deg); } 45% { transform: scaleX(-1) translateY(-10px) rotate(-8deg); } 60% { transform: scaleX(-1) translateY(-18px) rotate(-16deg); } }
@keyframes toastR { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-18px) rotate(-16deg); } 45% { transform: translateY(-10px) rotate(-8deg); } 60% { transform: translateY(-18px) rotate(-16deg); } }
/* Burbujas que suben */
.end-beer i { position: absolute; bottom: 150px; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,236,170,.75); opacity: 0; animation: bubble 2.8s ease-in infinite; }
.end-beer i:nth-of-type(1) { left: 42%; animation-delay: 0s; }
.end-beer i:nth-of-type(2) { left: 55%; width: 10px; height: 10px; animation-delay: .9s; }
.end-beer i:nth-of-type(3) { left: 48%; width: 18px; height: 18px; animation-delay: 1.8s; }
@keyframes bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-120px) scale(1.1); opacity: 0; } }
.end-box {
  display: block; text-align: center; padding: 56px 70px 50px; width: 1160px; flex: none; position: relative; z-index: 1;
  background: linear-gradient(135deg, #f3c552, #e39a1e); color: var(--brown);
  box-shadow: 0 40px 120px rgba(232,181,65,.40);
}
.end-icon { font-size: 110px; line-height: 1; display: inline-block; animation: cheers 2.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cheers { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(0); } 75% { transform: rotate(12deg); } }
.end-box .overlay-title { font-size: 88px; margin-top: 0; }
.end-box .overlay-sub { font-size: 34px; opacity: .85; }
.end-validating { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 40px; font-weight: 800; font-size: 36px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 6px solid rgba(43,26,16,.22); border-top-color: var(--brown); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.end-progress { width: 900px; max-width: 100%; height: 22px; margin: 30px auto 0; border-radius: 999px; background: rgba(43,26,16,.20); overflow: hidden; }
.end-bar { height: 100%; width: 0%; border-radius: 999px; background: var(--brown); transition: width 1s linear; }
.end-time { margin-top: 20px; font-weight: 700; font-size: 30px; }
.end-time b { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Pantalla de resumen */
.summary {
  position: absolute; left: 36px; right: 36px; top: 285px; height: 721px;
  display: none; grid-template-columns: 1080px 1fr; gap: 0 24px;
}
.stage.show-summary .grid { display: none; }
.stage.show-summary .summary { display: grid; animation: fadeUp .9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.win {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(700px 420px at 50% 40%, rgba(232,181,65,.16), transparent 70%), var(--card);
  border-color: rgba(232,181,65,.45);
}
.win-tag { position: absolute; top: 30px; left: 0; right: 0; font-weight: 800; font-size: 19px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.win-body { display: flex; flex-direction: column; align-items: center; margin-top: 34px; width: 100%; }
.win-badge {
  width: 230px; height: 210px; border-radius: 50px; background: var(--gold); color: var(--brown);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 10px rgba(232,181,65,.15), 0 24px 60px rgba(232,181,65,.35);
  animation: pop 1s cubic-bezier(.2,1.4,.3,1) both, glow 2.6s ease-in-out 1s infinite;
}
.win-badge .badge-num { font-size: 132px; letter-spacing: -4px; }
.win-badge .badge-lbl { font-size: 20px; letter-spacing: 3px; margin-top: 6px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 10px rgba(232,181,65,.15), 0 24px 60px rgba(232,181,65,.35); } 50% { box-shadow: 0 0 0 18px rgba(232,181,65,.10), 0 24px 90px rgba(232,181,65,.55); } }
.win-name {
  font-weight: 900; font-size: 80px; line-height: 1.04; letter-spacing: -1.5px; margin-top: 30px; max-width: 980px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.win-meta { font-weight: 600; font-size: 30px; color: var(--muted); margin-top: 14px; max-width: 980px; }
.win-meta b { color: var(--text); font-weight: 800; }
.win-stats { display: flex; align-items: baseline; justify-content: center; gap: 44px; margin-top: 30px; }
.win-votes { font-weight: 900; font-size: 92px; line-height: 1; font-variant-numeric: tabular-nums; }
.win-votes small { font-size: 28px; font-weight: 700; color: var(--muted); margin-left: 10px; letter-spacing: 1px; }
.win-pct { font-weight: 900; font-size: 64px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.win-empty { font-weight: 800; font-size: 44px; color: var(--muted); }

/* Empate en primer lugar */
.tie-list { display: flex; flex-direction: column; gap: 18px; width: 960px; margin-top: 10px; }
.tie-item { display: flex; align-items: center; gap: 28px; text-align: left; background: rgba(255,255,255,.04); border-radius: 26px; padding: 18px 28px; }
.tie-item .badge { width: 120px; height: 110px; border-radius: 28px; flex: none; }
.tie-item .badge-num { font-size: 66px; }
.tie-item .badge-lbl { font-size: 12px; letter-spacing: 2px; }
.tie-text { flex: 1; min-width: 0; }
.tie-name { font-weight: 900; font-size: 46px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie-meta { font-weight: 600; font-size: 22px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie-votes { font-weight: 900; font-size: 54px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Top 5 */
.top5-list { margin-top: 10px; }
.t5row {
  display: grid; grid-template-columns: 58px 72px 1fr auto; align-items: center; gap: 0 18px;
  height: 104px; margin-top: 12px; padding: 0 26px 0 18px; border-radius: 22px; background: rgba(255,255,255,.04);
  animation: fadeUp .7s ease both;
}
.t5row:first-child { margin-top: 0; background: rgba(232,181,65,.10); box-shadow: inset 0 0 0 2px rgba(232,181,65,.55); }
.t5pos { font-weight: 900; font-size: 50px; text-align: center; }
.t5pos.p1 { color: var(--gold); } .t5pos.p2 { color: #cfd6de; } .t5pos.p3 { color: #d48c50; }
.t5row .badge { width: 72px; height: 66px; border-radius: 17px; }
.t5row .badge-num { font-size: 34px; }
.t5row .badge-lbl { font-size: 9px; }
.badge.badge-green { background: var(--green); color: #1d2a0f; } /* Top 5: lugares 2 en adelante */
.t5info { min-width: 0; }
.t5name { font-weight: 800; font-size: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5meta { font-weight: 500; font-size: 16px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5score { text-align: right; line-height: 1; }
.t5votes { font-weight: 900; font-size: 40px; font-variant-numeric: tabular-nums; }
.t5pct { font-weight: 700; font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Franja dorada de resultados finales */
.strip.final { background: linear-gradient(90deg, #d9a531, #f3c552 50%, #d9a531); border-color: transparent; box-shadow: 0 8px 30px rgba(232,181,65,.35); }
.strip.final .strip-alert { opacity: 1; transform: none; color: var(--brown); }
.strip.final .strip-normal { opacity: 0; transform: translateY(-100%); }
.strip.final .alertbar-time { display: none; }

/* Confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; display: none; }
.stage.show-summary .confetti { display: block; }
.confetti i { position: absolute; top: -30px; display: block; border-radius: 2px; opacity: .9; animation: fall linear infinite; will-change: transform; }
@keyframes fall { from { transform: translate3d(0,-40px,0) rotate(0); } to { transform: translate3d(var(--dx, 40px),1140px,0) rotate(var(--rot, 720deg)); } }
