#pop-launch{background:#d4f755;color:#17352c;font-weight:800}#pop-game{width:min(600px,calc(100% - 20px));max-height:calc(100dvh - 20px);padding:20px;border:2px solid #17352c;border-radius:20px;background:#f7f5e9;color:#17352c;overflow:auto;box-sizing:border-box;box-shadow:0 20px 100px #0007}#pop-game::backdrop{background:#092016db;backdrop-filter:blur(5px)}.pop-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.pop-head h2{font-size:42px;line-height:1;margin:5px 0 14px}.pop-head button{width:44px;height:44px;border:1px solid #17352c;border-radius:50%;font-size:26px;background:transparent;flex-shrink:0}.pop-hud{display:grid;grid-template-columns:1fr 1fr 1.3fr;border:1px solid #17352c;border-radius:12px;background:#17352c;color:#d4f755;padding:12px;gap:8px}.pop-hud>div{font-size:9px;font-weight:700;letter-spacing:1px}.pop-hud strong{display:block;font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}#pop-message{font-size:13px;min-height:34px;margin:10px 0}#pop-field{position:relative;height:clamp(220px,40dvh,380px);overflow:hidden;border:1px solid #17352c;border-radius:14px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(33.333% - 1px),#17352c20 calc(33.333% - 1px),#17352c20 33.333%),#d4f755;isolation:isolate;touch-action:manipulation}.pop-field-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.12;font-size:60px;font-weight:900;line-height:.9;pointer-events:none}.pop-bottle{position:absolute;transform:translateX(-50%);width:72px;height:100px;padding:4px;border:0;border-radius:18px;background:transparent;cursor:crosshair;touch-action:none;z-index:2}.pop-bottle img{height:88px;max-width:62px;object-fit:contain;pointer-events:none;filter:drop-shadow(3px 4px 0 #17352c55)}.pop-bottle span{position:absolute;bottom:1px;right:5px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#17352c;color:#fff;font-size:11px}.pop-bottle:focus-visible{outline:3px solid #713cb8;outline-offset:-3px;background:#fff6}.pop-paused .pop-bottle{visibility:hidden}.pop-splash{position:absolute;transform:translateX(-50%);z-index:3;font-weight:900;font-size:30px;color:#713cb8;pointer-events:none;white-space:nowrap;text-shadow:2px 2px #fff;animation:pop-burst .65s ease-out both}.pop-actions{display:flex;gap:8px;margin-top:12px}.pop-actions button{min-height:46px;flex:1;border:1px solid #17352c;border-radius:9px;background:#17352c;color:#d4f755;font-weight:800;font-size:13px;cursor:pointer}.pop-rules,.pop-scores{font-size:11px;line-height:1.5}.pop-rules{margin:9px 0}.pop-scores{border-top:1px solid #17352c44;margin-top:12px;padding-top:8px}.pop-scores summary{min-height:38px;padding:8px 0;cursor:pointer;font-weight:800}.pop-scores ol{padding-left:24px}.pop-scores li{padding:5px 0;border-bottom:1px solid #17352c22}@keyframes pop-burst{from{opacity:1;scale:.6}to{opacity:0;scale:1.3}}@media(max-width:380px){#pop-game{padding:12px}.pop-head h2{font-size:34px}.pop-hud{padding:10px}.pop-hud>div{font-size:8px}.pop-bottle{width:68px}.pop-field-label{font-size:48px}}@media(prefers-reduced-motion:reduce){.pop-splash{animation:none}}
#pop-game{max-width:calc(100% - 20px)}.pop-audio{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px;font-size:10px}.pop-audio button{min-height:44px;padding:6px 10px;background:#e7ddfb;border:1px solid #17352c;border-radius:8px;font-weight:bold}.pop-audio label{display:flex;align-items:center;gap:5px}.pop-audio input{width:70px;min-height:32px}.pop-audio>span{margin-left:auto;font-size:9px;font-weight:800}.pop-payload{position:absolute;z-index:4;pointer-events:none;width:90px;transform:translateX(-50%);animation:pop-fly .95s ease-out both}.pop-payload img{width:90px;height:100px;object-fit:contain;filter:drop-shadow(2px 4px 0 #17352c55)}.pop-payload b{display:block;font-size:10px;white-space:nowrap;background:#f7f5e9;border-radius:4px;padding:3px;text-align:center}.pop-water{font-size:100px;color:#17b8dd;text-shadow:4px 4px #fff;line-height:1}.pop-payload:has(.pop-water){animation:pop-waterburst .95s ease-out both}.pop-payload i{position:absolute;left:45px;top:45px;width:12px;height:27px;background:#29badf;border-radius:70% 30% 60% 40%;transform:rotate(var(--angle)) translateY(-70px);border:2px solid #e3ffff}@keyframes pop-fly{0%{translate:0 0;rotate:-18deg;scale:.5;opacity:1}65%{opacity:1}100%{translate:0 -150px;rotate:35deg;scale:1.6;opacity:0}}@keyframes pop-waterburst{from{scale:.1;opacity:1}to{scale:2.2;opacity:0}}@media(max-width:700px){.nav .app-nav{grid-template-columns:repeat(7,minmax(0,1fr));padding-inline:4px;gap:1px}.nav .app-nav a{font-size:9px;padding-inline:1px;min-width:0}.pop-audio{gap:6px}.pop-audio>span{margin-left:0}#pop-field{height:clamp(220px,34dvh,330px)}}@media(prefers-reduced-motion:reduce){.pop-payload,.pop-payload:has(.pop-water){animation:none;translate:none;rotate:none;scale:1}.pop-payload i{display:none}}
.pop-hud{grid-template-columns:1fr .8fr 1fr 1.3fr}.pop-hud #pop-lives{font-size:22px;letter-spacing:0;color:#ef9ade;line-height:1.65}.pop-gameover #pop-field{background-color:#ffc0e5}.pop-doom-screen{position:fixed;inset:0;z-index:2147483000;pointer-events:none;overflow:hidden;contain:strict}.pop-doom-screen span{position:absolute;left:50%;top:50%;width:24vw;height:22vh;display:grid;place-items:center;background:#d4f755;border:3px solid #17352c;font-size:clamp(24px,6vw,80px);font-weight:900;color:#17352c;box-shadow:8px 8px #17352c;animation:pop-page-shatter 1.4s cubic-bezier(.15,.8,.5,1) var(--delay) both}.pop-doom-screen span:nth-child(3n){background:#b593e9}.pop-doom-screen span:nth-child(3n+1){background:#2db8da}.pop-gameover{animation:pop-gameover-shake .35s linear 2}#pop-game.pop-gameover::backdrop{background:#8c2367b8}@keyframes pop-page-shatter{0%{transform:translate(-50%,-50%) scale(.1);opacity:1}30%{opacity:1}100%{transform:translate(var(--x),var(--y)) rotate(var(--spin)) scale(.5);opacity:0}}@keyframes pop-gameover-shake{25%{translate:-7px 2px}75%{translate:7px -2px}}@media(max-width:380px){.pop-hud{gap:5px;padding:9px}.pop-hud>div{font-size:7px;letter-spacing:.6px}.pop-hud strong{font-size:26px}.pop-hud #pop-lives{font-size:19px}}@media(prefers-reduced-motion:reduce){.pop-doom-screen{display:none}.pop-gameover{animation:none}}
#pop-result{margin-top:16px;padding:14px;background:#e8dcfb;border:1px solid #17352c;border-radius:12px}#pop-result h3{font-size:25px;margin:0 0 10px}#pop-card{display:block;width:min(100%,260px);height:auto;border-radius:8px;margin:auto}.pop-share-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.pop-share-actions button{min-height:44px;flex:1;min-width:95px;border:1px solid #17352c;border-radius:7px;padding:8px;background:#17352c;color:#d4f755;font-size:10px;font-weight:bold}#pop-share-status{font-size:11px;line-height:1.4;margin:10px 0 0}
/* Fictional PINE/Solana degen room. Static illustration keeps the arena inexpensive on mobile. */
#pop-field{background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(33.333% - 1px),#17352c1c calc(33.333% - 1px),#17352c1c 33.333%),linear-gradient(#eef1cf38,#e3ebc43b),url('assets/pop-degen-room.svg');background-size:auto,auto,cover;background-position:center;background-color:#bed3a8}.pop-field-label{color:#214333;opacity:.12;font-size:42px}.pop-bottle img{filter:drop-shadow(0 0 2px #fff) drop-shadow(3px 5px 1px #17352c88)}.pop-gameover #pop-field{background-image:linear-gradient(#ef9dde80,#b784bc66),url('assets/pop-degen-room.svg');background-size:cover}#pop-field:has(.pop-bottle){background-blend-mode:normal,normal,normal}

