*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

body.sophie-rain {
  position: relative;
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(89, 180, 214, 0.2), transparent 35%),
    linear-gradient(135deg, #07131f, #102c3d 55%, #050b12);
}

body.sophie-rain.auth-locked {
  overflow: hidden;
}

body.sophie-rain .auth-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  visibility: visible;
  opacity: 1;
}

body.sophie-rain .auth-modal.hidden {
  display: none !important;
  visibility: hidden;
  pointer-events: none !important;
}

body.sophie-rain .auth-box {
  position: relative;
  z-index: 2147483647;
  pointer-events: auto;
}

body.sophie-rain::before,
body.sophie-rain::after {
  content: "";
  position: fixed;
  inset: -100px;
  pointer-events: none;
  z-index: 0;
}

body.sophie-rain::before {
  opacity: 0.7;
  background-image:
    linear-gradient(
      112deg,
      transparent 0 48%,
      rgba(190, 235, 255, 0.55) 49%,
      transparent 50%
    ),
    linear-gradient(
      112deg,
      transparent 0 68%,
      rgba(112, 201, 236, 0.4) 69%,
      transparent 70%
    ),
    linear-gradient(
      112deg,
      transparent 0 84%,
      rgba(255, 255, 255, 0.35) 85%,
      transparent 86%
    );
  background-size: 90px 150px, 130px 210px, 180px 280px;
  animation: rainfall 1.2s linear infinite;
}

