:root {
  --pink: #ff5fa8;
  --pink-soft: #ffd1e5;
  --blue: #4aa3ff;
  --blue-soft: #cbe6ff;
  --dark: #080711;
  --white: #fff9fd;
  --muted: rgba(255,255,255,.76);
  --glass: rgba(255,255,255,.22);
  --glass-border: rgba(255,255,255,.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { font: inherit; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.main-body {
  overflow: hidden;
  background: linear-gradient(90deg, var(--pink-soft), var(--blue-soft));
  color: #1d1421;
}

.split-stage, .home-screen, .reveal-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.side { position: absolute; inset: 0; width: 50%; filter: saturate(1.08); }
.side-pink { left: 0; background: radial-gradient(circle at 20% 30%, #fff, transparent 22%), linear-gradient(140deg, #ffb0d4, #ff5fa8); }
.side-blue { right: 0; left: auto; background: radial-gradient(circle at 80% 30%, #fff, transparent 22%), linear-gradient(220deg, #9fd5ff, #4aa3ff); }
.side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .24;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(51, 20, 60, .22);
  backdrop-filter: blur(18px);
}

.home-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 86vw);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 34px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  opacity: .72;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 6.2vw, 6.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.045em;
}

.lead, .vote-header p {
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  margin: 18px 0 10px;
}

.ready-text {
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  margin: 24px 0;
}

.qr-wrap {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin: 6px auto 28px;
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.58);
}
.qr-wrap.qr-only { flex-direction: column; gap: 12px; }

.qr-card {
  width: 156px; height: 156px;
  padding: 9px;
  border-radius: 20px;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px rgba(29,20,33,.18);
}

.qr-copy { text-align: center; max-width: 460px; }
.qr-copy strong { display: block; font-size: 1.45rem; }
.qr-copy span:not(.visually-hidden) { display: block; margin-top: 6px; font-size: .95rem; opacity: .72; word-break: break-all; }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.status-pill {
  border-radius: 999px;
  padding: 15px 18px;
  font-weight: 900;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.5);
}
.status-pill.complete { background: rgba(255,255,255,.78); box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.status-pill.pending { opacity: .7; }

.primary-btn, .envelope-button {
  border: none;
  border-radius: 999px;
  padding: 18px 30px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: white;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  margin-top: 24px;
  transition: transform .2s ease, filter .2s ease;
}
.primary-btn:hover, .envelope-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.primary-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.reset-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: none;
  background: rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  opacity: .45;
}
.reset-btn:hover { opacity: 1; }

.reveal-screen { background: var(--dark); color: white; }
.dark-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 56%, rgba(255,255,255,.1), transparent 22%),
    radial-gradient(circle at 18% 24%, rgba(255,95,168,.34), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(74,163,255,.34), transparent 34%),
    linear-gradient(135deg, #070512 0%, #120b26 45%, #050713 100%);
}
.dark-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 90deg, rgba(255,95,168,.18), rgba(74,163,255,.18), rgba(255,255,255,.05), rgba(255,95,168,.18));
  filter: blur(55px);
  opacity: .58;
  animation: slowSpin 18s linear infinite;
}
.starfield {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.4px);
  background-size: 90px 90px, 140px 140px;
}
.starfield-two { opacity: .25; transform: scale(1.18); animation: starDrift 18s linear infinite; }
.aurora {
  position: absolute;
  width: 78vw;
  height: 34vh;
  border-radius: 999px;
  filter: blur(35px);
  opacity: .42;
  mix-blend-mode: screen;
  animation: auroraDance 6s ease-in-out infinite alternate;
}
.aurora-pink { left: -12vw; top: 15vh; background: linear-gradient(90deg, transparent, #ff5fa8, #ffd1e5, transparent); transform: rotate(-18deg); }
.aurora-blue { right: -12vw; bottom: 18vh; background: linear-gradient(90deg, transparent, #4aa3ff, #cbe6ff, transparent); transform: rotate(18deg); animation-delay: -1.6s; }
.spark {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 28px white;
  opacity: .7;
  animation: sparkFloat 5s ease-in-out infinite alternate;
}
.spark-one { left: 20%; top: 28%; background: #ffd1e5; }
.spark-two { left: 72%; top: 34%; background: #cbe6ff; animation-delay: -1s; }
.spark-three { left: 36%; top: 72%; background: #ff8fc5; animation-delay: -2s; }
.spark-four { left: 64%; top: 66%; background: #7fc5ff; animation-delay: -3s; }

.vote-sequence { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.envelope-card {
  position: absolute;
  top: 36%;
  width: 280px;
  min-height: 180px;
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(18px);
  font-weight: 900;
  font-size: 1.25rem;
}
.envelope-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border-bottom: 1px solid rgba(255,255,255,.26);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.envelope-card strong { display: block; margin-top: 12px; font-size: 2.4rem; }
.envelope-icon { font-size: 3rem; margin-bottom: 8px; }
.mom-envelope { left: 12%; animation: envelopeOrbit 3s ease-in-out infinite alternate; }
.dad-envelope { right: 12%; animation: envelopeOrbit 3s ease-in-out infinite alternate-reverse; }
.envelope-exit-left { animation: exitLeft 1.1s ease-in forwards !important; }
.envelope-exit-right { animation: exitRight 1.1s ease-in forwards !important; }

.suspense-text {
  position: absolute;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  width: min(1100px, 90vw);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6.2vw, 6.8rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.04em;
  text-shadow: 0 0 30px rgba(255,255,255,.24), 0 0 70px rgba(255,95,168,.25);
  z-index: 6;
}
.countdown {
  position: absolute;
  left: 50%; top: 54%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 900;
  text-shadow: 0 0 45px rgba(255,255,255,.24);
  animation: pulseNumber 1s ease-in-out infinite;
  z-index: 6;
}

.cannon-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.cannon { position: absolute; bottom: 9%; width: 280px; height: 190px; transform-origin: 50% 80%; }
.cannon-left { left: 7%; transform: rotate(-13deg); }
.cannon-right { right: 7%; transform: scaleX(-1) rotate(-13deg); }
.cannon-shadow { position: absolute; left: 24px; bottom: 0; width: 220px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.42); filter: blur(10px); }
.cannon-body {
  position: absolute;
  left: 82px; bottom: 40px;
  width: 130px; height: 86px;
  border-radius: 48% 42% 36% 36%;
  background: linear-gradient(145deg, #55546a, #222232 62%, #14141f);
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: inset 14px 16px 24px rgba(255,255,255,.08), inset -12px -18px 24px rgba(0,0,0,.42);
}
.cannon-barrel {
  position: absolute;
  left: 120px; bottom: 92px;
  width: 155px; height: 62px;
  transform: rotate(-24deg);
  border-radius: 28px 70px 70px 28px;
  background: linear-gradient(180deg, #fbfbff 0%, #9a9aaa 38%, #303042 74%, #151521 100%);
  box-shadow: inset 0 9px 10px rgba(255,255,255,.38), inset 0 -14px 18px rgba(0,0,0,.42), 0 18px 34px rgba(0,0,0,.32);
}
.cannon-rim {
  position: absolute;
  right: -10px; top: 4px;
  width: 46px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 50%, #11111a 0 28%, #3b3b4d 29% 46%, #d4d4de 47% 62%, #55556a 63% 100%);
  box-shadow: inset -5px -4px 12px rgba(0,0,0,.38);
}
.cannon-wheel {
  position: absolute;
  bottom: 18px;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #1f1f2d 0 20%, #74748a 21% 30%, #242434 31% 55%, #b0b0c0 56% 63%, #222232 64% 100%);
  border: 3px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 20px rgba(0,0,0,.3);
}
.wheel-back { left: 74px; opacity: .78; }
.wheel-front { left: 142px; }
.cannon-fuse {
  position: absolute;
  left: 88px; bottom: 116px;
  width: 52px; height: 34px;
  border-top: 4px dashed rgba(255,255,255,.72);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.cannon-fuse::after {
  content: "";
  position: absolute;
  left: -8px; top: -9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 20px #ff9f1c;
}
.cannon-fire { animation: cannonKick .34s ease-in-out 3; }
.cannon-fire .cannon-rim::after {
  content: "";
  position: absolute;
  right: -32px; top: 12px;
  width: 60px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,206,91,.85), transparent 70%);
  filter: blur(2px);
  animation: muzzleFlash .35s ease-in-out 3;
}

.final-reveal { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 6vh 4vw 8vh; z-index: 9; }
.banner {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 7.4vw, 8rem);
  font-weight: 800;
  color: white;
  letter-spacing: -.045em;
  text-shadow: 0 0 32px rgba(255,255,255,.35);
}
.result-text {
  align-self: end;
  font-size: clamp(4rem, 11vw, 12rem);
  line-height: .95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.05em;
  text-shadow: 0 0 42px rgba(255,255,255,.28);
}
.result-girl { color: #ff8fc5; }
.result-boy { color: #7fc5ff; }
.envelope-button { align-self: end; margin-top: 22px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.38); }

.results-panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 86vw);
  border-radius: 30px;
  padding: 34px;
  background: rgba(8,7,17,.88);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  backdrop-filter: blur(20px);
  z-index: 20;
}
.results-panel h2 { margin: 0 0 22px; font-size: 2.4rem; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 1.25rem; }
.result-row strong { font-size: 1.8rem; }
.close-btn { position: absolute; top: 12px; right: 16px; border: none; background: transparent; color: white; font-size: 2rem; cursor: pointer; }

.vote-body {
  min-height: 100vh;
  background: linear-gradient(90deg, #ffd1e5 0 50%, #cbe6ff 50% 100%);
  color: #1d1421;
}
.vote-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 18px; }
.vote-header { text-align: center; border-radius: 28px; padding: 24px 18px; }
.vote-header h1 { font-size: clamp(2.2rem, 9vw, 4.6rem); }
.vote-header p { margin-bottom: 0; }
.vote-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-height: 360px; }
.vote-side { border-radius: 32px; padding: 18px; display: grid; align-content: center; gap: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.pink-vote-side { background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,95,168,.42)); }
.blue-vote-side { background: linear-gradient(200deg, rgba(255,255,255,.28), rgba(74,163,255,.42)); }
.person-btn, .gender-btn {
  width: 100%;
  min-height: 90px;
  border: none;
  border-radius: 28px;
  font-size: clamp(1.5rem, 7vw, 3rem);
  font-weight: 900;
  cursor: pointer;
  color: white;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.person-btn { background: rgba(29,20,33,.72); }
.gender-btn { background: rgba(255,255,255,.44); color: #1d1421; border: 2px solid rgba(255,255,255,.5); }
.person-btn:disabled, .gender-btn:disabled { opacity: .38; cursor: not-allowed; }
.person-btn.selected, .gender-btn.selected { outline: 5px solid white; transform: scale(1.02); }
.submit-card { border-radius: 28px; padding: 18px; text-align: center; }
.selection-summary { font-weight: 800; font-size: 1.05rem; min-height: 26px; }
.submit-message { min-height: 28px; margin-top: 12px; font-weight: 800; }

@keyframes slowSpin { from { transform: rotate(0deg) scale(1); } to { transform: rotate(360deg) scale(1.05); } }
@keyframes starDrift { from { transform: translateY(0) scale(1.18); } to { transform: translateY(60px) scale(1.18); } }
@keyframes auroraDance { from { transform: translateX(-2vw) translateY(1vh) rotate(-18deg) scale(1); } to { transform: translateX(8vw) translateY(-4vh) rotate(-8deg) scale(1.08); } }
@keyframes sparkFloat { from { transform: translateY(0) scale(.72); opacity: .4; } to { transform: translateY(-38px) scale(1.15); opacity: .95; } }
@keyframes envelopeOrbit { from { transform: translate(-12px, -16px) rotate(-5deg); } 50% { transform: translate(18px, 4px) rotate(2deg); } to { transform: translate(-4px, 18px) rotate(5deg); } }
@keyframes exitLeft { to { transform: translate(-78vw, -48vh) rotate(-30deg) scale(.8); opacity: 0; } }
@keyframes exitRight { to { transform: translate(78vw, -48vh) rotate(30deg) scale(.8); opacity: 0; } }
@keyframes pulseNumber { 0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .65; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
@keyframes cannonKick { 50% { transform: translateX(-24px) translateY(4px) rotate(-18deg); } }
@keyframes muzzleFlash { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } }

@media (max-width: 760px) {
  .home-card { width: min(94vw, 900px); padding: 26px 18px; }
  .qr-wrap { flex-direction: column; }
  .qr-copy { text-align: center; }
  .status-grid { grid-template-columns: 1fr; }
  .vote-columns { gap: 10px; }
  .vote-shell { padding: 10px; }
  .vote-side { padding: 10px; border-radius: 24px; }
  .cannon { width: 220px; transform: scale(.78) rotate(-13deg); }
  .cannon-left { left: -2%; }
  .cannon-right { right: -2%; transform: scaleX(-1) scale(.78) rotate(-13deg); }
}

/* V3 cinematic reveal refinements */
.home-fade-out { animation: homeFadeOut .65s ease forwards; }
.scene-enter .dark-bg { animation: sceneBreath 10s ease-in-out infinite alternate; }
.scene-enter .starfield-one { animation: starTwinkle 5s ease-in-out infinite alternate; }

.reveal-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 34%, rgba(0,0,0,.42) 75%, rgba(0,0,0,.78) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 18%, transparent 78%, rgba(0,0,0,.38));
  z-index: 1;
  pointer-events: none;
}
.reveal-screen > * { z-index: 2; }
.dark-bg { transform: scale(1.02); }
.dark-bg::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse at 35% 42%, rgba(255,95,168,.2), transparent 36%),
    radial-gradient(ellipse at 65% 42%, rgba(74,163,255,.2), transparent 36%),
    conic-gradient(from 200deg at 50% 50%, rgba(255,95,168,.1), rgba(74,163,255,.16), rgba(255,255,255,.04), rgba(255,95,168,.1));
  filter: blur(44px);
  opacity: .8;
  animation: cinematicSwirl 12s ease-in-out infinite alternate;
}

.cinematic-bloom {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 42vw;
  height: 42vw;
  max-width: 760px;
  max-height: 760px;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.38);
  opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.72), rgba(255,143,197,.34) 26%, rgba(127,197,255,.30) 49%, transparent 70%);
  filter: blur(24px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}
.cinematic-bloom.bloom-build { animation: bloomBuild 4.2s cubic-bezier(.2,.8,.2,1) forwards; }
.cinematic-bloom.bloom-girl { background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,95,168,.74) 26%, rgba(255,209,229,.46) 50%, transparent 72%); animation: bloomReveal 1.4s cubic-bezier(.1,.85,.1,1) forwards; }
.cinematic-bloom.bloom-boy { background: radial-gradient(circle, rgba(255,255,255,.9), rgba(74,163,255,.74) 26%, rgba(203,230,255,.46) 50%, transparent 72%); animation: bloomReveal 1.4s cubic-bezier(.1,.85,.1,1) forwards; }