/* Branded victory popup; native dialog traps focus and Escape closes it. */
#pop-result{width:min(440px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:16px;border:2px solid #17352c;border-radius:18px;background:#f7f5e9;color:#17352c;overflow:auto;box-sizing:border-box;box-shadow:0 18px 90px #0008}#pop-result::backdrop{background:#15382cec;backdrop-filter:blur(5px)}.pop-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}#pop-result .pop-result-head h3{font-size:25px;margin:0}#pop-result-close{width:44px;height:44px;flex-shrink:0;border:1px solid #17352c;border-radius:50%;background:transparent;font-size:24px}#pop-result #pop-card{width:min(100%,320px)}#pop-result-replay{display:block;width:100%;min-height:44px;border:1px solid #17352c;border-radius:8px;background:#d4f755;font-weight:bold;color:#17352c;margin-top:9px}#pop-result .pop-share-actions button{min-width:90px}@media(max-width:380px){#pop-result{padding:12px}.pop-result-head h3{font-size:22px!important}#pop-result .pop-share-actions{gap:5px}#pop-result .pop-share-actions button{min-width:80px;font-size:9px}}

#pop-field.pop-miss{box-shadow:inset 0 0 0 4px #b87955}@media(prefers-reduced-motion:reduce){#pop-field.pop-miss{box-shadow:none}}
/* Comparable reach: same large targets and time-based falls, bounded center play zone on desktop. */
.pop-arena-scene{background:linear-gradient(#eef1cf38,#e3ebc43b),url('assets/pop-degen-room.svg') center/cover;border:1px solid #17352c;border-radius:14px;overflow:hidden}#pop-field{width:min(100%,360px);height:clamp(220px,34dvh,280px);margin-inline:auto;border:0;border-left:1px solid #17352c22;border-right:1px solid #17352c22;border-radius:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(33.333% - 1px),#17352c24 calc(33.333% - 1px),#17352c24 33.333%),linear-gradient(#eff4d432,#eff4d432);box-sizing:border-box}.pop-gameover #pop-field{background:linear-gradient(#ef9dde60,#b784bc44)}
