/* Starry beach UI - mobile-first */
:root {
    --max-w: 920px;
    --card-radius: 14px;
    --muted: #b9c8e0;
    --accent: #fff8f0;
  }
  
  /* Reset */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html,body { height: 100%; }
  body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    background: #001833;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  /* Background image full-bleed (fixed) */
  .bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    will-change: transform;
    filter: saturate(0.98);
    -webkit-user-select: none; user-select: none;
  }
  
  .bg-overlay {
    position:absolute;
    inset:0;
    /* darken + slight blur to make cards readable */
    background: linear-gradient(180deg, rgba(1,10,32,0.36), rgba(3,22,50,0.50));
    backdrop-filter: blur(2px) brightness(.95);
  }
  
  /* App container */
  .app {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 22px auto;
    padding: 28px 18px 56px;
  }
  
  /* Header centered */
  .header { text-align: center; margin-bottom: 28px; }
  .title {
    font-size: 1.8rem;
    color: var(--accent);
    text-shadow: 0 8px 34px rgba(0,0,0,0.6);
    line-height: 1.02;
  }
  .subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.98rem;
  }
  
  /* Timeline (right-aligned column like the mockup) */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center; /* push cards to the right */
    padding-right: 4%;
    width: 100%;
  }
  
  /* Card */
  .note {
    width: min(420px, 86%);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--card-radius);
    padding: 16px 18px;
    position: relative;
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.5), 0 2px 6px rgba(255,255,255,0.02) inset;
    backdrop-filter: blur(6px) saturate(110%);
    opacity: 0;
    transform: translateY(18px) scale(.996);
    transition: transform 520ms cubic-bezier(.2,.9,.25,1), opacity 420ms ease;
  }
  
  /* visible state */
  .note.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  /* number in corner */
  .note-number {
    position: absolute;
    right: 12px;
    top: 10px;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  /* content */
  .note h2 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: #fff;
  }
  .note p {
    margin: 0 0 10px 0;
    color: #f0f4ff;
    line-height: 1.45;
  }
  .note small {
    color: var(--muted);
    font-size: 0.85rem;
  }
  
  /* glowing halo behind cards (subtle) */
  .note::before {
    content: "";
    position: absolute;
    inset: -20% -6%;
    z-index: -1;
    border-radius: 30%;
    filter: blur(36px) saturate(120%);
    opacity: 0.75;
    transition: opacity 420ms ease;
    background: radial-gradient(circle at 30% 20%, rgba(255,206,160,0.08), rgba(255,160,160,0.02) 40%, transparent 60%);
  }
  
  /* footer */
  .footer { margin-top:20px; text-align:center; color:var(--muted); font-size:0.92rem; }
  
  /* small screens: slightly center the cards and scale */
  @media (max-width:640px) {
    .timeline { align-items: center; padding-right: 0; }
    .note { width: min(96%, 520px); }
    .title { font-size: 1.45rem; }
  }
  
  /* Shooting star sparkles inside each note */
.note {
  position: relative;
  overflow: hidden; /* keep stars inside the card */
}

/* Create tiny glowing particles */
.note::after,
.note::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    20px 30px rgba(255,255,255,0.8),
    80px 60px rgba(255,255,255,0.4),
    140px 100px rgba(255,255,255,0.6),
    200px 50px rgba(255,255,255,0.8),
    260px 120px rgba(255,255,255,0.5),
    320px 80px rgba(255,255,255,0.7);
  animation: shootStars 6s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

.note::before {
  animation-delay: 3s; /* offset for variety */
  opacity: 0.5;
}

/* Shooting / twinkling animation */
@keyframes shootStars {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translate(200px, 150px) scale(0.9);
    opacity: 0.3;
  }
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.music-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.music-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.music-toggle input {
  display: none;
}

.music-toggle strong {
  color: var(--accent);
  font-weight: 500;
}
