/*
  Show do sorteio (overlay do OBS e site público).
  Mantido compatível com o Chromium antigo do OBS: sem nesting, sem color-mix, sem container queries,
  máscaras com prefixo -webkit-, transform só pela propriedade "transform".
*/
.sh {
  --sh-night: #0d0a26;
  --sh-ink: #16133a;
  --sh-ticket: #ffc83d;
  --sh-hot: #ffe38a;
  --sh-stamp: #e8384f;
  --sh-paper: #fff8e6;
  --sh-font: 'Archivo', 'Arial Narrow', 'Roboto Condensed', sans-serif;

  /* overlay 1920x1080 */
  --card-w: 236px;
  --card-h: 306px;
  --win-w: 1060px;
  --name-xl: 108px;
  --count-size: 400px;
  --pad: 64px;
  --round-size: 46px;
  --pool-size: 32px;

  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 40;
  overflow: hidden;
  color: var(--sh-paper);
  font-family: var(--sh-font);
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  transition: opacity 420ms ease;
}
.sh[hidden], .sh [hidden] { display: none !important; }
.sh.is-leaving { opacity: 0; }
.sh.is-site {
  position: fixed;
  --card-w: clamp(118px, 38vw, 180px);
  --card-h: calc(var(--card-w) * 1.3);
  --win-w: min(92vw, 470px);
  --name-xl: clamp(38px, 12.5vw, 62px);
  --count-size: clamp(170px, 54vw, 300px);
  --pad: 16px;
  --round-size: clamp(22px, 6.6vw, 30px);
  --pool-size: 15px;
}

/* ---------- camadas de fundo ---------- */
.sh-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(120% 85% at 50% 42%, rgba(38, 30, 112, 0.94) 0%, rgba(18, 14, 58, 0.95) 52%, rgba(8, 6, 28, 0.97) 100%); }
.sh.is-site .sh-bg { background: radial-gradient(130% 80% at 50% 38%, #261e70 0%, #120e3a 55%, #08061c 100%); }
.sh-rays {
  position: absolute; left: 50%; top: 46%; width: 190vmax; height: 190vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255, 200, 61, 0.085) 0deg 4deg, rgba(255, 200, 61, 0) 4deg 19deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 22%, transparent 48%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 22%, transparent 48%);
  will-change: transform;
}
.sh-streaks { position: absolute; left: 0; top: 18%; height: 64%; width: 300%; opacity: 0; will-change: transform, opacity; background-repeat: repeat; }
.sh-pulse {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(232, 56, 79, 0) 46%, rgba(232, 56, 79, 0.42) 100%);
}
.sh-pulse.beat { animation: sh-beat 420ms ease-out; }
@keyframes sh-beat { 0% { opacity: 0; } 18% { opacity: var(--beat, 0.5); } 100% { opacity: 0; } }
.sh-grain {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- câmera (tremida) e cenas ---------- */
.sh-cam {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--pad) var(--pad) calc(var(--pad) * 0.9);
  will-change: transform;
}
.sh-head { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 120px; }
.sh.is-site .sh-head { min-height: 0; gap: 6px; }
.sh-stage { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.sh-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.sh.is-site .sh-foot { gap: 10px; }

/* barra do site */
.sh-bar { display: none; }
.sh.is-site .sh-bar { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 560px; margin-bottom: 10px; }
.sh-live { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; font-size: 15px; font-stretch: 100%; }
.sh-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-stamp); box-shadow: 0 0 0 0 rgba(232, 56, 79, 0.6); animation: sh-live 1.4s infinite; }
@keyframes sh-live { 70% { box-shadow: 0 0 0 7px rgba(232, 56, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 56, 79, 0); } }
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(255, 248, 230, 0.22); background: rgba(255, 248, 230, 0.08); color: var(--sh-paper);
  font: inherit; font-stretch: 100%; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
}
.sh-btn:hover { background: rgba(255, 248, 230, 0.16); }
.sh-btn:focus-visible { outline: 3px solid var(--sh-ticket); outline-offset: 2px; }
.sh-btn[aria-pressed='true'] { background: var(--sh-ticket); border-color: var(--sh-ticket); color: var(--sh-ink); }
.sh-btn svg { width: 18px; height: 18px; }
.sh-close { width: 38px; padding: 0; font-size: 22px; line-height: 1; }

