/* ================================================= */
/* RESET & BASE                                        */
/* ================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --rose-50:  #fff5f7;
  --rose-100: #fde4ea;
  --rose-200: #f8c6d2;
  --rose-300: #eea0b3;
  --rose-400: #d87a93;
  --rose-500: #c55a78;
  --rose-600: #9f3f5a;
  --rose-700: #75283f;

  --cream:    #fdf6ec;
  --paper:    #f5ead1;
  --ink:      #3a2516;
  --ink-soft: #5a3a25;

  --blush-bg-1: #1a0c16;
  --blush-bg-2: #2a1020;
  --blush-bg-3: #3d1a2a;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(197, 90, 120, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(216, 122, 147, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, var(--blush-bg-1) 0%, var(--blush-bg-2) 50%, var(--blush-bg-3) 100%);
  color: var(--cream);
  user-select: none;
  -webkit-user-select: none;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.hidden { display: none !important; }
button { font-family: inherit; }

/* ================================================= */
/* OVERLAY ROTASI                                      */
/* ================================================= */
.rotate-overlay {
  position: fixed;
  inset: 0;
  background: #0a0509;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--rose-200);
}

.rotate-content { padding: 2rem; max-width: 320px; }

.rotate-icon {
  width: 70px;
  height: 70px;
  color: var(--rose-300);
  animation: rotate-device 2.4s ease-in-out infinite;
}

.rotate-arrow-wrap { margin: 0.8rem 0; }

.rotate-arrow {
  width: 36px;
  height: 36px;
  color: var(--rose-400);
  animation: soft-pulse 1.8s ease-in-out infinite;
}

.rotate-text {
  font-size: 1.25rem;
  margin-top: 0.8rem;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.rotate-text strong { color: var(--rose-300); font-weight: 700; }

.rotate-subtext {
  font-size: 1rem;
  color: var(--rose-200);
  margin-top: 0.3rem;
  font-style: italic;
  opacity: 0.75;
}

@keyframes rotate-device {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

@keyframes soft-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (orientation: portrait) {
  .rotate-overlay { display: flex; }
  .main-stage,
  .side-controls,
  .intro-overlay { display: none !important; }
}

/* ================================================= */
/* INTRO OVERLAY                                       */
/* ================================================= */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 7, 0.93);
  /* backdrop-filter removed — heavy GPU cost */
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  animation: intro-float 3.2s ease-in-out infinite;
  padding: 0 2rem;
}

.intro-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  color: var(--rose-300);
}

.ornament-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.ornament-heart {
  width: 26px;
  height: 26px;
  animation: heart-beat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(238, 160, 179, 0.6));
}

.intro-text {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--cream);
  letter-spacing: 1px;
  line-height: 1;
}

.intro-subtext {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-200);
  margin-top: 0.6rem;
  opacity: 0.85;
  letter-spacing: 2px;
}

@keyframes intro-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.18); }
  50% { transform: scale(1); }
  75% { transform: scale(1.12); }
}

