/* Pesta Balon: undangan ulang tahun anak. Langit cerah, balon warna-warni, bendera segitiga,
   angka umur raksasa, kue yang lilinnya bisa ditiup. */

.theme-pesta-balon{
    --inv-font-display:'Fredoka','Nunito',system-ui,sans-serif;
    --inv-font-body:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
    --inv-font-label:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
    --inv-btn-radius:999px;
    --inv-card-radius:28px;
    --pb-pink:#ff5d8f;
    --pb-yellow:#ffc93c;
    --pb-blue:#4cc9f0;
    --pb-green:#7bd389;
    --pb-purple:#b388ff;
    --pb-shadow:0 16px 38px rgba(45,53,97,.12);
    background:linear-gradient(180deg,#d7efff 0%,var(--inv-bg) 30%,#fff7e6 100%);
    font-size:15.5px;
}
.theme-pesta-balon .inv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.theme-pesta-balon .inv-kicker{font-weight:800;letter-spacing:.14em}
.theme-pesta-balon .pb-chip{padding:7px 14px;border-radius:999px;background:#fff;color:var(--inv-primary);box-shadow:0 6px 16px rgba(255,93,143,.18)}
.theme-pesta-balon .inv-heading .inv-kicker{color:var(--pb-blue)}
.theme-pesta-balon .inv-title{font:700 clamp(30px,8.4vw,42px)/1.02 var(--inv-font-display);color:var(--inv-primary)}
.theme-pesta-balon .inv-btn{font-weight:800;box-shadow:0 10px 22px rgba(255,93,143,.3)}
.theme-pesta-balon .inv-btn-ghost{background:#fff;box-shadow:none}
.theme-pesta-balon .pb-name{font:700 clamp(46px,14vw,78px)/.95 var(--inv-font-display);color:var(--inv-text);letter-spacing:-.01em;overflow-wrap:anywhere;text-shadow:0 4px 0 #fff,0 8px 0 rgba(255,93,143,.25)}

/* ---------- Bendera segitiga ---------- */
.theme-pesta-balon .pb-bunting{position:absolute;top:0;left:-4%;right:-4%;display:flex;justify-content:space-between;height:70px;pointer-events:none}
.theme-pesta-balon .pb-bunting::before{content:"";position:absolute;left:0;right:0;top:8px;height:40px;border-top:3px solid #9aa0c4;border-radius:50%/0 0 100% 100%}
.theme-pesta-balon .pb-bunting i{position:relative;width:34px;height:42px;margin-top:14px;clip-path:polygon(0 0,100% 0,50% 100%);background:var(--pb-pink)}
.theme-pesta-balon .pb-bunting i:nth-child(5n+2){background:var(--pb-yellow)}
.theme-pesta-balon .pb-bunting i:nth-child(5n+3){background:var(--pb-blue)}
.theme-pesta-balon .pb-bunting i:nth-child(5n+4){background:var(--pb-green)}
.theme-pesta-balon .pb-bunting i:nth-child(5n){background:var(--pb-purple)}
.theme-pesta-balon .pb-bunting i:nth-child(2),.theme-pesta-balon .pb-bunting i:nth-child(8){margin-top:22px}
.theme-pesta-balon .pb-bunting i:nth-child(3),.theme-pesta-balon .pb-bunting i:nth-child(7){margin-top:28px}
.theme-pesta-balon .pb-bunting i:nth-child(4),.theme-pesta-balon .pb-bunting i:nth-child(5),.theme-pesta-balon .pb-bunting i:nth-child(6){margin-top:32px}
.theme-pesta-balon .pb-bunting.is-top{position:relative;left:auto;right:auto;width:calc(100% + 36px);margin:0 -18px}

/* ---------- Sampul ---------- */
.theme-pesta-balon .pb-cover{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:max(64px,env(safe-area-inset-top)) 22px 28px;overflow:hidden;background:radial-gradient(120% 60% at 50% 110%,#fff4d6 0%,transparent 60%),linear-gradient(180deg,#bfe3ff,#e8f6ff 55%,#fff4d6);text-align:center;transition:opacity .5s ease,visibility .5s ease,transform .6s var(--inv-ease)}
.theme-pesta-balon.inv-opening .pb-cover,.theme-pesta-balon.inv-opened .pb-cover{opacity:0;visibility:hidden;transform:translateY(-40px)}
.theme-pesta-balon .pb-balloons{position:absolute;inset:0}
.theme-pesta-balon .pb-balloon{position:absolute;left:var(--x);top:var(--y);width:62px;height:94px;padding:0;border:0;background:none;color:var(--c);cursor:pointer;animation:pb-float 4.6s ease-in-out var(--d) infinite;-webkit-tap-highlight-color:transparent}
.theme-pesta-balon .pb-balloon svg{width:100%;height:100%;filter:drop-shadow(0 8px 10px rgba(45,53,97,.15))}
.theme-pesta-balon .pb-balloon.is-popped{pointer-events:none}
.theme-pesta-balon .pb-balloon.is-popped svg{animation:pb-pop .3s ease-out forwards}
.theme-pesta-balon .pb-cover-copy{position:relative;z-index:1;display:grid;justify-items:center;gap:10px;width:min(100%,400px);pointer-events:none}
.theme-pesta-balon .pb-cover-copy>*{pointer-events:auto}
.theme-pesta-balon .pb-age{display:grid;place-items:center;margin:2px 0 -6px}
.theme-pesta-balon .pb-age span{font:700 clamp(120px,40vw,180px)/.9 var(--inv-font-display);color:transparent;background:linear-gradient(160deg,#ffe58f 10%,#ffc93c 40%,#ff9f1c 70%,#ffd36e);-webkit-background-clip:text;background-clip:text;-webkit-text-stroke:5px #fff;filter:drop-shadow(0 10px 16px rgba(255,159,28,.35));animation:pb-bob 3s ease-in-out infinite}
.theme-pesta-balon .pb-cover-sub{margin:0;color:var(--inv-primary);font-weight:800;font-size:14.5px}
.theme-pesta-balon .pb-guest{display:grid;gap:2px;width:100%;padding:12px 16px;border-radius:22px;background:rgba(255,255,255,.9);box-shadow:var(--pb-shadow)}
.theme-pesta-balon .pb-guest small{font-size:12px;opacity:.7}
.theme-pesta-balon .pb-guest strong{font:600 21px/1.2 var(--inv-font-display);overflow-wrap:anywhere}
.theme-pesta-balon .pb-open{min-height:56px;padding:12px 34px;font-size:18px;animation:pb-wiggle 2.6s ease-in-out infinite}
.theme-pesta-balon .pb-cover-hint{margin:0;font-size:12.5px;font-weight:700;opacity:.7}

/* ---------- Isi undangan ---------- */
.theme-pesta-balon .pb-main{align-items:center;padding:0 18px 110px}
.theme-pesta-balon .pb-hero{display:grid;justify-items:center;gap:10px;width:min(100%,520px);padding:20px 0 30px;text-align:center}
.theme-pesta-balon .pb-hero-photo{position:relative;width:min(66vw,260px);aspect-ratio:1;margin:18px 0 8px}
.theme-pesta-balon .pb-hero-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%;box-shadow:0 0 0 10px #fff,0 0 0 16px var(--pb-yellow),var(--pb-shadow)}
.theme-pesta-balon .pb-hero-balloon{position:absolute;width:62px;height:94px;animation:pb-float 4.2s ease-in-out infinite}
.theme-pesta-balon .pb-hero-balloon.is-a{left:-46px;top:-30px}
.theme-pesta-balon .pb-hero-balloon.is-b{right:-40px;top:-46px;animation-delay:-1.4s}
.theme-pesta-balon .pb-hero-balloon.is-c{right:-56px;top:46px;animation-delay:-2.6s;width:48px;height:72px}
.theme-pesta-balon .pb-hero-age{position:absolute;left:-14px;bottom:-6px;display:grid;place-items:center;min-width:84px;height:84px;padding:0 12px;border:5px solid #fff;border-radius:999px;background:var(--inv-primary);color:#fff;font:700 42px/1 var(--inv-font-display);box-shadow:var(--pb-shadow);transform:rotate(-10deg)}
.theme-pesta-balon .pb-hero-sub{margin:0;font:600 22px/1.1 var(--inv-font-display);color:var(--pb-blue)}
.theme-pesta-balon .pb-date-chip{margin:4px 0 0;padding:8px 16px;border-radius:999px;background:#fff;color:var(--inv-primary);font-weight:800;box-shadow:var(--pb-shadow)}
.theme-pesta-balon .pb-card{width:min(100%,520px);margin:14px auto;padding:26px 22px;border-radius:var(--inv-card-radius);background:var(--inv-surface);box-shadow:var(--pb-shadow);text-align:center}
.theme-pesta-balon .pb-cake{position:relative;display:block;width:min(100%,260px);margin:0 auto;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.theme-pesta-balon .pb-cake svg{display:block;width:100%;overflow:visible}
.theme-pesta-balon .pb-flame{transform-box:fill-box;transform-origin:50% 100%;animation:pb-flicker .5s ease-in-out infinite alternate;transition:opacity .25s ease,transform .3s ease}
.theme-pesta-balon .pb-cake.is-blown .pb-flame{opacity:0;transform:scale(.2) translateY(6px);animation:none}
.theme-pesta-balon .pb-smoke{position:absolute;left:50%;top:0;width:60px;height:60px;transform:translateX(-50%);pointer-events:none}
.theme-pesta-balon .pb-smoke i{position:absolute;left:50%;bottom:0;width:14px;height:14px;border-radius:50%;background:rgba(160,160,180,.45);opacity:0}
.theme-pesta-balon .pb-cake.is-blown .pb-smoke i{animation:pb-smoke 1.4s ease-out forwards}
.theme-pesta-balon .pb-cake.is-blown .pb-smoke i:nth-child(2){animation-delay:.15s;margin-left:-14px}
.theme-pesta-balon .pb-cake.is-blown .pb-smoke i:nth-child(3){animation-delay:.3s;margin-left:10px}
.theme-pesta-balon .pb-cake-label{margin:8px 0 14px;font:600 17px/1.3 var(--inv-font-display);color:var(--inv-primary)}
.theme-pesta-balon .pb-quote{margin:0 0 8px;font-size:15.5px}
.theme-pesta-balon .pb-cake-card cite{font-style:normal;font-weight:800;color:var(--pb-blue)}
.theme-pesta-balon .pb-block{width:min(100%,560px);margin:0 auto;padding:44px 0 10px}
.theme-pesta-balon .inv-person{padding:26px 20px;border-radius:var(--inv-card-radius);background:var(--inv-surface);box-shadow:var(--pb-shadow)}
.theme-pesta-balon .inv-person-photo{width:170px;aspect-ratio:1;margin:0 auto 14px;border-radius:50%;box-shadow:0 0 0 6px #fff,0 0 0 11px var(--pb-blue)}
.theme-pesta-balon .inv-person-name{font:700 28px/1.1 var(--inv-font-display);color:var(--inv-primary)}
.theme-pesta-balon .pb-count-title{margin-bottom:14px;font:700 25px/1.1 var(--inv-font-display);color:var(--inv-text)}
.theme-pesta-balon .inv-countdown div{border-radius:20px;color:#fff;box-shadow:0 8px 16px rgba(45,53,97,.12)}
.theme-pesta-balon .inv-countdown div:nth-child(1){background:var(--pb-pink)}
.theme-pesta-balon .inv-countdown div:nth-child(2){background:var(--pb-yellow);color:#5a4100}
.theme-pesta-balon .inv-countdown div:nth-child(3){background:var(--pb-blue)}
.theme-pesta-balon .inv-countdown div:nth-child(4){background:var(--pb-green);color:#1e4d2b}
.theme-pesta-balon .inv-countdown strong{font:700 30px/1 var(--inv-font-display)}
.theme-pesta-balon .inv-event{position:relative;padding:30px 20px 24px;border-radius:24px;background:var(--inv-surface);box-shadow:var(--pb-shadow);border-top:10px solid var(--pb-pink)}
.theme-pesta-balon .inv-event:nth-child(2){border-top-color:var(--pb-blue)}
.theme-pesta-balon .inv-event::before,.theme-pesta-balon .inv-event::after{content:"";position:absolute;top:50%;width:26px;height:26px;margin-top:-13px;border-radius:50%;background:var(--inv-bg)}
.theme-pesta-balon .inv-event::before{left:-13px}
.theme-pesta-balon .inv-event::after{right:-13px}
.theme-pesta-balon .pb-ticket-tag{display:inline-block;margin-bottom:8px;padding:4px 12px;border-radius:999px;background:#fff1f5;color:var(--inv-primary);font-weight:800;font-size:11px;letter-spacing:.2em}
.theme-pesta-balon .inv-event-name{font:700 26px/1.1 var(--inv-font-display);color:var(--inv-text)}
.theme-pesta-balon .inv-event-date{font-weight:800;color:var(--inv-primary)}
.theme-pesta-balon .inv-event-venue{font:600 19px/1.25 var(--inv-font-display)}
.theme-pesta-balon .inv-story{display:grid;gap:14px}
.theme-pesta-balon .inv-story li{padding:18px 18px 18px 66px;border-radius:22px;background:var(--inv-surface);box-shadow:var(--pb-shadow)}
.theme-pesta-balon .inv-story-marker{position:absolute;left:16px;top:18px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--pb-yellow);color:#fff}
.theme-pesta-balon .inv-story li:nth-child(3n+2) .inv-story-marker{background:var(--pb-blue)}
.theme-pesta-balon .inv-story li:nth-child(3n) .inv-story-marker{background:var(--pb-pink)}
.theme-pesta-balon .inv-story-marker .inv-icon{width:18px;height:18px}
.theme-pesta-balon .inv-story-date{color:var(--inv-primary);font-weight:800}
.theme-pesta-balon .inv-story-title{font:600 21px/1.2 var(--inv-font-display)}
.theme-pesta-balon .inv-gallery{gap:14px;padding:6px}
.theme-pesta-balon .inv-gallery figure{padding:8px 8px 26px;border-radius:6px;background:#fff;box-shadow:var(--pb-shadow);overflow:visible;transform:rotate(-2deg)}
.theme-pesta-balon .inv-gallery figure:nth-child(even){transform:rotate(2.5deg)}
.theme-pesta-balon .inv-gallery figure img{border-radius:2px}
.theme-pesta-balon .inv-gift{padding:22px 20px;border-radius:var(--inv-card-radius);background:var(--inv-surface);box-shadow:var(--pb-shadow)}
.theme-pesta-balon .inv-gift-number{font:700 25px/1.2 var(--inv-font-display);color:var(--inv-text)}
.theme-pesta-balon .inv-form{padding:22px 18px;border-radius:var(--inv-card-radius);background:var(--inv-surface);box-shadow:var(--pb-shadow)}
.theme-pesta-balon .inv-field input,.theme-pesta-balon .inv-field select,.theme-pesta-balon .inv-field textarea{border-radius:16px;background:#f7fbff}
.theme-pesta-balon .inv-wishes article{border-radius:20px;background:var(--inv-surface);box-shadow:0 6px 16px rgba(45,53,97,.06)}
.theme-pesta-balon .pb-invitees{text-align:center}
.theme-pesta-balon .inv-invitees li{padding:8px 14px;border-radius:999px;background:var(--inv-surface)}
.theme-pesta-balon .pb-closing{width:min(100%,520px);margin:30px auto 0;padding:36px 22px 10px;border-radius:var(--inv-card-radius) var(--inv-card-radius) 0 0;background:#fff;text-align:center}
.theme-pesta-balon .pb-closing p{margin:12px 0}
.theme-pesta-balon .inv-nav{background:#fff;color:var(--inv-text);box-shadow:var(--pb-shadow)}
.theme-pesta-balon .inv-nav a.is-active{background:var(--inv-primary);color:#fff}
.theme-pesta-balon .inv-audio{background:var(--inv-primary)}

@media (min-width:760px){
    .theme-pesta-balon .inv-events{grid-template-columns:repeat(2,minmax(0,1fr))}
    .theme-pesta-balon .inv-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
    .theme-pesta-balon .pb-balloon{width:80px;height:120px}
}

@keyframes pb-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-16px) rotate(3deg)}}
@keyframes pb-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes pb-pop{0%{transform:scale(1);opacity:1}60%{transform:scale(1.35);opacity:.6}100%{transform:scale(.2);opacity:0}}
@keyframes pb-wiggle{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-4deg)}90%{transform:rotate(4deg)}95%{transform:rotate(-2deg)}}
@keyframes pb-flicker{from{transform:scale(1) rotate(-4deg)}to{transform:scale(1.12,1.2) rotate(4deg)}}
@keyframes pb-smoke{0%{opacity:.9;transform:translate(-50%,0) scale(.6)}100%{opacity:0;transform:translate(-50%,-50px) scale(2)}}

@media (prefers-reduced-motion:reduce){.theme-pesta-balon .pb-balloon.is-popped svg{opacity:0}}