.screen-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}
.screen-flash.flash-fire { animation: screenFlash .8s ease-out forwards; }
.impact-ready { animation: cameraShake .42s ease-in-out; }

.vote-sequence-enter .envelope-card { animation-duration: 3.6s; }
.envelope-card {
  transform: translateY(18px) scale(.96);
  opacity: 0;
  animation: envelopeAppear .8s cubic-bezier(.2,.9,.2,1) forwards, envelopeOrbit 3.6s ease-in-out .9s infinite alternate;
}
.dad-envelope { animation-delay: .12s, 1.02s; }
.envelope-card.vote-revealed {
  box-shadow: 0 32px 90px rgba(0,0,0,.42), 0 0 38px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.3);
}
.envelope-card strong {
  opacity: .18;
  transform: translateY(6px) scale(.92);
  transition: opacity .45s ease, transform .45s ease;
}
.envelope-card.vote-revealed strong {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.suspense-text {
  top: 34%;
  opacity: 0;
  transform: translate(-50%, -44%) scale(.96);
  letter-spacing: -.055em;
}
.suspense-enter { animation: suspenseEnter 1s cubic-bezier(.2,.9,.2,1) forwards; }
.suspense-lift { animation: suspenseLift .65s ease forwards; }
.countdown {
  font-size: clamp(7rem, 19vw, 16rem);
  opacity: 0;
}
.countdown-live { opacity: 1; }
.number-pop { animation: numberPop .9s cubic-bezier(.16,.92,.2,1); }

.cannons-enter .cannon-left { animation: cannonEnterLeft .9s cubic-bezier(.16,.92,.2,1) forwards; }
.cannons-enter .cannon-right { animation: cannonEnterRight .9s cubic-bezier(.16,.92,.2,1) forwards; }
.cannon-left { left: 5%; transform: translateX(-26vw) translateY(6vh) rotate(-20deg) scale(.9); opacity: 0; }
.cannon-right { right: 5%; transform: translateX(26vw) translateY(6vh) scaleX(-1) rotate(-20deg) scale(.9); opacity: 0; }
.cannon-body { background: linear-gradient(145deg, #716f83, #2b2b3d 58%, #12121e); }
.cannon-barrel { height: 68px; width: 170px; border-radius: 28px 78px 78px 28px; }
.cannon-rim { right: -13px; width: 52px; height: 60px; }
.cannon-fuse::after { animation: fuseSpark .7s ease-in-out infinite alternate; }
.cannon-fire { animation: cannonKickV3 .5s cubic-bezier(.16,.92,.2,1) 2 !important; }
.cannon-fire .cannon-rim::after {
  width: 95px;
  height: 56px;
  right: -62px;
  top: 2px;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,215,105,.92) 36%, rgba(255,111,65,.45) 58%, transparent 74%);
  animation: muzzleFlashV3 .5s ease-in-out 2;
}

.final-reveal-enter .banner { animation: bannerCinematicIn .95s cubic-bezier(.16,.92,.2,1) forwards; }
.final-reveal-enter .result-text { animation: resultCinematicIn 1.1s cubic-bezier(.16,.92,.2,1) .25s both; }
.final-reveal .banner,
.final-reveal .result-text { opacity: 0; }
.final-reveal-enter { background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.08), transparent 42%); }
.soft-pop-in { animation: softPopIn .55s cubic-bezier(.16,.92,.2,1) both; }

