    :root {
      --ink:#503b43; --muted:#907b83; --pink:#ffcbd7; --peach:#ffdfc6;
      --yellow:#ffe89e; --mint:#d5f0df; --lilac:#e7dcff; --blue:#d9edff;
      --cream:#fffaf6; --line:#f0e0dc; --shadow:0 18px 48px rgba(95,62,75,.12);
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;min-height:100vh;color:var(--ink);font-family:Nunito,system-ui,sans-serif;background:
      radial-gradient(circle at 0% 8%,#ffe2e9 0,transparent 22rem),
      radial-gradient(circle at 100% 18%,#fff0c5 0,transparent 22rem),#fffaf7}
    button,input,textarea,select{font:inherit}
    button{cursor:pointer}
    .page{width:min(100% - 32px,800px);margin:auto;padding:16px 0 48px}
    .hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;overflow:hidden;padding:28px 22px;text-align:center;border-radius:32px;
      background:linear-gradient(145deg,#ffe5e7 0%,#fff0cf 48%,#e4efff 100%);box-shadow:var(--shadow);border:1px solid #fff}
    .hero:before,.hero:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
    .hero:before{width:170px;height:170px;background:#fff8;left:-80px;bottom:-95px}
    .hero:after{width:130px;height:130px;background:#fff7;right:-55px;top:95px}
    .topline{grid-column:1/-1;position:relative;z-index:1;font-size:.65rem;font-weight:900;line-height:1.7;letter-spacing:.14em;text-transform:uppercase;color:#dcc0ed}
    h1{font-size:clamp(2.2rem,8vw,3.6rem);line-height:1.06;letter-spacing:-.045em;margin:16px 0 14px;font-weight:900;color:#fff0ff;overflow-wrap:anywhere;text-wrap:balance}
    .hero-sub{max-width:360px;margin:0 auto;color:#dec4eb;font-weight:600;font-size:.94rem;line-height:1.7;text-wrap:pretty}
    .hero-copy{position:relative;z-index:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
    .hero-art{position:relative;z-index:1;display:grid;gap:12px;justify-items:center;align-self:center;min-width:0;width:100%;margin:0}
    .poster-frame{width:min(100%,230px);border-radius:24px;padding:7px;background:linear-gradient(160deg,#2b1546,#120a1d);box-shadow:0 18px 38px rgba(0,0,0,.35);border:1px solid #7e45b7}
    .poster-image{width:100%;height:auto;border-radius:18px;display:block}
    .poster-caption{font-size:.72rem;font-weight:900;color:#cfa3ef;letter-spacing:.02em}
    .age-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid #b87ae655;border-radius:99px;background:#b76bff18;color:#f3ceff;font-size:.68rem;letter-spacing:.06em;font-weight:900}
    .hero-cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;max-width:100%;margin-top:22px;padding:13px 20px;border-radius:14px;background:linear-gradient(120deg,#ffb4ed,#c4a0ff);color:#2c123e;font-size:.88rem;font-weight:900;text-decoration:none;box-shadow:0 8px 24px #d979ff26;transition:transform .2s,box-shadow .2s}
    .hero-cta:hover{transform:translateY(-2px);box-shadow:0 12px 28px #d979ff40}
    a:focus-visible,button:focus-visible{outline:3px solid #ffb4ed;outline-offset:4px}
    section[id]{scroll-margin-top:20px}
    .floaty{position:absolute;z-index:0;pointer-events:none;opacity:.45;font-size:1.4rem;animation:float 4s ease-in-out infinite}
    .f1{left:3%;top:14%;animation-delay:-1s}.f2{right:4%;top:12%;animation-delay:-2s}.f3{left:4%;bottom:8%;animation-delay:-.5s}.f4{right:4%;bottom:6%;animation-delay:-2.7s}
    @keyframes float{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-13px) rotate(7deg)}}
    .tap-hint{font-size:.76rem;color:#a17c85;font-weight:900;margin:12px 0 0}
    .card{margin-top:17px;padding:21px;background:#ffffffed;border:1px solid var(--line);border-radius:25px;box-shadow:0 10px 32px #7a56600d}
    .section-head{display:flex;align-items:center;gap:11px;margin-bottom:5px}
    .section-icon{flex:0 0 43px;width:43px;height:43px;border-radius:15px;display:grid;place-items:center;font-size:1.45rem;background:#fff0d8}
    h2{margin:0;font-size:1.25rem;font-weight:1000}
    .sub{margin:0 0 16px 54px;color:var(--muted);font-size:.86rem;font-weight:700}
    label{display:block;margin:14px 0 7px;font-size:.9rem;font-weight:1000}
    input,textarea,select{width:100%;padding:14px 15px;border:1.5px solid #eddfdc;border-radius:15px;background:#fffdfa;color:var(--ink);outline:none}
    input:focus,textarea:focus,select:focus{border-color:#dc9cad;box-shadow:0 0 0 4px #faeaf0}
    textarea{min-height:105px;resize:vertical}
    .hint{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#a48e94;font-size:.75rem;font-weight:800}
    .primary,.wa-button,.soft-button{display:flex;width:100%;justify-content:center;align-items:center;gap:9px;border:0;border-radius:16px;padding:15px 17px;font-weight:1000;text-decoration:none}
    .primary{margin-top:18px;color:#684a4d;background:linear-gradient(120deg,#ffdf9e,#ffcbd9);box-shadow:0 6px 0 #e9b5bb;transition:transform .15s}
    .primary:active{transform:translateY(3px);box-shadow:0 3px 0 #e9b5bb}
    .primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
    .soft-button{background:#f7edf1;color:#805f6b}
    .error{display:none;margin-top:11px;padding:11px 13px;border-radius:13px;background:#fff0ef;color:#a34c55;font-size:.84rem;font-weight:900}
    .mission{display:flex;gap:9px;align-items:center;padding:12px 13px;border-radius:15px;background:#f2f8ff;color:#66809b;font-size:.8rem;font-weight:900;margin-top:13px}
    .game-intro{text-align:center}
    .game-emoji{font-size:3.7rem;display:block;animation:bob 2s ease-in-out infinite}
    @keyframes bob{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-8px) rotate(5deg)}}
    .gift-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0 8px}
    .gift{border:2px solid #f3d8ca;border-radius:20px;padding:13px 5px 12px;background:linear-gradient(160deg,#fff5e9,#ffe0d9);box-shadow:0 6px 0 #eac9c1;transition:transform .18s,filter .18s;min-width:0}
    .gift:nth-child(2){background:linear-gradient(160deg,#f8f0ff,#e9ddff);border-color:#dfd0f2;box-shadow:0 6px 0 #d4c4e9}
    .gift:nth-child(3){background:linear-gradient(160deg,#f0fff5,#d8f0df);border-color:#cce7d4;box-shadow:0 6px 0 #c0ddc9}
    .gift:hover{transform:translateY(-5px) rotate(-2deg)}
    .gift:active{transform:scale(.95)}
    .gift:disabled{cursor:default;filter:grayscale(.25);opacity:.75}
    .gift.selected{outline:4px solid #ffd16e;transform:translateY(-6px) scale(1.04)}
    .gift .emoji{display:block;font-size:clamp(2.6rem,13vw,3.7rem);line-height:1.2}
    .gift small{display:block;margin-top:5px;color:#8b6d76;font-weight:1000}
    .game-note{text-align:center;color:#9c858c;font-size:.77rem;font-weight:800}
    .result{text-align:center}
    .result .amount{font-size:clamp(2.7rem,13vw,4rem);font-weight:1000;color:#ad762b;line-height:1.1;margin:10px 0}
    .voucher{margin:17px 0 8px;padding:15px;border:2px dashed #e6bf79;border-radius:18px;background:#fff9e9}
    .voucher-code{font-size:1.3rem;letter-spacing:.13em;font-weight:1000;color:#805a2d;overflow-wrap:anywhere}
    .wa-button{margin-top:13px;color:#fff;background:#20b866}
    .wall-list{display:grid;gap:10px}
    .wish{padding:14px;border-radius:17px;background:#fff9f7;border:1px solid #f0e3e0}
    .wish-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:7px}
    .wish-name{font-weight:1000}
    .place{padding:5px 9px;border-radius:99px;background:#f3eafa;color:#8b6d9b;font-size:.67rem;font-weight:1000;white-space:nowrap}
    .wish p{margin:0;color:#806e75;font-size:.88rem;line-height:1.5;overflow-wrap:anywhere}
    .empty{text-align:center;padding:20px 8px;color:#a18c91}
    .gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
    .photo-link{position:relative;display:block;overflow:hidden;border-radius:18px;aspect-ratio:4/3;background:linear-gradient(135deg,#ffe6e9,#e8e1ff);border:1px solid #f0e1e5;text-decoration:none;color:#886d76}
    .photo-link img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
    .photo-link:hover img{transform:scale(1.06)}
    .photo-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-weight:1000;font-size:.8rem}
    .photo-placeholder b{font-size:2rem}
    .gallery-caption{margin-top:9px;text-align:center;color:#a18a91;font-size:.76rem;font-weight:800}
    .progress-dots{display:flex;justify-content:center;gap:7px;margin:18px 0 0}
    .progress-dots span{width:8px;height:8px;border-radius:99px;background:#e9d9db}
    .progress-dots span.active{width:22px;background:#e9aebc}
    .hidden{display:none!important}
    .footer{text-align:center;color:#b39ca2;font-size:.75rem;margin-top:23px}
    .toast{position:fixed;z-index:10;left:50%;bottom:18px;transform:translateX(-50%);max-width:calc(100% - 30px);padding:12px 16px;border-radius:99px;background:#604954;color:#fff;font-size:.83rem;font-weight:900;box-shadow:var(--shadow)}
    .confetti-piece{position:fixed;top:-20px;z-index:20;pointer-events:none;font-size:20px;animation:fall 2.4s linear forwards}
    @keyframes fall{to{transform:translateY(110vh) rotate(720deg);opacity:0}}
    @media(min-width:600px){.page{padding-top:28px}.card{padding:28px}}
    @media(min-width:720px){
      .hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:28px;padding:30px 32px 36px;text-align:left}
      .topline{text-align:left;padding-bottom:16px;border-bottom:1px solid #c18be426}
      .hero-copy{align-items:flex-start}
      .hero-sub{margin:0}
      .poster-frame{width:min(100%,280px)}
      .poster-caption{text-align:center}
    }
    @media(max-width:380px){.page{width:calc(100% - 24px)}.hero{padding:24px 16px;gap:20px;border-radius:24px}.card{padding:18px}.hint{flex-wrap:wrap}.sub{margin-left:0;margin-top:10px}.poster-frame{width:min(100%,200px)}}
    @media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important}}
  
    /* Kinan's neon purple/pink palette */
    body { color:#f3d8ff; background:
      radial-gradient(circle at 10% 10%,rgba(173,72,255,.28) 0,transparent 18rem),
      radial-gradient(circle at 90% 15%,rgba(255,83,196,.2) 0,transparent 20rem),
      radial-gradient(circle at 55% 100%,rgba(115,71,255,.16) 0,transparent 24rem),
      linear-gradient(180deg,#120817 0%,#180b28 44%,#09060f 100%); }
    .hero { background:linear-gradient(150deg,#1c0d2f 0%,#2a1144 46%,#0f0818 100%); border-color:#8f4cff55; box-shadow:0 24px 60px rgba(52,16,83,.42); }
    .hero:before{background:radial-gradient(circle,#ff7efb55 0,transparent 70%)}
    .hero:after{background:radial-gradient(circle,#a06bff55 0,transparent 70%)}
    .poster-frame{background:linear-gradient(180deg,rgba(255,128,231,.1),rgba(66,17,104,.25)),linear-gradient(160deg,#2b1546,#120a1d); border-color:#c46dff; box-shadow:0 18px 38px rgba(255,99,224,.14);}
    .poster-caption{color:#f0c5ff}
    .kinan-avatar { background:linear-gradient(145deg,#2d1147,#120817); box-shadow:0 14px 30px rgba(196,109,255,.2); border-color:#f08cff; }
    .card { background:rgba(18,10,28,.94); border-color:#60307f; box-shadow:0 14px 36px rgba(0,0,0,.32); }
    input,textarea,select { background:#130a1f; border-color:#4e2a75; color:#f7dcff; }
    input:focus,textarea:focus,select:focus { border-color:#ff83f4; box-shadow:0 0 0 4px rgba(255,131,244,.16); }
    .section-icon { background:linear-gradient(135deg,#5d2ef2,#ff67cf); color:#fff; }
    .primary { color:#210c2f; background:linear-gradient(120deg,#ff9ceb,#bc8cff); box-shadow:0 6px 0 #7b47c4; }
    .primary:active { box-shadow:0 3px 0 #7b47c4; }
    .mission { background:rgba(119,53,181,.18); color:#f0c5ff; border:1px solid #7d44b8; }
    .gift { border-color:#6d3aa7; background:linear-gradient(160deg,#2b1546,#151021); box-shadow:0 6px 0 #46206e; }
    .gift:nth-child(2) { background:linear-gradient(160deg,#35174f,#1b1028); border-color:#8856cc; box-shadow:0 6px 0 #513075; }
    .gift:nth-child(3) { background:linear-gradient(160deg,#24193b,#14121e); border-color:#5f4ad6; box-shadow:0 6px 0 #33295f; }
    .gift small { color:#e3bbff; }
    .gift.selected { outline-color:#ff79de; }
    .result .amount { color:#ff8ced; }
    .voucher { border-color:#8d4dcd; background:#1b112a; }
    .voucher-code { color:#ffd6ff; }
    .wish { background:#170f23; border-color:#5b2d86; }
    .place { background:#33164c; color:#ffb7ef; }
    .wish p { color:#e8c9f4; }
    .photo-link { background:linear-gradient(135deg,#2a1543,#120a1d); border-color:#6d33a7; color:#e7c9ff; }
    .gallery-caption,.tap-hint,.game-note,.footer { color:#cfa3ef; }
    .wish-rain { position:fixed; inset:0 0 90px; overflow:hidden; pointer-events:none; z-index:2; }
    .page { position:relative; z-index:1; }
    .sub,.hint,.empty { color:#cbb3d9; }
    
    .wish-float { position:absolute; top:-220px; width:230px;
      padding:12px; display:flex; align-items:flex-start; gap:9px;
      border:1px solid #f6c3ff66; border-radius:20px 20px 20px 5px; background:linear-gradient(145deg,#fff8ff99,#f0e3ff80);
      box-shadow:0 8px 24px #12081724; color:#614075; font-size:.76rem;
      font-weight:700; line-height:1.45; text-align:left; overflow-wrap:anywhere;
      animation:wishFall var(--fall-time,30s) linear infinite; opacity:0; }
    .wish-float.left { left:12px; }
    .wish-float.right { right:12px; border-radius:20px 20px 5px 20px;background:linear-gradient(145deg,#fff9ee99,#ffe6ef80); }
    .wish-animal { flex:0 0 44px; width:44px;height:44px;display:grid;place-items:center;padding:3px;
      border-radius:50%;background:linear-gradient(145deg,#ffceeb,#c9bdff);border:2px solid #fff;
      box-shadow:0 2px 8px #ad68bb33; }
    .wish-animal svg{width:100%;height:100%}
    .wish-chat{flex:1;min-width:0}
    .wish-float strong { display:block; max-width:100%; font-size:.8rem; margin-bottom:4px; color:#8a4598; }
    .wish-snippet { display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line; }
    @keyframes wishFall {
      0%{transform:translate(0,-30px) rotate(-3deg);opacity:0}
      10%{opacity:.92}
      45%{transform:translate(12px,55vh) rotate(3deg)}
      85%{opacity:.92}
      100%{transform:translate(-6px,calc(100vh + 220px)) rotate(-2deg);opacity:0}
    }
    @media(max-width:1039px) {
      .wish-float { width:170px;padding:9px;gap:7px;font-size:.67rem; }
      .wish-float:nth-child(n+3){display:none}
      .wish-float.right{animation-delay:-19s!important}
      .wish-float strong { font-size:.72rem; }
      .wish-animal { flex-basis:34px;width:34px;height:34px; }
      .wish-snippet{-webkit-line-clamp:4}
      .wish-float.left{left:6px}.wish-float.right{right:6px}
      body:has(input:focus,textarea:focus) .wish-rain{visibility:hidden}
    }
    @media(min-width:1040px) {
      .wish-float.left { left:max(12px,calc((100vw - 1280px)/2)); }
      .wish-float.right { right:max(12px,calc((100vw - 1280px)/2)); }
    }


    /* Auto-sliding Kinan moments carousel */
    .moments-slider{position:relative;display:flex;align-items:center;gap:8px;margin:12px 0 0}
    .moments-window{overflow:hidden;flex:1;border-radius:22px}
    .moments-track{display:flex;transition:transform .65s cubic-bezier(.22,.75,.25,1);will-change:transform}
    .photo-link{flex:0 0 100%;width:100%;aspect-ratio:4/3;border-radius:22px;border:3px solid #fff;box-shadow:0 8px 22px #5b8dc526}
    .photo-link img{object-fit:cover}
    .slider-arrow{flex:0 0 34px;width:34px;height:34px;border:0;border-radius:50%;background:linear-gradient(145deg,#6ebaff,#4c8fe8);color:#fff;font-size:1.65rem;line-height:1;box-shadow:0 4px 10px #397cc633;cursor:pointer}
    .slider-dots{display:flex;justify-content:center;gap:7px;margin:13px 0 0}
    .slider-dots button{width:8px;height:8px;padding:0;border:0;border-radius:99px;background:#b9d8f7;transition:all .25s;cursor:pointer}
    .slider-dots button.active{width:22px;background:#438fe7}
    #heroPhoto{width:72px;height:72px;margin-top:18px;border:2px solid #d69bf2;border-radius:50%;object-fit:cover;object-position:50% 82%;transform:none}
    @media(max-width:380px){.slider-arrow{flex-basis:30px;width:30px;height:30px}.moments-slider{gap:6px}}


/* Tambahan integrasi backend (menggantikan style inline & state baru) */
.sub-tight{margin:5px 0 0}
.result-emoji{font-size:2.2rem}
.voucher-label{font-size:.7rem;font-weight:1000;color:#a68b66;margin-bottom:5px}
.hero-title-line{display:block}
.event-date{margin:14px 0 0;font-size:.8rem;line-height:1.6;font-weight:800;color:#f0c5ff}
.more-button{margin-top:12px}
.thanks{text-align:center}
.thanks .big{font-size:2.6rem}
.wa-note{margin-top:13px}
.notice{margin:0 0 4px;padding:11px 13px;border-radius:13px;background:#fff6e0;color:#8a6420;font-size:.84rem;font-weight:900;line-height:1.4}

/* Dock: pertanyaan kehadiran dan dua pilihan, selalu terlihat */
.page{padding-bottom:104px}
.toast{bottom:84px}
.dock{position:fixed;z-index:9;left:50%;bottom:12px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;width:min(100% - 20px,480px);padding:8px 10px;border-radius:24px;background:#fff;box-shadow:0 8px 22px #4f7fb838}
.dock-question{flex:1;min-width:0;color:#405d83;font-size:.84rem;font-weight:900;text-align:center}
.dock-pill{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 13px;border-radius:99px;border:2px solid #fff;
  font-family:inherit;font-size:.78rem;font-weight:900;line-height:1.15;text-align:center;text-decoration:none;cursor:pointer;transition:transform .15s}
.dock-yes{color:#405d83;background:linear-gradient(120deg,#cceaff,#d9dfff)}
.dock-no{color:#8a6420;background:linear-gradient(120deg,#fff6d8,#ffe9f0)}
.dock-pill:hover{transform:translateY(-2px)}
.dock-pill:active{transform:scale(.96)}
.dock-pill[aria-pressed="true"]{border-color:#805ab6;box-shadow:0 0 0 2px #805ab633}
.dock-pill:focus-visible{outline:3px solid #805ab6;outline-offset:2px}
.attendance-dialog{width:min(100% - 32px,400px);max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:2px solid #eadcf7;border-radius:24px;background:#fff;color:#405d83;box-shadow:0 18px 60px #12081755}
.attendance-dialog::backdrop{background:#12081799;backdrop-filter:blur(5px)}
.attendance-dialog h2{margin:0 0 8px}
.attendance-dialog .primary{margin-top:16px}
@media(max-width:380px){.dock-question{font-size:.76rem}.dock-pill{font-size:.72rem;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-iteration-count:1!important}}
