/* ---------- Pembatas ornamen (garis – wajik – garis) ---------- */
.divider { display: block; width: 37cqw; height: 2.6cqw; max-width: 240px; margin: 0 auto; overflow: visible; }

/* ---------- Tombol olive berbingkai emas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  border: 0; border-radius: 999px; text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn--olive {
  position: relative;
  padding: .72em 1.7em .78em;
  color: #FBF4E2;
  font-family: var(--f-body); font-weight: 500; letter-spacing: .01em;
  background: var(--grad-olive);
  box-shadow:
    0 0 0 1.5px #D9BB78,
    0 0 0 3px rgba(255, 246, 222, .65),
    0 0 0 4px rgba(197, 161, 91, .55),
    0 8px 22px -6px rgba(63, 80, 49, .55),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -6px 12px rgba(30, 40, 20, .25);
  transition: transform .35s var(--ease-lux), box-shadow .35s var(--ease-lux);
}
.btn--olive::before { /* kilau kaca di atas */
  content: ''; position: absolute; inset: 2px 10% 52% 10%; border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn--olive::after { /* kilau bergerak */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .35) 50%, transparent 65%) -150% 0 / 220% 100% no-repeat;
  animation: btn-shine 4.5s ease-in-out 2s infinite;
}
.btn--olive:hover { transform: translateY(-1px); }
.btn--olive:active { transform: scale(.97); }
.btn__icon { width: 1.35em; height: 1.35em; color: #E8CD8E; flex: none; }
@keyframes btn-shine { 0%, 60% { background-position: -150% 0; } 100% { background-position: 150% 0; } }

/* ---------- Pil label ---------- */
.pill { display: inline-block; border-radius: 999px; }
.pill--olive {
  position: relative; padding: .38em 1.6em .42em;
  color: #FBF4E2; font-family: var(--f-body); font-size: 4.1cqw;
  background: var(--grad-olive);
  box-shadow: 0 0 0 1.2px #D9BB78, 0 0 0 2.6px rgba(255, 246, 222, .7), 0 0 0 3.4px rgba(197, 161, 91, .45), 0 6px 14px -6px rgba(63, 80, 49, .5);
}
.pill--olive::before, .pill--olive::after { /* ujung runcing seperti di desain */
  content: ''; position: absolute; top: 50%; width: 1.1em; height: 1.1em; background: #4F6237;
  transform: translateY(-50%) rotate(45deg); z-index: -1;
  box-shadow: 0 0 0 1.2px #D9BB78;
}
.pill--olive::before { left: -.42em; }
.pill--olive::after { right: -.42em; }

/* ---------- Bingkai emas berornamen (kartu) ---------- */
.frame-gold {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 252, 244, .92), rgba(252, 245, 232, .9));
  border: 1px solid rgba(197, 161, 91, .75);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 246, .9), inset 0 0 0 5px rgba(197, 161, 91, .45), 0 10px 30px -14px rgba(120, 90, 40, .35);
  border-radius: 6px;
}
.frame-corner { position: absolute; width: 11cqw; height: 11cqw; max-width: 56px; max-height: 56px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23C5A15B' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M4 30C4 15 15 4 30 4'/%3E%3Cpath d='M10 30c0-11 9-20 20-20'/%3E%3Cpath d='M30 4c-6 6-6 14 0 18M4 30c6-6 14-6 18 0'/%3E%3Ccircle cx='17' cy='17' r='3.2' fill='%23C5A15B' stroke='none'/%3E%3Cpath d='M22 22c3 1 6 4 7 7M23 13c3 0 6 2 8 5M13 23c0 3 2 6 5 8'/%3E%3C/svg%3E") center / contain no-repeat; }
.frame-corner.tl { top: -4px; left: -4px; }
.frame-corner.tr { top: -4px; right: -4px; transform: scaleX(-1); }
.frame-corner.bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.frame-corner.br { bottom: -4px; right: -4px; transform: scale(-1); }

/* ---------- Lentera gantung ---------- */
.lantern { position: absolute; transform-origin: 50% 0; animation: lantern-sway 6s ease-in-out infinite; }
.lantern__chain {
  position: absolute; left: 50%; top: 0; width: 1.5px; transform: translateX(-50%);
  height: var(--chain, 40px);
  background: repeating-linear-gradient(180deg, #B48C46 0 3px, #E2C482 3px 5px, transparent 5px 6px);
}
.lantern__body { position: absolute; left: 0; right: 0; top: var(--chain, 40px); display: block; }
.lantern__body img { width: 100%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 4px 6px rgba(120, 80, 20, .25)); }
.lantern__glow {
  position: absolute; z-index: 0; left: 50%; top: 58%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 130, .55) 0%, rgba(255, 210, 120, .22) 30%, rgba(255, 220, 150, 0) 62%);
  mix-blend-mode: screen; pointer-events: none;
  animation: lantern-flicker 3.2s ease-in-out infinite;
}
@keyframes lantern-sway { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
@keyframes lantern-flicker { 0%, 100% { opacity: .85; } 40% { opacity: 1; } 55% { opacity: .78; } 70% { opacity: .95; } }

/* ---------- Kupu-kupu ---------- */
.butterfly { position: absolute; pointer-events: none; animation: bf-float 9s ease-in-out infinite; }
.butterfly img { width: 100%; height: auto; transform-origin: 50% 50%; animation: bf-flap .42s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255, 225, 160, .6)); }
@keyframes bf-flap { from { transform: scaleX(1); } to { transform: scaleX(.55); } }
@keyframes bf-float {
  0%, 100% { translate: 0 0; rotate: -4deg; }
  25% { translate: 6px -10px; rotate: 3deg; }
  50% { translate: -4px -18px; rotate: -2deg; }
  75% { translate: -8px -6px; rotate: 5deg; }
}

