/* Jelajah 3D — Undangan interaktif Maple (hijau tua + emas, tanpa emoji) */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #0a2118; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #fdf6e3; }
#scene { position: fixed; inset: 0; z-index: 0; }
#scene canvas { display: block; width: 100%; height: 100%; touch-action: none; }

/* ---------- Sampul ---------- */
#cover { position: fixed; inset: 0; z-index: 400; overflow-y: auto; background: rgba(10,33,24,.55); display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.cover-card { width: 100%; max-width: 520px; text-align: center; padding: 22px 4% 26px; background: #fdf6e3; border: 2px solid #d4af37; border-top: 6px solid #d4af37; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.cover-eyebrow { letter-spacing: 3px; font-size: 12px; color: #a8821a; text-transform: uppercase; }
.cover-names { font-family: Georgia, serif; font-size: 52px; line-height: 1.05; color: #123524; margin: 10px 0 4px; }
.cover-names .amp { color: #c9a227; font-style: italic; }
.cover-sub { font-size: 15px; color: #4a4636; }
.cover-date { font-family: Georgia, serif; font-size: 22px; color: #7b2d26; margin-top: 14px; }
.cover-venue { font-size: 14px; color: #4a4636; margin-top: 4px; }
.cover-greet { margin-top: 18px; font-size: 19px; font-weight: 700; color: #123524; }
.cover-count { margin-top: 6px; font-size: 14px; color: #7b2d26; }
.picker-label { margin: 22px 0 10px; font-size: 14px; color: #e8dcc0; }
.picker { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pick { border: 2px solid #d4af37; background: #fff; color: #1e2a22; border-radius: 14px; padding: 10px 14px; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pick.on { border-color: #123524; background: #123524; color: #fdf6e3; box-shadow: 0 0 0 2px rgba(212,175,55,.35); }
.pick .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }
.btn-gold { display: inline-block; background: linear-gradient(180deg, #e9c860, #c9a227); color: #123524; border: none; border-radius: 999px; padding: 13px 26px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-lg { margin-top: 24px; font-size: 18px; padding: 15px 34px; }
.btn-ghost { background: transparent; border: 1.5px solid #d4af37; color: #fdf6e3; border-radius: 999px; padding: 11px 20px; font-size: 14px; cursor: pointer; }
.cover-skip { background: none; border: none; color: #1b5e3b; text-decoration: underline; font-size: 14px; font-weight: 700; margin-top: 12px; cursor: pointer; }
.cover-hint { margin-top: 18px; font-size: 13px; line-height: 1.5; color: #6b6252; }
.cover-foot { margin-top: 16px; font-size: 13px; color: #6b6252; }
.cover-foot a { color: #1b5e3b; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; background: linear-gradient(180deg, rgba(10,33,24,.85), rgba(10,33,24,0)); }
.hud-greet { font-size: 16px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hud-couple { font-size: 13px; color: #e8dcc0; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hud-btn { pointer-events: auto; background: rgba(10,33,24,.85); border: 1.5px solid #d4af37; color: #fdf6e3; border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; }
.zone-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 186px; background: rgba(10,33,24,.9); border: 1.5px solid #d4af37; border-radius: 999px; padding: 9px 18px; white-space: nowrap; z-index: 30; font-family: 'Comic Sans MS','Chalkboard SE','Segoe UI Rounded',sans-serif; font-size: 17px; font-weight: 900; letter-spacing: .3px; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 0 #000; }
.zone-acara { color: #ffe45e; }
.zone-galeri { color: #7fe8ff; }
.zone-pelaminan { color: #b6ff9e; }

/* ---------- Kontrol ---------- */
#joy { position: fixed; left: 20px; bottom: 96px; z-index: 30; }
.joy-base { width: 118px; height: 118px; border-radius: 50%; background: rgba(253,246,227,.14); border: 2px solid rgba(212,175,55,.55); position: relative; touch-action: none; }
.joy-knob { width: 50px; height: 50px; border-radius: 50%; background: rgba(212,175,55,.9); position: absolute; left: 34px; top: 34px; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.action-btn { position: fixed; left: 50%; transform: translateX(-50%); bottom: 108px; z-index: 30; background: linear-gradient(180deg, #e9c860, #c9a227); color: #123524; border: none; border-radius: 999px; padding: 14px 28px; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.45); font-family: 'Comic Sans MS','Chalkboard SE','Segoe UI Rounded',sans-serif; font-size: 19px; font-weight: 900; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 0 #000; }

/* ---------- Tombol melayang ---------- */
.float-btn { position: fixed; right: 16px; bottom: 84px; z-index: 350; background: rgba(10,33,24,.92); border: 1.5px solid #d4af37; color: #fdf6e3; border-radius: 999px; padding: 10px 14px; font-size: 13px; cursor: pointer; }
.wa-order { position: fixed; right: 16px; bottom: 16px; z-index: 350; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.45); }
.wa-order svg { width: 30px; height: 30px; }

/* ---------- Modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 500; background: rgba(4,16,11,.72); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 700px) { .modal-wrap { align-items: center; } }
.modal { background: #fdf6e3; color: #1e2a22; width: 100%; max-width: 540px; max-height: 86vh; overflow-y: auto; border-radius: 20px 20px 12px 12px; padding: 22px 20px 26px; position: relative; border-top: 5px solid #d4af37; }
.modal-sm { max-width: 420px; }
.modal-foto { max-width: 480px; text-align: center; }
.modal-x { position: absolute; right: 14px; top: 12px; background: #123524; color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.modal-title { font-family: Georgia, serif; font-size: 24px; margin: 4px 0 12px; color: #123524; padding-right: 70px; }
.modal-body { font-size: 15px; line-height: 1.65; }
.modal-body h3 { margin: 16px 0 4px; color: #123524; }
.modal-body .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3d9b8; padding: 8px 0; }
.modal-body a { color: #1b5e3b; font-weight: 700; }
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gal-grid figure { margin: 0; }
.gal-grid img { width: 100%; border-radius: 12px; border: 3px solid #d4af37; display: block; }
.gal-grid figcaption { font-size: 13px; text-align: center; margin-top: 6px; color: #4a4636; }
#foto-img { width: 100%; max-width: 360px; border-radius: 14px; border: 3px solid #d4af37; }
.foto-cap { margin: 10px 0 14px; font-size: 14px; color: #4a4636; }
.btn-white { background: #fff; color: #123524; border: 2px solid #d4af37; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-orange { background: #f97316; color: #fff; border: 2px solid #f97316; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-row .btn-ghost { color: #123524; border-color: #123524; }

/* ---------- Foto: flash + hitung mundur ---------- */
#flash { position: fixed; inset: 0; z-index: 600; background: #fff; opacity: 0; pointer-events: none; transition: opacity .45s; }
#flash.on { opacity: 1; transition: opacity .05s; }
#vf { position: fixed; inset: 0; z-index: 550; pointer-events: none; }
.vf-corner { position: absolute; width: 34px; height: 34px; border: 4px solid #ffd166; }
.vf-corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.vf-corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.vf-corner.bl { bottom: 110px; left: 18px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.vf-corner.br { bottom: 110px; right: 18px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.vf-label { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-family: 'Comic Sans MS','Chalkboard SE','Segoe UI Rounded',sans-serif; font-size: 17px; font-weight: 900; color: #ffe45e; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 0 #000; }
#vf-num { position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-family: 'Comic Sans MS','Chalkboard SE','Segoe UI Rounded',sans-serif; font-size: 110px; font-weight: 900; color: #fff; text-shadow: -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000, 4px 4px 0 #000, 0 6px 0 #000; }
.vf-btns { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; gap: 10px; justify-content: center; pointer-events: auto; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 210px; z-index: 700; background: rgba(10,33,24,.95); color: #fff; border: 1px solid #d4af37; border-radius: 999px; padding: 10px 20px; white-space: nowrap; font-family: 'Comic Sans MS','Chalkboard SE','Segoe UI Rounded',sans-serif; font-size: 15px; font-weight: 900; text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 2px 0 #000; }
#test-result { position: fixed; left: 8px; bottom: 8px; z-index: 800; background: rgba(0,0,0,.8); color: #7dff9a; font-size: 11px; padding: 8px; max-width: 94vw; white-space: pre-wrap; word-break: break-all; }
#nogl { position: fixed; inset: 0; z-index: 900; background: #0a2118; color: #fdf6e3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 16px; line-height: 1.6; }
