@font-face{font-family:'Lilita One';src:url('../assets/fonts/LilitaOne-Regular.woff2') format('woff2'),url('../assets/fonts/LilitaOne-Regular.ttf') format('truetype');font-display:block}
:root{--ink:#2b2d42;--ink2:#6a6e8c;--cream:#fff8ef;--coral:#ff6b5b;--coral-d:#d4493b;--teal:#22b8a7;--teal-d:#168677;--violet:#7c6cf0;--violet-d:#5646c4;--sun:#ffc23c;--sun-d:#d98c0c;--glass:rgba(255,255,255,.74);--ease-back:cubic-bezier(.34,1.56,.64,1);--ease-out:cubic-bezier(.2,.9,.25,1)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
html,body{margin:0;height:100%;overflow:hidden;background:#7cc8f2;font-family:'Lilita One','Arial Rounded MT Bold',system-ui,sans-serif;color:var(--ink);letter-spacing:.4px}
#bg{position:fixed;inset:0;width:100%;height:100%;z-index:0}
#app{position:relative;z-index:1;height:100%;max-width:560px;margin:0 auto;overflow:hidden;overflow:clip}
.hidden{display:none!important}
.ic{display:inline-flex;width:1.15em;height:1.15em;flex:none;vertical-align:-.18em}
.ic svg{width:100%;height:100%;display:block;overflow:visible}
/* ---------- screens + transitions ---------- */
.screen{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;visibility:hidden;pointer-events:none;transform:scale(1.04);transition:opacity .35s var(--ease-out),transform .5s var(--ease-out),visibility 0s linear .35s}
.screen.active{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
/* ---------- glass + pills ---------- */
.glass{background:var(--glass);backdrop-filter:blur(14px) saturate(1.5);-webkit-backdrop-filter:blur(14px) saturate(1.5);border:2px solid rgba(255,255,255,.9);box-shadow:0 10px 28px -12px rgba(40,30,90,.45),inset 0 -3px 0 rgba(40,30,90,.06)}
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:2px solid rgba(255,255,255,.95);border-radius:99px;padding:5px 14px 5px 6px;font-size:19px;box-shadow:0 8px 20px -10px rgba(40,30,90,.5);white-space:nowrap;transition:transform .25s var(--ease-back)}
.pill .ic{width:28px;height:28px}
.pill small{font-size:13px;color:var(--ink2)}
.pill.bump{transform:scale(1.18)}
/* ---------- buttons ---------- */
.btn{--c:var(--coral);--d:var(--coral-d);position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;color:#fff;border:0;cursor:pointer;border-radius:22px;padding:14px 22px;font-size:20px;letter-spacing:.6px;
 background:linear-gradient(180deg,color-mix(in srgb,var(--c) 62%,#fff) 0%,var(--c) 52%,color-mix(in srgb,var(--c) 88%,#000) 100%);
 box-shadow:inset 0 2px 0 rgba(255,255,255,.55),inset 0 -3px 0 rgba(0,0,0,.08),0 6px 0 var(--d),0 14px 22px -8px color-mix(in srgb,var(--d) 75%,transparent);
 text-shadow:0 2px 0 color-mix(in srgb,var(--d) 80%,transparent);transition:transform .14s var(--ease-back),box-shadow .14s,filter .2s}
.btn::after{content:'';position:absolute;left:9%;right:9%;top:4px;height:36%;border-radius:16px 16px 40% 40%;background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,0));pointer-events:none}
.btn:hover:not(:disabled){filter:brightness(1.06) saturate(1.05);transform:translateY(-1px)}
.btn:active:not(:disabled){transform:translateY(5px) scale(.98);box-shadow:inset 0 2px 0 rgba(255,255,255,.4),inset 0 -2px 0 rgba(0,0,0,.08),0 1px 0 var(--d),0 4px 8px -4px color-mix(in srgb,var(--d) 75%,transparent)}
.btn:disabled{filter:saturate(.25) brightness(1.08);opacity:.75;cursor:default}
.btn .ic{width:1.15em;height:1.15em}
.btn.big{font-size:28px;padding:16px 34px;border-radius:26px}
.btn.teal{--c:var(--teal);--d:var(--teal-d)}
.btn.violet{--c:var(--violet);--d:var(--violet-d)}
.btn.sun{--c:var(--sun);--d:var(--sun-d)}
.btn.grey{--c:#9aa3ba;--d:#6f7892}
.btn.pink{--c:#ff5d8f;--d:#cf3a6b}
.btn.round{width:50px;height:50px;padding:0;border-radius:50%;font-size:22px}
.btn.glass-btn{color:var(--ink);text-shadow:none;background:linear-gradient(#fff,#eef1f8);box-shadow:inset 0 -3px 0 rgba(40,30,90,.08),0 5px 0 #c8cde0,0 12px 18px -8px rgba(40,30,90,.4)}
.btn.glass-btn:active{box-shadow:0 1px 0 #c8cde0}
.btn.round-lg{width:66px;height:66px;padding:0;border-radius:22px;font-size:28px;flex-direction:column;gap:0}
.btn.round-lg .lbl{display:none}
.price{position:absolute;top:-10px;right:-10px;display:flex;align-items:center;gap:2px;background:#fff;color:var(--ink);text-shadow:none;font-weight:normal;font-size:13px;border-radius:99px;padding:2px 7px 2px 3px;box-shadow:0 3px 8px rgba(40,30,90,.3)}
.price .ic{width:16px;height:16px}
/* ---------- title ---------- */
#scr-title{align-items:center;justify-content:center}
.title-top{position:absolute;top:max(14px,env(safe-area-inset-top));left:14px;right:14px;display:flex;justify-content:space-between}
.title-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 20px 12px}
.logo{display:flex;flex-direction:column;align-items:center;line-height:.9;filter:drop-shadow(0 14px 18px rgba(60,30,90,.3))}
.logo-top{font-size:34px;color:#fff;background:linear-gradient(var(--teal),var(--teal-d));padding:6px 22px 9px;border-radius:16px;transform:rotate(-4deg);box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 5px 0 #0f6b60;text-shadow:0 2px 0 rgba(0,0,0,.2);position:relative;z-index:2;margin-bottom:-6px}
.logo-main{position:relative;font-size:min(22vw,104px);color:#fff;letter-spacing:2px;-webkit-text-stroke:0;
 background:linear-gradient(180deg,#fff3c4 0%,#ffd04a 38%,#ff9a3c 70%,#ff6b5b 100%);-webkit-background-clip:text;background-clip:text;color:transparent;padding:0 6px}
.logo-main::before{content:attr(data-text);position:absolute;inset:0;padding:0 6px;color:#8a2f3e;-webkit-text-stroke:14px #8a2f3e;z-index:-1;transform:translateY(7px)}
.logo-main::after{content:attr(data-text);position:absolute;inset:0;padding:0 6px;color:#fff;-webkit-text-stroke:9px #fff;z-index:-1}
.logo-sub{margin-top:10px;font-size:17px;color:#fff;background:rgba(43,45,66,.55);padding:5px 14px;border-radius:99px;backdrop-filter:blur(6px)}
#title-truck{width:min(84vw,380px);height:min(42vw,190px);margin:4px 0 2px}
.menu{display:flex;flex-direction:column;gap:16px;width:300px;align-items:stretch}
.menu .row{display:flex;gap:12px}.menu .row .btn{flex:1}
.menu .small-row{justify-content:center}.menu .small-row .btn{flex:none}
.title-wrap>*{animation:rise .7s var(--ease-back) backwards}
.title-wrap>.logo{animation-delay:.05s}#title-truck{animation-delay:.15s}.menu{animation-delay:.25s}
.menu>*{animation:rise .6s var(--ease-back) backwards}.menu>*:nth-child(1){animation-delay:.3s}.menu>*:nth-child(2){animation-delay:.4s}.menu>*:nth-child(3){animation-delay:.5s}
@keyframes rise{from{opacity:0;transform:translateY(30px) scale(.9)}}
@keyframes pop{from{opacity:0;transform:scale(.6)}}
/* ---------- topbar ---------- */
.topbar{display:flex;align-items:center;gap:10px;padding:12px 12px 6px;padding-top:max(12px,env(safe-area-inset-top))}
.tb-title{flex:1;min-width:0;text-align:center;border-radius:20px;padding:6px 12px;font-size:19px;line-height:1.1}
.tb-title>div:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-sub{font-size:13px;color:var(--ink2);display:flex;align-items:center;justify-content:center;gap:4px}
.tb-sub .ic{width:15px;height:15px}
/* ---------- map ---------- */
#map-scroll{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;mask-image:linear-gradient(transparent 0,#000 30px,#000 calc(100% - 40px),transparent)}
#map-scroll::-webkit-scrollbar{display:none}
#map-world{position:relative;margin:0 auto;max-width:560px}
#map-world svg.path{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.zone{position:absolute;left:-40vw;right:-40vw;border-radius:0}
.hood-banner{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;color:#fff;font-size:22px;padding:10px 26px 12px;border-radius:16px;white-space:nowrap;box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 6px 0 rgba(0,0,0,.18),0 14px 20px -8px rgba(0,0,0,.35);text-shadow:0 2px 0 rgba(0,0,0,.2);z-index:3}
.hood-banner::before,.hood-banner::after{content:'';position:absolute;top:10px;width:26px;height:100%;background:inherit;filter:brightness(.8);z-index:-1;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,30% 50%)}
.hood-banner::before{left:-18px}.hood-banner::after{right:-18px;transform:scaleX(-1)}
.hood-banner small{font-size:13px;opacity:.85}
.node{position:absolute;width:74px;height:74px;margin:-37px 0 0 -37px;border-radius:50%;border:0;padding:0;font:inherit;font-size:28px;color:#fff;cursor:pointer;z-index:2;
 background:radial-gradient(circle at 35% 28%,color-mix(in srgb,var(--hc) 45%,#fff) 0,var(--hc) 55%,color-mix(in srgb,var(--hc) 75%,#000) 100%);
 box-shadow:inset 0 3px 0 rgba(255,255,255,.5),inset 0 -5px 0 rgba(0,0,0,.12),0 7px 0 color-mix(in srgb,var(--hc) 60%,#000),0 16px 22px -8px rgba(30,20,60,.5);text-shadow:0 2px 0 rgba(0,0,0,.25);transition:transform .2s var(--ease-back);animation:pop .5s var(--ease-back) backwards}
.node:hover:not(.locked){transform:scale(1.08)}
.node:active:not(.locked){transform:translateY(5px)}
.node.locked{--hc:#b8bfd3;color:rgba(255,255,255,.95)}
.node.locked .ic{width:28px;height:28px}
.node .st{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);display:flex;gap:1px}
.node .st .ic{width:22px;height:22px}.node .st .ic:nth-child(2){transform:translateY(5px)}
.node .st .off{filter:grayscale(1) brightness(1.5) opacity(.85)}
.node .badge{position:absolute;top:-6px;right:-8px;width:28px;height:28px;border-radius:50%;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(0,0,0,.25)}
.node .badge .ic{width:18px;height:18px}
.node.current{animation:pop .5s var(--ease-back) backwards,bob 1.6s ease-in-out infinite .6s}
@keyframes bob{50%{transform:translateY(-6px)}}
.marker{position:absolute;width:64px;height:44px;margin:-96px 0 0 -32px;z-index:4;pointer-events:none;filter:drop-shadow(0 6px 6px rgba(0,0,0,.25));animation:bob 1.6s ease-in-out infinite}
.deco{position:absolute;pointer-events:none;z-index:1}
.map-dock{display:flex;gap:12px;padding:10px 16px max(16px,env(safe-area-inset-bottom))}
.map-dock .btn{flex:1}
/* ---------- game ---------- */
#g-side{display:contents}
#g-client,#g-keys,.sec{display:none}
.topbar{order:0}#g-requests{order:1}#g-meter{order:2}#board-wrap{order:5}.bottombar{order:9}
#g-requests{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:2px 10px}
.req{display:inline-flex;align-items:center;gap:6px;background:var(--glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.9);border-radius:14px;padding:3px 8px 3px 4px;font-size:14px;box-shadow:0 6px 14px -8px rgba(40,30,90,.45);transition:transform .3s var(--ease-back),background .3s}
.req img{width:26px;height:26px;object-fit:contain}
.req .ic{width:18px;height:18px}
.req.ok{background:rgba(220,255,236,.9)}.req.bad{background:rgba(255,226,230,.92)}
.req.flash{transform:scale(1.1)}
#g-meter{position:relative;margin:8px 16px 0;border-radius:99px;padding:4px}
#g-meter .track{position:relative;height:20px;border-radius:99px;background:rgba(43,45,66,.12);overflow:hidden;box-shadow:inset 0 2px 3px rgba(0,0,0,.12)}
#g-meter-fill{height:100%;width:0;border-radius:99px;background:linear-gradient(180deg,#ffe27a,#ffb02e 55%,#ff8a3c);box-shadow:inset 0 2px 0 rgba(255,255,255,.55);transition:width .5s var(--ease-back)}
#g-meter-txt{position:absolute;inset:0;text-align:left;padding-left:10px;font-size:13px;line-height:20px;color:var(--ink);text-shadow:0 1px 0 rgba(255,255,255,.6)}
.mstar{position:absolute;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;filter:grayscale(1) brightness(1.4) drop-shadow(0 2px 2px rgba(0,0,0,.2));transition:filter .3s,transform .4s var(--ease-back)}
.mstar.lit{filter:drop-shadow(0 2px 3px rgba(200,120,0,.5));transform:scale(1.15)}
#board-wrap{flex:1;position:relative;min-height:0}
#board{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
#tut{position:absolute;left:14px;right:14px;top:8px;display:flex;align-items:center;gap:10px;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:2px solid #fff;border-radius:20px;padding:10px 14px;font-size:16px;line-height:1.25;box-shadow:0 12px 26px -12px rgba(40,30,90,.5);pointer-events:none;animation:pop .45s var(--ease-back)}
#tut .tnum{flex:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(var(--coral),var(--coral-d));color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 3px 0 #a8352a}
#toast{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%) scale(.4);opacity:0;display:flex;align-items:center;gap:8px;background:rgba(43,45,66,.88);backdrop-filter:blur(8px);color:#fff;padding:12px 22px;border-radius:99px;font-size:22px;pointer-events:none;transition:transform .35s var(--ease-back),opacity .2s;white-space:nowrap;box-shadow:0 14px 30px -10px rgba(0,0,0,.5)}
#toast.show{transform:translate(-50%,-50%) scale(1);opacity:1}
.bottombar{display:flex;gap:12px;align-items:center;justify-content:center;padding:10px 14px;padding-bottom:max(14px,env(safe-area-inset-bottom))}
.bottombar .drive{flex:1;max-width:230px;height:66px}
/* ---------- modal ---------- */
#modal{position:absolute;inset:0;background:radial-gradient(circle at 50% 40%,rgba(43,45,66,.35),rgba(43,45,66,.7));display:flex;align-items:center;justify-content:center;z-index:50;padding:18px;animation:fade .3s}
@keyframes fade{from{opacity:0}}
.card{position:relative;background:linear-gradient(#fffdf8,#fff4e6);border-radius:32px;padding:24px 22px 22px;width:100%;max-width:400px;text-align:center;box-shadow:inset 0 -5px 0 rgba(180,120,60,.12),0 10px 0 #e8d3b8,0 30px 60px -10px rgba(20,10,50,.55);animation:pop .5s var(--ease-back);max-height:94%;overflow-y:auto;scrollbar-width:none}
.card h2{margin:0 0 10px;font-weight:normal;font-size:32px;color:var(--ink)}
.card p{margin:8px 0;font-size:15px;line-height:1.4;color:var(--ink2)}
.card .btns{display:flex;gap:12px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.card .btns .btn{font-size:18px;padding:12px 18px}
.stagger>*{animation:rise .55s var(--ease-back) backwards}
.stagger>*:nth-child(1){animation-delay:.05s}.stagger>*:nth-child(2){animation-delay:.12s}.stagger>*:nth-child(3){animation-delay:.19s}.stagger>*:nth-child(4){animation-delay:.26s}.stagger>*:nth-child(5){animation-delay:.33s}.stagger>*:nth-child(6){animation-delay:.4s}.stagger>*:nth-child(7){animation-delay:.47s}.stagger>*:nth-child(8){animation-delay:.54s}
.ribbon{position:relative;margin:-6px auto 12px;width:max-content;max-width:90%;padding:12px 34px 16px;font-size:30px;color:#fff;background:linear-gradient(#ff8a72,var(--coral) 55%,#e9503f);border-radius:12px;box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 6px 0 #b13a2e,0 16px 24px -10px rgba(120,20,10,.6);text-shadow:0 3px 0 rgba(140,30,20,.5);z-index:2}
.ribbon::before,.ribbon::after{content:'';position:absolute;top:14px;width:34px;height:100%;background:#d4493b;z-index:-1;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,35% 50%)}
.ribbon::before{left:-24px}.ribbon::after{right:-24px;transform:scaleX(-1)}
.ribbon.teal{background:linear-gradient(#4fd6c5,var(--teal) 55%,#169b8b);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 6px 0 #0f6b60,0 16px 24px -10px rgba(10,80,70,.6)}.ribbon.teal::before,.ribbon.teal::after{background:#168677}
.ribbon.grey{background:linear-gradient(#b5bccf,#8d96ad);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 6px 0 #636c84}.ribbon.grey::before,.ribbon.grey::after{background:#7a839b}
.pay-card{padding-top:44px;margin-top:30px}
.stars3{display:flex;justify-content:center;align-items:flex-end;gap:4px;height:96px;margin:4px 0 8px;position:relative}
.stars3 .slot{position:relative;width:76px;height:76px}
.stars3 .slot:nth-child(2){width:96px;height:96px;transform:translateY(-12px)}
.stars3 .slot .ic{position:absolute;inset:0;width:100%;height:100%}
.stars3 .slot .empty{filter:grayscale(1) brightness(.75) opacity(.3)}
.stars3 .slot .full{transform:scale(0);opacity:0}
.stars3 .slot.on .full{animation:starpop .6s var(--ease-back) forwards}
@keyframes starpop{0%{transform:scale(0) rotate(-40deg);opacity:0}60%{transform:scale(1.3) rotate(8deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
.pay{list-style:none;padding:0;margin:6px 0;text-align:left}
.pay li{display:flex;align-items:center;gap:10px;padding:8px 12px;margin:6px 0;border-radius:14px;background:rgba(255,255,255,.8);box-shadow:0 2px 0 rgba(180,140,100,.18);font-size:16px;opacity:0;transform:translateX(-24px) scale(.95);transition:opacity .3s,transform .45s var(--ease-back)}
.pay li.in{opacity:1;transform:none}
.pay li img{width:28px;height:28px;object-fit:contain}.pay li .ic{width:24px;height:24px}
.pay li span:nth-last-child(2){flex:1}
.pay li .v{color:#1f9e63}.pay li.neg .v{color:#e2475b}.pay li.zero .v{color:var(--ink2)}
.total{display:inline-flex;align-items:center;gap:10px;margin-top:8px;font-size:40px;color:var(--ink);background:linear-gradient(#fff6d6,#ffe7a3);padding:6px 22px 6px 10px;border-radius:99px;box-shadow:inset 0 -3px 0 rgba(200,140,20,.25),0 6px 16px -6px rgba(200,140,20,.6)}
.total .ic{width:44px;height:44px}
.flycoin{position:absolute;width:30px;height:30px;z-index:90;pointer-events:none}
.flycoin svg{width:100%;height:100%}
#fx-layer{position:absolute;inset:0;pointer-events:none;z-index:80}
.setting{display:flex;justify-content:space-between;align-items:center;padding:12px 6px;font-size:19px;border-bottom:2px dashed #f0e0c8}
.setting>span{display:flex;align-items:center;gap:10px}.setting>span .ic{width:26px;height:26px;color:var(--violet)}
.setting .btn{font-size:16px;padding:9px 16px;min-width:84px}
.howto{text-align:left}
.howto .hrow{display:flex;gap:12px;align-items:center;margin:10px 0;font-size:16px;line-height:1.3}
.howto .hrow img,.howto .hrow .ic{width:42px;height:42px;flex:none;object-fit:contain;color:var(--coral)}
/* run 12: How to play has 9 rows now (Bubble Wrap + Slide mode), so on short screens the rows get more compact instead of the whole card zooming down to tiny text */
.howto .hrow:nth-child(9){animation-delay:.61s}
@media (max-height:760px){.card .howto .hrow{margin:5px 0;font-size:15px;line-height:1.25;gap:10px}.card .howto .hrow img,.card .howto .hrow .ic{width:34px;height:34px}.pay-card:has(.howto){padding-top:36px}.card .howto .hrow:first-child{margin-top:12px}.pay-card:has(.howto) .btns{margin-top:10px}}
/* ---------- wide / desktop ---------- */
body.wide #app{max-width:none}
body.wide .logo-main{font-size:150px}body.wide .logo-top{font-size:44px}body.wide .logo-sub{font-size:20px}
body.wide #title-truck{width:520px;height:260px}
body.wide .menu{width:340px}
body.wide #scr-game.active{display:grid;grid-template-columns:clamp(300px,24vw,400px) 1fr;grid-template-rows:100%}
body.wide #g-side{display:flex;flex-direction:column;gap:14px;padding:18px 16px 20px 20px;overflow-y:auto;scrollbar-width:none}
body.wide #g-side .topbar{padding:0}
body.wide #g-side .tb-title{text-align:left;padding:8px 14px}body.wide #g-side .tb-sub{justify-content:flex-start}
body.wide #g-client{display:flex;align-items:center;gap:12px;border-radius:22px;padding:12px 14px;font-size:19px}
body.wide #g-client .avatar{width:52px;height:52px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 4px 0 rgba(0,0,0,.15)}
body.wide #g-client small{display:block;font-size:13px;color:var(--ink2);margin-top:3px}
body.wide .sec{display:block;font-size:14px;color:#fff;text-shadow:0 2px 4px rgba(40,30,90,.4);margin:2px 0 -6px 6px}
body.wide #g-requests{flex-direction:column;align-items:stretch;padding:0;gap:8px}
body.wide .req{font-size:17px;padding:7px 12px 7px 8px;border-radius:18px}
body.wide .req img{width:38px;height:38px}body.wide .req .ic{width:24px;height:24px}body.wide .req .st{margin-left:auto}
body.wide #g-meter{margin:0}
body.wide #g-keys{display:block;margin-top:auto;font-size:13px;line-height:2.1;color:var(--ink);background:rgba(255,255,255,.55);backdrop-filter:blur(8px);border-radius:16px;padding:8px 12px}
body.wide #g-keys kbd{font-family:inherit;background:#fff;border-radius:7px;padding:2px 7px;box-shadow:0 2px 0 #cfd3e3;margin:0 2px}
body.wide .bottombar{padding:0;gap:12px;flex-wrap:wrap}
body.wide .bottombar .round-lg{flex:1;width:auto;height:58px;flex-direction:row;gap:8px;font-size:20px}
body.wide .bottombar .round-lg .lbl{display:inline}
body.wide .bottombar .round-lg .ic:first-child{width:24px;height:24px}
body.wide .bottombar .drive{flex-basis:100%;max-width:none;height:76px;font-size:32px}
body.wide #map-world{max-width:760px}
body.wide .map-dock{position:absolute;right:24px;bottom:24px;flex-direction:column;width:220px;padding:0}
body.wide #tut{right:calc(clamp(220px,26%,360px) + 18px);left:18px;top:14px}
body.wide #toast{left:38%}
.ribbon.violet{box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 6px 0 #4a3bb0,0 16px 24px -10px rgba(60,40,160,.6)}.ribbon.violet::before,.ribbon.violet::after{background:#5646c4}
body.wide #g-side>*{order:0}
body.wide #g-side .tb-title>div:first-child{white-space:normal;font-size:18px}
.node.locked{--hc:#b8bfd3!important}
.marker{margin:-30px 0 0 34px}
#scr-map .tb-title{max-width:360px;margin:0 auto}
#scr-map::before{content:'';position:absolute;inset:0;backdrop-filter:blur(5px) saturate(1.1);-webkit-backdrop-filter:blur(5px);background:linear-gradient(rgba(255,250,240,.25),rgba(255,250,240,.12));pointer-events:none}
#scr-map>*{position:relative}
.node .badge img{width:22px;height:22px;object-fit:contain}
.card .btns{flex-wrap:nowrap}.card .btns .btn{padding:12px 16px}
body.wide #g-side{background:linear-gradient(90deg,rgba(255,255,255,.42),rgba(255,255,255,.18));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-right:2px solid rgba(255,255,255,.7);box-shadow:8px 0 30px -12px rgba(40,30,90,.25)}
body.wide .sec{color:var(--ink2);text-shadow:none}
body.wide #scr-map .map-dock{position:absolute;right:28px;bottom:28px;left:auto;flex-direction:column;width:230px;padding:0}

body.wide #g-title .tcl{display:none}
.tjob{display:none}.tb-title.tight .tjob{display:inline}.tb-title.tight .tb-sub{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tb-title.tight .tjn,.tb-title.tight .tdot{display:none}
body.wide #g-side .tb-title>div:first-child{white-space:nowrap;font-size:20px}
@media (max-height:700px){body.wide #g-keys{display:none!important}}
@media (max-height:560px){body.wide #g-side{gap:9px;padding-top:12px;padding-bottom:12px}body.wide .bottombar .drive{height:62px;font-size:28px}body.wide .bottombar .round-lg{height:50px}body.wide #scr-map .map-dock{bottom:14px;right:14px}}

#logo-img{display:none;width:min(88vw,520px);height:auto;filter:drop-shadow(0 10px 14px rgba(60,30,90,.25))}
body.has-logo #logo-img{display:block}body.has-logo .logo-top,body.has-logo .logo-main{display:none}
body.wide #logo-img{width:600px}
@media (max-height:640px){body.wide #title-truck{width:360px;height:170px;margin:-6px 0 -4px}body.wide #logo-img{width:min(480px,62vh*1.6)}.logo-sub{display:none}.title-wrap{gap:4px;padding-top:8px}}
@media (max-height:640px) and (max-width:899px){#title-truck{height:min(42vw,130px)}}

.ic img,.flycoin img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none}
.avatar.por{object-fit:cover;background:#fff;padding:0;border:3px solid #fff}
#g-title .tav{width:30px;height:30px;border-radius:50%;vertical-align:middle;margin:-4px 6px -2px 0;box-shadow:0 2px 6px rgba(40,30,90,.25);border:2px solid #fff}
body.wide #g-title .tav{display:none}
.pay-client{display:flex;align-items:center;justify-content:center;gap:10px;margin:-2px 0 10px;font-size:17px;color:var(--ink)}
.pay-client img{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 3px 8px rgba(40,30,90,.25)}
.node-por{position:absolute;width:40px;height:40px;border-radius:50%;border:3px solid #fff;left:-34px;top:-26px;box-shadow:0 4px 10px rgba(40,30,90,.3);pointer-events:none}
.node.vflip .node-por{left:auto;right:-34px}
.marker.flip svg{transform:scaleX(-1)}
/* big desktop screens: side panel grows with the window so it doesn't look tiny */
@media (min-width:1600px) and (min-height:960px){
body.wide #g-side{gap:18px;padding:24px 20px 26px 24px}
body.wide #g-side .tb-title>div:first-child{font-size:23px}
body.wide #g-client{font-size:22px;padding:14px 16px}body.wide #g-client .avatar{width:64px;height:64px}body.wide #g-client small{font-size:15px}
body.wide .sec{font-size:16px}
body.wide .req{font-size:19px;padding:9px 14px 9px 10px}body.wide .req img{width:46px;height:46px}
body.wide #g-meter .track{height:28px}body.wide #g-meter-txt{font-size:15px;line-height:28px}body.wide #g-meter .mstar{width:38px;height:38px;margin:-19px 0 0 -19px}
body.wide #g-keys{font-size:15px}
body.wide .bottombar .round-lg{height:66px;font-size:22px}
body.wide .bottombar .drive{height:88px;font-size:36px}
}
/* overnight 06:45: big screens — title coin/star pills grow with the menu */
@media (min-width:1600px) and (min-height:960px){.title-top{zoom:1.25;top:18px;left:20px;right:20px}}

/* overnight 05:40: keyboard hint groups never split mid-phrase; payout buttons never wrap */
#g-keys{line-height:1.9}#g-keys .kg{white-space:nowrap;display:inline-block;margin-right:6px}
.card .btns .btn{white-space:nowrap;flex:0 1 auto;min-width:0}
@media (max-width:440px){.card .btns{gap:9px}.card .btns .btn{font-size:17px;padding:12px 13px;letter-spacing:.3px}}

/* overnight 07:5x: big screens: level map top bar and Endless/Daily dock grow with the (zoomed) map */
@media (min-width:1600px) and (min-height:960px){body.wide #scr-map .topbar{zoom:1.3;padding-left:16px;padding-right:16px}body.wide #scr-map .tb-title{max-width:380px}body.wide #scr-map .map-dock{zoom:1.3;right:24px;bottom:24px}}

/* overnight 09:05: sticker icons for heavy/fragile requests */
img.stk{transform:scale(.86);filter:drop-shadow(0 2px 2px rgba(40,30,90,.25))}
#toast .toast-por{border-radius:50%;width:2.2em;height:2.2em;flex:none}

/* ---------- Wizard's shop ---------- */
#btn-shop{padding-left:18px;padding-right:20px}
#scr-shop{overflow:hidden}
.shop-bg{position:absolute;inset:0;z-index:0;background:radial-gradient(120% 90% at 50% 20%,#8b5cf6 0%,#5b3aa8 45%,#2a1a5e 100%)}
.shop-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.shop-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,10,50,.25),rgba(20,10,50,0) 30%,rgba(20,10,50,.35))}
.shop-bg .spk{display:none}
.shop-bg.fallback .spk{display:block;position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(#fff,rgba(255,240,180,0) 70%);animation:spk 2.6s ease-in-out infinite}
.spk:nth-child(1){left:12%;top:20%}.spk:nth-child(2){left:78%;top:14%;animation-delay:.6s}.spk:nth-child(3){left:40%;top:60%;animation-delay:1.2s}.spk:nth-child(4){left:88%;top:70%;animation-delay:.3s}.spk:nth-child(5){left:22%;top:82%;animation-delay:1.8s}.spk:nth-child(6){left:60%;top:30%;animation-delay:2.1s}
@keyframes spk{0%,100%{transform:scale(.4);opacity:.2}50%{transform:scale(1.6);opacity:1}}
#scr-shop .topbar{position:relative;z-index:2}
.shop-stage{position:relative;z-index:1;flex:1;display:flex;align-items:flex-end;justify-content:center;gap:2vw;padding:0 3vw 3vh;min-height:0}
.keeper{position:relative;height:min(78vh,760px);aspect-ratio:640/871;flex:none;align-self:flex-end}
.keeper-bob{position:absolute;inset:0;animation:bob 3.2s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.6%)}}
.keeper img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(20,10,50,.45))}
.staff-glow{position:absolute;left:13.5%;top:31%;width:22%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(rgba(140,220,255,.9),rgba(90,160,255,.35) 45%,rgba(90,160,255,0) 70%);mix-blend-mode:screen;animation:glow 2.2s ease-in-out infinite;pointer-events:none}
@keyframes glow{0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(.85)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}}
.keeper-ph{display:none;position:absolute;inset:0;width:100%;height:100%}
.keeper.ph .keeper-ph{display:block}.keeper.ph img,.keeper.ph .staff-glow{display:none}
.bubble{position:absolute;left:62%;top:6%;width:max-content;max-width:240px;background:#fff;color:#2b2d42;border-radius:18px;padding:10px 14px;font:16px/1.3 'Lilita One',sans-serif;box-shadow:0 8px 20px rgba(20,10,50,.3);z-index:2}
.bubble::after{content:'';position:absolute;left:14px;bottom:-9px;border:10px solid transparent;border-top-color:#fff;border-bottom:0}
.shop-panel{align-self:center;width:min(440px,46vw);padding:16px;border-radius:24px;background:rgba(255,255,255,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.shop-items{display:flex;flex-direction:column;gap:12px}
.shop-item{display:flex;align-items:center;gap:12px;background:linear-gradient(#fffdf7,#f3ecff);border-radius:18px;padding:10px 12px;box-shadow:0 4px 0 rgba(60,30,120,.25),0 10px 20px rgba(20,10,50,.18)}
.shop-item .si-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(#a78bfa,#7c3aed);color:#fff;flex:none}
.shop-item .si-ic .ic,.shop-item .si-ic svg{width:30px;height:30px}
.shop-item .si-txt{flex:1;min-width:0;color:#2b2d42;font:15px/1.25 'Nunito',sans-serif}
.shop-item .si-txt b{display:block;font:18px/1.2 'Lilita One',sans-serif}
.shop-item .si-own{font-size:13px;opacity:.7}
.shop-item .btn{flex:none;min-width:92px}
#btn-undo .price.owned,#btn-hint .price.owned{background:#2fd4a6}
@media (max-aspect-ratio:1/1){
  .shop-stage{flex-direction:column;align-items:center;justify-content:flex-end;gap:0;padding:0 12px 14px}
  .keeper{height:min(40vh,420px);align-self:center;margin-bottom:-4px}
  .bubble{left:58%;top:2%;max-width:170px;font-size:14px}
  .shop-panel{width:100%;max-width:460px;padding:12px}
  .shop-items{gap:9px}
}

#client-say{position:absolute;left:50%;top:calc(env(safe-area-inset-top,0px) + 86px);z-index:30;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(92vw,520px);padding:10px 16px 10px 10px;background:#fff;color:#2b2d42;border-radius:20px;box-shadow:0 10px 28px rgba(30,20,70,.28);font:16px/1.3 'Nunito',sans-serif;font-weight:800;opacity:0;transform:translate(-50%,-8px) scale(.96);transition:opacity .25s,transform .3s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
#client-say.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
#client-say img{width:40px;height:40px;border-radius:50%;flex:none}
#client-say::before{content:'';position:absolute;left:50%;top:-8px;margin-left:-9px;border:9px solid transparent;border-bottom-color:#fff;border-top:0}
@media (max-width:420px){#client-say{font-size:14px;top:calc(env(safe-area-inset-top,0px) + 74px)}#client-say img{width:34px;height:34px}}

.shop-own{display:flex;align-items:center;justify-content:center;gap:6px;color:#fff;font:16px 'Lilita One',sans-serif;text-shadow:0 2px 4px rgba(20,10,50,.5)}
.shop-own svg{width:18px;height:18px}
#scr-shop .tb-title{flex:0 1 auto;margin:0 auto;padding-left:28px;padding-right:28px}
@media (max-width:380px){#scr-shop .tb-title{padding-left:14px;padding-right:14px}}@media (max-width:340px){#scr-shop .tb-title{padding-left:10px;padding-right:10px}} /* run 9: room for "Wizard's Shop" on small phones */
@media (min-aspect-ratio:1/1){.shop-item .si-txt{font-size:16px}.shop-item .si-txt b{font-size:20px}.shop-panel{width:min(480px,44vw)}}

.shop-tabs{display:flex;gap:6px;margin-bottom:10px;background:rgba(30,15,70,.35);padding:5px;border-radius:16px}
.shop-tab{flex:1;border:0;border-radius:12px;padding:9px 4px;background:transparent;color:#fff;font:16px 'Lilita One',sans-serif;cursor:pointer;opacity:.8}
.shop-tab.on{background:linear-gradient(#fff6c9,#ffd36a);color:#5a3500;opacity:1;box-shadow:0 3px 0 #c98a12}
.shop-items{max-height:min(62vh,560px);overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 6px;scrollbar-width:thin}
.look-h{color:#fff;font:17px 'Lilita One',sans-serif;margin:6px 2px 2px;text-shadow:0 2px 4px rgba(20,10,50,.5)}
.look-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.look{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;border-radius:16px;padding:8px 4px 7px;background:linear-gradient(#fffdf7,#efe6ff);box-shadow:0 3px 0 rgba(60,30,120,.25);cursor:pointer;color:#2b2d42;font:12px 'Nunito',sans-serif}
.look img{width:64px;height:53px;object-fit:contain}
.look b{font:14px/1.1 'Lilita One',sans-serif;text-align:center}
.look .lp{display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:12px;padding:2px 8px;border-radius:10px;background:#ffd36a;color:#5a3500}
.look .lp svg{width:13px;height:13px}
.look.own .lp{background:#e3dcf5;color:#4b3a85}
.look.on{outline:3px solid #2fd4a6;outline-offset:-1px}.look.on .lp{background:#2fd4a6;color:#fff}
.horn-ic{width:44px;height:44px;margin:4px 0 5px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#a78bfa,#7c3aed);color:#fff}.horn-ic svg{width:22px;height:22px}
.keep-prog{display:flex;align-items:center;gap:10px;color:#fff;font:16px 'Lilita One',sans-serif;margin:2px 2px 10px;text-shadow:0 2px 4px rgba(20,10,50,.5)}
.keep-prog i{flex:1;height:12px;border-radius:8px;background:rgba(255,255,255,.25);position:relative;overflow:hidden}
.keep-prog i::after{content:'';position:absolute;inset:0;width:var(--p);background:linear-gradient(#fff07a,#ffb21e);border-radius:8px}
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:14px 8px;padding:10px 6px 14px;border-radius:16px;background:repeating-linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) 118px,#a0673f 118px,#7a4a2b 128px,rgba(0,0,0,0) 128px,rgba(0,0,0,0) 134px),rgba(40,20,60,.25)}
.keep{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;cursor:pointer;color:#fff;font:12px/1.15 'Nunito',sans-serif;height:118px;justify-content:flex-start}
.keep .kf{position:relative;width:56px;height:56px;border-radius:50%;padding:3px;background:linear-gradient(#ffe58a,#d99a1e);box-shadow:0 4px 10px rgba(20,10,50,.4)}
.keep .kf img{width:100%;height:100%;border-radius:50%;display:block}
.keep b{font:13px/1.1 'Lilita One',sans-serif;text-shadow:0 1px 3px rgba(20,10,50,.6);margin-top:3px}
.keep small{font-weight:800;opacity:.9}
.keep.locked .kf{background:linear-gradient(#bbb,#777)}.keep.locked .kf img{filter:grayscale(1) brightness(.45) blur(1px)}
.keep.open .kf{animation:glow2 2s ease-in-out infinite}
@keyframes glow2{0%,100%{box-shadow:0 0 0 0 rgba(255,230,120,.0),0 4px 10px rgba(20,10,50,.4)}50%{box-shadow:0 0 0 6px rgba(255,230,120,.45),0 4px 10px rgba(20,10,50,.4)}}
.klock,.kstar{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#555}.klock svg,.kstar svg{width:15px;height:15px}
.kbuy{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:9px;background:#ffd36a;color:#5a3500}.kbuy svg{width:12px;height:12px}
@media (max-aspect-ratio:1/1){.keeper{height:min(30vh,320px)}.shop-items{max-height:48vh}.bubble{max-width:190px}}
.look canvas.vprev{width:64px;height:53px}
.look .lp img,.look .lp .ic,.kbuy img,.kbuy .ic{width:14px!important;height:14px!important;flex:none}
.lp .ic svg,.kbuy .ic svg{width:100%;height:100%}
.look canvas.vprev[data-z]{border-radius:12px}

/* keepsake shelf: floating clay items */
.keep .kf{width:74px;height:74px;padding:0;border-radius:0;background:none!important;box-shadow:none!important;animation:kfloat 3s ease-in-out infinite}
.keep .kf img{width:100%;height:100%;border-radius:0;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(20,10,50,.25))}
@keyframes kfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.keep.locked .kf img{filter:brightness(0) opacity(.55)}
.keep.locked b{opacity:.75}
.keep.open .kf img{filter:drop-shadow(0 0 8px rgba(255,230,120,.9))}
.keep .klock,.keep .kstar{right:2px;bottom:6px}
.keep{height:122px}
.shelf{background:repeating-linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) 122px,#a0673f 122px,#7a4a2b 132px,rgba(0,0,0,0) 132px,rgba(0,0,0,0) 136px),rgba(40,20,60,.25)}
.look .lrw{font-size:10px;font-weight:800;color:#3a7fc0;line-height:1.1;text-align:center}

.look.prestige{background:linear-gradient(#2b2440,#16122a);color:#ffe9a8;outline:3px solid #e2b64a;outline-offset:-3px;box-shadow:0 0 14px rgba(255,210,90,.45),0 3px 0 #8a6a1e}
.look.prestige b{color:#ffe08a}
.look.plocked canvas{filter:brightness(.35) saturate(.6)}
.look .lp.lock{background:#e2b64a;color:#2b1d00}.look .lp.lock svg{width:12px;height:12px}
.look.prestige .lrw{color:#ffd76a}
.royal-card .royal-pop{display:flex;justify-content:center;margin:6px 0}
.royal-card canvas{width:300px;height:170px;max-width:80vw;height:auto;aspect-ratio:300/170;filter:drop-shadow(0 10px 16px rgba(30,20,60,.35))}
.royal-txt{text-align:center;margin:6px 10px 12px;font-weight:800;color:#4a3a6a}
.royal-card .btns{display:flex;gap:10px;justify-content:center}
.royal-card .ribbon{font-size:clamp(20px,6vw,28px)}

/* so close + endless best bar */
.so-close{display:flex;align-items:center;gap:12px;margin:10px auto 4px;padding:10px 14px;background:linear-gradient(#fff6d8,#ffe9a8);border-radius:18px;box-shadow:inset 0 -3px 0 rgba(200,140,30,.18);text-align:left;max-width:340px}
.so-close b{display:block;font-size:19px;color:#7a4a00}.so-close small{display:block;font-size:13px;color:#8a6a3a;line-height:1.3}
.sc-piece{flex:none;width:58px;height:58px;display:grid;place-items:center;border-radius:14px;border:3px dashed #ff9a1f;background:#fffdf5;animation:scp 1.2s ease-in-out infinite}
.sc-piece img{max-width:46px;max-height:46px}
@keyframes scp{50%{transform:scale(1.07);border-color:#ffcf4a}}
.btn.big-retry{font-size:22px;padding:14px 26px;background:linear-gradient(#ffd86b,#ffb52e);color:#5a3300;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 6px 0 #d68a14,0 12px 20px -8px rgba(160,90,0,.5);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.05)}}
.best-bar{margin:10px auto 2px;max-width:320px;text-align:left}.best-bar span{font-size:14px;color:var(--ink2)}
.best-bar i{display:block;height:12px;border-radius:9px;background:rgba(43,45,66,.12);margin:4px 0;position:relative;overflow:hidden}
.best-bar i::after{content:'';position:absolute;inset:0;width:var(--p);background:linear-gradient(90deg,#4fd6c5,#2fb5a6);border-radius:9px}
.best-bar small{font-size:12px;color:var(--ink2)}
/* daily streak banner */
#streak{position:fixed;left:50%;top:10px;transform:translate(-50%,-140%);z-index:60;width:min(420px,calc(100vw - 20px));background:linear-gradient(#fffdf8,#fff1dc);border:3px solid #fff;border-radius:22px;padding:10px 14px 9px;box-shadow:0 8px 0 #e8d3b8,0 20px 40px -10px rgba(20,10,50,.5);transition:transform .5s var(--ease-back);cursor:pointer;text-align:center}
#streak.show{transform:translate(-50%,0)}
.st-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.st-top b{font-size:20px;color:#e2574a}.st-c{display:flex;align-items:center;gap:4px;font-size:15px;color:#7a4a00}.st-c .ic{width:20px;height:20px}
.st-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:8px 0 5px}
.st-days i{font-style:normal;font-size:13px;border-radius:10px;padding:3px 0 4px;background:rgba(43,45,66,.07);color:var(--ink2)}
.st-days i em{display:block;font-style:normal;font-size:9px;opacity:.8}
.st-days i.done{background:#c9f1e6;color:#127a63}.st-days i.now{background:linear-gradient(#ffd86b,#ffb52e);color:#5a3300;transform:scale(1.08);box-shadow:0 3px 0 #d68a14}
#streak small{font-size:12px;color:var(--ink2)}

#btn-play{flex-direction:column;line-height:1}#btn-play .play-sub{display:block;font-size:.42em;opacity:.85;letter-spacing:.06em;margin-top:2px}
.keep-found{background:#fff3c4;border-radius:12px;padding:6px 10px}
/* #4 packing combo meter */
#combo{--cc:#f0a020;position:absolute;left:50%;top:8px;transform:translate(-50%,-6px) scale(.7);opacity:0;pointer-events:none;z-index:4;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto auto;column-gap:8px;align-items:center;padding:6px 14px 8px;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 8px 20px -8px rgba(43,45,66,.45),inset 0 -3px 0 rgba(0,0,0,.06);border:2.5px solid var(--cc);transition:transform .3s var(--ease-back),opacity .2s,border-color .3s;white-space:nowrap}
#combo.on{opacity:1;transform:translate(-50%,0) scale(1)}
#combo .cb-n{grid-row:1/3;font-size:28px;line-height:1;color:var(--cc);text-shadow:0 2px 0 rgba(0,0,0,.08)}
#combo .cb-t{font-size:16px;font-weight:800;color:#2b2d42;line-height:1.1}
#combo .cb-next{font-size:11px;color:#6b6f85;line-height:1.1}
#combo .cb-bar{grid-column:1/3;height:5px;margin-top:5px;border-radius:9px;background:rgba(43,45,66,.12);overflow:hidden}
#combo .cb-bar i{display:block;height:100%;width:100%;background:var(--cc);border-radius:9px}
#combo.pop{animation:cbpop .55s var(--ease-back)}
@keyframes cbpop{0%{transform:translate(-50%,0) scale(1)}35%{transform:translate(-50%,0) scale(1.28) rotate(-3deg)}100%{transform:translate(-50%,0) scale(1)}}
#combo.broke{animation:cbshake .45s}
@keyframes cbshake{20%,60%{margin-left:-6px}40%,80%{margin-left:6px}}
body.wide #combo .cb-n{font-size:32px}body.wide #combo .cb-t{font-size:18px}
/* #5 win-streak road */
.ws-road{margin:10px auto 4px;max-width:340px;text-align:center}
.ws-road small{display:block;margin-top:6px;font-size:13px;color:#5b5f78;font-weight:700}
.ws-road.up small{color:#2f9a5f}.ws-road.back small{color:#c0573a}
.ws-track{position:relative;display:flex;align-items:center;justify-content:space-between;padding:14px 4px 4px}
.ws-seg{flex:1;height:6px;margin:0 3px;border-radius:6px;background:repeating-linear-gradient(90deg,#d9d2c6 0 8px,#ece6dc 8px 14px)}
.ws-stop{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;background:#efe9df;box-shadow:inset 0 -3px 0 rgba(0,0,0,.08);opacity:.6;transition:transform .35s var(--ease-back),background .3s,opacity .3s}
.ws-stop .ic{width:20px;height:20px}
.ws-stop.done{background:#ffe08a;opacity:1;box-shadow:inset 0 -3px 0 rgba(180,120,0,.25),0 0 0 2px #f5b941}
.ws-road .ws-stop.new{background:#efe9df;box-shadow:inset 0 -3px 0 rgba(0,0,0,.08);opacity:.6}
.ws-road.go .ws-stop.new{background:#ffe08a;opacity:1;box-shadow:inset 0 -3px 0 rgba(180,120,0,.25),0 0 0 2px #f5b941;animation:wspop .6s var(--ease-back)}
@keyframes wspop{0%{transform:scale(1)}40%{transform:scale(1.45)}100%{transform:scale(1)}}
.ws-van{position:absolute;top:-8px;width:30px;height:24px;left:calc(4px + (100% - 8px - 34px) * var(--from) / (var(--n) - 1));transition:left .8s var(--ease-back);filter:drop-shadow(0 3px 2px rgba(0,0,0,.2))}
.ws-van .ic{width:30px;height:24px}
.ws-road.go .ws-van{left:calc(4px + (100% - 8px - 34px) * min(var(--to), var(--n) - 1) / (var(--n) - 1))}
.ws-road.back.go .ws-van{animation:wsback .5s}
@keyframes wsback{30%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}}
.ws-conf{position:fixed;width:8px;height:8px;border-radius:2px;pointer-events:none;z-index:999;animation:wsconf .9s ease-out forwards}
@keyframes wsconf{to{transform:translate(var(--dx),var(--dy)) rotate(260deg);opacity:0}}
body.wide .ws-road{max-width:380px}body.wide .ws-stop{width:38px;height:38px}
/* #6 Next up teasers */
#nextup{margin:6px 10px calc(10px + env(safe-area-inset-bottom));padding:8px 10px 10px;border-radius:20px;flex:none;animation:rise .5s var(--ease-back) .2s backwards}
#nextup.hidden{display:none}
.nu-head{font-size:13px;font-weight:800;color:#5b5f78;letter-spacing:.04em;text-transform:uppercase;margin:0 4px 6px}
.nu-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}
.nu-row::-webkit-scrollbar{display:none}
.nu-card{flex:0 0 min(78%,260px);scroll-snap-align:start;display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.88);border-radius:16px;padding:8px 10px;box-shadow:0 4px 12px -6px rgba(43,45,66,.35);text-align:left}
.nu-pic{position:relative;flex:none;width:58px;height:50px;display:grid;place-items:center;border-radius:12px;background:radial-gradient(circle at 50% 60%,#fff4d6,#f1e3c6)}
.nu-pic img{max-width:52px;max-height:44px;filter:brightness(0) saturate(0) opacity(.55);transition:filter .6s}
.nu-pic b{position:absolute;right:-4px;top:-6px;width:20px;height:20px;border-radius:50%;background:#7a5cff;color:#fff;font-size:13px;display:grid;place-items:center;box-shadow:0 2px 0 rgba(0,0,0,.15);animation:nuq 2.4s ease-in-out infinite}
@keyframes nuq{0%,80%,100%{transform:scale(1) rotate(0)}88%{transform:scale(1.25) rotate(-10deg)}94%{transform:scale(1.1) rotate(8deg)}}
.nu-card:hover .nu-pic img{filter:brightness(0) saturate(0) opacity(.75)}
.nu-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.nu-txt small{font-size:10px;font-weight:800;color:#8a7f9e;text-transform:uppercase;letter-spacing:.05em}
.nu-txt b{font-size:15px;color:#2b2d42;line-height:1.15}
.nu-txt em{font-style:normal;font-size:11.5px;color:#5b5f78;line-height:1.2;margin:1px 0 4px}
.nu-txt em i{font-style:normal;color:#7a5cff;font-weight:800}
.nu-bar{position:relative;height:14px;border-radius:9px;background:rgba(43,45,66,.1);overflow:hidden}
.nu-bar i{position:absolute;inset:0 auto 0 0;width:var(--p);background:linear-gradient(90deg,#ffcf3f,#f5a524);border-radius:9px}
.nu-royal .nu-bar i{background:linear-gradient(90deg,#e5c46b,#c9a24a)}.nu-item .nu-bar i{background:linear-gradient(90deg,#5fd39a,#2fae6f)}
.nu-bar u{position:absolute;inset:0;text-decoration:none;font-size:10px;font-weight:800;color:#2b2d42;display:grid;place-items:center}
.nu-pay{margin:10px auto 2px;max-width:320px;display:flex;justify-content:center}
.nu-pay .nu-card{flex:1;background:#fff8ea}
.nu-pay .nu-bar i{width:var(--p0);animation:nufill 1.2s var(--ease-back) .8s forwards}
@keyframes nufill{to{width:var(--p)}}
.nu-got{display:flex;gap:8px;align-items:center;justify-content:center;margin:8px auto 0;padding:6px 12px;border-radius:99px;background:linear-gradient(90deg,#fff1b8,#ffe08a);color:#6b4a00;font-size:14px;width:max-content;max-width:100%;animation:nugot .7s var(--ease-back) .9s backwards}
.nu-got .ic{width:18px;height:18px}
@keyframes nugot{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
body.wide #nextup{align-self:center;width:min(860px,calc(100% - 40px))}
body.wide .nu-row{justify-content:center}body.wide .nu-card{flex:0 1 270px}
/* run 8: below ~1400px wide the centred Next up panel ran under the Endless/Daily dock (bottom right); park it on the left, beside the dock */
@media (max-width:1399px){body.wide #nextup{align-self:flex-start;margin-left:20px;width:calc(100% - 330px)}body.wide .nu-row{justify-content:flex-start}}
/* #7 keepsake album: one shelf page per neighbourhood, stickers, page rewards */
.keep-prog .kp-st{display:inline-flex;align-items:center;gap:4px;font-size:14px}.keep-prog .kp-st svg{width:16px;height:16px}
.album-page{position:relative;margin:0 0 14px;padding:8px 6px 8px;border-radius:18px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 2px rgba(255,255,255,.12);transition:box-shadow .4s}
.album-page.done{box-shadow:inset 0 0 0 2px #ffd36a,0 0 18px rgba(255,211,106,.35)}
.album-page.cheer{animation:apcheer .7s var(--ease-back)}
@keyframes apcheer{40%{transform:scale(1.03)}}
.ap-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 6px 6px;color:#fff;text-shadow:0 1px 3px rgba(20,10,50,.6)}
.ap-head b{font:17px 'Lilita One',sans-serif}
.ap-rw{font:800 11.5px 'Nunito',sans-serif;opacity:.9;display:inline-flex;align-items:center;gap:4px}.ap-rw svg{width:14px;height:14px}
.album-page.done .ap-rw{color:#ffe08a;opacity:1}
.ap-foot{display:flex;gap:4px;justify-content:center;margin-top:4px}
.ap-foot i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.25)}
.ap-foot i.k{background:#ffd36a}.ap-foot i.k.s{background:#ff8fb8;box-shadow:0 0 0 2px #ffd36a}
.keep .kstk{position:absolute;left:-12px;top:-10px;width:30px;height:30px;filter:drop-shadow(0 2px 2px rgba(20,10,50,.35));z-index:2}
.keep.locked .kstk,.keep.open .kstk{opacity:.85}
.kstk.slap{animation:kslap .5s cubic-bezier(.2,1.6,.4,1) backwards}
@keyframes kslap{0%{transform:scale(2.6) rotate(-30deg);opacity:0}60%{transform:scale(.88) rotate(4deg);opacity:1}100%{transform:scale(1)}}
/* #12 endless keep-the-run marker + revive */
#g-minfill{position:absolute;top:0;bottom:0;width:4px;margin-left:-2px;border-radius:3px;background:#e5484d;box-shadow:0 0 0 2px #fff;z-index:2;transition:background .3s}
#g-minfill.ok{background:#2fae6f}
.revive-card .rv-ic{width:84px;height:84px;margin:4px auto 6px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fff6d6,#ffd36a);animation:rvpulse 1.2s ease-in-out infinite}
.revive-card .rv-ic svg{width:48px;height:48px}
@keyframes rvpulse{50%{transform:scale(1.08);box-shadow:0 0 0 10px rgba(255,211,106,.25)}}
.revive-card .rv-txt{text-align:center;margin:0 8px 10px;font-weight:700;color:#4a4e66}
.revive-card #rv-yes{animation:rvbtn 1.4s ease-in-out infinite}
@keyframes rvbtn{50%{transform:scale(1.05)}}
/* #8 play stats debug view */
.stats-card{max-width:min(620px,94vw)}
.stats-sum{font-size:13px;color:#4a4e66;margin:4px 6px 8px;text-align:center}
.stats-scroll{max-height:min(46vh,420px);overflow:auto;border-radius:12px;background:#fff8ea}
table.stats{width:100%;border-collapse:collapse;font:700 12px 'Nunito',sans-serif;color:#2b2d42}
table.stats th{position:sticky;top:0;background:#ffe9b8;padding:6px 4px;font-size:11px}
table.stats td{padding:4px;text-align:center;border-top:1px solid rgba(43,45,66,.08)}
table.stats tr.none td{color:#a3a6b8;font-weight:600}
table.stats tr.spike td{background:#ffe1df;color:#b3261e}
.stats-note{font-size:11px;color:#6b6f85;margin:6px 6px 0;text-align:center}
/* rewarded ads (opt-in only) */
.ad-btn{position:relative}
.ad-tag{display:inline-grid;place-items:center;font:900 10px 'Nunito',sans-serif;letter-spacing:.06em;padding:2px 5px;margin-right:6px;border-radius:6px;background:rgba(43,45,66,.85);color:#fff;vertical-align:middle}
.ad-btn.done{opacity:.85;pointer-events:none}
.card #pm-btns.has-double{flex-wrap:wrap!important;justify-content:center}.card #pm-btns #pm-double{flex:1 1 100%;order:-1}
.rv-note{font-size:12.5px;color:#b3542a;text-align:center;margin:0 8px 8px;font-weight:700}
.btn[disabled]{filter:grayscale(.7);opacity:.6;cursor:not-allowed}
#streak .st-ad{font-size:13px;padding:5px 10px;margin-left:8px;min-height:0}
#ad-stub{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(10,8,20,.88);color:#fff;font-family:'Lilita One',sans-serif}
#ad-stub div{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 30px;border-radius:18px;background:#2b2d42}
#ad-stub b{font-size:26px}#ad-stub small{font:700 12px 'Nunito',sans-serif;opacity:.8}
#ad-stub i{width:160px;height:6px;border-radius:6px;background:linear-gradient(90deg,#ffd36a 50%,rgba(255,255,255,.2) 50%);background-size:200% 100%;animation:adbar 1.2s linear forwards}
@keyframes adbar{from{background-position:100% 0}to{background-position:0 0}}
/* #9 just-in-time tips (reuse the tutorial bubble) */
#tut.jit{pointer-events:auto;background:rgba(255,255,255,.9);font-size:15px;line-height:1.3;padding:9px 10px 9px 12px;z-index:6}
#tut.jit .tip-ic{background:linear-gradient(var(--sun),var(--sun-d));box-shadow:0 3px 0 #a86a08}
#tut.jit .tip-ic img,#tut.jit .tip-ic svg{width:20px;height:20px}
#tut.jit .tip-txt{flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:break-word}
#tut.jit .tip-x{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 0 var(--teal-d)}
#tut.jit .tip-x svg{width:18px;height:18px}
.menu .row.modes{gap:10px}.menu .row.modes .btn{flex:1 1 0;min-width:0;flex-direction:column;gap:3px;padding:10px 4px 11px;font-size:17px;letter-spacing:.3px}.menu .row.modes .btn .ic,.menu .row.modes .btn svg{width:24px;height:24px}
/* #10 weekly events */
.ev-pill{font:inherit;color:var(--ink);cursor:pointer;padding:4px 12px 4px 5px;gap:7px;border-color:#fff;background:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.78));box-shadow:0 0 0 3px var(--ec),0 8px 18px -8px var(--ed);animation:evbob 3s ease-in-out infinite}
.ev-pill span{display:flex;flex-direction:column;line-height:1.02;text-align:left}.ev-pill b{font-size:15px;font-weight:400}.ev-pill small{font-size:11.5px;color:var(--ink2)}
.ev-pill .ev-ic{flex:none}
@keyframes evbob{50%{transform:translateY(-2px)}}
.ev-card .ribbon{background:linear-gradient(color-mix(in srgb,var(--rc) 70%,#fff),var(--rc))}
.ev-hero{display:flex;align-items:center;gap:12px;text-align:left;margin:4px 4px 10px}.ev-hero p{margin:0;font-size:15px;line-height:1.3;color:var(--ink)}.ev-hero svg{flex:none}
.ev-track{margin:14px 14px 6px}.ev-bar{position:relative;height:14px;border-radius:9px;background:rgba(43,45,66,.12)}
.ev-bar>i{position:absolute;left:0;top:0;bottom:0;width:var(--p);border-radius:9px;background:linear-gradient(90deg,var(--ec),var(--ed))}
.ev-pay .ev-bar>i{width:var(--p0);transition:width .9s var(--ease-out)}.ev-pay.go .ev-bar>i{width:var(--p)}
.ev-stop{position:absolute;top:50%;transform:translate(-50%,-50%);min-width:24px;height:24px;border-radius:12px;background:#fff;border:2px solid rgba(43,45,66,.18);font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;color:var(--ink2)}
.ev-stop:last-child{background:none;border:0;min-width:30px;height:30px}.ev-stop.on{border-color:var(--ed);color:var(--ed)}.ev-stop:last-child:not(.on) svg{filter:grayscale(.85) opacity(.6)}
.ev-count{font-size:15px;display:flex;align-items:center;justify-content:center;gap:6px;margin:6px 0}
.ev-rw{list-style:none;margin:6px 0;padding:0;display:grid;gap:6px}.ev-rw li{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:6px 10px;font-size:15px;text-align:left}
.ev-rw li span:nth-child(2){flex:1}.ev-rw .ev-k{min-width:30px;height:26px;border-radius:13px;background:rgba(43,45,66,.08);display:flex;align-items:center;justify-content:center;font-size:14px}
.ev-rw li.done{opacity:.6}.ev-rw li .ic{width:20px;height:20px;color:var(--teal)}
.ev-next{font-size:13px;color:var(--ink2);margin:6px 8px}
.ev-pay{display:flex;align-items:center;gap:10px;margin:10px auto 4px;max-width:340px;background:#fff;border-radius:16px;padding:8px 12px;text-align:left}
.ev-pay>div{flex:1;min-width:0}.ev-pay b{font-weight:400;font-size:17px;margin-right:8px}.ev-pay small{font-size:13px;color:var(--ink2)}.ev-pay .ev-track{margin:8px 6px 2px}
.ev-pay .ev-stop{min-width:20px;height:20px;font-size:10px}.ev-pay .ev-stop:last-child{min-width:26px;height:26px}
.ev-got{display:flex;align-items:center;justify-content:center;gap:6px;font-size:15px;color:var(--ink);margin:6px 0}
.ev-shelf{display:flex;justify-content:space-around;padding:8px 4px 10px}.ev-tro{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px}
.ev-tro:not(.own) .ev-trophy{filter:grayscale(1) opacity(.35)}.ev-tro.own .ev-trophy{filter:drop-shadow(0 6px 6px rgba(0,0,0,.18));animation:evbob 3s ease-in-out infinite}.ev-stop .ev-trophy{display:block}
/* ---------- VFX polish: praise banner, results beats, reduced motion ---------- */
#praise{position:absolute;z-index:7;transform:translate(-50%,-50%);pointer-events:none;display:grid;place-items:center;width:0;height:0}
#praise b{position:relative;font:400 clamp(34px,9vw,58px)/1 'Lilita One',system-ui;color:var(--pc);-webkit-text-stroke:7px #fff;paint-order:stroke fill;text-shadow:0 6px 0 rgba(43,45,66,.25),0 10px 24px rgba(43,45,66,.3);white-space:nowrap;animation:praiseIn 1.45s var(--ease-back) both}
#praise b::after{content:attr(data-t);position:absolute;inset:0;color:var(--pc);-webkit-text-stroke:0;text-shadow:none;background:linear-gradient(transparent 45%,rgba(255,255,255,.45) 50%,transparent 55%);-webkit-background-clip:text;background-clip:text}
#praise .rays{position:absolute;width:min(78vw,420px);aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(color-mix(in srgb,var(--pc) 55%,#fff) 0 10deg,transparent 10deg 30deg);-webkit-mask:radial-gradient(closest-side,#000 20%,transparent 100%);mask:radial-gradient(closest-side,#000 20%,transparent 100%);opacity:0;animation:raysIn 1.45s ease-out both,raysSpin 6s linear infinite}
#praise.t0 .rays{width:min(56vw,300px)}#praise.t2 b{font-size:clamp(38px,10.5vw,66px)}
@keyframes praiseIn{0%{transform:scale(0) rotate(-4deg);opacity:0}22%{transform:scale(1.25) rotate(4deg);opacity:1}38%{transform:scale(1) rotate(-1deg)}80%{transform:scale(1) rotate(0);opacity:1}100%{transform:scale(.9) translateY(-14px);opacity:0}}
@keyframes raysIn{0%{opacity:0;transform:scale(.3)}25%{opacity:.75;transform:scale(1)}75%{opacity:.6}100%{opacity:0;transform:scale(1.1)}}
@keyframes raysSpin{to{rotate:360deg}}
/* results: stars slam in, the card thuds, bars fill on cue, customer cameo */
.pay-card.seq .stars3 .slot.on .full{animation:starslam .42s cubic-bezier(.2,.9,.3,1.25) forwards}
@keyframes starslam{0%{transform:scale(1.9) rotate(-18deg);opacity:0}55%{transform:scale(.9) rotate(3deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
.pay-card.thud{animation:cardthud .22s ease-out}@keyframes cardthud{30%{transform:translateY(4px) scale(.995)}}
.pay-card.seq:not(.fill) .nu-pay .nu-bar i{animation-play-state:paused}
.pay-card.seq .best-bar i::after{width:0;transition:width 1s var(--ease-out)}.pay-card.seq.fill .best-bar i::after{width:var(--p)}
.pay-card.seq .pay-client{opacity:0;transform:translateY(10px) scale(.8)}
.pay-card.seq .pay-client.cameo{opacity:1;transform:none;transition:opacity .3s,transform .5s var(--ease-back)}
.pay-card.seq .pay-client.cameo img{animation:cameo .9s var(--ease-back)}@keyframes cameo{0%{transform:scale(.4) rotate(-12deg)}60%{transform:scale(1.15) rotate(6deg)}100%{transform:none}}
.coin-pill.bump{transform:scale(1.2)}
@media (prefers-reduced-motion:reduce){
  #praise b{animation:praiseFade 1.4s ease both}#praise .rays{display:none}
  .pay-card.seq .stars3 .slot.on .full{animation:praiseFade .3s ease forwards}.pay-card.thud{animation:none}
  .pay-card.seq .pay-client.cameo img{animation:none}.flycoin{display:none}
}
.pay-card.rm .stars3 .slot.on .full{animation:praiseFade .3s ease forwards}
@keyframes praiseFade{0%{opacity:0}20%{opacity:1}100%{opacity:1}}
#praise.rm b{animation:praiseFade 1.4s ease both}#praise.rm .rays{display:none}
#praise b,#praise .rays{position:absolute;left:0;top:0;translate:-50% -50%}
#praise .rays,#praise b{will-change:transform,opacity}
/* ---------- Profile page (art-brief/visual_push_profile_and_icons.md §2) ---------- */
#scr-profile{background:url(../assets/img/menu_bg_portrait.webp) center/cover;overflow-y:auto;-webkit-overflow-scrolling:touch}
body.wide #scr-profile{background-image:url(../assets/img/menu_bg_wide.webp)}
#scr-profile .pf-dim{position:fixed;inset:0;background:linear-gradient(rgba(60,40,110,.35),rgba(40,30,80,.55));backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);pointer-events:none}
.pf-app{position:relative;min-height:100%;padding:max(14px,env(safe-area-inset-top)) 14px 24px;box-sizing:border-box}
.pf-top{display:flex;align-items:center;gap:10px;max-width:1120px;margin:0 auto}
.pf-rbtn{width:46px;height:46px;border:0;border-radius:16px;background:rgba(255,255,255,.8);display:grid;place-items:center;box-shadow:0 4px 0 rgba(0,0,0,.15);cursor:pointer}.pf-rbtn .ic{width:30px;height:30px}
.pf-ttl{flex:1;text-align:center;font-size:26px;color:#fff;text-shadow:0 3px 0 var(--coral-d),0 0 1px #000}
.pf-card{background:var(--cream);border-radius:28px;box-shadow:0 10px 0 #e8d3b2,0 18px 30px -10px rgba(40,20,60,.5);padding:14px;margin-top:14px}
.pf-hero{display:flex;flex-direction:column;align-items:center;padding-top:8px}
.pf-avwrap{position:relative;width:128px;height:128px}
.pf-av{position:relative;width:100%;height:100%}.pf-av .face{position:absolute;left:14%;top:14%;width:72%;height:72%;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 35% 30%,#fff3d6,#ffd28a)}
.pf-av .face img{width:100%;height:100%;object-fit:cover;display:block}.pf-av .ring{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#pf-me,#pf-me .pf-av{width:100%;height:100%}#pf-me canvas{display:block;margin:10px auto 0}
.pf-lvl{position:absolute;right:-4px;bottom:4px;width:44px;height:44px;border-radius:50%;background:linear-gradient(#8f80ff,var(--violet));color:#fff;display:grid;place-items:center;font-size:20px;border:3px solid #fff;box-shadow:0 3px 0 var(--violet-d);box-sizing:border-box}
.pf-edit{position:absolute;left:-2px;bottom:6px;width:36px;height:36px;border:0;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 3px 0 rgba(0,0,0,.15);cursor:pointer;padding:0}.pf-edit .ic{width:24px;height:24px}
.pf-name{font:inherit;font-size:26px;color:var(--ink);text-align:center;border:0;background:transparent;width:100%;max-width:280px;margin-top:2px;padding:2px 6px;border-radius:12px}.pf-name:focus{outline:none;background:#fff}.pf-name::placeholder{color:#b9a98f}
.pf-title{font-size:14px;color:var(--teal-d);background:#d9f5f0;border-radius:99px;padding:2px 10px}
.pf-xp{width:100%;margin-top:10px}.pf-xp .bar{height:20px;border-radius:99px;background:#eadfcd;box-shadow:inset 0 2px 0 rgba(0,0,0,.08);overflow:hidden;position:relative}
.pf-xp .bar i{position:absolute;inset:0;width:var(--p);border-radius:99px;background:linear-gradient(#ffd766,var(--sun));box-shadow:inset 0 -3px 0 var(--sun-d),inset 0 3px 0 rgba(255,255,255,.6)}
.pf-xp .bar span{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;color:#7a4c00}
.pf-xp .lab{display:flex;justify-content:space-between;font-size:13px;color:var(--ink2);margin-top:3px}
.pf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px;width:100%}
.pf-st{background:#fff;border-radius:18px;padding:8px 4px 6px;text-align:center;box-shadow:0 4px 0 #eadfcd}.pf-st .ic{width:30px;height:30px;display:block;margin:0 auto}.pf-st b{display:block;font-size:20px;line-height:1.05;font-weight:400}.pf-st small{font-size:11px;color:var(--ink2)}
.pf-sec{font-size:17px;margin:8px 4px 4px;display:flex;justify-content:space-between;align-items:center}.pf-sec.first{margin-top:0}.pf-sec small{font-size:12px;color:var(--ink2)}
.pf-shelf{display:flex;gap:4px;padding:2px 8px 16px;background:linear-gradient(transparent 70%,#c98f5a 70%,#b47645 86%,#8c5530 86%);border-radius:0 0 12px 12px;min-height:56px;align-items:flex-end}
.pf-shelf img{flex:1 1 0;min-width:0;max-width:64px;object-fit:contain;filter:drop-shadow(0 4px 2px rgba(80,40,10,.3))}.pf-shelf .lockk{opacity:.35;filter:grayscale(1) brightness(.6)}
.pf-shelf p{margin:0 0 18px;font-size:13px;color:var(--ink2);text-align:center;width:100%}
.pf-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.pf-pick{position:relative;aspect-ratio:1;border-radius:50%;padding:0;background:radial-gradient(circle at 35% 30%,#fff3d6,#ffd28a);box-shadow:0 3px 0 #e2c193;overflow:hidden;border:3px solid #fff;cursor:pointer}
.pf-pick img{width:100%;height:100%;object-fit:cover;display:block}.pf-pick.on{border-color:var(--teal);box-shadow:0 0 0 3px #bff0e8,0 3px 0 var(--teal-d)}
.pf-pick.lk img{filter:grayscale(.9) brightness(.75)}.pf-pick.lk::after{content:'';position:absolute;inset:28%;background:url(../assets/img/icons/icon_lock.png) center/contain no-repeat}
.pf-frames{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pf-fr{font:inherit;color:var(--ink);border:0;background:#fff;border-radius:18px;padding:4px;text-align:center;box-shadow:0 4px 0 #eadfcd;position:relative;cursor:pointer}.pf-fr img{width:78%;max-width:96px;display:block;margin:0 auto}.pf-fr small{display:block;font-size:12px}.pf-fr em{font-style:normal;font-size:10px;color:var(--ink2)}
.pf-fr.on{outline:3px solid var(--teal)}.pf-fr.lk img{filter:grayscale(.6) brightness(.85)}
.pf-fr .tag{position:absolute;top:-6px;right:-4px;background:var(--coral);color:#fff;font-size:10px;padding:2px 6px;border-radius:99px}
.pf-save{display:flex;justify-content:center;margin-top:8px}.pf-save .btn{padding:9px 28px;font-size:18px}.pf-save .btn:disabled{opacity:.55;filter:grayscale(.3)}
.pf-fine{font-size:11px;color:var(--ink2);text-align:center;margin:8px 0 0}.pf-fine a{color:var(--ink2)}
#pf-err:empty{display:none}
body.wide .pf-app{padding:20px 40px}
body.wide .pf-cols{display:grid;grid-template-columns:380px minmax(0,1fr);gap:22px;max-width:1120px;margin:2px auto 0}
body.wide .pf-avwrap{width:200px;height:200px}body.wide .pf-stats{margin-top:14px}body.wide .pf-st .ic{width:40px;height:40px}
body.wide .pf-grid{grid-template-columns:repeat(12,minmax(0,1fr))}body.wide .pf-fr img{max-width:110px}body.wide .pf-shelf img{max-width:84px}body.wide .pf-sec{margin:14px 4px 8px}body.wide .pf-sec.first{margin-top:0}
/* in-game request chips: clay icon <img> stays inside its icon box (it was picking up the 38px .req img rule and overlapping the text) */
.req .ic{flex:none}.req .ic img,body.wide .req .ic img{width:100%;height:100%}
.req.wrap-req span{white-space:normal;line-height:1.15}
#g-client.none,body.wide #g-client.none{display:none}
.pf-edit{z-index:3}.pf-grid.pulse{animation:pfPulse .9s ease-out 1;border-radius:18px}
@keyframes pfPulse{0%{box-shadow:0 0 0 0 rgba(32,184,160,.7)}100%{box-shadow:0 0 0 14px rgba(32,184,160,0)}}
.pf-pick:focus-visible,.pf-pick:focus{outline:3px solid var(--teal);outline-offset:2px}
/* Bubble Wrap tool button (player-chosen) */
#btn-wrap .price{padding:2px 7px;background:#2fd4a6;color:#fff}
#btn-wrap.empty{filter:grayscale(.85);opacity:.6}#btn-wrap.empty .price{background:#fff;color:var(--ink2)}
#btn-wrap.picking{outline:4px solid #7fd3ff;outline-offset:2px;animation:wrapPick .8s ease-in-out infinite alternate}
@keyframes wrapPick{to{outline-color:rgba(127,211,255,.3)}}
@media (prefers-reduced-motion:reduce){#btn-wrap.picking{animation:none}}
/* Endless rework: no stars, just the packing target on the meter */
#g-meter.endless .mstar{display:none}
#g-meter.endless #g-minfill{width:6px;margin-left:-3px;top:-4px;bottom:-4px}
#g-meter.endless.passed #g-meter-fill{background:linear-gradient(#5fe0a0,#2fae6f)}
.req.tg-req{border-color:#ffd36e}.req.tg-req.ok{border-color:#2fae6f;background:rgba(220,255,236,.85)}
.pf-fr em .pf-prog,.pf-fr em .pf-ev{display:block;font-size:.85em;opacity:.85;font-style:normal}
.pf-fr em svg{width:1em;height:1em;vertical-align:-2px}
#g-requests:empty{display:none}
/* namebox: home-screen leaderboard name (agar.io style) */
.namebox{display:flex;align-items:center;gap:8px;width:min(100%,300px);margin:0 auto 8px;padding:4px 12px 4px 4px;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:0 3px 0 rgba(40,30,90,.12),0 8px 18px rgba(40,30,90,.12);backdrop-filter:blur(6px);transition:box-shadow .2s,transform .2s var(--ease-back,ease)}
.namebox.on{box-shadow:0 0 0 3px #22b8a7,0 8px 18px rgba(40,30,90,.16);transform:translateY(-1px)}
.nb-av{flex:none;width:38px;height:38px;border-radius:50%;border:0;padding:0;background:linear-gradient(#fff3d9,#ffd98a);box-shadow:inset 0 -2px 0 rgba(0,0,0,.08);cursor:pointer;overflow:hidden;transition:transform .15s}
.nb-av:active{transform:scale(.92)}.nb-av img{width:100%;height:100%;object-fit:cover;display:block}
.nb-field{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.05;cursor:text}
.nb-lbl{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8a8fa8}
#nb-name{all:unset;font:inherit;font-weight:800;font-size:17px;color:#2b2d42;width:100%;min-width:0;text-overflow:ellipsis}
.nb-pen{flex:none;width:18px;height:18px;opacity:.55}
.namebox.random .nb-pen{opacity:.9;animation:nbWig 2.4s ease-in-out 3}
@keyframes nbWig{0%,80%,100%{transform:none}85%{transform:rotate(-12deg)}92%{transform:rotate(10deg)}}
.namebox ~ .so-pb .so-pb-name{display:none}
.nb-ask{margin:6px 4px 14px;text-align:center}
@media (max-height:700px){.namebox{margin-bottom:5px}.nb-av{width:32px;height:32px}#nb-name{font-size:15px}}
/* shop bubble: never blocks the items, fades away */
#shop-say{pointer-events:none;transition:opacity .25s,transform .25s}
#shop-say.gone{opacity:0;transform:scale(.9)}
.keeper{cursor:pointer}
/* skin preview placeholder while the image loads (Looks tab) */
canvas.vprev.ld{background:linear-gradient(100deg,rgba(255,255,255,.35) 30%,rgba(255,255,255,.8) 50%,rgba(255,255,255,.35) 70%) 0 0/200% 100%,rgba(200,190,230,.35);border-radius:14px;animation:vpShim 1.2s linear infinite}
@keyframes vpShim{to{background-position:-200% 0,0 0}}
.title-top{gap:6px}.title-top>*{flex:0 1 auto;min-width:0}#ev-pill{overflow:hidden}
@media (max-width:400px){.ev-pill{padding-right:8px;gap:5px}.ev-pill b{font-size:13px;white-space:nowrap}.ev-pill small{font-size:10.5px;white-space:nowrap}.title-top .pill{padding-left:6px;padding-right:8px}}
/* hub-home: menu screens only, never in play or results */ body:has(#scr-game.active) #hub-home,body:has(#scr-rush.active) #hub-home{display:none!important}
/* iPad/WebKit (Rowan, 26 Oct): the results card collapsed to a narrow column; give it a fixed width that zoom scales, never a % of a zoomed flex box */
#modal>#modal-card:has(#pm-btns){flex:0 0 auto;width:min(400px,calc(100vw - 36px));min-width:min(300px,calc(100vw - 36px))}
/* no text/image selection, callout or drag on long-press anywhere in the game UI (the name fields stay editable) */
html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
img,canvas,svg{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
body.wide #modal>#modal-card:has(#pm-btns){width:min(460px,calc(100vw - 36px));max-width:none}
#nb-name,#pf-name,.so-in{-webkit-user-select:text;user-select:text}
