/* =====================================================
   JAKSKY PRANK WOW V2
===================================================== */

.jakPrankOverlay{
  position:fixed;
  inset:0;
  z-index:9999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  overflow:hidden;

  background:
    radial-gradient(circle at 20% 20%,rgba(255,56,164,.28),transparent 32%),
    radial-gradient(circle at 80% 80%,rgba(123,72,255,.30),transparent 34%),
    rgba(14,6,16,.74);

  backdrop-filter:blur(17px) saturate(140%);
  -webkit-backdrop-filter:blur(17px) saturate(140%);

  animation:jakOverlayIn .35s ease forwards;
}

.jakPrankOverlay::before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,40,150,.22),
      rgba(124,67,255,.18),
      rgba(255,255,255,.04),
      rgba(255,40,150,.22)
    );
  filter:blur(10px);
  animation:jakRotate 9s linear infinite;
}

.jakPrankOverlay::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:linear-gradient(to bottom,transparent,#000,transparent);
}

.jakPrankBox{
  position:relative;
  z-index:3;

  width:min(92vw,430px);
  padding:31px 23px 22px;

  border-radius:31px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.97),
      rgba(255,246,252,.94)
    );

  border:1px solid rgba(255,255,255,.8);

  box-shadow:
    0 35px 100px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,70,170,.08),
    0 0 55px rgba(255,51,151,.16);

  text-align:center;

  animation:
    jakPrankPop .6s cubic-bezier(.16,1.2,.3,1),
    jakFloat 4s ease-in-out .7s infinite;
}

.jakPrankBox::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:31px;
  padding:1px;

  background:
    linear-gradient(
      135deg,
      rgba(255,56,158,.85),
      rgba(149,80,255,.65),
      rgba(255,255,255,.7)
    );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite:xor;
  mask-composite:exclude;

  pointer-events:none;
}

.jakPrankEmoji{
  width:82px;
  height:82px;
  margin:-7px auto 13px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:50%;

  font-size:49px;

  background:
    radial-gradient(circle at 35% 30%,#fff,#ffd6ec 58%,#ff81c2);

  box-shadow:
    0 14px 35px rgba(255,53,151,.23),
    inset 0 1px 0 rgba(255,255,255,.9);

  animation:
    jakEmojiBounce 1.8s ease-in-out infinite,
    jakEmojiGlow 2.5s ease-in-out infinite;
}

.jakPrankTitle{
  margin:0 0 9px;

  font-size:24px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.5px;

  background:linear-gradient(90deg,#fb238d,#9f4eff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.jakPrankMessage{
  max-width:340px;
  margin:auto;

  color:#725b6a;

  font-size:15px;
  line-height:1.6;
  font-weight:600;

  white-space:pre-wrap;
}

.jakPrankButton{
  position:relative;

  width:100%;
  margin-top:20px;
  padding:14px 18px;

  border:0;
  border-radius:18px;

  color:#fff;

  font-size:15px;
  font-weight:900;
  letter-spacing:.1px;

  background:
    linear-gradient(
      135deg,
      #ff2490,
      #e934ad 45%,
      #8654ff
    );

  box-shadow:
    0 13px 32px rgba(221,44,150,.34),
    inset 0 1px 0 rgba(255,255,255,.34);

  overflow:hidden;
  cursor:pointer;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.jakPrankButton::after{
  content:"";
  position:absolute;
  top:-80%;
  left:-50%;
  width:40%;
  height:250%;
  transform:rotate(20deg);

  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.65),
    transparent
  );

  animation:jakButtonShine 2.6s ease-in-out infinite;
}

.jakPrankButton:active{
  transform:scale(.97);
}

.jakPrankLoading{
  position:relative;

  height:10px;
  margin-top:19px;

  overflow:hidden;

  border-radius:999px;

  background:#f0dce8;

  box-shadow:inset 0 1px 3px rgba(0,0,0,.08);
}

.jakPrankLoading::before{
  content:"";
  position:absolute;
  inset:0;

  width:10%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #ff2e96,
      #ca42d2,
      #7659ff
    );

  box-shadow:0 0 15px rgba(224,50,157,.45);

  animation:jakFakeProgress 4.6s ease-in-out infinite;
}

.jakPrankLoadingText{
  margin-top:9px;
  min-height:17px;

  color:#a17c92;

  font-size:11px;
  font-weight:700;

  animation:jakTextPulse 1.1s ease-in-out infinite;
}


/* ============== TOAST ============== */

