* {
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
}

body.paused *,
body.paused *::before,
body.paused *::after {
  animation-play-state: paused !important;
}

/*---------------------- splash -------------------------*/
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #fff0f5, #ffe0ec, #ffc1d6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5vh;
  cursor: pointer;
  transition: opacity 0.7s ease-out;
}

.splash-hide {
  opacity: 0;
  pointer-events: none;
}

.splash-heart {
  font-size: clamp(60px, 15vw, 120px);
  animation: splashPulse 1.2s ease-in-out infinite;
}

.splash-text {
  font-family: 'Pacifico', cursive;
  font-size: clamp(28px, 7vw, 60px);
  color: #ff6b9d;
  text-shadow:
    0 2px 0 #e0456b,
    0 4px 0 #d63a60,
    0 6px 8px rgba(0, 0, 0, 0.12);
}

.splash-tap {
  font-family: 'Pacifico', cursive;
  font-size: clamp(14px, 3vw, 22px);
  color: #e8829e;
  animation: splashBlink 2s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes splashBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
}

/*---------------------- body_left -------------------------*/
.body_left {
  width: clamp(100px, 22vw, 300px);
  height: clamp(100px, 22vw, 300px);
  left: 0;
  bottom: clamp(50px, 10vh, 110px);
  position: absolute;
  z-index: 98;
}

.body_left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*---------------------- body_center -------------------------*/
.container .love {
  width: 520px;
  height: 440px;
  left: 50%;
  top: 45%;
  position: absolute;
  margin: -220px 0 0 -260px;
  transform-origin: center center;
}

.love .block {
  right: 0;
  position: absolute;
  visibility: hidden;
  background-color: yellow;
}

.love .block div {
  width: 40px;
  height: 40px;
  position: absolute;
  background: url("../images/heart.png") no-repeat;
  background-size: contain;
  box-sizing: border-box;
}

/*---------------------- candy text -------------------------*/
.candy-title {
  position: fixed;
  top: 1vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  font-family: "Pacifico", cursive;
  font-size: clamp(18px, 4vw, 50px);
  color: #ff6b9d;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 2px 0 #e0456b,
    0 4px 0 #d63a60,
    0 6px 8px rgba(0, 0, 0, 0.15),
    2px 2px 4px rgba(255, 105, 140, 0.4);
  -webkit-text-stroke: 0.5px #e8527a;
  opacity: 0;
  animation: fadeIn 2s ease-in 10s forwards;
}

.candy-subtitle {
  position: fixed;
  bottom: clamp(18%, 25vh, 35%);
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
  font-family: "Pacifico", cursive;
  font-size: clamp(14px, 3.5vw, 60px);
  color: #ff85ab;
  white-space: nowrap;
  text-shadow:
    0 2px 0 #e0567a,
    0 3px 6px rgba(0, 0, 0, 0.12),
    1px 1px 3px rgba(255, 105, 140, 0.3);
  -webkit-text-stroke: 0.3px #e8628a;
  opacity: 0;
  animation: fadeIn 2s ease-in 21s forwards;
}

/*---------------------- mini radio -------------------------*/
.mini-radio {
  position: fixed;
  bottom: 2%;
  left: 2%;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  background: linear-gradient(135deg, #ffe0ec, #ffc1d6);
  padding: clamp(5px, 1vw, 12px) clamp(8px, 1.5vw, 20px);
  border-radius: 30px;
  box-shadow:
    0 3px 0 #e8a0b8,
    0 5px 12px rgba(255, 105, 140, 0.3);
  opacity: 0;
  animation: fadeIn 1s ease-in 5s forwards;
}

.radio-btn {
  width: clamp(26px, 3.5vw, 40px);
  height: clamp(26px, 3.5vw, 40px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff85ab, #ff6b9d);
  color: white;
  font-size: clamp(10px, 1.3vw, 15px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 #d6537a;
  transition: transform 0.1s, box-shadow 0.1s;
  border: none;
  pointer-events: auto;
  line-height: 1;
}

.radio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #d6537a;
}

.radio-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #d6537a;
}

.radio-play {
  font-size: clamp(8px, 1.1vw, 13px);
  letter-spacing: -2px;
}

.radio-display {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.5vw, 6px);
  padding: 0 clamp(3px, 0.7vw, 8px);
  font-family: "Pacifico", cursive;
  font-size: clamp(11px, 1.5vw, 18px);
  color: #d6456e;
}

.radio-note {
  font-size: clamp(13px, 1.8vw, 20px);
  animation: noteBounce 1s ease-in-out infinite alternate;
}

