@import url('https://fonts.googleapis.com/css2?family=Parisienne&family=Cinzel+Decorative:wght@700&display=swap');

body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("sakuraa.gif") repeat,
              linear-gradient(135deg, #ffd6f6, #ffb6e0, #fff0f9);
  background-size: cover;
  overflow: hidden;
  cursor: url("https://cur.cursors-4u.net/symbols/sym-3/sym273.cur"), auto;
}

/* Title screen */
.title-screen {
  text-align: center;
  position: relative;
  z-index: 10;
}

.game-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 3.5rem;
  color: #ff1493;
  text-shadow: 2px 2px #fff, 0 0 12px #ff69b4, 0 0 25px #ffb6e0;
  margin-bottom: 40px;
}

/* Press Start */
.press-start {
  font-family: 'Parisienne', cursive;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 8px #ff66cc, 0 0 12px #ff99cc;
  animation: blink 1s step-start infinite;
  cursor: pointer;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  opacity: 0;
}

.menu a {
  display: inline-block;
  padding: 12px 40px;
  font-family: 'Parisienne', cursive;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(145deg, #ff66cc, #ff99cc);
  border: 3px solid #fff;
  border-radius: 25px;
  text-decoration: none;
  text-shadow: 1px 1px #c71585;
  box-shadow: 0 0 12px #ff99cc, inset 0 0 8px #fff;
  transition: all 0.3s ease;
}

.menu a:hover {
  background: linear-gradient(145deg, #ff99cc, #ff66cc);
  transform: scale(1.1);
  box-shadow: 0 0 20px #ff66cc, 0 0 30px #ff99cc;
}

/* Fade in when revealed */
.hidden { display: none; }
.fade-in {
  display: flex;
  animation: fade 1.2s ease forwards;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Falling petals */
.petals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("https://tenor.com/view/sakura-leaves-gif-20477378"),
                    url("https://tenor.com/view/sakura-leaves-gif-20477378"),
                    url("https://tenor.com/view/sakura-leaves-gif-20477378");
  background-repeat: repeat;
  animation: fall 15s linear infinite;
  opacity: 0.6;
}

@keyframes fall {
  from { background-position: 0 -100vh, 200px -50vh, 400px -75vh; }
  to   { background-position: 0 100vh, 200px 150vh, 400px 125vh; }
}

/* Story scene */
.story-scene {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sprite {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 80%;
  z-index: 1;
}

/* Textbox */
.textbox {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255, 240, 249, 0.9);
  border-top: 3px solid #ff99cc;
  box-shadow: 0 -4px 15px rgba(255, 182, 224, 0.6);
  padding: 20px;
  font-family: 'Comic Neue', cursive;
  font-size: 1.2rem;
  color: #7a1566;
  z-index: 2;
}

.textbox p {
  margin: 0 0 10px;
}

.textbox button {
  background: linear-gradient(145deg, #ff66cc, #ff99cc);
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-family: 'Parisienne', cursive;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 5px #c71585;
  box-shadow: 0 0 10px #ff99cc;
  transition: all 0.3s ease;
}

.textbox button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #ff66cc, 0 0 30px #ff99cc;
}
