* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("miauu.png") 8 8, auto;
}

button,
a,
input,
label,
.yes-btn,
.no-btn,
#continueBtn,
.music-btn {
  cursor: url("miauu.png") 8 8, pointer;
}

body {
  background: url("spider lily.gif") no-repeat center center fixed;
  background-size: cover;
  font-family: "Silkscreen", cursive;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  color: white;
}

/* Floating dark red particles */
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(rgba(90, 0, 0, 0.28) 1px, transparent 1px),
    radial-gradient(rgba(140, 0, 0, 0.18) 1px, transparent 1px),
    radial-gradient(rgba(180, 20, 20, 0.10) 1px, transparent 1px);
  background-size: 90px 90px, 140px 140px, 200px 200px;
  animation: driftParticles 28s linear infinite;
  opacity: 0.65;
  filter: blur(0.3px);
}

.particles::after {
  animation-duration: 42s;
  opacity: 0.38;
  transform: scale(1.05);
}

@keyframes driftParticles {
  0% { transform: translate(-6%, -6%); }
  100% { transform: translate(6%, 6%); }
}

.overlay {
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}

.container {
  background: rgba(20, 0, 0, 0.58);
  border: 1px solid rgba(255, 70, 90, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 45px 35px;
  width: 90%;
  max-width: 760px;
  text-align: center;
  box-shadow: 0 0 30px rgba(80, 0, 0, 0.45);
}

h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  color: #ffe5ea;
  margin-bottom: 28px;
  line-height: 1.8;
  text-shadow:
    0 0 4px rgba(255, 180, 190, 0.18),
    0 0 10px rgba(120, 0, 0, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.55);
}

.intro {
  font-size: 0.68rem;
  line-height: 2;
  color: #ffe8eb;
  margin-bottom: 22px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.45);
}

.rose-divider {
  display: block;
  width: 85%;
  max-width: 420px;
  opacity: 0.96;
  user-select: none;
  pointer-events: none;
  will-change: transform, filter, opacity;
  filter:
    drop-shadow(0 0 4px rgba(60, 0, 0, 0.55))
    drop-shadow(0 0 8px rgba(90, 0, 0, 0.55))
    drop-shadow(0 0 14px rgba(120, 0, 0, 0.45))
    drop-shadow(0 0 22px rgba(150, 0, 0, 0.25));
}

/* TOP divider above title */
.top-divider {
  display: block;
  width: 94%;
  max-width: none;
  height: 42px;
  margin: 0 auto 28px;
  opacity: 0.96;
  animation: none;
  transform: none;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 120, 120, 0.25);

  filter:
    drop-shadow(0 0 4px rgba(80, 0, 0, 0.55))
    drop-shadow(0 0 10px rgba(120, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(160, 0, 0, 0.25));
}

/* Middle divider */
.middle-divider {
  margin: 20px auto 22px;
  opacity: 1;
  animation: dividerFloatMain 4.5s ease-in-out infinite, dividerGlow 3.8s ease-in-out infinite;
}

/* Bottom divider under button */
.bottom-divider {
  margin: 22px auto 0;
  opacity: 0.72;
  animation: dividerFloatSmall 4.5s ease-in-out infinite, dividerGlow 3.8s ease-in-out infinite;
}

@keyframes dividerFloatSmall {
  0% { transform: translateY(0px) scale(0.94); }
  50% { transform: translateY(-3px) scale(0.955); }
  100% { transform: translateY(0px) scale(0.94); }
}

@keyframes dividerFloatMain {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-3px) scale(1.01); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes dividerGlow {
  0% {
    filter:
      drop-shadow(0 0 4px rgba(60, 0, 0, 0.45))
      drop-shadow(0 0 8px rgba(90, 0, 0, 0.35))
      drop-shadow(0 0 14px rgba(120, 0, 0, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 0 6px rgba(100, 0, 0, 0.65))
      drop-shadow(0 0 12px rgba(140, 0, 0, 0.55))
      drop-shadow(0 0 22px rgba(180, 0, 0, 0.35));
  }
  100% {
    filter:
      drop-shadow(0 0 4px rgba(60, 0, 0, 0.45))
      drop-shadow(0 0 8px rgba(90, 0, 0, 0.35))
      drop-shadow(0 0 14px rgba(120, 0, 0, 0.25));
  }
}

.message {
  font-size: 0.78rem;
  color: #fff3f5;
  margin: 24px auto 30px;
  min-height: 170px;
  max-height: 420px;
  max-width: 88%;
  line-height: 2.2;
  opacity: 1;
  transition: all 0.4s ease;
  white-space: normal;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 0, 0, 0.8) rgba(255, 255, 255, 0.05);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.message.show {
  animation: textFade 0.6s ease;
}

@keyframes textFade {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.message::-webkit-scrollbar {
  width: 8px;
}

.message::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.message::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5a0000, #9b001c);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(120, 0, 0, 0.35);
}

.message::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #750000, #c1002a);
}

