/* Halaman /undangan/ selama tahap pengembangan: rambu dibangun, banner animasi, dan lampu strobo kuning. */
.segera { overflow-x: hidden; }
.segera-page { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; }

.hazard { position: fixed; left: 0; right: 0; z-index: 2; height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--ink) 16px 32px); }
.hazard.top { top: 0; }
.hazard.bottom { bottom: 0; }

.sign-bg { position: fixed; right: -60px; bottom: -40px; z-index: 0; width: min(560px, 70vw); opacity: 0.16; transform: rotate(-8deg); pointer-events: none; }
.sign-bg svg { display: block; width: 100%; height: auto; }

.stage { position: relative; margin: 8px auto 24px; padding-top: 34px; }
.banner { display: block; width: 100%; height: auto; overflow: visible; }
.banner g { transform-box: fill-box; transform-origin: center; }
.tri { animation: tri-in 700ms cubic-bezier(.2, .9, .3, 1.2) both; }
.ribbon { animation: ribbon-in 700ms cubic-bezier(.2, .8, .2, 1) 250ms both; }
.tag { animation: tag-in 500ms cubic-bezier(.3, 1.4, .5, 1) 800ms both; }
.tuned { animation: pop-in 450ms cubic-bezier(.3, 1.6, .5, 1) 1100ms both, wiggle 3.2s ease-in-out 2s infinite; }
.stage .banner { animation: bob 4.5s ease-in-out 1.6s infinite; }

@keyframes tri-in { from { transform: scale(0.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ribbon-in { from { transform: translateX(-120%) skewX(-10deg); } to { transform: none; } }
@keyframes tag-in { from { transform: translateY(-40px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: scale(0); } to { transform: none; } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0deg); } 85% { transform: rotate(-5deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-2deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* Lampu strobo: dua kedipan per detik, di bawah batas aman tiga kedipan per detik. */
.beacon { position: absolute; top: 0; z-index: 2; width: 44px; height: 38px; }
.beacon.left { left: 6%; }
.beacon.right { right: 6%; }
.beacon::before { content: ""; position: absolute; left: 6px; right: 6px; top: 0; height: 30px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 6px 6px; background: #ffb300; animation: strobe 500ms steps(1, end) infinite; }
.beacon.right::before { animation-delay: 250ms; }
.beacon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border: 2px solid var(--ink); border-radius: 4px; background: #2b2f45; }
.beam { position: absolute; left: 50%; top: 15px; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 196, 0, 0.32) 0deg, rgba(255, 196, 0, 0) 32deg, rgba(255, 196, 0, 0) 180deg, rgba(255, 196, 0, 0.32) 180deg, rgba(255, 196, 0, 0) 212deg, rgba(255, 196, 0, 0) 360deg); mask: radial-gradient(circle, #000 0, #000 30%, transparent 70%); animation: spin 1.6s linear infinite; pointer-events: none; z-index: -1; }
.beacon.right .beam { animation-direction: reverse; }
@keyframes strobe { 0% { background: #ffe066; box-shadow: 0 0 18px 8px rgba(255, 196, 0, 0.75); } 50% { background: #b37a00; box-shadow: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.segera-copy { display: grid; gap: 12px; text-align: center; }
.segera-copy h1 { margin: 0; font: 600 30px/1.15 "Fredoka", sans-serif; }
.segera-copy p { margin: 0; }
.muted-line { color: var(--muted); font-size: 14px; }
.segera-copy .btn-dashed { color: var(--text); border-color: var(--panel-line); }
.segera-copy .btn-dashed:hover { background: var(--panel); border-color: var(--yellow); }
.segera-copy .btn:first-of-type { margin-top: 6px; }

@media (max-width: 640px) {
  .sign-bg { right: 50%; bottom: -30px; width: 115vw; transform: translateX(50%) rotate(-6deg); opacity: 0.1; }
  .beam { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
}

@media (prefers-reduced-motion: reduce) {
  .tri, .ribbon, .tag, .tuned, .stage .banner, .beam { animation: none; }
  .beacon::before { animation: none; background: #ffd45c; box-shadow: 0 0 12px 4px rgba(255, 196, 0, 0.5); }
}