@keyframes homeFadeOut { to { opacity: 0; transform: scale(1.015); filter: blur(8px); } }
@keyframes sceneBreath { from { filter: saturate(1) brightness(.92); } to { filter: saturate(1.25) brightness(1.08); } }
@keyframes starTwinkle { from { opacity: .25; } to { opacity: .55; } }
@keyframes cinematicSwirl { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(10deg) scale(1.08); } }
@keyframes bloomBuild { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.32); } 35% { opacity: .22; } 100% { opacity: .74; transform: translate(-50%, -50%) scale(1); } }
@keyframes bloomReveal { 0% { opacity: .72; transform: translate(-50%, -50%) scale(1); } 42% { opacity: 1; transform: translate(-50%, -50%) scale(1.42); filter: blur(18px); } 100% { opacity: .78; transform: translate(-50%, -50%) scale(1.85); filter: blur(34px); } }
@keyframes screenFlash { 0% { opacity: 0; } 18% { opacity: .72; } 100% { opacity: 0; } }
@keyframes cameraShake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-8px, 3px); } 40% { transform: translate(8px, -4px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(4px, -2px); } }
@keyframes envelopeAppear { from { opacity: 0; transform: translateY(34px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes suspenseEnter { from { opacity: 0; transform: translate(-50%, -38%) scale(.92); filter: blur(10px); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } }
@keyframes suspenseLift { to { opacity: 0; transform: translate(-50%, -68%) scale(1.04); filter: blur(8px); } }
@keyframes numberPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); filter: blur(10px); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); filter: blur(0); } 100% { opacity: .18; transform: translate(-50%, -50%) scale(1.28); filter: blur(3px); } }
@keyframes cannonEnterLeft { to { opacity: 1; transform: translateX(0) translateY(0) rotate(-13deg) scale(1); } }
@keyframes cannonEnterRight { to { opacity: 1; transform: translateX(0) translateY(0) scaleX(-1) rotate(-13deg) scale(1); } }
@keyframes cannonKickV3 { 0%,100% { filter: brightness(1); } 38% { transform: translateX(-34px) translateY(7px) rotate(-19deg) scale(1.02); filter: brightness(1.26); } }
@keyframes muzzleFlashV3 { 0%,100% { opacity: 0; transform: scale(.35); } 35% { opacity: 1; transform: scale(1.25); } }
@keyframes fuseSpark { from { opacity: .7; transform: scale(.75); } to { opacity: 1; transform: scale(1.3); } }
@keyframes bannerCinematicIn { from { opacity: 0; transform: translateY(-24px) scale(.98); filter: blur(10px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes resultCinematicIn { from { opacity: 0; transform: translateY(38px) scale(.9); filter: blur(12px); } 70% { opacity: 1; transform: translateY(-4px) scale(1.03); filter: blur(0); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes softPopIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* V4 reveal polish overrides: hide vote previews during reveal, centre final result, and make cannon fire read from the barrels. */
.vote-sequence { display: none !important; }

.suspense-text {
  top: 42% !important;
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
}

.suspense-enter {
  animation: suspenseV4In 1.1s cubic-bezier(.16,.92,.2,1) forwards, suspenseV4Glow 2.6s ease-in-out 1.1s infinite alternate;
}

.suspense-lift {
  animation: suspenseV4Out .55s ease-in forwards !important;
}

.countdown {
  top: 52% !important;
  color: rgba(255,255,255,.96);
  text-shadow: 0 0 34px rgba(255,255,255,.5), 0 0 86px rgba(255,95,168,.32), 0 0 96px rgba(74,163,255,.26);
}

.cannon-wrap { z-index: 8; }
.cannon { bottom: 7.5% !important; width: 330px !important; height: 220px !important; }
.cannon-left { left: 4% !important; }
.cannon-right { right: 4% !important; }
.cannon-barrel {
  left: 128px !important;
  bottom: 116px !important;
  width: 210px !important;
  height: 78px !important;
  transform: rotate(-30deg) !important;
  border-radius: 34px 92px 92px 34px !important;
  box-shadow: inset 0 12px 12px rgba(255,255,255,.42), inset 0 -18px 22px rgba(0,0,0,.48), 0 20px 42px rgba(0,0,0,.42), 0 0 24px rgba(255,255,255,.08) !important;
}
.cannon-rim {
  right: -18px !important;
  top: 6px !important;
  width: 66px !important;
  height: 66px !important;
}
.cannon-body {
  left: 78px !important;
  bottom: 44px !important;
  width: 152px !important;
  height: 102px !important;
}
.cannon-wheel { width: 78px !important; height: 78px !important; }
.wheel-back { left: 70px !important; }
.wheel-front { left: 156px !important; }

.cannon-fire .cannon-rim::after {
  right: -84px !important;
  top: 2px !important;
  width: 128px !important;
  height: 68px !important;
  background: radial-gradient(circle at 0% 50%, rgba(255,255,255,1), rgba(255,214,104,.95) 18%, rgba(255,95,168,.72) 44%, rgba(74,163,255,.5) 58%, transparent 76%) !important;
  filter: blur(1.5px) !important;
  transform: rotate(2deg);
  animation: muzzleFlashV4 .48s cubic-bezier(.16,.92,.2,1) 2 !important;
}

.final-reveal {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 42px);
  padding: 5vh 4vw !important;
  z-index: 11 !important;
  text-align: center;
}
.final-reveal .banner {
  position: relative;
  font-size: clamp(2.8rem, 6vw, 7rem) !important;
  line-height: .95;
}
.final-reveal .result-text {
  align-self: center !important;
  font-size: clamp(5rem, 14vw, 16rem) !important;
  line-height: .82 !important;
  max-width: 96vw;
  filter: drop-shadow(0 0 22px rgba(255,255,255,.22));
}
.final-reveal .envelope-button {
  position: absolute;
  bottom: 5vh;
  align-self: auto !important;
}
.final-reveal-enter .result-text {
  animation: resultV4HeroIn 1.25s cubic-bezier(.12,1,.18,1) .05s both !important;
}
.final-reveal-enter .banner {
  animation: bannerV4In .9s cubic-bezier(.16,.92,.2,1) .2s both !important;
}

@keyframes suspenseV4In {
  from { opacity: 0; transform: translate(-50%, -44%) scale(.92); filter: blur(10px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}
@keyframes suspenseV4Glow {
  from { text-shadow: 0 0 28px rgba(255,255,255,.26), 0 0 74px rgba(255,95,168,.22); }
  to { text-shadow: 0 0 44px rgba(255,255,255,.42), 0 0 104px rgba(74,163,255,.32); }
}
@keyframes suspenseV4Out {
  to { opacity: 0; transform: translate(-50%, -68%) scale(.96); filter: blur(12px); }
}
@keyframes muzzleFlashV4 {
  0% { opacity: 0; transform: translateX(-22px) scale(.55) rotate(2deg); }
  24% { opacity: 1; transform: translateX(0) scale(1.15) rotate(2deg); }
  100% { opacity: 0; transform: translateX(56px) scale(.42) rotate(2deg); }
}
@keyframes resultV4HeroIn {
  0% { opacity: 0; transform: translateY(26px) scale(.72); filter: blur(16px); letter-spacing: -.08em; }
  48% { opacity: 1; transform: translateY(-8px) scale(1.07); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: -.05em; }
}
@keyframes bannerV4In {
  from { opacity: 0; transform: translateY(-22px) scale(.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 800px) {
  .cannon { width: 240px !important; transform: scale(.72) rotate(-13deg); }
  .cannon-left { left: -14% !important; }
  .cannon-right { right: -14% !important; transform: scaleX(-1) scale(.72) rotate(-13deg); }
  .final-reveal .result-text { font-size: clamp(4rem, 18vw, 8rem) !important; }
}

/* V5 cinematic polish: tighter countdown, cannon-linked burst, hero reveal focus, and unobstructed results modal. */
.reveal-screen { isolation: isolate; }
.reveal-screen.results-open .final-reveal {
  opacity: .18;
  filter: blur(7px) saturate(.8);
  transform: scale(.98);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
  pointer-events: none;
}
.reveal-screen.results-open .cannon-wrap,
.reveal-screen.results-open .cinematic-bloom,
.reveal-screen.results-open .aurora,
.reveal-screen.results-open .spark {
  opacity: .35;
  transition: opacity .35s ease;
}
.results-panel {
  z-index: 1000 !important;
  top: 50% !important;
  background: linear-gradient(180deg, rgba(16,13,28,.94), rgba(8,7,17,.96)) !important;
  border: 1px solid rgba(255,255,255,.36) !important;
  box-shadow: 0 38px 110px rgba(0,0,0,.75), 0 0 90px rgba(255,255,255,.12) !important;
}
.results-panel::before {
  content: "";
  position: fixed;
  inset: -100vh -100vw;
  background: rgba(0,0,0,.48);
  z-index: -1;
  backdrop-filter: blur(2px);
}

.countdown-exit {
  animation: countdownSnapOut .3s ease-in forwards !important;
}
@keyframes countdownSnapOut {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.55); filter: blur(12px); }
}

.impact-ripple {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 18vw;
  height: 18vw;
  min-width: 160px;
  min-height: 160px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.72);
  transform: translate(-50%, -50%) scale(.22);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  box-shadow: 0 0 50px rgba(255,255,255,.35), inset 0 0 40px rgba(255,255,255,.12);
}
.impact-ripple.ripple-fire { animation: rippleImpact .95s cubic-bezier(.08,.72,.12,1) forwards; }
@keyframes rippleImpact {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.22); filter: blur(0); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(5.4); filter: blur(8px); }
}

.smoke-plume {
  position: absolute;
  width: 190px;
  height: 100px;
  border-radius: 999px;
  background: radial-gradient(circle at 24% 50%, rgba(255,255,255,.72), rgba(255,255,255,.24) 30%, transparent 70%);
  filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transform-origin: 0 50%;
}
.smoke-left { left: 22.5%; top: 66%; transform: rotate(-26deg) scale(.5); }
.smoke-right { right: 22.5%; top: 66%; transform: scaleX(-1) rotate(-26deg) scale(.5); }
.smoke-fire.smoke-left { animation: smokeLeft .9s ease-out forwards; }
.smoke-fire.smoke-right { animation: smokeRight .9s ease-out forwards; }
@keyframes smokeLeft {
  0% { opacity: 0; transform: translate(-20px, 18px) rotate(-26deg) scale(.35); }
  18% { opacity: .78; }
  100% { opacity: 0; transform: translate(120px, -80px) rotate(-18deg) scale(1.35); }
}
@keyframes smokeRight {
  0% { opacity: 0; transform: translate(20px, 18px) scaleX(-1) rotate(-26deg) scale(.35); }
  18% { opacity: .78; }
  100% { opacity: 0; transform: translate(-120px, -80px) scaleX(-1) rotate(-18deg) scale(1.35); }
}

.cannon-wrap { z-index: 9 !important; }
.cannon-left { left: 2.5% !important; }
.cannon-right { right: 2.5% !important; }
.cannons-enter .cannon-left { animation: cannonEnterLeftV5 .56s cubic-bezier(.14,.95,.24,1) forwards !important; }
.cannons-enter .cannon-right { animation: cannonEnterRightV5 .56s cubic-bezier(.14,.95,.24,1) forwards !important; }
@keyframes cannonEnterLeftV5 {
  0% { opacity: 0; transform: translateX(-18vw) translateY(7vh) rotate(-20deg) scale(.86); filter: blur(7px); }
  72% { opacity: 1; transform: translateX(1vw) translateY(-.5vh) rotate(-12deg) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotate(-13deg) scale(1); filter: blur(0); }
}
@keyframes cannonEnterRightV5 {
  0% { opacity: 0; transform: translateX(18vw) translateY(7vh) scaleX(-1) rotate(-20deg) scale(.86); filter: blur(7px); }
  72% { opacity: 1; transform: translateX(-1vw) translateY(-.5vh) scaleX(-1) rotate(-12deg) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0) scaleX(-1) rotate(-13deg) scale(1); filter: blur(0); }
}
.cannon-fire { animation: cannonKickV5 .42s cubic-bezier(.12,.9,.18,1) 2 !important; }
@keyframes cannonKickV5 {
  0%,100% { filter: brightness(1); }
  24% { transform: translateX(-42px) translateY(10px) rotate(-21deg) scale(1.035); filter: brightness(1.35); }
  56% { transform: translateX(-16px) translateY(4px) rotate(-16deg) scale(1.01); }
}
.cannon-fire .cannon-rim::after {
  right: -102px !important;
  top: -2px !important;
  width: 160px !important;
  height: 78px !important;
  background:
    radial-gradient(circle at 0% 50%, rgba(255,255,255,1) 0 18%, rgba(255,218,117,.98) 19% 34%, rgba(255,95,168,.76) 42%, rgba(74,163,255,.58) 58%, transparent 76%) !important;
  clip-path: polygon(0 22%, 72% 0, 100% 50%, 72% 100%, 0 78%);
  filter: blur(1px) !important;
  animation: muzzleFlashV5 .44s cubic-bezier(.1,.88,.18,1) 2 !important;
}
@keyframes muzzleFlashV5 {
  0% { opacity: 0; transform: translateX(-30px) scale(.42) rotate(-1deg); }
  18% { opacity: 1; transform: translateX(0) scale(1.16) rotate(-1deg); }
  100% { opacity: 0; transform: translateX(72px) scale(.34) rotate(-1deg); }
}

.final-reveal {
  z-index: 20 !important;
  gap: clamp(10px, 2vh, 22px) !important;
}
.final-reveal .banner {
  order: 1;
  font-size: clamp(1.7rem, 3.8vw, 4.2rem) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  opacity: .9;
}
.final-reveal .result-text {
  order: 2;
  font-size: clamp(5.8rem, 16vw, 18rem) !important;
  line-height: .78 !important;
  text-shadow: 0 0 30px rgba(255,255,255,.35), 0 0 90px currentColor, 0 22px 80px rgba(0,0,0,.5) !important;
}
.final-reveal .envelope-button { order: 3; z-index: 25; }
.final-reveal-enter .result-text { animation: resultV5HeroIn 1.05s cubic-bezier(.1,1,.15,1) .02s both !important; }
.final-reveal-enter .banner { animation: bannerV5In .8s cubic-bezier(.16,.92,.2,1) .38s both !important; }
@keyframes resultV5HeroIn {
  0% { opacity: 0; transform: translateY(16px) scale(.58); filter: blur(18px); letter-spacing: -.12em; }
  44% { opacity: 1; transform: translateY(-10px) scale(1.1); filter: blur(0); }
  76% { transform: translateY(2px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: -.055em; }
}
@keyframes bannerV5In {
  from { opacity: 0; transform: translateY(-8px) scale(.96); filter: blur(8px); }
  to { opacity: .9; transform: translateY(0) scale(1); filter: blur(0); }
}

.screen-flash.flash-fire { animation: screenFlashV5 .72s ease-out forwards !important; }
@keyframes screenFlashV5 { 0% { opacity: 0; } 12% { opacity: .82; } 32% { opacity: .2; } 100% { opacity: 0; } }
.impact-ready { animation: cameraShakeV5 .34s ease-in-out !important; }
@keyframes cameraShakeV5 { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-7px, 3px); } 38% { transform: translate(7px, -4px); } 58% { transform: translate(-4px, 2px); } 78% { transform: translate(3px, -1px); } }

@media (max-width: 800px) {
  .smoke-left { left: 9%; top: 68%; }
  .smoke-right { right: 9%; top: 68%; }
  .final-reveal .result-text { font-size: clamp(4.2rem, 19vw, 9rem) !important; }
}

/* V6 simplified premium reveal: static prompt/cannons, simple countdown, colour-block background, hero reveal. */
.simple-reveal-live.reveal-screen {
  background: #f9d5e7;
  overflow: hidden;
}
.simple-reveal-live .dark-bg {
  background:
    linear-gradient(90deg, rgba(255,143,197,.92) 0 49.5%, rgba(255,255,255,.62) 49.5% 50.5%, rgba(127,197,255,.92) 50.5% 100%),
    linear-gradient(0deg, rgba(255,255,255,.16) 0 50%, rgba(255,255,255,0) 50% 100%);
  background-size: 100% 100%, 72px 72px;
  transition: background .75s ease, filter .75s ease;
}
.simple-reveal-live .dark-bg::after,
.simple-reveal-live .starfield,
.simple-reveal-live .aurora,
.simple-reveal-live .spark,
.simple-reveal-live .cinematic-bloom,
.simple-reveal-live .impact-ripple,
.simple-reveal-live .smoke-plume {
  display: none !important;
}
.simple-reveal-live::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.52), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(255,255,255,.22), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 48%, rgba(0,0,0,.12));
}
.simple-reveal-live.revealed-girl .dark-bg {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.68), transparent 30%),
    linear-gradient(135deg, #ffd8ea 0%, #ff8fc5 48%, #ff5fa8 100%);
}
.simple-reveal-live.revealed-boy .dark-bg {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.68), transparent 30%),
    linear-gradient(135deg, #d8efff 0%, #7fc5ff 48%, #3297ff 100%);
}
.simple-reveal-live .suspense-text {
  top: 10.5% !important;
  left: 50% !important;
  width: min(1100px, 92vw);
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 5.2vw, 6.3rem) !important;
  line-height: .92;
  color: rgba(34,23,40,.94);
  text-shadow: 0 2px 0 rgba(255,255,255,.38), 0 18px 50px rgba(0,0,0,.12) !important;
  z-index: 6;
  animation: none !important;
}
.simple-reveal-live.revealed-girl .suspense-text,
.simple-reveal-live.revealed-boy .suspense-text {
  opacity: .35 !important;
  transition: opacity .65s ease;
}
.simple-reveal-live .countdown {
  top: 46% !important;
  left: 50% !important;
  opacity: 1 !important;
  animation: none !important;
  font-size: clamp(9rem, 24vw, 20rem) !important;
  line-height: .75;
  color: rgba(255,255,255,.96);
  text-shadow: 0 10px 42px rgba(0,0,0,.20), 0 0 44px rgba(255,255,255,.5) !important;
  z-index: 7;
}
.count-simple-change {
  animation: countSimpleChange .22s ease-out both !important;
}
@keyframes countSimpleChange {
  from { opacity: .15; transform: translate(-50%, -50%) scale(.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.simple-reveal-live .cannon-wrap {
  display: block;
  z-index: 8 !important;
}
.simple-reveal-live .cannon {
  opacity: 1 !important;
  bottom: 7% !important;
  width: 330px !important;
  height: 220px !important;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.28));
}
.simple-reveal-live .cannon-left {
  left: 4% !important;
  transform: rotate(-13deg) scale(1) !important;
}
.simple-reveal-live .cannon-right {
  right: 4% !important;
  transform: scaleX(-1) rotate(-13deg) scale(1) !important;
}
.simple-reveal-live .cannon-body {
  background: linear-gradient(145deg, #f8d8a2 0%, #d89d44 42%, #6d4d2e 100%) !important;
  border: 2px solid rgba(71,45,25,.45);
}
.simple-reveal-live .cannon-barrel {
  background: linear-gradient(145deg, #4a475c 0%, #202132 58%, #0d0d18 100%) !important;
  box-shadow: inset 0 10px 12px rgba(255,255,255,.28), inset 0 -16px 18px rgba(0,0,0,.4), 0 12px 22px rgba(0,0,0,.18) !important;
}
.simple-reveal-live .cannon-wheel {
  background: radial-gradient(circle at 38% 32%, #f2c66d 0%, #bc7d30 48%, #654122 100%) !important;
  border-color: rgba(80,48,22,.65) !important;
}
.simple-reveal-live .cannon-fire {
  animation: simpleCannonKick .32s cubic-bezier(.12,.9,.18,1) 2 !important;
}
@keyframes simpleCannonKick {
  0%, 100% { filter: drop-shadow(0 18px 26px rgba(0,0,0,.28)) brightness(1); }
  35% { filter: drop-shadow(0 22px 30px rgba(0,0,0,.34)) brightness(1.24); }
}
.simple-reveal-live .cannon-left.cannon-fire { transform: translateX(-28px) translateY(5px) rotate(-17deg) scale(1.02) !important; }
.simple-reveal-live .cannon-right.cannon-fire { transform: scaleX(-1) translateX(-28px) translateY(5px) rotate(-17deg) scale(1.02) !important; }
.simple-reveal-live .cannon-fire .cannon-rim::after {
  right: -108px !important;
  top: -4px !important;
  width: 168px !important;
  height: 82px !important;
  background: radial-gradient(circle at 0% 50%, rgba(255,255,255,1) 0 17%, rgba(255,226,121,.98) 18% 34%, rgba(255,126,75,.72) 48%, transparent 76%) !important;
  clip-path: polygon(0 22%, 74% 0, 100% 50%, 74% 100%, 0 78%);
  filter: blur(1px) !important;
  animation: simpleMuzzle .42s ease-out 2 !important;
}
@keyframes simpleMuzzle {
  0% { opacity: 0; transform: translateX(-22px) scale(.45); }
  20% { opacity: 1; transform: translateX(0) scale(1.12); }
  100% { opacity: 0; transform: translateX(66px) scale(.35); }
}
.simple-reveal-live .screen-flash.flash-fire {
  animation: simpleFlash .7s ease-out forwards !important;
}
@keyframes simpleFlash {
  0% { opacity: 0; }
  14% { opacity: .78; }
  38% { opacity: .14; }
  100% { opacity: 0; }
}
.simple-reveal-live .final-reveal {
  z-index: 20 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(14px, 2vh, 26px) !important;
  padding: 4vh 4vw !important;
  text-align: center;
}
.simple-reveal-live .final-reveal .banner {
  order: 2;
  font-size: clamp(1.4rem, 3vw, 3.4rem) !important;
  letter-spacing: .13em !important;
  text-transform: uppercase;
  opacity: .86;
  color: white;
  text-shadow: 0 8px 28px rgba(0,0,0,.22) !important;
}
.simple-reveal-live .final-reveal .result-text {
  order: 1;
  font-size: clamp(6.5rem, 17vw, 19rem) !important;
  line-height: .78 !important;
  color: white !important;
  text-transform: none !important;
  text-shadow: 0 8px 34px rgba(0,0,0,.2), 0 0 70px rgba(255,255,255,.45) !important;
}
.simple-reveal-live .final-reveal .envelope-button {
  order: 3;
  position: absolute;
  bottom: 5vh;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.5);
  color: white;
  backdrop-filter: blur(12px);
}
.simple-reveal-live .final-reveal-enter .result-text {
  animation: simpleHeroReveal .82s cubic-bezier(.1,1,.15,1) both !important;
}
.simple-reveal-live .final-reveal-enter .banner {
  animation: simpleBannerIn .65s ease .32s both !important;
}
@keyframes simpleHeroReveal {
  0% { opacity: 0; transform: translateY(18px) scale(.62); filter: blur(14px); }
  55% { opacity: 1; transform: translateY(-6px) scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes simpleBannerIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: .86; transform: translateY(0); }
}
.simple-reveal-live.results-open .final-reveal { opacity: .14; filter: blur(7px); }

@media (max-width: 900px) {
  .simple-reveal-live .cannon { width: 250px !important; height: 180px !important; bottom: 5% !important; }
  .simple-reveal-live .cannon-left { left: -10% !important; transform: rotate(-13deg) scale(.78) !important; }
  .simple-reveal-live .cannon-right { right: -10% !important; transform: scaleX(-1) rotate(-13deg) scale(.78) !important; }
  .simple-reveal-live .final-reveal .result-text { font-size: clamp(4.6rem, 18vw, 8rem) !important; }
}

/* V7 targeted polish: cleaner cannons, slower countdown, text sequence, delayed congratulations. */
.simple-reveal-live .suspense-text.its-a-line {
  top: 9.5% !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: clamp(2.2rem, 4.4vw, 5.2rem) !important;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(34,23,40,.88);
  text-shadow: 0 2px 0 rgba(255,255,255,.4), 0 12px 34px rgba(0,0,0,.12) !important;
}

.simple-reveal-live .countdown {
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 900;
}
.count-simple-change {
  animation: countSimpleChangeV7 .28s ease-out both !important;
}
@keyframes countSimpleChangeV7 {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Replace the gold/cartoon carriage with a darker, more premium cannon base. */
.simple-reveal-live .cannon-body {
  background: linear-gradient(145deg, #6f7484 0%, #3c4050 50%, #191b25 100%) !important;
  border: 2px solid rgba(255,255,255,.18) !important;
  box-shadow: inset 0 10px 18px rgba(255,255,255,.16), inset 0 -18px 24px rgba(0,0,0,.38), 0 18px 26px rgba(0,0,0,.18) !important;
}
.simple-reveal-live .cannon-body::after {
  content: "";
  position: absolute;
  inset: 18% 16%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,143,197,.55), rgba(127,197,255,.55));
  opacity: .9;
  filter: blur(.2px);
}
.simple-reveal-live .cannon-wheel {
  background: radial-gradient(circle at 38% 32%, #9298a8 0%, #4a5060 48%, #171923 100%) !important;
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: inset 0 6px 8px rgba(255,255,255,.18), inset 0 -10px 14px rgba(0,0,0,.34), 0 8px 16px rgba(0,0,0,.20) !important;
}
.simple-reveal-live .cannon-wheel::after {
  background: radial-gradient(circle, #e8edf5 0 12%, #303442 13% 100%) !important;
}
.simple-reveal-live .cannon-fuse {
  background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(80,84,98,.95)) !important;
}

/* Make Girl/Boy the only hero word; Congratulations follows as secondary. */
.simple-reveal-live .final-reveal {
  padding-top: 16vh !important;
}
.simple-reveal-live .final-reveal .result-text {
  font-size: clamp(8rem, 22vw, 24rem) !important;
  line-height: .76 !important;
  letter-spacing: -.045em;
  text-transform: none !important;
}
.simple-reveal-live .final-reveal .banner {
  order: 2;
  margin-top: clamp(4px, 1.2vh, 16px);
  opacity: 0;
  font-size: clamp(1.35rem, 2.7vw, 3rem) !important;
}
.simple-reveal-live .final-reveal-enter .result-text {
  animation: simpleHeroRevealV7 .78s cubic-bezier(.1,1,.15,1) both !important;
}
.simple-reveal-live .final-reveal-enter .banner {
  animation: simpleBannerInV7 .72s ease .95s both !important;
}
@keyframes simpleHeroRevealV7 {
  0% { opacity: 0; transform: translateY(16px) scale(.52); filter: blur(15px); }
  48% { opacity: 1; transform: translateY(-8px) scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes simpleBannerInV7 {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: .88; transform: translateY(0); }
}

@media (max-width: 900px) {
  .simple-reveal-live .final-reveal .result-text { font-size: clamp(5.8rem, 22vw, 10rem) !important; }
}


/* V8 final polish: softer hero typography, premium party-popper launchers, white "It's A", smoother cadence. */
.simple-reveal-live .suspense-text.its-a-line {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 8px 34px rgba(0,0,0,.32), 0 0 28px rgba(255,255,255,.22) !important;
}

.simple-reveal-live .countdown {
  transition: opacity .18s ease, transform .18s ease;
}

/* Party-popper style launchers replacing the heavy cannon look. */
.simple-reveal-live .cannon {
  width: 260px !important;
  height: 210px !important;
  bottom: 7.5% !important;
  filter: drop-shadow(0 22px 28px rgba(37, 19, 45, .28));
}

.simple-reveal-live .cannon-left {
  left: 6.5% !important;
  transform: rotate(-22deg) !important;
}

.simple-reveal-live .cannon-right {
  right: 6.5% !important;
  transform: scaleX(-1) rotate(-22deg) !important;
}

.simple-reveal-live .cannon-shadow {
  width: 170px !important;
  height: 26px !important;
  left: 42px !important;
  bottom: 0 !important;
  opacity: .45;
}

.simple-reveal-live .cannon-body {
  left: 76px !important;
  bottom: 32px !important;
  width: 86px !important;
  height: 112px !important;
  border-radius: 22px 22px 18px 18px !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.58), transparent 24%, transparent 76%, rgba(0,0,0,.12)),
    repeating-linear-gradient(135deg, #ffffff 0 18px, #ffd6e8 18px 34px, #d8efff 34px 50px, #ffffff 50px 66px) !important;
  border: 3px solid rgba(255,255,255,.9) !important;
  box-shadow: inset 0 0 0 1px rgba(60, 20, 75, .08), 0 15px 32px rgba(36,18,52,.28) !important;
  transform: rotate(-8deg) !important;
}

.simple-reveal-live .cannon-body::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -14px;
  height: 20px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #fff, #f7f3ff);
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: inset 0 -4px 10px rgba(78, 39, 88, .14);
}

.simple-reveal-live .cannon-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 16px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb, #ffe1f0 48%, #cceaff);
  box-shadow: 0 0 18px rgba(255,255,255,.5);
}

.simple-reveal-live .cannon-barrel {
  left: 86px !important;
  top: 18px !important;
  width: 58px !important;
  height: 112px !important;
  border-radius: 50% 50% 18px 18px !important;
  background:
    radial-gradient(ellipse at 50% 12%, #ffffff 0 22%, #f8f2ff 23% 46%, rgba(70, 34, 85, .18) 47% 54%, transparent 55%),
    linear-gradient(180deg, #ffffff, #f8f0ff 45%, #f1d7ef) !important;
  border: 3px solid rgba(255,255,255,.95) !important;
  box-shadow: inset 0 -14px 18px rgba(72,36,88,.12), 0 12px 26px rgba(40, 22, 55, .18) !important;
  transform: rotate(0deg) !important;
}

.simple-reveal-live .cannon-rim {
  left: 50% !important;
  right: auto !important;
  top: -9px !important;
  transform: translateX(-50%) !important;
  width: 76px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse at center, #fff 0 36%, #f5e8ff 38% 62%, rgba(80,36,92,.22) 64% 100%) !important;
  border: 2px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,.16), 0 10px 18px rgba(37,18,50,.2) !important;
}

.simple-reveal-live .cannon-wheel,
.simple-reveal-live .cannon-fuse {
  display: none !important;
}

.simple-reveal-live .cannon-fire {
  animation: partyPopKick .42s cubic-bezier(.12,.9,.18,1) 2 !important;
}

.simple-reveal-live .cannon-right.cannon-fire {
  animation: partyPopKickRight .42s cubic-bezier(.12,.9,.18,1) 2 !important;
}

.simple-reveal-live .cannon-fire .cannon-rim::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.96) 0 18%, rgba(255,220,245,.82) 28%, rgba(125,205,255,.5) 48%, transparent 72%);
  filter: blur(1px);
  animation: popFlash .48s ease-out forwards;
}