body.sophie-rain::after {
  opacity: 0.35;
  background:
    radial-gradient(circle at 20% 20%, #8ee8ff 0 1px, transparent 3px),
    radial-gradient(circle at 70% 40%, #8ee8ff 0 1px, transparent 3px),
    radial-gradient(circle at 40% 80%, #8ee8ff 0 1px, transparent 3px);
  background-size: 180px 220px, 240px 280px, 300px 320px;
  animation: rain-glow 3s ease-in-out infinite alternate;
}

body.sophie-rain > * {
  position: relative;
  z-index: 1;
}

body.sophie-rain #main {
  min-height: 100vh;
  padding-bottom: 180px !important;
  background: rgba(3, 14, 24, 0.2);
}

body.sophie-rain header {
  background: rgba(3, 14, 24, 0.72) !important;
  border: 1px solid rgba(142, 232, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.sophie-rain header h1 {
  color: #b9f2ff;
  text-shadow: 0 0 18px rgba(103, 219, 255, 0.8);
}

body.sophie-rain .video-card {
  border-color: rgba(142, 232, 255, 0.45);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(69, 190, 230, 0.18);
}

.title {
  color: #5c6ac4;
}

.video-card {
  box-sizing: border-box;
  max-width: 100%;
}

.promo-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.promo-footer .promo-slide {
  display: none !important;
}

.promo-footer .promo-slide:first-child {
  display: flex !important;
  width: 100%;
  min-height: 78px;
}

.promo-footer .promo-slide:first-child .promo-bubble {
  display: inline-block;
  max-width: calc(100vw - 32px);
  white-space: normal;
  pointer-events: auto;
}

@keyframes rainfall {
  from {
    background-position: 0 -100px, 30px -160px, 70px -240px;
  }

  to {
    background-position: 90px 150px, 160px 210px, 250px 280px;
  }
}

@keyframes rain-glow {
  from {
    transform: translateY(-10px);
  }

  to {
    transform: translateY(20px);
  }
}

body.sophie-rain .flamingo-banner {
  top: -42px !important;
  left: -24px !important;
  width: calc(100% + 48px) !important;
  min-height: 78px;
  padding-left: 4px;
  padding-right: 4px;
  background: transparent;
  border-radius: 0;
  clip-path: none !important;
  isolation: isolate;
  overflow: visible;
  animation: ticket-tear 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 50%;
  background:
    radial-gradient(circle at 14% 25%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 29% 68%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 45% 18%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 67% 78%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 82% 38%, #fff 0 1.5px, transparent 2px),
    linear-gradient(135deg, #ff5b78, #e72d56 55%, #ff879d);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  clip-path: polygon(
    0 0,
    100% 0,
    96% 10%,
    100% 20%,
    96% 30%,
    100% 40%,
    96% 50%,
    100% 60%,
    96% 70%,
    100% 80%,
    96% 90%,
    100% 100%,
    0 100%,
    0 67%,
    4% 50%,
    0 33%
  );
  animation: ticket-left-piece 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 50%;
  background:
    linear-gradient(135deg, transparent 0 86%, rgba(255, 177, 191, 0.75) 87% 100%),
    linear-gradient(135deg, #ff5b78, #e72d56 55%, #ff879d);
  border-radius: 0 17px 17px 0;
  clip-path: polygon(
    0 0,
    94% 0,
    100% 10%,
    96% 20%,
    100% 30%,
    96% 40%,
    100% 50%,
    96% 60%,
    100% 70%,
    96% 80%,
    100% 90%,
    94% 100%,
    0 100%,
    4% 90%,
    0 80%,
    4% 70%,
    0 60%,
    4% 50%,
    0 40%,
    4% 30%,
    0 20%,
    4% 10%
  );
  animation: ticket-right-piece 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-banner .flamingo {
  margin-left: -1px;
  margin-right: -1px;
  z-index: 1;
}

body.sophie-rain .flamingo-banner .flamingo:first-child {
  animation: tear-left-flamingo 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-banner .flamingo:last-child {
  position: static;
  animation: tear-right-flamingo 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-banner .flamingo:last-child::after {
  content: "south beach  •  Lincoln Rd";
  position: absolute;
  right: 8px;
  bottom: 3px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-family:
    "Brush Script MT",
    "Segoe Script",
    "Lucida Handwriting",
    cursive;
  font-size: clamp(9px, 2vw, 12px);
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(180, 20, 55, 0.8);
  transform: rotate(-4deg);
  pointer-events: none;
}

body.sophie-rain .flamingo-banner .flamingo-message {
  gap: 2px;
  z-index: 1;
  animation: tear-message 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-banner .flamingo-miami {
  font-family:
    "Brush Script MT",
    "Segoe Script",
    "Lucida Handwriting",
    cursive !important;
  font-style: italic !important;
  font-weight: normal !important;
  letter-spacing: 1px;
  font-size: 0 !important;
  animation: tear-miami 6s ease-in-out infinite;
}

body.sophie-rain .flamingo-miami::before {
  content: "Miami";
  font-size: clamp(30px, 8vw, 42px);
}

body.sophie-rain .flamingo-series {
  font-family: Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  letter-spacing: 0;
  animation: tear-series 6s ease-in-out infinite;
}

@keyframes ticket-tear {
  0%,
  18%,
  82%,
  100% {
    transform: rotate(-7deg);
  }

  38%,
  62% {
    transform: rotate(-7deg);
  }
}

@keyframes ticket-left-piece {
  0%,
  18%,
  82%,
  100% {
    transform: translateX(0) rotate(0);
  }

  38%,
  62% {
    transform: translateX(-52px) rotate(-3deg);
  }
}

@keyframes ticket-right-piece {
  0%,
  18%,
  82%,
  100% {
    transform: translateX(0) rotate(0);
  }

  38%,
  62% {
    transform: translateX(52px) rotate(3deg);
  }
}

@keyframes tear-left-flamingo {
  0%,
  18%,
  82%,
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }

  38%,
  62% {
    transform: translateX(-48px) rotate(-10deg);
  }
}

@keyframes tear-right-flamingo {
  0%,
  18%,
  82%,
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }

  38%,
  62% {
    transform: translateX(48px) rotate(10deg);
  }
}

@keyframes tear-message {
  0%,
  18%,
  82%,
  100% {
    transform: translateX(0);
  }

  38%,
  62% {
    transform: translateX(-4px);
  }
}

@keyframes tear-miami {
  0%,
  18%,
  82%,
  100% {
    transform: translateX(0) rotate(0);
  }

  38%,
  62% {
    transform: translateX(-30px) rotate(-5deg);
  }
}

@keyframes tear-series {
  0%,
  18%,
  82%,
  100% {
    transform: translateX(0) rotate(0);
  }

  38%,
  62% {
    transform: translateX(30px) rotate(5deg);
  }
}

@media (max-width: 768px) {
  .page {
    width: 100%;
    padding: 12px;
  }

  .video-card {
    width: 92vw;
    max-width: 100%;
    border-width: 2px;
  }

  body.sophie-rain #main {
    padding-bottom: 170px !important;
  }

  .promo-footer {
    padding: 10px !important;
  }

  .promo-footer .promo-slide:first-child {
    min-height: 105px;
  }

  .promo-footer .promo-slide:first-child .promo-bubble {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
  }

  body.sophie-rain .flamingo-banner {
    top: -32px !important;
    left: -16px !important;
    width: calc(100% + 32px) !important;
  }

  body.sophie-rain .flamingo-miami::before {
    font-size: 34px;
  }

  body.sophie-rain .flamingo-banner .flamingo:last-child::after {
    right: 4px;
    bottom: 2px;
    font-size: 9px;
  }

  @keyframes ticket-left-piece {
    38%,
    62% {
      transform: translateX(-32px) rotate(-3deg);
    }
  }

  @keyframes ticket-right-piece {
    38%,
    62% {
      transform: translateX(32px) rotate(3deg);
    }
  }

  @keyframes tear-left-flamingo {
    38%,
    62% {
      transform: translateX(-28px) rotate(-8deg);
    }
  }

  @keyframes tear-right-flamingo {
    38%,
    62% {
      transform: translateX(28px) rotate(8deg);
    }
  }

  @keyframes tear-miami {
    38%,
    62% {
      transform: translateX(-18px) rotate(-4deg);
    }
  }

  @keyframes tear-series {
    38%,
    62% {
      transform: translateX(18px) rotate(4deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sophie-rain::before,
  body.sophie-rain::after,
  body.sophie-rain .flamingo-banner,
  body.sophie-rain .flamingo-banner::before,
  body.sophie-rain .flamingo-banner::after,
  body.sophie-rain .flamingo-banner .flamingo,
  body.sophie-rain .flamingo-banner .flamingo-message,
  body.sophie-rain .flamingo-banner .flamingo-miami,
  body.sophie-rain .flamingo-banner .flamingo-series {
    animation: none;
  }
}