/* ================================================= */
/* SIDE CONTROLS (Fixed Pojok Kanan)                   */
/* ================================================= */
.side-controls {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 8, 18, 0.88);
  /* backdrop-filter removed — sangat berat di mobile */
  border: 1px solid rgba(238, 160, 179, 0.35);
  color: var(--rose-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.ctrl-btn:hover {
  background: rgba(238, 160, 179, 0.22);
  border-color: rgba(238, 160, 179, 0.7);
  transform: scale(1.06);
}

/* Music button state */
.music-toggle .music-icon-pause { display: none; }
.music-toggle.paused .music-icon-play { display: none; }
.music-toggle.paused .music-icon-pause { display: inline-block; }

/* Close button */
.close-btn {
  background: rgba(197, 90, 120, 0.2);
  border-color: rgba(238, 160, 179, 0.5);
  animation: close-appear 0.3s ease;
}

.close-btn:hover {
  background: rgba(197, 90, 120, 0.55);
  transform: scale(1.08) rotate(90deg);
}

@keyframes close-appear {
  from { opacity: 0; transform: translateY(-10px) scale(0.7); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* YouTube player tersembunyi */
.youtube-hidden {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ================================================= */
/* MAIN STAGE                                          */
/* ================================================= */
.main-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  contain: paint; /* Batasi area repaint hanya dalam elemen ini */
}

/* Latar hati mengambang */
.hearts-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.heart-float {
  position: absolute;
  bottom: -40px;
  width: 16px;
  height: 16px;
  background-color: var(--rose-300);
  opacity: 0.35;
  transform: rotate(-45deg);
  animation: heart-rise 14s linear infinite;
  will-change: transform; /* Pre-composite di GPU */
}

/* Pause hati saat modal terbuka — dikendalikan JS */
.hearts-paused .heart-float {
  animation-play-state: paused;
}

.heart-float::before,
.heart-float::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: inherit;
  border-radius: 50%;
}

.heart-float::before { top: -8px; left: 0; }
.heart-float::after  { top: 0;  left: 8px; }

.heart-float:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 16s; }
.heart-float:nth-child(2) { left: 22%; animation-delay: 3s;   animation-duration: 18s; transform: rotate(-45deg) scale(0.7); }
.heart-float:nth-child(3) { left: 42%; animation-delay: 6s;   animation-duration: 14s; }
.heart-float:nth-child(4) { left: 62%; animation-delay: 2s;   animation-duration: 20s; transform: rotate(-45deg) scale(0.85); }
.heart-float:nth-child(5) { left: 78%; animation-delay: 8s;   animation-duration: 17s; }
.heart-float:nth-child(6) { left: 92%; animation-delay: 5s;   animation-duration: 15s; transform: rotate(-45deg) scale(0.6); }

@keyframes heart-rise {
  0%   { bottom: -40px; opacity: 0; }
  15%  { opacity: 0.4; }
  85%  { opacity: 0.4; }
  100% { bottom: 110%; opacity: 0; }
}

/* Stage dim */
.stage-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.stage-dim.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================= */
/* KARAKTER (jarak lebih lebar)                        */
/* ================================================= */
.chars-container {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 60px;
  width: 100%;
  max-width: 980px;
  z-index: 2;
  pointer-events: none;
}

.char-wrap {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.char {
  height: 65vh;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  will-change: transform; /* GPU layer untuk animasi float */
}

/* Hover image selalu terlihat di bawah */
.char-hover {
  position: absolute;
  top: 0;
  left: 0;
}

/* Default image ditumpuk di atas hover image */
.char-default {
  position: relative;
  z-index: 1;
  opacity: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Hover image — glow effect saat muncul */
.char-hover {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: filter 0.5s ease;
}

/* Desktop: hover */
@media (hover: hover) {
  .char-wrap:hover .char-default {
    opacity: 0;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)) blur(2px);
  }
  .char-wrap:hover .char-hover {
    filter: drop-shadow(0 0 20px rgba(238, 160, 179, 0.7))
            drop-shadow(0 0 40px rgba(197, 90, 120, 0.4))
            drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  }
}

/* Mobile/touch: klik toggle via class */
.char-wrap.active .char-default {
  opacity: 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)) blur(2px);
}