.simple-reveal-live .final-reveal .result-text {
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: .015em !important;
  text-transform: none !important;
  font-size: clamp(7.2rem, 20vw, 15rem) !important;
  line-height: .86 !important;
  text-shadow: 0 12px 44px rgba(30, 7, 38, .34), 0 0 36px rgba(255,255,255,.35) !important;
}

.simple-reveal-live .final-reveal-enter .result-text {
  animation: resultV8ElegantIn 1.05s cubic-bezier(.1,1,.15,1) both !important;
}

.simple-reveal-live .final-reveal-enter .banner {
  animation: bannerV8AfterWord .85s cubic-bezier(.16,.92,.2,1) .88s both !important;
}

@keyframes resultV8ElegantIn {
  0% { opacity: 0; transform: translateY(22px) scale(.88); filter: blur(10px); }
  52% { opacity: 1; transform: translateY(-2px) scale(1.035); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes bannerV8AfterWord {
  from { opacity: 0; transform: translateY(-14px) scale(.98); filter: blur(8px); }
  to { opacity: .96; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes partyPopKick {
  0%, 100% { transform: rotate(-22deg) translateY(0) scale(1); }
  38% { transform: rotate(-28deg) translate(-10px, 8px) scale(1.025); }
}

@keyframes partyPopKickRight {
  0%, 100% { transform: scaleX(-1) rotate(-22deg) translateY(0) scale(1); }
  38% { transform: scaleX(-1) rotate(-28deg) translate(-10px, 8px) scale(1.025); }
}

@keyframes popFlash {
  0% { opacity: 0; transform: translateX(-50%) scale(.3); }
  28% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.45); }
}

@media (max-width: 760px) {
  .simple-reveal-live .cannon { width: 210px !important; height: 170px !important; bottom: 6% !important; }
  .simple-reveal-live .cannon-left { left: -12% !important; transform: rotate(-22deg) scale(.78) !important; }
  .simple-reveal-live .cannon-right { right: -12% !important; transform: scaleX(-1) rotate(-22deg) scale(.78) !important; }
  .simple-reveal-live .final-reveal .result-text { font-size: clamp(6rem, 24vw, 10rem) !important; }
}

/* V9 final launcher choice: elegant matte party poppers.
   These overrides intentionally keep the existing .cannon class names so no HTML/Firebase logic changes are needed. */
.simple-reveal-live .cannon {
  width: 300px !important;
  height: 220px !important;
  bottom: 5.5% !important;
  filter: drop-shadow(0 24px 30px rgba(44, 22, 52, .26));
}

.simple-reveal-live .cannon-left {
  left: 4.8% !important;
  transform: rotate(-31deg) !important;
}

.simple-reveal-live .cannon-right {
  right: 4.8% !important;
  transform: scaleX(-1) rotate(-31deg) !important;
}

.simple-reveal-live .cannon-shadow {
  left: 54px !important;
  bottom: 6px !important;
  width: 190px !important;
  height: 28px !important;
  opacity: .34 !important;
  background: rgba(54, 28, 64, .46) !important;
  filter: blur(12px) !important;
}

/* Main popper tube */
.simple-reveal-live .cannon-body {
  left: 88px !important;
  bottom: 22px !important;
  width: 86px !important;
  height: 168px !important;
  border-radius: 44px 44px 26px 26px !important;
  transform: rotate(0deg) !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.66), rgba(255,255,255,.08) 30%, rgba(0,0,0,.10) 82%, rgba(0,0,0,.18)),
    repeating-linear-gradient(145deg, #fffdf8 0 22px, #ffe0ef 22px 42px, #dff1ff 42px 62px, #fffdf8 62px 82px) !important;
  border: 3px solid rgba(255,255,255,.94) !important;
  box-shadow:
    inset 0 0 0 1px rgba(82, 35, 92, .08),
    inset 0 -18px 24px rgba(63, 28, 72, .10),
    0 18px 34px rgba(40, 20, 54, .26) !important;
}

/* Metallic bottom band */
.simple-reveal-live .cannon-body::before {
  content: "" !important;
  position: absolute !important;
  left: -4px !important;
  right: -4px !important;
  bottom: -6px !important;
  top: auto !important;
  height: 38px !important;
  border-radius: 0 0 30px 30px !important;
  background: linear-gradient(90deg, #fff3bf, #d6a947 38%, #fff0a8 58%, #a97824) !important;
  border: 2px solid rgba(255,255,255,.78) !important;
  box-shadow: inset 0 7px 10px rgba(255,255,255,.42), inset 0 -9px 12px rgba(77, 47, 12, .22) !important;
}

/* Small centre label, premium but not busy */
.simple-reveal-live .cannon-body::after {
  content: "Boy or Girl?" !important;
  position: absolute !important;
  left: 50% !important;
  top: 48% !important;
  width: 74px !important;
  height: auto !important;
  transform: translate(-50%, -50%) rotate(90deg) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "DM Serif Display", Georgia, serif !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: rgba(44, 24, 54, .56) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Open top/nozzle */
.simple-reveal-live .cannon-barrel {
  left: 82px !important;
  top: 8px !important;
  width: 98px !important;
  height: 38px !important;
  border-radius: 50% !important;
  transform: none !important;
  background: radial-gradient(ellipse at center, #fff 0 30%, #f9edf8 31% 58%, rgba(79, 35, 90, .24) 59% 100%) !important;
  border: 3px solid rgba(255,255,255,.92) !important;
  box-shadow: 0 0 0 8px rgba(255,255,255,.14), 0 11px 18px rgba(43, 20, 54, .19), inset 0 -4px 9px rgba(81, 37, 90, .14) !important;
}

.simple-reveal-live .cannon-rim {
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  width: 58px !important;
  height: 19px !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse at center, rgba(34, 19, 41, .28) 0 32%, rgba(255,255,255,.6) 34% 100%) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.14) !important;
}

/* Remove old cannon details completely. */
.simple-reveal-live .cannon-wheel,
.simple-reveal-live .cannon-fuse {
  display: none !important;
}

/* A few subtle preloaded ribbon tips so the poppers don't look like empty props. */
.simple-reveal-live .cannon::before,
.simple-reveal-live .cannon::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 1px;
  width: 14px;
  height: 58px;
  border-radius: 999px;
  opacity: .88;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 5px 7px rgba(45, 20, 55, .13));
}