/* carimbo "sorteio ao vivo" */
.sh-stamp {
  display: inline-block; padding: 4px 22px 6px; border: 7px double var(--sh-stamp); border-radius: 14px;
  color: var(--sh-stamp); font-weight: 900; font-stretch: 62%; font-size: 64px; line-height: 1; letter-spacing: 0.02em;
  transform: rotate(-6deg) scale(2.4); opacity: 0; background: rgba(13, 10, 38, 0.35);
}
.sh-stamp.is-in { animation: sh-stamp-in 360ms cubic-bezier(.2, 1.5, .45, 1) forwards; }
@keyframes sh-stamp-in { 0% { opacity: 0; transform: rotate(-6deg) scale(2.4); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
.sh[data-scene='spin'] .sh-stamp, .sh[data-scene='gap'] .sh-stamp, .sh[data-scene='win'] .sh-stamp, .sh[data-scene='finale'] .sh-stamp { animation: none; opacity: 0.95; transform: rotate(-4deg) scale(0.56); transition: transform 380ms ease, opacity 380ms ease; }
.sh.is-site .sh-stamp { font-size: 38px; border-width: 5px; }
.sh.is-site[data-scene='spin'] .sh-stamp, .sh.is-site[data-scene='gap'] .sh-stamp, .sh.is-site[data-scene='win'] .sh-stamp, .sh.is-site[data-scene='finale'] .sh-stamp { display: none; }

.sh-round { margin: 0; min-height: 1.1em; font-weight: 800; font-stretch: 62%; font-size: var(--round-size); line-height: 1.1; color: var(--sh-ticket); text-align: center; }
.sh-pool { margin: 0; font-weight: 600; font-stretch: 100%; font-size: var(--pool-size); color: rgba(255, 248, 230, 0.78); text-align: center; opacity: 0; transition: opacity 400ms ease; }
.sh-pool b { color: var(--sh-paper); font-weight: 800; }
.sh.show-pool .sh-pool { opacity: 1; }
.sh-me {
  margin: 0; max-width: 560px; padding: 9px 16px; border-radius: 12px; text-align: center;
  font-stretch: 100%; font-weight: 600; font-size: 15px; line-height: 1.35;
  background: rgba(255, 248, 230, 0.08); border: 1px solid rgba(255, 248, 230, 0.14);
}
.sh-me:empty { display: none; }
.sh-me b { color: var(--sh-ticket); font-weight: 800; }
.sh-me.is-in { border-color: rgba(255, 200, 61, 0.55); background: rgba(255, 200, 61, 0.1); }
.sh-demo { margin: 0; font-stretch: 100%; font-size: 13px; font-weight: 700; color: var(--sh-ink); background: var(--sh-ticket); padding: 3px 10px; border-radius: 6px; }

/* ---------- contagem 3, 2, 1 (e o "2º" entre ganhadores) ---------- */
.sh-count { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; pointer-events: none; }
.sh-count span {
  display: block; font-weight: 900; font-stretch: 62%; font-size: var(--count-size); line-height: 0.8;
  color: var(--sh-ticket); -webkit-text-stroke: calc(var(--count-size) * 0.018) var(--sh-ink);
  text-shadow: calc(var(--count-size) * 0.03) calc(var(--count-size) * 0.03) 0 var(--sh-stamp);
  opacity: 0;
}
.sh-count span.go { animation: sh-count 760ms cubic-bezier(.15, 1.3, .4, 1) forwards; }
@keyframes sh-count {
  0% { opacity: 0; transform: scale(1.9); }
  22% { opacity: 1; transform: scale(0.96); }
  34% { transform: scale(1.02); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.82); }
}
.sh-count span.hold { animation: sh-count-hold 1100ms cubic-bezier(.15, 1.3, .4, 1) forwards; }
@keyframes sh-count-hold { 0% { opacity: 0; transform: scale(1.9); } 20% { opacity: 1; transform: scale(0.97); } 30% { transform: scale(1); } 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }

/* ---------- roleta (cilindro 3D) ---------- */
.sh-reel { position: relative; width: 100%; height: calc(var(--card-h) + 60px); opacity: 0; transform: scale(0.9); transition: opacity 260ms ease, transform 420ms cubic-bezier(.2, 1.3, .4, 1); }
.sh[data-scene='spin'] .sh-reel { opacity: 1; transform: scale(1); }
.sh.is-breath .sh-reel { transform: scale(1.045); transition: transform 380ms ease-out; }
.sh-track {
  position: absolute; top: 30px; left: 0; right: 0; height: var(--card-h);
  perspective: calc(var(--card-w) * 5.2); perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.sh-reel[data-blur='1'] .sh-track { filter: blur(1.1px); }
.sh-reel[data-blur='2'] .sh-track { filter: blur(2.4px); }
.sh-card { position: absolute; left: 50%; top: 0; width: var(--card-w); height: var(--card-h); margin-left: calc(var(--card-w) / -2); will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sh-paper {
  --c: #7ab8ff;
  --notch: calc(var(--card-w) * 0.07);
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--card-w) * 0.12) calc(var(--card-w) * 0.07) 0;
  background: var(--sh-paper); color: var(--sh-ink); border-radius: calc(var(--card-w) * 0.07);
  border-top: calc(var(--card-w) * 0.035) solid var(--c);
  text-align: center;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 74%, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 74%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 74%, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 74%, transparent 96%, #000 100%);
  mask-composite: intersect;
  transition: background-color 90ms;
}
.sh-paper::after { /* picote entre o bilhete e o canhoto */
  content: ''; position: absolute; left: calc(var(--notch) + 4px); right: calc(var(--notch) + 4px); top: 74%; height: 3px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(22, 19, 58, 0.32) 0 7px, transparent 7px 13px);
}
.sh-card.is-center .sh-paper { background: var(--sh-ticket); }
.sh-avatar {
  flex: none; width: calc(var(--card-w) * 0.36); height: calc(var(--card-w) * 0.36); border-radius: 50%;
  display: grid; place-items: center; background: var(--sh-ink) center / cover no-repeat; color: var(--sh-ticket);
  font-weight: 900; font-stretch: 62%; font-size: calc(var(--card-w) * 0.19); line-height: 1;
}
.sh-card-name {
  margin-top: calc(var(--card-w) * 0.07); width: 100%; font-weight: 900; font-stretch: 62%; font-size: calc(var(--card-w) * 0.15); line-height: 0.98;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.sh-card-qty { position: absolute; left: 0; right: 0; top: 74%; bottom: 0; display: grid; place-items: center; font-weight: 700; font-stretch: 100%; font-size: calc(var(--card-w) * 0.075); color: rgba(22, 19, 58, 0.72); }
.sh-paper.is-me { background: #fff; box-shadow: inset 0 0 0 calc(var(--card-w) * 0.03) var(--sh-stamp); }
.sh-card.is-center .sh-paper.is-me { background: var(--sh-ticket); }
.sh-card-you {
  position: absolute; top: calc(var(--card-w) * 0.05); right: calc(var(--card-w) * 0.05); padding: 1px 7px; border-radius: 999px;
  background: var(--sh-stamp); color: #fff; font-stretch: 100%; font-weight: 800; font-size: calc(var(--card-w) * 0.065);
}
.sh-marker { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 6px; margin-left: -3px; background: var(--sh-stamp); border-radius: 3px; box-shadow: 0 0 18px rgba(232, 56, 79, 0.85), 0 0 0 2px rgba(13, 10, 38, 0.6); }
.sh-marker::before, .sh-marker::after { content: ''; position: absolute; left: 50%; width: 0; height: 0; border: 14px solid transparent; margin-left: -14px; }
.sh-marker::before { top: -6px; border-top: 18px solid var(--sh-stamp); }
.sh-marker::after { bottom: -6px; border-bottom: 18px solid var(--sh-stamp); }
.sh.is-site .sh-marker::before, .sh.is-site .sh-marker::after { border-width: 10px; margin-left: -10px; }
.sh.is-site .sh-marker::before { border-top-width: 13px; }
.sh.is-site .sh-marker::after { border-bottom-width: 13px; }
.sh-glow { position: absolute; left: 50%; top: 50%; width: calc(var(--card-w) * 2.6); height: calc(var(--card-h) * 1.6); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 200, 61, 0.42), rgba(255, 200, 61, 0)); opacity: 0.35; pointer-events: none; }