/* SECOND PAGE STORY CONTENT */
.story-block {
  width: 100%;
  animation: textFade 0.6s ease;
}

.story-text {
  font-size: 0.76rem;
  line-height: 2.2;
  color: #fff3f5;
  text-align: center;
  margin: 0 auto 10px;
  max-width: 88%;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.story-img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 140, 160, 0.18);
  box-shadow:
    0 0 18px rgba(80, 0, 0, 0.22),
    0 0 28px rgba(40, 0, 0, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.02);
  object-fit: cover;
  opacity: 0.96;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-img:hover {
  transform: scale(1.015);
  box-shadow:
    0 0 24px rgba(120, 0, 0, 0.28),
    0 0 36px rgba(60, 0, 0, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
}

/* LOVE TIMER */
.love-timer-wrap {
  margin: 28px auto 0;
  padding: 18px 16px;
  max-width: 420px;
  border-radius: 20px;
  background: rgba(35, 0, 0, 0.32);
  border: 1px solid rgba(255, 120, 140, 0.16);
  box-shadow:
    0 0 18px rgba(100, 0, 0, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: timerGlow 3.5s ease-in-out infinite;
}

.love-timer-label {
  font-size: 0.56rem;
  color: #ffccd6;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: lowercase;
  opacity: 0.88;
}

.love-timer {
  font-size: 0.72rem;
  line-height: 2;
  color: #fff1f4;
  text-shadow:
    0 0 8px rgba(120, 0, 0, 0.22),
    0 0 16px rgba(180, 0, 0, 0.12);
}

.timer-seconds {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.58rem;
  color: #ffb8c7;
  opacity: 0.9;
}

@keyframes timerGlow {
  0% {
    box-shadow:
      0 0 18px rgba(100, 0, 0, 0.14),
      inset 0 0 12px rgba(255, 255, 255, 0.02);
  }
  50% {
    box-shadow:
      0 0 26px rgba(160, 0, 0, 0.24),
      inset 0 0 14px rgba(255, 255, 255, 0.03);
  }
  100% {
    box-shadow:
      0 0 18px rgba(100, 0, 0, 0.14),
      inset 0 0 12px rgba(255, 255, 255, 0.02);
  }
}

.main-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: "Silkscreen", cursive;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #8b0000, #2b0000);
  color: #fff5f6;
  box-shadow:
    0 0 14px rgba(130, 0, 0, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.main-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 18px rgba(160, 0, 0, 0.45),
    inset 0 0 10px rgba(255, 255, 255, 0.06);
}

.question-box {
  display: none;
  margin-top: 28px;
  animation: fadeUp 0.6s ease forwards;
}

.question-box p {
  font-size: 0.78rem;
  margin-bottom: 18px;
  color: #ffe5ea;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Cinematic hands scene */
.hands-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 20px auto 28px;
  padding: 12px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(35, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at center, rgba(120, 0, 0, 0.18), rgba(0, 0, 0, 0.75));
  box-shadow:
    0 0 0 1px rgba(180, 40, 60, 0.12),
    0 0 24px rgba(90, 0, 0, 0.25),
    0 0 50px rgba(30, 0, 0, 0.45),
    inset 0 0 35px rgba(120, 0, 0, 0.08);
  animation: handsSceneFade 1.2s ease;
}

.hands-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.48) 100%);
  z-index: 2;
  pointer-events: none;
}

.hands-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(100, 0, 0, 0.08) 0%,
      rgba(180, 0, 0, 0.04) 50%,
      rgba(100, 0, 0, 0.08) 100%);
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}

.hands-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  opacity: 0.94;
  transform: scale(1.03);
  filter:
    contrast(1.08)
    saturate(1.1)
    brightness(0.92)
    drop-shadow(0 0 12px rgba(120, 0, 0, 0.35))
    drop-shadow(0 0 28px rgba(180, 0, 0, 0.18));
  animation:
    handsFloat 5.2s ease-in-out infinite,
    handsPulse 4.2s ease-in-out infinite,
    handsZoom 8s ease-in-out infinite;
}

.btn-group {
  position: relative;
  width: 260px;
  height: 120px;
  margin: 20px auto 0;
}

.yes-btn,
.no-btn {
  position: absolute;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-family: "Silkscreen", cursive;
  font-size: 0.75rem;
  transition: all 0.25s ease;
}