.simple-reveal-live .cannon::before {
  left: 112px;
  background: linear-gradient(180deg, #ff7fbd, #ffd3e8);
  transform: rotate(-26deg);
}

.simple-reveal-live .cannon::after {
  left: 140px;
  background: linear-gradient(180deg, #72c2ff, #dff1ff);
  transform: rotate(24deg);
}

.simple-reveal-live .cannon-fire {
  animation: partyPopKickV9 .38s cubic-bezier(.12,.9,.18,1) 2 !important;
}

.simple-reveal-live .cannon-right.cannon-fire {
  animation: partyPopKickRightV9 .38s cubic-bezier(.12,.9,.18,1) 2 !important;
}

.simple-reveal-live .cannon-fire .cannon-rim::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: -48px !important;
  width: 126px !important;
  height: 126px !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255,255,255,1) 0 13%, rgba(255,236,159,.94) 14% 27%, rgba(255,128,190,.64) 38%, rgba(103,198,255,.48) 52%, transparent 73%) !important;
  filter: blur(.7px) !important;
  animation: popFlashV9 .42s ease-out forwards !important;
}

@keyframes partyPopKickV9 {
  0%, 100% { transform: rotate(-31deg) translateY(0) scale(1); }
  34% { transform: rotate(-36deg) translate(-14px, 11px) scale(1.018); }
}

