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

/* Music Toggle Button */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 107, 138, 0.2);
  border: 2px solid #ff6b8a;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.music-btn:hover {
  background: rgba(255, 107, 138, 0.4);
  transform: scale(1.1);
}

.music-icon {
  font-size: 1.5rem;
  color: #ff6b8a;
}

.music-btn.muted {
  opacity: 0.5;
}

.music-btn.muted .music-icon::after {
  content: "✕";
  font-size: 0.8rem;
  position: absolute;
  margin-left: -8px;
}

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1515 50%, #1a0a0a 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Screens */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease;
}

.screen.active {
  display: flex;
}

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

/* Start Screen */
.start-content {
  text-align: center;
  z-index: 2;
}

.start-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #ff6b8a;
  text-shadow: 0 0 30px rgba(255, 107, 138, 0.5);
}

.subtitle {
  font-size: 1.3rem;
  color: #ffb3c1;
  margin-bottom: 40px;
  font-style: italic;
}

/* Floating Hearts */
.hearts {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.heart {
  position: absolute;
  font-size: 20px;
  color: #ff6b8a;
  opacity: 0.3;
  animation: floatHeart 15s infinite;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 30%; animation-delay: 3s; }
.heart:nth-child(3) { left: 50%; animation-delay: 6s; }
.heart:nth-child(4) { left: 70%; animation-delay: 9s; }
.heart:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes floatHeart {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Button */
.btn {
  background: linear-gradient(135deg, #ff6b8a 0%, #ff8fa3 100%);
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 5px 20px rgba(255, 107, 138, 0.4);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 138, 0.6);
}

/* Game Screen */
#game-screen {
  padding-top: 20px;
  justify-content: flex-start;
}

.chapter-indicator {
  color: #ff8fa3;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.media-container {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 200px;
}

#story-video,
#story-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#story-video.active,
#story-image.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.story-content {
  text-align: center;
  max-width: 600px;
  animation: fadeIn 0.8s ease;
}

#story-title {
  font-size: 2rem;
  color: #ff6b8a;
  margin-bottom: 15px;
}

#story-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0d0d0;
  margin-bottom: 30px;
}

/* Choices */
.choices {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.choice-btn {
  background: rgba(255, 107, 138, 0.1);
  border: 2px solid #ff6b8a;
  padding: 15px 30px;
  font-size: 1rem;
  color: #ff8fa3;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.choice-btn:hover {
  background: rgba(255, 107, 138, 0.3);
  transform: translateX(10px);
}

/* Finale Screen */
.finale-content {
  text-align: center;
  animation: finaleIn 1.5s ease;
}

@keyframes finaleIn {
  0% { opacity: 0; transform: scale(0.8); }
  50% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.finale-hearts {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.finale-hearts span {
  color: #ff6b8a;
  margin: 0 10px;
}

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

.finale-title {
  font-size: 3.5rem;
  color: #ff6b8a;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(255, 107, 138, 0.6);
}

.finale-subtitle {
  font-size: 2rem;
  color: #ffb3c1;
  font-style: italic;
  margin-bottom: 30px;
}

.finale-message {
  background: rgba(255, 107, 138, 0.1);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 107, 138, 0.3);
}

.finale-message p {
  font-size: 1.2rem;
  line-height: 2;
  color: #e0d0d0;
}

.signature {
  margin-top: 20px;
  font-size: 1.5rem !important;
  color: #ff8fa3 !important;
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .start-content h1,
  .finale-title {
    font-size: 2.5rem;
  }

  #story-title {
    font-size: 1.5rem;
  }

  .container {
    padding: 15px;
  }
}
