:root{--pink:#a8216e;--hot:#f04697;--ink:#68334f;--soft:#fff6fa;--line:#f0cfe0;--white:rgba(255,251,253,.91)}*{box-sizing:border-box}html{background:#fbe1eb}body{margin:0;min-height:100svh;color:var(--ink);font:15px/1.5 ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;overflow:hidden;overscroll-behavior:none}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid #a8216e;outline-offset:4px}button:disabled{opacity:.45;cursor:wait}[hidden]{display:none!important}.sky{position:fixed;inset:0;background:linear-gradient(180deg,#fff7fb15,#fff2f85c),url('/images/wedding-clouds.webp') center/cover no-repeat;z-index:-1}.sky::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,#fff8fb40,transparent 65%)}.topbar{position:fixed;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:calc(100% - 40px);max-width:1160px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:8}.prototype-pill{display:flex;align-items:center;gap:8px;border:1px solid #fff8fc;background:#fffafbd9;border-radius:40px;padding:9px 13px;color:#916075;font-size:11px;font-weight:750;letter-spacing:.02em;box-shadow:0 5px 16px #9e336d08}.prototype-pill span{width:6px;height:6px;border-radius:50%;background:#f04697}.topbar nav{display:flex;gap:8px}.nav-button{border:1px solid #fff7fb;border-radius:24px;padding:10px 16px;background:#fffafbd9;color:var(--pink);font-weight:750;font-size:13px;box-shadow:0 5px 16px #9e336d08}.nav-button.solid{background:var(--pink);border-color:var(--pink);color:white;min-width:80px}.nav-button:hover{transform:translateY(-2px)}.home-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-48%);width:calc(100% - 44px);max-width:470px;text-align:center;z-index:3;pointer-events:none;animation:appear .8s both}.home-panel h1{margin:0}.home-panel h1 img{width:min(440px,100%);height:auto;display:block}.love-story{font-weight:650;font-size:21px;margin:12px 0 27px}.wedding-card{position:relative;background:var(--white);border:1px solid white;border-radius:24px;padding:29px 20px 25px;box-shadow:0 18px 55px #b9387621;backdrop-filter:blur(8px)}.eyebrow{color:var(--pink);font-size:10px;font-weight:850;letter-spacing:.19em;margin:0 0 10px}.date{font-size:44px;font-weight:900;letter-spacing:-.035em;color:var(--pink);line-height:1.3}.date span{color:#e3b5cd;font-weight:500}.wedding-card p:not(.eyebrow){margin:10px 0 0;font-size:14px;font-weight:600}.wedding-card .wedding-time{font-size:12px!important;color:#9c7689}.card-heart{display:block;color:var(--pink);font-size:23px;margin-top:12px}.landing-hint{display:inline-block;background:#fff8fba3;border-radius:20px;padding:8px 15px;font-size:12px;color:#916075;margin:24px 0 0}.prototype-footer{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;font-size:10px;color:#9c6d86;z-index:8}.arena{position:fixed;inset:0;overflow:hidden;touch-action:manipulation}.balloon-layer,.fx-layer{position:absolute;inset:0;pointer-events:none}.balloon{position:absolute;top:0;left:0;border:0;padding:0;background:transparent;transform-origin:50% 30%;pointer-events:none;will-change:transform}.balloon img{width:100%;height:auto;display:block;user-select:none;-webkit-user-drag:none;pointer-events:none}.balloon:focus-visible{outline:2px dashed #a8216e;border-radius:30px}.balloon.front{z-index:4}.balloon.explosive img{filter:drop-shadow(0 0 6px #fff1fb99)}.balloon.popping{pointer-events:none;animation:pop-body .14s ease-in both}.balloon.popping img{animation:pop-image .14s ease-in both;transform-origin:50% 30%}.game-hud,.game-footer{display:none}body:not([data-state="idle"]) .home-only{display:none}body:not([data-state="idle"]) .game-hud,body:not([data-state="idle"]) .game-footer{display:block}body:not([data-state="idle"]) .arena{top:126px;bottom:99px;left:max(0px,calc((100vw - 960px)/2));right:max(0px,calc((100vw - 960px)/2));border-top:1px dashed #cc7ba657}.game-hud{position:fixed;top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:720px;z-index:10}.hud-top{display:flex;align-items:center;gap:12px;margin:0 4px 10px}.hud-top img{width:140px;height:auto}.hud-level{margin-left:auto;font-size:12px;color:#87516d;background:#fff8fbb0;border:1px solid #fff9fb;border-radius:20px;padding:4px 10px}.icon-button{border:1px solid #fff9fb;background:#fff8fbd9;width:33px;height:33px;border-radius:50%;color:var(--pink);font-size:16px;font-weight:800}.scoreboard{display:grid;grid-template-columns:1fr 1fr .85fr;gap:8px}.score-card{background:var(--white);border:1px solid #fff;border-radius:18px;padding:9px 15px;box-shadow:0 8px 24px #8b235015;backdrop-filter:blur(10px);text-align:center}.score-card>span{display:block;font-size:8px;font-weight:850;letter-spacing:.11em;color:#a07a90}.score-card strong{display:block;line-height:1.3;color:var(--pink);font-size:29px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.total-score strong{font-size:25px;margin-top:3px}.lives{display:flex;justify-content:center;gap:6px;font-size:25px;color:var(--hot);line-height:1.5}.lives .lost{color:#e8c8da;transform:scale(.75)}.lives-card.shake{animation:shake .4s}.game-footer{position:fixed;bottom:max(13px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;z-index:10;pointer-events:none}.combo-badge{display:inline-flex;align-items:center;gap:9px;border:1px solid #fff;background:#fff9fbd9;border-radius:30px;padding:9px 15px;color:var(--pink);box-shadow:0 6px 22px #a8216e15;backdrop-filter:blur(8px)}.combo-badge b{font-size:20px;line-height:1}.combo-badge>span:last-child{font-size:11px;color:#976280}.combo-badge.hot{background:#a8216e;color:white;border-color:#a8216e;box-shadow:0 4px 22px #a8216e36}.combo-badge.hot>span:last-child{color:#ffe3f0}.combo-badge.celebrate{animation:badge-bump .45s}.combo-flame{font-size:23px;line-height:1}.game-footer p{font-size:10px;color:#925c79;margin:7px 0 0}.countdown-overlay{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff3f880;backdrop-filter:blur(4px);pointer-events:all;touch-action:none;text-align:center}.countdown-overlay p{color:#87516d;font-weight:700}.countdown-overlay strong{font-size:150px;color:var(--pink);line-height:1.2;filter:drop-shadow(0 9px 20px #dd65a13b);animation:count-pop .8s ease-out infinite}.countdown-overlay span{font-weight:600;color:#87516d;font-size:13px}.game-announcement{position:fixed;top:140px;left:0;right:0;text-align:center;pointer-events:none;z-index:12;font-weight:900;font-size:24px;line-height:1.3;color:var(--pink);text-shadow:0 2px white,0 0 20px white;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}.game-announcement.show{opacity:1;transform:translateY(0)}.toast{position:fixed;left:50%;bottom:120px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);z-index:60;background:#fffafbe8;border:1px solid white;border-radius:18px;padding:12px 18px;box-shadow:0 9px 32px #7f204923;color:#a8216e;font-size:12px;font-weight:650;text-align:center}.game-dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 30px);max-width:470px;max-height:calc(100svh - 30px);border:1px solid white;border-radius:29px;background:#fffafd;color:var(--ink);padding:28px;box-shadow:0 30px 100px #6c224e38;overflow:auto;animation:dialog-in .45s cubic-bezier(.2,.8,.2,1)}.game-dialog::backdrop{background:#69314f53;backdrop-filter:blur(9px)}.dialog-close{position:absolute;right:11px;top:10px;width:35px;height:35px;border:0;border-radius:50%;background:#fff1f8;color:#9b567b;font-size:24px;line-height:1}.dialog-panel{text-align:center}.dialog-panel h2{font-size:34px;letter-spacing:-.045em;line-height:1.14;color:var(--pink);margin:9px 0 16px;font-weight:900}.dialog-panel h2>span:not(.result-points){display:inline-block;font-size:.7em;vertical-align:middle}.dialog-intro{font-size:13px;line-height:1.65;color:#8a6177;margin:0 0 18px}.invite-art{position:relative;width:210px;height:145px;margin:2px auto 12px}.invite-art img{position:absolute;left:45px;top:10px;width:120px;height:120px;object-fit:cover;border-radius:26px;box-shadow:0 12px 24px #e33b8823;animation:float-art 4s ease-in-out infinite}.party-heart{position:absolute;color:#f24c9a;font-size:42px;text-shadow:1px 2px 0 #fca9d0,0 4px 8px #d6398a29;animation:float-heart 3.4s ease-in-out infinite}.party-heart.one{left:9px;top:29px;transform:rotate(-17deg)}.party-heart.two{right:1px;top:12px;font-size:32px;animation-delay:-1.3s}.party-spark{position:absolute;right:9px;bottom:20px;color:#e8b763;font-size:21px}.rule-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:0 0 18px}.rule-chips span{font-size:10px;font-weight:650;color:#a45681;background:#fff0f7;border:1px solid #f6ddea;border-radius:20px;padding:6px 9px}.name-label{display:block;text-align:left;font-size:12px;font-weight:700;color:#8c5675;margin:0 0 7px}.name-label+input{display:block;width:100%;padding:12px 15px;border:1px solid #e5b9d0;border-radius:13px;color:var(--ink);background:white;font-size:16px}.form-error{font-size:11px;color:#a8216e;min-height:8px;margin:3px 0 7px}.primary-button,.secondary-button{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--pink);border-radius:15px;background:var(--pink);color:white;min-height:48px;padding:12px 18px;width:100%;font-weight:800;font-size:14px;transition:transform .15s,box-shadow .15s}.primary-button span{font-size:21px;line-height:1}.primary-button:hover{transform:translateY(-2px);box-shadow:0 7px 20px #a8216e20}.secondary-button{background:#fff2f8;color:var(--pink);border-color:#f0cee0;margin-top:10px}.text-button{background:transparent;border:0;padding:11px 7px;margin-top:7px;font-size:12px;color:#946580;text-decoration:underline;text-underline-offset:3px}.fine-print{font-size:10px;color:#ae8a9e;margin:13px 0 0;line-height:1.55}.pause-symbol{width:64px;height:64px;border-radius:50%;background:#fff0f7;color:#a8216e;font-size:28px;line-height:64px;margin:16px auto 20px;font-weight:900}.pause-summary{display:flex;flex-direction:column;background:#fff3f9;border-radius:18px;padding:17px;margin:20px 0}.pause-summary strong{font-size:35px;color:var(--pink);font-weight:900}.pause-summary span{font-size:11px;color:#a1708d}.result-medal{width:76px;height:76px;border-radius:50%;margin:16px auto 19px;background:linear-gradient(130deg,#ffecb5,#e9bf60);border:5px solid #fff0ca;box-shadow:0 9px 24px #c9a54c26;line-height:66px;color:#a97925;font-size:39px;animation:medal-in .7s cubic-bezier(.2,.9,.3,1.4)}.result-panel .result-points{display:inline;color:var(--hot);font-size:50px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:15px 0;margin:16px 0;border-top:1px solid #f2dce7;border-bottom:1px solid #f2dce7}.result-stats b{display:block;font-size:23px;font-weight:850;color:var(--pink)}.result-stats span{display:block;font-size:9px;color:#a37b92}.next-rank{font-size:12px;color:#93617d;margin:0 0 20px}.next-rank strong{color:#a8216e}.rank-heading{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.12em;font-weight:750;color:#ae889d;margin:23px 4px 7px}.rank-list{list-style:none;padding:0;margin:0}.rank-row{display:flex;align-items:center;gap:11px;text-align:left;border-bottom:1px solid #f3e2eb;padding:11px 5px}.rank-number{width:24px;flex-shrink:0;text-align:center;font-size:12px;font-weight:700;color:#a68096}.rank-row:nth-child(-n+3) .rank-number{font-size:21px}.rank-avatar{width:33px;height:33px;flex-shrink:0;border-radius:50%;background:#f9e7f0;color:#a36787;text-align:center;line-height:33px;font-size:12px;font-weight:800}.rank-person{min-width:0;flex:1}.rank-person strong{font-size:13px;display:block;overflow-wrap:anywhere}.rank-person small{font-size:9px;color:#ac8399;display:block}.rank-points{font-size:17px;color:#a8216e;font-weight:850;font-variant-numeric:tabular-nums}.rank-row.you{background:#fff0f7;border:1px solid #f0c7dc;border-radius:13px;padding:11px 9px;margin-top:6px}.rank-row.you .rank-avatar{background:#a8216e;color:white}.prize-note{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid #f1dcbc;background:#fff8e9;padding:12px 14px;border-radius:15px}.prize-note>span{font-size:26px}.prize-note strong{font-size:12px;color:#8f683c}.prize-note p{font-size:10px;color:#a58763;margin:2px 0 0}.your-position{margin:15px 0 18px;padding:13px;border-radius:13px;background:#fff3f9;color:#a8216e;font-size:12px;font-weight:650}.your-position:empty{display:none}.fx{position:absolute;pointer-events:none;z-index:6}.fx-ring{border:3px solid #fff7fc;border-radius:50%;box-shadow:0 0 16px #ff82b8,inset 0 0 10px #ffb3d1;animation:fx-ring .6s ease-out both}.fx-spark{width:6px;height:6px;border-radius:50%;background:#fff9da;box-shadow:0 0 8px #fff,0 0 14px #ffa7cd;animation:fx-spark .85s ease-out both}.fx-heart{color:#f34c97;font-size:16px;animation:fx-spark 1.05s ease-out both;text-shadow:0 1px #fff}.fx-score{font-weight:950;font-size:28px;color:#a8216e;letter-spacing:-.04em;text-shadow:0 2px 0 white,1px 0 0 white,-1px 0 white,0 0 13px white;animation:fx-score 1.1s cubic-bezier(.2,.6,.3,1) both;white-space:nowrap}.fx-score.mini{color:#ec358d;font-size:32px}.fx-score small{display:block;font-size:10px;letter-spacing:0;text-align:center;font-weight:750}.fx-confetti{width:7px;height:11px;border-radius:2px;background:var(--color,#f04697);animation:fx-spark 1.3s ease-out both}@keyframes appear{from{opacity:0;margin-top:14px}to{opacity:1;margin-top:0}}@keyframes dialog-in{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}@keyframes float-art{50%{transform:translateY(-7px) rotate(2deg)}}@keyframes float-heart{50%{margin-top:-13px;rotate:8deg}}@keyframes pop-image{0%{transform:scale(1)}55%{transform:scale(1.13)}100%{transform:scale(.15);opacity:0}}@keyframes pop-body{100%{opacity:0}}@keyframes count-pop{0%{transform:scale(.82);opacity:.4}25%{transform:scale(1.06);opacity:1}100%{transform:scale(1);opacity:1}}@keyframes badge-bump{35%{transform:scale(1.12)}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes medal-in{from{transform:scale(.5) rotate(-30deg);opacity:0}to{transform:none;opacity:1}}@keyframes fx-ring{0%{transform:translate(-50%,-50%) scale(.15);opacity:0}15%{opacity:1}100%{transform:translate(-50%,-50%) scale(1.9);opacity:0}}@keyframes fx-spark{0%{transform:translate(0,0) scale(1);opacity:1}65%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(100deg) scale(.2);opacity:0}}@keyframes fx-score{0%{transform:translate(-50%,0) scale(.8);opacity:0}15%{opacity:1;transform:translate(-50%,-15px) scale(1.08)}65%{opacity:1}100%{transform:translate(-50%,-65px) scale(.96);opacity:0}}
@media(max-width:600px){.topbar{top:max(14px,env(safe-area-inset-top));width:calc(100% - 28px)}.prototype-pill{font-size:9px;padding:8px 10px}.nav-button{padding:9px 12px;font-size:11px}.nav-button.solid{min-width:66px}.home-panel{max-width:370px;transform:translate(-50%,-45%)}.love-story{font-size:17px;margin:12px 0 23px}.wedding-card{padding:25px 17px 20px}.date{font-size:38px}.wedding-card p:not(.eyebrow){font-size:12px}.landing-hint{font-size:11px}.game-dialog{padding:25px 22px}.dialog-panel h2{font-size:31px}.invite-art{height:130px;margin-bottom:8px}.invite-art img{width:110px;height:110px;left:50px}.dialog-intro{font-size:12px}.rule-chips{gap:5px}.rule-chips span{font-size:9px;padding:6px 8px}.score-card{padding:8px 10px;border-radius:15px}.score-card strong{font-size:27px}.total-score strong{font-size:24px}.score-card>span{font-size:7px}.lives{font-size:23px;gap:4px}.hud-top img{width:116px}.game-hud{width:calc(100% - 24px)}body:not([data-state="idle"]) .arena{top:122px;bottom:95px}.game-announcement{top:132px;font-size:20px}.game-footer p{font-size:9px}.result-panel .result-points{font-size:46px}}@media(max-height:700px){.home-panel{max-width:350px}.love-story{margin:6px 0 15px}.wedding-card{padding:17px}.landing-hint{margin-top:14px}.invite-art{height:85px;margin-top:0}.invite-art img{width:75px;height:75px;left:67px;top:0;border-radius:20px}.party-heart{font-size:32px;top:10px!important}.party-heart.one{left:29px}.party-heart.two{right:27px}.dialog-panel h2{font-size:27px;margin-bottom:10px}.dialog-intro{margin-bottom:12px}.rule-chips{margin-bottom:10px}.game-dialog{padding:23px 20px}.result-medal{width:52px;height:52px;line-height:44px;font-size:27px;margin:4px auto 12px}.result-stats{padding:10px 0;margin:10px 0}.next-rank{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.fx-ring,.fx-spark,.fx-heart,.fx-confetti{display:none}.fx-score{animation:none!important;opacity:1;transform:translateX(-50%)}.balloon{will-change:auto}}

.countdown-overlay{pointer-events:none}

body{min-height:100vh} .game-hud{top:max(10px,env(safe-area-inset-top))}body:not([data-state="idle"]) .arena{top:calc(126px + env(safe-area-inset-top));bottom:calc(99px + env(safe-area-inset-bottom))}.game-footer{bottom:max(13px,env(safe-area-inset-bottom))}.name-label:not(:first-child){margin-top:12px}.known-player{margin:0 0 20px;padding:12px;border-radius:13px;background:#fff0f7;font-size:13px}.email-hint{font-size:10px;color:#a57d96;text-align:left;margin:5px 0 0}.save-state{display:block;font-size:9px;color:#946580;margin-top:7px}.recovery-code{margin:18px 0;padding:12px;border-radius:14px;background:#fff0f7;text-align:left;font-size:11px;color:#946580}.recovery-code summary{cursor:pointer;font-weight:700}.recovery-code code{display:block;margin:10px 0;color:#a8216e;font-size:18px;font-weight:800}.your-position{text-wrap:balance}.rank-list{max-height:40vh;overflow:auto}.prize-note p{margin:2px 0 0}.loading-heart{color:#f04697;font-size:70px;animation:float-art 1.5s infinite}.sky{inset:-10px}.form-error{min-height:16px;font-size:11px}.rules-help{font-size:10px;color:#946580;line-height:1.6}.game-footer p{margin:7px 0 0}body[data-state="idle"] .game-hud{display:none}@media(max-width:600px){body:not([data-state="idle"]) .arena{top:calc(122px + env(safe-area-inset-top));bottom:calc(110px + env(safe-area-inset-bottom))}}@media(max-height:700px){.game-dialog .invite-art{height:75px}.game-dialog .invite-art img{width:70px;height:70px}.game-dialog .known-player{margin-bottom:10px}.game-dialog .dialog-intro{margin-bottom:10px}.rules-help{display:none}}
/* Full-screen play field; the footer stays beneath balloons and effects. */
body:not([data-state="idle"]) .arena{top:0;bottom:0;border-top:0;z-index:5}
.game-footer{z-index:2}
.fx-layer{position:fixed;inset:0;z-index:45;overflow:visible}
.game-announcement{position:fixed;left:50%;right:auto;top:clamp(calc(170px + env(safe-area-inset-top)),28svh,calc(235px + env(safe-area-inset-top)));width:min(360px,calc(100vw - 32px));margin:0;text-align:center;z-index:80;pointer-events:none;opacity:0;transform:translate(-50%,-50%);transition:none;isolation:isolate}
.game-announcement.show{transform:translate(-50%,-50%);opacity:1}
.announcement-note{display:inline-block;padding:11px 20px;border-radius:30px;background:#fff5faeb;border:2px solid white;color:#a8216e;font-size:clamp(16px,4.5vw,23px);font-weight:850;box-shadow:0 8px 32px #a8216e24;text-shadow:none}
.game-announcement[data-kind="note"].show{animation:announcement-note 1.7s ease both}
.announcement-kicker{position:relative;display:block;font-size:11px;letter-spacing:.2em;font-weight:900;color:#a8216e;text-shadow:0 1px white,0 0 14px white}
.announcement-value{position:relative;display:block;font:950 clamp(96px,30vw,150px)/1.12 ui-rounded,system-ui,sans-serif;letter-spacing:-.08em;color:#ef4096;-webkit-text-stroke:3px #fff5fb;paint-order:stroke fill;text-shadow:0 5px 0 #b22271,0 12px 24px #a8216e35}
.game-announcement[data-kind="level"] .announcement-value{font-size:clamp(47px,14vw,70px);letter-spacing:-.055em;margin:18px 0}
.announcement-detail{position:relative;display:inline-block;background:#fff5faf0;color:#a8216e;padding:7px 17px;border-radius:30px;border:2px solid white;box-shadow:0 8px 25px #a8216e20;font-size:16px;font-weight:850;text-shadow:none}
.announcement-rays{position:absolute;inset:-48px -16px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#fff7fcf5 0%,#fff7fcc0 25%,#ffd0e84d 49%,transparent 68%)}
.announcement-rays::after{content:"";position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 8deg,transparent 0deg 16deg,#fff5fa90 16deg 24deg,transparent 24deg 40deg);mask-image:radial-gradient(ellipse,transparent 17%,#000 30%,transparent 68%)}
.announcement-spark{position:absolute;left:50%;top:50%;font-size:23px;color:#f04697;text-shadow:0 2px white,0 0 8px white;opacity:0}
.game-announcement:not([data-kind="note"]).show{animation:announcement-party 1.9s cubic-bezier(.2,.8,.3,1) both}
.show .announcement-spark{animation:announcement-spark 1.9s ease-out both}
.show .announcement-rays::after{animation:announcement-rays 1.9s ease-out both}
@keyframes announcement-party{0%{opacity:0;transform:translate(-50%,-50%) scale(.35) rotate(-12deg)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.13) rotate(4deg)}30%{transform:translate(-50%,-50%) scale(.97) rotate(-2deg)}45%,76%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}100%{opacity:0;transform:translate(-50%,calc(-50% - 35px)) scale(1.08) rotate(2deg)}}
@keyframes announcement-spark{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}18%{opacity:1}65%{opacity:1;transform:translate(calc(-50% + var(--sx)),calc(-50% + var(--sy))) rotate(var(--turn)) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--sx)*1.2),calc(-50% + var(--sy)*1.2)) rotate(var(--turn)) scale(.4)}}
@keyframes announcement-rays{from{transform:rotate(-18deg) scale(.7)}to{transform:rotate(24deg) scale(1.1)}}
@keyframes announcement-note{0%{opacity:0;transform:translate(-50%,calc(-50% + 15px)) scale(.9)}18%,78%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,calc(-50% - 18px)) scale(.96)}}
@media(prefers-reduced-motion:reduce){.game-announcement.show{animation:none!important}.announcement-rays::after,.announcement-spark{display:none}.game-announcement{transition:opacity .15s!important}.game-announcement:not(.show){opacity:0}}

/* Original TolaisFest artwork, shared throughout the game. */
.ui-icon,.button-art,.button-trophy,.chip-art,.inline-heart,.heading-trophy{object-fit:contain;display:inline-block;vertical-align:middle;flex:none}
.icon-button .ui-icon,.dialog-close .ui-icon{width:19px;height:19px;display:block;margin:auto}
.button-art{width:20px;height:20px}.button-trophy{width:27px;height:27px}
.inline-heart{width:32px;height:32px}.rule-chips>span{display:inline-flex;align-items:center;gap:3px}.chip-art{width:16px;height:16px}
.lives{align-items:center;min-height:38px}.life-art{width:27px;height:31px;display:block;object-fit:contain}.lives .lost{opacity:.24;filter:grayscale(.8)}
.combo-flame{width:23px;height:23px;object-fit:contain}
.invite-art>.party-heart.one{width:42px;height:42px;left:9px;top:29px}.invite-art>.party-heart.two{width:32px;height:32px;left:auto;right:1px;top:12px}.invite-art>.party-spark{width:24px;height:24px;left:auto;top:auto;right:9px;bottom:20px}
.invite-art>.party-heart,.invite-art>.party-spark{object-fit:contain;border-radius:0;box-shadow:none}
.loading-art{display:block;width:80px;height:80px;object-fit:contain;margin:auto}.pause-art{width:62px;height:62px;object-fit:contain}
.heading-trophy{width:62px;height:62px;margin-left:3px;vertical-align:middle}
.prize-note{align-items:center;gap:9px}.prize-note .prize-art{width:84px;height:84px;object-fit:contain;flex:none}
.result-medal{width:122px;height:122px;margin:0 auto 10px;border:0;background:none;box-shadow:none;border-radius:0}.result-trophy{width:100%;height:100%;object-fit:contain}
.rank-row{gap:8px;min-height:71px}.rank-number:has(.rank-medal){width:42px;display:flex;align-items:center;justify-content:center}.rank-medal{width:43px;height:54px;object-fit:contain}
.announcement-spark{width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 2px 3px #a8216e20)}
.fx-heart,.fx-spark{background:none;box-shadow:none;width:15px;height:15px}.fx-heart{width:23px;height:23px}.particle-art{display:block;width:100%;height:100%;object-fit:contain}
.save-state{display:flex;align-items:center;justify-content:center;gap:4px}.save-state[data-saved="true"]::after{content:"";width:11px;height:11px;background:url('/images/game/control-check.svg') center/contain no-repeat}
@media(max-height:700px){.result-medal{width:84px;height:84px}.heading-trophy{width:49px;height:49px}.prize-note .prize-art{width:67px;height:67px}}

/* Champagne ambience: moving golden edges with bubbles behind the play field. */
.toast-atmosphere{position:fixed;inset:0;z-index:3;overflow:hidden;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s .45s;contain:layout paint}
.toast-atmosphere[data-active="true"]{opacity:1;visibility:visible;transition:opacity .3s ease,visibility 0s}
.toast-bubbles{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 100%,#ffe78035,transparent 65%);pointer-events:none}
.toast-edge{position:absolute;top:-12%;bottom:-12%;width:clamp(38px,13vw,100px);background:linear-gradient(180deg,#fff9ba 0%,#ffcd24 15%,#fffde2 27%,#ffea39 39%,#f5ac18 55%,#fff5a3 68%,#ffe53b 82%,#fff9ba 100%);background-size:100% 230%;animation:champagne-edge-flow 3.2s ease-in-out infinite alternate;animation-play-state:paused;will-change:transform,background-position}
.toast-edge-left{left:0;mask-image:linear-gradient(90deg,#000 0%,#000b 18%,#0004 50%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000b 18%,#0004 50%,transparent 100%)}
.toast-edge-right{right:0;mask-image:linear-gradient(270deg,#000 0%,#000b 18%,#0004 50%,transparent 100%);-webkit-mask-image:linear-gradient(270deg,#000 0%,#000b 18%,#0004 50%,transparent 100%);animation-direction:alternate-reverse;animation-delay:-1.4s}
.toast-edge::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 0% 20%,#fff 0%,#fffca6a3 12%,transparent 38%),radial-gradient(ellipse at 0% 75%,#fff8ab 0%,transparent 45%);opacity:.8}
.toast-edge-right::after{transform:scaleX(-1)}
.champagne-bubble{position:absolute;left:var(--bubble-x);top:100%;width:var(--bubble-size);height:var(--bubble-size);border-radius:50%;border:1.3px solid #fff8cbea;background:radial-gradient(circle at 28% 23%,#fff 0%,#fff9dc85 12%,#ffed902b 28%,#fff6c012 67%,#f8c74265 100%);box-shadow:inset -2px -2px 5px #ffc92842,inset 1px 1px 4px #fffef199,0 0 9px #fff3af69;animation:champagne-background-rise var(--bubble-time) linear var(--bubble-delay) infinite;animation-play-state:paused;will-change:transform,opacity}
.champagne-bubble::before{content:"";position:absolute;left:20%;top:17%;width:22%;height:12%;background:#ffffed;border-radius:50%;transform:rotate(-35deg)}
.toast-atmosphere[data-active="true"] .toast-edge,.toast-atmosphere[data-active="true"] .champagne-bubble{animation-play-state:running}
@keyframes champagne-edge-flow{0%{background-position:0 0;transform:scaleX(.72) translateY(-2%);opacity:.78}45%{transform:scaleX(1.12) translateY(1%);opacity:1}100%{background-position:0 100%;transform:scaleX(.9) translateY(3%);opacity:.9}}
.toast-edge-left{transform-origin:left center}.toast-edge-right{transform-origin:right center}
@keyframes champagne-background-rise{0%{opacity:0;transform:translate3d(0,25px,0) scale(.55)}9%{opacity:.8}45%{opacity:.95;transform:translate3d(calc(var(--bubble-drift)*-.35),-50vh,0) scale(.95)}87%{opacity:.6}100%{opacity:0;transform:translate3d(var(--bubble-drift),calc(-100vh - 60px),0) scale(1.1)}}
@media(prefers-reduced-motion:reduce){.toast-edge{animation:none!important;background-position:0 45%;will-change:auto;opacity:.7}.toast-bubbles{display:none}.toast-atmosphere{transition:opacity .15s!important}}
/* Golden light ignites from the edges and folds softly back into them. */
.toast-atmosphere{transition:opacity .9s ease,visibility 0s 1s}
.toast-atmosphere[data-active="true"]{transition:opacity .4s ease,visibility 0s}
.toast-portal{position:absolute;top:0;bottom:0;width:clamp(38px,13vw,100px);opacity:0;filter:blur(12px);will-change:transform,opacity;transition:transform .85s cubic-bezier(.22,.8,.2,1),filter .8s ease,opacity .75s ease}
.toast-portal-left{left:0;transform-origin:left center;transform:translate3d(-110%,-3%,0) scaleX(.2)}
.toast-portal-right{right:0;transform-origin:right center;transform:translate3d(110%,-3%,0) scaleX(.2)}
.toast-atmosphere[data-active="true"] .toast-portal{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scaleX(1);transition:transform .85s cubic-bezier(.16,1,.35,1.14),filter .7s ease,opacity .35s ease}
.toast-portal .toast-edge{width:100%}
.toast-portal::after{content:"";position:absolute;top:0;bottom:0;width:5px;background:linear-gradient(180deg,transparent,#fffadd 20%,#fff 48%,#ffe265 73%,transparent);box-shadow:0 0 18px 9px #ffdd4e8c;border-radius:50%;opacity:0;pointer-events:none}
.toast-portal-left::after{left:0}.toast-portal-right::after{right:0}
.toast-atmosphere[data-active="true"] .toast-portal::after{animation:champagne-ignite .95s ease-out both}
@keyframes champagne-ignite{0%{opacity:0;transform:scaleY(.15) scaleX(.5)}28%{opacity:1;transform:scaleY(.65) scaleX(1.8)}65%{opacity:.6;transform:scaleY(1) scaleX(1)}100%{opacity:0;transform:scaleY(1.1) scaleX(.4)}}
/* Wedding surprises share the original sky and never intercept a balloon tap. */
.bonus-status{position:fixed;top:calc(133px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(470px,calc(100% - 28px));display:flex;justify-content:center;gap:8px;z-index:11;pointer-events:none}
.bonus-chip{--remaining:1;position:relative;display:flex;align-items:center;gap:7px;border:1px solid #fffaf3;border-radius:17px;padding:6px 10px 9px;background:#fffbf3ed;box-shadow:0 6px 24px #b9813825;overflow:hidden;min-width:140px;max-width:230px}
.bonus-chip::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,#eca64c,#ffd16b);transform-origin:left;transform:scaleX(var(--remaining))}
.bonus-chip img{width:30px;height:39px;object-fit:contain;flex:none}.bonus-chip span{font-size:10px;line-height:1.35;color:#9d6938}.bonus-chip span b{display:block;color:#a66b26;font-size:15px}.bonus-chip>strong{margin-left:auto;color:#a66b26;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.kiss-chip{background:#fff4faed;border-color:#fff}.kiss-chip span,.kiss-chip span b,.kiss-chip>strong{color:#a8216e}.kiss-chip::after{background:linear-gradient(90deg,#e94492,#ffa6ce)}
.wedding-balloon img{filter:drop-shadow(0 0 11px #ffe5adab) drop-shadow(0 3px 4px #b183451f)}
.balloon-badge{position:absolute;top:68%;left:50%;transform:translateX(-50%);border:1px solid #fff9ee;background:#fff9eae8;border-radius:15px;padding:3px 10px;white-space:nowrap;color:#986022;font-size:9px;font-weight:900;letter-spacing:.1em;box-shadow:0 4px 10px #b5813620}
.balloon[data-kind="bride"] .balloon-badge{background:#fff0f6eb;color:#a8216e;top:79%}.balloon[data-kind="bouquet"] .balloon-badge{top:76%;background:#a8216ee8;color:white}
.balloon.in-flight .balloon-badge{opacity:0}.balloon.in-flight img{filter:drop-shadow(0 0 16px #ffdc84ba)}
.balloon.throwing{pointer-events:none;z-index:6}.balloon.throwing img{transform-origin:55% 60%;animation:bride-toss .85s cubic-bezier(.3,.8,.2,1) both}.balloon.throwing .balloon-badge{display:none}
.wedding-celebration{position:fixed;left:50%;top:48%;transform:translate(-50%,-50%);width:min(350px,calc(100vw - 30px));text-align:center;pointer-events:none;z-index:85;isolation:isolate}
.wedding-celebration.show{animation:wedding-kiss 2.8s cubic-bezier(.2,.8,.3,1) both}
.kiss-glow{position:absolute;inset:-45px -35px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#fff7fcf5 10%,#fff7fccc 35%,#ffcfdd77 56%,transparent 72%)}
.kiss-eyebrow{display:block;color:#a8216e;font-size:12px;font-weight:900;letter-spacing:.16em;text-shadow:0 1px white}
.wedding-celebration>img{display:block;width:220px;height:255px;object-fit:contain;margin:2px auto -12px;filter:drop-shadow(0 8px 20px #ad6b4230)}
.wedding-celebration>strong{display:block;font:950 88px/1.1 ui-rounded,system-ui,sans-serif;letter-spacing:-.07em;color:#f04697;-webkit-text-stroke:3px #fff9ee;paint-order:stroke fill;text-shadow:0 4px #a8216e,0 10px 25px #aa467c30}
.kiss-detail{display:inline-block;background:#fff6faf0;border:2px solid white;border-radius:30px;padding:7px 17px;margin-top:7px;color:#a8216e;font-size:14px;font-weight:850;box-shadow:0 7px 20px #b94e7820}
.game-announcement[data-kind="toast"]{top:43%;width:min(350px,calc(100vw - 32px))}.toast-hero{display:block;width:143px;height:187px;object-fit:contain;margin:0 auto -14px;filter:drop-shadow(0 8px 16px #a47a3630)}
.game-announcement[data-kind="toast"] .announcement-value{font-size:105px;color:#e2a53c;text-shadow:0 5px #966623,0 12px 24px #aa742f35}.game-announcement[data-kind="toast"] .announcement-detail{font-size:13px;color:#926126;background:#fff8eae8}
.game-announcement[data-kind="bouquet"] .announcement-value{color:#e2a53c;text-shadow:0 5px #966623,0 12px 24px #aa742f35}
.fx-bubble{border:1px solid #fff5cb;border-radius:50%;background:radial-gradient(circle at 25% 20%,#fffefcbf 0%,#fff6cf18 25%,#e9b65d14 60%,#fff5cba3 95%);box-shadow:inset 0 0 5px #fff3df65,0 0 8px #ffd58175;animation:champagne-rise 1.35s ease-out both}
.fx-score.golden{color:#ba7c22;font-size:38px}.bouquet-ring{border-color:#ffe4a4;box-shadow:0 0 25px #e9b85b,inset 0 0 18px #fff3c5}
.fx-throw-label{color:#a8216e;background:#fff9f2e6;border:2px solid white;border-radius:25px;padding:7px 15px;font-size:14px;font-weight:850;white-space:nowrap;animation:fx-score 1.1s ease-out both}
.bonus-guide{text-align:left;background:#fff4f8;border:1px solid #f5deea;border-radius:15px;margin:15px 0 0;padding:10px 13px;font-size:11px;color:#93617c}.bonus-guide summary{cursor:pointer;color:#a8216e;font-weight:800}.bonus-guide>div{display:flex;align-items:center;gap:9px;margin-top:8px}.bonus-guide img{width:46px;height:55px;object-fit:contain;flex:none}.bonus-guide p{margin:3px 0;line-height:1.6}.bonus-guide>p{font-size:10px;margin-top:9px;color:#a17a90}
@keyframes bride-toss{0%{opacity:1;transform:rotate(0) scale(1)}26%{opacity:1;transform:rotate(-16deg) scale(1.1)}48%{opacity:1;transform:rotate(10deg) scale(1.05)}100%{opacity:0;transform:translateY(30px) rotate(14deg) scale(.8)}}
@keyframes wedding-kiss{0%{opacity:0;transform:translate(-50%,-50%) scale(.5) rotate(-8deg)}14%{opacity:1;transform:translate(-50%,-50%) scale(1.07) rotate(2deg)}30%,76%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,calc(-50% - 25px)) scale(1.03)}}
@keyframes champagne-rise{0%{opacity:0;transform:translate(-50%,0) scale(.4)}15%{opacity:1}75%{opacity:.85}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),var(--dy)) scale(1.2)}}
@media(max-width:600px){.bonus-status{top:calc(125px + env(safe-area-inset-top));gap:6px}.bonus-chip{min-width:137px;padding:5px 8px 8px}.bonus-chip img{width:26px;height:34px}.bonus-chip span{font-size:9px}.balloon-badge{font-size:8px;padding:3px 8px}}
@media(max-height:700px){.wedding-celebration>img{height:205px;width:190px}.wedding-celebration>strong{font-size:75px}.toast-hero{height:153px;width:119px}.bonus-guide{display:block}}
@media(prefers-reduced-motion:reduce){.wedding-celebration.show{animation:none!important}.kiss-glow{background:#fff4f9ed}.fx-bubble{display:none}.balloon.throwing img{animation:none!important;opacity:0}.toast-hero{filter:none}}

/* Original foil number balloons launch the game with a soft party countdown. */
.countdown-overlay{z-index:44;isolation:isolate;gap:0;overflow:hidden;background:linear-gradient(180deg,#fff3f86b,#fff5fbe8);backdrop-filter:blur(5px)}
.countdown-overlay .countdown-kicker{position:relative;margin:0 0 5px;color:#a2537c;font-size:12px;font-weight:850;letter-spacing:.15em;text-transform:uppercase;z-index:2}
.countdown-stage{position:relative;width:clamp(195px,39vw,280px);height:clamp(290px,47vh,420px);isolation:isolate}
.countdown-token{position:absolute;inset:0;transform-origin:50% 62%;z-index:2}
.countdown-token.countdown-bounce{animation:countdown-balloon-bounce .95s cubic-bezier(.2,.85,.25,1) both}
.countdown-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 15px #c3548133);animation:countdown-balloon-sway 1.8s ease-in-out infinite alternate;transform-origin:50% 28%}
.countdown-overlay .countdown-number-text{position:absolute;left:50%;top:50%;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;font-size:1px;animation:none;filter:none}
.countdown-departing{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1;pointer-events:none;animation:countdown-float-away .65s cubic-bezier(.24,.65,.3,1) both}
.countdown-halo{position:absolute;left:50%;top:50%;width:min(540px,130vw);height:min(570px,85vh);transform:translate(-50%,-50%);background:radial-gradient(ellipse,#fffdf9f5 7%,#ffdae8a6 38%,transparent 69%);z-index:-1;animation:countdown-halo-breathe 1s ease-in-out infinite alternate}
.countdown-overlay[data-number="2"] .countdown-halo{background:radial-gradient(ellipse,#fffdf6f5 7%,#fff0bea6 40%,transparent 69%)}
.countdown-spark{position:absolute;width:32px;height:32px;object-fit:contain;z-index:3;animation:countdown-spark-sway 1.5s ease-in-out infinite alternate}
.spark-one{left:-5%;top:24%;transform:rotate(-14deg)}.spark-two{right:-4%;top:52%;width:35px;height:35px;animation-delay:-.7s}
.countdown-beats{position:relative;display:flex;align-items:center;gap:9px;margin:6px 0 14px}
.countdown-beats i{display:block;width:7px;height:7px;border-radius:50%;background:#e8b1cd;opacity:.55;transition:transform .25s,background .25s,opacity .25s}
.countdown-beats i.current{background:#ed4495;opacity:1;transform:scale(1.45);box-shadow:0 0 0 4px #f046971a}.countdown-beats i.done{background:#d4a443;opacity:1}
.countdown-overlay .countdown-caption{position:relative;padding:8px 17px;border:1px solid #fff;background:#fff7fbd9;border-radius:30px;font-size:12px;font-weight:750;color:#a2537c;box-shadow:0 7px 24px #b5577c0c}
.countdown-party-heart{width:30px;height:30px}
@keyframes countdown-balloon-bounce{0%{opacity:0;transform:translateY(42px) rotate(-10deg) scale(.5)}22%{opacity:1;transform:translateY(-14px) rotate(4deg) scale(1.09)}42%{transform:translateY(3px) rotate(-2deg) scale(.98)}70%,100%{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes countdown-balloon-sway{from{transform:rotate(-3deg) translateY(2px)}to{transform:rotate(3deg) translateY(-6px)}}
@keyframes countdown-float-away{0%{opacity:.7;transform:translateY(0) rotate(0) scale(1)}35%{opacity:.16;transform:translate(48px,-75px) rotate(10deg) scale(.78)}70%,100%{opacity:0;transform:translate(85px,-155px) rotate(18deg) scale(.56)}}
@keyframes countdown-halo-breathe{to{opacity:.65;transform:translate(-50%,-50%) scale(1.08)}}
@keyframes countdown-spark-sway{to{transform:translateY(-12px) rotate(12deg) scale(1.13)}}
@media(max-height:700px){.countdown-stage{width:185px;height:270px}.countdown-overlay .countdown-kicker{font-size:10px;margin-top:10px}.countdown-beats{margin:4px 0 10px}}
@media(prefers-reduced-motion:reduce){.countdown-token.countdown-bounce,.countdown-art,.countdown-halo,.countdown-spark{animation:none!important}.countdown-departing{display:none}.countdown-party-heart{display:none}}
/* Toast clock: a warm glass capsule with a circular countdown. */
.bonus-status{top:calc(145px + env(safe-area-inset-top));align-items:center;flex-wrap:wrap}
.toast-chip{width:235px;min-width:235px;max-width:235px;min-height:68px;gap:11px;padding:7px 11px 7px 9px;border-radius:24px;border:1.5px solid #fff8d9;background:linear-gradient(135deg,#fffdf8ed 0%,#fff5d5e8 65%,#ffeeb3eb);box-shadow:0 8px 26px #b67b2521,inset 0 1px 0 #fff;backdrop-filter:blur(14px);overflow:visible;opacity:0;visibility:hidden;transform:translate3d(0,-12px,0) scale(.84);transition:opacity .35s ease,transform .5s cubic-bezier(.18,.9,.25,1.15),visibility 0s .35s;pointer-events:none}
.toast-chip::after{display:none}
.toast-chip[data-visible="false"]{position:absolute}
.toast-chip[data-visible="true"]{opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1);transition:opacity .25s ease,transform .55s cubic-bezier(.18,.9,.25,1.15),visibility 0s}
.toast-chip .toast-portrait{width:43px;height:51px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 5px #c48a2825)}
.toast-copy{flex:1;min-width:0;text-align:left}
.toast-chip .toast-kicker{display:block;margin:0 0 1px;color:#a57830;font-size:8px;line-height:1.5;font-weight:850;letter-spacing:.16em}
.toast-title{display:block;color:#845418;font-size:21px;line-height:1.18;letter-spacing:-.04em;font-weight:900;white-space:nowrap}
.toast-dial{position:relative;width:48px;height:48px;flex:none;border-radius:50%;background:#fffdf4cf;box-shadow:0 0 0 4px #fffaf250}
.toast-dial svg{display:block;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.toast-track,.toast-ring{fill:none;stroke-width:3.4}.toast-track{stroke:#e9cd872e}.toast-ring{stroke:#e0ac3b;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0;filter:drop-shadow(0 0 2px #edc75d38)}
.toast-time{position:absolute;inset:0;display:flex;align-items:baseline;justify-content:center;gap:2px;padding-top:8px;color:#98671e}
.toast-time strong{font-size:23px;font-weight:900;line-height:1.4;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.toast-time small{font-size:9px;font-weight:750;opacity:.7}
.toast-chip[data-urgent="true"] .toast-ring{stroke:#d88220}.toast-chip[data-urgent="true"] .toast-dial{animation:toast-last-seconds .8s ease-in-out infinite alternate}
@keyframes toast-last-seconds{to{box-shadow:0 0 0 5px #f6c96324,0 0 17px #f4c05242}}
@media(max-width:600px){.bonus-status{top:calc(141px + env(safe-area-inset-top));gap:7px}.toast-chip{width:224px;min-width:224px;max-width:224px;min-height:65px;border-radius:23px;gap:9px;padding:6px 10px 6px 8px}.toast-chip .toast-portrait{width:40px;height:49px}.toast-title{font-size:20px}.toast-chip .toast-kicker{font-size:8px}.toast-dial{width:46px;height:46px}}
@media(prefers-reduced-motion:reduce){.toast-portal,.toast-atmosphere[data-active="true"] .toast-portal{transform:none;filter:none;transition:opacity .15s!important;will-change:auto}.toast-portal::after{display:none}.toast-chip{transform:none!important;transition:opacity .15s!important}.toast-chip[data-urgent="true"] .toast-dial{animation:none!important}}

/* A gentle champagne lens; all taps still use the actual balloon geometry. */
body[data-state="playing"][data-tipsy="true"] .balloon-layer{filter:blur(.65px)}
body[data-state="playing"][data-tipsy="true"] .sky{inset:-18px;filter:blur(1.3px);transform:translate3d(var(--tipsy-drift,0px),0,0) rotate(var(--tipsy-tilt,0deg)) scale(var(--tipsy-scale,1));transform-origin:50% 60%}
@media(prefers-reduced-motion:reduce){body[data-state="playing"] .balloon-layer,body[data-state="playing"] .sky{filter:none!important;transform:none!important}}

/* Registered release frame keeps the bridal sprite footprint unchanged. */
.balloon.throwing .bride-released{height:100%;object-fit:fill}

/* A registered wing pivots at the shoulder independently of the bride. */
.balloon.throwing.articulated{pointer-events:none}
.balloon.throwing.articulated img{animation:none!important;opacity:1;filter:none}
.balloon.throwing.articulated>.bride-released{width:100%;height:100%;object-fit:fill}
.balloon.throwing.articulated>.bride-moving-arm{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;transform-origin:72% 53.5%;clip-path:polygon(38% 20%,43% 19.5%,48% 27%,53% 33%,61% 40%,69% 47%,75% 51%,74% 55.5%,70% 57%,61% 54%,52% 50%,44% 43%,40% 36%,40.5% 29%,38.5% 24%);pointer-events:none;will-change:transform}
@media(prefers-reduced-motion:reduce){.balloon.throwing.articulated>.bride-moving-arm{will-change:auto}}

/* Optional sound controls and a nearby ranking goal. */
.sound-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:33px;height:33px;flex:none;border:1px solid #f0cfe0;border-radius:50%;padding:0;background:#fff7fb;color:#a8216e;box-shadow:0 2px 7px #a8216e08}
.sound-button .material-symbols-outlined{font-size:19px;line-height:1;pointer-events:none}
.sound-button[aria-pressed="true"]{background:#a8216e;color:white;border-color:#a8216e}
.hud-top .hud-level{margin-left:auto}.hud-top{gap:8px}
.dialog-sound{position:absolute;left:20px;top:17px;width:auto;height:32px;padding:0 10px;border-radius:20px;font-size:10px;font-weight:750}
.dialog-sound .material-symbols-outlined{font-size:16px}
.ranking-panel>.eyebrow,.dialog-panel>.eyebrow:first-child{margin-top:28px}
.ranking-goal{font-size:12px;line-height:1.55;margin:-7px 0 18px;color:#86546f;text-wrap:balance;font-weight:650}.ranking-goal:empty{display:none}
.balloon[data-kind="bouquet"]{transform-origin:50% 30%}
.ranking-panel .rank-list{max-height:none;overflow:visible}
@media(max-width:360px){.hud-top{gap:6px}.hud-top img:not(.ui-icon){max-width:104px}.hud-level{font-size:10px}}

/* Installed game: keep swipes on the play surface and preserve scrolling in dialogs. */
html[data-installed-game="true"]{overscroll-behavior:none}
html[data-installed-game="true"] body{overscroll-behavior:none}
html[data-installed-game="true"] body:is([data-state="playing"],[data-state="countdown"]) .arena{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none}
html[data-installed-game="true"] .game-dialog{overscroll-behavior:contain;touch-action:pan-y}

/* iOS standalone: the root stays in document flow; fixed roots can clip the bottom.
   Size the play field, clouds and overlays from the same full-height body. */
html[data-installed-game="true"]{height:auto;min-height:100vh;overflow:hidden;overscroll-behavior:none}
html[data-installed-game="true"] body{position:relative;inset:auto;width:100%;height:100vh;min-height:100vh;overflow:hidden;overscroll-behavior:none;isolation:isolate}
html[data-installed-game="true"] .sky,
html[data-installed-game="true"] .arena,
html[data-installed-game="true"] .fx-layer,
html[data-installed-game="true"] .toast-atmosphere,
html[data-installed-game="true"] .countdown-overlay,
html[data-installed-game="true"] .wedding-celebration,
html[data-installed-game="true"] .game-hud,
html[data-installed-game="true"] .game-footer,
html[data-installed-game="true"] .bonus-status,
html[data-installed-game="true"] .game-announcement,
html[data-installed-game="true"] .toast{position:absolute}
html[data-installed-game="true"] .arena{top:0;bottom:0}

/* A short, non-interactive life-loss wash reaches the full iPhone canvas. */
.life-loss-atmosphere{position:fixed;inset:0;z-index:87;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,transparent 32%,#ed3b5038 75%,#c7143d99 100%)}
.life-loss-atmosphere span{position:absolute;top:-10%;bottom:-10%;width:17%;background:linear-gradient(90deg,#ff234dcc,#ff657677,transparent);filter:blur(8px);transform:translateX(-100%)}
.life-loss-atmosphere span:first-child{left:0}.life-loss-atmosphere span:last-child{right:0;transform:translateX(100%) rotate(180deg)}
.life-loss-atmosphere.show{animation:life-loss-wash .95s ease-out both}.life-loss-atmosphere.show span:first-child{animation:life-loss-edge .95s ease-out both}.life-loss-atmosphere.show span:last-child{animation:life-loss-edge-right .95s ease-out both}
html[data-installed-game="true"] .life-loss-atmosphere{position:absolute}
@keyframes life-loss-wash{0%{opacity:0}18%{opacity:1}42%{opacity:.8}100%{opacity:0}}
@keyframes life-loss-edge{0%{transform:translateX(-100%) scaleX(.4)}22%{transform:translateX(0) scaleX(1.15)}100%{transform:translateX(-100%) scaleX(.6)}}
@keyframes life-loss-edge-right{0%{transform:translateX(100%) rotate(180deg) scaleX(.4)}22%{transform:translateX(0) rotate(180deg) scaleX(1.15)}100%{transform:translateX(100%) rotate(180deg) scaleX(.6)}}
@media(prefers-reduced-motion:reduce){.life-loss-atmosphere.show{animation:life-loss-wash .7s ease-out both}.life-loss-atmosphere span{display:none}}

/* Keep inactive layers off the compositor and the toast blur surface stable. */
body[data-state="paused"] .balloon,body[data-state="error"] .balloon,body[data-state="result"] .balloon{will-change:auto}
.toast-atmosphere:not([data-active="true"]) .champagne-bubble,.toast-atmosphere:not([data-active="true"]) .toast-edge{will-change:auto}
@media(max-width:600px){body[data-state="playing"] .score-card,body[data-state="playing"] .combo-badge{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Lifetime balloon totals in the eight-player ranking. */
.rank-person .rank-hits{font-size:10px;line-height:1.4;margin-top:3px;color:#93617d;font-variant-numeric:tabular-nums}

/* Opt-in, server-authorized diagnostic rounds: retain physics, simplify paint. */
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *::before,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *::after{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *::before,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *::after{will-change:auto!important}
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) .game-dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="motion"]):not([data-diagnostic-visuals="celebrations"]):not([data-diagnostic-visuals="atmosphere"]):not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="motion"]):not([data-diagnostic-visuals="celebrations"]):not([data-diagnostic-visuals="atmosphere"]):not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *::before,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="motion"]):not([data-diagnostic-visuals="celebrations"]):not([data-diagnostic-visuals="atmosphere"]):not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) *::after{box-shadow:none!important;text-shadow:none!important;animation:none!important;transition:none!important}
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) .sky{transform:none!important}
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="atmosphere"]):not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) .toast-atmosphere,body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="impact"]) .life-loss-atmosphere{display:none!important}
body[data-game-diagnostic="true"]:not([data-diagnostic-visuals="lens"]):not([data-diagnostic-visuals="full"]):not([data-diagnostic-visuals="impact"]) .balloon-layer{transform:none!important}
body[data-game-diagnostic="true"] .lives{gap:0;font-size:28px;font-weight:800}
body[data-game-diagnostic="true"] .lives>span{display:none}
body[data-game-diagnostic="true"] .lives::after{content:"∞"}
.diagnostic-banner{position:fixed;bottom:calc(6px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 20px);white-space:nowrap;z-index:81;background:#fff4fa;color:#914167;border:1px solid #d8aec5;border-radius:10px;padding:5px 9px;font-size:10px;pointer-events:none}
.diagnostic-banner[hidden],.diagnostic-hint[hidden]{display:none}
.diagnostic-hint{font-size:12px;color:#914167;background:#fff0f7;padding:10px;border-radius:12px}

body[data-game-diagnostic="true"][data-diagnostic-visuals="particles"] .fx-ring{animation:fx-ring .6s ease-out both!important}
body[data-game-diagnostic="true"][data-diagnostic-visuals="particles"] .fx-heart{animation:fx-spark 1.05s ease-out both!important}
body[data-game-diagnostic="true"][data-diagnostic-visuals="particles"] .fx-spark{animation:fx-spark .85s ease-out both!important}
body[data-game-diagnostic="true"][data-diagnostic-visuals="particles"] .fx-confetti{animation:fx-spark 1.3s ease-out both!important}
body[data-game-diagnostic="true"][data-diagnostic-visuals="particles"] .fx-score{animation:fx-score 1.1s cubic-bezier(.2,.6,.3,1) both!important}
@media(prefers-reduced-motion:reduce){body[data-game-diagnostic="true"][data-diagnostic-visuals="particles"] .fx{animation:none!important}}

.diagnostic-banner{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;white-space:normal;width:max-content;text-align:center;line-height:1.4}
.diagnostic-banner button{pointer-events:auto;touch-action:manipulation;border:0;border-radius:8px;background:#a8216e;color:#fff;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;min-height:36px;padding:7px 10px;margin:2px 0 2px 6px;cursor:pointer}
.diagnostic-banner button[aria-pressed="true"]{background:#713b60}.diagnostic-banner button[hidden]{display:none}

/* Avoid the full-surface filter/compositing block associated with iPhone recoveries. */
body *,body *::before,body *::after{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;will-change:auto!important}
.game-dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body .sky,body .balloon-layer{transform:none!important}
