:root {
  --bg: #f4eadc;
  --text: #2f2a25;
  --accent: #d9c6ac;
  --pop: #ff7f50;
  --pop-2: #f1c40f;
  --pop-3: #5bc0eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.prank-bg {
  background: var(--bg) url("https://i.ibb.co/VWhhTgYM/Untitled-design-2.png") center / cover no-repeat fixed;
}

main,
.prank-screen {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.frame-wrap {
  position: relative;
  width: min(960px, 94vw);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  background: #000;
}

.frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero-image {
  width: 100%;
  height: 100vh;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surprise-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  padding: 14px 18px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 8;
}

.surprise-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.arrow {
  position: fixed;
  right: 34px;
  bottom: 96px;
  font-size: 54px;
  color: #e53935;
  transform: rotate(15deg);
  opacity: 0;
  pointer-events: none;
  animation: bounce 1s ease-in-out infinite;
  z-index: 7;
}

.arrow.show {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-10px); }
}

.prank-screen {
  display: none;
  text-align: center;
  gap: 20px;
}

.prank-screen h1 {
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: 0.05em;
}

.big-arrow {
  font-size: 46px;
  color: #e53935;
  animation: bounce 1s ease-in-out infinite;
}

.trail-dot {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  z-index: 999;
  animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.7); }
}

@media (max-width: 640px) {
  .frame-wrap {
    width: 94vw;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  }

  .return-wrap {
    flex-direction: column;
  }

  .return-btn {
    width: 100%;
    max-width: 320px;
    font-size: 20px;
  }

  .big-arrow {
    font-size: 36px;
  }

  .surprise-btn {
    bottom: 20px;
    right: 16px;
    font-size: 14px;
  }

  .arrow {
    right: 18px;
    bottom: 78px;
    font-size: 42px;
  }
}

.confetti-container span {
  position: fixed;
  width: 10px;
  height: 18px;
  top: -10%;
  animation: fall 3s linear forwards;
  opacity: 0.9;
  z-index: 12;
  transform: rotate(15deg);
}

@keyframes fall {
  to {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0.6;
  }
}
