:root{color-scheme:light;--ink:#1454a5;--u:min(calc(100vw / 390),calc((100svh - 30px) / 806),1px)}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);font:15px Arial,Helvetica,sans-serif;background:#c5ecff;background-image:linear-gradient(#d9f5ffc9,#c4e8ffb8),url('../assets/play/snapburst/sky.webp');background-size:cover;background-attachment:fixed}
a{color:#19579a;text-underline-offset:2px}
header{height:28px;padding:6px 12px;text-align:center;font-size:11px;background:#effaffdb;border-bottom:1px solid #fff8}
main{width:100%;margin:auto}
.sb-scene{position:relative;isolation:isolate;width:calc(390 * var(--u));height:calc(806 * var(--u));margin:auto;background:#58bbee url('../assets/play/snapburst/sky.webp') center/100% 100% no-repeat;overflow:hidden}
h1{position:absolute;top:calc(4 * var(--u));left:calc(34 * var(--u));width:calc(322 * var(--u));height:calc(128 * var(--u));margin:0}
h1 img{display:block;width:100%;height:100%;object-fit:fill}
.eyebrow{position:absolute;top:calc(135 * var(--u));width:100%;text-align:center;font-size:calc(11 * var(--u));font-weight:900;letter-spacing:calc(1.1 * var(--u));color:white;text-shadow:0 2px 2px #2677b5}
.hud{position:absolute;top:calc(153 * var(--u));left:calc(29 * var(--u));right:calc(29 * var(--u));height:calc(91 * var(--u));display:grid;grid-template-columns:1fr 1fr;gap:calc(7 * var(--u))}
.pile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:calc(7 * var(--u));background:url('../assets/play/snapburst/cloud.webp') center/100% 100% no-repeat;filter:drop-shadow(0 calc(3 * var(--u)) calc(2 * var(--u)) #2885bb40)}
.pile-label{font-weight:900;font-size:calc(15 * var(--u))}
.pile b{display:block;font-weight:900;font-size:calc(43 * var(--u));line-height:.95;letter-spacing:calc(-1 * var(--u));color:#0878cf;text-shadow:0 1px white}
.pile small{font-size:calc(10 * var(--u));font-weight:700}
.puff{position:absolute;right:calc(-7 * var(--u));top:calc(34 * var(--u));z-index:2;background:#fffef5;border:2px solid #b9d6ee;border-radius:50%;padding:calc(10 * var(--u)) calc(6 * var(--u));font-size:calc(10 * var(--u));font-weight:900;box-shadow:4px -3px 0 #fff,-4px 4px 0 #fff}
.puff[hidden]{display:none}
.meta{position:absolute;top:calc(253 * var(--u));left:calc(35 * var(--u));right:calc(35 * var(--u));height:calc(27 * var(--u));padding:0 calc(12 * var(--u));display:flex;align-items:center;justify-content:space-between;gap:calc(4 * var(--u));border-radius:999px;background:linear-gradient(#ffe973,#ffd129);border:calc(2 * var(--u)) solid #fff4a7;box-shadow:0 calc(3 * var(--u)) 0 #cfab39;font-size:calc(13 * var(--u));font-weight:900;white-space:nowrap}
.meta span:last-child{font-size:calc(10 * var(--u))}
#sb-status{position:absolute;top:calc(291 * var(--u));left:calc(21 * var(--u));right:calc(21 * var(--u));height:calc(39 * var(--u));margin:0;padding:calc(5 * var(--u)) calc(14 * var(--u));display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(#fff,#f8f5f3);border:calc(2 * var(--u)) solid white;border-radius:calc(21 * var(--u));box-shadow:0 calc(4 * var(--u)) 0 #c9d4e1,0 calc(5 * var(--u)) calc(6 * var(--u)) #2587bd40;font-weight:800;font-size:calc(12 * var(--u));line-height:1.25}
.stage{position:absolute;top:calc(342 * var(--u));left:calc(11 * var(--u));width:calc(368 * var(--u));height:calc(270 * var(--u));background:radial-gradient(ellipse at 50% 65%,#45c6fa,#22a8e9);border:calc(10 * var(--u)) solid #fff;border-color:#fff #e9eefb #e0e1ee #fff;border-radius:calc(40 * var(--u));box-shadow:inset 0 calc(4 * var(--u)) calc(7 * var(--u)) #1682b9,inset 0 calc(-3 * var(--u)) 0 #a5edff,0 calc(7 * var(--u)) 0 #bbc4d8,0 calc(10 * var(--u)) calc(10 * var(--u)) #237eb657;touch-action:none;user-select:none;-webkit-user-select:none}
.stage *{touch-action:none}
.fuse{position:absolute;top:calc(1 * var(--u));left:50%;transform:translateX(-50%);height:calc(25 * var(--u));width:calc(254 * var(--u));display:flex;align-items:center;justify-content:center;gap:calc(5 * var(--u));background:linear-gradient(#ffec80,#ffd129);border:calc(2 * var(--u)) solid #fff6b7;border-radius:999px;box-shadow:0 calc(3 * var(--u)) 0 #b69937;color:var(--ink);font-size:calc(10 * var(--u));font-weight:900;letter-spacing:calc(.2 * var(--u))}
.fuse-dot{width:calc(6 * var(--u));height:calc(6 * var(--u));border-radius:50%;background:#5c8dbb;flex:none}
[data-phase=live] .fuse-dot{background:#fff;box-shadow:0 0 0 calc(3 * var(--u)) #fff7}
.pair{position:absolute;top:calc(36 * var(--u));left:calc(20 * var(--u));right:calc(20 * var(--u));height:calc(196 * var(--u));display:grid;grid-template-columns:1fr 1fr;gap:calc(18 * var(--u))}
.match-card{position:relative;min-width:0;background:url('../assets/play/snapburst/card-ready.webp') center/100% 100% no-repeat;filter:drop-shadow(0 calc(4 * var(--u)) calc(3 * var(--u)) #06639a70)}
.match-card.sun{background-image:url('../assets/play/snapburst/card-sun.webp')}
.match-card.wave{background-image:url('../assets/play/snapburst/card-wave.webp')}
.match-card.leaf{background-image:url('../assets/play/snapburst/card-leaf.webp')}
.match-card strong{display:none}
.match-card span{position:absolute;top:77%;width:100%;text-align:center;font-size:calc(20 * var(--u));font-weight:900;letter-spacing:calc(.4 * var(--u));color:#1454a5;text-shadow:0 1px #fff7}
.match-card:not([data-symbol]) span{color:#fff;text-shadow:0 2px #2666ac;font-size:calc(16 * var(--u));top:75%}
.match-card small{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hint{position:absolute;bottom:calc(5 * var(--u));width:100%;text-align:center;margin:0;color:#fff;font-size:calc(9.5 * var(--u));font-weight:900;text-shadow:0 2px #197fba}
button{font-family:inherit;font-weight:800;cursor:pointer;border:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #5c2bb6;outline-offset:3px}
button:active:not(:disabled){transform:translateY(2px)}
button:disabled{cursor:default}
.actions{position:absolute;top:calc(624 * var(--u));left:calc(27 * var(--u));right:calc(27 * var(--u));height:calc(71 * var(--u));display:grid;grid-template-columns:1fr 1fr;gap:calc(12 * var(--u))}
.actions button{padding:0 0 calc(5 * var(--u));background:transparent url('../assets/play/snapburst/button-snap.webp') center/100% 100% no-repeat;color:var(--ink);font-size:calc(33 * var(--u));line-height:1.05;filter:drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) #237cb84a)}
.actions #sb-pass{background-image:url('../assets/play/snapburst/button-pass.webp');color:white;text-shadow:0 2px 2px #165db3}
.actions button:disabled{filter:saturate(.65) brightness(.98);color:#40739c}
.actions #sb-pass:disabled{color:#e0ecf8}
button small{display:block;margin-top:calc(1 * var(--u));font-size:calc(11 * var(--u));font-weight:700;line-height:1.1}
#sb-main{position:absolute;top:calc(706 * var(--u));left:calc(43 * var(--u));width:calc(304 * var(--u));height:calc(44 * var(--u));min-height:44px;padding:calc(4 * var(--u)) calc(10 * var(--u)) calc(6 * var(--u));background:linear-gradient(#fff,#f5f1f1);border:calc(2 * var(--u)) solid white;border-radius:calc(24 * var(--u));color:var(--ink);font-size:calc(16 * var(--u));box-shadow:0 calc(4 * var(--u)) 0 #c6cbd7,0 calc(6 * var(--u)) calc(6 * var(--u)) #297ba33b}
#sb-main small{font-size:calc(9 * var(--u))}
#sb-main:disabled{color:#4c739a;background:#edf6fc}
.toolbar{position:absolute;top:calc(758 * var(--u));left:calc(43 * var(--u));right:calc(43 * var(--u));height:calc(44 * var(--u));display:flex;gap:calc(16 * var(--u))}
.toolbar button{flex:1;min-width:0;min-height:44px;padding:0;background:linear-gradient(#fff,#f6f3f5);border:calc(2 * var(--u)) solid white;border-radius:999px;color:var(--ink);font-size:calc(12 * var(--u));box-shadow:0 calc(4 * var(--u)) 0 #c4cbda,0 calc(6 * var(--u)) calc(6 * var(--u)) #297ba33b}
#sb-over{position:absolute;z-index:5;inset:calc(-2 * var(--u));background:#fffdf8f7;border:calc(3 * var(--u)) solid #ffd64a;border-radius:calc(28 * var(--u));display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(22 * var(--u));text-align:center;gap:calc(16 * var(--u));box-shadow:inset 0 0 calc(22 * var(--u)) #ffd64a26}
#sb-over[hidden]{display:none}
#sb-over h2{font-size:calc(27 * var(--u));line-height:1.05;margin:0;color:#1454a5}
#sb-over p{margin:0;font-size:calc(15 * var(--u));line-height:1.45}
#sb-over-btn{min-height:calc(46 * var(--u));width:calc(190 * var(--u));padding:calc(8 * var(--u));color:#1454a5;font-size:calc(18 * var(--u));background:transparent url('../assets/play/snapburst/button-snap.webp') center/100% 100% no-repeat}
#sb-over[data-result=loss]{border-color:#a99bdd;background:#f5f1fff7}
#sb-over[data-result=loss] h2{color:#67509a}
.intro,.help{max-width:620px;margin:24px auto;padding:0 24px;color:#24517a;line-height:1.65}
.intro{text-align:center;font-weight:700}
.help{background:#fffef5ed;border:1px solid white;border-radius:20px;padding:18px 24px;margin-bottom:30px;font-size:14px}
.help h2{font-size:24px;margin:0 0 12px;color:#1454a5}
.help ol{padding-left:23px}
.help li{margin:9px 0}
.timing{padding:14px;border-radius:14px;background:#e7f3fa;border:1px solid #b8d7ee}
summary{cursor:pointer;font-weight:700;padding:10px 0}
@media(min-width:600px){.sb-scene{box-shadow:0 5px 45px #3989b244;border-radius:0 0 24px 24px}}
@media(max-width:650px){.help{margin-left:12px;margin-right:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.round-goal{font-size:11px;font-weight:900;letter-spacing:1.6px;color:#3777a8;margin-bottom:12px}
