/* ---------------------------------------------------------------
   Birthday Card — plain CSS rebuild (no Tailwind/build step needed)
   --------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  color: #e7dde2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 30, 60, 0.25), transparent 60%),
    linear-gradient(to bottom, #0b0509, #170710, #05030a);
  min-height: 100%;
  min-height: 100dvh;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Anime energy burst / speed lines (pure CSS, decorative only) ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg at 50% 8%,
      rgba(255, 30, 65, 0.10) 0deg 2deg,
      transparent 2deg 10deg);
  mask-image: radial-gradient(ellipse 70% 45% at 50% 8%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 45% at 50% 8%, black 0%, transparent 70%);
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Balloons & confetti (background layers) ---------- */

.balloons {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  touch-action: none;
}

.balloon {
  position: absolute;
  bottom: 0;
  animation: float-up linear infinite;
}

.balloon-body {
  border-radius: 50%;
}

.balloon-string {
  margin: 0 auto;
  height: 2rem;
  width: 1px;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  touch-action: none;
}

.confetti-piece {
  position: absolute;
  top: 0;
  animation: confetti-fall ease-in forwards;
}

@keyframes float-up {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes confetti-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .page { padding: 5rem 1.5rem; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #ff2d55;
  text-shadow: 0 0 12px rgba(255, 45, 85, 0.7);
  margin: 0;
  animation: fade-down 0.6s ease both;
}

.title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 0.95;
  margin: 1rem 0 0;
  animation: pop-in 0.7s ease 0.1s both;
}

@media (min-width: 768px) {
  .title { font-size: 6rem; }
}

.title-name {
  display: block;
  margin-top: 0.25rem;
  background: linear-gradient(to right, #ff0844, #ff6a00, #ffce00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 40, 60, 0.55));
}

.subtitle {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #3ddcff;
  text-shadow: 0 0 10px rgba(61, 220, 255, 0.4);
  margin-top: 1rem;
  animation: fade-in 0.6s ease 0.35s both;
}

@media (min-width: 768px) {
  .subtitle { font-size: 1.875rem; }
}

.photo-card {
  margin-top: 2.5rem;
  width: 280px;
  border-radius: 1.6rem;
  background: #140911;
  border: 1px solid rgba(255, 45, 85, 0.35);
  padding: 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(255, 20, 60, 0.55), 0 0 40px -10px rgba(255, 45, 85, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
  animation: rise-in 0.8s ease 0.4s both;
}

.photo-card:hover {
  transform: rotate(0deg) scale(1.02);
}

@media (min-width: 768px) {
  .photo-card { width: 340px; }
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.1rem;
  display: block;
}

.photo-caption {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #ff2d55;
  text-align: center;
  padding-top: 0.75rem;
  margin: 0;
}

.song-button {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 45, 85, 0.6);
  border-radius: 9999px;
  background: #150910;
  color: #ff2d55;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 10px 25px -5px rgba(255, 20, 60, 0.5), 0 0 25px -5px rgba(255, 45, 85, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
  animation: rise-in 0.6s ease 0.6s both;
}

.song-button:hover {
  transform: translateY(-2px);
}

.song-button:active {
  transform: scale(0.97);
}

.song-button .cake-icon {
  transition: transform 0.2s ease;
}

.song-button:hover .cake-icon {
  transform: rotate(12deg);
}

.song-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #9a7180;
}

.note {
  margin-top: 4rem;
  width: 100%;
  max-width: 42rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 45, 85, 0.3);
  background: rgba(20, 9, 15, 0.75);
  box-shadow: 0 0 40px -15px rgba(255, 30, 60, 0.4);
  backdrop-filter: blur(4px);
  padding: 2rem;
  text-align: left;
  animation: rise-in 0.7s ease both;
}

@media (min-width: 768px) {
  .note { padding: 3rem; }
}

.note-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff2d55;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.note-body {
  font-family: "Fraunces", serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #e7dde2;
}

@media (min-width: 768px) {
  .note-body { font-size: 1.25rem; }
}

.note-body p {
  margin: 0 0 1rem;
}

.note-signoff {
  font-family: "Caveat", cursive;
  font-size: 1.875rem;
  color: #ff2d55;
  padding-top: 0.5rem;
  margin-bottom: 0 !important;
}

.footer-note {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #a3808c;
  font-size: 0.875rem;
}

/* ==============================================
   Ucapan Adik-Beradik (sibling messages)
   Same look as .note, scaled down, stacked & scrollable
   ============================================== */

.siblings {
  margin-top: 3rem;
  width: 100%;
  max-width: 42rem;
  text-align: center;
}

.siblings-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #ff2d55;
  margin: 0 0 0.25rem;
}

.siblings-subtitle {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: #3ddcff;
  margin: 0 0 1.5rem;
}

.siblings-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 30rem;
  overflow-y: auto;
  padding: 0.25rem 0.25rem 0.25rem 0;
  text-align: left;
}

.sib-note {
  flex-shrink: 0;
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 45, 85, 0.3);
  background: rgba(20, 9, 15, 0.75);
  backdrop-filter: blur(4px);
  padding: 1.25rem 1.5rem;
}

.sib-note-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff2d55;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sib-note-heading .icon {
  width: 0.85em;
  height: 0.85em;
}

.sib-note-body {
  font-family: "Fraunces", serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #e7dde2;
  margin: 0;
}

.sib-note-signoff {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: #3ddcff;
  text-align: right;
  padding-top: 0.4rem;
  margin: 0.4rem 0 0;
}