@keyframes noteBounce {
  from { transform: translateY(0) rotate(-5deg); }
  to { transform: translateY(-3px) rotate(5deg); }
}

/*---------------------- footer -------------------------*/
@keyframes border {
  0% { width: 0; }
  100% { width: 100%; }
}

.footer {
  bottom: clamp(10px, 3vh, 30px);
  position: relative;
  z-index: 99;
}

.footer .border .border-top {
  border-top: 3px solid black;
  transform-origin: left center;
  animation: border 12s linear;
  animation-fill-mode: both;
}

.footer .border .border-bottom {
  float: right;
  border-top: 3px solid red;
  transform-origin: right center;
  animation: border 7s linear 12s;
  animation-fill-mode: both;
}

.footer .copyright {
  width: 100%;
  height: 30px;
  position: absolute;
  bottom: -30px;
  text-align: center;
}

.copyright div {
  width: 30%;
  line-height: 30px;
  display: inline-block;
}

.copyright div span {
  color: dimgray;
}

/*---------------------- gifs on line -------------------------*/
.gif-on-line {
  position: absolute;
  bottom: 0;
  transform: translateY(-50%);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
}

.piano-cat {
  left: 22%;
  width: clamp(80px, 15vw, 180px);
  height: clamp(45px, 8vw, 100px);
  animation-delay: 13s;
}

.cat-playing-piano {
  left: 40%;
  width: clamp(70px, 13vw, 160px);
  height: clamp(55px, 10vw, 120px);
  animation-delay: 15s;
}

.bongo-heart {
  right: 30%;
  width: clamp(60px, 12vw, 140px);
  height: clamp(35px, 7vw, 85px);
  animation-delay: 17s;
}

.bongo-cat {
  right: 5%;
  width: clamp(55px, 10vw, 120px);
  height: clamp(55px, 10vw, 120px);
  animation-delay: 19s;
}

/*---------------------- scattered gifs -------------------------*/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scatter-gif {
  position: fixed;
  z-index: 97;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
}

.gif-1 {
  left: 0;
  top: 5%;
  width: clamp(80px, 18vw, 210px);
  height: clamp(80px, 18vw, 210px);
  animation-delay: 22s;
}

.gif-2 {
  right: 0;
  top: 4%;
  width: clamp(75px, 17vw, 195px);
  height: clamp(75px, 17vw, 195px);
  animation-delay: 23.5s;
}

.gif-3 {
  left: 16%;
  top: 3%;
  width: clamp(65px, 15vw, 175px);
  height: clamp(65px, 15vw, 175px);
  animation-delay: 25s;
}

.gif-4 {
  left: 0;
  top: 30%;
  width: clamp(90px, 20vw, 240px);
  height: clamp(90px, 20vw, 240px);
  animation-delay: 26.5s;
}

.gif-5 {
  right: 13%;
  top: 2%;
  width: clamp(70px, 16vw, 185px);
  height: clamp(65px, 15vw, 175px);
  animation-delay: 28s;
}

.gif-6 {
  left: 32%;
  top: 2%;
  width: clamp(60px, 14vw, 165px);
  height: clamp(55px, 13vw, 155px);
  animation-delay: 29.5s;
}

.gif-7 {
  left: 1%;
  top: 52%;
  width: clamp(65px, 15vw, 180px);
  height: clamp(85px, 20vw, 240px);
  animation-delay: 31s;
}

.gif-8 {
  right: 17%;
  top: 60%;
  width: clamp(75px, 18vw, 210px);
  height: clamp(75px, 18vw, 210px);
  animation-delay: 32.5s;
}

.gif-9 {
  left: 62%;
  top: 3%;
  width: clamp(65px, 15vw, 180px);
  height: clamp(60px, 14vw, 170px);
  animation-delay: 34s;
}

.gif-10 {
  right: 0;
  top: 58%;
  width: clamp(80px, 19vw, 220px);
  height: clamp(80px, 19vw, 220px);
  animation-delay: 35.5s;
}

.gif-11 {
  left: 18%;
  top: 52%;
  width: clamp(70px, 17vw, 200px);
  height: clamp(70px, 17vw, 200px);
  animation-delay: 37s;
}

/*---------------------- heart scaling -------------------------*/
@media (max-width: 900px) {
  .container .love { transform: scale(0.7); }
}
@media (max-width: 650px) {
  .container .love { transform: scale(0.55); }
}
@media (max-width: 480px) {
  .container .love { transform: scale(0.42); }
}
@media (max-width: 360px) {
  .container .love { transform: scale(0.35); }
}

/*---------------------- end -------------------------*/
