html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
}

.vsl-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.vsl-intro {
  color: #fff;
  text-align: center;
  padding: 0 12px 16px;
}

.vsl-intro h1 {
  font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.video-stage {
  display: flex;
  justify-content: center;
  width: 100%;
}

.video-shell {
  position: relative;
  width: min(100%, calc((100dvh - 158px) * 242 / 422));
  aspect-ratio: 242 / 422;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
  cursor: pointer;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: blur(10px);
  transform: scale(1.04);
  transition: filter .35s ease, transform .35s ease;
}

.video-shell.started video {
  filter: none;
  transform: none;
}

.video-end {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-end[hidden] { display: none; }

.video-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 28px);
  max-width: 300px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 16px;
  background: rgba(0, 0, 0, .77);
  color: #fff;
  text-align: center;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.video-prompt[hidden] { display: none; }

.prompt-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.prompt-icons svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.prompt-icons .sound-icon {
  color: #ffdb70;
  animation: soundPulse 1s ease-in-out infinite;
}

.video-prompt strong {
  font-size: 1rem;
  line-height: 1.3;
}

.video-prompt span:last-child {
  font-size: .88rem;
  line-height: 1.25;
}

@keyframes soundPulse {
  50% { transform: scale(1.18); filter: drop-shadow(0 0 8px #ffdb70); }
}

.donation {
  margin: 16px auto 0;
}

.donation[hidden] {
  display: none !important;
}

.donation.revealed {
  animation: donationDown .55s ease-out both;
}

@keyframes donationDown {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vsl-page.unlocked .vsl-intro { display: none; }
.vsl-page.unlocked .donation { margin-top: 8px; }

.vsl-page.unlocked .video-shell {
  width: min(100%, calc(var(--unlocked-video-height, 42dvh) * 242 / 422));
  height: var(--unlocked-video-height, 42dvh);
  transition: none;
}

@media (max-width: 600px) {
  .vsl-page.unlocked .donation .top { padding: 14px 16px 12px; }
  .vsl-page.unlocked .donation .heart { font-size: 38px; }
  .vsl-page.unlocked .donation .top h1 { font-size: 1.5rem; margin: 5px 0 3px; }
  .vsl-page.unlocked .donation .top p { font-size: .9rem; }
  .vsl-page.unlocked .donation .body { padding: 14px; gap: 9px; }
  .vsl-page.unlocked .donation .pix { padding: 10px; font-size: .94rem; line-height: 1.35; }
  .vsl-page.unlocked .donation .btn { min-height: 54px; padding: 12px 10px; font-size: 1rem; }
  .vsl-page.unlocked .donation .footer { font-size: .8rem; }
}

@media (max-height: 610px) {
  .vsl-intro h1 { font-size: 1.35rem; }
  .vsl-intro { padding-bottom: 10px; }
  .video-shell { width: min(100%, calc((100dvh - 125px) * 242 / 422)); }
}

@media (max-width: 340px) {
  .vsl-page.unlocked .donation .top { padding: 12px 14px 10px; }
  .vsl-page.unlocked .donation .heart { font-size: 34px; }
  .vsl-page.unlocked .donation .top h1 { font-size: 1.35rem; }
  .vsl-page.unlocked .donation .body { padding: 12px; gap: 7px; }
  .vsl-page.unlocked .donation .pix { font-size: .86rem; }
  .vsl-page.unlocked .donation .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-shell { transition: none; }
  .video-prompt .sound-icon, .donation.revealed { animation: none; }
}
