*{box-sizing:border-box}
:root{--pink:#ff89ae;--pink2:#ffd8e6;--pink3:#fff4f8;--ink:#4b3c47;--muted:#8b7582;--green:#65c86a;--red:#ff6a70;--shadow:0 24px 60px rgba(183,113,145,.17)}
html,body{min-height:100%;width:100%}
body{margin:0;min-height:100vh;overflow-x:hidden;display:flex;align-items:center;justify-content:center;padding:24px 14px;font-family:"Noto Sans Thai",system-ui,sans-serif;color:var(--ink);background:radial-gradient(circle at 15% 18%,rgba(255,188,214,.52),transparent 28%),radial-gradient(circle at 85% 80%,rgba(255,227,238,.92),transparent 30%),linear-gradient(180deg,#fff5f9 0%,#ffe8f2 52%,#fff4f8 100%)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(rgba(255,142,178,.72) 1px,transparent 1px);background-size:22px 22px;opacity:.11}
.app-shell{width:100%;display:flex;justify-content:center;position:relative;z-index:2}
.bg-glow{position:fixed;width:260px;height:260px;border-radius:50%;filter:blur(35px);opacity:.28;pointer-events:none;z-index:0;animation:glowFloat 7s ease-in-out infinite}.glow-1{background:#ffafd0;left:-80px;top:18%}.glow-2{background:#ffc8df;right:-80px;bottom:12%;animation-delay:2s}
.card{position:relative;width:min(100%,470px);padding:23px 22px 20px;border:1px solid rgba(255,255,255,.46);border-radius:32px;background:rgba(255,239,246,.42);box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.72);text-align:center;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);animation:cardIn .75s cubic-bezier(.2,.8,.2,1)}
.top-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:rgba(255,221,233,.62);color:#ba5d81;font-size:12px;font-weight:700;letter-spacing:.2px;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.sticker-wrap{position:relative;width:230px;height:230px;margin:2px auto 0;display:grid;place-items:center}
#capoo-img{width:218px;height:218px;object-fit:contain;background:transparent!important;filter:drop-shadow(0 13px 14px rgba(113,82,102,.12));animation:floaty 3.2s ease-in-out infinite;will-change:transform;mix-blend-mode:normal}
#capoo-img.gif-switch{animation:gifSwitch .42s ease both,floaty 3.2s .42s ease-in-out infinite}
#capoo-img.angry-pulse{filter:drop-shadow(0 15px 18px rgba(255,78,94,.16));animation:angryPulse 1s ease-in-out infinite}
#capoo-img.success-bounce{animation:successBounce .9s cubic-bezier(.2,1.45,.4,1) both}
.sticker-sparkle{position:absolute;color:#ff99bb;font-family:"Itim",cursive;font-size:27px;animation:twinkle 1.8s ease-in-out infinite;pointer-events:none}.s1{top:13px;right:19px}.s2{bottom:28px;left:17px;animation-delay:.5s}
.eyebrow{margin:0;color:#bc6b88;font-size:13px;font-weight:700;min-height:22px;transition:all .35s ease}h1{margin:4px 0 7px;font-family:"Itim","Noto Sans Thai",sans-serif;font-size:28px;line-height:1.15;color:#4d3b48;transition:all .4s ease}.message{max-width:390px;margin:0 auto;color:#6e5a67;font-size:16px;line-height:1.65;transition:all .4s ease}
.buttons{margin-top:19px;display:flex;flex-wrap:wrap;justify-content:center;gap:11px;min-height:54px}.btn{font:inherit;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:transform .2s,filter .2s,box-shadow .2s,opacity .2s}.btn{min-width:155px;padding:13px 19px;border-radius:16px;color:#fff;font-weight:700;font-size:16px;box-shadow:0 9px 20px rgba(60,35,48,.12)}.btn:hover{filter:brightness(1.03);transform:translateY(-2px)}.btn:active{transform:translateY(1px) scale(.98)}.btn-yes{background:linear-gradient(135deg,#71d276,#50b75a)}.btn-no{background:linear-gradient(135deg,#ff777b,#f25763);--nudge-x:0px}.btn:disabled{cursor:not-allowed;opacity:.72}.btn-finished{background:linear-gradient(135deg,#efbfd0,#dd9fb6)!important}.btn-locked{background:linear-gradient(135deg,#a77d8d,#866170)!important;box-shadow:none}
.result{margin:15px auto 0;max-width:390px;padding:10px 14px;border-radius:14px;background:rgba(255,245,248,.64);color:#b85578;font-weight:700;line-height:1.5;min-height:0;animation:resultIn .35s ease}.result[hidden]{display:none}.tiny-note{margin-top:11px;font-size:11px;color:#a9939f;min-height:17px}
.decor{position:fixed;z-index:1;color:#ff9fbe;opacity:.4;font-family:"Itim",cursive;animation:drift 5s ease-in-out infinite;pointer-events:none}.decor-1{top:10%;left:8%;font-size:38px}.decor-2{top:20%;right:8%;font-size:28px;animation-delay:1s}.decor-3{bottom:12%;left:12%;font-size:32px;animation-delay:2s}.decor-4{bottom:19%;right:12%;font-size:34px;animation-delay:.8s}
.heart-burst{position:fixed;left:50%;top:50%;z-index:20;pointer-events:none;font-size:20px;animation:burst 1.25s ease-out forwards}.card.is-no{animation:softShake .28s ease}.card.is-yes{box-shadow:0 28px 70px rgba(95,191,112,.18),inset 0 1px 0 rgba(255,255,255,.72)}
.success-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:rgba(255,222,236,.78);backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease,visibility .45s ease}.success-overlay.show{opacity:1;visibility:visible}.success-content{position:relative;width:min(92vw,430px);padding:30px 24px 25px;border:1px solid rgba(255,255,255,.7);border-radius:34px;background:rgba(255,247,250,.76);box-shadow:0 30px 90px rgba(183,113,145,.26);text-align:center;transform:translateY(45px) scale(.86);opacity:0;animation:successCard .85s cubic-bezier(.18,1.35,.4,1) .08s forwards}.success-badge{display:inline-block;padding:7px 14px;border-radius:999px;background:#ffe2ec;color:#bd5e83;font-weight:800;font-size:13px}.success-capoo{display:block;width:210px;height:210px;object-fit:contain;margin:2px auto 0;background:transparent;filter:drop-shadow(0 15px 18px rgba(122,78,103,.14));animation:successCapoo 2.2s ease-in-out infinite}.success-title{font-family:"Itim","Noto Sans Thai",sans-serif;font-size:29px;color:#513b49;margin-top:2px}.success-text{font-size:15px;line-height:1.75;color:#755f6c;margin-top:7px}.success-hearts{margin-top:12px;color:#ed78a4;font-size:22px;letter-spacing:7px;animation:heartWave 1.4s ease-in-out infinite}.success-particles{position:absolute;inset:0;overflow:hidden;pointer-events:none}.success-particle{position:absolute;left:50%;top:75%;font-size:22px;opacity:0;animation:particleFly 1.8s var(--delay) ease-out forwards}.success-overlay.settled .success-content{box-shadow:0 35px 100px rgba(183,113,145,.29)}
@keyframes cardIn{from{opacity:0;transform:translateY(20px) scale(.97)}to{opacity:1;transform:none}}@keyframes gifSwitch{0%{opacity:.25;transform:scale(.84) rotate(-3deg)}60%{opacity:1;transform:scale(1.04) rotate(2deg)}100%{opacity:1;transform:scale(1)}}@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px) rotate(-1deg)}}@keyframes angryPulse{0%,100%{transform:translateY(0) rotate(-1deg) scale(1)}50%{transform:translateY(-5px) rotate(1deg) scale(1.035)}}@keyframes successBounce{0%{transform:scale(.7) rotate(-7deg)}55%{transform:scale(1.1) rotate(3deg)}100%{transform:scale(1) rotate(0)}}@keyframes twinkle{0%,100%{opacity:.35;transform:scale(.8) rotate(-8deg)}50%{opacity:1;transform:scale(1.12) rotate(8deg)}}@keyframes drift{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-16px) rotate(5deg)}}@keyframes glowFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(18px,-18px) scale(1.08)}}@keyframes softShake{25%{transform:translateX(-5px) rotate(-.5deg)}50%{transform:translateX(5px) rotate(.5deg)}75%{transform:translateX(-3px)}}@keyframes nudge{0%{transform:translateX(0)}40%{transform:translateX(var(--nudge-x)) rotate(-2deg)}100%{transform:translateX(0) rotate(0)}}@keyframes burst{0%{transform:translate(-50%,-50%) scale(.5);opacity:0}15%{opacity:1}100%{transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--r)) scale(1.25);opacity:0}}@keyframes resultIn{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}@keyframes successCard{0%{opacity:0;transform:translateY(45px) scale(.86) rotate(-2deg)}60%{opacity:1;transform:translateY(-7px) scale(1.02) rotate(.5deg)}100%{opacity:1;transform:none}}@keyframes successCapoo{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg) scale(1.025)}}@keyframes heartWave{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.08);opacity:1}}@keyframes particleFly{0%{opacity:0;transform:translate(-50%,0) scale(.5) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)),var(--y)) scale(var(--scale)) rotate(35deg)}}
@media (max-width:500px){body{padding:14px 9px}.card{padding:18px 14px 16px;border-radius:28px}.sticker-wrap{width:205px;height:205px}#capoo-img{width:198px;height:198px}h1{font-size:25px}.message{font-size:15px}.btn{min-width:145px;padding:12px 14px;font-size:15px}.success-content{padding:24px 17px 21px}.success-capoo{width:185px;height:185px}.success-title{font-size:26px}.success-text{font-size:14px}}
@media (max-width:360px){.buttons{gap:8px}.btn{min-width:132px}.sticker-wrap{width:182px;height:182px}#capoo-img{width:176px;height:176px}h1{font-size:23px}.message{font-size:14px}.success-capoo{width:165px;height:165px}.success-title{font-size:24px}}
