@charset "UTF-8";
:root{--ink:#294b3a;--muted:#77816f;--paper:#f8f8f0;--line:#dce3d5;--green:#345d45;font-family:"Trebuchet MS",Arial,sans-serif;color:var(--ink);background:#0c0a1d;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #8aa275;outline-offset:4px}canvas:focus:not(:focus-visible){outline:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.hidden,[hidden]{display:none!important}
.arena{position:fixed;inset:0;width:100%;height:100%;height:100dvh;overflow:hidden;isolation:isolate;touch-action:none}.landscape{position:absolute;inset:0;background:linear-gradient(180deg,#d2e6df 0%,#e6eddb 62%,#e9ecd3 100%);pointer-events:none;overflow:hidden}.sun-disc{position:absolute;width:57vmin;height:57vmin;right:-4vmin;top:12%;border-radius:50%;background:#fbf1c7;opacity:.46;filter:blur(2px)}.cloud{position:absolute;background:#fffdf4;opacity:.28;border-radius:50%;filter:blur(23px);height:6vmin;width:32vmin;transform:rotate(-8deg)}.cloud-one{top:27%;left:-6vmin}.cloud-two{top:12%;right:8%;width:26vmin;height:3vmin;opacity:.38}.hill{position:absolute;width:140%;height:28%;border-radius:50% 50% 0 0;bottom:-20%;pointer-events:none}.hill-back{left:-48%;bottom:-16%;background:#c6d2ab;transform:rotate(12deg);opacity:.42}.hill-front{right:-55%;height:32%;bottom:-24%;background:#b9cba0;transform:rotate(-12deg);opacity:.36}.stars{display:none}
#game-canvas{width:100%;height:100%;display:block;position:absolute;inset:0;z-index:2;touch-action:none;cursor:crosshair;outline-offset:-4px}.hud{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(25px,env(safe-area-inset-left));right:max(25px,env(safe-area-inset-right));z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;pointer-events:none;gap:14px;color:#345440}.score-display{display:flex;align-items:center;gap:10px;align-self:center;font-size:28px;font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:-1px;width:max-content}.score-display svg{width:23px;height:23px;opacity:.7}.timer-display{position:relative;font-size:18px;align-self:center;text-align:center;min-width:66px;padding:3px 5px 10px;font-variant-numeric:tabular-nums;opacity:.65}.timer-display>#time-unit{font-size:11px;margin-left:3px}.time-track{height:2px;position:absolute;left:0;right:0;bottom:0;background:#54704420;border-radius:2px;overflow:hidden}#time-fill{height:100%;width:100%;background:#55764c;transform-origin:left}.timer-display.urgent{color:#a64c3a;opacity:1}.timer-display.urgent #time-fill{background:#a64c3a}.icon-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #68895c25;background:#fbfff126;border-radius:50%;flex-shrink:0;transition:background .15s}.icon-button:hover{background:#fffdf499}.icon-button svg{width:20px;height:20px}.hud .icon-button{justify-self:end;pointer-events:auto;backdrop-filter:blur(6px)}
.play-hint{position:absolute;z-index:3;bottom:max(42px,calc(env(safe-area-inset-bottom) + 22px));left:20px;right:20px;text-align:center;pointer-events:none;color:#54714b;display:flex;flex-direction:column;gap:8px;transition:opacity .5s;opacity:.8}.play-hint.faded{opacity:0}.play-hint>span:first-child{font-family:Georgia,serif;font-size:23px;letter-spacing:-.4px}.play-hint>span:last-child{font-size:10px;letter-spacing:.3px}.combo-label{position:absolute;z-index:4;left:50%;top:87px;transform:translateX(-50%);font-size:12px;letter-spacing:.5px;color:#52795b;pointer-events:none;white-space:nowrap}#pop-labels{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}.pop-label{position:absolute;font-size:18px;font-family:Georgia,serif;color:#536f4b;animation:float-label .7s ease-out forwards;pointer-events:none}.pop-label.gold{color:#937139;font-size:24px}@keyframes float-label{from{opacity:1;transform:translate(-50%,-40%)}to{opacity:0;transform:translate(-50%,-220%)}}
/* The entire non-game interface lives in this scrollable options sheet. */
dialog{border:1px solid #d5dfce;border-radius:20px;padding:0;max-width:410px;width:calc(100% - 28px);max-height:calc(100dvh - 42px);color:var(--ink);background:var(--paper);position:fixed;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#1c3e3040;backdrop-filter:blur(9px)}.panel-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;padding:25px 25px 19px;background:var(--paper);z-index:2;border-bottom:1px solid var(--line)}.eyebrow{font-size:8px;letter-spacing:1.9px;color:#8c977c}.panel-header h1{font-family:Georgia,serif;font-size:28px;letter-spacing:-.8px;font-weight:400;margin:7px 0 0}.panel-header .icon-button{border-color:var(--line);height:35px;width:35px}.panel-header .icon-button svg{width:17px;height:17px}.panel-content{padding:23px 25px 16px}.mode-row{display:flex;justify-content:space-between;align-items:center;font-size:12px}.mode-switch{display:flex;align-items:center;border:1px solid var(--line);border-radius:22px;padding:3px;gap:2px}.mode-switch button{font-size:11px;padding:7px 14px;border-radius:17px;color:#7b8877}.mode-switch .selected{background:#e3ead8;color:var(--green)}.mode-description{font-size:10px;color:#87937b;margin:11px 0 20px;line-height:1.5}.settings-row{display:flex;justify-content:space-between;gap:12px}.setting-button{font-size:11px;display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 10px;border-radius:7px;background:#edf0e5;flex:1;justify-content:center}.setting-button svg{width:16px;height:16px}.setting-button:hover{background:#e3ead8}.pocket{margin:23px 0 25px;display:flex;justify-content:space-between;padding:17px 13px;background:#edf0e4;border:1px solid #dce4d2;border-radius:10px;gap:8px}.pocket>div{display:flex;flex-direction:column;gap:5px;text-align:center;flex:1}.pocket strong{font-family:Georgia,serif;font-size:28px;font-weight:400;line-height:1.1;letter-spacing:-.5px}.pocket span{font-size:8px;color:#8a967c;line-height:1.4}h2{font-family:Georgia,serif;font-size:19px;font-weight:400;margin:0 0 6px;letter-spacing:-.3px}.shop{display:flex;flex-direction:column}.shop-item{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.shop-icon{border-radius:8px;background:#eeece1;height:34px;width:34px;display:grid;place-items:center;color:#8f987b}.shop-icon svg{width:18px;height:18px;stroke-width:1.4}.shop-description strong{font-weight:400;font-size:11px;display:block;margin-bottom:4px}.shop-description p{font-size:9px;color:#929b87;margin:0;line-height:1.5}.buy-button{font-size:10px;border:1px solid #d8dfcd;border-radius:6px;padding:8px;min-width:47px;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.buy-button svg{width:14px;height:14px}.buy-button.affordable{background:#e3edd4;border-color:#c6d5b3}.buy-button:disabled{opacity:.5}.buy-button.owned{border-color:transparent;color:#6b8c57;opacity:1}.pearl-icon{display:inline-block;width:10px;height:10px;border:1px solid #a4b58d;border-radius:50%;background:#e8ebd3;box-shadow:inset 2px 2px 0 #fffef3}.scenes-header{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px}.scenes-header>span{font-size:9px;color:#99a18d}.scene-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.scene-button{text-align:left;border:1px solid #e0e4d7;padding:4px;border-radius:8px;position:relative}.scene-button.selected{border-color:#7a9568}.scene-swatch{height:48px;border-radius:5px;position:relative;overflow:hidden;background:#dbe7d8}.scene-swatch:after{content:"";position:absolute;width:70%;height:80%;border-radius:50%;background:#bdcda8;right:-10%;bottom:-50%}.scene-swatch:before{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:#f8f1ca;right:12px;top:7px}.swatch-peach{background:#eed6c7}.swatch-peach:after{background:#d2aaa0}.swatch-peach:before{background:#fff0b8}.swatch-night{background:#36465e}.swatch-night:after{background:#293849}.swatch-night:before{background:#cbd7c9;box-shadow:5px -3px 0 #36465e inset}.scene-button>span{font-size:9px;display:block;margin:7px 3px 4px;color:#7f8d70}.scene-cost{position:absolute;right:7px;top:29px;color:#fff!important;background:#33483caa;padding:2px 5px;border-radius:3px;font-size:7px!important}.how-to{margin:22px 0;font-size:11px;color:#7c8971}.how-to summary{cursor:pointer;padding:5px 0}.how-to p{font-size:11px;line-height:1.8}kbd{font:inherit;border:1px solid var(--line);border-radius:4px;padding:2px 5px;margin-right:4px}.panel-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 13px}.primary-button{border-radius:7px;background:var(--green);color:#fffdf6;min-height:42px;padding:12px 20px;font-size:11px}.primary-button:hover{background:#244d37}.secondary-button{font-size:11px;color:#7c8a6e;padding:12px 6px}.secondary-button:hover{text-decoration:underline}.reset-button{display:block;font-size:9px;color:#a1a88f;margin:auto;padding:10px}.reset-button:hover{color:#8d5943}.confirm-dialog{padding:28px}.confirm-dialog h2{font-size:27px}.confirm-dialog p{font-size:12px;line-height:1.8;color:#859074}.confirm-dialog .panel-actions{margin-bottom:0}.toast{position:fixed;z-index:40;bottom:30px;left:50%;transform:translate(-50%,15px);background:#2f503de8;color:#fffdf4;border-radius:9px;padding:12px 20px;font-size:11px;pointer-events:none;opacity:0;transition:opacity .25s,transform .25s;text-align:center;max-width:90vw;line-height:1.5}.toast.visible{opacity:1;transform:translate(-50%,0)}.render-error{position:fixed;z-index:100;inset:15%;padding:35px;background:var(--paper);border:1px solid var(--line);border-radius:16px;text-align:center}.render-error h2{font-size:24px}.render-error p{font-size:13px;line-height:1.8}
body[data-scene=peach] .landscape{background:linear-gradient(180deg,#efd9ce,#f7e4ce 70%,#edccb6)}body[data-scene=peach] .hill-back{background:#d1a9a0}body[data-scene=peach] .hill-front{background:#d8b68f}body[data-scene=peach] .sun-disc{background:#fff4b5;opacity:.7}body[data-scene=night] .landscape{background:linear-gradient(180deg,#253849,#45536a 70%,#59666b)}body[data-scene=night] .hill-back{background:#263d43}body[data-scene=night] .hill-front{background:#233139}body[data-scene=night] .sun-disc{width:17vmin;height:17vmin;right:10%;top:17%;background:#d9e3cd;box-shadow:4vmin -2vmin 0 .5vmin #2d4052 inset;opacity:.8}body[data-scene=night] .cloud{opacity:.04}body[data-scene=night] .stars{display:block;position:absolute;inset:0;background-image:radial-gradient(circle at 20% 20%,#f9edcb 1px,transparent 2px),radial-gradient(circle at 65% 36%,#f9edcb 1px,transparent 2px),radial-gradient(circle at 39% 15%,#f9edcb 1px,transparent 2px),radial-gradient(circle at 86% 7%,#f9edcb 1px,transparent 2px),radial-gradient(circle at 78% 49%,#f9edcb 1px,transparent 2px);opacity:.6}body[data-scene=night] .hud,body[data-scene=night] .play-hint,body[data-scene=night] .combo-label,body[data-scene=night] .pop-label{color:#dce9ce}body[data-scene=night] #time-fill{background:#cedbae}body[data-scene=night] .hud .icon-button{border-color:#dce9ce25}
@media(max-width:600px){.hud{left:max(17px,env(safe-area-inset-left));right:max(17px,env(safe-area-inset-right));top:max(17px,env(safe-area-inset-top))}.score-display{font-size:24px;gap:8px}.score-display svg{width:20px;height:20px}.hud .icon-button{width:38px;height:38px}.timer-display{font-size:16px;min-width:54px}.combo-label{top:74px;font-size:10px}.play-hint{bottom:max(38px,calc(env(safe-area-inset-bottom) + 20px))}.play-hint>span:first-child{font-size:21px}.play-hint>span:last-child{font-size:9px}.sun-disc{width:80vmin;height:80vmin;right:-21vmin;top:16%}dialog{border-radius:17px;max-height:calc(100dvh - 28px)}.panel-header{padding:21px 21px 17px}.panel-content{padding:20px 21px 12px}.panel-header h1{font-size:26px}.shop-item{gap:8px}.shop-description p{font-size:8px}.scene-button>span{font-size:8px}.toast{bottom:25px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.pop-label{animation:none;opacity:.7}}
.flash{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;background:radial-gradient(circle at 50% 45%,#fffbe8 0%,var(--flash,#ffe0a0) 60%,#ffb27a 100%);mix-blend-mode:screen}
.test-panel{position:fixed;z-index:30;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box;align-items:center;gap:6px;padding:6px 8px;border-radius:12px;background:#2f503de0;color:#fffdf4;font-size:11px;box-shadow:0 4px 14px #0003}
.test-panel span{padding:0 4px;opacity:.8;white-space:nowrap}
.test-panel button{font:inherit;font-weight:bold;color:#2f503d;background:#fffdf4;border:0;border-radius:8px;padding:7px 10px;cursor:pointer}
.test-panel button:hover{background:#ffe9a8}
.score-block{display:flex;flex-direction:column;align-items:flex-start;gap:5px;align-self:center}
.score-block .score-display{align-self:flex-start}
.next-show{font-size:10px;letter-spacing:.4px;opacity:.6;width:max-content;min-width:96px;padding-left:2px}
.next-track{height:2px;margin-top:4px;background:#54704420;border-radius:2px;overflow:hidden}
#next-fill{height:100%;background:#55764c;transform-origin:left;transform:scaleX(0);transition:transform .2s}
body[data-scene=night] #next-fill{background:#cedbae}
.pop-label.holo{font-size:22px;font-weight:bold;background:linear-gradient(90deg,#ff4f7b,#ffb13d,#4fdc7b,#3dc2ff,#8b6bff);-webkit-background-clip:text;background-clip:text;color:transparent}
@keyframes foil{from{background-position:100% 100%}to{background-position:0 0}}
@media(max-width:600px){.next-show{font-size:9px;min-width:80px}}
.frost-overlay{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,#d8efff26 35%,#dcf1ffc0 80%,#f4fbfff0 100%);box-shadow:inset 0 0 120px 20px #e3f4ff}
.pop-label.storm{color:#2f7fd0;font-weight:bold}
.pop-label.frost{color:#5f9ccc;font-weight:bold}
.pop-label.cosmic{color:#6c45c0;font-weight:bold}
body[data-scene=night] .pop-label.storm{color:#8fd0ff}
body[data-scene=night] .pop-label.frost{color:#d4efff}
body[data-scene=night] .pop-label.cosmic{color:#cdb6ff}
/* Solana scene: a deep purple-black sky, a purple-to-green orb, drifting aurora light, stars, and a neon grid
   floor scrolling toward a glowing horizon. Brand colours only (#9945FF, #14F195); no logo. */
.aurora,.grid-floor,.horizon{display:none}
body[data-scene=solana] .landscape{background:radial-gradient(110% 75% at 12% 0%,#2c1660 0%,transparent 60%),radial-gradient(90% 60% at 100% 100%,#073d34 0%,transparent 62%),linear-gradient(180deg,#0c0a1d 0%,#130e2e 55%,#0a1820 100%)}
body[data-scene=solana] .sun-disc{width:42vmin;height:42vmin;right:7%;top:9%;background:radial-gradient(circle at 35% 30%,#c9a6ff 0%,#9945ff 38%,#14f195 100%);opacity:.32;filter:blur(14px);box-shadow:0 0 120px 30px #9945ff40}
body[data-scene=solana] .cloud,body[data-scene=solana] .hill{display:none}
body[data-scene=solana] .stars{display:block;position:absolute;inset:0 0 35% 0;background-image:radial-gradient(circle at 12% 18%,#fff 1px,transparent 2px),radial-gradient(circle at 28% 8%,#14f195 1px,transparent 2px),radial-gradient(circle at 44% 27%,#fff 1px,transparent 2px),radial-gradient(circle at 57% 12%,#c9a6ff 1px,transparent 2px),radial-gradient(circle at 71% 34%,#fff 1px,transparent 2px),radial-gradient(circle at 83% 6%,#fff 1px,transparent 2px),radial-gradient(circle at 92% 41%,#14f195 1px,transparent 2px),radial-gradient(circle at 6% 47%,#c9a6ff 1px,transparent 2px),radial-gradient(circle at 36% 52%,#fff 1px,transparent 2px),radial-gradient(circle at 63% 58%,#fff 1px,transparent 2px);opacity:.75;animation:twinkle 4s ease-in-out infinite alternate}
body[data-scene=solana] .aurora{display:block;position:absolute;left:-30%;width:160%;border-radius:50%;filter:blur(30px)}
body[data-scene=solana] .aurora-one{top:20%;height:16vmin;background:linear-gradient(90deg,transparent 5%,#9945ff 35%,#19fb9b 70%,transparent 95%);opacity:.3;transform:rotate(-11deg);animation:aurora 19s ease-in-out infinite alternate}
body[data-scene=solana] .aurora-two{top:44%;height:10vmin;background:linear-gradient(90deg,transparent 5%,#14f195 30%,#03e1ff 55%,#9945ff 80%,transparent 95%);opacity:.18;transform:rotate(7deg);animation:aurora 26s ease-in-out infinite alternate-reverse}
body[data-scene=solana] .grid-floor{display:block;position:absolute;left:-80%;right:-80%;bottom:0;height:129vh;transform-origin:50% 100%;transform:perspective(85vh) rotateX(55deg);background-image:linear-gradient(#9945ff70 2px,transparent 2px),linear-gradient(90deg,#14f19560 2px,transparent 2px);background-size:56px 56px;-webkit-mask-image:linear-gradient(to top,#000 10%,#0008 55%,transparent 100%);mask-image:linear-gradient(to top,#000 10%,#0008 55%,transparent 100%);animation:grid-scroll 2.4s linear infinite;will-change:transform}
body[data-scene=solana] .horizon{display:block;position:absolute;left:0;right:0;bottom:33vh;height:2px;background:linear-gradient(90deg,transparent,#9945ff 30%,#14f195 70%,transparent);box-shadow:0 0 22px 5px #9945ff50;opacity:.75}
@keyframes aurora{from{translate:-6% 0}to{translate:6% 3vmin}}
/* Moves the plane itself one cell toward the viewer (a transform, so the browser doesn't repaint the grid). */
@keyframes grid-scroll{from{transform:perspective(85vh) rotateX(55deg) translateY(0)}to{transform:perspective(85vh) rotateX(55deg) translateY(56px)}}
@keyframes twinkle{from{opacity:.45}to{opacity:.85}}
body[data-scene=solana] .hud,body[data-scene=solana] .play-hint,body[data-scene=solana] .combo-label,body[data-scene=solana] .pop-label{color:#e9e2ff}
body[data-scene=solana] #time-fill,body[data-scene=solana] #next-fill{background:linear-gradient(90deg,#9945ff,#14f195)}
body[data-scene=solana] .hud .icon-button{border-color:#e9e2ff30;background:#ffffff10}
body[data-scene=solana] .pop-label.storm{color:#8fd0ff}
body[data-scene=solana] .pop-label.frost{color:#d4efff}
body[data-scene=solana] .pop-label.cosmic{color:#cdb6ff}
body[data-scene=solana] .pop-label.gold{color:#ffd77a}
.swatch-solana{background:radial-gradient(circle at 75% 30%,#9945ff 0 22%,transparent 23%),linear-gradient(180deg,#130e2e 55%,#14f19570 100%)}
@media(prefers-reduced-motion:reduce){body[data-scene=solana] .aurora,body[data-scene=solana] .grid-floor,body[data-scene=solana] .stars{animation:none}}
/* Disco: coloured spotlight beams sweeping the sky behind the bubbles (pointer events pass through). */
.disco-overlay{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;overflow:hidden;mix-blend-mode:screen}
.disco-overlay i{position:absolute;left:50%;top:-10%;width:220vmax;height:220vmax;margin-left:-110vmax;margin-top:-110vmax;background:conic-gradient(from 0deg,transparent 0 6deg,#ff4f7b55 8deg 14deg,transparent 16deg 60deg,#3dc2ff55 62deg 68deg,transparent 70deg 120deg,#4fdc7b55 122deg 128deg,transparent 130deg 180deg,#ffe14d55 182deg 188deg,transparent 190deg 240deg,#8b6bff55 242deg 248deg,transparent 250deg 300deg,#ff6bd655 302deg 308deg,transparent 310deg);animation:disco-spin 6s linear infinite}
.disco-overlay i:nth-child(2){left:10%;animation-duration:8s;animation-direction:reverse;opacity:.7}
.disco-overlay i:nth-child(3){left:90%;animation-duration:7s;opacity:.7}
@keyframes disco-spin{to{transform:rotate(360deg)}}
.pop-label.comet{color:#ff8a3d;font-weight:bold}
.pop-label.magnet{color:#7d8aa8;font-weight:bold}
.pop-label.disco{font-weight:bold;background:linear-gradient(90deg,#ff4f7b,#ffe14d,#4fdc7b,#3dc2ff,#8b6bff);-webkit-background-clip:text;background-clip:text;color:transparent}
body[data-scene=solana] .pop-label.comet,body[data-scene=night] .pop-label.comet{color:#ffb070}
body[data-scene=solana] .pop-label.magnet,body[data-scene=night] .pop-label.magnet{color:#d2dbf0}
@media(prefers-reduced-motion:reduce){.disco-overlay i{animation:none}}
/* Options and confirm sheets in the Solana scene: deep purple-black, light text, green for what's chosen. */
body[data-scene=solana] dialog{--paper:#15112b;--ink:#ece6ff;--line:#ffffff1c;--green:#14f195;border-color:#9945ff55;box-shadow:0 20px 60px #0008,0 0 0 1px #9945ff22}
body[data-scene=solana] dialog::backdrop{background:#0c0a1d88}
body[data-scene=solana] .eyebrow{color:#b9a8e8}
body[data-scene=solana] .mode-switch button{color:#a99cd0}
body[data-scene=solana] .mode-switch .selected{background:#9945ff40;color:#e9fff5}
body[data-scene=solana] .mode-description,body[data-scene=solana] .pocket span,body[data-scene=solana] .shop-description p,body[data-scene=solana] .scenes-header>span,body[data-scene=solana] .confirm-dialog p{color:#a398cc}
body[data-scene=solana] .setting-button{background:#ffffff0e;color:var(--ink)}
body[data-scene=solana] .setting-button:hover{background:#ffffff1a}
body[data-scene=solana] .pocket{background:#ffffff08;border-color:#ffffff16}
body[data-scene=solana] .shop-icon{background:#ffffff0e;color:#c4b5f0}
body[data-scene=solana] .buy-button{border-color:#ffffff26;color:var(--ink)}
body[data-scene=solana] .buy-button.affordable{background:#14f19522;border-color:#14f19570}
body[data-scene=solana] .buy-button.owned{color:#14f195}
body[data-scene=solana] .scene-button{border-color:#ffffff1c}
body[data-scene=solana] .scene-button.selected{border-color:#14f195;box-shadow:0 0 0 1px #14f19555}
body[data-scene=solana] .scene-button>span,body[data-scene=solana] .how-to,body[data-scene=solana] .secondary-button{color:#c4b5f0}
body[data-scene=solana] .reset-button{color:#8b80b0}
body[data-scene=solana] .reset-button:hover{color:#ff8a9a}
body[data-scene=solana] .primary-button{background:linear-gradient(90deg,#9945ff,#14f195);color:#0c0a1d;font-weight:bold}
body[data-scene=solana] .primary-button:hover{background:linear-gradient(90deg,#a95cff,#19fb9b)}
.swatch-solana:before{background:linear-gradient(135deg,#c9a6ff,#9945ff 45%,#14f195)}
.swatch-solana:after{background:#14f19530}
/* Small text over the dark sky and grid. */
body[data-scene=solana] .next-show{opacity:.85}
body[data-scene=solana] .play-hint{opacity:.95;text-shadow:0 1px 10px #0c0a1d,0 0 3px #0c0a1d}
@media(max-width:600px){.play-hint>span:last-child{font-size:10px}}
/* xgames.fun: the BUBL pill and the prize panel (xgames.js) */
.hud-right{justify-self:end;display:flex;align-items:center;gap:10px;pointer-events:auto}
.bubl-pill{display:flex;align-items:center;gap:8px;height:42px;padding:0 14px 0 8px;border-radius:21px;border:1px solid #68895c30;background:#fbfff126;backdrop-filter:blur(6px);color:inherit;font-variant-numeric:tabular-nums;transition:background .15s}
.bubl-pill:hover{background:#fffdf466}
.bubl-coin{width:26px;height:26px;border-radius:50%;flex-shrink:0;background:radial-gradient(circle at 35% 30%,#fff 0 12%,transparent 13%),linear-gradient(135deg,#9945ff,#19fb9b);box-shadow:inset 0 0 0 2px #ffffff55,0 0 10px #14f19544}
.bubl-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}
.bubl-text strong{font-size:15px;font-weight:bold;letter-spacing:-.2px}
.bubl-text small{font-size:9px;opacity:.75;white-space:nowrap}
.bubl-pill.full .bubl-coin{filter:saturate(.3)}
body[data-scene=solana] .bubl-pill{border-color:#e9e2ff30;background:#ffffff10}
body[data-scene=solana] .bubl-pill:hover{background:#ffffff22}
.prize-step{margin-bottom:16px}
.prize-lead{font-size:12px;line-height:1.7;margin:0 0 14px}
.prize-note{font-size:10px;line-height:1.6;color:#87937b;margin:10px 0 0}
.prize-note.loud{font-size:13px;color:var(--ink);background:#14f19518;border:1px solid #14f19555;border-radius:8px;padding:10px 12px}
.prize-note a{color:inherit}
.wide{width:100%}
.secondary-solid{font-size:11px;min-height:38px;padding:9px 14px;border-radius:7px;border:1px solid var(--line);background:#edf0e5;color:var(--ink);width:100%}
.secondary-solid:hover:not(:disabled){filter:brightness(1.05)}
button:disabled{cursor:default}
.primary-button:disabled{opacity:.45}
.link-button{font-size:10px;color:#87937b;text-decoration:underline;padding:4px}
.prize-who{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:12px}
.prize-who span{font-weight:bold}
.prize-hour{border:1px solid var(--line);border-radius:10px;padding:12px 13px}
.prize-hour-top{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;margin-bottom:8px}
.prize-hour-top strong{font-variant-numeric:tabular-nums;font-size:13px}
.prize-hour .next-track{height:5px;border-radius:3px;background:#88888822;overflow:hidden}
#hour-fill{height:100%;transform-origin:left;transform:scaleX(0);background:linear-gradient(90deg,#9945ff,#14f195);transition:transform .3s}
.prize-hour small{display:block;font-size:9px;color:#87937b;margin-top:7px}
.bubl-pocket{margin:14px 0}
.bubl-pocket strong{font-size:22px}
.wallet-row{margin-bottom:10px}
.wallet-row .prize-note{display:block;margin:0 0 4px}
.draw-card{border:1px solid #9945ff44;border-radius:14px;padding:15px;background:linear-gradient(160deg,#9945ff14,#14f19510)}
.draw-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.draw-top strong{font-family:Georgia,serif;font-size:22px;font-weight:400;font-variant-numeric:tabular-nums}
.draw-stats{display:flex;justify-content:space-between;font-size:10px;color:#87937b;margin-bottom:12px}
.draw-stats strong{color:var(--ink);font-size:13px}
#free-button{margin-bottom:10px}
.ticket-row{display:flex;gap:10px;align-items:stretch}
.ticket-row .primary-button{flex:1}
.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px}
.stepper button{width:34px;height:100%;font-size:17px;color:var(--ink)}
.stepper span{min-width:26px;text-align:center;font-variant-numeric:tabular-nums;font-size:13px}
.finish-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.finish-list:empty{display:none}
.winner-box{margin-top:12px;padding:14px;border-radius:10px;background:linear-gradient(135deg,#ffe14d33,#ff6bd633);border:1px solid #f3c94f88;text-align:center}
.winner-box strong{font-family:Georgia,serif;font-size:24px;font-weight:400}
.winner-box p{font-size:11px;line-height:1.6;margin:6px 0 0}
.prize-status{font-size:11px;line-height:1.5;min-height:1.5em;margin:0 0 6px;color:#87937b}
.prize-status[data-kind=warn]{color:#d9734f}
.prize-status[data-kind=good]{color:#2f9a64}
.prize-fine{font-size:9px!important;opacity:.8}
body[data-scene=solana] .secondary-solid{background:#ffffff0d;border-color:#ffffff22}
body[data-scene=solana] .prize-note,body[data-scene=solana] .prize-hour small,body[data-scene=solana] .draw-stats,body[data-scene=solana] .link-button,body[data-scene=solana] .prize-status{color:#a398cc}
body[data-scene=solana] .prize-status[data-kind=warn]{color:#ff9f7a}
body[data-scene=solana] .prize-status[data-kind=good]{color:#14f195}
body[data-scene=solana] .winner-box p{color:#ece6ff}
body[data-scene=night] .bubl-pill{border-color:#dce9ce25}
@media(max-width:600px){.hud-right{gap:7px}.bubl-pill{height:38px;padding:0 10px 0 6px;gap:6px}.bubl-coin{width:22px;height:22px}.bubl-text strong{font-size:13px}.bubl-text small{font-size:8px}}
@media(max-width:380px){.bubl-text small{display:none}}
.wallet-help{display:flex;flex-direction:column;gap:9px;margin:6px 0 4px}.wallet-help .prize-note{margin:0}.wallet-open[hidden]{display:none}.wallet-open{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wallet-open a{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;min-height:42px}.wallet-help .wide{width:100%;min-height:38px}
.check-text{font-size:15px;line-height:1.5;margin:12px 0 10px;color:var(--ink);font-weight:600}.check-stage{position:relative;width:100%;max-width:420px;aspect-ratio:320/200;margin:0 auto;border-radius:14px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer;background:#fff}.check-stage img{width:100%;height:100%;display:block;pointer-events:none}.check-marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.check-form{display:flex;gap:8px;margin-top:10px}.check-form input{flex:1;min-width:0;font-size:20px;letter-spacing:4px;text-align:center;padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:#fff;color:#111}.check-actions{display:flex;justify-content:space-between;gap:8px}.check-agents{font-size:9px;opacity:.75}
.boost-row{margin:10px 0 4px;display:flex;flex-direction:column;gap:6px}.boost-ask{display:flex;gap:8px;align-items:stretch}.boost-ask button{flex:0 0 auto;width:auto;white-space:nowrap;padding:8px 14px}.boost-ask input{flex:1 1 auto;width:100%;min-width:0;font-size:16px;letter-spacing:3px;text-transform:uppercase;text-align:center;padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:#fff;color:#111}.boost-ask[hidden],.boost-on[hidden]{display:none}.boost-on{font-size:12px;font-weight:700;padding:8px 10px;border-radius:8px;background:linear-gradient(90deg,#9945ff33,#14f19533);text-align:center}.boost-row .prize-note{margin:0}
.winner-banner{position:fixed;z-index:30;left:50%;top:calc(env(safe-area-inset-top) + 64px);transform:translateX(-50%);max-width:calc(100% - 32px);padding:10px 18px;border-radius:999px;background:linear-gradient(90deg,#9945ff,#14f195);color:#0c0a1d;font-weight:800;font-size:15px;text-align:center;box-shadow:0 6px 24px #0006;pointer-events:none;animation:winner-in .6s ease-out}.winner-banner[hidden]{display:none}@keyframes winner-in{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}
#buy-row[hidden],#draw-over[hidden]{display:none}
.draw-winner{margin:12px 0 4px;padding:10px 12px;border-radius:10px;background:linear-gradient(90deg,#9945ff,#14f195);color:#0c0a1d;font-weight:800;text-align:center}.draw-winner[hidden]{display:none}
.board-button{width:44px;height:44px;border-radius:999px;border:1px solid #ffffff2e;background:#0c0a1d99;font-size:20px;display:grid;place-items:center;cursor:pointer;margin-right:8px;flex:0 0 auto}.hud-right{display:flex;align-items:center}.board-list{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:6px}.board-list li{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;background:#ffffff0d;font-size:14px}.board-list li.me{background:linear-gradient(90deg,#9945ff40,#14f19540);font-weight:700}.board-list .rank{font-weight:800;opacity:.8}.board-list .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-list .score{font-variant-numeric:tabular-nums;font-weight:700}.board-me{font-size:12px}.board-list{max-height:min(52vh,440px);overflow-y:auto;overscroll-behavior:contain}.board-more{width:100%;margin:2px 0 6px}.board-tail{font-size:12px;text-align:center;opacity:.8}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The draw, under the BUBL pill: the same small line and track as "next show" under the score, mirrored. The track fills toward the tickets the draw needs. */
.hud-right{flex-direction:column;align-items:flex-end;gap:7px}.hud-right-row{display:flex;align-items:center;gap:10px}.draw-line{display:flex;flex-direction:column;align-items:flex-end;gap:0;padding:0 2px 0 0;color:inherit;font-size:10px;letter-spacing:.4px;font-variant-numeric:tabular-nums;cursor:pointer;opacity:.6;transition:opacity .15s;min-width:96px}.draw-line:hover{opacity:.9}.draw-line[hidden]{display:none}.draw-line .next-track{align-self:stretch}.draw-text{white-space:nowrap}.draw-text strong{font-weight:700}.draw-text strong.short{color:#ff7a86}#draw-fill{display:block;height:100%;width:100%;background:#55764c;transform-origin:right;transform:scaleX(0);transition:transform .6s ease}body[data-scene=night] #draw-fill{background:#cedbae}body[data-scene=solana] #draw-fill{background:linear-gradient(270deg,#9945ff,#14f195)}body[data-scene=solana] .draw-line{opacity:.85}
@media(max-width:600px){.hud-right{gap:6px}.hud-right-row{gap:7px}.draw-line{font-size:9px;min-width:80px}}/* the HUD's two sides line up: the score with the pill, "next show" with the draw line; the timer between */
.score-block{align-self:start;gap:7px}.score-block .score-display{min-height:42px;align-self:flex-start}.hud .timer-display{align-self:start;margin-top:5px}
@media(max-width:600px){.score-block{gap:6px}.score-block .score-display{min-height:38px}.hud .timer-display{margin-top:4px}}
.board-tabs{display:flex;gap:6px;margin-bottom:8px}.board-tab{flex:1;min-height:40px;border-radius:999px;border:1px solid #ffffff2e;background:#ffffff0d;color:inherit;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.board-tab[aria-selected=true]{background:linear-gradient(90deg,#9945ff66,#14f19566);border-color:transparent}
/* the HUD (2026-11-12): the leaderboard on the left, the score with the time's bar in the middle, Enter Raffle on the right */
.hud-left{justify-self:start;display:flex;align-items:center;pointer-events:auto}
.hud-left .board-button{margin-right:0}
.hud-center{display:flex;flex-direction:column;align-items:center;gap:6px}
.hud-center .score-display{align-self:center;min-height:0}
.hud .hud-center .timer-display{margin-top:0;min-width:96px;height:4px;padding:0;opacity:.8}
.hud-center .time-track{height:4px;border-radius:3px}
.hud-kept{display:none}
.raffle-button{height:42px;padding:0 18px;border-radius:21px;border:0;background:linear-gradient(90deg,#9945ff,#14f195);color:#fff;font:inherit;font-size:15px;font-weight:800;letter-spacing:.2px;cursor:pointer;white-space:nowrap;box-shadow:0 4px 16px #9945ff40;transition:transform .12s,filter .15s}
.raffle-button:hover{filter:brightness(1.1)}
.raffle-button:active{transform:scale(.97)}
@media(max-width:600px){.raffle-button{height:38px;padding:0 13px;font-size:13px}.hud .hud-center .timer-display{min-width:76px}}
/* the round's end when the time runs out (game.js showGameOver) */
.lost-dialog{border:0;border-radius:24px;padding:36px 32px 28px;width:min(360px,calc(100vw - 32px));text-align:center;background:#16122b;color:#f4f0ff;box-shadow:0 24px 80px #0008}
.lost-dialog h2{margin:0;font-size:44px;line-height:1.05;font-weight:900;letter-spacing:-1px}
.lost-dialog .lost-label{margin:22px 0 0;font-size:13px;letter-spacing:2px;text-transform:uppercase;opacity:.7}
.lost-dialog .lost-score{margin:4px 0 26px;font-size:64px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;background:linear-gradient(90deg,#9945ff,#14f195);-webkit-background-clip:text;background-clip:text;color:transparent}
.lost-dialog .lost-again{width:100%;min-height:52px;font-size:18px;border-radius:999px}
@media(max-width:600px){.lost-dialog h2{font-size:38px}.lost-dialog .lost-score{font-size:56px}}
.lost-dialog .lost-again:focus{outline:none}.lost-dialog .lost-again:focus-visible{outline:2px solid #14f195;outline-offset:3px}
/* the raffle panel (2026-11-12): one step at a time, little text */
.raffle-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 20px 4px}
.raffle-head h1{margin:0;font-size:26px;line-height:1.1;font-weight:800;letter-spacing:-.5px}
.raffle-sub{margin:6px 0 0;font-size:13px;opacity:.75;font-variant-numeric:tabular-nums}
.raffle .panel-content{padding-top:6px}
.raffle-step{margin:14px 0}
.raffle-main{width:100%;min-height:52px;font-size:16px;border-radius:999px}
.raffle-hint{font-size:12px;line-height:1.5;opacity:.7;margin:10px 0 0;text-align:center}
.raffle-card{padding:14px;border-radius:16px;border:1px solid #14f19544;background:#14f1950d;display:flex;flex-direction:column;gap:10px}
.raffle-card[hidden],.raffle-card [hidden]{display:none}
.raffle-label{margin:0;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;opacity:.75;font-weight:700}
.raffle-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.raffle-tiles>div{padding:14px;border-radius:14px;background:#ffffff0a;border:1px solid #ffffff14;display:flex;flex-direction:column;gap:2px}
.raffle-tiles strong{font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
.raffle-tiles span{font-size:12px;opacity:.7}
.raffle .ticket-row .primary-button{min-height:48px;border-radius:999px;font-size:15px}
.raffle .stepper{border-radius:999px}
.raffle-foot{margin-top:18px;padding-top:12px;border-top:1px solid #ffffff14;font-size:12px}
.raffle-foot[hidden]{display:none}
.raffle-who{display:flex;gap:8px;align-items:center;opacity:.85}
.raffle-who #wallet-name{opacity:.6;font-variant-numeric:tabular-nums}
.raffle-who .link-button{margin-left:auto;font-size:12px}
.raffle-more{margin-top:10px}
.raffle-more summary{cursor:pointer;opacity:.8;font-size:12px}
.raffle-more p{font-size:12px;line-height:1.6;opacity:.8}
.raffle-more .boost-row{margin-top:10px}
.raffle h1,.raffle h2,.raffle-label{font-family:inherit}
.raffle-head h1{font-family:inherit}
.raffle-card .raffle-main{margin:0}
.raffle-foot{margin-top:8px}
.raffle .finish-list{margin:0 0 10px}
.raffle .raffle-secondary{min-height:46px;border-radius:999px;font-size:14px;margin-bottom:10px}
.raffle #draw-over{margin:0}
.raffle-card #free-button{margin:0}
.lost-dialog .lost-guest{margin:18px 0 0;font-size:14px;line-height:1.4;opacity:.85}.lost-dialog .lost-guest .link-button{background:none;border:0;padding:0;font:inherit;font-weight:700;color:#14f195;text-decoration:underline;cursor:pointer}
a.raffle-button,a#signin-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
#game-canvas:focus,#game-canvas:focus-visible{outline:none}
.boost-card{border-color:#ffd16655;background:linear-gradient(135deg,#ffd16614,#9945ff14)}.boost-pitch{margin:0;font-size:13px;line-height:1.45}.boost-card .boost-row{margin:0}.boost-card .boost-ask button{margin:0}.boost-card .boost-on{font-size:13px}
.wallet-help .copy-link{align-self:center;margin:2px 0 0;font-size:12px;font-weight:600;min-height:0}
.wallet-open .primary-button{min-height:48px}
.wallet-help .copy-line{text-align:center;font-size:12px;margin:2px 0 0}
.wallet-help .copy-line .copy-link{display:inline;margin:0;font-size:inherit;vertical-align:baseline}
.wallet-help .copy-line.only-way .copy-words{display:none}
.wallet-help .copy-line.only-way .copy-link{display:flex;width:100%}
.hour-meter{margin-top:10px;display:flex;flex-direction:column;gap:5px;max-width:340px}
.hour-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;opacity:.9}
.hour-row strong{font-size:14px;font-variant-numeric:tabular-nums}
.hour-bar{height:6px;border-radius:999px;background:#ffffff1f;overflow:hidden}
.hour-bar i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#9945ff,#14f195);transition:width .4s}
.hour-meter.full .hour-bar i{background:#ffcb3d}
.hour-note{font-size:11px;opacity:.75;line-height:1.35}
.wallet-open{grid-template-columns:repeat(2,1fr)}
.wallet-open [hidden]{display:none}
/* Backpack's button is off for now (2026-11-15: in its browser the game did not find its wallet); with it: repeat(3,1fr) */
.wallet-open .primary-button{padding:12px 8px;font-size:14px}
.wallet-open-label{margin:4px 0 0;font-size:12px;opacity:.8;text-align:center}

/* 100 pops in a visit with no wallet connected: ask once to connect it (the owner, 2026-11-15) */
.ask-dialog .ask-text{margin:16px 0 24px;font-size:16px;line-height:1.45;opacity:.9}.ask-dialog .lost-again{display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-decoration:none}.ask-dialog .ask-note{margin:12px 0 0;font-size:13px;opacity:.7}.ask-dialog .ask-later{display:block;margin:14px auto 0;background:none;border:0;padding:6px;font:inherit;font-size:14px;color:#f4f0ff;opacity:.7;text-decoration:underline;cursor:pointer}
/* Enter Raffle with something waiting in it: a shine across it and a red badge (the owner, 2026-11-15) */
.raffle-button{position:relative}
.raffle-button.alert{background:linear-gradient(110deg,transparent 40%,#ffffffa6 50%,transparent 60%) 100% 0/300% 100% no-repeat,linear-gradient(90deg,#9945ff,#14f195);animation:raffle-shine 2.6s ease-in-out infinite;box-shadow:0 0 0 2px #ff3b4f66,0 4px 18px #ff3b4f55}
.raffle-button.alert::after{content:"!";position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:#ff3b4f;color:#fff;font-size:12px;font-weight:900;line-height:18px;text-align:center;border:2px solid #0c0a1d;animation:raffle-badge 1.3s ease-in-out infinite}
@keyframes raffle-shine{0%{background-position:100% 0,0 0}55%,100%{background-position:0% 0,0 0}}
@keyframes raffle-badge{0%,100%{transform:scale(1)}50%{transform:scale(1.22)}}
@media(prefers-reduced-motion:reduce){.raffle-button.alert,.raffle-button.alert::after{animation:none}}
/* not enough SOL for blockchain costs: a red warning above the steps (the owner, 2026-11-15) */
.sol-warn{margin:0 0 14px;font-size:13px;line-height:1.45;color:#ffd9dd;background:#ff3b4f1f;border:1px solid #ff3b4f88;border-radius:10px;padding:10px 12px}.sol-warn strong{color:#ff7a86;display:block;margin-bottom:2px}.sol-warn[hidden]{display:none}
.buy-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:10px 0 0;padding:10px 16px;border-radius:999px;background:linear-gradient(90deg,#9945ff,#14f195);color:#0c0a1d;font-size:15px;font-weight:800;text-decoration:none;box-sizing:border-box}.buy-cta:hover{filter:brightness(1.08)}.board-buy{margin:10px 0 4px;padding:12px;border-radius:12px;background:#ffffff0d;border:1px solid #14f19555}.board-buy p{margin:0;font-size:13px;line-height:1.5}.board-buy .buy-cta{margin-top:10px}
