:root{
  --cream:#FFF6ED;
  --blush:#FFD3E0;
  --plum:#4A2545;
  --lav:#C9B6FF;
  --gold:#FFC24B;
  --line:#f0d9c7;
}
html{-webkit-text-size-adjust:100%;}
*{box-sizing:border-box;}
body{
  margin:0;
  background:
    radial-gradient(circle at 15% 10%, #ffe3ee 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, #e6d9ff 0%, transparent 45%),
    var(--cream);
  font-family:'Nunito', sans-serif;
  color:var(--plum);
  padding:clamp(16px, 6vw, 28px) clamp(12px, 5vw, 16px) 60px;
  min-height:100vh;
  overflow-x:hidden;
}
.wrap{max-width:480px;margin:0 auto;width:100%;}

.title{
  font-family:'Baloo 2', sans-serif;
  font-weight:800;
  font-size:clamp(1.5rem, 7vw, 2rem);
  text-align:center;
  margin:0 0 4px;
  color:var(--plum);
}
.subtitle{
  text-align:center;
  font-size:clamp(0.82rem, 3.6vw, 0.95rem);
  color:#8a6a80;
  margin:0 0 clamp(20px, 6vw, 28px);
  padding:0 8px;
}

/* 3D card */
.stage{
  perspective:900px;
  margin:0 auto 24px;
  width:min(220px, 58vw);
  height:min(280px, 74vw);
}
.card3d{
  width:100%;height:100%;
  position:relative;
  transform-style:preserve-3d;
  transition:transform 0.15s ease-out;
  cursor:grab;
  border-radius:22px;
  box-shadow:0 25px 40px -15px rgba(74,37,69,0.35);
}
.face{
  position:absolute;inset:0;
  border-radius:22px;
  background:linear-gradient(155deg, var(--blush) 0%, var(--lav) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.face::after{
  content:'';
  position:absolute;left:0;right:0;bottom:0;height:55%;
  background:linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  pointer-events:none;
}
.photo-fill{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  transform:translateZ(30px);
}
.face.empty .photo-fill{display:none;}
.face.empty::after{display:none;}
.photo-empty-hint{
  display:none;
  flex-direction:column;
  align-items:center;
  gap:8px;
  font-size:2.2rem;
  text-align:center;
  padding:0 20px;
  transform:translateZ(30px);
}
.photo-empty-hint span{
  font-size:0.8rem;
  font-weight:700;
  color:var(--plum);
}
.face.empty .photo-empty-hint{display:flex;}
.card-name{
  position:absolute;
  bottom:16px;left:0;right:0;
  text-align:center;
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:1.3rem;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,0.35);
  transform:translateZ(50px);
  letter-spacing:0.5px;
}
.hint{
  text-align:center;
  font-size:0.78rem;
  color:#a98ba0;
  margin-top:10px;
}

section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:clamp(16px, 5vw, 20px) clamp(16px, 5vw, 20px) clamp(18px, 5vw, 22px);
  margin-bottom:16px;
  width:100%;
}
h2{
  font-family:'Baloo 2', sans-serif;
  font-size:clamp(1.02rem, 4.2vw, 1.15rem);
  margin:0 0 12px;
  color:var(--plum);
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
h2 .dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--gold);
  display:inline-block;
}
p{line-height:1.6; margin:0 0 10px; font-size:0.97rem;}
p:last-child{margin-bottom:0;}

.joke{
  background:var(--cream);
  border-radius:14px;
  padding:12px 14px;
  font-size:0.93rem;
  margin-bottom:10px;
  border-left:4px solid var(--gold);
}
.joke:last-child{margin-bottom:0;}

