:root {
  --bg: #0e0e11;
  --card: #17171d;
  --text: #ffffff;
  --sub: #b9b9c3;
  --border: rgba(255,255,255,0.15);
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--bg);
  overflow-x: hidden;
}

/* 🟥⬛ Base romantic gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(120, 0, 28, 0.60), rgba(14,14,17,0.96) 60%),
    linear-gradient(to bottom, rgba(14,14,17,0.75), rgba(14,14,17,0.98));
  z-index: -3;
}

/* 🌸 Lily design layer (drifting + fading) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(circle at center, rgba(14,14,17,0.15), rgba(14,14,17,0.92) 72%),
    url("images/lily.png");

  background-repeat: repeat-x;
  background-size: 180px auto;
  background-position: 0% 60%;

  opacity: 0.22;
  filter: blur(0.3px);

  animation:
    liliesDrift 18s linear infinite,
    liliesPulse 6s ease-in-out infinite;

  /* vignette mask so center stays readable */
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 92%);
  mask-image: radial-gradient(circle at center, #000 55%, transparent 92%);
}

/* Sideways drift */
@keyframes liliesDrift {
  from { background-position: 0% 60%; }
  to   { background-position: 100% 60%; }
}

/* Fade in / out */
@keyframes liliesPulse {
  0%, 100% { opacity: 0.14; }
  50%      { opacity: 0.32; }
}

/* Layout */
.container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

h1 {
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Glass cards */
.card {
  background: rgba(23, 23, 29, 0.88);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.card.message,
.card.song {
  margin-bottom: 16px;
}

.label {
  font-size: 0.85rem;
  color: var(--sub);
  margin-bottom: 6px;
}

.big {
  font-size: 1.4rem;
  font-weight: 700;
}

.footer {
  font-size: 0.75rem;
  color: var(--sub);
  margin-top: 12px;
}

/* 🐧 Penguin next to "thought of you" */
.thought-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.penguin-gif {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  animation: penguinFly 2.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes penguinFly {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.thought-text {
  text-align: left;
}

/* 🎵 Song button */
.song-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.song-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.12);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.song-btn:hover {
  background: rgba(255,255,255,0.20);
}

.song-btn:active {
  transform: scale(0.97);
}

.sub {
  font-size: 0.8rem;
  color: var(--sub);
}

/* 📱 Mobile optimization */
@media (max-width: 520px) {
  .container {
    max-width: 94vw;
    padding: 18px 14px;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 18px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .big {
    font-size: 1.25rem;
  }

  .thought-card {
    justify-content: flex-start;
  }

  .penguin-gif {
    width: 50px;
  }

  /* soften lilies on small screens */
  body::after {
    opacity: 0.16;
    background-size: 160px auto;
    background-position: 0% 62%;
  }
}