/* ---------- Ayunan lembut bunga ---------- */
.sway { animation: sway 7s ease-in-out infinite; }
.sway--slow { animation-duration: 10s; }
.sway--rev { animation-direction: reverse; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: .9deg; } }

/* ---------- Kelopak melayang ---------- */
.petals { position: fixed; top: 0; bottom: 0; left: 50%; width: 100%; max-width: var(--col-max); transform: translateX(-50%); z-index: 30; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 2s ease; }
.petals.is-on { opacity: 1; }
.petal { position: absolute; top: -8%; left: var(--x); width: var(--w); animation: petal-fall var(--dur) linear var(--delay) infinite; will-change: transform; }
.petal img { width: 100%; height: auto; animation: petal-spin var(--spin) ease-in-out infinite alternate; opacity: var(--o, .9); }
@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(calc(var(--dx) * .6), 30vh, 0) rotate(calc(var(--rot) * .3)); }
  50% { transform: translate3d(calc(var(--dx) * -.2), 60vh, 0) rotate(calc(var(--rot) * .6)); }
  75% { transform: translate3d(var(--dx), 88vh, 0) rotate(calc(var(--rot) * .85)); }
  100% { transform: translate3d(calc(var(--dx) * .4), 118vh, 0) rotate(var(--rot)); }
}
@keyframes petal-spin { from { transform: rotateX(0deg) rotateY(0deg); } to { transform: rotateX(60deg) rotateY(35deg); } }

/* ---------- Kontrol musik ---------- */
.audio {
  position: fixed; z-index: 60; bottom: max(16px, env(safe-area-inset-bottom));
  right: max(14px, calc((100vw - var(--col-max)) / 2 + 14px));
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease-lux);
}
.audio.is-on { opacity: 1; transform: none; }
.audio__btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: #F3E2B6; background: var(--grad-olive);
  box-shadow: 0 0 0 1.4px #D9BB78, 0 0 0 3px rgba(255, 246, 222, .7), 0 6px 16px -4px rgba(40, 50, 25, .5);
}
.audio__btn svg { width: 18px; height: 18px; }
.audio__mute { width: 34px; height: 34px; margin: 0 auto; }
.audio__mute svg { width: 15px; height: 15px; }
.audio .ic-play, .audio.is-paused .ic-pause, .audio .ic-mute, .audio.is-muted .ic-vol { display: none; }
.audio.is-paused .ic-play, .audio.is-muted .ic-mute { display: block; }
.audio.is-playing .audio__play { animation: disc 6s linear infinite; }
@keyframes disc { 50% { box-shadow: 0 0 0 1.4px #D9BB78, 0 0 0 3px rgba(255, 246, 222, .7), 0 0 18px 2px rgba(231, 211, 164, .7); } }

/* ---------- Reveal umum (state awal diatur JS) ---------- */
.no-motion .reveal, .no-motion .reveal-line { opacity: 1 !important; transform: none !important; }