/* SONGS */
.songlist{display:flex;flex-direction:column;}
.song{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
}
.song:last-child{border-bottom:none;padding-bottom:0;}
.song.active .song-title{color:#a8763f;}
.play-btn{
  width:34px;height:34px;
  border-radius:50%;
  border:none;
  background:var(--lav);
  color:#fff;
  font-size:0.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  cursor:pointer;
  transition:transform 0.15s ease;
}
.play-btn:active{transform:scale(0.9);}
.song.active .play-btn{background:var(--gold);}
.song-info{flex:1;min-width:0;}
.song-title{font-weight:700;font-size:0.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.song-artist{font-size:0.82rem;color:#8a6a80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.song-num{
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:1rem;
  color:var(--line);
  width:20px;
  text-align:right;
  flex-shrink:0;
}
.player-box{margin-top:14px;}
.player-box audio{
  width:100%;
  border-radius:14px;
}

/* GALLERY */
.gallery{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}
.photo-slot{
  flex:0 0 62%;
  aspect-ratio:4/5;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(155deg, var(--blush), var(--lav));
  scroll-snap-align:start;
  position:relative;
}
.photo-slot img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.photo-slot.empty img{display:none;}
.photo-slot.empty::before{
  content:'📷 taruh foto di sini';
  position:absolute;inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  font-size:0.85rem;
  font-weight:700;
  color:rgba(74,37,69,0.55);
}

/* TIMELINE */
.timeline{position:relative;padding-left:22px;}
.timeline::before{
  content:'';
  position:absolute;
  left:5px;top:4px;bottom:4px;
  width:2px;
  background:var(--line);
}
.tl-item{position:relative;padding-bottom:20px;}
.tl-item:last-child{padding-bottom:0;}
.tl-item::before{
  content:'';
  position:absolute;
  left:-22px;top:4px;
  width:12px;height:12px;
  border-radius:50%;
  background:var(--gold);
  border:2px solid #fff;
  box-shadow:0 0 0 2px var(--line);
}
.tl-time{
  font-family:'Baloo 2', sans-serif;
  font-weight:700;
  font-size:0.85rem;
  color:var(--lav);
  margin-bottom:2px;
}
.tl-title{font-weight:700;font-size:0.97rem;margin-bottom:2px;}
.tl-desc{font-size:0.88rem;color:#7a5c72;line-height:1.5;}

/* MAP */
.map-embed{margin-bottom:14px;}
.map-embed iframe{width:100%;border:0;border-radius:14px;display:block;}
.map-placeholder{
  width:100%;
  min-height:160px;
  border-radius:14px;
  border:2px dashed var(--line);
  background:var(--cream);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:1.8rem;
}
.map-placeholder span{
  font-size:0.82rem;
  font-weight:700;
  color:#a98ba0;
  text-align:center;
  padding:0 20px;
}
.maps-btns{display:flex;flex-direction:column;gap:10px;}
.maps-btn{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px 14px;
  text-decoration:none;
  color:var(--plum);
  font-weight:700;
  font-size:0.93rem;
  transition:transform 0.15s ease;
}
.maps-btn:active{transform:scale(0.97);}
.maps-btn .emoji{font-size:1.3rem;}
.maps-note{
  font-size:0.8rem;
  color:#8a6a80;
  margin-top:12px;
  line-height:1.6;
}
.maps-note code{
  background:var(--cream);
  padding:1px 5px;
  border-radius:6px;
  font-size:0.78rem;
  word-break:break-all;
}
.map-label{
  font-weight:700;
  font-size:0.88rem;
  margin-bottom:8px;
  color:var(--plum);
}
.map-label span{
  font-weight:400;
  color:#8a6a80;
  font-size:0.82rem;
}

footer{
  text-align:center;
  font-size:0.85rem;
  color:#b399a8;
  margin-top:10px;
}

/* ---- responsive tweaks ---- */
@media (max-width:380px){
  .photo-slot{flex:0 0 78%;}
  .play-btn{width:30px;height:30px;font-size:0.75rem;}
  .maps-btn{font-size:0.86rem;padding:11px 12px;}
  .timeline{padding-left:18px;}
  .tl-item::before{left:-18px;}
}
@media (min-width:600px){
  .gallery{gap:14px;}
  .photo-slot{flex:0 0 40%;}
}
@media (prefers-reduced-motion: reduce){
  .card3d, .maps-btn, .play-btn{transition:none;}
}