/* ---------- bilhete do ganhador ---------- */
.sh-win { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; pointer-events: none; }
.sh-ticket { position: relative; display: flex; width: var(--win-w); color: var(--sh-ink); filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)); animation: sh-win-in 640ms cubic-bezier(.17, 1.4, .35, 1) both; }
.sh-win.is-settled .sh-ticket { animation: none; }
@keyframes sh-win-in { 0% { opacity: 0; transform: scale(0.35) rotate(-6deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.sh-ticket-body {
  --notch: calc(var(--win-w) * 0.022);
  position: relative; flex: 1; min-width: 0; padding: calc(var(--win-w) * 0.04) calc(var(--win-w) * 0.045);
  background: var(--sh-ticket); border-radius: calc(var(--win-w) * 0.026) 0 0 calc(var(--win-w) * 0.026);
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 100%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 100% 0, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 100%, transparent 96%, #000 100%);
  mask-composite: intersect;
}
.sh-ticket-label { display: block; font-stretch: 100%; font-weight: 700; font-size: calc(var(--win-w) * 0.028); color: rgba(22, 19, 58, 0.7); }
.sh-ticket-who { display: flex; align-items: center; gap: calc(var(--win-w) * 0.025); margin-top: calc(var(--win-w) * 0.012); }
.sh-ticket-who .sh-avatar { width: calc(var(--win-w) * 0.13); height: calc(var(--win-w) * 0.13); font-size: calc(var(--win-w) * 0.065); border: calc(var(--win-w) * 0.006) solid var(--sh-ink); }
.sh-ticket-name { min-width: 0; font-weight: 900; font-stretch: 62%; font-size: var(--name-xl); line-height: 0.9; overflow-wrap: anywhere; }
.sh-ticket-stats { display: block; margin-top: calc(var(--win-w) * 0.016); font-stretch: 100%; font-weight: 600; font-size: calc(var(--win-w) * 0.026); }
.sh-ticket-stub {
  --notch: calc(var(--win-w) * 0.022);
  position: relative; flex: none; width: 23%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--sh-ticket); border-left: calc(var(--win-w) * 0.005) dashed rgba(22, 19, 58, 0.38); border-radius: 0 calc(var(--win-w) * 0.026) calc(var(--win-w) * 0.026) 0;
  transform-origin: 0 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 0 100%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 0, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 0 100%, transparent 96%, #000 100%);
  mask-composite: intersect;
}
.sh-ticket-stub span { font-stretch: 100%; font-weight: 600; font-size: calc(var(--win-w) * 0.022); color: rgba(22, 19, 58, 0.7); }
.sh-ticket-stub b { font-weight: 900; font-stretch: 62%; font-size: calc(var(--win-w) * 0.052); line-height: 1; font-variant-numeric: tabular-nums; margin: 2px 0; }
.sh-ticket.is-torn .sh-ticket-stub { animation: sh-tear 760ms cubic-bezier(.4, 0, .3, 1) forwards; }
.sh-win.is-settled .sh-ticket.is-torn .sh-ticket-stub { animation-duration: 1ms; }
@keyframes sh-tear { 0% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(6px, -4px) rotate(-3deg); } 100% { transform: translate(calc(var(--win-w) * 0.022), calc(var(--win-w) * 0.018)) rotate(7deg); } }
.sh-ticket-stamp {
  position: absolute; right: calc(var(--win-w) * 0.035); bottom: calc(var(--win-w) * 0.03); padding: 0 calc(var(--win-w) * 0.018);
  border: calc(var(--win-w) * 0.008) double var(--sh-stamp); border-radius: calc(var(--win-w) * 0.012);
  color: var(--sh-stamp); font-weight: 900; font-stretch: 62%; font-size: calc(var(--win-w) * 0.075); line-height: 1.05;
  opacity: 0; transform: rotate(-12deg) scale(2.6);
}
.sh-ticket.is-stamped .sh-ticket-stamp { animation: sh-stamp-hit 300ms cubic-bezier(.3, 1.6, .5, 1) forwards; }
.sh-win.is-settled .sh-ticket.is-stamped .sh-ticket-stamp { animation-duration: 1ms; }
@keyframes sh-stamp-hit { 0% { opacity: 0; transform: rotate(-12deg) scale(2.6); } 100% { opacity: 0.92; transform: rotate(-12deg) scale(1); } }
.sh-tag-test { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--sh-ink); color: var(--sh-ticket); font-stretch: 100%; font-size: calc(var(--win-w) * 0.022); font-weight: 800; vertical-align: middle; }
.sh-verdict { margin: 0; max-width: var(--win-w); font-stretch: 100%; font-weight: 600; font-size: calc(var(--pool-size) * 1.05); text-align: center; color: var(--sh-paper); text-shadow: 0 1px 2px rgba(8, 6, 28, 0.9), 0 0 14px rgba(8, 6, 28, 0.8); opacity: 0; animation: sh-fade-up 500ms ease 900ms forwards; }
.sh-win.is-settled .sh-verdict { animation-delay: 0ms; }
@keyframes sh-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- trilho de ganhadores (1º, 2º, 3º...) e quadro final ---------- */
.sh-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; max-width: 1500px; }
.sh-rail:empty { display: none; }
.sh-slot {
  display: flex; align-items: center; gap: 10px; min-width: 210px; height: 66px; padding: 0 16px 0 12px;
  border: 2px dashed rgba(255, 248, 230, 0.28); border-radius: 12px; color: rgba(255, 248, 230, 0.55);
  font-stretch: 100%; font-weight: 700; font-size: 22px;
}
.sh-slot-n { font-weight: 900; font-stretch: 62%; font-size: 36px; color: inherit; min-width: 34px; }
.sh-slot .sh-avatar { width: 42px; height: 42px; font-size: 22px; }
.sh-slot-name { min-width: 0; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sh-ink); font-weight: 900; font-stretch: 62%; font-size: 32px; }
.sh-slot-num { display: none; }
.sh-slot-who { font-weight: 900; font-stretch: 62%; font-size: 32px; line-height: 1; }
.sh.is-site .sh-slot-who { font-size: 20px; }
.sh-slot.is-filled {
  --notch: 9px;
  border: 0; background: var(--sh-ticket); color: var(--sh-ink);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 50%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 50%, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 50%, transparent 96%, #000 100%);
  mask-composite: intersect;
}
.sh-slot.is-me { box-shadow: inset 0 0 0 4px var(--sh-stamp); }
.sh-slot.pop { animation: sh-pop 420ms cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sh-pop { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }
.sh.is-site .sh-slot { min-width: 0; height: 44px; padding: 0 10px 0 8px; gap: 6px; font-size: 14px; border-radius: 9px; }
.sh.is-site .sh-slot-n { font-size: 22px; min-width: 22px; }
.sh.is-site .sh-slot .sh-avatar { width: 28px; height: 28px; font-size: 15px; }
.sh.is-site .sh-slot-name { font-size: 20px; max-width: 30vw; }
.sh.is-site .sh-rail { gap: 6px; }

/* quadro final: o trilho vira a atração principal */
.sh[data-scene='finale'] .sh-stage { flex: 0 0 auto; height: 0; }
.sh[data-scene='finale'] .sh-foot { flex: 1; justify-content: center; }
.sh[data-scene='finale'] .sh-rail { gap: 20px 24px; max-width: 1720px; }
.sh[data-scene='finale'] .sh-slot {
  --notch: 13px; width: 540px; height: auto; padding: 16px 30px 16px 26px;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px;
  animation: sh-pop 520ms cubic-bezier(.2, 1.5, .4, 1) both;
}
.sh[data-scene='finale'] .sh-slot-n { grid-row: 1 / span 2; font-size: 62px; min-width: 52px; }
.sh[data-scene='finale'] .sh-slot .sh-avatar { grid-row: 1 / span 2; width: 76px; height: 76px; font-size: 38px; }
.sh[data-scene='finale'] .sh-slot-name { grid-column: 3; grid-row: 1; align-self: end; font-size: 54px; line-height: 0.95; max-width: none; }
.sh[data-scene='finale'] .sh-slot-num { grid-column: 3; grid-row: 2; align-self: start; display: block; font-stretch: 100%; font-size: 18px; font-weight: 700; color: rgba(22, 19, 58, 0.66); white-space: nowrap; }
.sh.is-site[data-scene='finale'] .sh-rail { flex-direction: column; flex-wrap: nowrap; width: 100%; max-width: 470px; gap: 8px; }
.sh.is-site[data-scene='finale'] .sh-slot { --notch: 8px; width: auto; min-width: 0; padding: 10px 16px 10px 12px; gap: 10px; }
.sh.is-site[data-scene='finale'] .sh-slot .sh-avatar { width: 44px; height: 44px; font-size: 22px; }
.sh.is-site[data-scene='finale'] .sh-slot-name { font-size: 32px; }
.sh.is-site[data-scene='finale'] .sh-slot-n { font-size: 34px; min-width: 30px; }
.sh.is-site[data-scene='finale'] .sh-slot-num { font-size: 13px; }
.sh[data-scene='finale'] .sh-slot:nth-child(2) { animation-delay: 90ms; }
.sh[data-scene='finale'] .sh-slot:nth-child(3) { animation-delay: 180ms; }
.sh[data-scene='finale'] .sh-slot:nth-child(4) { animation-delay: 270ms; }
.sh[data-scene='finale'] .sh-slot:nth-child(n + 5) { animation-delay: 360ms; }
.sh[data-scene='finale'] .sh-round { font-size: calc(var(--round-size) * 1.6); }

.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- efeitos de impacto ---------- */
.sh-flash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #fff8e6; opacity: 0; pointer-events: none; }
.sh-flash.go { animation: sh-flash 520ms ease-out; }
@keyframes sh-flash { 0% { opacity: 0.72; } 100% { opacity: 0; } }
.sh-ring { position: absolute; left: 50%; top: 50%; width: 40vmin; height: 40vmin; margin: -20vmin 0 0 -20vmin; border-radius: 50%; border: 1.6vmin solid var(--sh-ticket); opacity: 0; pointer-events: none; }
.sh-ring.go { animation: sh-ring 700ms cubic-bezier(.1, .7, .3, 1); }
@keyframes sh-ring { 0% { opacity: 0.9; transform: scale(0.2); border-width: 3vmin; } 100% { opacity: 0; transform: scale(3.4); border-width: 0.2vmin; } }
.sh-confetti { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- "você ganhou!" (site) ---------- */
.sh-you {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; background: var(--sh-ticket); color: var(--sh-ink); text-align: center;
  animation: sh-you-in 560ms cubic-bezier(.2, 1.2, .35, 1) both;
}
.sh-you[hidden] { display: none; }
@keyframes sh-you-in { from { transform: translateY(100%); } to { transform: none; } }
.sh-you-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sh-you-title { margin: 0; font-weight: 900; font-stretch: 62%; font-size: clamp(76px, 25vw, 150px); line-height: 0.82; }
.sh-you-ticket { margin: 0; font-stretch: 100%; font-weight: 700; font-size: 17px; }
.sh-you-text { margin: 0; font-stretch: 100%; font-weight: 500; font-size: 17px; line-height: 1.4; max-width: 34ch; }
.sh-you .sh-btn { background: var(--sh-ink); border-color: var(--sh-ink); color: var(--sh-ticket); min-height: 48px; padding: 10px 22px; font-size: 16px; font-weight: 800; }
.sh-you .sh-btn.is-ghost { background: transparent; color: var(--sh-ink); border-color: rgba(22, 19, 58, 0.35); }
.sh-you-stamp { display: inline-block; padding: 2px 16px 4px; border: 6px double var(--sh-stamp); border-radius: 12px; color: var(--sh-stamp); font-weight: 900; font-stretch: 62%; font-size: 40px; line-height: 1; transform: rotate(-8deg); }

/* ---------- "toque para ouvir" (o navegador só libera som depois de um toque) ---------- */
.sh-tap {
  position: absolute; left: 50%; bottom: 22%; z-index: 5;
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sh-ticket); color: var(--sh-ink); font: inherit; font-stretch: 100%; font-weight: 800; font-size: 22px;
  box-shadow: 0 0 0 0 rgba(255, 200, 61, 0.55), 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%); animation: sh-tap 1.6s ease-out infinite; white-space: nowrap;
}
.sh-tap svg { width: 30px; height: 30px; }
.sh-tap:focus-visible { outline: 3px solid var(--sh-paper); outline-offset: 3px; }
@keyframes sh-tap { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 61, 0.55), 0 14px 34px rgba(0, 0, 0, 0.5); } 80%, 100% { box-shadow: 0 0 0 22px rgba(255, 200, 61, 0), 0 14px 34px rgba(0, 0, 0, 0.5); } }
.sh.is-overlay .sh-tap { bottom: 24%; padding: 26px 46px; font-size: 40px; }
.sh.is-overlay .sh-tap svg { width: 48px; height: 48px; }
/* no site, o aviso é o próprio botão de som da barra, amarelo e pulsando */
.sh.is-site .sh-tap { display: none !important; }
.sh-btn.is-locked { background: var(--sh-ticket); border-color: var(--sh-ticket); color: var(--sh-ink); font-weight: 800; animation: sh-tap 1.6s ease-out infinite; }
.sh-live { white-space: nowrap; }
.sh.is-site .sh-live { font-size: 14px; }
.sh.is-site .sh-bar .sh-sound { min-height: 36px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.sh.is-site .sh-bar .sh-sound.is-icon { width: 38px; padding: 0; }

/* barra de volume */
.sh-sound-ctl { display: flex; align-items: center; gap: 8px; }
.sh-vol { -webkit-appearance: none; appearance: none; width: 104px; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.sh-vol::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sh-ticket) var(--v, 80%), rgba(255, 248, 230, 0.22) var(--v, 80%)); }
.sh-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--sh-paper); border: 3px solid var(--sh-ticket); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.sh-vol::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 248, 230, 0.22); }
.sh-vol::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sh-ticket); }
.sh-vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sh-paper); border: 3px solid var(--sh-ticket); }
.sh-vol:focus-visible { outline: 3px solid var(--sh-ticket); outline-offset: 2px; border-radius: 6px; }

