*,
*::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);
  }
}

@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;
  }
}

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