.jakPrankToast{
  position:fixed;

  z-index:9999999;

  top:18px;
  left:50%;

  width:min(calc(100vw - 28px),420px);

  transform:translateX(-50%);

  padding:16px 18px;

  border:1px solid rgba(255,255,255,.16);
  border-radius:22px;

  background:
    linear-gradient(
      135deg,
      rgba(35,20,32,.97),
      rgba(52,27,49,.96)
    );

  color:#fff;

  text-align:center;

  font-size:14px;
  line-height:1.45;
  font-weight:800;

  box-shadow:
    0 20px 55px rgba(0,0,0,.4),
    0 0 35px rgba(255,44,154,.16);

  backdrop-filter:blur(17px);
  -webkit-backdrop-filter:blur(17px);

  animation:jakToastIn .55s cubic-bezier(.2,1.3,.3,1);
}


/* ============== CONFETTI ============== */

.jakConfettiPiece{
  position:fixed;
  z-index:9999998;

  top:-60px;

  pointer-events:none;

  user-select:none;

  animation-name:jakConfettiFall;
  animation-timing-function:linear;
  animation-fill-mode:forwards;
}


/* ============== SCREEN EFFECT ============== */

.jakPrankScreenFlash{
  position:fixed;
  inset:0;

  z-index:9999997;

  pointer-events:none;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.45),
      rgba(255,51,157,.15),
      transparent 70%
    );

  animation:jakFlash .7s ease forwards;
}


/* ============== DARK MODE ============== */

html[data-jak-theme="dark"] .jakPrankBox{
  background:
    linear-gradient(
      145deg,
      rgba(38,24,35,.97),
      rgba(24,17,28,.98)
    );

  border-color:rgba(255,255,255,.08);
}

html[data-jak-theme="dark"] .jakPrankMessage{
  color:#d9bfd0;
}

html[data-jak-theme="dark"] .jakPrankLoading{
  background:#463241;
}


/* ============== ANIMATIONS ============== */

@keyframes jakOverlayIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes jakPrankPop{
  0%{
    opacity:0;
    transform:scale(.68) translateY(35px) rotate(-2deg);
  }

  60%{
    transform:scale(1.035) translateY(-4px) rotate(.5deg);
  }

  100%{
    opacity:1;
    transform:scale(1) translateY(0);
  }
}

@keyframes jakFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

@keyframes jakEmojiBounce{
  0%,100%{transform:translateY(0) rotate(0)}
  40%{transform:translateY(-7px) rotate(-5deg)}
  65%{transform:translateY(2px) rotate(5deg)}
}

@keyframes jakEmojiGlow{
  0%,100%{
    box-shadow:
      0 14px 35px rgba(255,53,151,.23),
      0 0 0 rgba(255,53,151,0);
  }

  50%{
    box-shadow:
      0 14px 35px rgba(255,53,151,.3),
      0 0 33px rgba(255,53,151,.28);
  }
}

@keyframes jakRotate{
  to{transform:rotate(360deg)}
}

@keyframes jakButtonShine{
  0%{left:-60%}
  55%,100%{left:140%}
}

@keyframes jakFakeProgress{
  0%{width:8%}
  25%{width:31%}
  50%{width:57%}
  75%{width:82%}
  90%{width:94%}
  100%{width:98%}
}

@keyframes jakTextPulse{
  0%,100%{opacity:.55}
  50%{opacity:1}
}

@keyframes jakToastIn{
  from{
    opacity:0;
    transform:translate(-50%,-30px) scale(.92);
  }

  to{
    opacity:1;
    transform:translate(-50%,0) scale(1);
  }
}

@keyframes jakConfettiFall{
  0%{
    transform:
      translateY(-10vh)
      rotate(0deg)
      scale(.8);

    opacity:1;
  }

  100%{
    transform:
      translateY(115vh)
      rotate(900deg)
      scale(1.15);

    opacity:.1;
  }
}

@keyframes jakFlash{
  0%{opacity:0}
  35%{opacity:1}
  100%{opacity:0}
}

@media(max-width:480px){
  .jakPrankBox{
    width:94vw;
    border-radius:27px;
    padding:27px 18px 19px;
  }

  .jakPrankEmoji{
    width:74px;
    height:74px;
    font-size:44px;
  }

  .jakPrankTitle{
    font-size:22px;
  }
}

@media(prefers-reduced-motion:reduce){
  .jakPrankBox,
  .jakPrankEmoji,
  .jakPrankButton::after{
    animation:none !important;
  }
}

/* JAKSKY_PRANK_PERSISTENT_V2 */
.jakPrankToastPersistent{pointer-events:auto!important;height:auto!important;min-height:unset!important}
.jakPrankToastButton{display:block;width:100%;margin-top:12px;border:0;border-radius:12px;padding:10px 12px;font:inherit;font-weight:900;cursor:pointer;background:#fff;color:#b42572}
