:root{
  --cws2-z-overlay: 999999;
  --cws2-z-audio: 999998;
  --cws2-z-hearts: 999997;
}

/* Prevent website showing before splash on phone only */
@media (max-width: 767px){
  html.cws2-preload body > :not(#cws2-root){
    visibility: hidden !important;
  }
}

/* Root wrapper does not affect layout */
#cws2-root{
  position: static;
}

/* Audio button */
#cws2-audio-btn{
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: var(--cws2-z-audio);
  cursor: pointer;

  background: none;
  border: none;
  outline: none;

  padding: 10px;
  border-radius: 50%;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.3);

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-tap-highlight-color: transparent;
}

#cws2-audio-btn img{
  width: 40px;
  height: 40px;
  display: block;
}

/* Hearts wrapper */
.cws2-hearts{
  position: fixed;
  inset: 0;
  z-index: var(--cws2-z-hearts);
  pointer-events: none;
  overflow: hidden;
}

/* Overlay */
.cws2-overlay{
  position: fixed;
  inset: 0;
  z-index: var(--cws2-z-overlay);

  background: transparent;
  opacity: 1;
  visibility: visible;

  transition: opacity 240ms ease, visibility 240ms ease;
}

.cws2-overlay.cws2-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cws2-wrap{
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.cws2-photo{
  position: absolute;
  inset: 0;
  z-index: 6;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 1;
  transition: opacity 180ms ease;
}

.cws2-photo.cws2-fade{
  opacity: 0;
}

.cws2-video{
  position: absolute;
  inset: 0;
  z-index: 5;

  width: 100%;
  height: 100%;
  object-fit: cover;

  display: block;

  opacity: 1;
  background: transparent;
}

.cws2-video.cws2-fade{
  opacity: 0;
  transition: opacity 240ms ease;
}

/* Subtitle */
.cws2-subtitle{
  position: absolute;
  left: 50%;
  top: calc(52% + 137px);
  transform: translateX(-50%);
  z-index: 7;

  font-family: "Brush Script MT","Segoe Script","Lucida Handwriting",cursive;
  font-size: 21px;
  color: #6b6b6b;

  pointer-events: none;
  text-align: center;
  max-width: 92vw;

  opacity: 1;
  transition: opacity 180ms ease;
}

.cws2-subtitle.cws2-fade{
  opacity: 0;
}

/* Hint */
.cws2-hint{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;

  bottom: calc(var(--cws2-hint-bottom, 28px) + env(safe-area-inset-bottom));

  font-size: 18px;
  color: #000;

  pointer-events: none;
  text-align: center;
  max-width: 92vw;

  opacity: 1;
  transition: opacity 180ms ease;
}

.cws2-hint.cws2-fade{
  opacity: 0;
}

/* Tap layer */
.cws2-tap{
  position: absolute;
  inset: 0;
  z-index: 10;

  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile lock only (never lock desktop with fixed positioning) */
@media (max-width: 767px){
  html.cws2-lock,
  body.cws2-lock{
    height: 100%;
    overflow: hidden;
    touch-action: none;
  }

  body.cws2-lock:not(.cws2-reveal) > :not(#cws2-root){
    visibility: hidden !important;
  }

  body.cws2-lock.cws2-reveal > :not(#cws2-root){
    visibility: visible !important;
  }
}

/* Desktop safety reset */
@media (min-width: 768px){
  html.cws2-lock,
  body.cws2-lock{
    height: auto !important;
    overflow: auto !important;
    touch-action: auto !important;
  }

  body{
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    overflow: auto !important;
  }
}

/* Falling hearts animation */
@keyframes cws2_fall{
  0% { transform: translateY(-60px); }
  100% { transform: translateY(calc(100vh + 80px)); }
}
.wrapper .elementor-container{
  pointer-events: auto;
}
