:root{
  --ink:#2a2140;--ink2:#6a5d86;--desk:#f6eefc;--line:#e9dcf8;
  --pink:#ff45a6;--pink-d:#c21f78;--violet:#7a4dff;--violet-d:#4d23c9;--gold:#ffc53d;--gold-d:#d8900c;
  --night1:#2a0f52;--night2:#4b1680;--night3:#8a2a93;
  --bar:rgba(255,255,255,.94);
  --font:Fredoka,"Baloo 2","Arial Rounded MT Bold",ui-rounded,system-ui,sans-serif;
  --st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px);--sl:env(safe-area-inset-left,0px);--sr:env(safe-area-inset-right,0px);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{font-family:var(--font);font-size:17px;line-height:1.3;color:var(--ink);background:var(--desk);
  -webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default}
a{color:inherit}
:focus-visible{outline:3px solid var(--violet);outline-offset:2px}
h1,h2{margin:0;font-weight:700;line-height:1.05}
[hidden]{display:none!important}
.small{font-size:15px;color:var(--ink2)}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- game layout: bar, the page, the jar tray ---- */
#app{position:fixed;inset:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;touch-action:none}
#bar{display:flex;align-items:center;gap:8px;z-index:2;background:var(--bar);box-shadow:0 2px 14px rgba(88,40,150,.1);
  padding:calc(7px + var(--st)) calc(10px + var(--sr)) 7px calc(10px + var(--sl))}