.yes-btn {
  left: 30px;
  top: 30px;
  background: linear-gradient(135deg, #8b0000, #2b0000);
  color: white;
  box-shadow: 0 0 14px rgba(180, 0, 40, 0.45);
}

.yes-btn:hover {
  transform: scale(1.05);
}

.no-btn {
  left: 150px;
  top: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd9df;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#finalMessage {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  margin-top: 28px;
  font-size: 0.8rem;
  color: #ffdbe1;
  line-height: 2;
  text-shadow:
    0 0 8px rgba(120, 0, 0, 0.28),
    0 0 16px rgba(170, 0, 0, 0.14);
  pointer-events: none;
}

.show-final {
  animation: finalReveal 1.2s ease forwards, finalGlow 3.2s ease-in-out infinite 1.2s;
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes finalReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(4px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(6px) scale(1.01);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes finalGlow {
  0% {
    text-shadow:
      0 0 8px rgba(100, 0, 0, 0.2),
      0 0 16px rgba(150, 0, 0, 0.12);
  }
  50% {
    text-shadow:
      0 0 14px rgba(160, 0, 0, 0.36),
      0 0 26px rgba(200, 0, 0, 0.18);
  }
  100% {
    text-shadow:
      0 0 8px rgba(100, 0, 0, 0.2),
      0 0 16px rgba(150, 0, 0, 0.12);
  }
}

@keyframes handsSceneFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes handsFloat {
  0% { transform: translateY(0px) scale(1.03); }
  50% { transform: translateY(-5px) scale(1.035); }
  100% { transform: translateY(0px) scale(1.03); }
}

@keyframes handsPulse {
  0% {
    filter:
      contrast(1.08)
      saturate(1.08)
      brightness(0.9)
      drop-shadow(0 0 8px rgba(100, 0, 0, 0.28))
      drop-shadow(0 0 18px rgba(150, 0, 0, 0.16));
  }
  50% {
    filter:
      contrast(1.12)
      saturate(1.14)
      brightness(0.96)
      drop-shadow(0 0 14px rgba(170, 0, 0, 0.42))
      drop-shadow(0 0 30px rgba(200, 0, 0, 0.2));
  }
  100% {
    filter:
      contrast(1.08)
      saturate(1.08)
      brightness(0.9)
      drop-shadow(0 0 8px rgba(100, 0, 0, 0.28))
      drop-shadow(0 0 18px rgba(150, 0, 0, 0.16));
  }
}

@keyframes handsZoom {
  0% { transform: scale(1.03); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1.03); }
}

/* GOTHIC PLAYER */
.gothic-player {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 100;
  width: 210px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(35, 0, 0, 0.88), rgba(10, 0, 0, 0.9));
  border: 1px solid rgba(255, 100, 120, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 18px rgba(90, 0, 0, 0.35),
    0 0 32px rgba(40, 0, 0, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.02);
  animation: playerFloat 4s ease-in-out infinite;
}

.gothic-player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  border: 1px solid rgba(255, 180, 190, 0.04);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.player-label {
  font-size: 0.5rem;
  color: #ffdce2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(120, 0, 0, 0.2);
}

.player-status {
  font-size: 0.5rem;
  color: #ffb7c4;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vinyl-wrap {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #500010 0 10%, #111 11% 20%, #2a0008 21% 38%, #111 39% 56%, #32000c 57% 100%);
  border: 2px solid rgba(255, 180, 190, 0.08);
  box-shadow:
    0 0 12px rgba(120, 0, 0, 0.22),
    inset 0 0 10px rgba(255, 255, 255, 0.03);
  position: relative;
}

.vinyl-disc::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd8df;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vinyl-disc.spinning {
  animation: spinVinyl 3s linear infinite;
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.music-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  color: #fff5f7;
  background: linear-gradient(135deg, #8b0000, #2b0000);
  box-shadow:
    0 0 12px rgba(160, 0, 0, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.music-btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 18px rgba(190, 0, 0, 0.42),
    inset 0 0 10px rgba(255, 255, 255, 0.06);
}

.music-btn.playing {
  animation: musicGlow 2s ease-in-out infinite;
}

.song-name {
  font-size: 0.52rem;
  color: #ffe3e8;
  line-height: 1.6;
  opacity: 0.88;
}

@keyframes playerFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes musicGlow {
  0% {
    box-shadow:
      0 0 10px rgba(120, 0, 0, 0.25),
      0 0 0 rgba(255, 0, 80, 0);
  }
  50% {
    box-shadow:
      0 0 18px rgba(180, 0, 0, 0.42),
      0 0 24px rgba(255, 40, 110, 0.14);
  }
  100% {
    box-shadow:
      0 0 10px rgba(120, 0, 0, 0.25),
      0 0 0 rgba(255, 0, 80, 0);
  }
}

/* Mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 0.72rem;
    line-height: 1.8;
  }

  .intro,
  .message,
  .question-box p,
  #finalMessage,
  .story-text,
  .love-timer {
    font-size: 0.68rem;
  }

  .love-timer-label,
  .timer-seconds {
    font-size: 0.5rem;
  }

  .container {
    padding: 35px 20px;
  }

  .btn-group {
    width: 220px;
    height: 120px;
  }

  .yes-btn {
    left: 20px;
  }

  .no-btn {
    left: 120px;
  }

  .hands-wrap {
    max-width: 100%;
  }

  .gothic-player {
    width: 185px;
    left: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .vinyl-wrap {
    width: 48px;
    height: 48px;
  }

  .vinyl-disc {
    width: 46px;
    height: 46px;
  }

  .music-btn {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .player-label,
  .player-status,
  .song-name {
    font-size: 0.48rem;
  }

  .story-img {
    max-width: 100%;
  }
}