* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #000;
  font-family: 'Outfit', system-ui, sans-serif;
  color: #fff;
}

button {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

button:focus,
button:focus-visible {
  outline: none;
  box-shadow: none;
}

canvas {
  display: block;
  touch-action: none;
}

.title-container {
  position: fixed;
  top: 26px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  animation: fadeInDown 1.8s ease-out;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff9a9e, #fecfef, #ff9a9e, #fecfef);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 105, 180, 0.45));
}

.date {
  margin-top: 8px;
  font-size: clamp(0.72rem, 1.7vw, 0.88rem);
  letter-spacing: 2.5px;
  color: rgba(255, 192, 203, 0.55);
  font-weight: 300;
}

.days-counter {
  margin-top: 13px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  color: #ffb6c1;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.days-counter strong {
  color: #ff9ec7;
  font-weight: 500;
}

.controls {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 182, 193, 0.35);
  color: #ffc0cb;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 28px rgba(255, 105, 180, 0.12);
  font-weight: 300;
}

.btn:hover {
  background: rgba(255, 105, 180, 0.22);
  border-color: #ff69b4;
  transform: scale(1.05);
  box-shadow: 0 10px 36px rgba(255, 105, 180, 0.3);
}

.btn span {
  font-size: 1.15rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(160deg, #1f0f18 0%, #2a1522 100%);
  border: 1px solid rgba(255, 182, 193, 0.25);
  border-radius: 20px;
  width: min(92vw, 540px);
  height: 85vh;
  max-height: 85vh;
  padding: 36px 30px 30px;
  position: relative;
  box-shadow: 
    0 25px 60px rgba(255, 20, 147, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(50px) scale(0.92);
  transition: all 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 182, 193, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: #ffb6c1;
  letter-spacing: 3px;
}

.message-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 182, 193, 0.15);
  border-radius: 14px;
  padding: 24px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ffe4e9;
  white-space: pre-wrap;
  font-weight: 300;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.message-box::-webkit-scrollbar {
  width: 4px;
}
.message-box::-webkit-scrollbar-track {
  background: transparent;
}
.message-box::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(30, 10, 20, 0.85);
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9a9e;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.3s;
  line-height: 1;
  z-index: 5;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #ff69b4;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -40px;
  font-size: 18px;
  opacity: 0;
  animation: floatHeart linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.55));
}

.shooting-star {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 200, 220, 0.8);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  10% { opacity: 0.85; }
  90% { opacity: 0.65; }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.playlist-menu {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 10, 20, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 18px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
  min-width: 240px;
  box-shadow: 0 15px 40px rgba(255, 20, 147, 0.2);
}

.playlist-menu.active {
  display: flex;
  animation: fadeInUp 0.35s ease;
}

.song-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 182, 193, 0.2);
  color: #ffc0cb;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  font-family: 'Outfit', sans-serif;
}

.song-btn:hover {
  background: rgba(255, 105, 180, 0.25);
  border-color: #ff69b4;
  transform: scale(1.02);
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.foto-perfil {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 182, 193, 0.6);
  box-shadow: 0 0 25px rgba(255, 105, 180, 0.4);
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.foto-carta {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.now-playing {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(30, 10, 20, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 18px;
  padding: 12px 16px 12px 12px;
  display: none;
  align-items: center;
  gap: 14px;
  z-index: 25;
  min-width: 240px;
  box-shadow: 0 10px 35px rgba(255, 20, 147, 0.18);
  animation: fadeInUpLeft 0.35s ease;
}

.now-playing.active {
  display: flex;
}

.now-playing-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.now-playing-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.now-playing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #ffb6c1;
  margin: 0;
  letter-spacing: 0.5px;
}

.now-playing-artist {
  font-size: 0.72rem;
  color: rgba(255, 192, 203, 0.55);
  margin: 0;
}

.now-playing-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.now-playing .pause-btn {
  background: none;
  border: none;
  color: #ffc0cb;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.now-playing-controls input[type="range"] {
  flex: 1;
  height: 4px;
  appearance: none;
  background: rgba(255, 182, 193, 0.25);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.now-playing-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ff9ec7;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.now-playing-controls input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ff9ec7;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

@keyframes fadeInUpLeft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MENÚ DE CARTAS ===== */
.cartas-menu {
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent, black 20px, black calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20px, black calc(100% - 12px), transparent);
}

.cartas-menu::-webkit-scrollbar {
  width: 4px;
}
.cartas-menu::-webkit-scrollbar-track {
  background: transparent;
}
.cartas-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 10px;
}

.cartas-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #ffb6c1;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.cartas-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
  padding-bottom: 10px;
}

.carta-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 182, 193, 0.25);
  color: #ffc0cb;
  padding: 17px 24px;
  border-radius: 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
}

.carta-btn:hover {
  background: rgba(255, 105, 180, 0.22);
  border-color: #ff69b4;
  transform: scale(1.03);
}

.carta-btn:focus,
.carta-btn:focus-visible,
.carta-btn:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.carta-individual {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.back-btn {
  background: none;
  border: none;
  color: #ff9a9e;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 12px;
  text-align: left;
  padding: 10px 0;
  letter-spacing: 1px;
}

.back-btn:hover {
  color: #ff69b4;
}