@keyframes partyPopKickRightV9 {
  0%, 100% { transform: scaleX(-1) rotate(-31deg) translateY(0) scale(1); }
  34% { transform: scaleX(-1) rotate(-36deg) translate(-14px, 11px) scale(1.018); }
}

@keyframes popFlashV9 {
  0% { opacity: 0; transform: translateX(-50%) scale(.25); }
  22% { opacity: 1; transform: translateX(-50%) scale(1.03); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.55); }
}

@media (max-width: 760px) {
  .simple-reveal-live .cannon { width: 235px !important; height: 180px !important; bottom: 5.5% !important; }
  .simple-reveal-live .cannon-left { left: -8% !important; transform: rotate(-31deg) scale(.78) !important; }
  .simple-reveal-live .cannon-right { right: -8% !important; transform: scaleX(-1) rotate(-31deg) scale(.78) !important; }
}

/* V10 balloon reveal: replace party poppers with two elegant white balloons that rise, pop, then reveal. */
.simple-reveal-live .balloon-wrap {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 8 !important;
}

.simple-reveal-live .balloon,
.simple-reveal-live .cannon.balloon {
  position: absolute !important;
  bottom: 6vh !important;
  width: clamp(150px, 15vw, 250px) !important;
  height: clamp(245px, 25vw, 390px) !important;
  opacity: 1 !important;
  transform-origin: 50% 82% !important;
  filter: drop-shadow(0 24px 30px rgba(45, 20, 55, .24)) !important;
  animation: balloonIdleV10 4.8s ease-in-out infinite !important;
}

