:root{color-scheme:dark;--bg:#101726;--panel:#192234;--text:#f3f5ff;--muted:#929eb6;--mint:#95f5d3;--line:#2c374c;font-family:ui-rounded,'SF Pro Rounded','Avenir Next',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overscroll-behavior:none}body{background:radial-gradient(ellipse at 55% 40%,#1b2a41 0,transparent 60%),var(--bg);color:var(--text)}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--mint);outline-offset:5px}button{border:0}button:active{transform:scale(.95)}.app{max-width:1260px;margin:auto;padding:0 48px}header{height:110px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c}.brand{display:flex;gap:12px;align-items:center;color:var(--text);text-decoration:none;font-size:24px;letter-spacing:-1px;font-weight:800}.brand-light{font-weight:400;color:#bbc6d9}.brand-symbol{position:relative;display:grid;place-items:center;background:var(--mint);width:37px;height:37px;border-radius:13px;color:#123f3e;font-size:32px;font-weight:1000;line-height:1;transform:rotate(-9deg)}.brand-symbol>span{position:absolute;font-size:16px;top:-8px;right:-3px;color:var(--mint)}.header-actions{display:flex;gap:10px;align-items:center}.local-label{color:#a1acc1;font-size:14px;margin-right:20px}.icon-button{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#ffffff06;border:1px solid #ffffff0b;color:#c2cde0;transition:.2s}.icon-button:hover{background:#ffffff10;color:white}.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sound-muted{display:none}#sound[aria-pressed=false] .sound-waves{display:none}#sound[aria-pressed=false] .sound-muted{display:block}main{display:grid;grid-template-columns:minmax(180px,1fr) minmax(320px,430px) minmax(180px,1fr);gap:38px;align-items:start;padding-top:40px}.left-panel{padding-top:30px}.eyebrow{font-size:12px;letter-spacing:1px;font-weight:750;color:#95a5bc}h1{font-size:clamp(26px,2.6vw,36px);line-height:1.18;letter-spacing:-1.6px;margin:17px 0 29px;font-weight:650}h1 em{color:var(--mint);font-style:normal}.score-card{border-radius:19px;padding:22px 23px}.current{background:linear-gradient(140deg,#283750,#202b40);border:1px solid #ffffff10;box-shadow:0 12px 25px #080e1719}.label{font-size:12px;font-weight:750;letter-spacing:1.5px;color:#a8b6cd}.score-card strong{display:block;font-size:52px;line-height:1.2;letter-spacing:-2px;font-variant-numeric:tabular-nums;margin-top:10px;font-weight:700}.score-note{display:block;font-size:12px;color:#8fa0bb;margin-top:9px}.best{padding-top:23px;padding-bottom:16px}.best .label{display:flex;gap:7px;align-items:center}.best svg{width:17px;height:17px;fill:none;stroke:#e7c17b;stroke-width:1.5}.best strong{font-size:30px;color:#d9e1ee;margin-top:8px;letter-spacing:-.8px}.instructions{margin:30px 0 0 6px}.little-line{display:block;width:27px;height:3px;border-radius:3px;background:#6bcbb6}.instructions p{font-size:13px;line-height:1.9;color:#8f9fb8;margin:15px 0}.instructions b{color:#d0dbea;font-weight:550}.key-hint{display:flex;gap:4px;align-items:center;font-size:12px;color:#92a0b8}.key-hint span{padding:0 5px}kbd{font:12px inherit;border:1px solid #ffffff16;background:#ffffff04;padding:2px 5px;border-radius:4px}.play-top{height:32px;display:flex;justify-content:space-between;align-items:flex-start;font-size:12px;letter-spacing:1.1px;font-weight:750;color:#8ea3b7}#status{display:flex;align-items:center;gap:6px}#status i{width:5px;height:5px;background:var(--mint);border-radius:50%}.combo{color:var(--mint);font-size:16px;letter-spacing:0;line-height:16px}.combo span{font-size:12px;color:#8fa4b9;letter-spacing:1px;margin-left:3px}.combo.hot{color:#ffda7e;filter:drop-shadow(0 0 10px #ffc36955)}.board-shell{position:relative;width:100%;aspect-ratio:430/620;background:linear-gradient(160deg,#253551 0,#1a2940 45%,#203b48 100%);border-radius:23px;box-shadow:0 0 0 1px #728bb526,inset 0 0 40px #070e232d,0 20px 60px #04091460;overflow:hidden;touch-action:none}.board-shell:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:23px;border:1px solid #ffffff13;box-shadow:inset 0 -4px 0 #b9f7eb16}#game{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px}.start-hint{position:absolute;left:0;right:0;top:43%;text-align:center;pointer-events:none;transition:opacity .5s,transform .5s}.start-hint.dismissed{opacity:0;transform:translateY(12px)}.start-hint strong{display:block;font-size:25px;font-weight:550;line-height:1.25;color:#d0dcec;letter-spacing:-.8px}.hint-dot{display:block;width:32px;height:3px;background:#829bae45;border-radius:5px;margin:0 auto 22px}.start-hint>span:last-child,.start-hint>span:nth-last-child(2){margin-top:16px;font-size:12px;color:#90a4bb}.desktop-tip{display:block}.mobile-tip{display:none}.danger-notice{position:absolute;top:20%;left:0;right:0;text-align:center;color:#ffb8c5;font-size:13px;font-weight:650;pointer-events:none;opacity:0;transition:opacity .2s}.board-shell.danger .danger-notice{opacity:1}.board-shell.danger{box-shadow:0 0 0 1px #f88f9f88,0 0 40px #e76a841c}.board-footer{display:flex;justify-content:space-between;align-items:center;color:#8497ae;font-size:12px;padding:13px 4px;letter-spacing:.1px}.tiny-spark{font-size:20px;color:#89b7b7}.right-panel{padding-top:32px}.next-card{display:flex;align-items:center;justify-content:space-between;background:#1c293f;border:1px solid #ffffff0b;border-radius:19px;padding:16px 18px;height:109px}.next-card p{font-size:17px;margin:8px 0 0;font-weight:550;color:#dce5f6}#next{height:76px;width:76px}.evolution{margin-top:27px}.evolution-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.evolution-heading .label{font-size:12px;letter-spacing:1.1px}#level-count{font-size:12px;color:#8fa2bc}#creature-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.creature-cell{position:relative;height:69px;border-radius:14px;border:1px solid #ffffff08;background:#ffffff03;display:flex;align-items:center;justify-content:center;transition:background .3s,border-color .3s}.creature-cell canvas{width:52px;height:52px;opacity:.6;transition:opacity .3s}.creature-cell.reached{background:#89f4d308;border-color:#7ceecb25}.creature-cell.reached canvas{opacity:1}.creature-cell span{position:absolute;bottom:6px;right:8px;font-size:12px;color:#8096b1}.creature-cell.reached span{color:var(--mint)}.evolution-foot{display:flex;justify-content:space-between;font-size:12px;color:#7187a2;margin:11px 0;gap:4px}.session-note{display:flex;align-items:center;gap:13px;margin:26px 0 0 7px}.orbit-icon{color:#9bb1c6;font-size:37px;font-weight:200}.session-note p{font-size:12px;color:#8da1b8;line-height:1.7}.page-footer{display:flex;justify-content:space-between;padding:24px 0 25px;color:#52667f;letter-spacing:1.5px;font-size:12px}.paused{position:absolute;inset:0;background:#102033da;backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:26px;gap:25px;z-index:5}.paused[hidden]{display:none}.paused button{background:var(--mint);padding:13px 24px;border-radius:13px;color:#153c37;font-weight:650}dialog{background:linear-gradient(145deg,#23344b,#152333);border:1px solid #6b849c55;color:var(--text);border-radius:27px;padding:29px 30px 22px;width:min(420px,calc(100% - 30px));max-height:94dvh;box-shadow:0 30px 100px #0008;text-align:center}dialog::backdrop{background:#060e1ac9;backdrop-filter:blur(9px)}.result-top{font-size:12px;letter-spacing:2px;color:var(--mint);font-weight:700}#result-creature{width:110px;height:110px;margin:10px 0 -7px}h2{font-size:27px;letter-spacing:-1px;margin:5px 0 8px}.result-subtitle{font-size:13px;color:#a4b5c9;margin:0}.final-score{margin:22px 0}.final-score>span{display:block;font-size:12px;letter-spacing:1.5px;color:#a9bed2}.final-score strong{font-size:58px;line-height:1.2;display:block;margin:5px 0;letter-spacing:-2px}#record-note{color:var(--mint);font-size:12px;letter-spacing:0}.result-stats{display:grid;grid-template-columns:1fr 1fr 1.3fr;padding:17px 0;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12;margin-bottom:23px;gap:5px}.result-stats span{font-size:12px;letter-spacing:.8px;color:#8fa7be;display:block}.result-stats b{font-size:16px;display:block;margin-top:8px;font-weight:600}.primary-button{width:100%;padding:17px 20px;border-radius:13px;background:var(--mint);color:#153c37;font-size:16px;font-weight:750;display:flex;align-items:center;justify-content:space-between;box-shadow:0 4px 0 #47a993}.primary-button:hover{background:#b3ffe2}.primary-button span{font-size:22px;line-height:16px}.result-foot{display:block;color:#829cb2;font-size:12px;margin-top:20px}.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}
@media(min-width:850px) and (max-height:860px){header{height:82px}main{padding-top:24px;grid-template-columns:minmax(175px,1fr) minmax(280px,calc((100dvh - 175px)*.69355)) minmax(170px,1fr);gap:34px;justify-content:center}.page-footer{padding-top:12px}.left-panel{padding-top:17px}h1{font-size:30px}.score-card{padding:16px 20px}.instructions{margin-top:20px}.creature-cell{height:58px}.creature-cell canvas{width:46px;height:46px}.session-note{margin-top:14px}}
@media(max-width:849px){.app{max-width:520px;padding:0 18px;padding-top:env(safe-area-inset-top)}header{height:69px;border-bottom:0}.brand{font-size:22px;gap:9px}.brand-symbol{width:31px;height:31px;font-size:27px;border-radius:11px}.local-label{display:none}.icon-button{width:36px;height:36px;border-radius:11px}.header-actions{gap:7px}main{display:grid;grid-template-columns:1fr;gap:0;padding-top:0;position:relative}.left-panel{padding:0}.eyebrow,h1,.instructions,.score-note{display:none}.stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-right:99px;height:70px}.score-card{border:1px solid #ffffff0a;background:#1e2b40;padding:10px 12px;border-radius:13px}.score-card .label{font-size:12px;letter-spacing:1px;white-space:nowrap}.score-card strong,.best strong{font-size:27px;letter-spacing:-1px;margin:4px 0 0;line-height:1}.best .label{gap:4px}.best svg{width:12px;height:12px}.right-panel{padding:0}.next-card{position:absolute;top:0;right:0;width:90px;height:70px;display:flex;padding:6px 5px;flex-direction:column;gap:0;border-radius:13px}.next-card .label{font-size:12px;letter-spacing:1px}.next-card p{display:none}#next{width:47px;height:47px}.play-column{padding-top:13px;width:min(100%,calc((100dvh - 261px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*.69355));min-width:180px;justify-self:center}.play-top{height:25px;font-size:12px;letter-spacing:.7px}.combo{font-size:14px}.combo span{font-size:12px}.board-shell{border-radius:19px}.board-shell:after{border-radius:19px}.board-footer{padding:6px 2px;font-size:12px}.tiny-spark{font-size:16px}.evolution{margin-top:7px}.evolution-heading{padding:0 2px}.evolution-heading .label{font-size:12px;letter-spacing:1px}#level-count{font-size:12px}#creature-grid{grid-template-columns:repeat(10,1fr);gap:3px;margin-top:7px}.creature-cell{height:34px;border-radius:9px}.creature-cell canvas{width:31px;height:31px}.creature-cell span{display:none}.evolution-foot,.session-note,.page-footer{display:none}.start-hint strong{font-size:21px}.start-hint>span:last-child,.start-hint>span:nth-last-child(2){font-size:12px;margin-top:12px}.desktop-tip{display:none}.mobile-tip{display:block}.danger-notice{font-size:12px}.app{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
@media(max-width:360px){.app{padding-left:10px;padding-right:10px}.stats{padding-right:89px;gap:6px}.next-card{width:82px}.score-card{padding:10px}.brand{font-size:20px}.creature-cell canvas{width:27px;height:27px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
@media(orientation:landscape) and (max-height:520px){.app{max-width:900px;padding:0 20px}header{height:54px}.local-label{display:none}main{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,calc((100dvh - 104px)*.69355)) minmax(140px,1fr);gap:22px;padding:0}.left-panel{padding-top:24px}.eyebrow,h1,.instructions{display:none}.stats{display:block;padding:0;height:auto}.score-card{padding:14px;margin-bottom:10px}.score-card .label{font-size:12px}.score-card strong,.best strong{font-size:34px}.score-note{display:none}.play-column{padding:0;width:100%;min-width:0}.play-top{height:24px}.right-panel{padding-top:24px}.next-card{position:static;width:100%;height:65px;flex-direction:row;padding:8px 14px}.next-card .label{font-size:12px}.next-card p{display:block;font-size:13px;margin-top:3px}#next{width:50px;height:50px}.evolution{margin-top:14px}#creature-grid{grid-template-columns:repeat(5,1fr);gap:5px;margin-top:9px}.creature-cell{height:38px}.creature-cell canvas{width:33px;height:33px}.creature-cell span{display:none}.evolution-heading .label{font-size:12px}.evolution-foot,.session-note,.page-footer{display:none}.start-hint strong{font-size:17px}.start-hint>span:last-child,.start-hint>span:nth-last-child(2){font-size:12px}.hint-dot{margin-bottom:10px}.board-footer{font-size:12px;padding-top:5px}.result-top,#result-creature,.result-subtitle,.result-foot{display:none}dialog{padding:20px 26px}h2{font-size:23px}.final-score{margin:10px 0}.final-score strong{font-size:40px}.result-stats{padding:10px 0;margin-bottom:14px}.primary-button{padding:12px 18px}}
/* Shared friend leaderboard */
.ranking-trigger{width:auto;min-width:42px;padding:0 12px;display:flex;gap:7px;font-size:12px}.ranking-trigger svg{color:#e7c17b}.ranking-heading{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:15px}.ranking-heading h2{margin:8px 0 0}.ranking-heading .result-top{font-size:12px;letter-spacing:1px}.ranking-subtitle{text-align:left;color:#a4b5c9;font-size:14px;margin:12px 0 6px}.ranking-actions{display:flex;align-items:center;justify-content:space-between}.text-button{color:var(--mint);background:transparent;font-size:14px;padding:12px 0;text-align:left}.text-button:hover{color:white}.text-button:disabled{opacity:.5;cursor:wait}.score-form{text-align:left;margin:0 0 3px}.score-form label{display:block;font-size:14px;color:#c2d0e2;margin-bottom:8px}.score-entry{display:flex;gap:8px}.score-entry input{width:100%;min-width:0;font:inherit;font-size:16px;background:#0e1b2a;border:1px solid #56728e;border-radius:10px;color:#fff;padding:11px 12px;outline-offset:2px}.score-entry input:focus{outline:2px solid var(--mint)}.score-entry button{flex-shrink:0;background:#314d52;color:#beffe6;border:1px solid #76c5ad66;border-radius:10px;padding:10px 13px;font-size:14px;font-weight:650}.score-entry button:disabled{opacity:.65;cursor:default}#submit-status{font-size:12px;line-height:1.5;color:#9bb6c7;margin:8px 0;min-height:18px}.error,#submit-status.error{color:#ffb0bc!important}#result-leaderboard{display:block;width:100%;text-align:center;margin:0 0 11px}#leaderboard-dialog{width:min(520px,calc(100% - 28px));padding:26px;max-height:90dvh;overflow:auto}#ranking-status{font-size:14px;line-height:1.5;text-align:left;margin:5px 0}#ranking-status:empty{display:none}#ranking-content{max-height:48dvh;overflow:auto;margin-top:12px}.ranking-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px;font-variant-numeric:tabular-nums}.ranking-table th{position:sticky;top:0;background:#203247;z-index:1;color:#9fb6c9;font-size:12px;font-weight:500;padding:11px 9px}.ranking-table td{padding:12px 9px;border-bottom:1px solid #ffffff0b}.ranking-table th:last-child,.ranking-table td:last-child{text-align:right}.ranking-table td:first-child{width:49px;color:#a7bbcd}.ranking-table td:last-child{font-weight:750;white-space:nowrap}.ranking-table tbody tr:nth-child(-n+3) td:first-child{color:#f2d088}.ranking-table strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.ranking-table small{display:block;color:#809db5;font-size:12px;margin-top:3px}.your-entry{background:#99f6d20a}.you-badge{display:inline-block;font-size:10px;margin-left:7px;color:var(--mint);border:1px solid #95f5d335;border-radius:4px;padding:1px 4px}.ranking-empty{padding:33px 12px;text-align:center;border:1px dashed #627d9744;border-radius:14px}.ranking-empty strong{font-size:17px;font-weight:550}.ranking-empty p{font-size:14px;line-height:1.6;color:#94acc2;margin:13px 0 0}#your-rank{font-size:14px;color:var(--mint);line-height:1.5;margin:17px 0 10px}.ranking-foot{font-size:12px;color:#90a9bf;line-height:1.65;margin-bottom:0}.score-form[hidden]{display:none}
@media(max-width:849px){.ranking-trigger{height:36px;min-width:36px;padding:0 9px}.header-actions{gap:5px}#game-over{padding:20px 23px}#game-over #result-creature{width:72px;height:72px}.final-score{margin:13px 0}.final-score strong{font-size:47px}.result-stats{margin-bottom:15px;padding:13px 0}.result-foot{display:none}#leaderboard-dialog{padding:21px}.ranking-heading .result-top{font-size:10px}.ranking-heading h2{font-size:25px}}
@media(max-width:460px){.ranking-trigger span{display:none}}
@media(orientation:landscape) and (max-height:520px){#leaderboard-dialog .result-top{display:none}#ranking-content{max-height:35dvh}.ranking-heading h2{font-size:21px}.ranking-subtitle,.ranking-foot{display:none}#leaderboard-dialog{padding:17px 23px}.score-form{margin-top:7px}#game-over{max-height:94dvh}}
/* Give the mobile bowl the available width and height, with compact HUD chrome.
   Keep its original aspect ratio so creatures stay circular and physics fair. */
@media(max-width:849px) and (min-height:521px){
 .app{max-width:520px;padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right));padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 header{height:48px;padding:0 4px}
 .brand{font-size:20px;gap:8px}
 .brand-symbol{width:28px;height:28px;font-size:25px;border-radius:9px}
 .header-actions{gap:4px}
 .header-actions .icon-button{height:40px;min-width:40px;width:40px}
 .header-actions .ranking-trigger{width:auto}
 .stats{height:50px;gap:7px;padding-right:99px}
 .score-card{padding:5px 10px;border-radius:11px;min-width:0}
 .score-card .label{font-size:12px;line-height:12px;letter-spacing:.7px}
 .score-card strong,.best strong{font-size:22px;line-height:24px;margin:2px 0 0;letter-spacing:-.6px}
 .next-card{height:50px;width:92px;padding:4px 6px;flex-direction:row;gap:2px;border-radius:11px}
 .next-card .label{display:block;width:36px;font-size:12px;line-height:14px;letter-spacing:.5px}
 #next{width:40px;height:40px;flex-shrink:0}
 .play-column{padding-top:6px;width:min(100%,calc((100dvh - 220px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .6935483871));min-width:0}
 .play-top{height:24px;padding:0 4px;letter-spacing:.4px}
 .board-shell,.board-shell:after{border-radius:15px}
 .board-footer{display:none}
 .evolution{margin-top:6px}
 .evolution-heading{display:none}
 #creature-grid{margin-top:0;gap:3px}
 .creature-cell{height:28px;border-radius:8px}
 .creature-cell canvas{width:26px;height:26px}
}
@media(orientation:landscape) and (max-height:520px){
 header{height:42px}
 main{grid-template-columns:minmax(120px,1fr) minmax(150px,calc((100dvh - 120px - env(safe-area-inset-bottom)) * .6935483871)) minmax(140px,1fr)}
 .play-top{height:20px}
 .board-footer{display:none}
}
/* Real rival goals share the existing HUD space; collection stays compact. */
.play-top{gap:8px}
#status{min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0;color:#bfdccc;font-weight:550;font-size:12px;flex:1}
.combo{flex-shrink:0}
.creature-cell:not(.reached) canvas{filter:brightness(0) invert(.22);opacity:.85}
.creature-cell:not(.reached):after{content:'?';position:absolute;inset:0;display:grid;place-items:center;color:#a1b0c6;font-size:18px;font-weight:650;pointer-events:none}
.creature-cell:not(.reached) span{visibility:hidden}
.event-toast{position:absolute;left:50%;top:23%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);display:flex;align-items:center;gap:9px;padding:10px 15px 10px 10px;background:#142b36ed;border:1px solid #a6f9d961;border-radius:15px;box-shadow:0 10px 35px #07182177;pointer-events:none;z-index:3;animation:toast-in .2s ease-out}
.event-toast[hidden]{display:none}
#toast-creature{width:48px;height:48px;flex-shrink:0}
#toast-creature[hidden]{display:none}
.event-toast strong{display:block;color:#c9ffe9;font-size:15px;font-weight:650;overflow-wrap:anywhere}
.event-toast span{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:#aac2cb}
.personal-goal{background:#97f5d307;border:1px solid #9bdfca24;border-radius:12px;padding:9px 12px;margin:-7px 0 17px;text-align:left}
.personal-goal p{font-size:12px;line-height:1.5;margin:4px 0;color:#a9c1d1}
.personal-goal p:empty{display:none}
#result-goal{font-size:14px;color:#c9ffe9}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:849px){.event-toast{padding:8px 11px;gap:7px}.event-toast strong{font-size:14px}#toast-creature{width:38px;height:38px}.creature-cell:not(.reached):after{font-size:14px}.personal-goal{margin-bottom:12px;padding:7px 10px}#game-over #result-creature{width:58px;height:58px}.final-score{margin:10px 0}.final-score strong{font-size:43px}}
/* Pocket gadgets live in a paused overlay; the mobile bowl keeps its full size. */
.shop-trigger{display:flex;align-items:center;justify-content:center;gap:6px;min-width:65px;height:42px;padding:0 11px;border-radius:13px;color:#ffe09b;background:#f4cd7c12;border:1px solid #f4cd7c25;font-size:13px;font-variant-numeric:tabular-nums}.shop-trigger>span{font-size:20px}.shop-trigger:hover{background:#f4cd7c24}#shop-dialog{width:min(460px,calc(100vw - 24px));padding:26px;max-height:calc(100dvh - 24px);overflow:auto;text-align:left}#shop-dialog h2{margin:6px 0;font-size:27px}.shop-wallet{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0 12px;padding:17px 19px;border:1px solid #f4cd7c25;border-radius:17px;background:linear-gradient(120deg,#69533835,#f4cd7c05)}.shop-wallet strong{display:block;font-size:32px;color:#ffe09b;margin-top:5px}.shop-wallet>span{font-size:12px;line-height:1.6;color:#bdc6d5}.shop-intro{font-size:12px;line-height:1.65;color:#a3b2c9}.gadget-list{display:grid;gap:10px;margin-top:18px}.gadget-card{display:flex;gap:14px;padding:16px 14px;background:#ffffff04;border:1px solid #ffffff0c;border-radius:17px}.gadget-art{flex:0 0 52px;height:58px;border-radius:17px;display:grid;place-items:center;font-size:39px;font-weight:700;box-shadow:inset 0 1px 0 #ffffff25}.quake-art{color:#ffda85;background:linear-gradient(145deg,#705032,#403041);transform:rotate(-6deg)}.swap-art{color:#abffe5;background:linear-gradient(145deg,#345e63,#263b52);transform:rotate(5deg)}.eraser-art{color:#ecd5ff;background:linear-gradient(145deg,#694a82,#3b315d);transform:rotate(-5deg)}.gadget-copy{flex:1;min-width:0}.gadget-copy h3{font-size:15px;margin:0;display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center;justify-content:space-between}.gadget-copy h3 small{font-size:10px;color:#b7c4da;font-weight:500;white-space:nowrap}.gadget-copy p{font-size:12px;line-height:1.5;color:#a3b2c9;margin:7px 0 12px}.gadget-actions{display:flex;gap:8px}.gadget-actions button{border-radius:9px;padding:8px 10px;background:#ffe09b;color:#3c3020;font-size:12px;font-weight:750;min-height:36px}.gadget-actions .use-gadget{background:#95f5d317;color:#95f5d3;border:1px solid #95f5d335;flex:1}.gadget-actions button:disabled{opacity:.35;cursor:default;transform:none}.shop-foot{font-size:11px;color:#94a2b9;line-height:1.7;margin:8px 0 0}#shop-status{min-height:18px;font-size:12px;line-height:1.5;color:#aaf1d7;margin:16px 0 0}#shop-status.error{color:#ffb8c5}.result-coins{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#ffe09b}.result-coins .text-button{font-size:12px}.shop-foot #shop-allowance{color:#d3ddeb;font-weight:650}
@media(max-width:849px){.local-label{display:none}.shop-trigger{height:34px;min-width:54px;padding:0 8px;font-size:12px}.header-actions{gap:5px}header .brand{font-size:18px;gap:7px}header .brand-symbol{width:29px;height:29px;font-size:25px}header .icon-button{width:34px;height:34px}.ranking-trigger span{display:none}}
@media(max-width:360px){header .brand{font-size:16px;gap:5px}.header-actions{gap:3px}.shop-trigger{min-width:49px;padding:0 6px}#shop-dialog{padding:18px}.gadget-card{padding:13px 10px;gap:10px}.gadget-art{flex-basis:44px;height:50px}}

/* Direct-use controls sit outside the drop surface, with 44px touch targets. */
.gadget-dock{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}
.quick-gadget{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:6px 8px;border-radius:13px;border:1px solid #ffffff16;background:#1c2b3e;color:#c6d4e9;font-size:14px;font-weight:650;touch-action:manipulation}
.quick-gadget .quick-symbol{font-size:24px;line-height:1}.quick-gadget b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:7px;background:#ffffff0e;font-size:12px;font-variant-numeric:tabular-nums}.quick-quake.has-stock{color:#ffe09b;border-color:#ffe09b40;background:linear-gradient(130deg,#4d3d30,#253143)}.quick-swap.has-stock{color:#a7f8df;border-color:#a7f8df40;background:linear-gradient(130deg,#254744,#253143)}.quick-eraser.has-stock{color:#e5c6ff;border-color:#e5c6ff40;background:linear-gradient(130deg,#453753,#253143)}.quick-gadget:disabled{opacity:.4;cursor:default;transform:none}.quick-gadget:not(:disabled):hover{filter:brightness(1.2)}.quick-status{position:absolute;bottom:calc(100% + 8px);left:8px;right:8px;padding:10px 12px;border-radius:12px;border:1px solid #95f5d33d;background:#152938f5;color:#c7f7e7;font-size:13px;line-height:1.4;text-align:center;z-index:5;pointer-events:none}.quick-status.error{color:#ffd1d9;border-color:#ffb8c550}.quick-status[hidden]{display:none}
@media(max-width:360px),(orientation:landscape) and (max-height:520px){.quick-gadget{gap:4px;padding:6px 4px;font-size:12px}.quick-gadget .quick-symbol{font-size:19px}.quick-gadget b{min-width:17px;font-size:11px}}

@media(orientation:landscape) and (max-height:520px),(orientation:portrait) and (max-height:520px){.quick-gadget>span:not(.quick-symbol){display:none}}

#rescue-offer,#reward-ad{width:min(410px,calc(100vw - 28px));padding:26px;text-align:center}
.reward-badge{font-size:12px;letter-spacing:1.4px;font-weight:750;color:#9debd6}.reward-spark{font-size:58px;line-height:1.2;color:#b4ffe3;margin:16px 0;text-shadow:0 0 38px #95f5d350}
#rescue-offer h2,#reward-ad h2{margin:12px 0;font-size:28px}#rescue-description,#reward-ad>p:not(.reward-note){font-size:15px;color:#c4d3e5;line-height:1.6;margin:12px 0}#rescue-score{display:block;font-size:17px;color:#ffe09b;margin:18px 0 22px}#rescue-offer .primary-button{width:100%;font-size:15px}#rescue-offer .text-button,#cancel-ad{min-height:44px;padding:10px 15px;margin-top:7px;color:#bacade;font-size:14px}.reward-note{font-size:12px;line-height:1.5;color:#91a9be;margin:12px 0 0}.ad-meter{height:7px;border-radius:10px;overflow:hidden;background:#ffffff12;margin:26px 0 14px}#ad-progress{width:0;height:100%;background:linear-gradient(90deg,#81e6ca,#d1ffdf);border-radius:10px}#ad-countdown{display:block;font-size:18px;color:#ceffea;font-variant-numeric:tabular-nums}
@media(max-height:520px){#rescue-offer,#reward-ad{padding:18px}.reward-spark{display:none}#rescue-offer h2,#reward-ad h2{font-size:23px;margin:8px 0}#rescue-score{margin:12px 0}.ad-meter{margin-top:14px}}

/* Make the purchase entry and its earned currency explicit. */
header .shop-trigger{height:46px;gap:12px;padding:0 12px;border-color:#ffe09b55;background:linear-gradient(125deg,#67512e80,#493b2850);color:#ffe7b0;box-shadow:inset 0 1px 0 #ffdc9620}header .shop-trigger .shop-caption{display:flex;flex-direction:column;align-items:flex-start;gap:2px}header .shop-caption strong{font-size:14px;line-height:1.1}header .shop-caption small{font-size:12px;line-height:1.1;color:#d8c29b}header .shop-balance{display:flex;gap:5px;align-items:center;font-size:14px;padding-left:10px;border-left:1px solid #ffe09b35}header .shop-balance>span{font-size:20px}header .shop-balance b{white-space:nowrap}.shop-entry{margin-top:24px;padding:19px 17px;border:1px solid #e9c98532;border-radius:19px;background:linear-gradient(135deg,#40362f80,#25324955)}.shop-entry .label{font-size:11px;color:#d7bb87;letter-spacing:1px}.shop-entry h2{font-size:23px;line-height:1.2;letter-spacing:-.6px;margin:12px 0}.shop-entry p{font-size:14px;line-height:1.6;color:#b6c4d7;margin:0 0 16px}.entry-wallet{padding-top:12px;border-top:1px solid #ffe09b18}.entry-wallet>span{font-size:12px;color:#b9c5d5}.entry-wallet strong{display:block;color:#ffe09b;font-size:27px;line-height:1.3;margin:5px 0 14px}.entry-wallet small{font-size:13px;font-weight:500}.shop-entry button{width:100%;min-height:44px;border-radius:11px;background:#ffe09b;color:#352c21;font-size:14px;font-weight:750}.shop-entry>small{display:block;text-align:center;font-size:12px;color:#c3b391;margin-top:9px}.shop-entry button:disabled{opacity:.45;cursor:default}.start-hint .shop-start-tip{display:block;margin-top:22px;font-size:12px;line-height:1.6;color:#b4c8d9}.shop-start-tip b{color:#ffe09b}.shop-earning{margin:16px 0 12px;padding:14px;border:1px solid #95f5d329;background:#95f5d30a;border-radius:13px}.shop-earning>strong{font-size:15px;color:#c9f9e7}.shop-earning p{font-size:13px;line-height:1.6;color:#ffe4ab;margin:8px 0}.shop-earning>span{display:block;font-size:13px;line-height:1.6;color:#b3c4d6}
@media(max-width:849px){header .shop-trigger{height:36px;padding:0 8px;gap:7px}header .shop-caption small{display:none}header .shop-balance{font-size:12px;padding-left:7px;gap:4px}header .shop-balance>span{font-size:16px}.shop-entry{display:none}.start-hint .shop-start-tip{margin-top:16px;font-size:12px}}
@media(max-width:400px){header .brand-light{display:none}header .brand{font-size:17px}}
@media(orientation:landscape) and (max-height:520px){.shop-entry{display:none}.start-hint .shop-start-tip{display:none}}
/* Launch chrome sits below the game; the bowl retains its mobile viewport budget. */
.site-info,.legal-footer{width:min(1120px,calc(100% - 40px));margin:24px auto;color:#adc0d0;font-size:13px;line-height:1.7}
.site-info{display:grid;grid-template-columns:1fr 1fr;gap:18px}.site-info details{background:#ffffff04;border:1px solid #ffffff0d;border-radius:16px;padding:18px 20px}.site-info summary{cursor:pointer;font-weight:700;color:#e6f3f7;list-style-position:inside}.site-info summary span{display:block;color:#9daebd;font-weight:400;margin-top:3px}.site-info p{max-width:65ch}.legal-footer{display:flex;justify-content:space-between;align-items:center;padding:10px 0 28px;gap:16px}.legal-footer nav{display:flex;flex-wrap:wrap;gap:20px}.legal-footer a,.legal-footer button,#privacy-dialog a{color:#b9d9da}.legal-footer button{padding:0;border:0;background:none;font:inherit;cursor:pointer;text-decoration:underline}.secondary-button{background:#293a4a!important;color:#e3f4f5!important;border:1px solid #8ba8b7!important;box-shadow:none!important}#rescue-offer .primary-button{margin:8px 0;min-height:50px}#privacy-dialog{max-width:460px}#privacy-dialog h2{font-size:32px;margin:12px 0}#privacy-dialog p{font-size:14px;line-height:1.65;color:#bfd0db}#privacy-dialog input{width:20px;height:20px;accent-color:#7aefce}#privacy-options label{display:flex;align-items:center;gap:12px;text-align:left;margin:14px 0}.privacy-actions{display:grid;gap:10px;margin-top:22px}.privacy-actions .primary-button{margin:0}button[hidden],[hidden]{display:none!important}
.emergency-banner{position:fixed;z-index:12;top:80px;left:50%;transform:translateX(-50%);width:min(530px,calc(100% - 24px));background:#292840;border:1px solid #b9a2ee;border-radius:14px;padding:10px 12px;box-shadow:0 8px 30px #0006;display:flex;gap:10px;align-items:center}.emergency-banner small{display:block;color:#d5c7eb;font-size:11px}.emergency-banner b{font-size:11px;letter-spacing:1px}.emergency-banner button{min-height:44px;background:#d8c7fa;color:#292037;border:0;border-radius:10px;padding:8px 13px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.emergency-banner button:last-child{background:transparent;color:#eee;padding:8px}.emergency-banner>div{flex:1}
.legal-page{max-width:760px;margin:40px auto;padding:0 24px;line-height:1.8;color:#bfceda}.legal-page h1,.legal-page h2{color:#f0f9fa}.legal-page h1{font-size:38px;line-height:1.2}.legal-page h2{font-size:21px;margin-top:30px}.legal-page a{color:#7aefce}.draft-notice{padding:16px 20px;border:1px solid #d8bc79;border-radius:14px;color:#ead4a3;background:#ffe5a509}
@media(max-width:849px){.site-info{grid-template-columns:1fr;margin-top:12px;gap:10px}.legal-footer{display:block;font-size:12px;margin-top:16px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.legal-footer nav{margin-top:10px;gap:18px}.legal-footer button,.legal-footer a{min-height:44px;display:inline-flex;align-items:center}.emergency-banner{top:calc(62px + env(safe-area-inset-top));padding:6px 10px;min-height:58px}.legal-page{margin-top:24px}}
.ad-loading{position:fixed;inset:0;z-index:100;background:#101726ed;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px}.ad-loading button{padding:14px 24px;border-radius:12px;background:#d8e7e8;color:#16252e;min-height:48px}