#prog{flex:1;min-width:0;display:flex;align-items:center;gap:8px;line-height:1.1}
#prog .pt{min-width:0;display:flex;flex-direction:column;justify-content:center}
#heroMini{display:none;flex:none;width:46px;height:46px;margin:-6px 0}
body.story #heroMini{display:block}
#heroMini.cheer{animation:cheer .7s cubic-bezier(.3,1.5,.5,1)}
@keyframes cheer{0%{transform:scale(1)}20%{transform:translateY(3px) scale(1.18,.8)}45%{transform:translateY(-10px) scale(.88,1.14) rotate(-6deg)}70%{transform:translateY(0) scale(1.06,.95) rotate(3deg)}100%{transform:none}}
#pgName{font-weight:600;font-size:15px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pgCount{display:flex;align-items:center;gap:5px;font-weight:700;font-size:21px}
#pgCount span{font-size:15px;color:var(--ink2);font-weight:600}
.mb{display:inline-block;flex:none;width:17px;height:17px;border-radius:50%;border:2px solid var(--ink);
  background:radial-gradient(circle at 34% 30%,#fff 0 16%,#f1eeff 28%,#c5c8e0 70%,#8b90b5)}
.ib{position:relative;flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#fff;border:2px solid var(--line);color:var(--ink);transition:transform .12s}
.ib svg{width:24px;height:24px}
.ib:active{transform:scale(.92)}
.ib:disabled{opacity:.38}
#bHint{background:conic-gradient(#efe6ff calc(var(--cd,1) * 1turn),#fff 0)}
#bHint.ready{border-color:#ffd66b;color:#8a4f00;background:#fff7dc}
#bHint.nudge{animation:hintglow 1.6s ease-in-out infinite}
@keyframes hintglow{50%{box-shadow:0 0 0 4px rgba(255,197,61,.35)}}
#stage{position:relative;min-height:0;overflow:hidden;touch-action:none;background:var(--desk)}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#stage.painting #cv{cursor:crosshair}
#bFit{position:absolute;right:calc(12px + var(--sr));bottom:12px;box-shadow:0 4px 14px rgba(88,40,150,.18)}
#coach{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);margin:0;width:max-content;max-width:min(90%,470px);pointer-events:none;
  background:var(--ink);color:#fff;font-size:16px;font-weight:500;line-height:1.3;text-align:center;padding:10px 16px;border-radius:16px;
  box-shadow:0 8px 24px rgba(42,33,64,.3);animation:coachin .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes coachin{from{opacity:0;transform:translate(-50%,14px) scale(.9)}}
#tray{display:flex;align-items:center;gap:10px;z-index:2;background:var(--bar);box-shadow:0 -2px 14px rgba(88,40,150,.1);
  padding:6px calc(10px + var(--sr)) calc(6px + var(--sb)) calc(10px + var(--sl))}
.tool{flex:none;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2.5px solid var(--line);color:var(--ink);transition:transform .15s,box-shadow .15s}
.tool svg{width:30px;height:30px}
.tool[aria-pressed="true"]{border-color:var(--violet);box-shadow:0 0 0 3px #e4d9ff;transform:translateY(-3px)}
#jars{flex:1;min-width:0;display:flex;gap:6px;align-items:flex-end;overflow-x:auto;overflow-y:visible;padding:10px 2px 2px;scrollbar-width:none}
#jars::-webkit-scrollbar{display:none}
.jar{position:relative;flex:0 0 auto;width:46px;height:58px;display:flex;align-items:flex-end;justify-content:center;transition:transform .18s cubic-bezier(.3,1.5,.5,1)}
.jar::before{content:"";position:absolute;top:2px;left:50%;width:30px;height:10px;transform:translateX(-50%);border:2.5px solid var(--ink);border-radius:5px;background:var(--gc,#fff);z-index:1}
.jar .glass{position:relative;display:block;width:42px;height:46px;border:2.5px solid var(--ink);border-radius:9px 9px 15px 15px;background:#fff;overflow:hidden}
.jar .glass i{position:absolute;inset:0;background-size:64px;background-position:center;transform-origin:50% 100%;transition:transform .7s cubic-bezier(.3,1.3,.5,1)}
.jar .glass::after{content:"";position:absolute;left:5px;top:6px;width:6px;height:22px;border-radius:6px;background:rgba(255,255,255,.62);z-index:1}
.jar.pending .glass i{transform:scaleY(0)}
.jar[aria-pressed="true"]{transform:translateY(-8px)}
.jar[aria-pressed="true"] .glass{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--violet)}
.jar[aria-pressed="true"]::after{content:"";position:absolute;bottom:-9px;left:50%;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:var(--violet)}
.jar.mystery::before{border-color:#cdbde8;border-style:dashed;background:#fbf8ff}
.jar.mystery .glass{border-color:#cdbde8;border-style:dashed;background:#fbf8ff;display:grid;place-items:center}
.jar.mystery .glass::after{display:none}
.jar.mystery em{font-style:normal;font-weight:700;font-size:20px;color:#bba8de}
.jar.gulp{animation:gulp .22s ease-out}
@keyframes gulp{40%{transform:scale(1.14,.9)}}
.jar.pop{animation:jarpop .7s cubic-bezier(.3,1.6,.5,1)}
@keyframes jarpop{0%{transform:scale(.6)}50%{transform:scale(1.25) rotate(-6deg)}}

/* ---- Lost & Found: the lost things in the tray ---- */
#slots{--s:clamp(42px,calc((100vw - 36px - var(--sl) - var(--sr)) / var(--n,5) - 8px),58px);display:none;flex:1;min-width:0;gap:8px;align-items:center;justify-content:flex-start;overflow-x:auto;padding:8px 2px 4px;scrollbar-width:none}
#slots .slot:first-child{margin-left:auto}#slots .slot:last-child{margin-right:auto}
#slots::-webkit-scrollbar{display:none}
body.story #slots{display:flex}
body.story #jars,body.story #tHunt,body.story #bUndo{display:none}
.slot{position:relative;flex:0 0 auto;width:var(--s,58px);height:var(--s,58px);border-radius:18px;background:#f4eefc;border:2.5px dashed #cdbde8;display:grid;place-items:center;transition:transform .2s}
.slot .pic{display:grid;place-items:center}
.slot img{width:calc(var(--s,58px) - 10px);height:calc(var(--s,58px) - 10px);display:block;filter:saturate(.2) opacity(.5)}
.slot.got{background:#fff;border:2.5px solid #ffd66b;box-shadow:0 3px 0 #f1dca0}
.slot.got img{filter:none}
.slot .ck{position:absolute;right:-6px;bottom:-6px;width:24px;height:24px;border-radius:50%;background:#2fbf6a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%;border:2.5px solid #fff;display:none;box-shadow:0 2px 4px rgba(0,0,0,.18)}
.slot.got .ck{display:block}
.slot.land{animation:slotland .65s cubic-bezier(.3,1.6,.5,1)}
.slot.land .ck{animation:ckpop .5s .12s cubic-bezier(.3,1.9,.5,1) both}
@keyframes slotland{0%{transform:translateY(4px) scale(1.4,.66)}35%{transform:translateY(-6px) scale(.86,1.16)}65%{transform:scale(1.06,.95)}100%{transform:none}}
@keyframes ckpop{from{transform:scale(0) rotate(-40deg)}}
.slot.wig,.sti.wig,.stk.wig{animation:wig .45s ease-in-out}
@keyframes wig{20%{transform:rotate(-9deg) scale(1.08)}45%{transform:rotate(7deg) scale(1.08)}70%{transform:rotate(-4deg)}}

/* ---- opening a ball ---- */
#fxl{position:fixed;inset:0;pointer-events:none;z-index:20;overflow:hidden}
#fx{position:absolute;left:0;top:0;width:100%;height:100%}
#fxl .fl{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform,opacity;pointer-events:none}
#fxl .fl-dim,#fxl .fl-flash{left:-24px;top:-24px;right:-24px;bottom:-24px;will-change:opacity}
#fxl .fl-dim{background:radial-gradient(circle at 50% 44%,rgba(58,24,104,.525) 0,rgba(20,8,40,.64) 75vmax)}
#fxl .fl-flash{background:#fff}
#fxl .fl-shadow{width:200px;height:40px;border-radius:50%;background:radial-gradient(closest-side,rgba(16,4,34,.55),rgba(16,4,34,0))}
#blast{position:fixed;inset:0;z-index:21;touch-action:none;cursor:pointer}
#blTap{position:absolute;left:0;right:0;top:calc(44% + 20vmin + 22px);margin:0;text-align:center;color:#fff;font-weight:700;font-size:clamp(26px,6.5vmin,44px);
  text-shadow:0 3px 0 rgba(42,10,80,.6),0 0 22px rgba(255,120,210,.7);opacity:0;transition:opacity .3s}
#blast.wait #blTap{opacity:1;animation:tapbob 1.1s ease-in-out infinite}
@keyframes tapbob{50%{transform:translateY(-6px) scale(1.04)}}
#blName{position:absolute;left:50%;top:44%;display:flex;align-items:center;gap:14px;padding:10px 26px 10px 10px;background:#fff;border-radius:999px;
  box-shadow:0 10px 0 rgba(42,10,80,.35),0 0 60px var(--gc,#fff);transform:translate(-50%,-50%) scale(0);opacity:0;white-space:nowrap;max-width:94vw}
#blName .sw{flex:none;width:clamp(52px,13vmin,78px);height:clamp(52px,13vmin,78px);border-radius:50%;border:3.5px solid var(--ink);background:var(--sw) center/90px}
#blName .tx{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#blName small{font-size:clamp(14px,3.4vmin,19px);font-weight:600;color:var(--ink2);text-transform:uppercase;letter-spacing:.08em}
#blName b{font-size:clamp(24px,6.4vmin,42px);font-weight:700;line-height:1.05;overflow:hidden;text-overflow:ellipsis}
#blName.q1 small{color:#b27800}
#blName.q2 small{background:linear-gradient(90deg,#ff3fa4,#ff9d2e,#ffd83a,#3fd07c,#35b6ff,#8a5cff);-webkit-background-clip:text;background-clip:text;color:transparent}
#blast.boom #blName{animation:namepop 1.6s cubic-bezier(.2,1.5,.4,1) forwards}
#blast.story #blName{top:calc(44% + 21vmin + 18px)}
#blast.boom.story #blName{animation:namepop 1.6s .5s cubic-bezier(.2,1.5,.4,1) both}
#blName.story{padding:10px 26px;box-shadow:0 10px 0 rgba(42,10,80,.35),0 0 60px rgba(255,214,107,.8)}
#blName.story .sw{display:none}
#blName.story .tx{align-items:center}
#blast.collect #blName{animation:nameout .45s ease-in forwards}
@keyframes namepop{0%{transform:translate(-50%,-50%) scale(0) rotate(-8deg);opacity:0}12%{opacity:1}30%{transform:translate(-50%,-50%) scale(1.08) rotate(2deg);opacity:1}45%,100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@keyframes nameout{from{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,40%) scale(.5);opacity:0}}
#toasts{position:fixed;left:50%;top:calc(66px + var(--st));transform:translateX(-50%);z-index:40;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;width:max-content;max-width:92vw}
.toast{background:#fff;color:var(--ink);font-weight:500;font-size:16px;padding:8px 16px;border-radius:14px;box-shadow:0 6px 20px rgba(88,40,150,.2);animation:tin .25s ease-out;text-align:center}
.toast.out{opacity:0;transition:opacity .4s}
@keyframes tin{from{opacity:0;transform:translateY(-8px)}}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 22px;border-radius:999px;font-weight:600;font-size:18px;
  background:#fff;color:var(--ink);border:2.5px solid var(--line);text-decoration:none;box-shadow:0 4px 0 var(--line);transition:transform .1s,box-shadow .1s}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--line)}
.btn.primary{background:linear-gradient(180deg,#ff72c0,var(--pink));color:#fff;border-color:transparent;box-shadow:0 5px 0 var(--pink-d),0 10px 26px rgba(255,69,166,.35)}
.btn.primary:active{box-shadow:0 2px 0 var(--pink-d)}
.btn.gold{background:linear-gradient(180deg,#ffe07a,var(--gold));color:#4a2a00;border-color:transparent;box-shadow:0 5px 0 var(--gold-d),0 10px 26px rgba(255,197,61,.35)}
.btn.gold:active{box-shadow:0 2px 0 var(--gold-d)}
.btn.big{min-height:62px;font-size:24px;padding:12px 38px}
.btn.sm{min-height:40px;font-size:16px;padding:6px 16px}
.btn.wide{width:100%}
.btn.ghost{background:transparent;box-shadow:none;border-color:transparent;color:var(--ink2)}
.chip{min-height:40px;padding:6px 15px;border-radius:999px;font-size:16px;font-weight:500;background:rgba(255,255,255,.14);border:2px solid rgba(255,255,255,.35);color:inherit}
.chip[aria-pressed="false"]{opacity:.72}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.seg{display:inline-flex;padding:4px;gap:2px;border-radius:999px;background:rgba(255,255,255,.14);border:2px solid rgba(255,255,255,.28)}
.seg-b{min-height:40px;padding:6px 18px;border-radius:999px;font-weight:600;font-size:17px;color:inherit;opacity:.85}
.seg-b[aria-pressed="true"]{background:#fff;color:var(--ink);opacity:1;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.seg.light{background:#f3ecfc;border-color:var(--line)}
.seg.light .seg-b[aria-pressed="true"]{background:var(--violet);color:#fff}

/* ---- the title's two games ---- */
.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:min(580px,100%);margin-top:4px}
.mode{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 10px 16px;border-radius:28px;color:#fff;text-align:center;
  border:3px solid rgba(255,255,255,.55);box-shadow:0 7px 0 rgba(26,6,52,.5),0 16px 34px rgba(26,6,52,.35);transition:transform .12s,box-shadow .12s}
.mode:active{transform:translateY(5px);box-shadow:0 2px 0 rgba(26,6,52,.5),0 8px 20px rgba(26,6,52,.3)}
.mode.lf{background:linear-gradient(170deg,#ffc34d,#ff6f91 58%,#b94dff)}
.mode.gl{background:linear-gradient(170deg,#6fdcff,#8a5cff 62%,#ff5fb6)}
.mode b{font-size:clamp(22px,5.6vw,31px);font-weight:700;line-height:1.05;text-shadow:0 3px 0 rgba(42,10,80,.35)}
.mode small{font-size:clamp(13px,3.4vw,15px);font-weight:500;opacity:.95;line-height:1.2}
.mimg{position:relative;display:block;width:100%;height:clamp(86px,21vw,128px);margin-bottom:4px}
.mimg i{position:absolute;bottom:0;background:center/contain no-repeat}
.mode.lf .mimg i{width:46%;height:92%}
.mode.lf .mimg i:nth-child(1){left:2%;transform:rotate(-8deg);animation:float 5s ease-in-out infinite}
.mode.lf .mimg i:nth-child(2){left:27%;width:50%;height:100%;z-index:1;animation:float 4.2s -1s ease-in-out infinite}
.mode.lf .mimg i:nth-child(3){right:2%;transform:rotate(8deg);animation:float 5.4s -2s ease-in-out infinite}
.mode.gl .mimg i{left:50%;top:6%;width:clamp(70px,17vw,104px);height:clamp(70px,17vw,104px);margin-left:calc(clamp(70px,17vw,104px) / -2);border-radius:50%;border:3.5px solid rgba(42,16,80,.85);
  background:radial-gradient(circle at 34% 30%,#fff 0 14%,#f6f2ff 26%,#c9cce3 68%,#8a8fb4);box-shadow:0 0 34px rgba(255,190,240,.7);animation:float 4s ease-in-out infinite}
.mode.gl .mimg i::after{content:"";position:absolute;inset:-4px;border-radius:50%;background:var(--glit1) center/80px;mix-blend-mode:overlay;opacity:.9}
#tCont{margin-top:2px}
.star{display:inline-block;width:20px;height:20px;background:linear-gradient(#ffe27a,#ffb41f);clip-path:polygon(50% 0,61.8% 34.5%,98% 35.4%,69.1% 57.3%,79.4% 91.5%,50% 70.5%,20.6% 91.5%,30.9% 57.3%,2% 35.4%,38.2% 34.5%)}

/* ---- the road to the Moon ---- */
#sMap,#sBook{display:flex;flex-direction:column;overflow:hidden}
#sMap{background:#0d0b30}
.mtop{position:relative;z-index:3;flex:none;display:flex;align-items:center;gap:10px;padding:calc(10px + var(--st)) calc(12px + var(--sr)) 10px calc(12px + var(--sl));background:rgba(255,255,255,.95);box-shadow:0 2px 14px rgba(88,40,150,.18)}
.mtop h2{flex:1;min-width:0;font-size:clamp(19px,4.8vw,28px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mstars{display:inline-flex;align-items:center;gap:5px;font-weight:700;font-size:20px;padding:4px 12px 4px 8px;border-radius:999px;background:#fff7dc;border:2px solid #ffd66b;color:#6a4200}
#mapScroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#mapIn{position:relative;width:100%}
.band{position:absolute;left:0;right:0}
.band.dim{filter:saturate(.45) brightness(.92)}
.band.night::after{content:"";position:absolute;inset:0;opacity:.85;pointer-events:none;
  background-image:radial-gradient(1.6px 1.6px at 12% 18%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 78% 12%,#fff 50%,transparent 51%),radial-gradient(1.8px 1.8px at 88% 44%,#ffe9a8 50%,transparent 51%),radial-gradient(1.2px 1.2px at 24% 36%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 52% 8%,#ffd6f2 50%,transparent 51%),radial-gradient(1.2px 1.2px at 62% 28%,#fff 50%,transparent 51%),radial-gradient(1.6px 1.6px at 6% 52%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 94% 24%,#fff 50%,transparent 51%);background-size:100% 420px}
.lane{position:absolute;left:50%;top:0;width:min(620px,100%);transform:translateX(-50%)}
.road{position:absolute;left:0;top:0;width:100%;pointer-events:none;overflow:visible}
.road path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.road .r0{stroke:rgba(255,255,255,.6);stroke-width:30}
.road .r1{stroke:#fff;stroke-width:5;stroke-dasharray:1 13}
.road .r2{stroke:#ffc53d;stroke-width:9;opacity:.95}
.node{position:absolute;z-index:2;transform:translate(-50%,-50%);width:84px;height:84px;display:grid;place-items:center}
.node .disc{width:80px;height:80px;border-radius:50%;background:#fff;border:4px solid #fff;display:grid;place-items:center;box-shadow:0 5px 0 rgba(42,20,80,.28),0 10px 20px rgba(42,20,80,.22);transition:transform .15s}
.node:active .disc{transform:scale(.92)}
.node img{width:64px;height:64px;display:block}
.node.locked .disc{background:#efe9f7;border-color:#dbd0ec;box-shadow:0 4px 0 rgba(42,20,80,.15)}
.node.done .disc{border-color:#ffd66b}
.node.next .disc{border-color:#ff5fb6;box-shadow:0 5px 0 rgba(42,20,80,.28),0 0 0 7px rgba(255,95,182,.3);animation:nodebob 1.2s ease-in-out infinite}
@keyframes nodebob{50%{transform:translateY(-8px) scale(1.06)}}
.node .num{position:absolute;top:-4px;left:-4px;min-width:28px;height:28px;padding:0 6px;border-radius:14px;background:var(--violet);color:#fff;font-weight:700;font-size:15px;display:grid;place-items:center;border:2.5px solid #fff}
.node.locked .num{background:#b9acd5}
.node .st{position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);display:flex;gap:1px}
.node .st i{width:20px;height:20px;background:#d9d0ea;clip-path:polygon(50% 0,61.8% 34.5%,98% 35.4%,69.1% 57.3%,79.4% 91.5%,50% 70.5%,20.6% 91.5%,30.9% 57.3%,2% 35.4%,38.2% 34.5%)}
.node .st i:nth-child(2){margin-top:4px}
.node .st i.on{background:linear-gradient(#ffe27a,#ffb41f)}
.node.locked .st{display:none}
.node.shake{animation:nshake .45s}
@keyframes nshake{20%{transform:translate(-56%,-50%)}40%{transform:translate(-44%,-50%)}60%{transform:translate(-54%,-50%)}80%{transform:translate(-47%,-50%)}}
.asign{position:absolute;left:50%;z-index:2;transform:translateX(-50%);white-space:nowrap;background:#fff;color:var(--ink);padding:7px 20px;border-radius:999px;font-size:19px;box-shadow:0 4px 0 rgba(42,20,80,.2),0 8px 18px rgba(42,20,80,.18)}
.gate{position:absolute;left:50%;z-index:3;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:10px 18px;border-radius:20px;background:linear-gradient(180deg,#7a55d9,#5b3aa8);color:#fff;font-size:21px;font-weight:700;border:3px solid #fff;box-shadow:0 5px 0 rgba(42,20,80,.35),0 12px 24px rgba(42,20,80,.3)}
.gate .lk{width:22px;height:26px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 26'%3E%3Cpath d='M5 11V8a6 6 0 0 1 12 0v3' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Crect x='2' y='11' width='18' height='14' rx='3.5' fill='%23ffd66b'/%3E%3C/svg%3E") center/contain no-repeat}
.gate .star{width:24px;height:24px}
.gate.open{background:linear-gradient(180deg,#ffd66b,#ffb41f);color:#5a3500}
.gate.opening{animation:gateopen 1.4s ease-in forwards}
@keyframes gateopen{0%{transform:translateX(-50%) scale(1)}20%{transform:translateX(-50%) scale(1.25) rotate(-4deg)}40%{transform:translateX(-50%) scale(1.15) rotate(4deg)}100%{transform:translateX(-50%) translateY(-60px) scale(.2);opacity:0}}
.deco{position:absolute;z-index:1;pointer-events:none}
.moonTop{position:absolute;left:50%;width:180px;height:180px;margin-left:-90px;border-radius:50%;background:radial-gradient(circle at 36% 30%,#fffdf0,#f6ecc4 52%,#dfcf96);box-shadow:0 0 70px rgba(255,240,180,.55),0 0 0 10px rgba(255,248,220,.12)}
.moonTop::before,.moonTop::after,.moonTop i{content:"";position:absolute;border-radius:50%;background:rgba(190,170,110,.35)}
.moonTop::before{width:38px;height:38px;left:34px;top:60px}
.moonTop::after{width:24px;height:24px;left:110px;top:104px}
.moonTop i{width:18px;height:18px;left:104px;top:40px}

/* ---- the story card and the win card ---- */
.sheet.storyc{align-items:center;text-align:center;gap:10px;padding-top:14px}
#stHero{width:150px;height:150px;margin:-4px auto -8px;animation:herobob 2.6s ease-in-out infinite}
@keyframes herobob{50%{transform:translateY(-6px) rotate(-2deg)}}
#stTitle{font-size:28px}
#stText{margin:0;font-size:19px;line-height:1.42}
.chip.read{display:inline-flex;align-items:center;gap:6px}
.chip.read svg{width:20px;height:20px}
.stLost{width:100%;background:#fbf7ff;border:2px solid var(--line);border-radius:20px;padding:8px 8px 10px}
.stLost small{display:block;font-weight:600;color:var(--ink2);text-transform:uppercase;letter-spacing:.06em;font-size:12.5px;margin-bottom:4px}
#stItems{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}
.sti{display:flex;flex-direction:column;align-items:center;width:76px;font-size:13px;font-weight:500;line-height:1.1;color:var(--ink)}
.sti img{width:58px;height:58px;display:block}
.sdiff{flex-wrap:wrap;justify-content:center}
.sdiff .seg-b{display:inline-flex;align-items:center;gap:6px;padding:6px 14px}
.ss{display:inline-block;height:15px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.4 6.6 7 .2-5.5 4.3 2 6.8L10 13.9 4.1 17.9l2-6.8L.6 6.8l7-.2z' fill='%23ffb41f'/%3E%3C/svg%3E") left center/16px 15px repeat-x}
.ss.s1{width:16px}.ss.s2{width:32px}.ss.s3{width:48px}
.sdiff .seg-b.got::after{content:"";width:16px;height:16px;border-radius:50%;background:#2fbf6a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%}
.sheet.win{padding-top:26px;gap:10px}
#wnHero{width:170px;height:170px;margin:-14px auto -26px;animation:dance 1.05s ease-in-out infinite;transform-origin:50% 90%}
@keyframes dance{0%,100%{transform:translateY(0) scale(1.07,.93)}22%{transform:translateY(-20px) scale(.94,1.07) rotate(-5deg)}50%{transform:translateY(0) scale(1.08,.92)}72%{transform:translateY(-20px) scale(.94,1.07) rotate(5deg)}}
.wstars{display:flex;justify-content:center;align-items:flex-end;gap:6px;height:74px}
.wstars i{width:56px;height:56px;background:#e6def3;clip-path:polygon(50% 0,61.8% 34.5%,98% 35.4%,69.1% 57.3%,79.4% 91.5%,50% 70.5%,20.6% 91.5%,30.9% 57.3%,2% 35.4%,38.2% 34.5%)}
.wstars i:nth-child(2){width:70px;height:70px;margin-bottom:8px}
.wstars i.on{background:linear-gradient(#fff1a0,#ffc53d 45%,#ff9d1a);animation:starpop .55s cubic-bezier(.3,1.9,.5,1) both}
@keyframes starpop{0%{transform:scale(0) rotate(-120deg)}60%{transform:scale(1.3) rotate(10deg)}100%{transform:none}}
#wnText{font-size:18px}
#wnSticker{color:#b04b9a;font-weight:600}
#wnGate{color:var(--violet-d);font-weight:600}
/* a wide, short screen: the story on the left, what to find and the buttons on the right */
@media (min-width:700px) and (max-height:860px){
  .sheet.storyc{width:min(820px,100%);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:22px;row-gap:10px;align-items:center;text-align:center}
  .storyc>#stHero,.storyc>#stTitle,.storyc>#stText,.storyc>.read{grid-column:1}
  .storyc>.stLost,.storyc>.stGo,.storyc>[data-a="close"]{grid-column:2}
  #stHero{grid-row:1;width:130px;height:130px}#stTitle{grid-row:2}#stText{grid-row:3;font-size:18px}.storyc>.read{grid-row:4;justify-self:center}
  .storyc>.stLost{grid-row:1 / span 2;align-self:end}.storyc>.stGo{grid-row:3 / span 2;align-self:center;gap:18px}.stGo>#stDiff{flex-wrap:nowrap}.storyc .sdiff .seg-b{padding:6px 10px;gap:4px}.storyc>[data-a="close"]{grid-row:5;margin-top:-6px}
}
@media (max-height:560px){
  .sheet.storyc{row-gap:6px;padding:10px 18px 10px}.storyc>[data-a="close"]{min-height:34px;padding:4px}
  #stHero{width:80px;height:80px}#stText{font-size:16px}#stTitle{font-size:23px}.sti img{width:46px;height:46px}.sti{width:64px}
  .storyc .btn.big{min-height:52px;font-size:21px}
  #wnHero{width:120px;height:120px;margin:-10px auto -18px}.wstars{height:56px}.wstars i{width:42px;height:42px}.wstars i:nth-child(2){width:52px;height:52px}
}
/* phones held upright: a tighter card, and the go button stays in view while the story scrolls */
@media (max-width:520px) and (orientation:portrait){
  .sheet.storyc{gap:8px;padding:12px 14px 14px}
  #stHero{width:104px;height:104px;margin:-4px auto -6px}#stTitle{font-size:24px}#stText{font-size:16.5px;line-height:1.38}
  .stLost{padding:6px 4px 8px}.sti{width:58px;font-size:12px}.sti img{width:46px;height:46px}#stItems{gap:2px}
  .storyc .sdiff .seg-b{padding:6px 8px;gap:3px;font-size:15px}
}
.stGo{position:sticky;bottom:0;z-index:1;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;background:#fff;padding-top:6px;margin-top:-6px}
#mMenu .sto{display:none}
#mMenu.story .sto{display:inline-flex}
#mMenu.story .gl{display:none!important}

/* ---- the sticker book ---- */
#sBook{background:linear-gradient(180deg,#fbf6ff,#f3e8ff)}
#bookPages{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px calc(14px + var(--sr)) calc(20px + var(--sb)) calc(14px + var(--sl));display:flex;flex-direction:column;gap:16px}
.bpage{width:100%;max-width:1100px;margin:0 auto;background:linear-gradient(160deg,var(--a),var(--b));border-radius:26px;padding:12px 14px 16px;border:3px solid #fff;box-shadow:0 5px 0 rgba(88,40,150,.12),0 12px 28px rgba(88,40,150,.1)}
.bpage h3{margin:0 0 6px;font-size:23px;color:var(--ink)}
.bgrid{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:flex-end}
.stk{display:flex;flex-direction:column;align-items:center;width:66px}
.stk img{width:60px;height:60px;display:block}
.stk.friend{width:86px}
.stk.friend img{width:76px;height:76px}
.stk small{font-size:13px;font-weight:600;line-height:1.1;text-align:center;color:var(--ink)}
.stk:not(.have) small{color:#9b8cbd}

/* ---- screens ---- */
.screen{position:fixed;inset:0;z-index:10;overflow:auto;-webkit-overflow-scrolling:touch}
#sTitle{display:grid;place-items:center;color:#fff;text-align:center;overflow-x:hidden;
  background:radial-gradient(900px 520px at 50% 108%,rgba(255,110,196,.85),transparent 62%),radial-gradient(700px 460px at 6% -6%,rgba(122,77,255,.9),transparent 60%),linear-gradient(165deg,var(--night1),var(--night2) 48%,var(--night3));
  padding:calc(64px + var(--st)) 18px calc(28px + var(--sb))}
#sTitle::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.9;
  background-image:radial-gradient(1.6px 1.6px at 12% 18%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 78% 12%,#fff 50%,transparent 51%),radial-gradient(1.8px 1.8px at 88% 64%,#ffe9a8 50%,transparent 51%),radial-gradient(1.2px 1.2px at 24% 76%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 52% 8%,#ffd6f2 50%,transparent 51%),radial-gradient(1.2px 1.2px at 62% 88%,#fff 50%,transparent 51%),radial-gradient(1.6px 1.6px at 6% 52%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 94% 34%,#fff 50%,transparent 51%);
  animation:twinkle 3.2s ease-in-out infinite alternate}
@keyframes twinkle{from{opacity:.45}to{opacity:1}}
.back{position:absolute;left:calc(14px + var(--sl));top:calc(14px + var(--st));display:inline-flex;align-items:center;gap:4px;padding:8px 14px 8px 10px;border-radius:999px;
  background:rgba(255,255,255,.14);border:2px solid rgba(255,255,255,.3);color:#fff;text-decoration:none;font-weight:600;font-size:16px;z-index:1}
.back svg{width:16px;height:16px}
.decor i{position:absolute;border-radius:50%;border:3px solid rgba(42,16,80,.8);
  background:radial-gradient(circle at 34% 30%,#fff 0 14%,#f6f2ff 26%,#c9cce3 68%,#8a8fb4);box-shadow:0 0 30px rgba(255,190,240,.45);animation:float 7s ease-in-out infinite}
.decor i::after{content:"";position:absolute;inset:-3px;border-radius:50%;background:linear-gradient(135deg,rgba(255,110,205,.35),rgba(110,200,255,.2) 35%,transparent 55%,rgba(140,255,200,.28) 80%,rgba(255,225,110,.32))}
.decor i:nth-child(1){width:74px;height:74px;left:7%;top:16%}
.decor i:nth-child(2){width:46px;height:46px;right:9%;top:12%;animation-delay:-2s}
.decor i:nth-child(3){width:58px;height:58px;right:6%;bottom:14%;animation-delay:-4s}
.decor i:nth-child(4){width:36px;height:36px;left:12%;bottom:10%;animation-delay:-1s}
.decor i:nth-child(5){width:28px;height:28px;left:46%;top:5%;animation-delay:-3s}
.decor i:nth-child(6){width:40px;height:40px;right:26%;bottom:4%;animation-delay:-5s}
@keyframes float{50%{transform:translateY(-16px) rotate(8deg)}}
.tbox{position:relative;width:min(640px,100%);display:flex;flex-direction:column;align-items:center;gap:18px}
.logo{font-size:clamp(58px,17vw,136px);letter-spacing:-.01em;line-height:.9;display:flex;flex-wrap:wrap;justify-content:center;column-gap:.22em}
.logo span{background-image:var(--glit1),linear-gradient(100deg,#ff5fb6,#ffb03a,#ffe14d,#56d98c,#4cc2ff,#9b6bff);background-size:150px,100% 100%;background-blend-mode:overlay;
  -webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 5px 0 rgba(26,6,52,.7)) drop-shadow(0 0 22px rgba(255,140,220,.35));animation:shimmer 6s linear infinite}
.logo .l2{background-image:var(--glit2),linear-gradient(100deg,#ffe38a,#ffc53d,#ff8fd0);animation-direction:reverse}
@keyframes shimmer{to{background-position:150px 60px,0 0}}
.tag{margin:0;max-width:30em;font-size:clamp(17px,4.4vw,21px);line-height:1.4;color:rgba(255,255,255,.92)}
.tbtns{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:4px}
.tset{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:6px}
.tset .small{color:rgba(255,255,255,.78);margin:0;min-height:1.3em}
#sPick{background:linear-gradient(180deg,#fbf6ff,#f3e8ff);padding:calc(14px + var(--st)) calc(14px + var(--sr)) calc(20px + var(--sb)) calc(14px + var(--sl))}
.pwrap{max-width:1100px;margin:0 auto}
.ptop{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.ptop h2{font-size:clamp(28px,6vw,40px)}
#picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:14px}
.pcard{display:flex;flex-direction:column;background:#fff;border-radius:22px;overflow:hidden;border:2.5px solid var(--line);box-shadow:0 5px 0 var(--line);text-align:left;transition:transform .12s}
.pcard:active{transform:translateY(3px) scale(.99)}
.pcard .pimg{display:block;aspect-ratio:3/2;background:#f7f1ff center/cover no-repeat;position:relative}
.pcard:not(.ready):not(.surprise) .pimg::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.7) 50%,transparent 70%) -100% 0/200% 100%;animation:shine 1.2s linear infinite}
@keyframes shine{to{background-position:100% 0}}
.pcard b{padding:10px 16px 12px;font-size:20px;font-weight:600}
.pcard.surprise .pimg{background:radial-gradient(circle at 50% 120%,#ff8fd0,transparent 60%),linear-gradient(160deg,var(--night1),var(--night3));display:flex;align-items:center;justify-content:center;gap:10px}
.pcard.surprise .pimg i{width:40px;height:40px;border-radius:50%;border:3px solid rgba(42,16,80,.8);background:radial-gradient(circle at 34% 30%,#fff 0 14%,#f6f2ff 26%,#c9cce3 68%,#8a8fb4);animation:float 3s ease-in-out infinite}
.pcard.surprise .pimg i:nth-child(2){width:54px;height:54px;animation-delay:-1s}
.pcard.surprise .pimg i:nth-child(3){animation-delay:-2s}
.pfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:18px}
.pfoot .small{margin:0}
#loading{display:grid;place-items:center;background:linear-gradient(165deg,var(--night1),var(--night2) 55%,var(--night3));color:#fff;text-align:center}
.ld{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px}
.ld .small{color:rgba(255,255,255,.7);margin:0}
#ldTitle{margin:0;font-size:24px;font-weight:600}
.ldball{width:84px;height:84px;margin-bottom:14px;border-radius:50%;border:3.5px solid rgba(20,6,40,.85);background:radial-gradient(circle at 34% 30%,#fff 0 14%,#f6f2ff 26%,#c9cce3 68%,#8a8fb4);
  box-shadow:0 0 40px rgba(255,170,230,.5);animation:ldb .9s cubic-bezier(.4,0,.6,1) infinite alternate}
@keyframes ldb{from{transform:translateY(0) scale(1.04,.96)}to{transform:translateY(-26px) rotate(20deg)}}
.ldbar{width:min(260px,70vw);height:12px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:8px}
.ldbar i{display:block;height:100%;background:linear-gradient(90deg,#ff5fb6,#ffd23f,#5fe3b5,#52a8ff);transform-origin:0 50%;transform:scaleX(.02);transition:transform .2s}

/* ---- sheets ---- */
.modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:calc(14px + var(--st)) 14px calc(14px + var(--sb));background:rgba(34,12,64,.5);animation:fade .2s}
@keyframes fade{from{opacity:0}}
.sheet{position:relative;width:min(430px,100%);max-height:100%;overflow:auto;background:#fff;border-radius:28px;padding:22px 20px 20px;box-shadow:0 20px 60px rgba(34,12,64,.35);animation:sheetin .3s cubic-bezier(.2,1.3,.4,1);
  display:flex;flex-direction:column;gap:14px}
.sheet.wide{width:min(720px,100%)}
.modal.fresh .sheet{pointer-events:none}
@keyframes sheetin{from{transform:translateY(24px) scale(.96);opacity:0}}
.sheet h2{font-size:30px;text-align:center}
.sheet .chip{background:#f5effd;border-color:var(--line);color:var(--ink)}
.col{display:flex;flex-direction:column;gap:10px}
.mrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.steps li{display:flex;gap:14px;align-items:flex-start}
.steps b{display:block;font-size:19px;margin-bottom:2px;color:var(--ink)}
.steps div{font-size:16px;color:var(--ink2);line-height:1.35}
.si{flex:none;width:52px;height:52px;border-radius:50%;border:3px solid var(--ink);position:relative}
.si1{background:radial-gradient(circle at 34% 30%,#fff 0 14%,#f6f2ff 26%,#c9cce3 68%,#8a8fb4)}
.si2{background:conic-gradient(#ff5fb6,#ffd23f,#5fe3b5,#52a8ff,#9b6bff,#ff5fb6);border-style:dashed}
.si3{border-radius:10px 10px 16px 16px;background:linear-gradient(180deg,#fff 22%,#8c8dff 22%)}
.tips{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:5px}
.done{text-align:center}
.done p{margin:0}
.done .burst{position:absolute;left:50%;top:-60px;width:220px;height:220px;margin-left:-110px;pointer-events:none;border-radius:50%;
  background:repeating-conic-gradient(rgba(255,197,61,.28) 0 10deg,transparent 10deg 20deg);animation:spin 12s linear infinite;z-index:-1}
@keyframes spin{to{transform:rotate(1turn)}}
#doneJars{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.dj{width:40px;height:40px;border-radius:50%;border:3px solid var(--ink);background-size:70px;background-position:center}
#allJars{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:12px 8px}
.cj{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:14px;line-height:1.15}
.cj .sw{width:56px;height:56px;border-radius:50%;border:3px solid var(--ink);background-size:90px;background-position:center;display:grid;place-items:center;font-weight:700;font-size:22px}
.cj b{font-weight:600}
.cj small{font-size:12px;font-weight:600;color:#b27800;text-transform:uppercase;letter-spacing:.05em}
.cj.q2 small{color:var(--pink-d)}
.cj.unk .sw{border-style:dashed;border-color:#cdbde8;color:#bba8de;background:#fbf8ff}
.cj.unk .sw{width:46px;height:46px;font-size:19px}

@media (max-width:420px){
  #bar{gap:6px}
  .ib{width:40px;height:40px;border-radius:12px}
  .tool{width:48px;height:48px}
  .jar{width:40px;height:54px}
  .jar .glass{width:37px;height:42px}
  .jar::before{width:26px}
  .btn.big{min-height:56px;font-size:21px;padding:10px 30px}
  .seg-b{padding:6px 13px;font-size:16px}
}
@media (min-width:900px) and (min-height:700px){
  .ib{width:48px;height:48px}
  #pgCount{font-size:24px}
  .tool{width:60px;height:60px}
  .jar{width:52px;height:64px}
  .jar .glass{width:47px;height:51px}
  .jar::before{width:34px}
}
/* phones on their side: the bar and the jars move to the sides so the picture keeps its height */
@media (orientation:landscape) and (max-height:540px){
  #app{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr)}
  #bar{flex-direction:column;justify-content:flex-start;gap:6px;padding:calc(8px + var(--st)) 6px calc(8px + var(--sb)) calc(8px + var(--sl));box-shadow:2px 0 14px rgba(88,40,150,.1);overflow-y:auto}
  #prog{flex:0 0 auto;align-items:center;order:-1;margin-bottom:2px}
  #pgName{display:none}
  #pgCount{flex-direction:column;gap:1px;font-size:19px;line-height:1}
  .ib{width:40px;height:40px;border-radius:12px}
  #tray{flex-direction:column;gap:8px;padding:calc(8px + var(--st)) calc(8px + var(--sr)) calc(8px + var(--sb)) 6px;box-shadow:-2px 0 14px rgba(88,40,150,.1)}
  .tool{width:48px;height:48px}
  .tool[aria-pressed="true"]{transform:translateX(-3px)}
  #jars{flex-direction:column;align-items:center;overflow-x:hidden;overflow-y:auto;padding:8px 14px 8px 16px}
  .jar{width:40px;height:52px}
  .jar .glass{width:37px;height:40px}
  .jar::before{width:26px}
  .jar[aria-pressed="true"]{transform:translateX(-8px)}
  .jar[aria-pressed="true"]::after{bottom:auto;top:50%;left:auto;right:-10px;margin:-4px 0 0}
  #toasts{top:calc(12px + var(--st))}
}
@media (max-width:420px){
  #slots{--s:clamp(36px,calc((100vw - 24px - var(--sl) - var(--sr)) / var(--n,5) - 8px),50px)}
  .slot{border-radius:15px}
  #heroMini{width:40px;height:40px}
  .node{width:74px;height:74px}.node .disc{width:70px;height:70px}.node img{width:56px;height:56px}
}
@media (orientation:landscape) and (max-height:540px){
  #slots{--s:clamp(38px,calc((100vh - 26px - var(--st) - var(--sb)) / var(--n,5) - 8px),58px);flex-direction:column;justify-content:flex-start;overflow-x:hidden;overflow-y:auto;padding:8px 12px}
  #slots .slot:first-child,#slots .slot:last-child{margin:0}
  #heroMini{margin:0}
  #prog{flex-direction:column}
}
/* phones on their side: the win card keeps its buttons in view; the title fits the mode cards on screen */
@media (orientation:landscape) and (max-height:560px){
  .sheet.win{width:min(640px,100%)}
  .win>.col{position:sticky;bottom:-20px;z-index:1;background:#fff;padding:8px 0 20px;margin-bottom:-20px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #wnNext{grid-column:1/-1}.win .btn{min-height:46px}#wnText{font-size:16px}
}
@media (orientation:landscape) and (max-height:540px){
  #sTitle{padding-top:calc(16px + var(--st))}
  .logo{font-size:clamp(40px,11vh,72px)}.tbox{gap:10px}.mimg{height:clamp(56px,16vh,128px)}
  .mode.gl .mimg i{--b:clamp(44px,13vh,90px);top:0;width:var(--b);height:var(--b);margin-left:calc(var(--b) / -2)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
