/* =========================================================
   Variasi kartu ucapan: pembuka & tampilan akhir, galeri contoh
   ========================================================= */
.scene-full { padding: 0; justify-content: stretch; align-items: stretch; }

/* ---------- Layar kunci ---------- */
.lock {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
  color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35));
  transition: transform .8s cubic-bezier(.7,0,.2,1), opacity .8s;
}
.lock.unlocked { transform: translateY(-100%); opacity: 0; }
.lock.shake .pin-dots { animation: shake .4s; }
.lock-status { width: 100%; max-width: 420px; display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; opacity: .9; }
.lock-icons { display: flex; gap: 4px; align-items: center; }
.lock-icons i { width: 16px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.lock-icons i:nth-child(1) { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.lock-icons i:nth-child(3) { width: 22px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 70%); }
.lock-ico { margin-top: 26px; }
.lock-ico .ic { width: 22px; height: 22px; }
.lock-time { font-size: clamp(4.4rem, 22vw, 6.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-top: 4px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.lock-date { font-size: 1.1rem; font-weight: 500; opacity: .9; margin-top: 8px; text-transform: capitalize; }
.notif {
  width: 100%; max-width: 400px; margin-top: 34px; padding: 14px 16px; border-radius: 22px; text-align: left; color: #1d1a22;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
  animation: notifIn .7s .4s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-20px) scale(.96); } }
.notif .n-app { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; opacity: .6; }
.notif .n-app .ic { width: 15px; height: 15px; }
.notif .n-when { font-size: .75rem; opacity: .55; }
.notif b { grid-column: 1 / -1; font-size: 1rem; margin-top: 4px; }
.notif span:last-child { grid-column: 1 / -1; font-size: .92rem; opacity: .8; line-height: 1.35; }
.lock-swipe { margin-top: auto; font-size: .9rem; opacity: .85; animation: pulse 1.8s infinite; }
.pin { margin-top: 26px; display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 320px; animation: sceneIn .5s ease both; }
.pin-title { font-weight: 600; font-size: 1.05rem; text-align: center; }
.pin-hint { font-size: .85rem; opacity: .85; text-align: center; min-height: 1.1em; }
.pin-dots { display: flex; gap: 14px; margin: 6px 0 14px; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px #fff; transition: background .15s; }
.pin-dots span.on { background: #fff; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
.key { width: 74px; height: 74px; border-radius: 50%; font-size: 1.9rem; font-weight: 500; color: #fff; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; transition: background .15s, transform .1s; }
.key:active { background: rgba(255,255,255,.4); transform: scale(.94); }
.key.blank { visibility: hidden; }
.key .ic { width: 26px; height: 26px; }
@media (max-height: 700px) { .key { width: 62px; height: 62px; font-size: 1.6rem; } .lock-time { font-size: 4rem; } .notif { margin-top: 20px; } }

/* ---------- Gosok hadiah ---------- */
.scratch { position: relative; width: min(84vw, 340px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(0,0,0,.5), 0 0 0 5px rgba(255,255,255,.55); }
.scratch-under { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 18px; text-align: center; background: var(--paper) center / cover; color: var(--ink); }
.scratch-under.has-photo { color: #fff; }
.scratch-under.has-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6)); }
.su-emoji { position: relative; font-size: 3.4rem; line-height: 1; }
.scratch-under.has-photo .su-emoji { display: none; }
.su-title { position: relative; font-family: var(--hand); font-weight: 700; font-size: clamp(1.8rem, 7vw, 2.3rem); line-height: 1.1; align-self: end; }
#scratchCv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .7s; }

/* ---------- Chat ---------- */
.chat { position: relative; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; background: #efe7dd; color: #1c1c1c; box-shadow: 0 0 0 100vmax rgba(0,0,0,.25); }
.chat-body { background-color: #efe7dd; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.4px); background-size: 18px 18px; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: #075e54; color: #fff; }
.chat-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.chat-av.big { width: 72px; height: 72px; font-size: 1.8rem; margin: 0 auto 8px; }
.chat-who { display: grid; text-align: left; }
.chat-who small { font-size: .8rem; opacity: .85; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 10px 10px 10px 2px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.13); font-size: .98rem; line-height: 1.4; animation: msgIn .3s ease both; align-self: flex-start; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 8px; word-break: break-word; }
.msg small { margin-left: auto; font-size: .68rem; opacity: .5; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.msg.typing { padding: 12px 14px; gap: 4px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; animation: dot 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg.attach { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; max-width: 260px; }
.att-card { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 8px; text-align: center; color: #fff; background: linear-gradient(155deg, var(--bg1), var(--bg2) 55%, var(--bg3)); }
.att-emoji { font-size: 2.4rem; }
.att-card small { opacity: .9; }
.chat-f { display: flex; justify-content: space-between; align-items: center; margin: 0 10px max(10px, env(safe-area-inset-bottom)); padding: 11px 16px; border-radius: 999px; background: #fff; color: #8a8a8a; font-size: .92rem; }
.chat-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 30, 26, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 20px; }
.chat-pop { background: #fff; border-radius: 24px; padding: 26px 22px; text-align: center; width: min(100%, 300px); display: grid; gap: 12px; animation: notifIn .6s .2s cubic-bezier(.2,.9,.3,1.3) both; }

/* ---------- Pecahkan balon ---------- */
.balloons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 420px; min-height: 230px; align-items: center; }
.bln { position: relative; width: 74px; height: 92px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; transform: translateY(var(--y)) rotate(var(--r));
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 8%, transparent 22%), radial-gradient(circle at 50% 55%, var(--c), color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.15); animation: blnFloat 3.2s ease-in-out var(--d) infinite; transition: transform .2s, opacity .2s; }
.bln::before { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 9px; margin-left: -6px; background: color-mix(in srgb, var(--c) 75%, #000); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bln::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 46px; background: rgba(255,255,255,.7); transform-origin: top; animation: string 3.2s ease-in-out var(--d) infinite; }
@keyframes blnFloat { 0%, 100% { transform: translateY(var(--y)) rotate(var(--r)); } 50% { transform: translateY(calc(var(--y) - 14px)) rotate(calc(var(--r) * -1)); } }
@keyframes string { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
.bln.pop { animation: blnPop .25s ease forwards; pointer-events: none; }
@keyframes blnPop { to { transform: scale(1.5); opacity: 0; } }
.balloon-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; min-height: 3rem; font-family: var(--hand); font-weight: 700; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; }
.balloon-words span { opacity: .35; }
.balloon-words span.show { opacity: 1; animation: pop .5s cubic-bezier(.2,.9,.3,1.5); }

/* ---------- Story ---------- */
.story { position: relative; flex: 1; width: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; background: linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3)); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
.st-bars { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 5; display: flex; gap: 4px; }
.st-bars div { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); overflow: hidden; }
.st-bars span { display: block; height: 100%; width: 0; background: #fff; }
.st-head { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 14px); left: 12px; right: 60px; z-index: 5; display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.st-head .chat-av { width: 34px; height: 34px; font-size: .9rem; box-shadow: 0 0 0 2px #fff; }
.st-head small { opacity: .8; font-size: .8rem; }
.st-slides { position: absolute; inset: 0; }
.st-slide { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 90px 28px 70px; text-align: center; color: #fff; background: center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .6s; pointer-events: none; }
.st-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.st-slide.k-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 60%, rgba(0,0,0,.55)); }
.st-slide > * { position: relative; z-index: 1; }
.st-emoji { font-size: 4.5rem; animation: bob 2.4s ease-in-out infinite; }
.st-slide h1 { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.1; text-shadow: 0 3px 20px rgba(0,0,0,.2); }
.st-slide.k-title p { font-family: var(--hand); font-size: 1.8rem; }
.st-text { font-family: var(--hand); font-weight: 700; font-size: clamp(1.9rem, 7.6vw, 2.5rem); line-height: 1.3; text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.st-cap { align-self: end; margin-top: auto; font-family: var(--hand); font-size: 1.8rem; font-weight: 700; }
.st-slide.k-photo { place-content: end center; }
.st-cap.top { align-self: auto; margin: 0; }
.st-slide .video-frame { width: min(100%, 420px); }
.st-sign { font-family: var(--hand); font-size: 1.7rem; }
.st-name { font-family: var(--hand); font-size: 2.6rem; font-weight: 700; margin-top: -10px; }
.st-nav { position: absolute; top: 70px; bottom: 0; z-index: 4; width: 35%; background: none; }
.st-prev { left: 0; } .st-next { right: 0; width: 65%; }

/* ---------- Pemutar musik ---------- */
.player { width: min(100%, 420px); margin: auto; display: grid; justify-items: center; gap: 10px; padding: 26px 22px; border-radius: 32px; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(20,16,30,.55), rgba(20,16,30,.78)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: cardIn .9s cubic-bezier(.2,.9,.3,1.15) both; }
.pl-top { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.pl-top b { letter-spacing: normal; text-transform: none; font-size: .9rem; opacity: 1; }
.vinyl { position: relative; width: min(64vw, 240px); aspect-ratio: 1; border-radius: 50%; margin: 10px 0 6px; display: grid; place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, #151218 0 2px, #22202a 2px 4px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.7), inset 0 0 0 6px #0c0a10; }
.vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 40%, transparent 60%, rgba(255,255,255,.06)); }
.vinyl.spin { animation: spin 6s linear infinite; }
.vinyl-label { width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--accent), var(--accent2)) center / cover; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.vinyl-label[style*="url"] { background-size: cover; }
.pl-title { font-size: 1.35rem; font-weight: 700; line-height: 1.2; word-break: break-word; }
.pl-artist { opacity: .7; font-size: .95rem; margin-top: -6px; }
.pl-bar { width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 6px; }
.pl-bar span { display: block; height: 100%; width: 0; background: #fff; transition: width .4s linear; }
.pl-times { width: 100%; display: flex; justify-content: space-between; font-size: .75rem; opacity: .65; font-variant-numeric: tabular-nums; }
.pl-ctrl { display: flex; align-items: center; gap: 26px; margin: 2px 0 6px; }
.pl-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; opacity: .8; }
.pl-btn .ic { width: 22px; height: 22px; }
.pl-btn.on { color: #ff4d79; opacity: 1; }
.pl-btn.on .ic path { fill: currentColor; }
.pl-play { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1b1722; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.pl-play .ic { width: 26px; height: 26px; }
.pl-lyrics { width: 100%; max-height: 180px; overflow-y: auto; padding: 14px 6px; display: grid; gap: 10px; text-align: left; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.pl-lyrics::-webkit-scrollbar { display: none; }
.pl-lyrics p { font-size: 1.2rem; font-weight: 700; line-height: 1.35; opacity: .35; transition: opacity .4s, transform .4s; transform-origin: left; }
.pl-lyrics p.on { opacity: 1; transform: scale(1.03); }
.player .board { margin: 6px 0; }
.pl-from { font-family: var(--hand); font-size: 1.4rem; align-self: end; justify-self: end; text-align: right; }
.pl-from b { font-size: 1.9rem; }
.card-actions.shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Surat kertas ---------- */
.card.lay-letter {
  border-radius: 6px; padding-top: clamp(40px, 8vw, 54px); transform: rotate(-.6deg);
  background: #fffdf6 linear-gradient(transparent 0 calc(2.1em - 1px), rgba(90,120,180,.22) calc(2.1em - 1px) 2.1em) 0 1.2em / 100% 2.1em;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.5), 0 2px 0 #f1ead8, 0 4px 0 #fffdf6, 0 6px 0 #ece4d0;
}
.card.lay-letter::before { inset: 0 auto 0 34px; width: 0; border: 0; border-left: 2px solid rgba(220,80,90,.35); border-radius: 0; }
.card.lay-letter .card-badge { left: auto; right: 18px; top: 14px; transform: rotate(8deg); width: 74px; height: 88px; border-radius: 4px; font-size: 2.2rem; animation: none;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2), inset 0 0 0 4px #fff, inset 0 0 0 5px color-mix(in srgb, var(--accent) 60%, #fff); }
.card.lay-letter .card-badge::after { content: ''; position: absolute; left: -26px; top: 18px; width: 52px; height: 52px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); transform: rotate(-20deg); }
.card.lay-letter .card-title { text-align: left; font-family: var(--hand); background: none; -webkit-background-clip: initial; background-clip: initial; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); padding-right: 84px; padding-left: 26px; }
.card.lay-letter .card-to { text-align: left; padding-left: 26px; font-family: var(--hand); font-size: 1.4rem; }
.card.lay-letter .card-msg { padding-left: 26px; line-height: 2.1em; font-size: clamp(1.3rem, 4.6vw, 1.6rem); margin-top: 10px; }
.card.lay-letter .card-from { padding-right: 6px; }

/* ---------- Galeri contoh tema ---------- */
.gal-head { max-width: 760px; margin: 0 auto; text-align: center; padding: 26px 0 18px; }
.gal-head h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.15; }
.gal-head .hero-sub { margin: 12px auto 20px; }
.gal-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.gal-tabs a { padding: .6em 1.2em; border-radius: 999px; font-weight: 600; text-decoration: none; color: #6a5a6e; }
.gal-tabs a.on { background: var(--accent); color: #fff; }
.gal-cats { display: flex; gap: 8px; margin: 18px -16px 0; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.gal-cats::-webkit-scrollbar { display: none; }
.gal-cats a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: .5em 1em; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; color: #5a4a5e; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.gal-cats a small { font-size: .74rem; opacity: .6; }
.gal-cats a.on { color: #fff; background: #2a1f33; box-shadow: none; }
.demo-cats { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.demo-cat h2 { font-size: 1.35rem; margin: 0 0 12px 4px; }
.demo-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.demo-tile { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 18px 40px -26px rgba(60,20,70,.55); transition: transform .25s; }
@media (hover: hover) { .demo-tile:hover { transform: translateY(-4px); } }
.dt-pv { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; text-align: center; }
.inv-pv-mini small { font-family: 'Cormorant Garamond', serif; letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; }
.inv-pv-mini strong { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 2.6rem; line-height: 1.05; }
.inv-pv-mini strong.playful { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.8rem; }
.inv-pv-mini i { width: 70px; height: 1px; opacity: .6; }
.inv-pv-mini small:last-child { letter-spacing: .06em; text-transform: none; font-size: .85rem; }
.card-pv-mini .dt-emoji { font-size: 2.8rem; }
.card-pv-mini strong { font-size: 1.35rem; line-height: 1.2; }
.card-pv-mini small { font-family: var(--hand); font-size: 1.3rem; }
.dt-meta { display: grid; gap: 6px; padding: 14px 16px 16px; }
.dt-meta b { font-size: 1.05rem; }
.dt-meta p { font-size: .88rem; opacity: .7; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dt-chips span { font-size: .74rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; background: #f4eef4; color: #5a4a5e; }
.dt-song { display: flex; align-items: center; gap: 6px; }
.dt-meta .btn { margin-top: 6px; justify-self: start; }
.demo-back { position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; padding: .6em 1.1em; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; color: #2a1f33; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
body[data-mode="invite"] .demo-back { bottom: auto; top: max(14px, env(safe-area-inset-top)); left: 14px; }
a.logo { text-decoration: none; color: inherit; }
.gallery-page { overflow-x: clip; }
.gallery-page .topbar { max-width: 1100px; }
body.demo .lock { padding-bottom: 76px; }
body.demo .chat-f { margin-bottom: 64px; }
body.demo .scene-card { padding-bottom: 80px; }
.card-pv-mini { text-shadow: 0 2px 12px rgba(0,0,0,.28); }
@media (min-width: 760px) { .gal-cats { flex-wrap: wrap; justify-content: center; overflow: visible; } }

/* ---------- Tampilan akhir: cerita (halaman panjang) ---------- */
#s-journey { --j-bg: radial-gradient(120% 70% at 50% 0%, #4a1a3d, #24091d 55%, #150510); --j-ink: #f7e8ef; --j-muted: #d3aec1; --j-acc: #f4a7c5; --j-card: #2c0f26; --j-line: rgba(244,167,197,.28); background: var(--j-bg); color: var(--j-ink); }
#s-journey.tone-midnight { --j-bg: radial-gradient(120% 70% at 50% 0%, #22305e, #0d1531 55%, #070b1c); --j-ink: #eef1ff; --j-muted: #aab4d9; --j-acc: #f3d27c; --j-card: #121c40; --j-line: rgba(243,210,124,.28); }
#s-journey.tone-theme { --j-bg: transparent; --j-ink: var(--ink); --j-muted: color-mix(in srgb, var(--ink) 62%, transparent); --j-acc: var(--accent); --j-card: rgba(255,255,255,.9); --j-line: color-mix(in srgb, var(--accent) 30%, transparent); }
.jr { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.jr-in { max-width: 540px; margin: 0 auto; padding: 0 20px 110px; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; }
.jr .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.jr .rv.in { opacity: 1; transform: none; }
.jr-hero { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 60px 0 40px; position: relative; }
.jr-kick { font-style: italic; font-size: 1.12rem; color: var(--j-muted); }
.jr-title { font-size: clamp(2.3rem, 10vw, 3.3rem); font-weight: 600; line-height: 1.08; }
.jr-to { font-family: 'Great Vibes', cursive; font-size: clamp(2.8rem, 13vw, 3.8rem); line-height: 1.1; color: var(--j-acc); word-break: break-word; }
.jr-scroll { position: absolute; bottom: 36px; left: 0; right: 0; font-family: 'Fredoka', sans-serif; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; opacity: .55; animation: jrBob 2.2s ease-in-out infinite; }
.jr-scroll::after { content: ''; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: currentColor; }
@keyframes jrBob { 50% { transform: translateY(6px); } }
.jr-sec { padding: 64px 0 6px; }
.jr-h { font-size: clamp(1.9rem, 8vw, 2.5rem); font-weight: 600; line-height: 1.15; margin: 2px 0 24px; }
.jr-hint { font-family: 'Fredoka', sans-serif; font-size: .82rem; color: var(--j-muted); margin: -12px 0 10px; }
.jr-card { background: var(--j-card); border-radius: 22px; padding: 22px 22px 20px; box-shadow: inset 0 0 0 1px var(--j-line), 0 20px 40px -28px rgba(0,0,0,.6); }
.jr-card h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin: 2px 0 8px; }
.jr-card p { font-size: 1.1rem; line-height: 1.6; color: color-mix(in srgb, var(--j-ink) 88%, transparent); }
.jr-letter { text-align: left; }
.jr-letter p { font-size: 1.22rem; line-height: 1.7; margin-bottom: 14px; }
.jr-sign { font-style: italic; color: var(--j-muted); font-size: 1.1rem; }
.jr-letter .jr-sign { margin: 18px 0 0; text-align: right; }
.jr-from { font-family: 'Great Vibes', cursive; font-size: 2.3rem; line-height: 1.1; color: var(--j-acc); }
.jr-letter .jr-from { text-align: right; margin: 0; }
/* linimasa dengan garis bercahaya */
.jr-tl { position: relative; display: grid; gap: 30px; padding: 4px 0; }
.jr-tl::before { content: ''; position: absolute; left: 50%; top: -20px; bottom: -20px; width: 2px; transform: translateX(-50%); background: linear-gradient(transparent, var(--j-acc) 12%, var(--j-acc) 88%, transparent); opacity: .55; box-shadow: 0 0 14px var(--j-acc); }
.jr-tl-item { position: relative; padding-top: 18px; }
.jr-tl-item::before { content: ''; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--j-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--j-acc) 25%, transparent), 0 0 18px var(--j-acc); z-index: 1; }
.jr-tl-item .jr-card { position: relative; z-index: 1; }
.jr-when { font-style: italic; color: var(--j-acc) !important; font-size: 1.02rem !important; }
/* alasan */
.jr-reasons { display: grid; gap: 14px; }
.jr-reason { display: grid; justify-items: center; gap: 2px; }
.jr-num { font-style: italic; font-size: 1.7rem; color: var(--j-acc); line-height: 1; }
.jr-ico { font-size: 1.9rem; line-height: 1.2; }
/* taman harapan */
.jr-garden { display: flex; justify-content: center; align-items: flex-end; gap: 4px; min-height: 190px; padding: 10px 0 0; border-bottom: 2px solid color-mix(in srgb, #7bbf6a 55%, transparent); }
.jr-fl { display: flex; flex-direction: column; align-items: center; width: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jr-head { width: 40px; height: 40px; display: block; transform: scale(.42); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.3,1.6,.4,1), filter .7s; filter: saturate(.55) brightness(.9); animation: jrSway 3.4s ease-in-out infinite; }
.jr-fl:nth-child(2n) .jr-head { animation-delay: -1.2s; }
.jr-fl:nth-child(3n) .jr-head { animation-delay: -2.1s; }
.jr-head svg { width: 100%; height: 100%; display: block; }
.jr-stem { width: 2px; height: var(--h, 90px); background: linear-gradient(#7bbf6a, #4f8f45); border-radius: 2px; }
.jr-fl.open .jr-head { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,255,255,.45)); animation: none; }
@keyframes jrSway { 50% { transform: scale(.42) rotate(8deg); } }
.jr-wishlist { display: grid; gap: 10px; margin-top: 18px; }
.jr-wish { padding: 14px 18px; border-left: 4px solid var(--c); text-align: left; animation: invUp .7s cubic-bezier(.2,.8,.2,1) both; }
.jr-wish p { font-size: 1.15rem; }
/* galeri polaroid */
.jr-gal { columns: 2; column-gap: 14px; }
.jr-pol { break-inside: avoid; margin: 0 0 16px; padding: 8px 8px 10px; background: #fffdf9; border-radius: 4px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.jr .jr-pol.rv.in { transform: rotate(var(--r)); }
.jr-pol img { display: block; width: 100%; height: auto; border-radius: 2px; }
.jr-pol figcaption { font-family: 'Caveat', cursive; font-size: 1.25rem; color: #5a4650; margin-top: 4px; }
.jr .video-frame { margin: 0 auto; }
/* penutup */
.jr-end { min-height: 80dvh; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 70px 0 20px; }
.jr-close { font-size: 1.35rem; line-height: 1.65; font-style: italic; max-width: 440px; margin-bottom: 14px; white-space: pre-line; }
.jr-end .jr-from { font-size: 2.8rem; margin-bottom: 22px; }
.jr-end .card-actions { justify-content: center; }
.jr-end .btn { font-family: 'Fredoka', sans-serif; }
body.demo .jr-in { padding-bottom: 140px; }

/* ikon akun sosial di layar akhir */
.socials { flex-basis: 100%; display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.socials[hidden] { display: none; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.social svg { width: 22px; height: 22px; }
@media (hover: hover) { .social:hover { transform: translateY(-2px); background: rgba(255,255,255,.28); } }
.card .social, .player .social, #s-journey.tone-theme .social, .sec .social { background: color-mix(in srgb, var(--accent, #ff3d7f) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #ff3d7f) 35%, transparent); color: var(--accent, #ff3d7f); }
.sec .socials { margin-top: 12px; }
.sec .social { color: var(--i-accent2); background: color-mix(in srgb, var(--i-accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--i-accent) 35%, transparent); }

/* =========================================================
   Game mini pembuka kartu
   ========================================================= */
/* tangkap hadiah */
.catch { position: relative; width: min(92vw, 420px); height: min(56vh, 470px); border-radius: 26px; overflow: hidden; touch-action: none; cursor: grab;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.22)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4), 0 24px 50px -26px rgba(0,0,0,.5); }
#catchCv { position: absolute; inset: 0; width: 100%; height: 100%; }
.catch-hud { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; pointer-events: none; }
.catch-hud i { flex: 1; height: 8px; border-radius: 9px; background: rgba(255,255,255,.3); overflow: hidden; }
.catch-hud b { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width .25s; }
.catch-start { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; border: 0; color: inherit; background: rgba(0,0,0,.18); cursor: pointer; font: inherit; }
.catch-start b { font-size: 1.6rem; padding: .45em 1.4em; border-radius: 999px; background: #fff; color: var(--accent); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); animation: pulse 1.8s ease-in-out infinite; }
.catch-start small { font-size: 1rem; opacity: .9; }
.catch-start[hidden] { display: none; }

/* puzzle foto */
.puzzle { --n: 3; position: relative; width: min(84vw, 360px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.18); box-shadow: 0 0 0 5px rgba(255,255,255,.55), 0 26px 50px -24px rgba(0,0,0,.55); }
.pz-tile { position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: calc(100% / var(--n)); padding: 0; border: 0; overflow: hidden; cursor: pointer; background: none;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), filter .2s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.pz-tile.sel { z-index: 2; filter: brightness(1.12); box-shadow: inset 0 0 0 4px #fff; }
.pz-art { position: absolute; width: calc(var(--n) * 100%); height: calc(var(--n) * 100%); display: grid; place-content: center; justify-items: center; gap: 6%; color: #fff; text-align: center; pointer-events: none; }
.pz-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pz-emoji { font-size: 5rem; line-height: 1; }
.pz-art b { font-size: 1.5rem; max-width: 80%; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.puzzle.done .pz-tile { box-shadow: none; }
.puzzle.done { animation: pop .6s cubic-bezier(.2,.9,.3,1.5); }
.pz-foot { display: flex; align-items: center; gap: 14px; text-align: left; }
.pz-peek { --n: 1; position: relative; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.pz-peek .pz-emoji { font-size: 1.6rem; } .pz-peek .pz-art b { display: none; }

/* cocokkan kartu */
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(92vw, 400px); perspective: 900px; }
.mm-card { aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; animation: pop .5s calc(var(--i) * 40ms) cubic-bezier(.2,.9,.3,1.4) both; }
.mm-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.mm-card.flip .mm-in { transform: rotateY(180deg); }
.mm-back, .mm-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: clamp(1.6rem, 8vw, 2.3rem); }
.mm-back { background: linear-gradient(145deg, var(--accent), var(--accent2)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), 0 10px 20px -12px rgba(0,0,0,.5); font-size: clamp(1.5rem, 7vw, 2rem); }
.mm-face { transform: rotateY(180deg); background: #fff center / cover no-repeat; box-shadow: 0 10px 20px -12px rgba(0,0,0,.5); }
.mm-card.got .mm-face { box-shadow: 0 0 0 3px #fff, 0 0 22px rgba(255,255,255,.8); }

/* kuis */
.quiz { width: min(92vw, 440px); display: grid; gap: 16px; justify-items: center; padding: 26px 20px; border-radius: 28px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), 0 24px 50px -26px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quiz.qz-in .qz-q, .quiz.qz-in .qz-opts { animation: sceneIn .55s cubic-bezier(.2,.9,.3,1.15) both; }
.qz-dots { display: flex; gap: 6px; }
.qz-dots i { width: 22px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.35); transition: background .3s; }
.qz-dots i.on { background: #fff; }
.qz-q { font-size: clamp(1.3rem, 5.6vw, 1.8rem); }
.qz-opts { display: grid; gap: 10px; width: 100%; }
.qz-opt { width: 100%; padding: 14px 18px; border: 0; border-radius: 18px; font: 600 1.05rem/1.3 inherit; font-family: inherit; color: var(--ink); background: #fff; cursor: pointer; box-shadow: 0 10px 22px -14px rgba(0,0,0,.5); transition: transform .15s, background .2s, color .2s; }
.qz-opt:active { transform: scale(.97); }
.qz-opt.right { background: #22c55e; color: #fff; }
.qz-opt.wrong { background: #fee2e2; color: #b91c1c; animation: shake .4s; }
.qz-opt:disabled { cursor: default; }
.qz-opt.wrong:disabled { opacity: .7; }
.qz-note { min-height: 1.4em; font-weight: 600; opacity: .9; }
.demo-more { justify-self: center; }
.demo-first { width: 100%; }

/* =========================================================
   Voice note
   ========================================================= */
.voice-slot:empty { display: none; }
.voice-slot { margin: 14px 0 4px; }
.vn { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: #fff; color: #33203d; box-shadow: 0 12px 26px -16px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.05); max-width: 420px; margin: 0 auto; text-align: left; }
.vn-play { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); cursor: pointer; box-shadow: 0 8px 18px -8px var(--accent); }
.vn-play .ic { width: 22px; height: 22px; }
.vn-mid { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vn-mid small { font-size: .76rem; font-weight: 600; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-bars { display: flex; align-items: center; gap: 2px; height: 26px; }
.vn-bars i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 35%, #ddd); transition: background .2s; }
.vn-bars i.done { background: var(--accent); }
.vn.on .vn-bars i { animation: vnPulse 1s ease-in-out infinite; }
.vn.on .vn-bars i:nth-child(3n) { animation-delay: .2s; } .vn.on .vn-bars i:nth-child(3n+1) { animation-delay: .4s; }
@keyframes vnPulse { 50% { transform: scaleY(.6); } }
.vn-time { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .7; min-width: 34px; text-align: right; }
.st-slide.k-voice { display: grid; place-content: center; gap: 18px; padding: 24px; }
.jr-letter .vn { margin-top: 18px; }

/* =========================================================
   Our Wrapped (ala Spotify Wrapped)
   ========================================================= */
#s-wrapped { background: #000; }
.wr { position: relative; width: 100%; height: 100%; overflow: hidden; font-family: 'Archivo Black', 'Fredoka', sans-serif; }
.wr .st-bars { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 5; }
.wr-slides { position: absolute; inset: 0; }
.wr-slide { position: absolute; inset: 0; display: grid; align-content: center; gap: 14px; padding: 70px 28px 40px; color: var(--c1); background: var(--c2); opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; overflow: hidden; }
.wr-slide::before { content: ''; position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 50%; border-radius: 42%; background: conic-gradient(from 0deg, var(--c1), transparent 30%, var(--c1) 50%, transparent 80%); opacity: .14; transform: translate(-50%, -50%); animation: wrSpin 18s linear infinite; }
.wr-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.wr-slide > * { position: relative; }
@keyframes wrSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.wr-kick { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem; color: #fff; opacity: .85; }
.wr-big { font-size: clamp(3rem, 15vw, 5.2rem); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.wr-big.sm { font-size: clamp(2rem, 10vw, 3rem); }
.wr-year { font-size: clamp(4.5rem, 28vw, 9rem); line-height: .85; color: #fff; -webkit-text-stroke: 2px var(--c1); color: transparent; }
.wr-sub { font-family: 'Fredoka', sans-serif; color: #fff; font-size: 1.1rem; opacity: .9; }
.wr-hint { font-family: 'Fredoka', sans-serif; color: #fff; opacity: .55; font-size: .9rem; margin-top: 20px; animation: pulse 1.8s ease-in-out infinite; }
.wr-num { font-size: clamp(5rem, 32vw, 10rem); line-height: .9; letter-spacing: -.03em; }
.wr-label { font-size: clamp(1.4rem, 6.5vw, 2.2rem); line-height: 1.1; color: #fff; max-width: 14ch; }
.wr-tops { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: t; }
.wr-tops li { counter-increment: t; display: flex; gap: 14px; align-items: baseline; color: #fff; font-size: clamp(1.15rem, 5.4vw, 1.6rem); line-height: 1.15; animation: sceneIn .6s calc(var(--i, 0) * .1s) both; }
.wr-tops li::before { content: counter(t); color: var(--c1); font-size: 1.6em; min-width: 1.2ch; }
.wr-persona { font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 1; text-transform: uppercase; }
.wr-msg { font-family: 'Fredoka', sans-serif; color: #fff; font-size: clamp(1.15rem, 5vw, 1.45rem); line-height: 1.45; white-space: pre-line; max-height: 60vh; overflow: auto; }
.wr-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wr-photos.n1 { grid-template-columns: 1fr; }
.wr-photos i { aspect-ratio: 1; border-radius: 16px; background: center / cover no-repeat; box-shadow: 0 0 0 3px var(--c1); }
.wr-photos.n3 i:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.wr .card-actions { margin-top: 10px; }
.wr .card-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.wr-slide.k-voice .vn { margin: 0; }

/* =========================================================
   Struk Cinta
   ========================================================= */
.rc-wrap { width: min(92vw, 380px); display: grid; gap: 18px; padding-bottom: 30px; }
.rc-slot { height: 14px; margin: 0 -10px -24px; border-radius: 10px; background: #2b2b2b; box-shadow: inset 0 3px 6px rgba(0,0,0,.6); position: relative; z-index: 2; }
.receipt { position: relative; padding: 30px 22px 34px; background: #fffdf7; color: #2a2a2a; font-family: 'Space Mono', ui-monospace, monospace; font-size: .88rem; line-height: 1.5; box-shadow: 0 24px 40px -20px rgba(0,0,0,.45);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  animation: rcPrint 1.6s cubic-bezier(.3,.7,.3,1) both; transform-origin: top; }
@keyframes rcPrint { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.rc-store { text-align: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; }
.rc-small { font-size: .75rem; opacity: .7; text-align: center; }
.rc-small.center { margin-top: 4px; }
.rc-line { border-top: 1.5px dashed #999; margin: 10px 0; }
.rc-meta > div, .rc-row, .rc-total { display: flex; justify-content: space-between; gap: 10px; }
.rc-meta span, .rc-row span { opacity: .7; }
.rc-items { display: grid; gap: 6px; }
.rc-item { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; animation: sceneIn .5s both; }
.rc-name { grid-column: 1 / -1; font-weight: 700; }
.rc-qty { opacity: .7; padding-left: 10px; }
.rc-price { text-align: right; }
.rc-total { font-size: 1.05rem; margin-bottom: 4px; }
.rc-total b { color: var(--accent); }
.rc-msg { white-space: pre-line; margin: 4px 0 2px; font-size: .85rem; }
.rc-barcode { height: 54px; margin: 14px 10px 6px; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 7px, transparent 7px 9px, #222 9px 10px, transparent 10px 13px); }
.rc-extra { display: grid; gap: 16px; }
.rc-extra .board { width: 100%; }
.receipt { text-align: left; }

/* add-on "tanpa kredit": sembunyikan tombol & akun KasihRasa di akhir kartu */
body.no-credit .own-link, body.no-credit #ownBtn, body.no-credit .card-actions .social, body.no-credit .card-actions .socials { display: none !important; }