.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- site: bilhete do ganhador em pé (canhoto embaixo) ---------- */
.sh.is-site .sh-ticket { flex-direction: column; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55)); }
.sh.is-site .sh-ticket-body {
  --notch: 11px; padding: 18px 18px 22px; border-radius: 16px 16px 0 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 100%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 100%, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 100%, transparent 96%, #000 100%);
  mask-composite: intersect;
}
.sh.is-site .sh-ticket-label { font-size: 14px; }
.sh.is-site .sh-ticket-who { gap: 12px; margin-top: 8px; }
.sh.is-site .sh-ticket-who .sh-avatar { width: 56px; height: 56px; font-size: 28px; border-width: 3px; }
.sh.is-site .sh-ticket-stats { font-size: 15px; margin-top: 10px; padding-right: 124px; }
.sh.is-site .sh-ticket-stamp { right: 14px; bottom: 14px; font-size: 34px; border-width: 5px; border-radius: 8px; padding: 0 9px; }
.sh.is-site .sh-tag-test { font-size: 12px; }
.sh.is-site .sh-ticket-stub {
  --notch: 11px; width: auto; flex-direction: row; align-items: baseline; gap: 8px; padding: 12px 18px 14px;
  border-left: 0; border-top: 3px dashed rgba(22, 19, 58, 0.38); border-radius: 0 0 16px 16px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 0, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 0, transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% 0, transparent 96%, #000 100%);
  mask-composite: intersect;
}
.sh.is-site .sh-ticket-stub span { font-size: 15px; }
.sh.is-site .sh-ticket-stub b { font-size: 30px; }
.sh.is-site .sh-ticket.is-torn .sh-ticket-stub { animation-name: sh-tear-down; }
/* o canhoto rasgado desce um pouco e gira: o resto da tela abre espaço para ele não cobrir a frase de baixo */
@keyframes sh-tear-down { 0% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(-3px, 4px) rotate(-1deg); } 100% { transform: translate(6px, 7px) rotate(1.6deg); } }
.sh.is-site .sh-win { gap: 34px; padding: 0 4px; }
.sh.is-site .sh-verdict { font-size: 15px; }

/* telas baixas (celular deitado) */
@media (max-height: 560px) {
  .sh.is-site { --card-w: clamp(96px, 20vh, 130px); --count-size: 42vh; }
  .sh.is-site .sh-me { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-rays, .sh-streaks, .sh-pulse, .sh-ring, .sh-flash { display: none; }
  .sh *, .sh *::before, .sh *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
