/* ---------------------------------------------------------------
   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: #2b2b2b;
  background: #fafaf8;
  min-height: 100%;
  min-height: 100dvh;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.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: #8a8a8a;
  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;
  color: #1f1f1f;
}

.subtitle {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #6b6b6b;
  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: 1rem;
  background: #fff;
  border: 1px solid #e8e6e1;
  padding: 0.75rem;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
  animation: rise-in 0.8s ease 0.4s both;
}

.photo-card:hover {
  transform: 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: #4a4a4a;
  text-align: center;
  padding-top: 0.75rem;
  margin: 0;
}

.song-button {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  border-radius: 9999px;
  background: #1f1f1f;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.25);
  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: #9a9a9a;
}

.note {
  margin-top: 4rem;
  width: 100%;
  max-width: 42rem;
  border-radius: 1rem;
  border: 1px solid #e8e6e1;
  background: #ffffff;
  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: #4a4a4a;
  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: #2b2b2b;
}

@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: #4a4a4a;
  padding-top: 0.5rem;
  margin-bottom: 0 !important;
}

.footer-note {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9a9a9a;
  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: #1f1f1f;
  margin: 0 0 0.25rem;
}

.siblings-subtitle {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: #6b6b6b;
  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: 1rem;
  border: 1px solid #e8e6e1;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
}

.sib-note-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a4a4a;
  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: #2b2b2b;
  margin: 0;
}

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