.simple-reveal-live .balloon-left,
.simple-reveal-live .cannon.balloon-left {
  left: clamp(28px, 7vw, 130px) !important;
  transform: none !important;
}

.simple-reveal-live .balloon-right,
.simple-reveal-live .cannon.balloon-right {
  right: clamp(28px, 7vw, 130px) !important;
  transform: none !important;
}

.simple-reveal-live .balloon::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  width: clamp(135px, 13.4vw, 225px) !important;
  height: clamp(170px, 17vw, 280px) !important;
  transform: translateX(-50%) !important;
  border-radius: 52% 52% 48% 48% / 46% 46% 56% 56% !important;
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,1) 0 10%, rgba(255,255,255,.82) 11% 20%, transparent 21%),
    radial-gradient(circle at 56% 74%, rgba(255,255,255,.78), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, #ffffff 0%, #fff7fb 42%, #edf6ff 70%, #d9e9f4 100%) !important;
  border: 2px solid rgba(255,255,255,.88) !important;
  box-shadow:
    inset -18px -28px 34px rgba(80, 55, 95, .13),
    inset 18px 24px 32px rgba(255,255,255,.82),
    0 26px 46px rgba(50, 25, 62, .23) !important;
}

.simple-reveal-live .balloon-shine {
  position: absolute !important;
  left: 30% !important;
  top: 14% !important;
  width: 22% !important;
  height: 16% !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.78) !important;
  filter: blur(1px) !important;
  transform: rotate(-22deg) !important;
  z-index: 2 !important;
}

.simple-reveal-live .balloon-knot {
  position: absolute !important;
  left: 50% !important;
  top: clamp(160px, 15.9vw, 266px) !important;
  width: 34px !important;
  height: 26px !important;
  transform: translateX(-50%) rotate(45deg) !important;
  border-radius: 7px 14px 9px 14px !important;
  background: linear-gradient(145deg, #fff, #dfeaf4) !important;
  box-shadow: inset -5px -5px 8px rgba(70, 45, 88, .12) !important;
  z-index: 3 !important;
}

.simple-reveal-live .balloon-string {
  position: absolute !important;
  left: 50% !important;
  top: clamp(185px, 18vw, 300px) !important;
  width: 2px !important;
  height: clamp(82px, 8vw, 132px) !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(52, 34, 62, .26)) !important;
  border-radius: 999px !important;
  opacity: .78 !important;
}

.simple-reveal-live .balloon-string::after {
  content: "" !important;
  position: absolute !important;
  left: -9px !important;
  top: 40% !important;
  width: 20px !important;
  height: 44px !important;
  border-left: 2px solid rgba(52, 34, 62, .25) !important;
  border-radius: 50% !important;
  transform: rotate(12deg) !important;
}

/* Remove every leftover cannon/popper visual on balloon elements. */
.simple-reveal-live .balloon .cannon-shadow,
.simple-reveal-live .balloon .cannon-body,
.simple-reveal-live .balloon .cannon-barrel,
.simple-reveal-live .balloon .cannon-rim,
.simple-reveal-live .balloon .cannon-wheel,
.simple-reveal-live .balloon .cannon-fuse,
.simple-reveal-live .balloon::after {
  display: none !important;
  content: none !important;
}

.simple-reveal-live .balloons-rise .balloon-left {
  animation: balloonRiseLeftV10 1.65s cubic-bezier(.24,.76,.16,1) forwards !important;
}

.simple-reveal-live .balloons-rise .balloon-right {
  animation: balloonRiseRightV10 1.65s cubic-bezier(.24,.76,.16,1) forwards !important;
}

.simple-reveal-live .balloon-pop {
  filter: drop-shadow(0 28px 34px rgba(45, 20, 55, .18)) !important;
}

.simple-reveal-live .balloon-pop::before,
.simple-reveal-live .balloon-pop .balloon-shine,
.simple-reveal-live .balloon-pop .balloon-knot,
.simple-reveal-live .balloon-pop .balloon-string {
  animation: balloonDisappearV10 .2s ease-out forwards !important;
}

.simple-reveal-live .balloon-pop::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 22% !important;
  width: clamp(190px, 18vw, 330px) !important;
  height: clamp(190px, 18vw, 330px) !important;
  transform: translate(-50%, -50%) scale(.2) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255,255,255,1) 0 10%, rgba(255,236,159,.86) 12% 22%, rgba(255,128,190,.58) 34%, rgba(103,198,255,.48) 50%, transparent 72%) !important;
  filter: blur(.6px) !important;
  animation: balloonPopFlashV10 .48s ease-out forwards !important;
}

.simple-reveal-live .balloon-pop .balloon-knot,
.simple-reveal-live .balloon-pop .balloon-string {
  animation-duration: .1s !important;
}

.simple-reveal-live .suspense-text.its-a-line {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 8px 32px rgba(0,0,0,.22), 0 0 40px rgba(255,255,255,.36) !important;
}

.simple-reveal-live .countdown {
  transition: opacity .2s ease !important;
}

.simple-reveal-live .final-reveal-enter .result-text {
  animation: balloonHeroRevealV10 1.05s cubic-bezier(.1,1,.15,1) both !important;
}

.simple-reveal-live .final-reveal-enter .banner {
  animation: simpleBannerIn .72s ease .52s both !important;
}

@keyframes balloonIdleV10 {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes balloonRiseLeftV10 {
  0% { transform: translateY(0) translateX(0) rotate(-2deg); }
  100% { transform: translateY(-68vh) translateX(5vw) rotate(4deg); }
}

@keyframes balloonRiseRightV10 {
  0% { transform: translateY(0) translateX(0) rotate(2deg); }
  100% { transform: translateY(-68vh) translateX(-5vw) rotate(-4deg); }
}

@keyframes balloonDisappearV10 {
  to { opacity: 0; transform: scale(.72); filter: blur(4px); }
}

@keyframes balloonPopFlashV10 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.22); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.72); }
}

@keyframes balloonHeroRevealV10 {
  0% { opacity: 0; transform: translateY(22px) scale(.78); filter: blur(12px); letter-spacing: .05em; }
  58% { opacity: 1; transform: translateY(-4px) scale(1.045); filter: blur(0); letter-spacing: .015em; }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: .01em; }
}

