:root {
  color-scheme: dark;
  --night: #10091e;
  --purple: #7a36ff;
  --pink: #ff3d9a;
  --yellow: #ffe45c;
  --white: #fffafc;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
button, video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.app-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(127, 53, 255, .25), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(255, 61, 154, .15), transparent 45%),
    var(--night);
}
.screen {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  text-align: center;
  animation: screen-in .7s cubic-bezier(.2,.8,.2,1) both;
}
.screen-intro { padding: 20px 8px; }
.intro-glow {
  position: absolute;
  z-index: -1;
  width: 260px; height: 260px;
  left: 50%; top: 47%;
  border-radius: 50%;
  background: rgba(126, 56, 255, .21);
  filter: blur(65px);
  transform: translate(-50%, -50%);
  animation: glow-pulse 3.6s ease-in-out infinite;
}
.eyebrow, .video-label, .countdown-kicker, .off-kicker {
  margin: 0 0 18px;
  color: #d5bfff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .24em;
}
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 15vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 950;
  text-wrap: balance;
}
h1 span {
  color: var(--yellow);
  text-shadow: 0 0 30px rgba(255, 228, 92, .35);
}
.intro-copy {
  max-width: 340px;
  margin: 24px auto 30px;
  color: #e1d8ec;
  font-size: clamp(1rem, 4vw, 1.17rem);
  line-height: 1.55;
}
.action-button {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  border-radius: 999px;
  padding: 17px 25px;
  color: #190c25;
  background: linear-gradient(105deg, var(--yellow), #ffb84a);
  box-shadow: 0 8px 32px rgba(255, 193, 71, .28), inset 0 1px 0 rgba(255,255,255,.7);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: button-breathe 2.4s ease-in-out infinite;
}
.action-button:hover { transform: translateY(-2px) scale(1.025); box-shadow: 0 12px 38px rgba(255,193,71,.4); }
.action-button:active { transform: scale(.97); }
.action-button:focus-visible { outline: 3px solid white; outline-offset: 5px; }
.button-arrow { font-size: 1.35rem; line-height: 1; }
.status-message { min-height: 1.4em; margin: 16px 0 0; color: #ffb7d5; font-size: .9rem; }
.sparkle { position: absolute; color: var(--pink); animation: twinkle 2.2s ease-in-out infinite; }
.sparkle-one { top: 11%; right: 9%; font-size: 2rem; }
.sparkle-two { bottom: 12%; left: 7%; color: var(--yellow); font-size: 2.5rem; animation-delay: .8s; }
.screen-video { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.video-label { margin: 0 0 2px; }
.video-frame {
  position: relative;
  width: min(82vw, 430px);
  height: min(70svh, 760px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 28px;
  background: #050308;
  box-shadow: 0 18px 70px rgba(124, 45, 255, .26), 0 0 0 5px rgba(255,255,255,.035);
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.video-frame video {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.video-shield { position: absolute; inset: 0; z-index: 2; pointer-events: auto; touch-action: none; }
.video-caption { margin: 4px 0 0; color: #c8bcd4; font-size: .9rem; }
.screen-countdown { display: grid; justify-items: center; gap: 14px; }
.countdown-kicker { margin: 0; color: var(--yellow); }
.countdown-number {
  display: grid;
  width: min(58vw, 260px); aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle, rgba(255,61,154,.4), rgba(122,54,255,.12) 68%, transparent 70%);
  font-size: clamp(7rem, 32vw, 12rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 40px var(--pink);
  animation: count-pop .95s cubic-bezier(.15,.8,.3,1) both;
}
.countdown-copy { margin: 0; color: #e1d8ec; font-size: 1.05rem; }
.screen-off { overflow: visible; }
.screen-off h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
.screen-off > p:last-child { color: #e1d8ec; font-size: 1.05rem; }
.off-kicker { color: #ff9bc5; }
.blast {
  position: absolute;
  z-index: -1;
  top: 50%; left: 50%;
  width: min(95vw, 560px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9bd 0 3%, #ffde4a 4% 11%, #ff762f 19%, #ff3d9a 33%, rgba(122,54,255,.52) 53%, transparent 70%);
  transform: translate(-50%, -50%) scale(.01);
  opacity: 0;
  animation: blast 1.3s .08s ease-out forwards;
}
.particles { position: absolute; inset: -30vh -20vw; z-index: -1; pointer-events: none; }
.particle {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 16px var(--color);
  animation: particle-fly var(--duration) cubic-bezier(.12,.65,.2,1) var(--delay) forwards;
}
body.site-off .app-shell { animation: screen-flash .7s ease-out both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes glow-pulse { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.18); } }
@keyframes button-breathe { 50% { box-shadow: 0 8px 42px rgba(255,193,71,.45), inset 0 1px 0 rgba(255,255,255,.7); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.75) rotate(15deg); } }
@keyframes count-pop { 0% { opacity: 0; transform: scale(1.55); } 65% { opacity: 1; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes blast { 0% { opacity: .95; transform: translate(-50%, -50%) scale(.01); } 55% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } 100% { opacity: .35; transform: translate(-50%, -50%) scale(2.2); } }
@keyframes particle-fly { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); } }
@keyframes screen-flash { 0% { filter: brightness(3); } 100% { filter: brightness(1); } }
@media (max-height: 650px) and (orientation: portrait) {
  .video-frame { height: 64svh; width: min(72vw, 340px); }
  .screen-intro { padding-block: 0; }
  .intro-copy { margin-block: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