.char-wrap.active .char-hover {
  filter: drop-shadow(0 0 20px rgba(238, 160, 179, 0.7))
          drop-shadow(0 0 40px rgba(197, 90, 120, 0.4))
          drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.char-wrap-1 .char {
  animation: float-char 3.8s ease-in-out infinite;
}

.char-wrap-2 .char {
  animation: float-char 3.8s ease-in-out infinite;
  animation-delay: -1.9s;
}

@keyframes float-char {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ================================================= */
/* PARTIKEL / BUNGA                                    */
/* ================================================= */
.partikel-btn {
  position: absolute;
  top: 8%;
  left: 50%;
  /* Gunakan CSS individual property 'translate' bukan transform
     agar tidak conflict dengan 'rotate' animasi di child */
  translate: -50% 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  filter: drop-shadow(0 0 20px rgba(238, 160, 179, 0.7));
  transition: filter 0.4s ease;
  animation: partikel-float 3.2s ease-in-out infinite;
}

.partikel-btn:hover {
  filter: drop-shadow(0 0 30px rgba(238, 160, 179, 0.95));
}

.partikel-img {
  height: 140px;
  width: auto;
  display: block;
  /* Gunakan CSS individual property 'rotate' — tidak konflik dengan translate parent */
  animation: partikel-rotate 18s linear infinite;
  transform-origin: center center;
  will-change: rotate;
}

/* Float menggunakan CSS 'translate' property — independen dari 'rotate' child */
@keyframes partikel-float {
  0%, 100% { translate: -50% 0; }
  50%       { translate: -50% -14px; }
}

/* Rotate menggunakan CSS 'rotate' property — independen dari 'translate' parent */
@keyframes partikel-rotate {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* ================================================= */
/* ICONS CONTAINER                                     */
/* ================================================= */
.icons-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 3.5rem;
  z-index: 300;
  animation: icons-appear 0.6s ease forwards;
}

.icons-container.hidden { display: none; }

@keyframes icons-appear {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.icons-container.closing {
  animation: icons-disappear 0.4s ease forwards;
}

@keyframes icons-disappear {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

.icon-btn {
  background: rgba(40, 15, 30, 0.75);
  /* backdrop-filter dihapus — sangat berat di mobile */
  border: 1px solid rgba(238, 160, 179, 0.5);
  border-radius: 18px;
  padding: 1.6rem 2rem;
  cursor: pointer;
  color: var(--cream);
  min-width: 140px;
  transition: transform 0.3s ease, background 0.3s ease;
  animation: icon-float 3.2s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn:nth-child(2) { animation-delay: -1.6s; }

.icon-btn:hover {
  transform: translateY(-10px);
  background: rgba(238, 160, 179, 0.18);
  border-color: var(--rose-300);
  box-shadow: 0 12px 35px rgba(216, 122, 147, 0.45);
}

.icon-svg {
  width: 44px;
  height: 44px;
  color: var(--rose-200);
}

.icon-btn:hover .icon-svg { color: var(--cream); }

.icon-label {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--rose-100);
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ================================================= */
/* MODAL                                               */
/* ================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 8, 0.93);
  /* backdrop-filter removed — heavy GPU cost on mobile */
  animation: fade-in 0.35s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================================================= */
/* SURAT                                               */
/* ================================================= */
.surat-wrapper {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: surat-appear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.surat-wrapper::-webkit-scrollbar { width: 5px; }
.surat-wrapper::-webkit-scrollbar-thumb { background: rgba(120, 80, 40, 0.3); border-radius: 3px; }

.surat-paper {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse at top left, rgba(255, 240, 210, 0.6), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(220, 190, 140, 0.4), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #eadfc3 100%);
  color: var(--ink);
  padding: 2rem 2.2rem 2rem;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

@keyframes surat-appear {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.paper-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paper-salam {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rose-700);
  line-height: 1.3;
}

.paper-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
  text-align: justify;
  white-space: pre-wrap;
  text-indent: 1.2rem;
}

.paper-closing {
  text-align: right;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(120, 80, 40, 0.15);
}

.closing-sign {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--rose-700);
}

/* ================================================= */
/* FOTO GALLERY                                        */
/* ================================================= */
.foto-wrapper {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 620px;
  height: 75vh;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.foto-gallery {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: foto-appear 0.5s ease;
}

@keyframes foto-appear {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.foto-gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  padding: 10px 10px 40px;
  background: linear-gradient(180deg, #fdf6ec 0%, #f5ead1 100%);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
  transform: rotate(-1deg);
}

.foto-gallery img.active { display: block; }

.foto-judul {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--rose-100);
  text-align: center;
  letter-spacing: 0.5px;
  min-height: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: foto-judul-appear 0.4s ease;
}

.foto-judul:empty { display: none; }

@keyframes foto-judul-appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.foto-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: rgba(10, 5, 9, 0.6);
  padding: 0.4rem 1.3rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(238, 160, 179, 0.3);
}

.foto-nav.hidden { display: none; }

.foto-nav button {
  background: rgba(253, 228, 234, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.foto-nav button svg { width: 16px; height: 16px; }

.foto-nav button:hover { background: var(--rose-500); }

#foto-counter {
  color: var(--rose-100);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  letter-spacing: 1px;
}

/* ================================================= */
/* RESPONSIVE LANDSCAPE MOBILE                         */
/* ================================================= */
@media (orientation: landscape) and (max-height: 500px) {
  .char {
    height: 78vh;
    max-height: 360px;
  }

  .chars-container { gap: 40px; max-width: 720px; }

  /* Matikan animasi float karakter di landscape — hemat GPU */
  .char-wrap-1 .char,
  .char-wrap-2 .char {
    animation: none;
  }

  /* Sederhanakan drop-shadow karakter */
  .char-default { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
  .char-hover   { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }

  /* Partikel: hanya rotate, tidak float. Kurangi shadow */
  .partikel-btn {
    animation: none;
    translate: -50% 0; /* Konsisten dengan base CSS yang kini pakai translate property */
    filter: drop-shadow(0 0 14px rgba(238, 160, 179, 0.6));
    top: 4%;
  }
  .partikel-img { height: 90px; }

  .icon-btn {
    padding: 1rem 1.4rem;
    min-width: 110px;
  }

  .icon-svg { width: 34px; height: 34px; }
  .icon-label { font-size: 1.1rem; }
  .icons-container { gap: 2rem; }

  .intro-text { font-size: 2rem; }
  .intro-subtext { font-size: 0.85rem; }

  .side-controls { top: 12px; right: 12px; gap: 8px; }
  .ctrl-btn { width: 38px; height: 38px; }
  .ctrl-btn svg { width: 17px; height: 17px; }

  .modal { padding: 0.4rem 0.6rem; }

  .surat-wrapper {
    width: 92vw;
    max-width: none;
    max-height: 86vh;
  }

  .surat-paper { padding: 1.2rem 1.4rem; }
  .paper-salam { font-size: 1.05rem; }
  .paper-body  { font-size: 0.95rem; line-height: 1.65; }
  .closing-sign { font-size: 0.9rem; }

  .foto-wrapper {
    position: relative;
    width: 96vw;
    max-width: none;
    height: 92vh;
    max-height: none;
    gap: 0.2rem;
  }

  /* foto-gallery mengisi hampir seluruh tinggi */
  .foto-gallery img {
    padding: 6px 54px 22px; /* horizontal padding agar tidak tertutup tombol */
    max-height: calc(92vh - 36px);
  }

  .foto-judul {
    font-size: 0.8rem;
    min-height: 1rem;
    line-height: 1.2;
  }

  /* Nav overlay di tengah kiri-kanan, bukan di bawah */
  .foto-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 8px;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
    gap: 0;
  }

  .foto-nav button {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(10, 5, 9, 0.7);
    /* backdrop-filter dihapus di landscape — berat di GPU mobile */
    border: 1px solid rgba(238, 160, 179, 0.45);
    border-radius: 50%;
  }

  .foto-nav button svg {
    width: 18px;
    height: 18px;
  }

  /* Sembunyikan counter — jumlah foto sudah terlihat dari judul */
  #foto-counter {
    display: none;
  }

  /* Hapus backdrop-filter tombol kontrol musik/close */
  .ctrl-btn {
    background: rgba(30, 10, 22, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: background 0.2s ease;
  }

  /* Hapus backdrop-filter modal — gunakan background solid */
  .modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 2, 8, 0.92);
    animation: none; /* Skip fade-in animation juga */
  }

  /* Icon btn: pastikan tidak ada animasi float */
  .icon-btn {
    animation: none;
  }
}

/* Petunjuk sementara setelah hadiah dibuka. Posisi bunga tidak berubah. */
.partikel-btn::after {
  content: 'Sentuh bunga di tengah';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: var(--cream);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.partikel-btn.show-hint::after { opacity: 1; }

@media (orientation: landscape) and (max-height: 500px) {
  .partikel-btn::after { top: calc(100% + 3px); font-size: 0.72rem; }
}