@media (max-width: 760px) {
  .simple-reveal-live .balloon,
  .simple-reveal-live .cannon.balloon {
    bottom: 7vh !important;
    width: 150px !important;
    height: 260px !important;
  }

  .simple-reveal-live .balloon-left { left: -8px !important; }
  .simple-reveal-live .balloon-right { right: -8px !important; }
}

/* V11 balloon motion + stronger reveal impact. */
.simple-reveal-live .balloon-wrap {
  overflow: visible !important;
}

.simple-reveal-live .balloon,
.simple-reveal-live .cannon.balloon {
  bottom: -5vh !important;
  will-change: transform, opacity, filter !important;
  animation: balloonIdleV11 4.8s ease-in-out infinite !important;
}

.simple-reveal-live .balloon-left,
.simple-reveal-live .cannon.balloon-left {
  transform: translate3d(0, 0, 0) rotate(-2deg) !important;
}

.simple-reveal-live .balloon-right,
.simple-reveal-live .cannon.balloon-right {
  transform: translate3d(0, 0, 0) rotate(2deg) !important;
}

.simple-reveal-live .balloon-left.balloon-rise-active,
.simple-reveal-live .cannon.balloon-left.balloon-rise-active {
  animation: balloonRiseLeftV11 2.05s cubic-bezier(.19,.86,.18,1) forwards !important;
}

.simple-reveal-live .balloon-right.balloon-rise-active,
.simple-reveal-live .cannon.balloon-right.balloon-rise-active {
  animation: balloonRiseRightV11 2.05s cubic-bezier(.19,.86,.18,1) forwards !important;
}

.simple-reveal-live .balloon-pop::before,
.simple-reveal-live .balloon-pop .balloon-shine,
.simple-reveal-live .balloon-pop .balloon-knot,
.simple-reveal-live .balloon-pop .balloon-string {
  animation: balloonDisappearV11 .18s ease-out forwards !important;
}

.simple-reveal-live .balloon-pop::after {
  width: clamp(260px, 25vw, 460px) !important;
  height: clamp(260px, 25vw, 460px) !important;
  background:
    radial-gradient(circle, rgba(255,255,255,1) 0 9%, rgba(255,245,192,.98) 10% 20%, rgba(255,128,190,.72) 32%, rgba(103,198,255,.60) 48%, transparent 74%) !important;
  filter: blur(.3px) drop-shadow(0 0 24px rgba(255,255,255,.55)) !important;
  animation: balloonPopFlashV11 .68s ease-out forwards !important;
}

.simple-reveal-live.balloon-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 15%, rgba(255,255,255,.92), rgba(255,255,255,.22) 16%, transparent 35%),
    radial-gradient(circle at 78% 15%, rgba(255,255,255,.92), rgba(255,255,255,.22) 16%, transparent 35%),
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.82), rgba(255,255,255,.20) 22%, transparent 55%);
  animation: revealImpactFlashV11 .95s ease-out forwards;
}

.simple-reveal-live .screen-flash.flash-fire {
  animation: screenFlashV11 .82s ease-out forwards !important;
}

.simple-reveal-live .cinematic-bloom.bloom-fire {
  opacity: 1 !important;
  animation: bloomFireV11 1.1s ease-out forwards !important;
}

.simple-reveal-live .impact-ripple.ripple-fire {
  opacity: 1 !important;
  animation: rippleFireV11 .9s ease-out forwards !important;
}

.simple-reveal-live .final-reveal-enter .result-text {
  animation: balloonHeroRevealV11 1.18s cubic-bezier(.08,1,.13,1) both !important;
}

@keyframes balloonIdleV11 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--balloon-tilt, 0deg)); }
  50% { transform: translate3d(0, -7px, 0) rotate(var(--balloon-tilt, 0deg)); }
}

@keyframes balloonRiseLeftV11 {
  0% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
  22% { transform: translate3d(1vw, -13vh, 0) rotate(1deg) scale(1.01); }
  58% { transform: translate3d(4vw, -43vh, 0) rotate(-3deg) scale(1.015); }
  100% { transform: translate3d(6vw, -72vh, 0) rotate(3deg) scale(1.02); }
}

@keyframes balloonRiseRightV11 {
  0% { transform: translate3d(0, 0, 0) rotate(2deg) scale(1); }
  22% { transform: translate3d(-1vw, -13vh, 0) rotate(-1deg) scale(1.01); }
  58% { transform: translate3d(-4vw, -43vh, 0) rotate(3deg) scale(1.015); }
  100% { transform: translate3d(-6vw, -72vh, 0) rotate(-3deg) scale(1.02); }
}

@keyframes balloonDisappearV11 {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.42); filter: blur(7px); }
}

@keyframes balloonPopFlashV11 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.15); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(.92); }
  52% { opacity: .72; transform: translate(-50%, -50%) scale(1.28); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.95); }
}

@keyframes revealImpactFlashV11 {
  0% { opacity: 0; transform: scale(.98); }
  12% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

@keyframes screenFlashV11 {
  0% { opacity: 0; }
  12% { opacity: .92; }
  100% { opacity: 0; }
}

@keyframes bloomFireV11 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  24% { opacity: .85; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.85); }
}

@keyframes rippleFireV11 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.28); }
  20% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}

@keyframes balloonHeroRevealV11 {
  0% { opacity: 0; transform: translateY(30px) scale(.62); filter: blur(14px); letter-spacing: .06em; }
  42% { opacity: 1; transform: translateY(-8px) scale(1.08); filter: blur(0); letter-spacing: .018em; }
  70% { transform: translateY(2px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: .01em; }
}

@media (max-width: 760px) {
  .simple-reveal-live .balloon,
  .simple-reveal-live .cannon.balloon {
    bottom: -3vh !important;
  }
}

/* ─── Patches ─────────────────────────────────────────────────────────────── */

/* Offline warning banner */
.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(220, 38, 38, .92);
  color: white;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  padding: 10px 18px;
  backdrop-filter: blur(6px);
  letter-spacing: .02em;
}

/* Reveal button fade-in (was an abrupt pop) */
.primary-btn.btn-fade-in {
  animation: revealBtnAppear .55s cubic-bezier(.16,.92,.2,1) both;
}
@keyframes revealBtnAppear {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Inline reset confirmation (replaces window.confirm) */
.reset-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reset-confirm-card {
  width: min(420px, 88vw);
  border-radius: 26px;
  padding: 32px 28px 24px;
  text-align: center;
  background: rgba(255,255,255,.92);
  color: #1d1421;
}
.reset-confirm-card p {
  margin: 0 0 22px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.reset-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.reset-confirm-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
}
.reset-confirm-yes {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.reset-confirm-no {
  background: rgba(29,20,33,.10);
  color: #1d1421;
}

/* Vote-closed card on vote.html */
.voting-closed-card {
  border-radius: 28px;
  padding: 34px 24px;
  text-align: center;
  background: rgba(255,255,255,.52);
}
.voting-closed-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}
.voting-closed-card p {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}
.voting-closed-sub {
  opacity: .72;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

/* ─── Balloon animation fixes ─────────────────────────────────────────────── */

/* Rise animations must hold their end position (forwards) so balloons
   don't snap back to the bottom after reaching the top. */
.simple-reveal-live .balloon-left.balloon-rise-active,
.simple-reveal-live .cannon.balloon-left.balloon-rise-active {
  animation: balloonRiseLeftV11 2.05s cubic-bezier(.19,.86,.18,1) forwards !important;
}

.simple-reveal-live .balloon-right.balloon-rise-active,
.simple-reveal-live .cannon.balloon-right.balloon-rise-active {
  animation: balloonRiseRightV11 2.05s cubic-bezier(.19,.86,.18,1) forwards !important;
}

/* After pop, hide the entire balloon element so it can't reappear. */
.simple-reveal-live .balloon-pop {
  animation: balloonHideAfterPop .18s ease-out .48s forwards !important;
}

@keyframes balloonHideAfterPop {
  to { opacity: 0; visibility: hidden; }
}

/* ─── Balloon rise v2 — smooth helium float ───────────────────────────────── */

/* Override ALL previous rise animations with a single smooth upward motion.
   No intermediate keyframe stops, no competing translate axes.
   ease-in gives a natural slow-start drift, like a released helium balloon. */

.simple-reveal-live .balloon-left.balloon-rise-active,
.simple-reveal-live .cannon.balloon-left.balloon-rise-active {
  animation: balloonSmoothRiseLeft 3.2s cubic-bezier(.22,.04,.36,1) forwards !important;
}

.simple-reveal-live .balloon-right.balloon-rise-active,
.simple-reveal-live .cannon.balloon-right.balloon-rise-active {
  animation: balloonSmoothRiseRight 3.2s cubic-bezier(.22,.04,.36,1) forwards !important;
}

@keyframes balloonSmoothRiseLeft {
  from { transform: translateY(0)      rotate(-2deg); }
  to   { transform: translateY(-110vh) rotate(3deg);  }
}

@keyframes balloonSmoothRiseRight {
  from { transform: translateY(0)      rotate(2deg);  }
  to   { transform: translateY(-110vh) rotate(-3deg); }
}
