:root{
  --ink:#fff; --brown:#5b2a14; --brown2:#9a5f3c;
  --frame:#fff8ea; --frame-edge:#ffc247; --frame-shadow:#e0902a;
  --orange:#ff9a1f; --orange2:#ff6a00; --heart:#ff3f66; --heart-off:#d9c3dd;
  --display:'Baloo 2','Trebuchet MS',system-ui,sans-serif; --body:'Nunito',system-ui,sans-serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:#ff6fa8}
html,body{height:100%;margin:0}
body{
  background:
    radial-gradient(circle at 15% 12%,rgba(255,255,255,.35) 0 3px,transparent 4px) 0 0/52px 52px,
    radial-gradient(circle at 65% 70%,rgba(255,235,120,.35) 0 4px,transparent 5px) 0 0/74px 74px,
    radial-gradient(circle at 80% 25%,rgba(120,255,220,.3) 0 3px,transparent 4px) 0 0/90px 90px,
    linear-gradient(180deg,#5b2fe0 0%,#a02ee8 38%,#ff4fb0 78%,#ff8a5c 100%);
  background-attachment:fixed;
  color:var(--ink);font-family:var(--body);font-weight:800;
  overscroll-behavior:none;user-select:none;-webkit-user-select:none;touch-action:manipulation;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
[hidden]{display:none!important}
button{font:inherit;color:inherit;cursor:pointer;border:0}
svg{display:block}
.screen{max-width:460px;margin:0 auto;min-height:100%;padding:12px 16px 40px;display:flex;flex-direction:column;gap:12px;position:relative}

/* home header */
.hero{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:4px}
.logo{font-family:var(--display);font-weight:800;font-size:clamp(40px,12vw,56px);line-height:1;display:flex;justify-content:center}
.logo span{color:var(--c);-webkit-text-stroke:3px #4a1a8f;paint-order:stroke fill;text-shadow:0 4px 0 rgba(40,0,80,.35);display:inline-block;animation:bob 2.6s ease-in-out infinite}
.logo span:nth-child(2n){animation-delay:-.6s}.logo span:nth-child(3n){animation-delay:-1.2s}
@keyframes bob{50%{transform:translateY(-5px) rotate(-3deg)}}
.icon{width:42px;height:42px;flex:none;border-radius:14px;background:#fff;color:#7a2fd0;display:grid;place-items:center;box-shadow:0 4px 0 rgba(60,0,110,.45)}
.icon:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(60,0,110,.45)}
.icon svg{width:24px;height:24px}
.daily{
  display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:10px 12px;border-radius:24px;
  background:linear-gradient(110deg,#ffe14d,#ff9a1f);color:var(--brown);box-shadow:0 5px 0 #c4610a,0 12px 22px rgba(255,120,0,.3);
}
.daily:active{transform:translateY(3px);box-shadow:0 2px 0 #c4610a}
.daily-ico{width:48px;height:48px;background:rgba(255,255,255,.55);border-radius:15px;display:grid;place-items:center}
.daily-ico svg{width:34px;height:34px}
.daily-txt{display:flex;flex-direction:column;flex:1;font-family:var(--display)}
.daily-txt b{font-size:20px;line-height:1.1}.daily-txt small{font-family:var(--body);font-size:12.5px;opacity:.85}
.daily-go{background:#5b2fe0;color:#fff;padding:8px 18px;border-radius:999px;font-family:var(--display);font-size:16px}
.score{background:rgba(255,255,255,.9);color:var(--brown);border-radius:20px;padding:10px 14px;border:3px solid #ffc247;box-shadow:0 4px 0 rgba(60,0,110,.35);display:flex;flex-direction:column;gap:6px}
.score-top{display:flex;justify-content:space-between;align-items:baseline}
.rank{font-family:var(--display);font-size:20px;color:#7a2fd0}
.pts{font-size:14px}.pts b{font-family:var(--display);font-size:24px;color:#ff6a00}
.score-bar{height:10px;border-radius:99px;background:#eadcf7;overflow:hidden}
.score-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#ff52c8,#ffd400);transition:width .6s}
.score-sub{font-size:12.5px;color:var(--brown2)}
.gain{font-family:var(--display);font-size:30px;color:#ff6a00;animation:pop .5s .5s cubic-bezier(.3,1.6,.5,1) both}
.gain small{display:block;font-family:var(--body);font-size:13px;color:var(--brown2)}
.streak{text-align:center;margin:-4px 0 0;color:#ffe14d;font-family:var(--display);font-size:17px;min-height:0}
.streak:empty{display:none}

/* level map */
.map{position:relative;width:100%;margin-top:6px}
.map svg.trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.node{
  position:absolute;width:62px;height:62px;margin:-31px 0 0 -31px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--display);font-weight:800;font-size:24px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.25);
  background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.6),transparent 46%),var(--c);
  border:4px solid #fff;box-shadow:0 5px 0 rgba(40,0,80,.4);
}
.node:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(40,0,80,.4)}
.node small{position:absolute;bottom:-20px;font-family:var(--body);font-size:11px;color:#fff;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.5);letter-spacing:.5px}
.node .st{position:absolute;top:-13px;display:flex;gap:1px}
.node .st svg{width:14px;height:14px;fill:#ffe14d;stroke:#b8780a;stroke-width:1px}
.node .st svg.off{fill:rgba(255,255,255,.35);stroke:none}
.node.locked{background:#9a82c8;border-color:#cdbdf0;color:rgba(255,255,255,.7);box-shadow:0 5px 0 rgba(40,0,80,.25);pointer-events:none}
.node.current{animation:npulse 1.4s ease-in-out infinite;border-color:#ffe14d}
/* the level button grows and shrinks by transform only: the old pulse also animated box-shadow (always overridden here by !important),
   which made the browser redraw the whole map every frame while nobody touched it */
@keyframes npulse{50%{transform:scale(1.12)}}
@keyframes pulse{50%{transform:scale(1.12);box-shadow:0 5px 0 rgba(40,0,80,.4),0 0 0 10px rgba(255,255,255,.25)}}
.node.hard{--c:#ff4421;border-color:#ffd0a0;width:70px;height:70px;margin:-35px 0 0 -35px}
.node.veryhard{--c:#1c0a3a;border-color:#ffd000;width:76px;height:76px;margin:-38px 0 0 -38px;box-shadow:0 5px 0 #000,0 0 18px rgba(255,208,0,.7);color:#ffd000}
.node .badge{position:absolute;top:-16px;left:50%;transform:translateX(-50%);font-family:var(--body);font-size:10px;font-weight:800;letter-spacing:.8px;padding:2px 7px;border-radius:999px;white-space:nowrap}
.node.hard .badge{background:#ffd000;color:#8a1d00}
.node.veryhard .badge{background:#ffd000;color:#1c0a3a}
.hopper{position:absolute;width:44px;height:44px;margin:-60px 0 0 -22px;pointer-events:none;z-index:5;filter:drop-shadow(0 4px 3px rgba(0,0,0,.35))}
.hopper svg{width:100%;height:100%}
.mascot{position:absolute;width:40px;height:40px;margin:-62px 0 0 -20px;pointer-events:none;animation:bob 1.6s ease-in-out infinite;filter:drop-shadow(0 3px 2px rgba(0,0,0,.35))}
.mascot svg{width:100%;height:100%}

/* game header */
.bar{display:flex;align-items:center;gap:8px}
.title{flex:1;display:flex;flex-direction:column;align-items:center;line-height:1.05;gap:2px}
.title b{font-family:var(--display);font-size:24px;text-shadow:0 2px 0 rgba(40,0,80,.4)}
.hearts{display:flex;gap:4px}
.hearts svg{width:20px;height:20px;fill:var(--heart);filter:drop-shadow(0 1px 0 rgba(0,0,0,.25))}
.hearts svg.off{fill:var(--heart-off)}
.hearts.hit{animation:shake .4s}
@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.tier{align-self:center;margin:-4px 0 -2px;padding:3px 14px;border-radius:999px;font-family:var(--display);font-size:14px;letter-spacing:1.4px;text-transform:uppercase}
.tier.hard{background:#ff4421;color:#fff;box-shadow:0 3px 0 #a31d00}
.tier.veryhard{background:#1c0a3a;color:#ffd000;border:2px solid #ffd000;box-shadow:0 3px 0 #000}

/* candies found: the row has a fixed size and never grows */
.found{display:flex;justify-content:center;align-items:center;gap:6px;height:40px;flex:none;padding:0 12px;background:rgba(255,255,255,.88);border-radius:999px;align-self:center;border:2px solid var(--frame-edge);overflow:hidden}
.found svg{width:26px;height:26px;flex:none;filter:grayscale(1) brightness(1.1) opacity(.28)}
.found svg.on{filter:none}
.found svg.new{animation:foundpop .35s ease-out}
@keyframes foundpop{from{opacity:.2;transform:scale(.4)}to{opacity:1;transform:none}}

/* board */
.boardwrap{display:flex;justify-content:center;padding:2px 0}
.board{
  --n:6;--edge:var(--frame-edge);--edge2:var(--frame-shadow);
  width:min(100%,calc(100dvh - 330px),440px);display:grid;gap:3px;touch-action:none;
  grid-template-columns:repeat(var(--n),minmax(0,1fr));
  background:var(--frame);padding:7px;border-radius:24px;border:4px solid var(--edge);
  box-shadow:0 6px 0 var(--edge2),0 18px 30px rgba(40,0,80,.35);
}
.board.hard{--edge:#ff4421;--edge2:#a31d00;background:#fff0e8}
.board.veryhard{--edge:#ffd000;--edge2:#000;background:#2a1450;box-shadow:0 6px 0 #000,0 0 30px rgba(255,208,0,.45)}
.cell{
  position:relative;display:block;aspect-ratio:1;width:100%;min-width:0;min-height:0;padding:0;border-radius:20%;
  background-color:var(--c);
  background-image:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0) 52%,rgba(0,0,0,.1));
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.16),inset 0 2px 0 rgba(255,255,255,.35);
  transition:transform .12s;animation:cellin .35s ease-out both;animation-delay:var(--d,0s);
}
@keyframes cellin{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
.cell:active{transform:scale(.9)}
.cell svg.candy{position:absolute;inset:7%;width:86%;height:86%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4));animation:pop .45s cubic-bezier(.3,1.6,.5,1) both;pointer-events:none}
.cell .x{position:absolute;inset:23%;pointer-events:none;
  background:
    linear-gradient(45deg,transparent 40%,#fff 40% 60%,transparent 60%),
    linear-gradient(-45deg,transparent 40%,#fff 40% 60%,transparent 60%);
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.3))}
/* a player X on a square that actually holds a candy shows in another color */
.cell .x.bad{background:
    linear-gradient(45deg,transparent 40%,#000 40% 60%,transparent 60%),
    linear-gradient(-45deg,transparent 40%,#000 40% 60%,transparent 60%);
  filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px rgba(255,255,255,.9))}
/* shiny, glowing candies */
.cell.has svg.candy{filter:drop-shadow(0 0 4px rgba(255,255,255,.95)) drop-shadow(0 0 9px rgba(255,255,255,.55)) drop-shadow(0 2px 2px rgba(0,0,0,.4))}
.cell.has::after,.cell.has::before{content:"";position:absolute;pointer-events:none;background:#fff;
  clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);animation:twinkle 1.9s ease-in-out infinite;z-index:2}
.cell.has::after{width:30%;height:30%;right:4%;top:2%}
.cell.has::before{width:20%;height:20%;left:6%;bottom:8%;animation-delay:-.9s}
@keyframes twinkle{0%,100%{transform:scale(.2) rotate(0);opacity:0}45%{transform:scale(1) rotate(45deg);opacity:1}70%{transform:scale(.6) rotate(90deg);opacity:.5}}
.cell .q{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:clamp(14px,5vw,26px);color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.3);pointer-events:none}
.cell.wrong{animation:wrong .5s}
.cell.hinted{animation:hintflash .9s ease-out}
@keyframes pop{from{transform:scale(0) rotate(-40deg)}to{transform:none}}
@keyframes wrong{0%,100%{transform:none}20%{transform:translateX(-5px)}60%{transform:translateX(5px)}}
@keyframes hintflash{0%{box-shadow:0 0 0 0 #fff,inset 0 -3px 0 rgba(0,0,0,.16)}40%{box-shadow:0 0 0 6px #fff,inset 0 -3px 0 rgba(0,0,0,.16);filter:brightness(1.3)}100%{box-shadow:inset 0 -3px 0 rgba(0,0,0,.16)}}

.toast{min-height:44px;margin:0;text-align:center;font-size:15px;line-height:1.25;color:#fff;background:rgba(40,0,90,.35);border-radius:16px;padding:8px 12px;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .25s}
.toast.show{opacity:1}
.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.btn{
  display:flex;align-items:center;justify-content:center;gap:5px;font-family:var(--display);font-weight:800;font-size:15px;
  border-radius:18px;padding:11px 4px;background:#fff;color:#6a2cc4;box-shadow:0 5px 0 rgba(60,0,110,.45);white-space:nowrap;
}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(60,0,110,.45)}
.btn svg{width:18px;height:18px}
.btn .q{font-size:20px;line-height:1;font-weight:800}
.btn.main{background:linear-gradient(180deg,#ffd13e,#ff8a00);color:#5b2a00;box-shadow:0 5px 0 #b85a00}
.btn.main:active{box-shadow:0 2px 0 #b85a00}
.btn[aria-pressed="true"]{background:#2ee6a8;color:#06483a;box-shadow:0 5px 0 #0a8f6b}
.btn.wide{width:100%}
.help{margin:0;text-align:center;color:rgba(255,255,255,.85);font-size:13px}

/* overlays */
.overlay{position:fixed;inset:0;background:rgba(30,0,70,.6);display:grid;place-items:center;padding:20px;z-index:20;backdrop-filter:blur(4px)}
.card{width:min(100%,380px);background:var(--frame);color:var(--brown);border:4px solid var(--frame-edge);border-radius:28px;padding:22px;text-align:center;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 0 var(--frame-shadow);animation:pop .4s cubic-bezier(.3,1.4,.5,1) both}
.card.left{text-align:left}
.card h2{margin:0;font-family:var(--display);font-size:34px;line-height:1}
.card p{margin:0;color:var(--brown2)}
.card ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;font-size:17px}
.card .small{font-size:14px}
.card .btn{box-shadow:0 5px 0 var(--frame-shadow);border:2px solid var(--frame-edge)}
.card .btn.main{border-color:#ff8a00;box-shadow:0 5px 0 #b85a00}
.card .link{background:none;color:var(--brown2);text-decoration:underline;font-size:15px;padding:6px}
.stars{display:flex;justify-content:center;gap:6px}
.stars svg{width:38px;height:38px;fill:#ffc247;stroke:#b8780a;stroke-width:1px;animation:pop .5s cubic-bezier(.3,1.6,.5,1) both}
.stars svg.off{fill:#e8d9bd;stroke:none}
.win-candy{width:92px;height:92px;margin:0 auto;animation:bob 1.6s ease-in-out infinite}
.win-candy svg{width:100%;height:100%}
.lose-hearts{font-size:64px;line-height:1}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.unlock{position:fixed;left:50%;top:max(14px,env(safe-area-inset-top));transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:12px;background:#fff;color:var(--brown);padding:10px 18px 10px 12px;border-radius:22px;border:3px solid #ffc247;box-shadow:0 8px 0 rgba(60,0,110,.4);animation:drop 3.2s ease both}
.unlock svg{width:46px;height:46px}.unlock small{display:block;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--brown2)}.unlock b{font-family:var(--display);font-size:20px;white-space:nowrap}
@keyframes drop{0%{transform:translate(-50%,-140%)}12%,85%{transform:translate(-50%,0)}100%{transform:translate(-50%,-140%)}}

#wipe{position:fixed;inset:0;z-index:50;display:grid;place-items:center;pointer-events:all;
  background:conic-gradient(from 0deg,#ff4fb0,#ffb42e,#ffe14d,#3dffb0,#3fd0ff,#a066ff,#ff4fb0)}
#wipe svg{width:min(40vw,180px);height:min(40vw,180px);filter:drop-shadow(0 6px 6px rgba(0,0,0,.35));animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:30}
#confetti b{position:absolute;top:-16px;width:9px;height:15px;border-radius:2px;animation:fall linear forwards}
@keyframes fall{to{transform:translateY(112vh) rotate(720deg)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important}}

/* while playing, the page never scrolls, so the board can't jump under the finger */
body{overflow-x:hidden}
body.in-game{overflow:hidden;position:fixed;inset:0;width:100%;height:100dvh}
body.in-game .screen{min-height:0;height:100dvh;padding-bottom:16px}
@supports not (height:100dvh){body.in-game,body.in-game .screen{height:100%}}

.ver{opacity:.55;font-size:11px}
.cell .x.bad{inset:18%}

/* candies and chocolates give a small wiggle inside their square now and then */
.cell svg.candy{animation:pop .45s cubic-bezier(.3,1.6,.5,1) both,idle var(--idur,6s) ease-in-out var(--idelay,2s) infinite}
@keyframes idle{
  0%,55%,100%{transform:none}
  61%{transform:translate(3%,-13%) rotate(-11deg) scale(1.12)}
  69%{transform:translate(-3%,3%) rotate(9deg) scale(.94)}
  77%{transform:translate(2%,-7%) rotate(-6deg) scale(1.07)}
  86%{transform:translate(0,1%) rotate(3deg) scale(1)}
  92%{transform:none}
}

/* ===== illustrated worlds on the level map ===== */
.map .zone{position:absolute;left:-16px;right:-16px;pointer-events:none}
.map .decor{position:absolute;pointer-events:none;transform-origin:50% 100%;animation:sway var(--sw,4s) ease-in-out var(--dl,0s) infinite alternate;filter:drop-shadow(0 4px 3px rgba(40,0,80,.25))}
.map .decor.cloud{transform-origin:50% 50%;animation:drift calc(var(--sw,4s) * 4) ease-in-out var(--dl,0s) infinite alternate;filter:drop-shadow(0 6px 4px rgba(60,30,120,.18));opacity:.95}
.map .decor.star{transform-origin:50% 50%;animation:twinkle2 calc(var(--sw,4s) * .6) ease-in-out var(--dl,0s) infinite alternate;filter:drop-shadow(0 0 8px #fff3a8)}
@keyframes sway{from{transform:rotate(-3.5deg)}to{transform:rotate(3.5deg)}}
@keyframes drift{from{transform:translateX(-16px)}to{transform:translateX(16px)}}
@keyframes twinkle2{from{transform:scale(.7) rotate(-8deg);opacity:.6}to{transform:scale(1.1) rotate(8deg);opacity:1}}
.map .ribbon{position:absolute;left:50%;transform:translateX(-50%);z-index:3;white-space:nowrap;pointer-events:none;
  font-family:var(--display);font-size:17px;color:#fff;letter-spacing:.5px;padding:6px 26px;
  background:linear-gradient(180deg,#ff6ab8,#d12a8a);border:3px solid #fff;border-radius:12px;box-shadow:0 5px 0 rgba(90,10,70,.45);text-shadow:0 2px 0 rgba(0,0,0,.25)}
.map svg.trail{z-index:1}
.node{z-index:2}
.mascot{width:58px;height:62px;margin:-74px 0 0 -29px;z-index:4}

/* ===== opening story ===== */
.intro{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;
  padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));
  background:radial-gradient(900px 600px at 50% 20%,#a64bff 0%,#5b2fe0 55%,#2c1380 100%);color:#fff;overflow:hidden}
.intro-rain{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.drop{position:absolute;top:-70px;width:var(--s);height:var(--s);opacity:.9;animation:rain linear infinite}
.drop svg{width:100%;height:100%;filter:drop-shadow(0 3px 3px rgba(0,0,0,.3))}
@keyframes rain{to{transform:translateY(115vh) rotate(360deg)}}
.intro-body{position:relative;flex:1;width:100%;max-width:460px;display:flex;align-items:center;justify-content:center}
.splash,.panel{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;width:100%}
.logo.big{font-size:clamp(62px,19vw,96px)}
.hero-gumi{width:min(48vw,200px);height:min(52vw,215px);filter:drop-shadow(0 10px 8px rgba(0,0,0,.35))}
.bounce{animation:gbounce 1.4s ease-in-out infinite}
@keyframes gbounce{0%,100%{transform:translateY(0) scale(1,1)}45%{transform:translateY(-18px) scale(.96,1.05)}70%{transform:translateY(0) scale(1.06,.94)}}
.shake{animation:gshake .5s ease-in-out infinite}
@keyframes gshake{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(-6px,2px) rotate(-5deg)}75%{transform:translate(6px,-2px) rotate(5deg)}}
.wave{animation:gwave 1.6s ease-in-out infinite;transform-origin:50% 90%}
@keyframes gwave{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg) translateY(-8px)}}
.scene{position:relative;width:min(86vw,330px);height:min(86vw,330px);display:flex;align-items:center;justify-content:center}
.scene.row{height:auto;gap:12px;align-items:flex-end;justify-content:center}
.scene.row .hero-gumi{width:min(30vw,130px);height:min(33vw,140px)}
.orbit{position:absolute;inset:0;animation:spin 14s linear infinite}
.oc{position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px 0 0 -29px;transform:rotate(var(--a)) translateY(min(-37vw,-125px))}
.oc svg{width:100%;height:100%;animation:counter 14s linear infinite;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}
@keyframes counter{from{transform:rotate(calc(-1*var(--a)))}to{transform:rotate(calc(-1*var(--a) - 360deg))}}
.fly{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;opacity:0;animation:fly 2.2s ease-out infinite}
.fly svg{width:100%;height:100%;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}
@keyframes fly{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.3)}15%{opacity:1}100%{opacity:1;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(1)}}
.bubble{position:absolute;top:2%;right:2%;background:#fff;color:#c01868;font-family:var(--display);font-size:30px;padding:6px 16px;border-radius:22px;border:4px solid #ff4fb0;transform:rotate(8deg);animation:pop .5s cubic-bezier(.3,1.6,.5,1) both,gshake .6s .5s ease-in-out infinite}
.mini{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;width:min(54vw,230px);padding:8px;background:#fff8ea;border:4px solid #ffc247;border-radius:20px;box-shadow:0 6px 0 #e0902a}
.tile{aspect-ratio:1;border-radius:18%;background-color:var(--c);background-image:linear-gradient(180deg,rgba(255,255,255,.4),rgba(255,255,255,0) 55%);box-shadow:inset 0 -3px 0 rgba(0,0,0,.15);display:grid;place-items:center;animation:cellin .4s ease-out both}
.tile svg{width:86%;height:86%}
.tile b{width:46%;height:46%;background:linear-gradient(45deg,transparent 40%,#fff 40% 60%,transparent 60%),linear-gradient(-45deg,transparent 40%,#fff 40% 60%,transparent 60%)}
.cap{margin:0;font-family:var(--display);font-size:clamp(22px,6.4vw,28px);line-height:1.2;text-shadow:0 3px 0 rgba(30,0,80,.5);max-width:22ch}
.intro .play{margin-top:8px;padding:16px 34px;font-size:30px}
.intro-ctl{position:relative;width:100%;max-width:460px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.intro-ctl .link{background:none;color:rgba(255,255,255,.85);text-decoration:underline;font-size:16px;padding:10px}
.intro-ctl .btn{min-width:140px;font-size:19px;padding:13px 18px}
.dots{display:flex;gap:8px}.dots i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.4)}.dots i.on{background:#ffe14d;transform:scale(1.3)}

/* ===== settings switches ===== */
.opts{display:flex;flex-direction:column;gap:8px;margin:4px 0}
.opt{display:flex;align-items:center;justify-content:space-between;font-size:16px}
.sw{width:54px;height:30px;border-radius:99px;background:#d9c9bd;position:relative;transition:background .2s;box-shadow:inset 0 2px 3px rgba(0,0,0,.2)}
.sw::after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 3px rgba(0,0,0,.3);transition:transform .2s}
.sw[aria-checked="true"]{background:#2ee6a8}.sw[aria-checked="true"]::after{transform:translateX(24px)}
.intro .play,.play{font-family:var(--display);font-weight:800;color:#5b2a00;border-radius:30px;background:linear-gradient(180deg,#ffd13e,#ff8a00);box-shadow:0 7px 0 #b85a00,0 14px 24px rgba(0,0,0,.3);letter-spacing:.5px;animation:gbounce 1.8s ease-in-out infinite}
.intro .play:active{transform:translateY(5px);box-shadow:0 2px 0 #b85a00;animation:none}
.intro .play:disabled{animation:none;opacity:.8}

/* hint inventory */
#hintBtn{position:relative}
#hintBtn .badge{position:absolute;top:-7px;right:-5px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#fff;color:#c2185b;font:800 13px/22px Nunito,system-ui,sans-serif;font-style:normal;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.3)}
#hintBtn.empty{opacity:.65}
#hintBtn.empty .badge{background:#444;color:#fff}
.hint-big{display:flex;align-items:center;justify-content:center;gap:10px;font-size:34px;font-weight:800}
.hint-big svg{width:48px;height:48px}
.reward{margin:6px 0 0;font-weight:700;color:#ffe08a}
.reward b{color:#fff}
#hintUse:disabled{opacity:.5}

/* daily ranking */
.rank-btn{margin-top:6px}
.namefield{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0;font-weight:600;font-size:14px}
.namefield input{width:150px;padding:8px 10px;border-radius:10px;border:2px solid rgba(255,255,255,.5);background:rgba(255,255,255,.15);color:#fff;font:600 15px Nunito,system-ui,sans-serif;text-align:center}
.rlist{max-height:44vh;overflow:auto;margin:6px 0;text-align:left}
.rrow{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.1);margin-bottom:5px;font-weight:600}
.rrow b{text-align:center}
.rrow em{font-style:normal;font-weight:800}
.rrow.me{background:rgba(255,224,138,.35);outline:2px solid #ffe08a}
.rmine{margin:4px 0 10px;font-weight:700;color:#ffe08a;min-height:1.2em}

/* painted world behind the board */
#scene{position:fixed;inset:0;z-index:0;display:none;overflow:hidden;background:#5b2fe0}
#scene svg{position:absolute;inset:0;width:100%;height:100%}
body.in-game #scene{display:block}
body.in-game #scene::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,rgba(255,255,255,0) 40%,rgba(40,0,80,.14) 100%)}
.screen{z-index:1}
.drift{animation:drift var(--dur,30s) ease-in-out infinite alternate}
.drift.d2{animation-direction:alternate-reverse}
@keyframes drift{from{transform:translate(0,0)}to{transform:translate(var(--dx,20px),0)}}
.tw{animation:twk 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes twk{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.flow{stroke-dasharray:34 22;animation:flow 5s linear infinite}
.flow.f2{animation-duration:7s;animation-direction:reverse}.flow.f3{animation-duration:9s}
@keyframes flow{to{stroke-dashoffset:-112}}
/* chunkier game frame and top panel */
body.in-game .bar{padding:8px 10px;border-radius:22px;background:linear-gradient(180deg,rgba(255,248,234,.96),rgba(255,226,170,.96));border:4px solid #ffc247;box-shadow:0 5px 0 #e0902a,0 12px 22px rgba(40,0,80,.35);color:#5b2a14}
body.in-game .bar .title b{color:#5b2a14;text-shadow:0 2px 0 rgba(255,255,255,.7)}
body.in-game .bar .icon{color:#5b2a14}
body.in-game .board{border-width:6px;box-shadow:0 8px 0 var(--edge2),0 0 0 3px rgba(255,255,255,.55),0 22px 36px rgba(40,0,80,.45)}
body.in-game .help{color:#fff;text-shadow:0 1px 3px rgba(40,0,80,.7)}
@media (prefers-reduced-motion:reduce){.drift,.tw,.flow{animation:none}}

body.in-game .help{position:absolute;right:8px;bottom:4px;margin:0;font-size:0;line-height:1}
body.in-game .help .ver{font-size:10px;opacity:.7}

/* painted world on the level screen */
#scene{background:#2a1450 center/cover no-repeat}
#scene svg{display:none}
/* popup windows use the painted chocolate-wafer frame */
.card{--cw:min(340px,calc(100vw - 40px));--k:calc(var(--cw) / 817);width:var(--cw);position:relative;background:none;box-shadow:none;border-radius:0;
  border:solid transparent;border-width:calc(var(--k) * 215) calc(var(--k) * 80) calc(var(--k) * 125) calc(var(--k) * 80);
  border-image:url(art/panel.webp) 215 80 125 80 fill stretch;padding:calc(var(--k) * 20) 4px 0;color:#6b3d1e;filter:drop-shadow(0 12px 16px rgba(40,0,80,.5))}
.card h2{position:absolute;left:50%;top:calc(var(--k) * -190);transform:translateX(-50%);width:calc(var(--k) * 440);height:calc(var(--k) * 130);display:grid;place-items:center;margin:0;
  font-size:21px;line-height:1;color:#7a4a22;text-shadow:0 1px 0 #fff;white-space:nowrap;z-index:1}
.card .xclose{position:absolute;left:calc(var(--k) * 613);top:calc(var(--k) * -147);width:calc(var(--k) * 124);height:calc(var(--k) * 124);background:transparent;border-radius:50%;z-index:2}
.card p{color:#7a4a22}
.card .link{color:#8a5a30}

/* wallet, tools with wand, daily bonus, shop */
.wallet{display:flex;gap:8px;justify-content:flex-end}
.chip{display:flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 8px;border-radius:999px;background:rgba(255,255,255,.92);color:#5b2a14;border:2px solid #ffc247;box-shadow:0 3px 0 #e0902a;font:800 15px var(--display)}
.chip svg{width:22px;height:22px}
.chip svg.stroke,.pico.stroke,#itemIcon.stroke{color:#ff8a00;fill:none;stroke:currentColor}
.chip i{font-style:normal;background:#2fbf4a;color:#fff;border-radius:50%;width:18px;height:18px;line-height:18px;text-align:center;font-size:15px}
#walletCoins{cursor:pointer}
.tools{grid-template-columns:repeat(5,1fr);gap:6px}
.tools .btn{padding-left:2px;padding-right:2px;font-size:13px;position:relative}
.tools .btn svg{width:20px;height:20px}
#wandBtn .badge{position:absolute;top:-7px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#fff;color:#c2185b;font:800 12px/20px Nunito,system-ui,sans-serif;font-style:normal;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.3)}
#wandBtn.empty{opacity:.65}
.ico{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.2em}
.reward.coins{margin-top:2px}
.bgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0}
.bcard{position:relative;aspect-ratio:1;border-radius:14px;padding:0;perspective:600px;background:none}
.bcard .front,.bcard .back{position:absolute;inset:0;display:grid;place-items:center;border-radius:14px;backface-visibility:hidden;transition:transform .5s}
.bcard .front{background:linear-gradient(180deg,#5fd8ff,#1fa3e8);border:3px solid #fff;box-shadow:0 4px 0 #0f74b3,0 0 0 2px #ffc247;font:800 38px var(--display);color:#fff;text-shadow:0 2px 0 #0f74b3}
.bcard .back{background:linear-gradient(180deg,#fff8e8,#ffe0a8);border:3px solid #ffc247;transform:rotateY(180deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#5b2a14;font:800 18px var(--display)}
.bcard.open .front{transform:rotateY(180deg)}
.bcard.open .back{transform:rotateY(0)}
.bcard.dim{opacity:.6}
.bcard.mine .back{box-shadow:0 0 0 3px #ffd84a,0 0 18px #ffd84a}
.pico{width:32px;height:32px}
.bgrid:not(:has(.open)) .bcard{animation:bwiggle 2.6s ease-in-out infinite}
.bgrid .bcard:nth-child(2n){animation-delay:-.7s}
.bgrid .bcard:nth-child(3n){animation-delay:-1.3s}
@keyframes bwiggle{0%,86%,100%{transform:rotate(0)}90%{transform:rotate(-4deg)}95%{transform:rotate(4deg)}}
.shopbal{display:flex;justify-content:center;align-items:center;gap:6px;font:800 24px var(--display);margin:0}
.shopbal svg{width:30px;height:30px}
.shoplist{display:flex;flex-direction:column;gap:8px}
.shoprow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.55);text-align:left}
.shoprow span{flex:1;display:flex;flex-direction:column;line-height:1.15}
.shoprow small{font-size:12px;opacity:.75}
.shoprow .buy{width:auto;padding:8px 14px;display:flex;align-items:center;gap:4px}
.shoprow .buy svg{width:20px;height:20px}
.shoprow .buy:disabled{opacity:.5}

/* bottom navigation on the map screens */
.nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(460px,100%);z-index:10;display:grid;grid-template-columns:repeat(4,1fr);
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#8a4a22,#5b2a14);border-top:3px solid #ffc247;box-shadow:0 -6px 18px rgba(40,0,80,.4)}
.nav button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0 4px;border-radius:14px;background:none;color:#ffe9c4;font:800 12px var(--display)}
.nav button svg{width:26px;height:26px}
.nav button.on{background:rgba(255,194,71,.25);color:#fff}
body.in-game .nav{display:none}
#home.screen{padding-bottom:84px}
/* profile */
.pf-top{display:flex;align-items:center;gap:10px;text-align:left}
.pf-gumi{width:74px;height:82px;flex:none}
.pf-id{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.pf-id input{width:100%;padding:6px 8px;border-radius:10px;border:2px solid #c78a52;background:#fff8ea;color:#5b2a14;font:800 17px var(--display)}
.pf-id b{font:800 15px var(--display);color:#7a2fd0}
.pf-id small{font-size:12px;color:#7a4a22}
.pf-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.pf-grid div{display:flex;flex-direction:column;align-items:center;padding:7px 4px;border-radius:12px;background:rgba(255,255,255,.55)}
.pf-grid b{font:800 18px var(--display);color:#5b2a14}
.pf-grid small{font-size:11px;opacity:.8}

/* side medallions on the map, 5-tab navigation, mini-games */
.sides{position:sticky;top:96px;height:0;z-index:6;pointer-events:none}
.sides .col{position:absolute;top:10px;display:flex;flex-direction:column;gap:14px;pointer-events:auto}
.sides .l{left:2px}.sides .r{right:2px}
.med{position:relative;width:64px;display:flex;flex-direction:column;align-items:center;background:none;padding:0;filter:drop-shadow(0 4px 4px rgba(40,0,80,.45))}
.med .disc{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 28%,#fffbe6,#ffe08a 55%,#f0a62a);border:4px solid #2a8aa6;box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 0 0 2px #fff}
.med .disc svg{width:38px;height:38px}
.med .tag{margin-top:-9px;min-width:46px;padding:1px 8px;border-radius:999px;background:#1f6f86;color:#fff;border:2px solid #fff;font:800 12px var(--display);text-align:center;white-space:nowrap}
.med.ready .disc{animation:medpulse 1.4s ease-in-out infinite;box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 0 0 2px #fff,0 0 16px 4px #ffe14d}
.med.ready .tag{background:#2fbf4a}
@keyframes medpulse{50%{transform:scale(1.07)}}
.nav{grid-template-columns:repeat(5,1fr)}
.nav button{position:relative}
.nav button.dot::after{content:"";position:absolute;top:2px;right:calc(50% - 22px);width:12px;height:12px;border-radius:50%;background:#ff3f3f;border:2px solid #fff}
.chip.me{margin-right:auto;padding-left:4px}
.chip.me .gum{width:28px;height:28px}
.chest-art{width:96px;height:96px;margin:0 auto;animation:bob 1.8s ease-in-out infinite}
.chest-prize{display:flex;flex-direction:column;gap:6px;align-items:center}
.rwd{display:flex;align-items:center;gap:6px;font:800 18px var(--display)}
.rwd .pico{width:26px;height:26px}
.rwd.big .pico{width:40px;height:40px}.rwd.big{font-size:26px}
.wheel-svg{width:min(230px,72%);margin:0 auto;display:block;overflow:visible}
.quest .qbar{display:block;height:7px;border-radius:5px;background:rgba(0,0,0,.12);margin-top:4px;overflow:hidden}
.quest .qbar u{display:block;height:100%;background:linear-gradient(90deg,#ffb347,#ff5fa8);border-radius:5px}
.memgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.mcard{position:relative;aspect-ratio:1;padding:0;background:none;perspective:500px}
.mcard .front,.mcard .back{position:absolute;inset:0;display:grid;place-items:center;border-radius:12px;backface-visibility:hidden;transition:transform .35s}
.mcard .front{background:linear-gradient(180deg,#5fd8ff,#1fa3e8);border:3px solid #fff;box-shadow:0 3px 0 #0f74b3;font:800 24px var(--display);color:#fff}
.mcard .back{background:#fff8e8;border:3px solid #ffc247;transform:rotateY(180deg)}
.mcard .back svg{width:70%;height:70%}
.mcard.open .front{transform:rotateY(180deg)}.mcard.open .back{transform:rotateY(0)}
.mcard.done{opacity:.55}
.tosscv{display:block;width:100%;max-width:270px;margin:0 auto;border-radius:14px;border:3px solid #fff;touch-action:none;box-shadow:0 3px 0 rgba(0,0,0,.2)}

/* painted icons replace the words */
.tools .btn{padding:6px 2px;min-height:54px;display:grid;place-items:center}
.tools .btn .tico{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(60,0,110,.3));pointer-events:none}
.tools .btn.main{padding:6px 2px}
#maybeBtn[aria-pressed="true"]{background:#ffe9a8;box-shadow:inset 0 0 0 3px #ff9a1f,0 4px 0 rgba(60,0,110,.45)}
.chip img{width:26px;height:26px;object-fit:contain}
.med .disc img{width:44px;height:44px;object-fit:contain}
.hint-big img{width:54px;height:54px;object-fit:contain}
.chest-art{width:110px;height:110px;object-fit:contain}
.shopbal img{width:32px;height:32px}
.pico{object-fit:contain}
.ico{object-fit:contain}

/* colorful navigation tiles */
.nav button .navico{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));pointer-events:none}
.nav button{gap:1px}
.nav button.on{background:rgba(255,255,255,.22)}
.nav button.dot::after{right:calc(50% - 26px)}
/* 3D hearts */
.hearts{gap:3px}
.hearts img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(90,0,40,.4))}
.hearts img.off{opacity:.85}
/* boss */
.node.veryhard::before{content:"👑";position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:22px;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
.map .ribbon{white-space:normal;width:max-content;max-width:calc(100% - 156px);text-align:center;line-height:1.1}
/* 10x10 uses the whole screen width */
.screen.n10{padding-left:4px;padding-right:4px}
.boardwrap.n10{margin:0}
.board.n10{width:min(calc(100vw - 8px),calc(100dvh - 236px),540px);gap:2px;padding:5px;border-radius:20px;border-width:5px}
.screen.n10 .bar,.screen.n10 .tools{margin:0 12px}
/* tutorial coach */
#coach{position:fixed;inset:0;z-index:15;pointer-events:none}
#coachRing{position:absolute;border:4px solid #ffe14d;border-radius:18px;box-shadow:0 0 0 3px rgba(255,255,255,.7),0 0 22px 6px rgba(255,225,77,.8);animation:ringpulse 1.2s ease-in-out infinite;transition:all .3s}
@keyframes ringpulse{50%{transform:scale(1.025);box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 30px 10px rgba(255,225,77,.95)}}
#coachBubble{position:absolute;left:50%;transform:translateX(-50%);width:min(94vw,430px);display:flex;gap:10px;align-items:flex-end;padding:12px 14px;border-radius:22px;background:linear-gradient(180deg,#fff8ea,#ffe3b0);border:4px solid #8a4a22;box-shadow:0 6px 0 #5b2a14,0 14px 28px rgba(40,0,80,.5);color:#5b2a14;pointer-events:auto}
.coach-gumi{width:70px;height:78px;flex:none}
.coach-body{flex:1;display:flex;flex-direction:column;gap:6px;text-align:left}
.coach-body small{font:800 12px var(--display);opacity:.7}
.coach-body p{margin:0;font-size:15px;line-height:1.3;font-weight:800}
.coach-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.coach-actions .btn{width:auto;padding:8px 18px}
.coach-actions .link{background:none;color:#8a5a30;text-decoration:underline;font-size:14px}

/* crisp, glossy pieces on the board */
.cell.has svg.candy{filter:drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 2px 2px rgba(0,0,0,.45))}
.cell svg.candy{filter:drop-shadow(0 2px 2px rgba(0,0,0,.45));image-rendering:auto}

/* header with every number, always visible on the map */
.wallet{position:sticky;top:0;z-index:9;margin:-12px -16px -4px;padding:8px 10px;gap:6px;justify-content:space-between;background:linear-gradient(180deg,#6a35e6,#8a4af0);border-bottom:3px solid #ffc247;box-shadow:0 4px 12px rgba(40,0,80,.4)}
.wallet .chip{height:34px;padding:0 8px 0 5px;font-size:14px;gap:4px}
.wallet .chip.me{margin-right:0;padding:0 5px}
.chip .hrt{width:24px;height:24px}
/* side medallions sit at the screen edges, clear of the level numbers and captions */
.sides{top:66px}
.sides .l{left:-12px}.sides .r{right:-12px}
/* difficulty colors: hard = red, very hard = purple, extremely hard = black */
.node.veryhard{--c:#8a3de0;border-color:#e9d2ff;box-shadow:0 5px 0 #4a1a8f,0 0 18px rgba(176,123,255,.85);color:#fff}
.node.veryhard .badge{background:#e9d2ff;color:#4a1a8f}
.node.extreme{--c:#16161c;border-color:#fff;width:80px;height:80px;margin:-40px 0 0 -40px;box-shadow:0 5px 0 #000,0 0 20px rgba(255,255,255,.55);color:#fff}
.node.extreme .badge{background:#fff;color:#111}
.node.extreme::before{content:"💀";position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:22px;line-height:1}
.tier.veryhard{background:#7a2fd0;color:#fff;border:2px solid #e9d2ff;box-shadow:0 3px 0 #3a1180}
.tier.extreme{background:#111;color:#fff;border:2px solid #fff;box-shadow:0 3px 0 #000}
.board.veryhard{--edge:#8a3de0;--edge2:#4a1a8f;background:#f3e8ff;box-shadow:0 6px 0 #4a1a8f,0 0 24px rgba(138,61,224,.55)}
.board.extreme{--edge:#222;--edge2:#000;background:#2b2b33;box-shadow:0 6px 0 #000,0 0 26px rgba(0,0,0,.6)}
/* colorful tool tiles, no white buttons */
.tools .btn,.tools .btn.main{background:none;box-shadow:none;border:0;padding:0;min-height:0;border-radius:16px;filter:drop-shadow(0 4px 3px rgba(40,0,80,.45))}
.tools .btn .tico{width:100%;max-width:66px;height:auto;filter:none}
.tools .btn.empty{opacity:.6}
#maybeBtn[aria-pressed="true"]{background:none;box-shadow:none;outline:4px solid #ffe14d;outline-offset:-3px}

/* world title: a painted candy ribbon */
.map .ribbon{white-space:normal;max-width:none;width:min(262px,calc(100% - 150px));aspect-ratio:700/213;display:grid;place-items:center;padding:0 15%;
  background:url(art/ribbon.webp) center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;letter-spacing:0;text-transform:none;font-size:inherit;
  color:#6b3418;text-shadow:0 1px 0 rgba(255,255,255,.75);font-family:var(--display);text-align:center;line-height:1;filter:drop-shadow(0 4px 4px rgba(40,0,80,.35))}
.map .ribbon span{display:block}
.map .ribbon small{display:block;font-size:10px;letter-spacing:2.5px;font-weight:800;opacity:.75;margin-bottom:1px}
.map .ribbon b{display:block;font-size:17px;font-weight:800;line-height:1.05}
/* medallions: roomier, calmer pulse, tag always on top of the neighbour */
.sides .col{gap:30px}
.med{z-index:1}.med .tag{position:relative;z-index:3}
@keyframes medpulse{50%{transform:scale(1.04)}}
/* smaller in-game tool tiles */
.tools{align-items:center;justify-items:center}
.tools .btn .tico{max-width:50px}

.map .ribbon{transform:translate(-50%,-50%)}

/* no more beige: sky-blue popups, teal world ribbons, rich colored board frames */
.card{border-image-source:url(art/panel_blue.webp)}
.map .ribbon{background-image:url(art/ribbon_teal.webp);width:min(312px,calc(100% - 64px));padding:0 16%;color:#fff;text-shadow:0 2px 0 #0b5f6a,0 0 8px rgba(8,70,84,.7)}
.map .ribbon small{font-size:11px;opacity:.95;color:#d9fbff}
.map .ribbon b{font-size:17px;line-height:1.02}
.board{background:linear-gradient(180deg,#5a3cf0,#2f1a9a)}
.board.hard{background:linear-gradient(180deg,#ff6a4d,#b8281a)}
.board.veryhard{background:linear-gradient(180deg,#a45cff,#5a1fb8)}
.board.extreme{background:linear-gradient(180deg,#3a3a46,#0d0d12)}

/* green is the button color */
.btn.main,.card .btn.main{background:linear-gradient(180deg,#8cf060,#2fb82f);border:2px solid #1c8a1c;box-shadow:0 5px 0 #146b17;color:#fff;text-shadow:0 2px 0 rgba(8,70,20,.65)}
.btn.main:disabled{filter:saturate(.5);opacity:.6}
.bcard .front{background:linear-gradient(180deg,#8cf060,#2fb82f);box-shadow:0 4px 0 #146b17,0 0 0 2px #ffc247;text-shadow:0 2px 0 #146b17}
.mcard .front{background:linear-gradient(180deg,#8cf060,#2fb82f);box-shadow:0 3px 0 #146b17}

/* stars land one by one */
.stars svg{animation:none;opacity:0;transform:scale(.2)}
.stars svg.show{animation:starpop .6s cubic-bezier(.3,1.8,.5,1) both}
.stars svg.show:not(.off){filter:drop-shadow(0 0 8px #ffe14d) drop-shadow(0 2px 0 rgba(120,70,0,.4))}
@keyframes starpop{0%{opacity:0;transform:scale(.2) rotate(-45deg)}60%{opacity:1;transform:scale(1.4) rotate(8deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
/* the win popup takes about half the screen */
#win .card{--cw:min(318px,calc(100vw - 48px));gap:5px}
#win .win-candy{width:54px;height:54px}
#win .stars svg{width:42px;height:42px}
#win .card p{font-size:13px}
#win .gain{font-size:24px;line-height:1}
#win .gain small{font-size:11px}
#win .row{gap:8px}
/* no underlined links: every small action is a proper 3D button */
.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link{display:inline-block;align-self:center;text-decoration:none;background:linear-gradient(180deg,#7fd8ff,#2e9be8);color:#fff;border:2px solid #1b6fb5;border-radius:14px;padding:8px 22px;font:800 15px var(--display);box-shadow:0 4px 0 #14538a;text-shadow:0 2px 0 rgba(10,60,110,.6);cursor:pointer}
.card .link:active,.rank-btn:active,.coach-actions .link:active,.intro-ctl .link:active{transform:translateY(3px);box-shadow:0 1px 0 #14538a}
.coach-actions .link{padding:6px 16px;font-size:14px}
.rank-btn{margin-top:8px}

.card .btn:not(.main){background:linear-gradient(180deg,#7fd8ff,#2e9be8);color:#fff;border:2px solid #1b6fb5;box-shadow:0 5px 0 #14538a;text-shadow:0 2px 0 rgba(10,60,110,.6)}

.hopper.gumi{width:58px;height:62px;margin:-74px 0 0 -29px;z-index:6;filter:drop-shadow(0 4px 3px rgba(0,0,0,.4))}

/* neutral, light board frame so it never mixes with the colors of the squares; difficulty shows on the edge only */
.board,.board.hard,.board.veryhard,.board.extreme{background:#f7f1e5}
/* green is the button color, everywhere */
.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.card .btn:not(.main){background:linear-gradient(180deg,#8cf060,#2fb82f);border-color:#1c8a1c;box-shadow:0 4px 0 #146b17;text-shadow:0 2px 0 rgba(8,70,20,.65)}
.card .btn:not(.main){box-shadow:0 5px 0 #146b17}
.card .link:active,.rank-btn:active,.coach-actions .link:active,.intro-ctl .link:active{box-shadow:0 1px 0 #146b17}
.daily-go{background:linear-gradient(180deg,#8cf060,#2fb82f);border:2px solid #1c8a1c;box-shadow:0 4px 0 #146b17;color:#fff;text-shadow:0 2px 0 rgba(8,70,20,.65)}
.play{background:linear-gradient(180deg,#8cf060,#2fb82f);border-color:#1c8a1c;box-shadow:0 6px 0 #146b17;color:#fff;text-shadow:0 2px 0 rgba(8,70,20,.65)}

/* stars: fly in from above, spin, land with a thump, burst into sparkles */
.stars{position:relative;overflow:visible;gap:8px}
#win .stars svg{width:54px;height:54px}
.stars svg.show{animation:starfly .8s cubic-bezier(.2,1.2,.4,1) both}
@keyframes starfly{0%{opacity:0;transform:translateY(-170px) scale(2.5) rotate(-240deg)}55%{opacity:1;transform:translateY(7px) scale(.78) rotate(12deg)}78%{transform:translateY(-5px) scale(1.28) rotate(-7deg)}100%{opacity:1;transform:none}}
.spark{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;pointer-events:none;animation:sparkout .75s ease-out forwards;box-shadow:0 0 6px rgba(255,255,255,.9)}
@keyframes sparkout{from{opacity:1;transform:translate(0,0) scale(1)}to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.2)}}

/* big 3D stars */
.stars svg{fill:none;stroke:none}
.stars{gap:2px}
#win .stars svg{width:84px;height:84px;margin:0 -4px}
.stars svg.show:not(.off){filter:drop-shadow(0 0 10px rgba(255,225,77,.9)) drop-shadow(0 4px 2px rgba(110,60,0,.45))}
.st svg{fill:none;stroke:none}

/* painted stars */
.stars img.star,.st img.star{display:block;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(90,40,0,.45))}
#win .stars img.star{width:88px;height:88px;margin:0 -5px;opacity:0;transform:scale(.2)}
#win .stars img.star.show{animation:starfly .8s cubic-bezier(.2,1.2,.4,1) both}
#win .stars img.star.show:not(.off){filter:drop-shadow(0 0 12px rgba(255,225,77,.9)) drop-shadow(0 4px 2px rgba(110,60,0,.45))}
.st img.star{width:20px;height:20px}
/* only "Next level" stays green; everything else gets its own color */
.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.card .btn:not(.main){background:linear-gradient(180deg,#7fd8ff,#2e9be8);border-color:#1b6fb5;box-shadow:0 4px 0 #14538a;text-shadow:0 2px 0 rgba(10,60,110,.6)}
.card .btn:not(.main){box-shadow:0 5px 0 #14538a}
.card .link:active,.rank-btn:active,.coach-actions .link:active,.intro-ctl .link:active{box-shadow:0 1px 0 #14538a}
.btn.main,.card .btn.main,.daily-go,.play{background:linear-gradient(180deg,#ffd45a,#ff9a1f);border:2px solid #c96b00;box-shadow:0 5px 0 #a85500;color:#fff;text-shadow:0 2px 0 rgba(120,60,0,.6)}
#nextBtn,#nextBtn.btn{background:linear-gradient(180deg,#8cf060,#2fb82f);border:2px solid #1c8a1c;box-shadow:0 5px 0 #146b17;color:#fff;text-shadow:0 2px 0 rgba(8,70,20,.65)}
.bcard .front,.mcard .front{background:linear-gradient(180deg,#5fd8ff,#1fa3e8);box-shadow:0 4px 0 #0f74b3,0 0 0 2px #ffc247;text-shadow:0 2px 0 #0f74b3}

/* smaller buttons in the win popup */
#win .card .btn{padding:7px 10px;font-size:14px;min-height:0;border-radius:12px;box-shadow:0 4px 0 #14538a}
#win .card #nextBtn{box-shadow:0 4px 0 #146b17}
#win .card .row .btn{flex:1}
#win .card .link{padding:5px 16px;font-size:13px;box-shadow:0 3px 0 #14538a}

/* effects layer: bursts and praise words */
#fx{position:fixed;inset:0;z-index:12;pointer-events:none;overflow:hidden}
.fx-p{position:absolute;border-radius:50%;margin:-4px 0 0 -4px;box-shadow:0 0 6px rgba(255,255,255,.85);animation:fxp .8s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes fxp{from{opacity:1;transform:translate(0,0) scale(1)}to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.15)}}
.fx-ring{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:4px solid #fff;animation:fxring .6s ease-out forwards}
@keyframes fxring{from{opacity:.95;transform:scale(1)}to{opacity:0;transform:scale(5)}}
.fx-word{position:absolute;transform:translate(-50%,-50%);font:800 40px var(--display);white-space:nowrap;color:#ffe14d;-webkit-text-stroke:3px #7a3d00;paint-order:stroke fill;text-shadow:0 5px 0 #a85500,0 0 16px rgba(255,225,77,.8);animation:fxword 1.15s cubic-bezier(.2,1.4,.4,1) forwards}
.fx-word.big{font-size:56px;color:#fff;-webkit-text-stroke:4px #c2185b;text-shadow:0 6px 0 #8a1040,0 0 22px rgba(255,120,200,.9)}
@keyframes fxword{0%{opacity:0;transform:translate(-50%,-30%) scale(.2) rotate(-8deg)}22%{opacity:1;transform:translate(-50%,-50%) scale(1.25) rotate(3deg)}38%{transform:translate(-50%,-50%) scale(1) rotate(0)}78%{opacity:1;transform:translate(-50%,-64%) scale(1)}100%{opacity:0;transform:translate(-50%,-90%) scale(.9)}}
/* the title bar bounces with the bear's mood */
.react-happy{animation:rhappy .55s cubic-bezier(.3,1.6,.5,1)}
@keyframes rhappy{0%{transform:scale(1)}35%{transform:scale(1.14) rotate(-2deg)}70%{transform:scale(.97) rotate(1deg)}100%{transform:none}}
.react-sad{animation:rsad .5s ease-in-out}
@keyframes rsad{0%,100%{transform:none}20%{transform:translateX(-6px) rotate(-2deg)}50%{transform:translateX(6px) rotate(2deg)}80%{transform:translateX(-3px)}}

/* the bear stands right on top of its level circle (never over the number) */
.mascot{margin:-58px 0 0 -29px}
.hopper.gumi{margin:-58px 0 0 -29px}

/* the bear is dressed and glowing */
.mascot,.hopper.gumi{filter:drop-shadow(0 0 10px rgba(110,255,230,.95)) drop-shadow(0 3px 2px rgba(0,0,0,.35));animation:bob 1.6s ease-in-out infinite}
.hopper.gumi{animation:none}
/* Gumi's glow breathes on its own layer (opacity and size only); an animated filter redrew the whole map every frame */
.mascot::before,.hopper.gumi::before{content:"";position:absolute;left:-25%;top:-25%;width:150%;height:150%;border-radius:50%;pointer-events:none;z-index:-1;
  background:radial-gradient(closest-side,rgba(150,255,240,.6),rgba(150,255,240,.2) 62%,rgba(150,255,240,0));animation:mglow2 1.8s ease-in-out infinite}
@keyframes mglow2{0%,100%{opacity:.4;transform:scale(.9)}50%{opacity:1;transform:scale(1.06)}}
@keyframes mglow{50%{filter:drop-shadow(0 0 18px rgba(150,255,240,1)) drop-shadow(0 3px 2px rgba(0,0,0,.35))}}
.mascot{width:68px;height:68px;margin:-60px 0 0 -34px}
.hopper.gumi{width:68px;height:68px;margin:-60px 0 0 -34px}
/* victory dance in the win popup */
.win-gumi{position:relative;width:112px;height:112px;margin:-4px auto -6px;display:grid;place-items:center}
.win-gumi svg{position:relative;z-index:2;width:104px;height:104px;transform-origin:50% 90%;animation:gumientry .9s cubic-bezier(.2,1.4,.4,1) both,gumidance 1.25s ease-in-out .9s infinite;filter:drop-shadow(0 0 12px rgba(120,255,235,.95))}
.win-gumi .halo{position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,rgba(150,255,240,.85),rgba(255,235,120,.4) 55%,transparent 72%);animation:halo 1.6s ease-in-out infinite}
.win-gumi .halo.h2{inset:-22px;opacity:.55;animation-delay:-.8s}
@keyframes halo{0%,100%{transform:scale(.85);opacity:.55}50%{transform:scale(1.12);opacity:1}}
@keyframes gumientry{0%{opacity:0;transform:translateY(-130px) scale(2.6) rotate(-300deg)}60%{opacity:1;transform:translateY(8px) scale(.85) rotate(14deg)}80%{transform:translateY(-4px) scale(1.12) rotate(-6deg)}100%{opacity:1;transform:none}}
@keyframes gumidance{0%,100%{transform:translateY(0) scale(1.05,.95) rotate(0)}25%{transform:translateY(-16px) scale(.96,1.06) rotate(-9deg)}50%{transform:translateY(0) scale(1.06,.94) rotate(0)}75%{transform:translateY(-16px) scale(.96,1.06) rotate(9deg)}}

/* loading screen: the bear bounces on a glowing sky */
#wipe{background:radial-gradient(circle at 50% 38%,#8affea 0,#3ec6d8 30%,#2a63d8 62%,#3a1c9c 100%)}
.ld{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}
.ldglow{position:absolute;top:-10px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.75),rgba(255,255,255,0) 68%);animation:halo 1.4s ease-in-out infinite}
#wipe .ldbear{position:relative;width:min(46vw,190px);height:min(46vw,190px);animation:ldjump .9s ease-in-out infinite;filter:drop-shadow(0 0 16px rgba(160,255,240,.95)) drop-shadow(0 8px 6px rgba(0,0,40,.4))}
@keyframes ldjump{0%,100%{transform:translateY(0) scale(1.08,.92)}45%{transform:translateY(-34px) scale(.95,1.06) rotate(-4deg)}70%{transform:translateY(-8px) rotate(3deg)}}
.ld b{font:800 30px var(--display);color:#fff;text-shadow:0 3px 0 #1a3a9c,0 0 14px rgba(255,255,255,.6);letter-spacing:1px}
.ldots{display:flex;gap:7px;margin-top:2px}
.ldots u{width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 0 8px rgba(255,255,255,.9);animation:ldot 1s ease-in-out infinite}
.ldots u:nth-child(2){animation-delay:.18s;background:#ffe14d}.ldots u:nth-child(3){animation-delay:.36s;background:#ff8fd0}
@keyframes ldot{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-10px);opacity:1}}
/* before a level */
#prelevel .card{gap:8px}
.pl-tier{align-self:center;padding:3px 14px;border-radius:999px;font:800 13px var(--display);letter-spacing:1.4px;text-transform:uppercase;color:#fff}
.pl-tier.hard{background:#ff4421;box-shadow:0 3px 0 #a31d00}
.pl-tier.veryhard{background:#7a2fd0;box-shadow:0 3px 0 #3a1180}
.pl-tier.extreme{background:#111;box-shadow:0 3px 0 #000}
.pl-stars{display:flex;justify-content:center;gap:6px;margin:2px 0}
.pl-stars .slot{display:grid;place-items:center;width:78px;height:78px;border-radius:50%;background:radial-gradient(circle,rgba(30,90,150,.28),rgba(30,90,150,.1) 70%);box-shadow:inset 0 3px 6px rgba(20,60,110,.35)}
.pl-stars .slot:nth-child(2){transform:translateY(-10px)}
.pl-stars img.star{width:62px;height:62px;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(90,40,0,.4))}
.pl-stars img.star.off{opacity:.45}
.pl-info{font-size:14px;margin:0;color:#35557a}
.pl-row{display:flex;justify-content:center;gap:8px}
.pl-row .chip{height:32px;padding:0 10px 0 6px;font-size:14px}
.pl-row .chip img{width:22px;height:22px;object-fit:contain}
#prelevel .pl-play{background:linear-gradient(180deg,#8cf060,#2fb82f);border:2px solid #1c8a1c;box-shadow:0 6px 0 #146b17;font-size:26px;padding:10px;letter-spacing:1px;color:#fff;text-shadow:0 2px 0 rgba(8,70,20,.7)}

/* win screen: a glowing sunburst instead of the dark blur, and the stars in an arch */
#win{background:radial-gradient(circle at 50% 42%,#6fe9ff 0,#2a8ee8 36%,#2a3fb8 66%,#1c1470 100%);backdrop-filter:none;overflow:hidden}
#win .rays{position:absolute;inset:-30%;pointer-events:none;z-index:0}
#win .rays i{position:absolute;inset:0;background:repeating-conic-gradient(from 0deg at 50% 42%,rgba(255,255,255,.34) 0 7deg,rgba(255,255,255,0) 7deg 20deg);animation:raysspin 22s linear infinite;-webkit-mask:radial-gradient(circle at 50% 42%,#000 0,#000 18%,transparent 62%);mask:radial-gradient(circle at 50% 42%,#000 0,#000 18%,transparent 62%)}
#win .rays i.r2{background:repeating-conic-gradient(from 10deg at 50% 42%,rgba(255,235,140,.28) 0 5deg,rgba(255,235,140,0) 5deg 30deg);animation-duration:34s;animation-direction:reverse}
@keyframes raysspin{to{transform:rotate(360deg)}}
#win .card{position:relative;z-index:1}
.stars{align-items:flex-end}
#win .stars{padding-top:20px}
#win .stars .star:nth-child(1),#win .stars .star:nth-child(3){transform-origin:50% 100%}
#win .stars .star:nth-child(2){margin-bottom:22px}

/* second row of helpers in the game */
.tools2{display:flex;justify-content:center;gap:14px;margin-top:-4px}
.tools2 .btn{position:relative;background:none;border:0;box-shadow:none;padding:0;width:50px;min-height:0;filter:drop-shadow(0 3px 3px rgba(40,0,80,.45))}
.tools2 .btn .tico{width:46px;height:46px;object-fit:contain;filter:none;pointer-events:none}
.tools2 .btn .badge{position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#fff;color:#c2185b;font:800 12px/20px Nunito,system-ui,sans-serif;font-style:normal;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.tools2 .btn.empty{opacity:.6}
.board{width:min(100%,calc(100dvh - 392px),440px)}
.board.n10{width:min(calc(100vw - 8px),calc(100dvh - 296px),540px)}
.board.lens .cell{cursor:zoom-in;animation:lenspulse 1s ease-in-out infinite}
@keyframes lenspulse{50%{box-shadow:inset 0 0 0 3px rgba(255,255,255,.9),0 0 10px rgba(120,230,255,.9)}}
/* pre-level boosters */
.pl-boost{display:flex;justify-content:center;gap:10px}
.pl-boost .bst{position:relative;display:flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;border-radius:14px;background:linear-gradient(180deg,#fff,#dff1ff);border:3px solid #9fc9e8;box-shadow:0 3px 0 #6fa3c8;color:#35557a;font:800 14px var(--display)}
.pl-boost .bst img{width:32px;height:32px;object-fit:contain}
.pl-boost .bst i{font-style:normal;background:#35557a;color:#fff;border-radius:999px;min-width:20px;height:20px;line-height:20px;text-align:center;font-size:12px;padding:0 4px}
.pl-boost .bst.on{border-color:#2fb82f;background:linear-gradient(180deg,#eaffdf,#b9f58f);box-shadow:0 3px 0 #1c8a1c,0 0 12px rgba(120,255,90,.8)}
.pl-boost .bst.none{opacity:.55}
/* prize popup */
#reward{z-index:40;background:radial-gradient(circle at 50% 45%,rgba(120,230,255,.55),rgba(30,20,120,.78))}
#reward .rw-burst{position:absolute;inset:-30%;pointer-events:none;background:repeating-conic-gradient(from 0deg at 50% 45%,rgba(255,255,255,.3) 0 6deg,rgba(255,255,255,0) 6deg 18deg);animation:raysspin 18s linear infinite;-webkit-mask:radial-gradient(circle at 50% 45%,#000 0,#000 20%,transparent 60%);mask:radial-gradient(circle at 50% 45%,#000 0,#000 20%,transparent 60%)}
#reward .card{position:relative;--cw:min(300px,calc(100vw - 56px));gap:6px}
.rw-items{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:4px 0}
.rw-it{display:flex;flex-direction:column;align-items:center;animation:rwpop .7s cubic-bezier(.2,1.5,.4,1) both}
.rw-it img{width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 0 14px rgba(255,235,120,.95)) drop-shadow(0 5px 3px rgba(60,30,0,.4));animation:rwfloat 1.6s ease-in-out .8s infinite}
.rw-it b{font:800 30px var(--display);color:#c2185b;text-shadow:0 2px 0 #fff}
.rw-text{font-size:14px;margin:0;color:#35557a;font-weight:800}
@keyframes rwpop{0%{opacity:0;transform:translateY(-120px) scale(2.2) rotate(-200deg)}60%{opacity:1;transform:translateY(8px) scale(.85) rotate(10deg)}100%{opacity:1;transform:none}}
@keyframes rwfloat{50%{transform:translateY(-8px) rotate(3deg)}}

/* ----- board frames chosen in the collection ----- */
.board,.board.hard,.board.veryhard,.board.extreme{background:var(--fbg,#f7f1e5)}
/* ----- smaller win popup: frame and text shrink, stars keep their size ----- */
#win .card{--cw:min(272px,calc(100vw - 72px));gap:4px;padding-top:calc(var(--k) * 10)}
#win .win-gumi{width:92px;height:92px;margin:-6px auto -8px}
#win .win-gumi svg{width:86px;height:86px}
#win .card p{font-size:12px}
#win .gain{font-size:21px}
#win .gain small{font-size:10px}
#win .stars{margin:0 -22px}
#win .stars img.star{width:88px;height:88px;margin:0 -5px}
#win .card .btn{padding:6px 8px;font-size:13px}
#win .card .link{padding:4px 14px;font-size:12px}
/* ----- readable text on every button: a dark outline around the lettering ----- */
.btn,.btn.main,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,#nextBtn,.bst span,.nav button span,.med .tag,.tag{-webkit-text-stroke:3px #2a1208;paint-order:stroke fill;text-shadow:0 2px 0 rgba(30,10,0,.55);letter-spacing:.3px}
.nav button span{-webkit-text-stroke:2.5px #2a1208}
.btn.main:disabled{-webkit-text-stroke-color:#3a3a3a}
/* ----- settings gear in the always-visible header ----- */
.gearchip{width:34px;padding:0;justify-content:center;cursor:pointer;margin-left:0}
.gearchip svg{width:20px;height:20px;color:#7a2fd0}
.wallet{gap:4px}
.wallet .chip{padding:0 6px 0 4px;font-size:13px}
.wallet .chip.me{padding:0 4px}
/* ----- collection / tabs ----- */
.col-tabs{display:flex;justify-content:center;gap:6px;margin:2px 0}
.col-tabs button{padding:6px 12px;border-radius:12px;background:linear-gradient(180deg,#e9f3ff,#bcd6f0);border:2px solid #86aed2;box-shadow:0 3px 0 #5f8fb8;color:#35557a;font:800 13px var(--display);-webkit-text-stroke:0;text-shadow:none}
.col-tabs button.on{background:linear-gradient(180deg,#8cf060,#2fb82f);border-color:#1c8a1c;box-shadow:0 3px 0 #146b17;color:#fff;-webkit-text-stroke:2.5px #2a1208;paint-order:stroke fill}
.col-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:42vh;overflow:auto;padding:2px}
.colcell{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:14px;background:rgba(255,255,255,.6);border:3px solid transparent;color:#35557a;font:800 12px var(--display)}
.colcell img{width:64px;height:64px;object-fit:contain}
.colcell.sel{border-color:#2fb82f;background:#eaffdf;box-shadow:0 0 10px rgba(80,220,60,.6)}
.colcell.lock{opacity:.55;filter:grayscale(.7)}
.colcell i{font-style:normal;font-size:10px;background:#35557a;color:#fff;border-radius:8px;padding:1px 6px}
.swatch{position:relative;width:64px;height:64px;border-radius:14px;border:3px solid #ffc247;box-shadow:inset 0 0 0 3px rgba(255,255,255,.6);display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:8px}
.swatch u{border-radius:5px;background:rgba(255,255,255,.55)}
.swatch.big{width:96px;height:96px}
.sticker{width:64px;height:64px;border-radius:50%;background:#444 center/cover;border:4px solid #fff;box-shadow:0 0 0 3px #ffc247,0 4px 6px rgba(0,0,0,.35)}
.sticker.big{width:96px;height:96px}
.colcell.stk span{font-size:10px;line-height:1.1;text-align:center}
/* chips on the claim buttons */
.btn.chips{display:flex;align-items:center;gap:3px;padding:6px 10px}
.btn.chips img{width:20px;height:20px;object-fit:contain}
.btn.chips em{font-style:normal;font-size:13px}

/* no outlines on text: white lettering gets a soft dark shadow instead, dark lettering stays clean */
.btn,.btn.main,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,#nextBtn,.bst span,.nav button span,.med .tag,.tag,.col-tabs button,.col-tabs button.on{-webkit-text-stroke:0;paint-order:normal;letter-spacing:.2px}
.btn.main,#nextBtn,.card .btn:not(.main),.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,.nav button span,.med .tag,.col-tabs button.on,.pl-play{text-shadow:0 2px 3px rgba(0,0,0,.78),0 0 2px rgba(0,0,0,.55)}
.bst span,.col-tabs button:not(.on),.btn.main:disabled{text-shadow:none}
.btn.main:disabled{text-shadow:0 1px 2px rgba(0,0,0,.5)}
/* win popup: squarer and roomier than before, stars unchanged */
#win .card{--cw:min(334px,calc(100vw - 32px));gap:2px;padding-top:calc(var(--k) * 6)}
#win .win-gumi{width:74px;height:74px;margin:-4px auto -6px}
#win .win-gumi svg{width:70px;height:70px}
#win .stars{margin:0 -4px}
#win .card p{font-size:12px;margin:0}
#win .reward{font-size:12px}
#win .row{gap:10px}

/* ===== glossy candy buttons (made with GPT Image in Overchat), bolder lettering, deeper shadow on white text ===== */
.btn,.btn.main,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,#nextBtn,.pl-play,.col-tabs button,.bst span,.nav button span,.med .tag,.tag,.plTitle{font-family:'Lilita One','Baloo 2',system-ui,sans-serif;font-weight:400;letter-spacing:.6px}
.btn.main,.card .btn.main,.daily-go,.play{background:url(art/btn_orange.webp) center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;padding:12px 18px;filter:drop-shadow(0 5px 3px rgba(60,20,0,.5))}
.card .btn:not(.main),.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link{background:url(art/btn_blue.webp) center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;filter:drop-shadow(0 4px 3px rgba(0,20,60,.5))}
#nextBtn,#nextBtn.btn,#prelevel .pl-play,.pl-play,#plPlay{background:url(art/btn_green.webp) center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;filter:drop-shadow(0 5px 3px rgba(0,40,0,.5))}
.btn.main:disabled,.card .btn:disabled{filter:grayscale(.7) brightness(.85);opacity:.7}
.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link{padding:8px 26px}
.btn:active,.card .link:active{transform:translateY(3px) scale(.98);filter:brightness(.95)}
.col-tabs button{background:url(art/btn_blue.webp) center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:#fff;padding:8px 14px;filter:drop-shadow(0 3px 2px rgba(0,20,60,.45))}
.col-tabs button.on{background-image:url(art/btn_green.webp);filter:drop-shadow(0 0 8px rgba(120,255,90,.8)) drop-shadow(0 3px 2px rgba(0,40,0,.5))}
/* every white label: a clearly darker, softer shadow, no outline */
.btn.main,#nextBtn,.card .btn,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,.nav button span,.med .tag,.tag,.col-tabs button,.pl-play,.fx-word,.hint-big b,.chip b,.hearts,.badge,.title b,.ver,.ld b,.help,.zone-name,.ribbon b,.ribbon small,.node,.node small,.node .badge,.toast{text-shadow:0 2px 0 rgba(0,0,0,.9),0 4px 8px rgba(0,0,0,.85),0 0 3px rgba(0,0,0,.8)}
.chip b,.badge,.title b{text-shadow:0 1px 2px rgba(255,255,255,.5)}
.bst span{text-shadow:none}
.win-gain,.reward,.rw-text{text-shadow:none}

/* ===== Nunito everywhere ===== */
:root{--display:'Nunito','Trebuchet MS',system-ui,sans-serif;--body:'Nunito',system-ui,sans-serif}
body,button,input,textarea{font-family:'Nunito',system-ui,sans-serif}
.btn,.btn.main,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,#nextBtn,.pl-play,.col-tabs button,.bst span,.nav button span,.med .tag,.tag{font-family:'Nunito',system-ui,sans-serif;font-weight:800;letter-spacing:.2px}
/* ===== the logo ===== */
.logo{display:flex;justify-content:center;animation:logobob 3.2s ease-in-out infinite;filter:drop-shadow(0 6px 6px rgba(40,0,80,.45)) drop-shadow(0 0 14px rgba(255,255,255,.35))}
.logo img{width:min(78vw,330px);height:auto;display:block}
.hero .logo img{width:min(50vw,210px)}
.logo.big img{width:min(88vw,420px)}
@keyframes logobob{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-5px) rotate(.6deg)}}
/* ===== every white label gets a thin black outline (with the soft shadow kept) ===== */
.btn.main,#nextBtn,.card .btn,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,.nav button span,.med .tag,.tag,.col-tabs button,.pl-play,.fx-word,.hint-big b,.ld b,.help,.ribbon b,.ribbon small,.node,.node small,.node .badge,.toast,.tier,.pl-tier,.hearts b,.ver,.sides .tag,.map .ribbon span,.node span,.badge{-webkit-text-stroke:1.6px #000;paint-order:stroke fill;text-shadow:0 2px 0 rgba(0,0,0,.9),0 3px 6px rgba(0,0,0,.7)}
.chip b,.badge,.title b,.card h2,.card p,.card small,.stk span,.shoprow b,.shoprow small,.pl-info,.rw-text,.reward,.rwd b,.bst span,.colcell span{-webkit-text-stroke:0;text-shadow:none}
.chip b{-webkit-text-stroke:0}

/* dark lettering never gets an outline: only white text does */
.badge,.node .badge,.node.hard .badge,.node.veryhard .badge,.node.extreme .badge,#hintLeft,.hint-big b,.card h2,.title b,.col-tabs button:not(.on),.btn:disabled,.play,.coach-body p,.coach-body small,.pl-info,.shoprow b,.shoprow small,.colcell span,.bst span,.rw-it b,.rwd b,.pf-grid b,.pf-grid small{-webkit-text-stroke:0;paint-order:normal;text-shadow:none}

/* each world has its own ribbon color; the logo is shown on its purple background */
.map .ribbon{color:#fff}
.logo img{border-radius:22px;box-shadow:0 0 0 3px rgba(255,255,255,.18)}

/* level circles share their world's color */
.node:not(.hard):not(.veryhard):not(.extreme):not(.locked){border-color:var(--cb,#fff)}

/* locked levels keep their world's color (a little softer), never one flat purple */
.node.locked{background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.5),transparent 46%),var(--c,#9a82c8);border-color:var(--cb,#cdbdf0);color:rgba(255,255,255,.92);filter:saturate(.8) brightness(.93);box-shadow:0 5px 0 rgba(40,0,80,.3)}
.node.hard.locked,.node.veryhard.locked,.node.extreme.locked{filter:saturate(.85) brightness(.9)}
/* the mascot shines: warm glow + crisp edge */
.mascot,.hopper.gumi{filter:drop-shadow(0 0 8px rgba(255,235,150,.95)) drop-shadow(0 3px 2px rgba(0,0,0,.4))}

/* a bigger bear on the map, standing right on its level circle */
.mascot{width:92px;height:96px;margin:-84px 0 0 -46px}
.hopper.gumi{width:92px;height:96px;margin:-84px 0 0 -46px}

.card .xclose{pointer-events:auto;cursor:pointer;z-index:5}
.overlay .card{position:relative}

.mascot img,.mascot svg,.hopper.gumi svg,.win-gumi svg,.hero-gumi{image-rendering:auto}
.mascot,.hopper.gumi,.win-gumi svg{filter:contrast(1.06) saturate(1.12) drop-shadow(0 0 9px rgba(255,238,160,.95)) drop-shadow(0 3px 2px rgba(0,0,0,.4))}

/* win popup: nearly square, only stars + prize, big buttons */
#win .card{--cw:min(330px,calc(100vw - 40px));gap:6px}
#win #winInfo,#win #winGain,#win #winCoins,#win .card .link{display:none}
#win .win-gumi{width:84px;height:84px;margin:-6px auto -4px}
#win .win-gumi svg{width:80px;height:80px}
#win .stars img.star{width:84px;height:84px}
#win .reward{font-size:14px;margin:2px 0 0;line-height:1.2}
#win .row{gap:12px;margin-top:6px}
#win .card .btn{padding:16px 10px;font-size:19px;min-height:62px}
#win .card #nextBtn{flex:1.25;font-size:21px}
#win .card #shareBtn{flex:1}

/* squarer win popup */
#win .card{--cw:min(318px,calc(100vw - 48px));padding-bottom:calc(var(--k) * 20)}
#win .win-gumi{width:104px;height:104px;margin:-10px auto -8px}
#win .win-gumi svg{width:100px;height:100px}
#win .stars{margin:0 -10px}
#win .stars img.star{width:78px;height:78px}

/* victory jump: both arms up, big happy hops with a squash on landing */
@keyframes gumidance{0%,100%{transform:translateY(0) scale(1.08,.92)}18%{transform:translateY(-4px) scale(.98,1.04)}45%{transform:translateY(-34px) scale(.95,1.07) rotate(-3deg)}62%{transform:translateY(-34px) scale(.95,1.07) rotate(3deg)}85%{transform:translateY(0) scale(1.1,.9)}}
.win-gumi svg{animation:gumientry .9s cubic-bezier(.2,1.4,.4,1) both,gumidance 1.1s ease-in-out .9s infinite}
#win .win-gumi{width:120px;height:110px;margin:-12px auto -6px}
#win .win-gumi svg{width:116px;height:116px}

/* smaller bear on the map */
.mascot{width:70px;height:74px;margin:-64px 0 0 -35px}
.hopper.gumi{width:70px;height:74px;margin:-64px 0 0 -35px}

/* Nunito: heavy weight for every label */
body,button,input,textarea{font-family:'Nunito',system-ui,sans-serif;font-weight:800}
.btn,.btn.main,.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link,.play,.daily-go,#nextBtn,.pl-play,.col-tabs button,.nav button span,.med .tag,.tag,.node,.chip b,.card h2,.title b,.ribbon b{font-family:'Nunito',system-ui,sans-serif;font-weight:900}

.mascot,.hopper.gumi,.win-gumi svg{filter:drop-shadow(0 3px 3px rgba(60,0,30,.35))}

/* ===== batch of 20 fixes ===== */
/* 1. seven equal framed helper tiles in one row, closer to the board */
.tools2{display:none}
.tools{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;align-items:center;justify-items:center;margin-top:-4px}
.tools .btn,.tools .btn.main{width:100%;max-width:46px;aspect-ratio:1;padding:0;min-height:0;position:relative;background:none;border:0;box-shadow:none;border-radius:12px;filter:drop-shadow(0 3px 2px rgba(40,0,80,.45))}
.tools .btn .tico{width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none}
.tools .btn .badge{position:absolute;top:-6px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#fff;color:#c2185b;font:900 11px/18px 'Nunito',system-ui,sans-serif;font-style:normal;text-align:center;box-shadow:0 2px 5px rgba(0,0,0,.3);-webkit-text-stroke:0;text-shadow:none}
.boardwrap{padding:0}
.screen{gap:9px}
body.in-game .screen{gap:7px}
.board{width:min(100%,calc(100dvh - 318px),440px)}
.board.n10{width:min(calc(100vw - 8px),calc(100dvh - 250px),540px)}
/* 3. the settings window always fits the screen */
#how .card{max-height:calc(100dvh - 24px)}
#how .hscroll{max-height:calc(100dvh - 330px);overflow-y:auto;overflow-x:hidden;padding-right:2px;-webkit-overflow-scrolling:touch}
/* 8. a revealed candy: its square gets a thin black edge so it stands out */
.cell.has{box-shadow:inset 0 0 0 3px #1b0d2e,inset 0 -3px 0 rgba(0,0,0,.16),0 0 0 1px rgba(255,255,255,.55)}
/* 12. larger lettering in buttons */
.btn,.btn.main{font-size:17px}
.card .btn.main{font-size:19px}
.card .btn{font-size:17px}
#win .card .btn{font-size:22px}
#win .card #nextBtn{font-size:24px}
.nav button span{font-size:13.5px}
.med .tag{font-size:13px}
.card .link,.rank-btn,.coach-actions .link,.intro-ctl .link{font-size:16px}
.col-tabs button{font-size:14.5px}
.play,.daily-go{font-size:22px}
/* 13. stars sit above the circle, clear of the level number */
.node .st{top:-30px}
.node .st img.star{width:19px;height:19px}
.node .st{filter:drop-shadow(0 1px 1px rgba(0,0,0,.45))}
/* 14. world titles centred */
.map .ribbon{display:grid;place-items:center;text-align:center;padding:0 16%}
.map .ribbon span{display:block;width:100%;text-align:center;transform:translateY(-2px)}
.map .ribbon small,.map .ribbon b{text-align:center;display:block}
/* 16. chest opening */
.chest-art{transform-origin:50% 80%}
.chest-art.opening{animation:chestshake .95s ease-in-out both;filter:drop-shadow(0 0 16px rgba(255,225,77,.95))}
.chest-art.opened{animation:chestpop .5s cubic-bezier(.3,1.7,.5,1) both;filter:drop-shadow(0 0 22px rgba(255,225,77,.95))}
@keyframes chestshake{0%{transform:rotate(0) scale(1)}12%{transform:rotate(-9deg) scale(1.04)}25%{transform:rotate(9deg) scale(1.08)}38%{transform:rotate(-11deg) scale(1.12)}52%{transform:rotate(11deg) scale(1.16)}68%{transform:rotate(-6deg) scale(1.2)}85%{transform:rotate(0) scale(1.3)}100%{transform:scale(1.34)}}
@keyframes chestpop{0%{transform:scale(1.34)}45%{transform:scale(1.08) translateY(-6px)}100%{transform:scale(1.12)}}
#fx{z-index:45}
.fx-coin{position:absolute;width:34px;height:34px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(80,40,0,.5))}
/* 19 + 20. live wallpaper: the world drifts slowly and sparkles float up; special levels are black */
#scene{background:#2a1450}
#scene::before{content:"";position:absolute;inset:-6%;background:var(--bgimg,none) center/cover no-repeat;animation:lwp 28s ease-in-out infinite alternate;will-change:transform}
@keyframes lwp{from{transform:scale(1) translate(-1.6%,-1.2%)}to{transform:scale(1.09) translate(1.6%,1.2%)}}
.sparkfield{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.sparkfield i{position:absolute;left:var(--x);bottom:-12px;width:var(--s);height:var(--s);border-radius:50%;background:radial-gradient(circle,#fff,rgba(255,255,255,0) 72%);opacity:0;animation:floatup var(--d) linear infinite}
@keyframes floatup{0%{opacity:0;transform:translate(0,0)}12%{opacity:.95}100%{opacity:0;transform:translate(var(--dx),-112vh)}}
#scene.dark{background:#000}
#scene.dark::before{display:none}
#scene.dark::after{background:none}
#scene.dark .sparkfield i{background:radial-gradient(circle,#fff,rgba(190,170,255,0) 72%);animation-name:twinkle;bottom:auto;top:calc(var(--x) * .9);animation-duration:calc(var(--d) * .35)}
@keyframes twinkle{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1.5)}}
#mapfx{position:fixed;inset:0;z-index:1;pointer-events:none;display:none}
body:not(.in-game) #mapfx{display:block}
.zone{background-size:cover;animation:zonepan 34s ease-in-out infinite alternate}
@keyframes zonepan{from{background-position:34% 50%}to{background-position:66% 50%}}
@media (prefers-reduced-motion:reduce){#scene::before,.zone,.sparkfield i{animation:none}}

/* ===== new lucky wheel ===== */
.wheelbox{position:relative;width:min(300px,92%);aspect-ratio:1;margin:2px auto 0}
.wheelbox .wheel-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.wheelbox .wring{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 6px 5px rgba(60,20,0,.5))}
.wheelbox .whub{position:absolute;left:50%;top:50%;width:21%;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 3px 3px rgba(60,20,0,.55))}
.wheelbox .wptr{position:absolute;left:50%;top:-3%;width:15%;transform:translateX(-50%);pointer-events:none;filter:drop-shadow(0 3px 3px rgba(0,0,0,.5))}
#wheel .card{--cw:min(360px,calc(100vw - 24px))}

.col-tabs button{position:relative}
.col-tabs button.dot::after{content:"";position:absolute;top:-4px;right:-3px;width:13px;height:13px;border-radius:50%;background:#ff3f3f;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}

/* Hard/Very Hard tags sit above the stars */
.node.hasst .badge{top:-47px;z-index:3}
.node .st{top:-27px;z-index:2}
.node .st img.star{width:17px;height:17px}
/* world titles: dead centre on the ribbon body */
.map .ribbon{padding:0;grid-template-columns:100%}
.map .ribbon span{transform:translateY(1px);margin:0 auto;width:62%;text-align:center}
.map .ribbon small{margin:0 0 1px;padding-left:2.5px}
/* long lists scroll inside their window instead of leaving the screen */
.shoplist{max-height:calc(100dvh - 350px);overflow-y:auto;overflow-x:hidden;padding-right:2px;-webkit-overflow-scrolling:touch}
#quests .card{max-height:calc(100dvh - 20px)}
.col-tabs button.on{background-image:url(art/btn_green.webp);background-size:100% 100%}

/* coins flying into the wallet */
.bank{position:fixed;left:50%;top:max(14px,env(safe-area-inset-top));transform:translateX(-50%);z-index:44;display:flex;align-items:center;gap:8px;padding:6px 16px 6px 8px;border-radius:99px;background:linear-gradient(#6a2fd6,#3d1596);border:3px solid #fff;box-shadow:0 4px 0 rgba(0,0,0,.25),0 8px 18px rgba(0,0,0,.35);color:#fff;font-weight:900;font-size:22px;-webkit-text-stroke:1.2px #000;paint-order:stroke fill}
.bank img{width:34px;height:34px;object-fit:contain}
.bank[hidden]{display:none}
.bump{animation:bump .28s ease-out}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.22)}100%{transform:scale(1)}}
.bank.bump{animation:bankbump .28s ease-out}
@keyframes bankbump{0%{transform:translateX(-50%) scale(1)}40%{transform:translateX(-50%) scale(1.22)}100%{transform:translateX(-50%) scale(1)}}

/* level circles: tag above the number, stars under it, all inside the circle */
.node.hard,.node.veryhard,.node.extreme{padding-top:13px}
.node.hasst{padding-bottom:12px}
.node .badge,.node.hasst .badge{top:6px;font-size:8px;line-height:1;padding:2px 5px;letter-spacing:.3px;z-index:3}
.node.extreme .badge{top:8px}
.node .st,.node.hasst .st{top:auto;bottom:5px;left:50%;transform:translateX(-50%);gap:0;z-index:2}
.node .st img.star{width:15px;height:15px}

/* win celebration: crouch, launch, tucked mid-air pose, fall, squash on landing. Gravity-style timing (ease-out up, ease-in down), pure transform/opacity. */
#win .win-gumi{position:relative;width:132px;height:128px;margin:-8px auto -4px;display:block}
#win .win-gumi .gbody{position:absolute;left:50%;bottom:6px;width:112px;height:112px;margin-left:-56px;transform-origin:50% 100%;animation:gjump 1.5s linear .5s infinite;will-change:transform;filter:drop-shadow(0 3px 3px rgba(60,0,30,.35))}
#win .win-gumi .gbody img{position:absolute;left:0;bottom:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%}
#win .win-gumi .g-air{opacity:0;animation:gair 1.5s linear .5s infinite}
#win .win-gumi .g-ground{animation:gground 1.5s linear .5s infinite}
#win .win-gumi .gshadow{position:absolute;left:50%;bottom:2px;width:70px;height:10px;margin-left:-35px;border-radius:50%;background:rgba(40,0,60,.38);filter:blur(2px);animation:gshadow 1.5s linear .5s infinite;z-index:0}
#win .win-gumi .halo{z-index:0}
@keyframes gjump{
  0%{transform:translateY(0) scale(1,1);animation-timing-function:cubic-bezier(.23,1,.32,1)}
  12%{transform:translateY(0) scale(1.1,.86);animation-timing-function:cubic-bezier(.23,1,.32,1)}
  18%{transform:translateY(-6px) scale(.94,1.1);animation-timing-function:cubic-bezier(.23,1,.32,1)}
  46%{transform:translateY(-33px) scale(1,1) rotate(-4deg);animation-timing-function:linear}
  52%{transform:translateY(-36px) scale(1,1) rotate(0);animation-timing-function:cubic-bezier(.55,0,1,.45)}
  78%{transform:translateY(0) scale(.96,1.08) rotate(3deg);animation-timing-function:cubic-bezier(.23,1,.32,1)}
  84%{transform:translateY(0) scale(1.12,.84) rotate(0);animation-timing-function:cubic-bezier(.23,1,.32,1)}
  92%{transform:translateY(0) scale(.98,1.03)}
  100%{transform:translateY(0) scale(1,1)}
}
@keyframes gair{0%,17%{opacity:0}18%,76%{opacity:1}77%,100%{opacity:0}}
@keyframes gground{0%,17%{opacity:1}18%,76%{opacity:0}77%,100%{opacity:1}}
@keyframes gshadow{0%,12%{transform:scale(1);opacity:1}46%,52%{transform:scale(.55);opacity:.5}78%,100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){
  #win .win-gumi .gbody,#win .win-gumi .g-air,#win .win-gumi .g-ground,#win .win-gumi .gshadow{animation:none}
}

/* Hard / Very Hard / Extreme: the board itself plays on black, the rest of the screen keeps its world */
.board.blk{background:#000}

.board.hard,.board.veryhard,.board.extreme{background:#000}

/* the floating wallet that catches coins on the game screen sits just under the header, never over its buttons, and is only there for a moment */
.bank{top:calc(env(safe-area-inset-top,0px) + 98px);padding:3px 12px 3px 6px;font-size:18px}
.bank img{width:26px;height:26px}

.hopper.gumi{display:block}
.hopper.gumi img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%;pointer-events:none}
.hopper.gumi{animation:none}
.hopper.gumi{transform-origin:50% 100%}

/* the map bear blinks now and then (second pose faded in for a split second), and the Out-of-hearts card shows the sad bear */
.mascot .blink{position:absolute;left:0;top:0;opacity:0;animation:gblink 4.6s linear infinite;animation-delay:1.2s}
@keyframes gblink{0%,94%{opacity:0}95%,97%{opacity:1}98%,100%{opacity:0}}
.lose-gumi{width:120px;height:140px;margin:-6px auto 4px;animation:gsad 2.4s ease-in-out infinite;transform-origin:50% 100%}
.lose-gumi img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px rgba(60,0,30,.35))}
@keyframes gsad{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(2px) rotate(-1.5deg) scale(1,.985)}}
@media (prefers-reduced-motion:reduce){.mascot .blink,.lose-gumi{animation:none}}
.lose-gumi{display:flex;justify-content:center;align-items:flex-end;width:auto;height:150px;margin:-6px auto 6px}
.lose-gumi img{width:auto;height:100%;max-width:100%}

.bank{display:none!important}

/* world titles: one line, exactly centred on the banner body (the ribbon art's body sits ~5% above its box centre) */
.map .ribbon{padding:0!important;display:grid!important;place-items:center!important;grid-template-columns:100%!important}
.map .ribbon span{width:78%!important;margin:0 auto!important;transform:translateY(-4px)!important;text-align:center!important;display:block}
.map .ribbon b{white-space:nowrap!important;display:block;text-align:center}
.map .ribbon small{padding-left:2.5px!important;text-align:center}

/* centre the two title lines with flex so that even an over-long name overflows equally to both sides, never to one */
.map .ribbon span{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:84%!important}
.map .ribbon span small,.map .ribbon span b{display:block;width:max-content;max-width:none;margin:0!important;text-align:center}

/* the blink pose belongs to the varsity jacket only */
body:not([data-outfit="hero"]) .mascot .blink{display:none}

/* bear colour picker + rare sticker */
.colrow{grid-column:1/-1;display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center;padding:6px 4px 2px}
.colrow b{width:100%;text-align:center;font-size:14px;color:#6b3f1d}
.cdot{width:34px;height:34px;border-radius:50%;border:3px solid #fff;background:var(--cc);box-shadow:0 2px 0 rgba(0,0,0,.3);cursor:pointer;padding:0}
.cdot.sel{outline:3px solid #2fd16b;outline-offset:1px}
.cdot.lock{filter:grayscale(.9) brightness(.8);opacity:.6}
.sticker.rare{display:grid;place-items:center;background:radial-gradient(circle,#555,#111);font-size:34px}

.cwrap{display:flex;flex-direction:column;align-items:center;gap:2px}
.cwrap small{font-size:10px;font-weight:800;color:#6b3f1d;line-height:1}

.stkrow{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border-radius:14px;padding:8px 10px;box-shadow:0 2px 0 rgba(0,0,0,.15);font-size:13px;color:#6b3f1d}
.stkrow em{font-style:normal;background:#fff3c4;border-radius:8px;padding:1px 6px;margin-left:3px;white-space:nowrap}
.stkrow.lock{opacity:.7}
.stkbtn{min-width:86px;padding:8px 10px!important;font-size:15px!important}
#colGrid{overflow-x:hidden}
.stkrow span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left}
.stkrow em{white-space:normal}

/* ---- Candy Pass, Coin Rush, quick mini-games ---- */
.med .disc.emo{display:grid;place-items:center;font-size:30px;line-height:1}
.med.live .tag{background:linear-gradient(#ffd400,#ff9a00);color:#5a2a00}
.med.live .disc{position:relative;animation:dpulse 1.2s ease-in-out infinite}
/* the live event button pulses by transform, and its white ring by opacity (was a box-shadow animation: a full redraw every frame) */
.med.live .disc::after{content:"";position:absolute;inset:-4px;border-radius:50%;box-shadow:0 0 0 10px rgba(255,255,255,.25);opacity:0;pointer-events:none;animation:dring 1.2s ease-in-out infinite}
@keyframes dpulse{50%{transform:scale(1.12)}}
@keyframes dring{50%{opacity:1}}
.passrow .pnum{font-style:normal;flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#c9bde8;color:#fff;font-weight:900;font-size:15px}
.passrow .pnum.on{background:linear-gradient(#ffd400,#ff9a00);color:#5a2a00}
.passrow.now{outline:3px solid #2fd16b}
.qbar{height:10px;border-radius:99px;background:rgba(0,0,0,.15);overflow:hidden;margin:2px 0 8px}
.qbar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#7ee21f,#ffd400);border-radius:99px}
.qbody{min-height:240px}
.oddgrid{display:grid;gap:6px}
.oddc{aspect-ratio:1;padding:0;border:0;border-radius:12px;background:#fff;box-shadow:0 3px 0 rgba(0,0,0,.2);display:grid;place-items:center}
.oddc svg{width:78%;height:78%}
.oddc.shake{animation:shk .3s}
@keyframes shk{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.jdrop{height:110px;position:relative;overflow:hidden}
.jdrop i{position:absolute;left:50%;top:0;width:54px;height:54px;margin-left:-27px;border-radius:50%;box-shadow:inset 0 -6px 0 rgba(0,0,0,.18),0 3px 0 rgba(0,0,0,.2)}
.jdrop i.fall{animation:jfall linear forwards}
@keyframes jfall{from{transform:translateY(0)}to{transform:translateY(56px)}}
.jars{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.jar{aspect-ratio:.8;border:4px solid #fff;border-radius:10px 10px 22px 22px;background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.15));position:relative;overflow:hidden;box-shadow:0 3px 0 rgba(0,0,0,.25);padding:0}
.jar b{position:absolute;left:0;right:0;bottom:0;height:62%;background:var(--jc);opacity:.9}
.jar.pop{animation:jpop .25s}
@keyframes jpop{50%{transform:scale(1.14)}}

/* ---- 3D glossy artwork: question cards and tiered chests ---- */
.bcard .front,.mcard .front{background:url(art/3d_qcard.webp) center/contain no-repeat!important;border:0!important;box-shadow:none!important;font-size:0!important;color:transparent!important;text-shadow:none!important;filter:drop-shadow(0 4px 3px rgba(0,40,90,.4));transition:transform .5s,filter .2s}
.bcard:active .front{transform:scale(.94)}
@media (hover:hover) and (pointer:fine){.bcard:hover .front{filter:drop-shadow(0 6px 6px rgba(0,40,90,.5)) brightness(1.08)}}
#chest .chest-art{width:150px;height:140px;object-fit:contain;filter:drop-shadow(0 6px 5px rgba(60,20,0,.45))}
#chestSpeed{margin-top:8px;background:linear-gradient(#ffd84a,#ff9a00);color:#5a2a00;border:3px solid #fff}
.med .disc img{object-fit:contain}

/* ---- Events screen: glossy 3D cards ---- */
.evgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:calc(100dvh - 250px);overflow-y:auto;overflow-x:hidden;padding:4px 2px 10px;-webkit-overflow-scrolling:touch}
.evcard{position:relative;border:3px solid #fff;border-radius:18px;background:linear-gradient(160deg,var(--a),var(--b));box-shadow:0 5px 0 rgba(0,0,0,.35),inset 0 2px 0 rgba(255,255,255,.55);padding:6px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff;overflow:hidden;cursor:pointer}
.evcard::before{content:"";position:absolute;left:-10%;right:-10%;top:0;height:46%;background:linear-gradient(rgba(255,255,255,.42),rgba(255,255,255,.04));border-radius:0 0 60% 60%/0 0 40% 40%;pointer-events:none}
.evart{display:grid;place-items:center;height:80px;position:relative}
.evart img{max-width:94px;max-height:80px;object-fit:contain;filter:drop-shadow(0 4px 3px rgba(0,0,0,.45))}
.evcard b{position:relative;font-size:14px;line-height:1.05;text-align:center;-webkit-text-stroke:1px #000;paint-order:stroke fill;font-weight:900}
.evcard em{position:relative;font-style:normal;font-size:11px;font-weight:900;background:rgba(0,0,0,.38);border-radius:99px;padding:2px 9px;margin-top:1px;white-space:nowrap}
.evcard.hot em{background:linear-gradient(#ffd84a,#ff9a00);color:#5a2a00}
.evcard.hot .evart img{animation:evbob 1.6s ease-in-out infinite}
.evcard.dim{filter:saturate(.55) brightness(.85)}
.evcard:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.35),inset 0 2px 0 rgba(255,255,255,.55)}
@keyframes evbob{50%{transform:translateY(-4px) scale(1.04)}}
@media (prefers-reduced-motion:reduce){.evcard.hot .evart img{animation:none}}
.qcv{display:block;width:100%;max-width:300px;margin:0 auto;border-radius:14px;touch-action:none;box-shadow:0 4px 0 rgba(0,0,0,.3),0 0 0 3px #fff;cursor:crosshair}

/* ===== 3D glossy upgrade: level nodes, medallions, nav bar, win banner ===== */
.node:not(.locked){
  background:
    radial-gradient(ellipse 54% 30% at 36% 21%,rgba(255,255,255,.95),rgba(255,255,255,0) 100%),
    radial-gradient(circle at 50% 120%,rgba(255,255,255,.5),rgba(255,255,255,0) 55%),
    linear-gradient(180deg,color-mix(in srgb,var(--c,#19c6d8) 66%,#fff) 0%,var(--c,#19c6d8) 46%,color-mix(in srgb,var(--c,#19c6d8) 70%,#000) 100%)!important;
  box-shadow:0 6px 0 color-mix(in srgb,var(--c,#19c6d8) 42%,#000),0 10px 10px rgba(30,0,70,.38),inset 0 -5px 8px rgba(0,0,0,.24),inset 0 3px 5px rgba(255,255,255,.6)!important}
.node:not(.locked):active{transform:translateY(4px);box-shadow:0 2px 0 color-mix(in srgb,var(--c,#19c6d8) 42%,#000),0 4px 6px rgba(30,0,70,.35),inset 0 -4px 7px rgba(0,0,0,.24)!important}
.node.locked{background:radial-gradient(ellipse 54% 30% at 36% 21%,rgba(255,255,255,.55),rgba(255,255,255,0) 100%),linear-gradient(180deg,#b9a8dd,#8f7cc2 50%,#6f5ba6)!important;box-shadow:0 5px 0 #4a3a78,0 8px 8px rgba(30,0,70,.3),inset 0 -4px 7px rgba(0,0,0,.2)!important}
.node.hard{--c:#ff4a2a}
.node.current{box-shadow:0 6px 0 color-mix(in srgb,var(--c,#19c6d8) 42%,#000),0 0 0 4px rgba(255,225,77,.9),0 0 22px rgba(255,225,77,.85),inset 0 -5px 8px rgba(0,0,0,.24)!important}
.med .disc{position:relative;box-shadow:0 5px 0 rgba(30,0,70,.4),0 9px 10px rgba(30,0,70,.3),inset 0 -5px 8px rgba(0,0,0,.2),inset 0 3px 5px rgba(255,255,255,.55)}
.med .disc::after{content:"";position:absolute;left:14%;right:14%;top:5%;height:34%;border-radius:50%;background:linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,0));pointer-events:none}
.med:active .disc{transform:translateY(3px)}
.nav{box-shadow:inset 0 3px 0 rgba(255,255,255,.35),inset 0 -4px 6px rgba(0,0,0,.25),0 -4px 14px rgba(30,0,70,.35)}
.chip{box-shadow:0 3px 0 rgba(30,0,70,.35),inset 0 2px 0 rgba(255,255,255,.7)}
.wbanner{position:absolute;left:0;right:0;top:calc(50% - 270px);text-align:center;z-index:3;font:900 44px/1 'Nunito',system-ui,sans-serif;letter-spacing:1px;
  background:linear-gradient(180deg,#fffbd0 0%,#ffe14d 38%,#ff9a1a 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  -webkit-text-stroke:3px #8a3d00;paint-order:stroke fill;filter:drop-shadow(0 4px 0 #6b2c00) drop-shadow(0 0 16px rgba(255,200,60,.8));pointer-events:none}
.wbanner.pop{animation:wbpop .7s cubic-bezier(.2,1.5,.4,1) both}
@keyframes wbpop{0%{opacity:0;transform:scale(.3) rotate(-8deg)}60%{opacity:1;transform:scale(1.18) rotate(2deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@media (max-height:640px){.wbanner{top:calc(50% - 230px);font-size:34px}}
@media (prefers-reduced-motion:reduce){.wbanner.pop{animation:none}}

/* ===== level nodes are now real 3D glossy artwork (Overchat); per-world colour via hue-rotate ===== */
.node,.node:not(.locked),.node.locked,.node.current,.node.hard,.node.veryhard,.node.extreme{background:none!important;border:0!important;box-shadow:none!important;overflow:visible}
.node{--nimg:url(art/node_blue.webp);--nf:hue-rotate(0deg)}
.node.hard{--nimg:url(art/node_hard.webp);--nf:hue-rotate(0deg)!important}
.node.veryhard{--nimg:url(art/node_vhard.webp);--nf:hue-rotate(0deg)!important}
.node.extreme{--nimg:url(art/node_extreme.webp);--nf:hue-rotate(0deg)!important}
.node.locked{--nimg:url(art/node_lock.webp);--nf:hue-rotate(0deg)!important;filter:none!important}
.node::after{content:"";position:absolute;inset:-5px;background:var(--nimg) center/100% 100% no-repeat;filter:var(--nf) drop-shadow(0 5px 3px rgba(30,0,70,.42));z-index:-1;pointer-events:none;transition:transform .08s}
.node:not(.locked):active::after{transform:translateY(3px) scale(.97)}
.node.current::after{filter:var(--nf) drop-shadow(0 0 9px #ffe14d) drop-shadow(0 0 3px #fff) drop-shadow(0 5px 3px rgba(30,0,70,.42))}
.node.hard,.node.veryhard,.node.extreme{overflow:visible}

/* ===== 3D glossy UI plates (Overchat): icon buttons, medallion tags, wallet chips ===== */
.icon{background:url(art/ui_btn_icon.webp) center/100% 100% no-repeat!important;border-radius:0!important;box-shadow:none!important;color:#fff!important;filter:drop-shadow(0 3px 2px rgba(40,0,90,.45));width:46px;height:46px}
.icon svg{filter:drop-shadow(0 1px 1px rgba(0,0,60,.6));width:23px;height:23px}
.icon:active{transform:translateY(3px)!important}
body.in-game .bar .icon{color:#fff!important}
.med .tag{background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;padding:4px 12px 6px!important;min-width:58px;filter:drop-shadow(0 2px 2px rgba(0,0,40,.4))}
.med.ready .tag{background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat!important;filter:hue-rotate(-70deg) saturate(1.5) drop-shadow(0 2px 2px rgba(0,0,40,.4))}
.med.live .tag{filter:hue-rotate(-150deg) saturate(2) brightness(1.2) drop-shadow(0 2px 2px rgba(0,0,40,.4))}
.chip{background:url(art/ui_pill_cream.webp) center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:3px 13px 7px 9px!important;height:38px;filter:drop-shadow(0 2px 2px rgba(60,20,0,.35))}
.wallet .chip{height:38px}
.chip.gearchip,.chip.me{padding:3px 9px 7px!important}
.pl-row .chip{height:34px}
.wallet{gap:2px!important;padding-left:6px!important;padding-right:6px!important}
.wallet .chip{padding:3px 8px 7px 6px!important;height:36px!important;font-size:13px!important;gap:3px!important;min-width:0}
.wallet .chip.me,.wallet .chip.gearchip{padding:3px 6px 7px!important}
.wallet .chip img,.wallet .chip svg{width:22px!important;height:22px!important}
.wallet .chip .hrt{width:22px!important;height:22px!important}
.wallet .chip i{width:15px;height:15px;line-height:15px;font-size:13px}

/* ===== 3D glossy cards on the home screen ===== */
.daily{position:relative;overflow:hidden;border:3px solid #fff!important;background:linear-gradient(180deg,#ffe27a 0%,#ffb92e 45%,#ff8a14 100%)!important;box-shadow:0 6px 0 #c4610a,0 10px 12px rgba(60,0,110,.35),inset 0 3px 0 rgba(255,255,255,.75),inset 0 -5px 8px rgba(160,70,0,.3)!important}
.daily::before{content:"";position:absolute;left:-6%;right:-6%;top:0;height:46%;background:linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,.06));border-radius:0 0 55% 55%/0 0 40% 40%;pointer-events:none}
.daily>*{position:relative}
.daily-ico{background:linear-gradient(#fff,#ffe9b0)!important;box-shadow:0 3px 0 rgba(160,70,0,.4),inset 0 2px 0 #fff}
.daily-go{background:url(art/btn_green.webp) center/100% 100% no-repeat!important;border-radius:0!important;padding:9px 22px 11px!important;filter:drop-shadow(0 3px 2px rgba(0,60,0,.45))}
.score{position:relative;overflow:hidden;border:3px solid #fff!important;background:linear-gradient(180deg,#fff,#f1e6ff 60%,#e1ceff)!important;box-shadow:0 6px 0 #6b3fb8,0 10px 12px rgba(60,0,110,.32),inset 0 3px 0 #fff,inset 0 -5px 8px rgba(120,60,200,.2)!important}
.score::before{content:"";position:absolute;left:-6%;right:-6%;top:0;height:34%;background:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,0));pointer-events:none}
.score>*{position:relative}
.score-bar{box-shadow:inset 0 2px 3px rgba(0,0,0,.25)}

/* ===== polish pack: press feel, window pop-in, living map ===== */
.pressing{filter:brightness(.92)}
.btn.pressing,.evcard.pressing,.med.pressing,.chip.pressing,.colcell.pressing,.bst.pressing,.icon.pressing{transform:translateY(2px) scale(.97)}
.btn,.evcard,.med,.chip,.colcell,.bst,.icon{transition:transform .1s cubic-bezier(.23,1,.32,1),filter .1s}
.overlay.fadein{animation:ovfade .2s cubic-bezier(.23,1,.32,1) both}
@keyframes ovfade{from{opacity:0}to{opacity:1}}
.overlay .card.popin{animation:cardpop .28s cubic-bezier(.23,1,.32,1) both}
@keyframes cardpop{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:none}}
/* a glint sweeps across the level you are on: a real element (app.js renderHome) moved by transform, clipped to the round button.
   It is the same picture as the old background-position sweep, which made the browser redraw the whole map every frame */
.node .nglint{position:absolute;inset:1px;border-radius:50%;overflow:hidden;pointer-events:none}
.node .nglint>b{position:absolute;top:0;bottom:0;left:0;width:260%;background:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.75) 50%,rgba(255,255,255,0) 62%);animation:nglint 2.8s ease-in-out infinite}
@keyframes nglint{0%,55%{transform:translateX(-80%)}100%{transform:translateX(37%)}}
@keyframes glint{0%,55%{background-position:130% 0}100%{background-position:-60% 0}}
/* stars stamp onto the level you just passed */
.node.fresh .st img.star:not(.off){animation:ststamp .42s cubic-bezier(.23,1,.32,1) both}
.node.fresh .st img.star:nth-child(1){animation-delay:.12s}.node.fresh .st img.star:nth-child(2){animation-delay:.29s}.node.fresh .st img.star:nth-child(3){animation-delay:.46s}
@keyframes ststamp{0%{opacity:0;transform:translateY(-26px) scale(2.4) rotate(-40deg)}70%{opacity:1;transform:translateY(1px) scale(.85)}100%{opacity:1;transform:none}}
/* the next level opens with a ring of light */
.unlockring{position:absolute;width:70px;height:70px;margin:-35px 0 0 -35px;border-radius:50%;border:4px solid #ffe14d;box-shadow:0 0 14px #ffe14d,inset 0 0 10px rgba(255,255,255,.8);pointer-events:none;z-index:3;animation:uring .8s cubic-bezier(.23,1,.32,1) both}
@keyframes uring{from{opacity:1;transform:scale(.6)}to{opacity:0;transform:scale(2.3)}}
@media (prefers-reduced-motion:reduce){
  .overlay .card.popin,.overlay.fadein,.node.fresh .st img.star,.unlockring,.node.current::before{animation:none!important}
}

/* ===== natural motion: prize flight trail/flash, +N text, hop shadow and dust ===== */
.fx-coin{will-change:transform;filter:drop-shadow(0 3px 2px rgba(80,40,0,.5))}
.fx-trail{position:absolute;width:13px;height:13px;pointer-events:none;background:radial-gradient(circle,#fff 0%,#ffe98a 38%,rgba(255,200,60,0) 70%);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.fx-flash{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(255,255,255,.95) 0%,rgba(255,225,110,.7) 35%,rgba(255,200,60,0) 68%);animation:fxflash .4s cubic-bezier(.23,1,.32,1) both}
@keyframes fxflash{from{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(1.5)}}
.fx-plus{position:absolute;transform:translate(-50%,-50%);pointer-events:none;font:900 20px 'Nunito',system-ui,sans-serif;color:#ffe14d;-webkit-text-stroke:3px #5a2a00;paint-order:stroke fill;white-space:nowrap;animation:fxplus .95s cubic-bezier(.23,1,.32,1) both}
@keyframes fxplus{0%{opacity:0;transform:translate(-50%,-30%) scale(.5)}18%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}30%{transform:translate(-50%,-50%) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-110%) scale(1)}}
.hopshadow{position:absolute;width:44px;height:12px;border-radius:50%;background:rgba(30,0,60,.9);filter:blur(2.5px);pointer-events:none;z-index:4}
.hopdust{position:absolute;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.95),rgba(255,255,255,.35) 60%,rgba(255,255,255,0));pointer-events:none;z-index:4}

/* ===== Candy Climb ===== */
.cl-scroll{max-height:calc(100dvh - 330px);overflow-y:auto;overflow-x:hidden;border-radius:16px;background:linear-gradient(180deg,#7fd6ff 0%,#bfeeff 55%,#e9fbff 100%);box-shadow:inset 0 3px 8px rgba(0,60,120,.3);-webkit-overflow-scrolling:touch}
.cl-track{position:relative;width:100%}
.cl-chest{position:absolute;width:104px;transform:translateX(-50%);filter:drop-shadow(0 0 14px rgba(255,220,90,.9));animation:evbob 2s ease-in-out infinite}
.cl-plat{position:absolute;width:104px;height:84px;margin:-30px 0 0 -52px;animation:clfloat 2.6s ease-in-out infinite;animation-delay:var(--d)}
.cl-plat>img{width:100%;display:block;filter:saturate(.35) brightness(.95)}
.cl-plat.on>img{filter:none}
.cl-plat>i{position:absolute;left:0;right:0;top:9px;text-align:center;font:900 17px 'Nunito',sans-serif;color:#fff;-webkit-text-stroke:3px #7a1450;paint-order:stroke fill;font-style:normal}
.cl-prize{position:absolute;left:50%;top:-20px;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:900;color:#5a2a00}
.cl-prize em{font-style:normal;background:#fff3c4;border-radius:8px;padding:1px 5px;margin:0 1px;box-shadow:0 1px 0 rgba(0,0,0,.2)}
.cl-plat.done .cl-prize{font-size:16px;color:#1e9a3c}
.cl-claim{position:absolute;left:50%;top:26px;transform:translateX(-50%);padding:4px 12px!important;font-size:13px!important;min-width:0;z-index:3}
.cl-bear{position:absolute;width:50px;transform:translate(-50%,-100%);z-index:2;pointer-events:none;filter:drop-shadow(0 4px 3px rgba(60,0,30,.4))}
.cl-timer{align-self:center;background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat;color:#fff;font:900 16px 'Nunito',sans-serif;padding:5px 18px 8px;margin:-2px 0 2px}
@keyframes clfloat{50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.cl-plat,.cl-chest{animation:none}}
.cl-prize{white-space:normal;width:128px;text-align:center;top:auto;bottom:calc(100% - 12px);line-height:1.5}
.cl-plat.on:not(.done) .cl-prize{display:none}
.cl-prize em{white-space:nowrap;display:inline-block}

/* ===== the wallet bar is always on screen ===== */
.wallet.topbar{position:fixed!important;top:0;left:50%;transform:translateX(-50%);width:min(460px,100%);margin:0!important;z-index:44;box-sizing:border-box;padding-top:max(6px,env(safe-area-inset-top))!important}
#home{padding-top:54px}
body.in-game .wallet.topbar{display:none}
body.in-game.ov-open .wallet.topbar{display:flex}
body.ov-open .wallet.topbar{pointer-events:none}
.overlay{padding-top:58px}
body.inf-on #heartN{color:#e0245e;font-size:12px}
.inftag{position:absolute;transform:translateY(-22px);background:linear-gradient(#ff7aa8,#e0245e);color:#fff;font:900 11px 'Nunito',sans-serif;border-radius:99px;padding:1px 8px;border:2px solid #fff;white-space:nowrap;z-index:3}
/* ===== visual tutorial ===== */
#tutorial .card{gap:8px}
.tstage{min-height:170px;display:grid;place-items:center}
.tpair{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%}
.tside{position:relative;display:grid;place-items:center}
.tsolo{position:relative;width:170px}
.tb{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:4px;border-radius:12px;background:#3a1d72;box-shadow:0 4px 0 rgba(0,0,0,.3);width:100%;aspect-ratio:1;border:3px solid #fff}
.tb.isgood{border-color:#34d058}.tb.isbad{border-color:#ff4d5e}
.tc{position:relative;border-radius:5px;background:var(--c);display:grid;place-items:center;box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.18)}
.tc svg{width:82%;height:82%;animation:tpop .4s cubic-bezier(.23,1,.32,1) both}
.tc u{width:54%;height:54%;background:linear-gradient(45deg,transparent 42%,#3a1d72 42% 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,#3a1d72 42% 58%,transparent 58%);opacity:.75}
.tc.hi{animation:thi 1.4s ease-in-out infinite}
.tc.red{animation:tred 1s ease-in-out infinite}
.tc.red::after{content:"";position:absolute;inset:0;border-radius:5px;background:rgba(255,30,60,.55);animation:tredo 1s ease-in-out infinite}
@keyframes thi{50%{filter:brightness(1.35);transform:scale(1.04)}}
@keyframes tred{50%{transform:scale(.94)}}
@keyframes tredo{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes tpop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
.tmark{position:absolute;right:-8px;top:-10px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:19px;font-weight:900;border:3px solid #fff;box-shadow:0 2px 0 rgba(0,0,0,.3);animation:tpop .4s .5s cubic-bezier(.23,1,.32,1) both}
.tmark.good{background:#34d058}.tmark.bad{background:#ff4d5e}
.thand{position:absolute;font-size:34px;transform:translate(-30%,-10%);transition:left .55s cubic-bezier(.77,0,.175,1),top .55s cubic-bezier(.77,0,.175,1);pointer-events:none;filter:drop-shadow(0 3px 2px rgba(0,0,0,.4));left:50%;top:110%}
.thand.tap{animation:ttap .22s ease-out}
@keyframes ttap{50%{transform:translate(-30%,-10%) scale(.78)}}
.ttext{font-size:15px;line-height:1.3;min-height:40px;margin:0}
.tdots{display:flex;gap:6px;justify-content:center}
.tdots i{width:9px;height:9px;border-radius:50%;background:#c9bde8}.tdots i.on{background:#7a2fd0;transform:scale(1.25)}
.trow{display:flex;gap:10px;justify-content:center}.trow .btn{min-width:110px}
.thelp{display:flex;flex-direction:column;gap:14px;align-items:center}
.thearts img{width:48px;height:48px}.thearts .brk{animation:tbrk 1.8s ease-in-out infinite}
@keyframes tbrk{0%,40%{filter:none;transform:none}55%{transform:scale(1.25) rotate(-8deg)}70%,100%{filter:grayscale(1) brightness(.7);transform:scale(.9)}}
.ttools img{width:54px;height:54px;margin:0 8px;animation:evbob 1.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.tc.hi,.tc.red,.tc.red::after,.thearts .brk,.ttools img{animation:none}}
.tb{grid-template-rows:repeat(4,1fr)}.tc{min-height:0;min-width:0;overflow:hidden}

/* the win bear is animated from JS now (celebrate()); the old fixed loop is off */
#win .win-gumi .gbody,#win .win-gumi .g-air,#win .win-gumi .g-ground,#win .win-gumi .gshadow{animation:none!important}
#win .win-gumi .g-air{opacity:0}
#win .win-gumi .gshadow{transform-origin:50% 50%}

/* messages are visible on every screen */
.toast.gtoast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(10px);width:max-content;max-width:min(340px,calc(100vw - 32px));z-index:70;min-height:0;padding:10px 16px;background:rgba(30,0,70,.92);border:2px solid #ffc247;box-shadow:0 6px 16px rgba(0,0,0,.4);pointer-events:none;opacity:0;transition:opacity .2s,transform .2s cubic-bezier(.23,1,.32,1);font-weight:800}
.toast.gtoast.show{opacity:1;transform:translateX(-50%) translateY(0)}
body.in-game .toast.gtoast{bottom:150px}
#climbInfo b{color:#7a2fd0}

/* performance: level buttons use baked colour art, no per-node CSS filters */
.node::after{filter:none!important}
.node.current::after{filter:drop-shadow(0 0 9px #ffe14d) drop-shadow(0 0 3px #fff)!important}

.node.locked::after{background-image:url(art/node_lock.webp)!important}
.map .ribbon.zlazy:not([style*='background-image']){background-image:none!important}
/* world backgrounds: a clearly visible slow drift in every world (was too subtle to notice) */
.zone{animation:zonepan2 20s ease-in-out infinite alternate}
.zone:nth-child(odd){animation-direction:alternate-reverse;animation-duration:24s}
@keyframes zonepan2{from{background-position:4% 50%}to{background-position:96% 50%}}
@media (prefers-reduced-motion:reduce){.zone{animation:none}}
/* short screens: every window fits; if it still cannot, the window itself scrolls so its buttons are always reachable */
.overlay{overflow-y:auto;align-items:safe center;overscroll-behavior:contain}
.cl-scroll{max-height:max(150px,calc(100dvh - 440px))}
.evgrid{max-height:max(180px,calc(100dvh - 300px))}
.cl-prize em{white-space:normal}
#climb .card{gap:6px}
#climbInfo{font-size:13px;line-height:1.25;margin:0}
.overlay{overflow-x:hidden;scrollbar-width:none}.overlay::-webkit-scrollbar{display:none}
/* Candy Climb always fits: the window is capped to the screen and only the platform area shrinks */
#climb{align-items:center}
#climb .card{display:flex;flex-direction:column;max-height:calc(100svh - 150px);min-height:0}
#climb .cl-scroll{flex:1 1 auto;min-height:110px;max-height:none}
#climb .card>button,#climb .card>p,#climb .cl-timer{flex:none}
#climb .btn.wide{padding-top:9px;padding-bottom:11px}

/* ===== store, lives, video rewards ===== */
.shopscroll{max-height:calc(100svh - 300px);min-height:160px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:6px;padding:2px}
.shopscroll .shoplist{max-height:none;overflow:visible}
.shoph{margin:6px 0 0;font:900 14px 'Nunito',sans-serif;color:#7a2fd0;text-align:left;letter-spacing:.3px}
.packs{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pack{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 5px 7px;border-radius:16px;border:3px solid #fff;background:linear-gradient(170deg,#fff6d8,#ffd98a);box-shadow:0 4px 0 rgba(120,60,0,.35),inset 0 2px 0 rgba(255,255,255,.8);color:#5a2a00}
.pack.tagged{background:linear-gradient(170deg,#ffe9f6,#ffb3dc)}
.pack img{width:62px;height:56px;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(80,30,0,.4))}
.pack b{font-size:13.5px;line-height:1.1}
.pack small{font-size:10px;line-height:1.5;min-height:30px;display:block}
.pack small em{font-style:normal;background:#fff;border-radius:7px;padding:0 4px;margin:0 1px;white-space:nowrap;display:inline-block}
.ptag{position:absolute;top:-8px;left:50%;transform:translateX(-50%);font-style:normal;font:900 9px 'Nunito',sans-serif;background:linear-gradient(#ff5f8f,#e0245e);color:#fff;border:2px solid #fff;border-radius:99px;padding:1px 8px;white-space:nowrap}
.pbuy{padding:6px 10px 8px!important;font-size:15px!important;min-width:82px;margin-top:2px}
.pack.gone{filter:saturate(.4);opacity:.75}
.freerow{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.freeb{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 2px;border-radius:14px;border:3px solid #fff;background:linear-gradient(170deg,#d9f7ff,#8fd8ff);box-shadow:0 3px 0 rgba(0,70,120,.35);color:#0b4a78;font-weight:900;font-size:12px}
.freeb img{width:30px;height:30px;object-fit:contain}
.freeb span{background:#1f9d3c;color:#fff;border-radius:99px;padding:1px 9px;font-size:11px}
.freeb:disabled{filter:saturate(.3);opacity:.6}
.livesrow{display:flex;justify-content:center;gap:5px}
.livesrow img{width:40px;height:40px;object-fit:contain}
#livesMsg{font-weight:900;font-size:17px;margin:2px 0;color:#7a2fd0}
#lives .card{gap:7px}
#lives .btn.wide,#lose .btn.wide{padding-top:9px;padding-bottom:11px}
#loseLives{margin:0;font-weight:900}
.packs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.pack{min-width:0}.pack small em{white-space:normal}
.shopscroll{max-height:calc(100svh - 350px)}#shop .card>.small{display:none}

/* language button in the settings */
.opt .langbtn{min-width:0;padding:7px 16px;font-size:15px;margin:0}

/* Spanish: longer words on the small round tags */
html[lang="es"] .med .tag{font-size:11px;letter-spacing:0;padding:4px 8px 6px!important;white-space:nowrap}

/* ---------- opening story: full-screen pictures with motion on top ---------- */
.intro{background:#1a0b3a;padding:0}
.intro-body{position:static;max-width:none}
.st-panel{position:absolute;inset:0;overflow:hidden;animation:stIn .7s ease both}
.st-img{position:absolute;inset:-4%;background:center/cover no-repeat;animation:stZoom 14s ease-out both;will-change:transform}
.st-panel::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,6,50,.25) 0,transparent 22%,transparent 52%,rgba(20,6,50,.88) 84%,#14062e 100%);pointer-events:none}
.st-open::after{background:linear-gradient(180deg,transparent 55%,rgba(20,6,50,.7) 100%)}
.st-open .st-img{inset:0;animation:none}
.st-cap{position:absolute;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92vw,430px);margin:0;z-index:2;text-align:center;color:#fff;font-family:var(--display);font-weight:800;font-size:clamp(19px,5.4vw,25px);line-height:1.22;text-shadow:0 2px 0 #2a0b5e,0 0 14px rgba(20,0,60,.9);animation:stCap .6s .35s cubic-bezier(.23,1,.32,1) both}
.intro-ctl{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom));z-index:3;padding:0 14px;box-sizing:border-box}
.st-splash{position:absolute;left:0;right:0;bottom:calc(9vh + env(safe-area-inset-bottom));z-index:2;display:flex;flex-direction:column;align-items:center;gap:20px}
.st-logo{width:min(78vw,340px);filter:drop-shadow(0 8px 10px rgba(20,0,60,.55));animation:stCap .7s cubic-bezier(.23,1,.32,1) both}
@keyframes stIn{from{opacity:0}to{opacity:1}}
@keyframes stZoom{from{transform:scale(1.02)}to{transform:scale(1.12) translateY(-1.5%)}}
@keyframes stCap{from{opacity:0;transform:translate(-50%,18px)}to{opacity:1;transform:translate(-50%,0)}}
.st-logo{animation-name:stLogo}
@keyframes stLogo{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
/* 1: sparkles */
.st-spk{position:absolute;width:10px;height:10px;background:radial-gradient(circle,#fff 0,#fff7b0 35%,transparent 70%);border-radius:50%;animation:stSpk 2.6s ease-in-out infinite;z-index:1}
@keyframes stSpk{0%,100%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.5)}}
/* 2: lightning and a slow push in on the villain */
.st-dark .st-img{animation:stLoom 9s ease-out both;transform-origin:50% 28%}
@keyframes stLoom{from{transform:scale(1.02)}to{transform:scale(1.2)}}
.st-flash{position:absolute;inset:0;background:#fff;opacity:0;z-index:1;pointer-events:none;animation:stFlash 3.4s linear infinite .5s}
.st-flash.b{animation-delay:2.1s;background:#f4ff9a}
@keyframes stFlash{0%,100%{opacity:0}2%{opacity:.75}4%{opacity:.05}6%{opacity:.5}10%{opacity:0}}
/* 3: the sneeze storm */
.st-storm .st-img{animation:stQuake .5s linear 3,stSway 2.4s ease-in-out 1.5s infinite}
@keyframes stQuake{0%{transform:scale(1.14) translate(0,0)}20%{transform:scale(1.14) translate(-10px,6px) rotate(-.8deg)}40%{transform:scale(1.14) translate(9px,-7px) rotate(.7deg)}60%{transform:scale(1.14) translate(-7px,-5px) rotate(-.5deg)}80%{transform:scale(1.14) translate(8px,6px) rotate(.6deg)}100%{transform:scale(1.14) translate(0,0)}}
@keyframes stSway{0%,100%{transform:scale(1.14) translate(-5px,0) rotate(-.4deg)}50%{transform:scale(1.14) translate(5px,-4px) rotate(.4deg)}}
.st-gust{position:absolute;left:-90px;top:var(--y);width:var(--s);height:var(--s);z-index:1;animation:stGust var(--d) linear infinite}
.st-gust svg{width:100%;height:100%;filter:drop-shadow(0 3px 3px rgba(0,0,0,.4));animation:spin .7s linear infinite}
@keyframes stGust{0%{transform:translate(0,0)}50%{transform:translate(60vw,var(--w))}100%{transform:translate(calc(100vw + 180px),0)}}
.st-wind{position:absolute;left:-60%;width:55%;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);z-index:1;animation:stWind 1s linear infinite}
@keyframes stWind{to{transform:translateX(320%)}}
.st-achoo{position:absolute;left:50%;top:40%;z-index:2;background:#fff;color:#c01868;font-family:var(--display);font-weight:800;font-size:clamp(34px,11vw,50px);padding:6px 24px;border-radius:26px;border:5px solid #ff4fb0;box-shadow:0 8px 0 rgba(60,0,60,.35);animation:stAchoo 2.6s cubic-bezier(.23,1,.32,1) .25s both}
@keyframes stAchoo{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-14deg)}14%{opacity:1;transform:translate(-50%,-50%) scale(1.25) rotate(6deg)}24%{transform:translate(-50%,-50%) scale(1) rotate(-4deg)}80%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-4deg)}100%{opacity:0;transform:translate(-50%,-70%) scale(.9) rotate(-4deg)}}
/* 4: sun rays on the hero */
.st-rays{position:absolute;left:50%;top:-20%;width:200vmax;height:200vmax;margin-left:-100vmax;z-index:1;background:repeating-conic-gradient(from 0deg at 50% 30%,rgba(255,240,170,.07) 0 5deg,transparent 5deg 20deg);animation:spin 40s linear infinite;mix-blend-mode:screen;pointer-events:none}
.st-hero .st-img{transform-origin:50% 45%}
@media (prefers-reduced-motion:reduce){.st-img,.st-storm .st-img,.st-dark .st-img{animation:none}.st-gust,.st-wind,.st-flash,.st-rays{display:none}}

/* ---------- Baron Sour, the boss of every 10th level ---------- */
.bossfight #tier{display:none!important}
.bosshud{position:relative;display:flex;align-items:center;gap:8px;width:min(300px,78vw);height:34px;margin:2px auto 4px;padding:0 12px 0 62px;box-sizing:border-box;border-radius:20px;background:linear-gradient(180deg,#4a2a8a,#2a1458);border:2px solid #ffe14d;box-shadow:0 3px 0 #1a0a3a,0 6px 10px rgba(20,0,60,.35);z-index:3}
.bosshud[hidden]{display:none}
.bosshud>img{position:absolute;left:-8px;top:50%;width:68px;height:68px;margin-top:-37px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(20,0,60,.5));animation:bossBob 2.6s ease-in-out infinite;transform-origin:50% 60%}
.bossbar{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bossbar b{font:900 12px/1 Nunito,system-ui,sans-serif;color:#ffe14d;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap;text-shadow:0 1px 0 #1a0a3a}
.bossbar .hp{display:block;height:9px;border-radius:9px;background:#14062e;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.6)}
.bossbar .hp u{display:block;height:100%;width:100%;border-radius:9px;background:linear-gradient(180deg,#d6ff4d,#7bd41a);transition:width .5s cubic-bezier(.23,1,.32,1)}
.bosshud small{font:900 12px/1 Nunito,system-ui,sans-serif;color:#fff;white-space:nowrap}
@keyframes bossBob{50%{transform:translateY(-4px) rotate(-2deg)}}
.bosshud.hit>img{animation:bossHit .7s cubic-bezier(.23,1,.32,1)}
.bosshud.hit .hp u{background:linear-gradient(180deg,#fff,#ffd23a)}
@keyframes bossHit{0%{transform:scale(1)}15%{transform:scale(1.35,.8) rotate(12deg)}35%{transform:translateX(-7px) rotate(-10deg)}55%{transform:translateX(6px) rotate(7deg)}100%{transform:none}}
.bosshud.laugh>img{animation:bossLaugh .28s ease-in-out 5}
@keyframes bossLaugh{50%{transform:translateY(-6px) scale(1.12)}}
.bosshud.defeat>img{animation:bossFlee 1.5s cubic-bezier(.5,0,.75,0) .9s both}
@keyframes bossFlee{0%{transform:none;opacity:1}30%{transform:translateY(6px) scale(1.1,.85)}100%{transform:translate(70vw,-60vh) rotate(540deg) scale(.2);opacity:0}}
.board.zap{animation:bossZap .5s linear}
@keyframes bossZap{0%,100%{filter:none;transform:none}10%{filter:brightness(2.2) saturate(.4)}20%{filter:none;transform:translateX(-4px)}30%{filter:brightness(1.8)}40%{transform:translateX(4px)}60%{transform:translateX(-2px)}}
/* entrance / defeat card */
.boss-card{position:fixed;inset:0;z-index:80;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.boss-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(30,8,70,.55),rgba(10,0,30,.85));animation:bcBg 2.6s ease both}
.boss-card.out::before{background:radial-gradient(circle at 50% 45%,rgba(255,220,90,.4),rgba(40,10,90,.75))}
.boss-card img{position:relative;width:min(64vw,270px);filter:drop-shadow(0 12px 12px rgba(0,0,0,.5))}
.boss-card.in img{animation:bcDrop 2.6s cubic-bezier(.23,1,.32,1) both}
.boss-card.out img{animation:bcOut 2.6s cubic-bezier(.23,1,.32,1) both}
.boss-card b{position:relative;max-width:88vw;text-align:center;color:#fff;font-family:var(--display);font-weight:800;font-size:clamp(24px,7.4vw,34px);line-height:1.1;text-shadow:0 3px 0 #2a0b5e,0 0 16px rgba(20,0,60,.9);animation:bcTxt 2.6s ease both}
.bc-flash{position:absolute;inset:0;background:#f4ff9a;opacity:0;animation:bcFlash 2.6s linear both}
@keyframes bcBg{0%{opacity:0}12%,80%{opacity:1}100%{opacity:0}}
@keyframes bcDrop{0%{transform:translateY(-90vh) scale(.6)}18%{transform:translateY(0) scale(1.12,.9)}26%{transform:translateY(-14px) scale(.97,1.04)}34%,78%{transform:none;opacity:1}100%{transform:translateY(-40vh) scale(.2);opacity:0}}
@keyframes bcOut{0%{transform:scale(.3);opacity:0}16%{transform:scale(1.1);opacity:1}26%,60%{transform:rotate(-4deg)}70%{transform:rotate(6deg) scale(.95)}100%{transform:translate(60vw,-70vh) rotate(600deg) scale(.15);opacity:0}}
@keyframes bcTxt{0%,14%{opacity:0;transform:translateY(16px) scale(.9)}24%,78%{opacity:1;transform:none}100%{opacity:0}}
@keyframes bcFlash{0%,14%{opacity:0}17%{opacity:.8}20%{opacity:.1}23%{opacity:.5}30%,100%{opacity:0}}
.boss-card.out .bc-flash{display:none}
/* pre-level, lose and prize cards */
.pl-boss{display:block;width:118px;height:118px;object-fit:contain;margin:-6px auto -4px;filter:drop-shadow(0 6px 6px rgba(20,0,60,.4));animation:bossBob 2.6s ease-in-out infinite}
.pl-boss[hidden]{display:none}
.lose-boss{display:none}
#lose.bossw .lose-gumi{display:flex;align-items:flex-end;justify-content:center;gap:4px}
#lose.bossw .lose-boss{display:block;width:104px;height:104px;object-fit:contain;animation:bossLaugh .3s ease-in-out infinite}
.rw-it img.rw-boss{width:120px;height:120px;object-fit:contain}
/* on the map he hovers over his level; beaten bosses stay behind, small and sulking */
.node.bossn::before{content:"";position:absolute;left:auto;right:-58px;top:-40px;width:70px;height:70px;margin-left:0;z-index:4;transform:none;background:url(art/boss_idle.webp) center/contain no-repeat;filter:drop-shadow(0 4px 4px rgba(20,0,60,.45));pointer-events:none}
/* he bobs only next to the boss levels near the player (app.js renderHome adds .near): 48 bobbing heads over the whole map made Chrome
   give about 60 map elements their own layer, which slowed down every window that opened over the map */
.node.bossn.near:not(.beaten)::before{animation:bossBob 2.6s ease-in-out infinite}
.node.bossn.beaten::before{background-image:url(art/boss_lose.webp);top:-22px;right:-36px;width:46px;height:46px;animation:none;opacity:.92}
@media (prefers-reduced-motion:reduce){.bosshud>img,.pl-boss,.node.bossn::before{animation:none}}

/* story, scene 2: Baron Sour is a separate layer over the sky */
.st-stage{position:absolute;left:50%;top:50%;width:max(100vw,calc(100vh * 768 / 1376));aspect-ratio:768/1376;transform:translate(-50%,-50%);transform-origin:50% 30%;animation:stStage 10s ease-out both}
@supports (height:100svh){.st-stage{width:max(100vw,calc(100lvh * 768 / 1376))}}
.st-stage .st-img,.st-dark .st-stage .st-img{inset:0;animation:none;transform:none}
@keyframes stStage{from{transform:translate(-50%,-50%) scale(1)}to{transform:translate(-50%,-50%) scale(1.09)}}
.st-boss{position:absolute;left:9%;top:2.5%;width:82%;aspect-ratio:1;z-index:1;animation:stBossIn 1.25s cubic-bezier(.23,1,.32,1) both,stBossBob 3.4s ease-in-out 1.25s infinite;transform-origin:50% 60%;filter:drop-shadow(0 18px 22px rgba(10,0,30,.55))}
.st-boss img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.st-boss .bi{animation:stIdle 6.4s linear 1.6s infinite}
.st-boss .bl{opacity:0;animation:stLaugh 6.4s linear 1.6s infinite}
@keyframes stBossIn{0%{transform:translateY(-85%) scale(.7);opacity:0}55%{transform:translateY(5%) scale(1.07,.93);opacity:1}75%{transform:translateY(-3%) scale(.98,1.03)}100%{transform:none;opacity:1}}
@keyframes stBossBob{0%,100%{transform:translateY(0) rotate(-1.2deg) scale(1)}25%{transform:translateY(-2.4%) rotate(0deg) scale(1.02,.985)}50%{transform:translateY(0) rotate(1.2deg) scale(1)}75%{transform:translateY(2%) rotate(0deg) scale(.985,1.02)}}
@keyframes stIdle{0%,54%{opacity:1}57%,76%{opacity:0}79%,100%{opacity:1}}
@keyframes stLaugh{0%,54%{opacity:0;transform:none}57%{opacity:1;transform:translateY(-2%) scale(1.04)}60%{transform:translateY(1.5%) scale(1.02)}63%{transform:translateY(-2%) scale(1.04)}66%{transform:translateY(1.5%) scale(1.02)}69%{transform:translateY(-2%) scale(1.04)}72%{transform:translateY(1.5%) scale(1.02)}76%{opacity:1;transform:none}79%,100%{opacity:0;transform:none}}
.st-bolt{position:absolute;top:35%;width:7.5%;z-index:0;fill:#ffe14d;stroke:#fff8c2;stroke-width:1.5;filter:drop-shadow(0 0 8px #fff27a) drop-shadow(0 0 18px rgba(255,220,60,.8));opacity:0;animation:stBolt 2.3s linear 1.3s infinite;transform-origin:50% 0}
.st-bolt.b1{left:27%;transform:rotate(14deg)}
.st-bolt.b2{left:46%;width:9.5%;top:36.5%;animation-delay:1.9s;animation-duration:1.9s}
.st-bolt.b3{left:66%;transform:rotate(-14deg);animation-delay:2.5s;animation-duration:2.7s}
@keyframes stBolt{0%,100%{opacity:0}6%{opacity:1}10%{opacity:.25}14%{opacity:1}26%{opacity:.9}34%{opacity:0}}
@media (prefers-reduced-motion:reduce){.st-stage,.st-boss,.st-boss img,.st-bolt{animation:none}.st-boss .bl{opacity:0}.st-bolt{opacity:1}}

/* the helper buttons keep their place under the board when messages float */
.toast-gap{min-height:44px;flex:none}

/* lives for money */
#lives .livesbuy{filter:hue-rotate(75deg) saturate(1.1)}
#lives .livesbuy:disabled{filter:grayscale(.6);opacity:.6}

/* victory jump drawn in six poses */
#win .win-gumi .gbody.frames{width:136px;height:136px;margin-left:-68px;bottom:2px}
#win .win-gumi .gbody.frames .g-ground,#win .win-gumi .gbody.frames .g-air{display:none}
#win .win-gumi .gbody .gf{position:absolute;left:0;bottom:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%;opacity:0}

/* jumping candies behind the win card */
.winparty{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
#win .card{z-index:1}

/* seven chips in the top bar */
.wallet.topbar{gap:1px!important;padding-left:4px!important;padding-right:4px!important}
.wallet.topbar .chip{padding:3px 6px 7px 4px!important;gap:2px!important}
@media (max-width:380px){.wallet.topbar .chip{padding:3px 4px 7px 3px!important;font-size:12px!important}.wallet.topbar .chip img,.wallet.topbar .chip svg{width:20px!important;height:20px!important}}

/* a helper was used: dim the board a little, keep the squares it changed lit */
.board .cell{transition:transform .12s,filter .28s ease}
.board.spot .cell:not(.lit){filter:brightness(.62) saturate(.7)}
.board.spot .cell.lit{z-index:3;animation:spotPulse .75s ease-in-out 4;box-shadow:0 0 0 4px #000,0 0 10px 4px rgba(0,0,0,.55)}
.board.spot .cell.lit.hinted{animation:spotPulse .75s ease-in-out 4}
@keyframes spotPulse{0%,100%{transform:scale(1);filter:brightness(1.05)}50%{transform:scale(1.09);filter:brightness(1.3)}}
@media (prefers-reduced-motion:reduce){.board.spot .cell.lit{animation:none}}
/* messages while playing sit under the helper buttons, never on the board or the buttons */
body.in-game .toast.gtoast{max-width:min(360px,calc(100vw - 24px))}

/* long labels stay inside the wide buttons */
#lose .btn.wide,#lives .btn.wide{font-size:clamp(13px,4.3vw,17px)!important;white-space:normal!important;line-height:1.12;padding-left:12px!important;padding-right:12px!important;overflow-wrap:anywhere}

/* long prize titles fit the plate */
#rwTitle{white-space:nowrap}

/* the old header above the map is gone: everything in it lives in the top bar, the side buttons and the bottom menu */
#home .hero,#home>.daily,#home>.score,#home>.streak{display:none!important}
/* levels 301-500 are all Very Hard: the crown stays for the boss levels only */
.node.ultra::before{content:none!important}

/* the name box in the daily ranking: dark text on a white field, readable on the light card */
#ranking .namefield{color:#5a2a00!important;font-weight:800;text-shadow:none}
#ranking .namefield input{background:#fff!important;color:#3a1500!important;border:2px solid #c98a4d!important;box-shadow:inset 0 2px 3px rgba(90,40,0,.18);-webkit-text-fill-color:#3a1500;caret-color:#c2185b;text-shadow:none;-webkit-text-stroke:0}
#ranking .namefield input::placeholder{color:#a8876a}

/* every level button has the colour of its world's ribbon; special levels add a gold ring, locked ones are the same colour, faded */
.node.locked::after{background-image:var(--nimg)!important;opacity:.62}
.node.hard::after,.node.veryhard::after,.node.extreme::after{border-radius:50%;box-shadow:0 0 0 3px #ffd84a,0 0 0 5px #b06a00}
.node.extreme::after{box-shadow:0 0 0 3px #1a1030,0 0 0 5px #ffd84a}
.node.ultra::after{box-shadow:none}
.node.locked.hard::after,.node.locked.veryhard::after,.node.locked.extreme::after{box-shadow:0 0 0 3px rgba(255,216,74,.55)}
.node.locked.ultra::after{box-shadow:none}

/* ---------- Baron Sour's bigger role ---------- */
/* speech bubble under the health bar */
.bosssay{position:absolute;left:54px;top:calc(100% + 5px);max-width:min(230px,64vw);padding:5px 12px;border-radius:14px 14px 14px 4px;background:#fff;color:#3a1466;font:900 13px/1.15 Nunito,system-ui,sans-serif;box-shadow:0 3px 0 rgba(40,0,90,.35),0 0 0 2px #7a4ad0;opacity:0;transform:translateY(-6px) scale(.8);transform-origin:10% 0;pointer-events:none;z-index:6;white-space:normal}
.bosssay.on{animation:bsay 2.4s cubic-bezier(.23,1,.32,1) both}
@keyframes bsay{0%{opacity:0;transform:translateY(-6px) scale(.7)}10%{opacity:1;transform:translateY(0) scale(1.06)}16%,84%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-4px) scale(.9)}}
/* the small Sour Cloud on Hard levels */
.bosshud.minion{width:min(250px,70vw);background:linear-gradient(180deg,#3a5a9a,#1c2f5e);border-color:#bfe0ff}
.bosshud.minion>img{width:52px;height:52px;margin-top:-28px;left:-2px}
.bosshud.minion .bossbar b{color:#d6ecff}
.bosshud.minion .hp u{background:linear-gradient(180deg,#bfe9ff,#58a8ff)}
/* fog and the peeking Baron */
.boardwrap{position:relative}
.bfog{position:absolute;z-index:4;pointer-events:none;border-radius:40%;background:radial-gradient(circle at 35% 35%,#fff,#d9d0f2 45%,rgba(150,130,210,.85) 75%,rgba(120,100,190,0) 100%);filter:blur(1.5px);transform:scale(1.25);animation:fogIn 2.9s cubic-bezier(.3,.7,.4,1) both}
@keyframes fogIn{0%{opacity:0;transform:scale(.3);filter:blur(1.5px)}12%{opacity:.97;transform:scale(1.35);filter:blur(1.5px)}20%{transform:scale(1.22)}45%{opacity:.95;transform:scale(1.25);filter:blur(1.5px)}75%{opacity:.5;transform:scale(1.5) translateY(-4px);filter:blur(4px)}100%{opacity:0;transform:scale(1.85) translateY(-10px);filter:blur(8px)}}
.boss-peek{position:absolute;right:-6px;top:-34px;z-index:7;pointer-events:none;display:flex;align-items:center;gap:4px;flex-direction:row-reverse;animation:peek 3.2s cubic-bezier(.23,1,.32,1) both}
.boss-peek img{width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(20,0,60,.5))}
.boss-peek b{max-width:170px;padding:6px 12px;border-radius:14px 14px 4px 14px;background:#fff;color:#3a1466;font:900 13px/1.15 Nunito,system-ui,sans-serif;box-shadow:0 3px 0 rgba(40,0,90,.35),0 0 0 2px #7a4ad0}
@keyframes peek{0%{transform:translateX(120%)}12%{transform:translateX(-4%)}18%,84%{transform:none}100%{transform:translateX(130%)}}
.boss-card.steal b{font-size:clamp(18px,5.4vw,24px);max-width:86vw}
/* Sour Storm window */
#storm .storm-boss{display:block;width:120px;height:120px;object-fit:contain;margin:-8px auto -4px;filter:drop-shadow(0 6px 6px rgba(20,0,60,.4));animation:bossBob 2.6s ease-in-out infinite}
.storm-hp{display:flex;align-items:center;gap:8px;width:86%;margin:0 auto 4px}
.storm-hp i{flex:1;height:14px;border-radius:14px;background:#2a1458;overflow:hidden;box-shadow:inset 0 2px 3px rgba(0,0,0,.5)}
.storm-hp u{display:block;height:100%;border-radius:14px;background:linear-gradient(180deg,#d6ff4d,#7bd41a);transition:width .6s cubic-bezier(.23,1,.32,1)}
.storm-hp b{font:900 14px Nunito,system-ui,sans-serif;color:#5a2a00;white-space:nowrap}
.storm-rows{display:flex;flex-direction:column;gap:6px;width:100%;margin:4px 0}
.stormrow{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:14px;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 2px rgba(120,80,30,.18)}
.stormrow.got{background:rgba(255,236,150,.8)}
.stormrow>b{font:900 14px Nunito,system-ui,sans-serif;color:#5a2a00;min-width:62px;text-align:left;white-space:nowrap}
.stormrow .rwd{flex:1;display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-start}
.stormrow .rwd img{width:24px;height:24px}
.stormrow .rwd em{font:900 13px Nunito,system-ui,sans-serif;font-style:normal;color:#5a2a00;margin-right:4px}
.stormrow .btn{min-width:0;padding:6px 12px;font-size:13px;margin:0}
#storm .card{max-height:calc(100svh - 150px);overflow-y:auto}

/* Sour Storm window: compact, the title plate stays in place */
#storm .card{max-height:none!important;overflow:visible!important}
#storm .storm-boss{width:92px;height:92px;margin:-6px auto -6px}
#storm #stormInfo{margin:2px 0;font-size:13px;line-height:1.2}
.stormrow{padding:3px 8px;gap:6px}
.stormrow>b{min-width:54px;font-size:13px}
.stormrow .rwd{flex-wrap:nowrap;gap:2px}
.stormrow .rwd img{width:20px;height:20px}
.stormrow .rwd em{font-size:12px;margin-right:3px}
.stormrow .btn{padding:5px 10px!important;font-size:12px!important;min-height:0!important;height:auto!important;width:auto!important}

/* the puff of smoke that wipes an X */
.bfog.smoke{background:radial-gradient(circle at 40% 40%,#f4f0ff,#a99cc9 50%,rgba(70,55,110,.9) 78%,rgba(60,45,100,0) 100%);animation:smokeIn 2.6s ease both}
@keyframes smokeIn{0%{opacity:0;transform:scale(.2);filter:blur(1.5px)}18%{opacity:1;transform:scale(1.45);filter:blur(1.5px)}55%{opacity:.85;transform:scale(1.3) translateY(-4px);filter:blur(2.5px)}100%{opacity:0;transform:scale(2) translateY(-18px);filter:blur(8px)}}

/* story, the sneeze: the picture slowly swells while he breathes in, and everything breaks loose on the narrator's ACHOO */
.st-storm:not(.go) .st-gust,.st-storm:not(.go) .st-wind,.st-storm:not(.go) .st-achoo,.st-storm:not(.go) .st-flash{display:none}
.st-storm:not(.go) .st-img{animation:stInhale 3.4s ease-in both}
@keyframes stInhale{from{transform:scale(1.02)}to{transform:scale(1.13) translateY(1%)}}

/* =====================================================================
   3D + GLOSS PASS: everything that was a flat panel is now a raised, lit, glossy piece
   ===================================================================== */
/* lucky wheel: tilted toward the player, with a thick gold edge and a shadow on the table */
#wheel .wheelbox{transform:perspective(680px) rotateX(15deg);transform-origin:50% 62%;margin:0 auto 14px}
#wheel .wheelbox::before{content:"";position:absolute;left:8%;right:8%;bottom:-9%;height:16%;border-radius:50%;background:radial-gradient(ellipse,rgba(30,0,60,.5),rgba(30,0,60,0) 70%);z-index:-1}
#wheel .wheelbox .wring{filter:drop-shadow(0 3px 0 #c8801a) drop-shadow(0 3px 0 #a05e0c) drop-shadow(0 3px 0 #7a4206) drop-shadow(0 9px 7px rgba(40,10,0,.55))}
#wheel .wheelbox .whub{width:24%;filter:drop-shadow(0 2px 0 #a05e0c) drop-shadow(0 5px 4px rgba(40,10,0,.6))}
#wheel .wheelbox .wptr{width:17%;top:-5%;filter:drop-shadow(0 3px 0 #8a0a1a) drop-shadow(0 6px 4px rgba(0,0,0,.5))}

/* list rows, stat tiles, collection cells: raised glossy plates */
.shoprow,.pf-grid div,.colcell,.stkrow,.stormrow,.passrow,.rlist>*,#giftList>*,#questList>*,#gameList>*{
  background:linear-gradient(180deg,#ffffff 0%,#f1f8ff 45%,#d6e9fb 100%)!important;border:2px solid #fff!important;border-radius:16px!important;
  box-shadow:0 4px 0 #9cbfe0,0 7px 8px rgba(40,80,140,.28),inset 0 2px 0 #fff,inset 0 -7px 10px rgba(110,165,220,.22)!important}
.stormrow.got,.stkrow.got{background:linear-gradient(180deg,#fffbe0,#ffe9a0 55%,#ffcf5a)!important;box-shadow:0 4px 0 #d99a1c,0 7px 8px rgba(120,70,0,.28),inset 0 2px 0 #fff,inset 0 -7px 10px rgba(255,170,40,.25)!important}
.colcell.on,.colcell.sel{background:linear-gradient(180deg,#f4fff0,#c9f5b8 60%,#9be585)!important;border-color:#3fcf3a!important;box-shadow:0 4px 0 #2a9a28,0 7px 8px rgba(20,90,20,.3),inset 0 2px 0 #fff!important}
.colcell.locked{filter:saturate(.75)}
.rlist>.me,.rlist>.mine{background:linear-gradient(180deg,#fffbe0,#ffe9a0 55%,#ffcf5a)!important;box-shadow:0 4px 0 #d99a1c,0 7px 8px rgba(120,70,0,.28),inset 0 2px 0 #fff!important}
/* shop packs and free-reward tiles: candy-glass cards */
.pack,.freeb{position:relative;overflow:visible;box-shadow:0 5px 0 rgba(120,60,0,.42),0 10px 10px rgba(60,20,0,.28),inset 0 2px 0 rgba(255,255,255,.95),inset 0 -10px 14px rgba(190,90,0,.16)!important}
.pack::after,.freeb::after,.evcard::after{content:"";position:absolute;left:5%;right:5%;top:3px;height:38%;border-radius:12px 12px 60% 60%/12px 12px 26px 26px;background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(255,255,255,0));pointer-events:none}
.pack img,.freeb img,.shoprow>img,.shoprow .pico,.colcell img{filter:drop-shadow(0 3px 2px rgba(60,20,0,.38))}
.evcard{box-shadow:0 6px 0 rgba(0,0,0,.38),0 11px 10px rgba(20,0,50,.3),inset 0 2px 0 rgba(255,255,255,.6),inset 0 -12px 16px rgba(0,0,0,.2)!important}
/* progress bars: a carved track with a glossy candy fill */
.score-bar,.qbar,.quest .qbar,#pfBar,.pf-bar,#rankBar,.chest-bar,#quickBar,.storm-hp i,.bossbar .hp{box-shadow:inset 0 2px 4px rgba(0,0,30,.45),0 1px 0 rgba(255,255,255,.7)!important}
.score-bar i,.qbar i,.qbar u,.quest .qbar u,#pfBar,#chestBar,#quickBar,.storm-hp u,.bossbar .hp u{background-image:linear-gradient(180deg,rgba(255,255,255,.7) 0,rgba(255,255,255,.12) 46%,rgba(0,0,0,.14) 100%),linear-gradient(90deg,#ff6ab8,#ffb21f)!important;box-shadow:inset 0 -2px 2px rgba(120,30,0,.25)}
.storm-hp u,.bossbar .hp u{background-image:linear-gradient(180deg,rgba(255,255,255,.7) 0,rgba(255,255,255,.12) 46%,rgba(0,0,0,.14) 100%),linear-gradient(90deg,#b6f03a,#58c21a)!important}
.quest .qbar{height:10px!important;border-radius:8px!important}.quest .qbar u{border-radius:8px!important}
/* switches: a glossy ball in a carved slot */
.sw{background:linear-gradient(180deg,#b8a698,#e2d4c8)!important;box-shadow:inset 0 3px 5px rgba(60,30,0,.4),0 1px 0 #fff!important;height:32px!important;width:58px!important}
.sw::after{background:radial-gradient(circle at 35% 28%,#fff 0,#f4f4f8 38%,#c9ccd8 100%)!important;box-shadow:0 3px 0 rgba(60,40,30,.35),0 4px 6px rgba(0,0,0,.3),inset 0 -2px 3px rgba(0,0,0,.12)!important}
.sw[aria-checked="true"]{background:linear-gradient(180deg,#12b07a,#3ff0b4)!important}
.sw[aria-checked="true"]::after{transform:translateX(26px)!important}
/* text boxes */
.namefield input,#pfName{background:linear-gradient(180deg,#fff,#fff6e6)!important;border:2px solid #d9a560!important;box-shadow:inset 0 3px 5px rgba(120,60,0,.22),0 2px 0 #fff!important;border-radius:14px!important}
/* small labels */
.ptag,.colcell i,.pl-tier,.node .badge,.tier{box-shadow:0 2px 0 rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.55)}
/* scroll bars inside the windows */
.card ::-webkit-scrollbar,.card::-webkit-scrollbar{width:9px}
.card ::-webkit-scrollbar-track,.card::-webkit-scrollbar-track{background:rgba(90,50,10,.16);border-radius:9px;box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}
.card ::-webkit-scrollbar-thumb,.card::-webkit-scrollbar-thumb{border-radius:9px;background:linear-gradient(90deg,#ffd76a,#ff9a1f);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 1px 2px rgba(0,0,0,.3)}
.card ::-webkit-scrollbar-button,.card::-webkit-scrollbar-button{display:none}
.found{box-shadow:0 3px 0 rgba(120,80,30,.35),inset 0 2px 0 #fff,inset 0 -5px 8px rgba(200,150,80,.18)}

/* =====================================================================
   3D + GLOSS PASS, the mini-games: Memory Match, Odd One Out, Sugar Jars and the frame of the canvas games
   ===================================================================== */
/* the play area sits in a carved candy tray */
#quickBody,#memGrid{padding:10px;border-radius:20px;background:linear-gradient(180deg,#b9dcff,#e6f4ff 60%,#f6fbff);box-shadow:inset 0 5px 9px rgba(20,60,130,.42),inset 0 -2px 0 rgba(255,255,255,.9),0 2px 0 #fff}
#quickBody:has(.qcv){padding:0;background:none;box-shadow:none}
.qcv{border-radius:18px!important;box-shadow:0 0 0 3px #fff,0 0 0 6px #ffc247,0 7px 0 #b06a10,0 14px 14px rgba(40,10,0,.4)!important}
/* Memory Match: thick glossy cards */
.memgrid{gap:9px!important}
.mcard{perspective:700px}
.mcard .front,.mcard .back{border-radius:16px!important;transition:transform .42s cubic-bezier(.3,1.3,.5,1)!important}
.mcard .front{filter:drop-shadow(0 5px 0 rgba(0,40,110,.45)) drop-shadow(0 8px 6px rgba(0,20,60,.35))!important}
.mcard .back{background:linear-gradient(180deg,#fff 0,#fff6dc 50%,#ffe2a0 100%)!important;border:3px solid #fff!important;box-shadow:0 5px 0 #d99a1c,0 9px 8px rgba(90,50,0,.35),inset 0 3px 0 #fff,inset 0 -8px 12px rgba(255,170,40,.28)!important;overflow:hidden}
.mcard .back::after{content:"";position:absolute;left:6%;right:6%;top:3px;height:40%;border-radius:12px 12px 50% 50%/12px 12px 20px 20px;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,0));pointer-events:none}
.mcard .back svg{width:74%!important;height:74%!important;filter:drop-shadow(0 4px 3px rgba(90,40,0,.4))}
.mcard:active .front{transform:translateY(3px)}
.mcard.done{opacity:1!important}
.mcard.done .back{background:linear-gradient(180deg,#f4fff0,#c9f5b8 55%,#8fe07a)!important;box-shadow:0 5px 0 #2a9a28,0 0 14px 3px rgba(140,255,120,.7),inset 0 3px 0 #fff!important;animation:mdone .5s cubic-bezier(.3,1.5,.5,1)}
@keyframes mdone{0%{transform:rotateY(0) scale(1)}45%{transform:rotateY(0) scale(1.14)}100%{transform:rotateY(0) scale(1)}}
/* Odd One Out: candy on raised glossy tiles */
.oddgrid{gap:8px!important}
.oddc{position:relative;overflow:hidden;border-radius:16px!important;border:3px solid #fff!important;background:linear-gradient(180deg,#fff 0,#eef7ff 48%,#c9e2fb 100%)!important;box-shadow:0 5px 0 #8fb6de,0 9px 8px rgba(30,70,130,.32),inset 0 3px 0 #fff,inset 0 -8px 12px rgba(100,160,225,.25)!important;transition:transform .08s,box-shadow .08s}
.oddc::after{content:"";position:absolute;left:6%;right:6%;top:3px;height:40%;border-radius:12px 12px 50% 50%/12px 12px 18px 18px;background:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,0));pointer-events:none}
.oddc svg{width:80%!important;height:80%!important;filter:drop-shadow(0 4px 3px rgba(20,40,90,.4))}
.oddc:active{transform:translateY(4px);box-shadow:0 1px 0 #8fb6de,inset 0 3px 0 #fff!important}
.oddc.shake{background:linear-gradient(180deg,#fff0f0,#ffc9c9 55%,#ff9a9a)!important;box-shadow:0 5px 0 #c94a4a,inset 0 3px 0 #fff!important}
/* Sugar Jars: real glass jars with a lid, a candy on the label and a shine */
.jdrop{height:120px!important}
.jdrop i{width:60px!important;height:60px!important;margin-left:-30px!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 6px 4px rgba(20,30,80,.4))}
.jars{gap:9px!important;margin-top:4px!important;padding-top:10px}
.jar{aspect-ratio:.74!important;overflow:visible!important;border:3px solid rgba(255,255,255,.95)!important;border-radius:14px 14px 24px 24px/12px 12px 26px 26px!important;
  background:linear-gradient(90deg,rgba(255,255,255,.75) 0,rgba(255,255,255,.18) 22%,rgba(255,255,255,.08) 70%,rgba(255,255,255,.45) 100%)!important;
  box-shadow:0 6px 0 rgba(60,90,140,.45),0 11px 9px rgba(20,40,90,.35),inset 0 0 0 2px rgba(255,255,255,.35),inset 0 -10px 14px rgba(40,80,150,.2)!important;transition:transform .08s}
.jar::before{content:"";position:absolute;left:8%;right:8%;top:-11px;height:13px;border-radius:7px;background:linear-gradient(180deg,#fff3c0,var(--jc) 45%,rgba(0,0,0,.35) 140%);box-shadow:0 2px 0 rgba(0,0,0,.28),inset 0 2px 0 rgba(255,255,255,.7);z-index:3}
.jar b{left:3px!important;right:3px!important;bottom:3px!important;height:64%!important;opacity:1!important;border-radius:4px 4px 19px 19px/4px 4px 21px 21px;
  background:linear-gradient(180deg,rgba(255,255,255,.55) 0,rgba(255,255,255,0) 22%),linear-gradient(90deg,rgba(255,255,255,.35),rgba(255,255,255,0) 35%,rgba(0,0,0,.22)),var(--jc)!important;box-shadow:inset 0 -8px 10px rgba(0,0,0,.25),inset 0 3px 0 rgba(255,255,255,.5)}
.jar img{position:absolute;left:50%;bottom:14%;width:62%;transform:translateX(-50%);z-index:2;filter:drop-shadow(0 3px 2px rgba(0,0,0,.4));pointer-events:none}
.jar u{position:absolute;left:10%;top:7%;width:14%;height:62%;border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.15));z-index:4;pointer-events:none;text-decoration:none}
.jar:active{transform:translateY(4px)}
.jar.pop{animation:jpop3 .32s cubic-bezier(.3,1.6,.5,1)!important}
@keyframes jpop3{0%{transform:scale(1)}40%{transform:scale(1.13,.9) translateY(4px)}100%{transform:scale(1)}}
/* the text lines of the mini-games */
#quickInfo,#memMoves{display:inline-block;padding:4px 14px;border-radius:14px;background:linear-gradient(180deg,#fff,#e4f1ff);box-shadow:0 3px 0 #9cbfe0,inset 0 2px 0 #fff;margin-bottom:6px}
#quickMsg:not(:empty),#memMsg:not(:empty){display:inline-block;padding:6px 16px;border-radius:16px;background:linear-gradient(180deg,#fffbe0,#ffe08a);box-shadow:0 3px 0 #d99a1c,inset 0 2px 0 #fff;margin-top:6px}

/* the winning bear stands a little lower, so his jump does not climb over the title */
#win .win-gumi{margin-top:2px!important;margin-bottom:-12px!important}

/* prize lists: every prize is one unit (icon + amount) and the row wraps inside its frame instead of spilling out */
.rwd{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;max-width:100%;min-width:0}
.rwd .pz{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;flex:none}
.rwd.big{gap:6px 8px;width:100%;box-sizing:border-box;padding:0 4px}
.rwd.big .pz{padding:4px 10px 4px 6px;border-radius:16px;background:linear-gradient(180deg,#fff,#eaf4ff 55%,#cfe4fa);border:2px solid #fff;box-shadow:0 3px 0 #9cbfe0,inset 0 2px 0 #fff}
.rwd.big .pz img{width:30px!important;height:30px!important}
.rwd.big .pz b{font-size:19px!important;line-height:1}
#chestPrize{max-width:100%;overflow:hidden}
#chestMsg{max-width:100%;overflow-wrap:anywhere}

/* audit fixes: no window may be taller than the screen; its list scrolls inside instead */
/* the round side buttons: the tag never grows wider than its button */
.med .tag{max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:clip;font-size:12px}

/* audit fixes, second round */
html[lang="es"] .med .tag{font-size:10px!important;padding-left:5px!important;padding-right:5px!important}
html[lang="es"] .card h2{white-space:nowrap}
#win .row{gap:8px}
html[lang="es"] #win .row .btn{padding-left:14px!important;padding-right:14px!important;font-size:clamp(15px,4.6vw,19px)!important}

/* audit fixes, third round */
#rwTitle{line-height:1.05!important;text-wrap:balance;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- board placement ---------- */
/* every board sits a little lower, closer to the middle of the screen */
@media (min-height:660px){#game .boardwrap{margin-top:14px}}
/* 10x10: the board runs from edge to edge of the screen, so every square is as big as the phone allows */
#game.full{padding-left:0!important;padding-right:0!important}
#game.full .bar,#game.full .tools,#game.full .found,#game.full .bosshud,#game.full .tier{margin-left:12px;margin-right:12px}
#game.full .found,#game.full .bosshud,#game.full .tier{margin-left:auto;margin-right:auto}
#game.full .boardwrap{margin-left:0;margin-right:0;padding:0}
#game.full .board{width:min(100vw,calc(100dvh - 262px))!important;max-width:none!important;gap:2px!important;padding:5px 2px!important;border-left-width:0!important;border-right-width:0!important;border-top-width:4px!important;border-bottom-width:4px!important;border-radius:0!important}
#game.full .board .cell{border-radius:16%}
@media (min-width:560px){#game.full .board{width:min(540px,calc(100dvh - 262px))!important;border-radius:18px!important;border-left-width:4px!important;border-right-width:4px!important;padding:5px!important}}
/* a wide, short screen (an open Fold held sideways) on a level with Vinegar's bar: the board leaves room for the bar, so the helper buttons stay on the screen */
@media (min-width:560px){#game.full.bossfight .board{width:min(540px,calc(100dvh - 306px))!important}#game.bossfight:not(.full) .board.n10{width:min(calc(100vw - 8px),calc(100dvh - 294px),540px)}}

/* the winning bear stands lower still, clear of the title */
#win .win-gumi{margin-top:10px!important;margin-bottom:-20px!important}
/* 10x10: a thin strip of the frame stays visible on both sides */
#game.full .board{border-left-width:4px!important;border-right-width:4px!important;padding:5px 2px!important;border-radius:12px!important}

/* top bar: the counters sit a little closer together, and the profile button on the left is wider with a bigger bear */
.wallet.topbar{justify-content:space-evenly!important}
.wallet.topbar .chip.me{width:50px!important;padding:0 0 4px!important;overflow:hidden;justify-content:center}
.wallet.topbar .chip.me svg,.wallet.topbar .chip.me .gum{width:44px!important;height:44px!important;flex:none;margin:6px 0 -14px;filter:drop-shadow(0 1px 1px rgba(90,30,0,.35))}
@media (max-width:380px){.wallet.topbar .chip.me svg,.wallet.topbar .chip.me .gum{width:44px!important;height:44px!important}}
/* the bear in the profile button: head and shoulders, cut cleanly at the inner edge of the pill */
.wallet.topbar .chip.me svg,.wallet.topbar .chip.me .gum{margin:3px 0 -14px!important;clip-path:inset(0 0 17px 0 round 0 0 13px 13px)}
/* profile button a little narrower again, so the counters keep their room when the numbers grow */
.wallet.topbar .chip.me{width:42px!important}
.wallet.topbar .chip.me svg,.wallet.topbar .chip.me .gum{width:38px!important;height:38px!important;margin:3px 0 -12px!important;clip-path:inset(0 0 13px 0 round 0 0 12px 12px)}
/* when the numbers are long the counters shrink their text a little instead of pushing each other out */
.wallet.topbar .chip{flex:0 1 auto;min-width:0}
.wallet.topbar .chip b{white-space:nowrap}

/* tall windows: the window itself is never capped or re-boxed (that broke its frame on phones); only the list inside it gets a height limit and scrolls */
#questList,#ranking .rlist,#giftList,#gameList,#passList{max-height:calc(100svh - 400px);min-height:120px;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2px 4px 8px}
@supports not (height:100svh){#questList,#ranking .rlist,#giftList,#gameList,#passList{max-height:calc(100vh - 430px)}}
#ranking .rlist{max-height:calc(100svh - 480px);min-height:96px}

/* rate us */
#rate .rate-bear{display:block;width:96px;height:96px;object-fit:contain;margin:-6px auto 0;filter:drop-shadow(0 5px 4px rgba(60,0,30,.35))}
.rate-stars{display:flex;justify-content:center;gap:4px;margin:4px 0}
.rstar{padding:0;background:none;border:0;width:17%;max-width:54px;aspect-ratio:1;transition:transform .12s}
.rstar img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(90,40,0,.4))}
.rstar.on{animation:rstar .35s cubic-bezier(.3,1.6,.5,1)}
.rstar:active{transform:scale(.88)}
@keyframes rstar{0%{transform:scale(.6)}60%{transform:scale(1.25)}100%{transform:scale(1)}}
#rateMsg{min-height:2.4em;margin:2px 0}
#rate .card h2{white-space:nowrap}

/* window titles: one centred line on the plate; the size is fitted by the code */
.overlay .card h2,#reward #rwTitle,html[lang="es"] .card h2,#rate .card h2{display:grid!important;place-items:center!important;text-align:center!important;white-space:nowrap!important;overflow:visible!important;-webkit-line-clamp:unset!important;line-height:1!important;padding:0!important;font-size:20px}

/* lucky wheel: a little bigger, and tilted less so nothing hides behind the rim */
#wheel .wheelbox{width:min(318px,calc(100% + 16px))!important;transform:perspective(760px) rotateX(10deg)!important;margin-left:calc((100% - min(318px,calc(100% + 16px))) / 2);margin-right:calc((100% - min(318px,calc(100% + 16px))) / 2)}   /* v573 (his report 2026-11-29): equal margins, the wheel sits in the middle of the frame (was 8px to the left) */
#wheel .wheelbox .whub{width:21%!important}

/* ---------- Hard / Extremely Hard boards are dark: a found candy gets a white frame so its square stands out ---------- */
.board.hard .cell.has:not(.lit),.board.veryhard .cell.has:not(.lit),.board.extreme .cell.has:not(.lit){box-shadow:inset 0 0 0 3px #fff,inset 0 -3px 0 rgba(0,0,0,.16),0 0 6px 1px rgba(255,255,255,.75)}
/* ---------- one prize card with many prizes (end of a world): smaller icons so all of them fit ---------- */
.rw-items.many{gap:6px 10px}
.rw-items.many .rw-it img{width:60px;height:60px}
.rw-items.many .rw-it img.rw-boss{width:84px;height:84px}
.rw-items.many .rw-it b{font-size:19px}
.rw-items.many .rw-it .sticker.big,.rw-items.many .rw-it .swatch.big{transform:scale(.7);margin:-10px}
.rw-note{flex-basis:100%;display:flex;flex-direction:column;align-items:center;font:700 14px var(--body,inherit);color:#7a3b00;margin-top:2px}
.rw-note b{font-size:16px;color:#c2185b}
.rw-note{order:9}
.rw-items.many .rw-it{max-width:132px}
.rw-items.many .rw-it b{font-size:16px;line-height:1.15;text-align:center}
.rw-items.many .rw-it img+b{font-size:19px}
/* ---------- no brown text on yellow: it was hard to read. White text with a dark outline instead ---------- */
#chestSpeed{background:url(art/btn_green.webp) center/100% 100% no-repeat;color:#fff;border:0;-webkit-text-stroke:1.6px #000;paint-order:stroke fill;text-shadow:0 2px 0 rgba(0,60,0,.6)}
#chestSpeed:disabled{-webkit-text-stroke:1.6px #3a3a3a;paint-order:stroke fill}
.med.live .tag,.passrow .pnum.on,.evcard.hot em{background:linear-gradient(#ff8a00,#e23a00);color:#fff;text-shadow:0 1px 0 rgba(90,20,0,.9),0 0 2px rgba(90,20,0,.8)}

/* ---------- bonus stage (Cart Race): the track takes almost the whole screen ---------- */
#quick.big .card{--cw:min(480px,calc(100vw - 16px));border-image:none!important;border:0!important;background:none!important;padding:0!important;filter:none!important;gap:8px;box-shadow:none!important}
#quick.big .card::before,#quick.big .card::after{display:none!important}
#quick.big h2,#quick.big #quickInfo,#quick.big .qbar,#quick.big .xclose{display:none!important}
#quick.big .qcv{max-width:none}
#quick.big #quickClose{align-self:center;width:min(300px,80%)}

/* ---------- a helper's explanation stays on screen until it is closed ---------- */
.toast.gtoast.sticky{pointer-events:auto;padding-right:46px}
.toast .tx{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:2px solid #fff;background:linear-gradient(#ff6a6a,#d81f1f);color:#fff;font:900 14px/1 Nunito,system-ui,sans-serif;padding:0;text-shadow:none;-webkit-text-stroke:0;box-shadow:0 2px 0 rgba(0,0,0,.4);cursor:pointer}
/* ---------- win and prize windows: the content sits 2 mm higher above the chocolate frame at the bottom, and the prize line keeps off the side frame ---------- */
#win .card,#reward .card{padding-bottom:9px!important}
#win #winReward{max-width:86%;margin-left:auto;margin-right:auto}

/* bonus stage: the track sits exactly in the middle of the screen, and the button stays well above the bottom edge */
#quick.big{padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
#quick.big[hidden]{display:none!important}
#quick.big .card{margin:0 auto!important;transform:translateY(-10px)}
#quick.big #quickBody{margin:0!important;padding:0!important;width:100%}
#quick.big .qcv{width:100%!important;margin:0!important}
#quick.big #quickMsg{min-height:34px;margin:0}

/* ---------- the helpers sit 5 mm higher, closer to the board (their explanation follows them, with a safe gap) ---------- */
#game .tools{margin-top:-24px;position:relative;z-index:2}
/* ---------- Play and Close buttons: slightly bigger text and a slightly bolder black outline ---------- */
.overlay button[id$="Close"].btn,#climbPlay,#stormPlay{font-size:23px!important;-webkit-text-stroke:2.7px #000!important;paint-order:stroke fill!important}
.overlay button[id$="Close"].link{font-size:20px!important;-webkit-text-stroke:2.7px #000!important;paint-order:stroke fill!important}
#prelevel #plPlay{font-size:28px!important;-webkit-text-stroke:3px #000!important;paint-order:stroke fill!important}
/* bonus stage: the track always starts just under the top bar, never behind it */
#quick.big{align-items:flex-start!important;padding-top:58px!important}
#quick.big .card{transform:none}

/* the chest's prize line: big clear numbers */
#chest .chest-prize .rwd.big .pz b{font-size:24px}
#chest .chest-prize .rwd.big .pz .pico{width:44px;height:44px}

/* ---------- Daily Challenge: the clock above the board, and the explanation card ---------- */
.chaltimer{align-self:center;margin:-2px 0 0;padding:4px 16px;border-radius:999px;background:linear-gradient(180deg,#fff,#dff0ff);border:2px solid #fff;box-shadow:0 3px 0 #7fa9d6,0 5px 8px rgba(20,0,60,.3);color:#143a6b;font:900 20px/1.1 Nunito,system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.chaltimer.low{background:linear-gradient(180deg,#ff8a8a,#e02020);color:#fff;box-shadow:0 3px 0 #8a0f0f,0 5px 8px rgba(20,0,60,.3);animation:chalpulse .9s ease-in-out infinite}
@keyframes chalpulse{50%{transform:scale(1.08)}}
.chal-time{align-self:center;padding:6px 22px;border-radius:999px;background:linear-gradient(180deg,#fff,#dff0ff);box-shadow:0 4px 0 #7fa9d6,inset 0 2px 0 #fff;color:#143a6b;font:900 30px/1.1 Nunito,system-ui,sans-serif;font-variant-numeric:tabular-nums}
#chal .chest-prize .rwd.big .pz b{font-size:24px}
#chal .chest-prize .rwd.big .pz .pico{width:44px;height:44px}

/* the challenge always shows what you are playing for */
.chal-win{margin:2px 0 -4px;font:900 17px/1.2 Nunito,system-ui,sans-serif;color:#c2185b}
.chaltimer{display:inline-flex;align-items:center;gap:8px}
.chaltimer[hidden]{display:none}
.chaltimer b{font:inherit}
.chaltimer .chal-for{display:inline-flex;align-items:center;gap:2px;padding-left:8px;border-left:2px solid rgba(20,58,107,.25)}
.chaltimer .chal-for img{width:24px;height:24px;object-fit:contain}
.chaltimer.low .chal-for{border-left-color:rgba(255,255,255,.5)}



/* a mini-game clock that is about to run out */
#quickInfo.low{background:linear-gradient(180deg,#ff8a8a,#e02020)!important;color:#fff!important;box-shadow:0 3px 0 #8a0f0f!important;animation:chalpulse .7s ease-in-out infinite}

/* ---------- 10x10 boards fill the screen: the helpers sit 3 mm higher still, and their explanation is a little more compact, so it always stays on the screen ---------- */
#game.full .tools{margin-top:-37px}
body.in-game.full10 .toast.gtoast{font-size:14px;line-height:1.2;padding:8px 14px}
body.in-game.full10 .toast.gtoast.sticky{padding-right:44px}
@media (min-height:660px){#game.full .boardwrap{margin-top:6px}}

/* ---------- first release: nothing that costs real money and no video buttons unless the app really provides them ---------- */
body.nopay #shopPacks,body.nopay .shoph.payonly,body.nopay #livesBuy{display:none!important}
body.noads #shopFree,body.noads #shopAds,body.noads .shoph.adsonly,body.noads #livesAd,body.noads #reviveBtn{display:none!important}
/* ---------- ranking: report a name ---------- */
.rrow{grid-template-columns:34px 1fr auto auto}
.rrow .rflag{min-width:30px;height:28px;padding:0 6px;border-radius:9px;border:0;background:rgba(0,0,0,.14);color:#7a3b00;font:800 13px/1 Nunito,system-ui,sans-serif;text-shadow:none;-webkit-text-stroke:0;cursor:pointer}
.rrow .rflag.ask{background:#e23a3a;color:#fff}
.rnmsg{min-height:0;margin:-4px 0 0;color:#c2185b;font-weight:800}
.rnmsg:empty{display:none}
/* ---------- chest: what is inside ---------- */
.oddsbtn{align-self:center;padding:5px 14px;border-radius:999px;border:2px solid #fff;background:linear-gradient(180deg,#fff,#dff0ff);box-shadow:0 3px 0 #9cbfe0;color:#143a6b;font:800 14px/1.1 Nunito,system-ui,sans-serif;text-shadow:none;-webkit-text-stroke:0;cursor:pointer}
.oddslist{display:flex;flex-direction:column;gap:5px;max-height:calc(100svh - 360px);overflow-y:auto;padding:2px 4px}
.oddslist h3{margin:8px 0 2px;font:900 15px/1.1 Nunito,system-ui,sans-serif;color:#c2185b;text-align:left}
.oddslist h3:first-child{margin-top:0}
.oddrow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 12px;border-radius:12px;background:linear-gradient(180deg,#fff,#eaf4ff);box-shadow:0 2px 0 #b9d2ea}
.oddrow b{font:900 17px/1 Nunito,system-ui,sans-serif;color:#143a6b}
.oddrow .rwd{display:flex;flex-wrap:wrap;gap:4px}

.rrow{grid-template-columns:34px minmax(0,1fr) auto auto}
.rrow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rrow .rflag{white-space:nowrap;overflow:visible}
.rrow .rflag.ask{min-width:66px;font-size:12px;padding:0 8px}

/* ---------- red dot: something here can be played or claimed right now. Small, pure red, with a glow, so it is seen at once ---------- */
.evcard{overflow:visible!important}
.evcard .evdot{display:none}
.evcard.dot .evdot,.med.dot::after{content:"";display:block;position:absolute;top:-4px;right:-3px;width:12px;height:12px;border-radius:50%;background:#ff0000;border:2px solid #fff;box-shadow:0 0 0 1px rgba(120,0,0,.55),0 0 7px 2px rgba(255,0,0,.85),0 1px 3px rgba(0,0,0,.5);z-index:5;pointer-events:none;animation:dotpulse 1.4s ease-in-out infinite}
.med.dot::after{top:0;right:4px}
@keyframes dotpulse{50%{transform:scale(1.2)}}
@media (prefers-reduced-motion:reduce){.evcard.dot .evdot,.med.dot::after{animation:none}}

/* ---------- no loading screen between screens: just a quick colour fade ---------- */
#wipe .ld{display:none!important}
#wipe{background:radial-gradient(circle at 50% 40%,#7a4dff 0,#4a22c8 55%,#2a0f7a 100%)!important;clip-path:none!important}
/* ---------- Restart: are you sure? ---------- */
#confirmR .cr-ico{width:84px;height:84px;margin:0 auto;object-fit:contain;filter:drop-shadow(0 5px 4px rgba(60,0,30,.35))}
#confirmR p{margin:0}
/* ---------- tutorial in the same glossy 3D look as the game ---------- */
.tb{background:linear-gradient(180deg,#6a48ff,#2f1a9a)!important;border:4px solid #fff!important;border-radius:18px!important;gap:3px!important;padding:5px!important;
  box-shadow:0 5px 0 #1c0b5e,0 10px 16px rgba(40,0,80,.4),inset 0 2px 0 rgba(255,255,255,.35)!important}
.tb.isgood{border-color:#46e06a!important;box-shadow:0 5px 0 #138a33,0 10px 16px rgba(0,80,30,.35),0 0 14px rgba(70,224,106,.6)!important}
.tb.isbad{border-color:#ff5a6a!important;box-shadow:0 5px 0 #a8122a,0 10px 16px rgba(120,0,20,.35),0 0 14px rgba(255,90,106,.6)!important}
.tc{border-radius:22%!important;background-color:var(--c)!important;
  background-image:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.08) 48%,rgba(0,0,0,.12))!important;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.2),inset 0 2px 0 rgba(255,255,255,.6),0 2px 2px rgba(0,0,0,.28)!important;transition:transform .12s}
.tc::before{content:"";position:absolute;left:14%;top:9%;width:34%;height:18%;border-radius:50%;background:rgba(255,255,255,.55);filter:blur(.4px);pointer-events:none}
.tc.tcandy{box-shadow:inset 0 0 0 2.5px #1b0d2e,inset 0 -3px 0 rgba(0,0,0,.16),0 0 0 1px rgba(255,255,255,.6),0 2px 3px rgba(0,0,0,.3)!important}
.tc svg{position:relative;z-index:1;width:84%!important;height:84%!important;filter:drop-shadow(0 0 3px rgba(255,255,255,.95)) drop-shadow(0 2px 2px rgba(0,0,0,.45))}
.tc u{position:relative;z-index:1;width:56%!important;height:56%!important;opacity:1!important;
  background:linear-gradient(45deg,transparent 38%,#fff 38% 62%,transparent 62%),linear-gradient(-45deg,transparent 38%,#fff 38% 62%,transparent 62%)!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.45))}
.tc.press{animation:tcpress .25s ease-out}
@keyframes tcpress{50%{transform:scale(.86)}}
.tmark{width:34px!important;height:34px!important;font-size:20px!important;border:3px solid #fff!important;
  box-shadow:0 3px 0 rgba(0,0,0,.3),inset 0 2px 0 rgba(255,255,255,.55),inset 0 -3px 0 rgba(0,0,0,.18)!important}
.tmark.good{background:linear-gradient(180deg,#7cf08f,#22b546)!important}.tmark.bad{background:linear-gradient(180deg,#ff8a95,#e0263c)!important}
.thand{font-size:0!important;width:58px;height:58px;transform:translate(-26%,-8%)!important;filter:drop-shadow(0 6px 5px rgba(0,0,0,.45))!important;z-index:3}
.thand svg{width:100%;height:100%;transform-origin:28% 12%;transition:transform .09s}
.thand.tap{animation:none!important}.thand.tap svg{animation:thandtap .24s ease-out}
@keyframes thandtap{50%{transform:scale(.82)}}
.tdots i{width:11px!important;height:11px!important;background:linear-gradient(180deg,#e2d9f5,#b9aadb)!important;box-shadow:inset 0 1px 0 #fff,0 1px 1px rgba(0,0,0,.2)}
.tdots i.on{background:linear-gradient(180deg,#b37aff,#6a22c8)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 2px 2px rgba(60,0,120,.35)}
.thearts img{filter:drop-shadow(0 4px 3px rgba(120,0,30,.35))}
.ttools{display:flex;gap:16px;justify-content:center}
.ttool{display:grid;place-items:center;width:64px;height:64px;filter:drop-shadow(0 4px 3px rgba(40,0,80,.45))}
.ttool img{width:100%!important;height:100%!important;object-fit:contain}

/* ---------- speed on phones ---------- */
/* blurring the whole screen behind every window is the most expensive effect there is on a phone: a darker veil does the same job */
.overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(22,0,56,.74)}
#win{background:radial-gradient(circle at 50% 42%,#6fe9ff 0,#2a8ee8 36%,#2a3fb8 66%,#1c1470 100%)}
/* the 50 world pictures no longer slide all the time: that repainted the whole map on every frame */
.zone{animation:none!important}
/* while a board is still being made, a small spinner (no loading screen) */
#wipe.busy::after{content:"";width:46px;height:46px;border-radius:50%;border:5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:spin .8s linear infinite;animation-delay:.35s;opacity:0;animation-fill-mode:both;animation-name:busyspin}
@keyframes busyspin{0%{opacity:0;transform:rotate(0)}1%{opacity:1}100%{opacity:1;transform:rotate(360deg)}}
/* ---------- tutorial: the double-tap count and the dragging finger ---------- */
.tnum{position:absolute;z-index:4;transform:translate(-50%,-100%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ffe95c,#ffb21f);border:2.5px solid #fff;color:#5a2a00;font:900 15px/1 Nunito,system-ui,sans-serif;box-shadow:0 3px 0 rgba(120,60,0,.45);animation:tnum .9s ease-out both;pointer-events:none}
@keyframes tnum{0%{opacity:0;transform:translate(-50%,-60%) scale(.4)}18%{opacity:1;transform:translate(-50%,-100%) scale(1.15)}30%{transform:translate(-50%,-100%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-130%) scale(1)}}
.thand.down svg{transform:scale(.84)}

/* ---------- Today's League (after a win, and in the Ranking window): glossy rows, round avatars, medals ---------- */
.llist{position:relative;overflow:hidden;margin:0 2px;border-radius:16px}
.llist .lrow{position:absolute;left:0;right:0;top:0;height:46px}
.llist .lrow.go{transition:transform .9s cubic-bezier(.3,1.25,.4,1)}
.lrow{display:grid;grid-template-columns:30px 38px minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:0 10px 0 6px;height:46px;border-radius:14px;margin-bottom:6px;
  background:linear-gradient(180deg,#ffffff,#e3f0ff);box-shadow:0 3px 0 #a9c6e6,inset 0 2px 0 #fff;color:#143a6b;font:800 15px/1.1 Nunito,system-ui,sans-serif}
.lrow .lnm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.lrow .lpt{font-style:normal;font:900 16px/1 Nunito,system-ui,sans-serif;color:#0f3a78;font-variant-numeric:tabular-nums}
.lrow.me{background:linear-gradient(180deg,#fff6c4,#ffd24a);box-shadow:0 3px 0 #c98a00,inset 0 2px 0 #fffbe0,0 0 0 2.5px #fff,0 0 12px 2px rgba(255,200,40,.75);color:#5a2a00;z-index:2}
.lrow.me .lpt{color:#7a3200}
.lrow.me.climb{z-index:5;box-shadow:0 8px 0 #c98a00,inset 0 2px 0 #fffbe0,0 0 0 3px #fff,0 0 22px 6px rgba(255,210,60,.95);animation:lclimb .9s ease-in-out}
.lrow.me.landed{animation:lland .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes lclimb{0%,100%{filter:none}50%{filter:brightness(1.12)}}
@keyframes lland{0%{filter:brightness(1.3)}100%{filter:none}}
.lyou{text-decoration:none;padding:2px 7px;border-radius:8px;background:linear-gradient(180deg,#ff5fae,#d81b7a);color:#fff;font:900 11px/1.2 Nunito,system-ui,sans-serif;box-shadow:0 2px 0 #8a0f4c}
.lrk{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(180deg,#eaf1fb,#bcd0ea);box-shadow:0 2px 0 #8fa9c9,inset 0 1px 0 #fff;color:#27507f;font:900 13px/1 Nunito,system-ui,sans-serif}
.lrk.top{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.lrk.r1{background:linear-gradient(180deg,#ffe77a,#f0a400);box-shadow:0 2px 0 #a86a00,inset 0 2px 0 #fff7c2}
.lrk.r2{background:linear-gradient(180deg,#f3f6fb,#a9b6c8);box-shadow:0 2px 0 #6d7a8c,inset 0 2px 0 #fff;color:#3d4a5c;text-shadow:none}
.lrk.r3{background:linear-gradient(180deg,#ffc79a,#c9712a);box-shadow:0 2px 0 #8a4410,inset 0 2px 0 #ffe3c9}
.lav{display:block;width:36px;height:36px;border-radius:50%;overflow:hidden;background:linear-gradient(180deg,#bfe3ff,#6fb2ff);box-shadow:0 2px 0 rgba(20,60,120,.35),inset 0 0 0 2px #fff;position:relative}
.lav img{position:absolute;left:50%;top:50%;width:100%;height:100%;object-fit:contain;transform:translate(-50%,-50%)}
.lav.head img,.lav.me img{width:190%;height:190%;top:92%;object-position:50% 0}
.lav.me{background:linear-gradient(180deg,#ffe0f0,#ff8cc6)}
.lav.full{background:linear-gradient(180deg,#d9c8ff,#8a6cff)}
.lav.full img{width:118%;height:118%}
.lav.candy{background:linear-gradient(180deg,#fff3c4,#ffc94a)}
.lav.candy.real{background:linear-gradient(180deg,#d5f7d8,#6fd58a)}
.lav svg{position:absolute;inset:14%;width:72%;height:72%}
.lgain{align-self:center;padding:4px 18px;border-radius:999px;background:linear-gradient(180deg,#8cf060,#2fb82f);border:2.5px solid #fff;box-shadow:0 4px 0 #146b17;color:#fff;font:900 22px/1.1 Nunito,system-ui,sans-serif;text-shadow:0 2px 0 rgba(8,70,20,.6);animation:tpop .45s cubic-bezier(.3,1.6,.5,1) both}
.lmsg{min-height:38px;margin:0;font:900 15px/1.25 Nunito,system-ui,sans-serif;color:#c2185b}
#ranking .rlist .lrow{position:relative}
#ranking .rlist .lrow .rflag{min-width:30px;height:28px;padding:0 6px;border-radius:9px;border:0;background:rgba(0,0,0,.12);color:#7a3b00;font:800 13px/1 Nunito,system-ui,sans-serif;text-shadow:none;-webkit-text-stroke:0;white-space:nowrap}
#ranking .rlist .lrow .rflag.ask{background:#e23a3a;color:#fff;font-size:12px;padding:0 8px}
#ranking .rlist .lrow:has(.rflag){grid-template-columns:30px 38px minmax(0,1fr) auto auto auto}

/* ---------- league avatars: every character on its own coloured disc ---------- */
.lav.candy,.lav.sweet{background:linear-gradient(180deg,hsl(var(--bg,40) 95% 88%),hsl(var(--bg,40) 85% 66%))}
.lav.sweet img{width:78%;height:78%}
.lav.head{background:linear-gradient(180deg,hsl(var(--bg,200) 90% 86%),hsl(var(--bg,200) 80% 62%))}
/* ---------- world pictures: a slow drift, only for the world on screen, done by sliding a layer (the map is not repainted) ---------- */
.map .zone{overflow:hidden}
.map .zone.live::before{content:"";position:absolute;top:0;bottom:0;left:-7%;right:-7%;background:inherit;background-position:50% 50%;will-change:transform;animation:zonedrift 22s ease-in-out infinite alternate}
@keyframes zonedrift{from{transform:translate3d(-5.5%,0,0)}to{transform:translate3d(5.5%,0,0)}}
@media (prefers-reduced-motion:reduce){.map .zone.live::before{animation:none}}
/* ---------- tutorial: the dragging finger is big, presses with a glow and leaves a bright trail ---------- */
.thand{width:70px!important;height:70px!important}
.thand::before{content:"";position:absolute;left:28%;top:12%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.95) 0,rgba(255,236,110,.75) 45%,rgba(255,236,110,0) 72%);opacity:0;transform:scale(.4);transition:opacity .15s,transform .15s;z-index:-1}
.thand.down::before{opacity:1;transform:scale(1);animation:tglow .7s ease-in-out infinite}
@keyframes tglow{50%{transform:scale(1.3)}}
.ttrail{position:absolute;z-index:2;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:7px;background:linear-gradient(180deg,#fffbe0,#ffe14d);box-shadow:0 0 0 2px rgba(255,255,255,.9),0 0 10px 3px rgba(255,225,77,.9);opacity:.92;pointer-events:none}

/* ---------- top bar: the speaker (music on / off) sits next to Settings ---------- */
#musicTop svg{width:20px;height:20px;color:#7a2fd0}
#musicTop.off svg{color:#b23a3a}
/* ---------- My Profile: every helper with its count ---------- */
.pf-grid .pf-items{grid-column:1/-1;gap:5px;padding:7px 6px 9px}
.pf-grid .pf-items>span{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;width:100%}
.pf-grid .pf-items i{display:flex;flex-direction:column;align-items:center;gap:1px;font-style:normal}
.pf-grid .pf-items img{width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(60,20,0,.3))}
.pf-grid .pf-items b{font:900 15px/1 Nunito,system-ui,sans-serif;color:#5b2a14}

/* ---------- Today's League: a bigger window ---------- */
#league .card{--cw:min(392px,calc(100vw - 12px))}
#league .llist .lrow{height:52px}
#league .lrow{font-size:16px;grid-template-columns:32px 42px minmax(0,1fr) auto auto}
#league .lrow .lpt{font-size:18px}
#league .lav{width:40px;height:40px}
#league .lrk{width:30px;height:30px;font-size:14px}
/* ---------- Candy Chest: the opening scene ---------- */
.chest-stage{position:relative;display:grid;place-items:center;height:156px;margin:2px 0}
.chest-stage .chest-art{position:relative;z-index:2}
.chest-rays{position:absolute;left:50%;top:50%;width:330px;height:330px;margin:-165px 0 0 -165px;border-radius:50%;z-index:0;opacity:0;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,rgba(255,236,120,.95) 0 9deg,rgba(255,236,120,0) 9deg 22deg);
  -webkit-mask:radial-gradient(circle,#000 18%,rgba(0,0,0,.55) 42%,transparent 70%);mask:radial-gradient(circle,#000 18%,rgba(0,0,0,.55) 42%,transparent 70%)}
.chest-stage.charge .chest-rays{animation:raysin 1.1s ease-in both,raysturn 5s linear infinite}
.chest-stage.open .chest-rays{opacity:1;animation:raysburst .6s cubic-bezier(.2,1.4,.4,1) both,raysturn 7s linear infinite}
@keyframes raysin{from{opacity:0;transform:scale(.3)}to{opacity:.55;transform:scale(.8)}}
@keyframes raysburst{0%{transform:scale(.7);opacity:.6}40%{transform:scale(1.35);opacity:1}100%{transform:scale(1.1);opacity:1}}
@keyframes raysturn{to{rotate:360deg}}
.chest-ring{position:absolute;left:50%;top:50%;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;border:6px solid #fff;box-shadow:0 0 18px 6px rgba(255,225,77,.9),inset 0 0 14px 4px rgba(255,225,77,.8);opacity:0;z-index:1;pointer-events:none}
.chest-stage.open .chest-ring{animation:chestring .7s ease-out both}
@keyframes chestring{0%{opacity:1;transform:scale(.3)}100%{opacity:0;transform:scale(3.2)}}
.chest-art.opening{animation:chestshake2 1.1s ease-in both!important;filter:drop-shadow(0 0 20px rgba(255,225,77,1)) brightness(1.08)!important}
.chest-art.opened{animation:chestpop2 .65s cubic-bezier(.3,1.7,.5,1) both!important;filter:drop-shadow(0 0 26px rgba(255,225,77,1)) drop-shadow(0 8px 6px rgba(60,20,0,.45))!important}
@keyframes chestshake2{0%{transform:rotate(0) scale(1)}8%{transform:rotate(-3deg) scale(1.01)}16%{transform:rotate(3deg) scale(1.02)}26%{transform:rotate(-6deg) scale(1.04)}36%{transform:rotate(6deg) scale(1.06)}46%{transform:rotate(-9deg) scale(1.09) translateY(-2px)}56%{transform:rotate(9deg) scale(1.12) translateY(-4px)}
  66%{transform:rotate(-12deg) scale(1.15) translateY(-6px)}76%{transform:rotate(12deg) scale(1.18) translateY(-8px)}86%{transform:rotate(-8deg) scale(1.1,.9) translateY(4px)}100%{transform:rotate(0) scale(.92,.8) translateY(10px)}}
@keyframes chestpop2{0%{transform:scale(.8,.7) translateY(12px)}35%{transform:scale(1.42) translateY(-22px)}60%{transform:scale(1.14) translateY(0)}80%{transform:scale(1.22) translateY(-5px)}100%{transform:scale(1.18)}}
#chest .card.flash::before{content:"";position:absolute;inset:-10%;border-radius:40px;background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.95),rgba(255,240,170,.6) 40%,rgba(255,240,170,0) 72%);z-index:6;pointer-events:none;animation:chestflash .5s ease-out both}
@keyframes chestflash{from{opacity:1}to{opacity:0}}
.fx-star{position:absolute;width:20px;height:20px;pointer-events:none;background:#fff8c9;clip-path:polygon(50% 0,61% 36%,98% 36%,68% 58%,79% 94%,50% 72%,21% 94%,32% 58%,2% 36%,39% 36%);filter:drop-shadow(0 0 5px #ffe14d)}
#chest .chest-prize .rwd.pop .pz{animation:pzpop .55s cubic-bezier(.3,1.7,.5,1) both;animation-delay:calc(var(--i,0) * .24s + .45s)}
@keyframes pzpop{0%{opacity:0;transform:scale(.2) translateY(14px)}60%{opacity:1;transform:scale(1.25) translateY(-4px)}100%{opacity:1;transform:scale(1)}}
#chest .chest-prize .rwd.big .pz b{font-size:28px}
#chest .chest-prize .rwd.big .pz .pico{width:50px;height:50px}
#chest .chest-art{animation:none}
@media (prefers-reduced-motion:reduce){.chest-rays,.chest-ring{display:none}}
#league{padding-left:6px!important;padding-right:6px!important}

/* ---------- every Claim button in the game is green ---------- */
.btn.claim,.btn.main.claim,.card .btn.main.claim{background:url(art/btn_green.webp) center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;color:#fff!important;text-shadow:0 2px 0 rgba(0,70,10,.65)!important;filter:drop-shadow(0 4px 3px rgba(0,60,0,.45))}
.btn.claim:disabled,.btn.main.claim:disabled{filter:grayscale(.75) brightness(.9)!important;opacity:.75}

/* ---------- the "maybe" mark on the board: big, in its own purple bubble ---------- */
.cell svg.q{position:absolute;inset:14%;width:72%;height:72%;display:block;overflow:visible;pointer-events:none;filter:drop-shadow(0 2px 1.5px rgba(0,0,0,.4));animation:qpop .28s cubic-bezier(.3,1.6,.5,1) both}
@keyframes qpop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}

/* ---------- league prizes: the strip in the Ranking window, the podium, the result ---------- */
.rankprizes{display:flex;align-items:center;gap:8px;width:100%;padding:6px 12px;border-radius:14px;border:2.5px solid #fff;background:linear-gradient(180deg,#ffe77a,#ffb21f);box-shadow:0 4px 0 #c97a00,inset 0 2px 0 rgba(255,255,255,.6);color:#5a2a00;text-align:left;cursor:pointer;-webkit-text-stroke:0;text-shadow:none}
.rankprizes img{width:30px;height:30px;object-fit:contain}
.rankprizes b{font:900 15px/1.1 Nunito,system-ui,sans-serif;flex:1}
.rankprizes small{font:800 12px/1.1 Nunito,system-ui,sans-serif;opacity:.85;white-space:nowrap}
.rankprizes i{font:900 20px/1 Nunito,system-ui,sans-serif;font-style:normal}
.podium{display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:end;gap:6px;padding:2px 2px 0}
.pod{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.pod .lav{width:48px;height:48px}
.pod.p1 .lav{width:60px;height:60px;box-shadow:0 0 0 3px #ffd84a,0 0 14px 3px rgba(255,210,60,.8),inset 0 0 0 2px #fff}
.pod.me .lav{box-shadow:0 0 0 3px #ff5fae,inset 0 0 0 2px #fff}
.pod .pnm{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 13px/1.1 Nunito,system-ui,sans-serif;color:#143a6b}
.pod .pstep{display:grid;place-items:center;width:100%;height:44px;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#f3f6fb,#a9b6c8);box-shadow:0 4px 0 #6d7a8c,inset 0 3px 0 #fff}
.pod.p1 .pstep{height:64px;background:linear-gradient(180deg,#ffe77a,#f0a400);box-shadow:0 4px 0 #a86a00,inset 0 3px 0 #fff7c2}
.pod.p3 .pstep{height:32px;background:linear-gradient(180deg,#ffc79a,#c9712a);box-shadow:0 4px 0 #8a4410,inset 0 3px 0 #ffe3c9}
.pod .pstep u{text-decoration:none;font:900 24px/1 Nunito,system-ui,sans-serif;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.3)}
.pod .punder{min-height:52px;display:flex;align-items:flex-start;justify-content:center;margin-top:6px}
.pod .punder em{font:900 16px/1 Nunito,system-ui,sans-serif;font-style:normal;color:#0f3a78}
.pod .punder .rwd{gap:2px 3px;font-size:13px}
.pod .punder .rwd .pz{padding:1px 4px}
.pod .punder .rwd .pico{width:20px;height:20px}
#lgRes .pod .punder{min-height:20px}
.lgtop10{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 12px;border-radius:14px;background:linear-gradient(180deg,#fff,#e3f0ff);box-shadow:0 3px 0 #a9c6e6,inset 0 2px 0 #fff}
.lgtop10 b{font:900 16px/1 Nunito,system-ui,sans-serif;color:#143a6b}
.lgplace{margin:0;font:900 20px/1.2 Nunito,system-ui,sans-serif;color:#c2185b}
.lzone{margin:-4px 0 0;min-height:18px;font:800 13px/1.2 Nunito,system-ui,sans-serif;color:#27507f}
.lzone:empty{display:none}
.lzone.in{color:#1f8a3a}.lzone.gold{color:#b06a00}
.pfmed{display:flex;gap:5px;justify-content:center}
.pfmed .lrk{width:26px;height:26px;font-size:13px;font-style:normal}

/* ---------- the podium: a real gold / silver / bronze picture, the winners stand on its steps ---------- */
.pstage{position:relative;padding-top:84px;margin:0 2px}
.pstage .pimg{display:block;width:100%;height:auto;filter:drop-shadow(0 6px 5px rgba(40,10,0,.35))}
.pwho{position:absolute;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;width:32%;z-index:2}
.pwho.w2{left:16.7%;bottom:calc((100% - 84px) * .777 - 3px)}
.pwho.w1{left:50%;bottom:calc((100% - 84px) * .998 - 3px)}
.pwho.w3{left:83.3%;bottom:calc((100% - 84px) * .619 - 3px)}
.pwho .pnm{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 6px;border-radius:8px;background:rgba(255,255,255,.85);font:900 12px/1.25 Nunito,system-ui,sans-serif;color:#143a6b}
.pwho .lav{width:50px;height:50px;box-shadow:0 3px 0 rgba(20,60,120,.35),inset 0 0 0 2px #fff}
.pwho.w1 .lav{width:62px;height:62px;box-shadow:0 0 0 3px #ffd84a,0 0 16px 4px rgba(255,210,60,.85),inset 0 0 0 2px #fff}
.pwho.w1::before{content:"👑";font-size:20px;line-height:1;margin-bottom:-4px;filter:drop-shadow(0 2px 1px rgba(0,0,0,.3))}
.pwho.me .pnm{background:linear-gradient(180deg,#ff5fae,#d81b7a);color:#fff}
.pwho.me .lav{box-shadow:0 0 0 3px #ff5fae,0 3px 0 rgba(120,0,60,.3),inset 0 0 0 2px #fff}
.pwho.w1.me .lav{box-shadow:0 0 0 3px #ffd84a,0 0 16px 4px rgba(255,210,60,.85),inset 0 0 0 2px #fff}
.podunder{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px}
.podunder .punder{display:flex;align-items:flex-start;justify-content:center;min-height:0}
.podunder .punder em{font:900 17px/1 Nunito,system-ui,sans-serif;font-style:normal;color:#0f3a78}
.podunder .punder .rwd{gap:2px 3px;font-size:13px}
.podunder .punder .rwd .pz{padding:1px 4px}
.podunder .punder .rwd .pico{width:20px;height:20px}

/* the party-cake podium (podium2.webp): where each winner stands */
.pwho.w2{left:15.6%;bottom:calc((100% - 84px) * .784 - 5px)}
.pwho.w1{left:49.9%;bottom:calc((100% - 84px) * .995 - 5px)}
.pwho.w3{left:84.3%;bottom:calc((100% - 84px) * .629 - 5px)}
.pwho.w1::before{font-size:26px;margin-bottom:-6px}
.pwho .pnm{font-size:11.5px;padding:1px 5px}

/* podium names: the whole name on one line (the size is fitted by the game); the label may be a little wider than its cake */
.pwho .pnm{max-width:122%;text-overflow:clip;font-size:12px}
.pwho.w1 .pnm{max-width:170%}

/* small screens: My Profile and the Ranking fit without scrolling */
#profile .pf-grid{grid-template-columns:repeat(3,1fr);gap:5px}
#profile .pf-grid>div{padding:6px 3px}
#profile .pf-grid b{font-size:16px}
#profile .pf-grid small{font-size:10.5px;line-height:1.15;text-align:center}
#profile .pf-grid .pf-items{padding:6px 6px 8px}
#ranking .rlist{max-height:calc(100svh - 500px)}

/* ---------- first screen: the tap on "Tap to start" is answered at once ---------- */
.intro .play.go{animation:stgo .34s cubic-bezier(.3,1.5,.5,1) both!important;pointer-events:none}
@keyframes stgo{0%{transform:scale(1)}35%{transform:scale(1.14)}100%{transform:scale(.2);opacity:0}}
.st-logo.go{animation:stlogogo .8s cubic-bezier(.3,1.5,.5,1) both!important}
@keyframes stlogogo{0%{transform:none}40%{transform:translateY(-22px) scale(1.14)}100%{transform:translateY(-8px) scale(1.04);opacity:0}}
.st-pop{position:absolute;width:44px;height:44px;pointer-events:none;z-index:3}
.st-pop svg{width:100%;height:100%;filter:drop-shadow(0 3px 3px rgba(20,0,60,.45))}
.st-panel{animation-duration:.45s!important}

/* ---------- the story pictures come alive ---------- */
.st-live{position:absolute;background-repeat:no-repeat;pointer-events:none;will-change:transform;
  -webkit-mask-image:radial-gradient(ellipse closest-side,#000 55%,rgba(0,0,0,.5) 78%,transparent 100%);mask-image:radial-gradient(ellipse closest-side,#000 55%,rgba(0,0,0,.5) 78%,transparent 100%)}
.lv-bob{transform-origin:50% 96%;animation:lvbob 1.1s ease-in-out infinite alternate}
@keyframes lvbob{from{transform:translateY(1px) rotate(-.9deg)}to{transform:translateY(-4px) rotate(1.1deg) scale(1.008)}}
.lv-shiver{animation:lvshiver .14s linear infinite alternate}
@keyframes lvshiver{from{transform:translate(-2px,0) rotate(-.7deg)}to{transform:translate(2px,-1px) rotate(.7deg)}}
.lv-scream{transform-origin:50% 62%;animation:lvscream .42s ease-in-out infinite alternate}
@keyframes lvscream{from{transform:scale(1) rotate(-.6deg)}to{transform:scale(1.03) translateY(-2px) rotate(.6deg)}}
.lv-swirl{transform-origin:50% 100%;animation:lvswirl .62s ease-in-out infinite alternate}
@keyframes lvswirl{from{transform:skewX(-3deg)}to{transform:skewX(3deg) scale(1.015)}}
.lv-flutter{transform-origin:86% 46%;animation:lvflutter .3s ease-in-out infinite alternate}
@keyframes lvflutter{from{transform:rotate(-2deg)}to{transform:rotate(2.5deg) translateX(-1px)}}
.lv-pump{transform-origin:50% 98%;animation:lvpump .78s cubic-bezier(.3,1.4,.5,1) infinite alternate}
@keyframes lvpump{from{transform:translateY(1px)}to{transform:translateY(-4px) scale(1.01)}}
.lv-flee{animation:lvflee 3s ease-in-out infinite alternate}
@keyframes lvflee{from{transform:translate(0,0) rotate(-2deg)}to{transform:translate(9px,-5px) rotate(3deg)}}
/* before the sneeze the storm picture only breathes in: the tornado and the roar start with the "ACHOO" */
.st-storm:not(.go) .st-live{animation-play-state:paused}
.st-cloud{position:absolute;left:-40%;width:70%;height:13%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,255,255,.55),rgba(255,255,255,0) 68%);pointer-events:none;z-index:1;animation:stcloud 26s linear infinite}
.st-cloud.c1{top:5%}
.st-cloud.c2{top:15%;width:55%;height:10%;animation-duration:38s;animation-delay:-17s;opacity:.8}
.st-dark .st-cloud,.st-storm .st-cloud{background:radial-gradient(ellipse at center,rgba(40,20,70,.6),rgba(40,20,70,0) 68%);animation-duration:14s}
.st-storm .st-cloud.c2,.st-dark .st-cloud.c2{animation-duration:20s}
@keyframes stcloud{from{transform:translateX(0)}to{transform:translateX(260%)}}
.st-float{position:absolute;bottom:-8%;width:var(--s);height:var(--s);pointer-events:none;z-index:1;opacity:0;animation:stfloat 8s linear infinite}
.st-float svg{width:100%;height:100%;filter:drop-shadow(0 2px 3px rgba(40,0,80,.4))}
@keyframes stfloat{0%{transform:translateY(0) rotate(0);opacity:0}12%{opacity:.95}80%{opacity:.9}100%{transform:translateY(-78vh) rotate(260deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.st-live,.st-cloud,.st-float{display:none}}

/* ---------- the story scenes as films ---------- */
.st-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s;pointer-events:none}
.st-vid.on{opacity:1}
.st-img.hasvid{animation:none!important}
.st-storm .st-img.hasvid,.st-dark .st-img.hasvid{animation:none!important}

/* ---------- the victory film ---------- */
#win .win-gumi .gbody.vid{width:150px;height:216px;margin-left:-75px;bottom:2px}
#win .win-gumi .gbody.vid .g-ground,#win .win-gumi .gbody.vid .g-air,#win .win-gumi .gbody.vid .gf{display:none}
#win .win-gumi .gbody .gvsrc{position:absolute;left:0;top:0;width:2px;height:2px;opacity:0;pointer-events:none}
#win .win-gumi .gbody .gv{position:absolute;left:0;bottom:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%;pointer-events:none}
/* ---------- age screen ---------- */
.ageyear{align-self:center;width:min(220px,80%);padding:10px 14px;border-radius:14px;border:3px solid #fff;background:linear-gradient(180deg,#fff,#e6f1ff);box-shadow:0 4px 0 #9cbfe0;font:900 20px/1.2 Nunito,system-ui,sans-serif;color:#143a6b;text-align:center}
/* Vinegar beside a boss level sits lower, so the next world's title never covers his head */
.node.bossn::before{top:-4px}
.node.bossn.beaten::before{top:2px}
/* in a boss level Vinegar's crown cleared the level title by a hair: a little lower and above it */
.bosshud>img{margin-top:-31px;z-index:2}

/* ---------- Gumi's Cake and Sugar Stars ---------- */
.med.fancy .disc img{width:46px;height:46px}
.med.fancy .disc img.off{filter:grayscale(1) opacity(.55)}
.cakecard #ciBody{display:flex;flex-direction:column;gap:8px;text-align:center}
.cakecard #ciBody p{margin:0}
.cakecard .ci-sub{font-weight:900;color:#7a2bd0}
.ci-row{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:16px;background:linear-gradient(90deg,#fff,#fff0f8);border:2px solid #ffd0ea;text-align:left}
.ci-row.on{border-color:#ff4f9a;box-shadow:0 0 0 3px rgba(255,79,154,.25);background:linear-gradient(90deg,#fff6fb,#ffe0f1)}
.ci-row img{width:54px;height:54px;object-fit:contain;flex:none}
.ci-row span{display:flex;flex-direction:column;flex:1;min-width:0}
.ci-row b{font:900 16px/1.1 var(--display);color:#c2185b}
.ci-row small{font-size:12.5px;color:#5a3a66}
.ci-row i{font-style:normal;font:900 14px var(--display);color:#fff;background:linear-gradient(90deg,#ff4f9a,#a35cff);padding:3px 8px;border-radius:10px;white-space:nowrap}
.ci-tip{font-weight:800;color:#b35d00}
.ci-star{display:flex;align-items:center;justify-content:center;gap:10px}
.ci-star img{width:84px;height:84px;object-fit:contain}
.ci-star b{font:900 30px var(--display);color:#e07b00}
.ci-bar{height:14px;border-radius:999px;background:#ffe9c7;overflow:hidden;border:2px solid #fff;box-shadow:0 0 0 2px #ffcf7a}
.ci-bar i{display:block;height:100%;background:linear-gradient(90deg,#ff9d1c,#ff5fa2,#a35cff)}
#winGain .wcake,#winGain .wstar,#winCoins .fwin{display:inline-flex;align-items:center;gap:4px;margin:4px 4px 0;padding:2px 9px;border-radius:999px;background:linear-gradient(90deg,#ff4f9a,#a35cff);color:#fff;font-weight:900}
#winGain .wstar{background:linear-gradient(90deg,#ff9d1c,#ff5fa2)}
#winCoins .fwin{background:linear-gradient(90deg,#ffb13b,#ff7a1c);font-size:12px}
#winGain .wcake img,#winGain .wstar img{width:20px;height:20px;object-fit:contain}
.lose-cake{color:#c2185b;font-weight:800}
#winGain .wcake.new{background:linear-gradient(90deg,#20c997,#ff4f9a,#a35cff);animation:wcakeIn .7s cubic-bezier(.34,1.56,.64,1) both .9s}
@keyframes wcakeIn{0%{transform:scale(0) rotate(-12deg);opacity:0}100%{transform:none;opacity:1}}
.med.cake-up .disc{animation:cakeGrow 1.5s cubic-bezier(.34,1.56,.64,1)}
@keyframes cakeGrow{0%{transform:scale(1)}20%{transform:scale(1.45) rotate(-8deg);box-shadow:0 0 0 2px #fff,0 0 26px 10px #ffe14d}45%{transform:scale(1.15) rotate(6deg)}70%{transform:scale(1.3);box-shadow:0 0 0 2px #fff,0 0 22px 8px #ff8fd0}100%{transform:scale(1)}}
.med.cake-down .disc{animation:cakeDrop .9s ease}
@keyframes cakeDrop{0%,100%{transform:none}20%{transform:translateX(-6px) rotate(-8deg)}40%{transform:translateX(6px) rotate(8deg)}60%{transform:translateX(-4px) scale(.9)}80%{transform:translateX(3px)}}
.cake-plus{position:absolute;left:50%;top:-6px;z-index:5;transform:translateX(-50%);font:900 20px var(--display);color:#fff;-webkit-text-stroke:3px #c2185b;paint-order:stroke fill;animation:cakePlus 1.6s ease-out forwards;pointer-events:none}
@keyframes cakePlus{0%{opacity:0;transform:translate(-50%,10px) scale(.5)}20%{opacity:1;transform:translate(-50%,-14px) scale(1.2)}80%{opacity:1;transform:translate(-50%,-30px) scale(1)}100%{opacity:0;transform:translate(-50%,-44px)}}
.lwait{opacity:0}
#leagueMsg,#leagueZone{transition:opacity .35s ease}
.cake-stage{position:fixed;inset:0;z-index:9000;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;opacity:0;background:radial-gradient(circle at 50% 46%,rgba(70,20,110,.55),rgba(20,4,40,.82) 70%)}
.cake-glow{position:absolute;left:50%;top:50%;width:290px;height:290px;margin:-165px 0 0 -145px;border-radius:50%;background:radial-gradient(circle,rgba(255,214,120,.55),rgba(255,120,200,.25) 45%,rgba(255,255,255,0) 70%)}
.cake-box{position:relative;width:150px;height:227px;filter:drop-shadow(0 10px 12px rgba(60,0,60,.4))}
.cake-box img{position:absolute;left:0;bottom:0;width:100%;height:auto;transform-origin:50% 100%}
.cake-cap{position:relative;font:900 23px var(--display);color:#fff;-webkit-text-stroke:5px #c2185b;paint-order:stroke fill;letter-spacing:.5px}
.cake-spark{position:fixed;z-index:9001;width:9px;height:9px;margin:-4px 0 0 -4px;border-radius:50%;pointer-events:none}
/* ---------- daily bonus: big, colourful prize faces ---------- */
.bcard .back{border:3px solid #fff!important;box-shadow:0 4px 0 rgba(0,0,0,.18),inset 0 3px 0 rgba(255,255,255,.55)!important;overflow:hidden}
.bcard .back.k-coins{background:radial-gradient(circle at 50% 30%,#fff6c4,#ffd23a 55%,#f39a12)!important}
.bcard .back.k-hints{background:radial-gradient(circle at 50% 30%,#fff9d6,#ffe36a 55%,#ffb21f)!important}
.bcard .back.k-wands{background:radial-gradient(circle at 50% 30%,#f3e2ff,#c48bff 55%,#7d3ee0)!important}
.bcard .back.k-shield{background:radial-gradient(circle at 50% 30%,#e2f4ff,#7cc8ff 55%,#2f84e0)!important}
.bcard .back.k-sweeper{background:radial-gradient(circle at 50% 30%,#ffe6f3,#ff9fd0 55%,#e8509b)!important}
.bcard .back.k-lens{background:radial-gradient(circle at 50% 30%,#dcfff6,#6fe6c8 55%,#18a98c)!important}
.bcard .back.k-double{background:radial-gradient(circle at 50% 30%,#e9ffd9,#95e86a 55%,#3fae2a)!important}
.bcard .back.k-inf{background:radial-gradient(circle at 50% 30%,#ffe3e6,#ff8a99 55%,#e2344f)!important}
.bcard .back .bp{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}
.bcard .back .bp img{width:74%;height:74%;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(0,0,0,.3))}
.bcard .back .bp b{position:absolute;right:6%;bottom:4%;font:900 22px/1 var(--display);color:#fff;-webkit-text-stroke:4px #6a2a00;paint-order:stroke fill}
.bcard .back.k-coins .bp b{left:0;right:0;bottom:3%;text-align:center;font-size:26px}
.bcard.mine .back{box-shadow:0 0 0 3px #fff,0 0 22px 6px #ffe14d!important}
.bcard.dim{opacity:.55}
/* ---------- the red "something waits here" dot: glossy red with a little yellow shine ---------- */
.evcard.dot .evdot,.med.dot::after,.nav button.dot::after,.col-tabs button.dot::after{width:15px!important;height:15px!important;border:2px solid #fff!important;
  background:radial-gradient(circle at 34% 30%,#fffbd0 0 14%,#ffd64a 22%,#ff4a2a 42%,#e30613 68%,#8e0008 100%)!important;
  box-shadow:0 0 0 1px rgba(120,0,0,.5),0 0 8px 2px rgba(255,60,30,.75),0 2px 3px rgba(0,0,0,.45)!important}
.bcard .back.k-life{background:radial-gradient(circle at 50% 30%,#ffe3e6,#ff8a99 55%,#e2344f)!important}
/* Gumi's Cake button: the full three-layer cake is always there; the layers not won yet are grey, the won ones in colour */
#medCake .cakeico{position:relative;width:36px;height:48px;margin-top:-5px;display:block}
#medCake .cakeico img{position:absolute;left:0;bottom:0;width:100%!important;height:auto!important;object-fit:contain}
#medCake .cakeico .cghost{filter:saturate(.55) brightness(1.1) opacity(.42)}
#medCake .cakeico .cfill{filter:saturate(1.15) drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 1px 2px rgba(80,0,60,.45))}
#medCake.locked .cakeico .cghost{filter:grayscale(1) brightness(.9) opacity(.6)}
#medCake .disc{position:relative}
/* the cake button has its own candy-pink inside (the ring stays like every other button) */
#medCake .disc{background:#7d1862!important}
.cakecard .ci-from{align-self:center;padding:3px 14px;border-radius:999px;background:linear-gradient(90deg,#ff4f9a,#a35cff);color:#fff;font-weight:900}
#medCake .tag{max-width:none!important;overflow:visible!important;padding-left:7px!important;padding-right:7px!important;text-align:center}
/* every Continue button is green */
#leagueGo,#lgrGo:not(.claim),#ageGo{background:url(art/btn_green.webp) center/100% 100% no-repeat!important;filter:drop-shadow(0 5px 3px rgba(0,40,0,.5))!important}
/* a little shine on the cake button: a soft gloss and a twinkle */
#medCake .cakeico::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.55) 45%,rgba(255,255,255,0) 60%);mix-blend-mode:soft-light;-webkit-mask:url(art/cake_stage_3.webp?2) center bottom/100% auto no-repeat;mask:url(art/cake_stage_3.webp?2) center bottom/100% auto no-repeat}
#medCake .disc::before{display:none;content:"º6";position:absolute;right:7px;top:5px;z-index:3;font-size:11px;line-height:1;color:#fff;text-shadow:0 0 4px #fff,0 0 8px #ffd84a;animation:cakeTwinkle 2.4s ease-in-out infinite;pointer-events:none}
#medCake.locked .disc::before{display:none}
@keyframes cakeTwinkle{0%,100%{opacity:.15;transform:scale(.6)}50%{opacity:1;transform:scale(1.15)}}
@media (prefers-reduced-motion:reduce){#medCake .disc::before{animation:none;opacity:.8}}
/* Vinegar fuming after a lost fight: a red-hot face, a shake, and steam puffs rising from his head */
.bosshud.fume>img{animation:fumeShake .16s linear infinite;filter:drop-shadow(0 0 7px rgba(255,50,0,.8)) saturate(1.5) sepia(.25) hue-rotate(-20deg)}
@keyframes fumeShake{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-2px) rotate(-2deg)}75%{transform:translateX(2px) rotate(2deg)}}
.fume-puff{position:fixed;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;pointer-events:none;z-index:46;background:radial-gradient(circle at 38% 36%,#ffffff,#d9d2e6 40%,rgba(130,118,155,.85) 70%,rgba(110,98,140,0) 100%);animation:fumePuff 1s ease-out forwards}
@keyframes fumePuff{0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),-42px) scale(2.4);filter:blur(3px)}}
@media (prefers-reduced-motion:reduce){.bosshud.fume>img{animation:none}}
/* on regular levels the candy bar above the board sits about 2 mm lower */
#game:not(.hardtier) #found{position:relative;top:8px}
/* buy one more try with coins: green like every "keep going" button; greyed when the coins are not enough */
#reviveCoins{background:url(art/btn_green.webp) center/100% 100% no-repeat!important;filter:drop-shadow(0 5px 3px rgba(0,40,0,.5))!important;display:flex;align-items:center;justify-content:center;gap:6px}
#reviveCoins[hidden]{display:none!important}
#reviveCoins svg,#reviveCoins img{width:22px;height:22px}
#reviveCoins.short{filter:grayscale(.7) brightness(.9)!important;opacity:.8}
/* the cake button has no glass shine over the top, so the top layer and the cherry stay clear */
#medCake .disc::after{display:none}
/* every round button on the map gets the beige frame (the ready ones keep their yellow glow on top of it) */
.sides .med .disc{box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 0 0 3px #f3dcae,0 0 9px 3px rgba(255,226,170,.75)!important}
.sides .med.ready .disc{box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 0 0 3px #f3dcae,0 0 16px 5px #ffe14d!important}
/* the cake's surprise boxes on the board */
.cell .cbomb{position:absolute;left:6%;top:4%;width:88%;height:88%;object-fit:contain;pointer-events:none;transform-origin:50% 90%;filter:saturate(1.1) drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255,236,140,.95)) drop-shadow(0 2px 2px rgba(60,0,40,.5));animation:bombWobble 2.2s ease-in-out infinite}
@keyframes bombWobble{0%,62%,100%{transform:translateY(0) scale(1) rotate(0)}68%{transform:translateY(0) scale(1.1,.9)}74%{transform:translateY(-14%) scale(.95,1.06) rotate(-5deg)}80%{transform:translateY(0) scale(1.06,.95) rotate(4deg)}86%{transform:translateY(-5%) rotate(-2deg)}92%{transform:translateY(0) rotate(0)}}
.cell.bombin .cbomb{animation:bombIn .46s linear both,bombWobble 2.2s ease-in-out var(--wb,1.4s) infinite}
/* v512 (his note: no flicker, one-two-three, right here): hidden until its turn, then it pops up on its own square - grows from nothing,
   overshoots once and settles. It keeps one steady layer (will-change) so a phone never swaps its layer mid-move (that was the flicker). */
.cell .cbomb{will-change:transform;backface-visibility:hidden}
.cell.bombwait .cbomb{opacity:0;animation:none}
@keyframes bombIn{0%{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.2,.7,.4,1)}
12%{opacity:1}
55%{transform:scale(1.24,1.18);animation-timing-function:ease-in-out}
78%{transform:scale(.93,.97)}
100%{transform:scale(1);opacity:1}}
.bomb-blast{position:absolute;left:50%;top:50%;width:180%;height:180%;margin:-90% 0 0 -90%;border-radius:50%;pointer-events:none;z-index:6;background:radial-gradient(circle,#fff 0,#ffe14d 22%,#ff8a3d 45%,rgba(255,80,160,.5) 62%,rgba(255,80,160,0) 72%);animation:blast .65s ease-out forwards}
@keyframes blast{0%{transform:scale(.2);opacity:1}100%{transform:scale(1.15);opacity:0}}
@media (prefers-reduced-motion:reduce){.cell .cbomb{animation:none}}
/* the gummy car / candy rocket crossing the board */
.vehicle{position:fixed;left:0;top:0;z-index:46;pointer-events:none;height:auto;filter:drop-shadow(0 3px 3px rgba(60,0,40,.45))}
/* nine helpers in the toolbar: the buttons share the room */
#game .tools{gap:3px}
#game .tools .btn{flex:1 1 0;min-width:0}
#maybeBtn[hidden],#clearBtn[hidden]{display:none!important}
#qaQuit{background:url(art/btn_orange.webp) center/100% 100% no-repeat!important}
#qaReplay{background:url(art/btn_green.webp) center/100% 100% no-repeat!important}
.vehicle{object-fit:contain;z-index:47!important;filter:drop-shadow(0 4px 4px rgba(60,0,40,.5)) drop-shadow(0 0 6px rgba(255,255,255,.9))!important}
.v-spark{position:fixed;z-index:46;width:9px;height:9px;margin:-4px 0 0 -4px;border-radius:50%;pointer-events:none;box-shadow:0 0 6px currentColor;animation:vspark .65s ease-out forwards}
@keyframes vspark{0%{transform:scale(1);opacity:1}100%{transform:scale(.2) translateY(6px);opacity:0}}
.board .cell.lane{box-shadow:0 0 0 3px #fff,0 0 12px 3px rgba(255,225,77,.95)!important;z-index:2}
/* the 8x8 board is a little bigger: about 1 mm more on every side */
.board.n8{width:min(calc(100% + 8px),calc(100dvh - 310px),448px);flex-shrink:0}
/* hard levels (black board): a placed candy keeps a thin white frame, so the colour of its square still shows */
.board.hard .cell.has:not(.lit),.board.veryhard .cell.has:not(.lit),.board.extreme .cell.has:not(.lit){box-shadow:inset 0 0 0 1.5px #fff,0 0 4px rgba(255,255,255,.55)!important}
.board .cell{filter:saturate(1.1)}
/* the web taste's "get the app" card */
.wgcard{text-align:center}
.wgcard .wg-gumi{width:130px;height:auto;align-self:center;margin:-4px auto 2px;display:block;filter:drop-shadow(0 6px 8px rgba(60,0,60,.3))}
.wgcard .wg-big{font:900 20px/1.2 var(--display);color:#c2185b;margin:4px 0}
.wgcard .wg-play{display:flex;align-items:center;justify-content:center;text-decoration:none;background:url(art/btn_green.webp) center/100% 100% no-repeat!important;color:#fff}
.cake-flash{position:absolute;left:-30%;top:-15%;width:160%;height:130%;border-radius:50%;pointer-events:none;opacity:0;z-index:3;background:radial-gradient(circle,#fff 0,rgba(255,255,255,.95) 28%,rgba(255,240,170,.6) 48%,rgba(255,200,240,0) 70%)}
/* the Continue buttons: the word as big as on Next level (it looked small on its big green button) */
#leagueGo,#lgrGo,#ageGo{font-size:24px!important}

/* privacy and terms links in Settings, the terms line under a nickname field, and the under-13 note in the ranking */
.card .legal{margin:10px 0 2px;text-align:center;font-size:13px}
.card .legal .link{font-size:13px;padding:2px 4px}
.nameterms{margin:-2px 0 8px;font-size:12px;opacity:.85}
.nameterms a{color:inherit;text-decoration:underline}
.rkid{font-weight:800;color:#8a5a30}

/* v355: Vinegar's sneeze shakes the whole picture (cloud, candy-cane pole, Gumi) the moment it lands, strong at first, then settling.
   Slightly enlarged while it shakes so the picture's edges never show. */
.st-panel.st-storm.go .st-img.hasvid{animation:snzQuake 1.5s cubic-bezier(.2,.7,.3,1) both!important}
@keyframes snzQuake{
  0%{transform:scale(1.08) translate(0,0) rotate(0)}
  6%{transform:scale(1.08) translate(-14px,9px) rotate(-1.6deg)}
  12%{transform:scale(1.08) translate(13px,-8px) rotate(1.4deg)}
  18%{transform:scale(1.08) translate(-12px,-7px) rotate(-1.2deg)}
  25%{transform:scale(1.08) translate(11px,8px) rotate(1deg)}
  33%{transform:scale(1.07) translate(-8px,5px) rotate(-.8deg)}
  42%{transform:scale(1.06) translate(7px,-5px) rotate(.6deg)}
  52%{transform:scale(1.05) translate(-5px,3px) rotate(-.4deg)}
  63%{transform:scale(1.04) translate(4px,-2px) rotate(.3deg)}
  76%{transform:scale(1.02) translate(-2px,1px) rotate(-.15deg)}
  100%{transform:scale(1) translate(0,0) rotate(0)}
}
@media (prefers-reduced-motion:reduce){.st-panel.st-storm.go .st-img.hasvid{animation:none!important}}

/* ===== tutorial v358: a bigger window and bigger boards; the 1-2 counters and the right / wrong badges sit above the boards, never on them ===== */
#tutorial .card{--cw:min(410px,calc(100vw - 12px))}
#tutorial .tstage{min-height:230px}
#tutorial .tsolo{width:min(232px,62vw);margin-top:26px}
#tutorial .tpair{gap:12px}
#tutorial .tside{display:grid;grid-template-rows:auto auto;justify-items:center;align-content:start;gap:6px}
#tutorial .tside .tb{width:100%;min-height:0;height:auto}
#tutorial .tmark{position:relative;right:auto;top:auto;flex:none}
.tfx{position:absolute;z-index:4;width:58px;height:58px;left:50%;top:50%;transform:translate(-50%,-50%) scale(.3);opacity:0;pointer-events:none;filter:drop-shadow(0 5px 4px rgba(40,0,80,.5));transition:none}
.tfx.on{animation:tfxin .35s cubic-bezier(.23,1,.32,1) both}
.tfx.big{width:84px;height:84px}
.tfx.spin.on{animation:tfxin .35s cubic-bezier(.23,1,.32,1) both,tfxwave .8s .35s ease-in-out 2}
.tfx.block{animation:tfxblock .5s ease-out both}
@keyframes tfxin{from{opacity:0;transform:translate(-50%,-50%) scale(.3)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes tfxwave{50%{transform:translate(-50%,-50%) rotate(-18deg) scale(1.08)}}
@keyframes tfxblock{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}40%{opacity:1;transform:translate(-50%,-50%) scale(1.3);filter:drop-shadow(0 0 14px #9ff) drop-shadow(0 5px 4px rgba(40,0,80,.5))}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.tc.tglow{animation:thi .7s ease-in-out infinite;box-shadow:0 0 0 3px #fff36b,0 0 12px 4px #ffe14d!important;z-index:2}
.tc.tgone u{transition:opacity .3s,transform .3s;opacity:0!important;transform:scale(.3)}
.tpts{position:absolute;left:50%;top:18%;z-index:5;transform:translateX(-50%);white-space:nowrap;padding:4px 12px;border-radius:99px;background:linear-gradient(180deg,#ffe95c,#ffb21f);border:2.5px solid #fff;color:#5a2a00;font:900 16px/1 Nunito,system-ui,sans-serif;box-shadow:0 3px 0 rgba(120,60,0,.45);animation:tptsup 1.6s ease-out both;pointer-events:none}
@keyframes tptsup{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}20%{opacity:1;transform:translate(-50%,0) scale(1.1)}35%{transform:translate(-50%,0) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-16px)}}
.thlp{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.thlp .tsolo{margin-top:0!important;width:min(200px,54vw)!important}
.thname{font:900 18px/1.1 Nunito,system-ui,sans-serif;color:#7a2fd0;min-height:20px}
.ticons{display:grid;grid-template-columns:repeat(5,52px);justify-content:center;gap:6px 10px;width:100%;margin-top:4px}
.ticon{all:unset;cursor:pointer;display:grid;place-items:center;width:52px;height:52px;padding:2px;box-sizing:border-box;border-radius:12px;transition:transform .2s,background .2s}
.ticon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(40,0,80,.4))}
.ticon.on{background:rgba(255,236,110,.75);box-shadow:0 0 0 2px #ffb21f;transform:scale(1.12)}
@media (prefers-reduced-motion:reduce){.tfx.on,.tfx.spin.on,.tfx.block,.tc.tglow,.tpts{animation:none!important;opacity:1}}

/* an armed magnifier / car / rocket: its button glows and bobs until a square is tapped or the button is tapped again to cancel */
.tools .btn.armed{outline:4px solid #ffe14d;outline-offset:-3px;animation:toolarmed .9s ease-in-out infinite}
@keyframes toolarmed{50%{transform:translateY(-3px) scale(1.06)}}
@media (prefers-reduced-motion:reduce){.tools .btn.armed{animation:none}}

/* stuck nudge: the hint and wand buttons hop and glow for a few seconds */
.tools .btn.nudge{animation:toolnudge .9s ease-in-out 6 both;outline:4px solid #ffe14d;outline-offset:-3px}
@keyframes toolnudge{0%,100%{transform:none}25%{transform:translateY(-7px) scale(1.12) rotate(-5deg)}50%{transform:translateY(0) scale(1)}70%{transform:translateY(-3px) rotate(4deg)}}
@media (prefers-reduced-motion:reduce){.tools .btn.nudge{animation:none}}

/* tutorial v359: the window nearly fills the phone's width, its side edges are thinner and the right / wrong boards take all the room inside */
#tutorial .card{--cw:min(470px,calc(100vw - 24px));border-left-width:calc(var(--k) * 44);border-right-width:calc(var(--k) * 44);padding-left:0;padding-right:0}
#tutorial .tstage{width:100%}
#tutorial .tpair{gap:8px;width:calc(100% + 6px);margin:0 -3px}
#tutorial .tsolo{width:min(270px,70vw)}
#tutorial .tb{gap:3px;padding:5px}

/* v361: while a window is open, the map's looping animations behind it rest (they are dimmed anyway), so opening and using windows has the device to itself */
body.ov-open #home *{animation-play-state:paused!important}
/* v361: the Events screen and every event window opens with a short, quick pop (was a 0.4 s spin from nothing) */
/* v362: no open animation at all on any window: it simply appears (the 0.4 s spin-pop from .card made the frame jump and tilt) */
.overlay .card{animation:none}
@keyframes evcardin{from{opacity:0;transform:scale(.86) translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#events .card,#pass .card,#chest .card,#wheel .card,#storm .card,#quick .card,#memory .card,#toss .card,#climb .card{animation:none}}

/* ===== event win screen (v362) ===== */
#evwin{z-index:30}
#evwin .card{gap:6px}
.ew-top{position:relative;height:126px;display:grid;place-items:center;margin-top:2px}
.ew-gumi{height:124px;width:auto;filter:drop-shadow(0 6px 6px rgba(60,0,90,.4));animation:ewhop 1.1s cubic-bezier(.3,0,.4,1) .25s infinite;transform-origin:50% 100%}
#evwin:not(.won) .ew-gumi{animation:none}
@keyframes ewhop{0%,100%{transform:translateY(0) scale(1,1)}12%{transform:translateY(0) scale(1.08,.9)}40%{transform:translateY(-16px) scale(.96,1.05)}70%{transform:translateY(0) scale(1.05,.94)}84%{transform:scale(1,1)}}
.ew-best{position:absolute;right:4%;top:6px;transform:rotate(12deg);padding:5px 10px;border-radius:10px;background:linear-gradient(#ff6fb4,#e0247a);color:#fff;border:2.5px solid #fff;font:900 15px/1 Nunito,system-ui,sans-serif;box-shadow:0 4px 0 rgba(120,0,60,.45);animation:ewstamp .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes ewstamp{from{opacity:0;transform:rotate(12deg) scale(2.4)}to{opacity:1;transform:rotate(12deg) scale(1)}}
.ew-stars{display:flex;justify-content:center;gap:10px;height:52px;align-items:flex-end}
.ew-stars i{width:44px;height:44px;background:url(art/ic_sugarstar.webp) center/contain no-repeat;filter:grayscale(1) brightness(.75);opacity:.35;transform:scale(.6)}
.ew-stars i:nth-child(2){width:52px;height:52px}
.ew-stars i.on{filter:drop-shadow(0 0 8px rgba(255,220,80,.95));opacity:1;animation:ewstar .45s cubic-bezier(.2,1.6,.4,1) both}
.ew-stars i.off{opacity:.45;transform:scale(.85);transition:opacity .3s,transform .3s}
@keyframes ewstar{from{opacity:0;transform:scale(2.2) rotate(-30deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.ew-res{margin:2px 0 0;font:900 17px/1.2 Nunito,system-ui,sans-serif;color:#6b3d1e}
.ew-prize{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;min-height:58px;align-items:center}
.ew-prize .pz{display:flex;flex-direction:column;align-items:center;gap:0}
.ew-prize .pz img{width:46px;height:46px;filter:drop-shadow(0 3px 2px rgba(60,0,90,.35))}
.ew-prize .pz b{font:900 18px/1 Nunito,system-ui,sans-serif;color:#6b3d1e;font-variant-numeric:tabular-nums}
.ew-prize small{font:800 14px Nunito,system-ui,sans-serif;color:#8a5a30}
#evwin .winparty{z-index:31}
@media (prefers-reduced-motion:reduce){.ew-gumi,.ew-best,.ew-stars i.on{animation:none}}

/* the surprise box popping open */
.gift-glow{position:fixed;border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);background:radial-gradient(circle,#fff 0,rgba(255,240,150,.95) 22%,rgba(255,140,210,.55) 48%,rgba(255,140,210,0) 70%);animation:giftGlow .6s ease-out forwards;z-index:60}
@keyframes giftGlow{0%{transform:translate(-50%,-50%) scale(.2);opacity:1}100%{transform:translate(-50%,-50%) scale(1.2);opacity:0}}
.gift-fly{position:fixed;pointer-events:none;z-index:62;filter:drop-shadow(0 0 8px rgba(255,240,160,.9))}
.gift-bit{position:fixed;width:13px;height:7px;border-radius:2px;pointer-events:none;z-index:61;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.gift-curl{position:fixed;width:18px;height:18px;border:4px solid;border-radius:50%;border-right-color:transparent!important;border-bottom-color:transparent!important;pointer-events:none;z-index:61}

/* ===== keep playing (2026-11-21) ===== */
/* free helpers from the win streak */
.tools .btn.free{box-shadow:0 0 0 3px #ffb21f,0 0 14px rgba(255,150,30,.9)}
.tools .btn.free::after{content:'FREE';position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);font:900 9px/1 Nunito,sans-serif;color:#fff;background:linear-gradient(#ff9a1f,#e0480c);padding:2px 5px;border-radius:6px;box-shadow:0 1px 0 #8a2600;letter-spacing:.5px;pointer-events:none}
/* frozen squares */
.cell .cice{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);object-fit:cover;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,40,90,.35))}
.cell.icehit .cice{animation:iceHit .32s ease-out}
@keyframes iceHit{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px) rotate(-2deg)}60%{transform:translateX(3px) rotate(2deg)}}
.ice-shard{position:fixed;width:8px;height:8px;background:linear-gradient(135deg,#fff,#9fd8ff);clip-path:polygon(50% 0,100% 60%,40% 100%,0 40%);pointer-events:none;z-index:61}
.ice-intro{display:flex;justify-content:center;margin:4px 0 8px}.ice-intro img{width:84px;height:84px;filter:drop-shadow(0 4px 6px rgba(0,40,90,.35))}
/* win card: one small line of event progress */
.wextra{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:4px 0 2px}
.wextra span{display:inline-flex;align-items:center;gap:4px;padding:3px 9px 3px 4px;border-radius:999px;background:rgba(255,255,255,.75);box-shadow:inset 0 -2px 0 rgba(0,0,0,.08);font:900 13px/1 Nunito,sans-serif;color:#5a2a80}
.wextra img{width:22px;height:22px;object-fit:contain}
.lose-hot{color:#d2400f}
/* shared look of the event windows */
.evx .evx-hero{position:relative;display:flex;justify-content:center;margin:-4px 0 2px}
.evx .evx-hero img{height:104px;filter:drop-shadow(0 6px 8px rgba(60,0,80,.35))}
.evx .evx-hero.small img,#notifAsk .evx-hero img{height:78px}
#notifAsk .evx-hero{display:flex;justify-content:center}
.evx-pot{position:absolute;right:8px;bottom:4px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(#fff6c8,#ffd75a);border-radius:14px;padding:4px 8px;box-shadow:0 3px 0 #c98a0a,0 6px 10px rgba(0,0,0,.2);transform:rotate(6deg)}
.evx-pot img{height:22px!important;filter:none!important}.evx-pot b{font:900 18px/1 Nunito,sans-serif;color:#8a4a00}.evx-pot small{font:800 9px/1 Nunito,sans-serif;color:#8a4a00}
/* Sugar Tower */
.tw-floors{display:flex;flex-direction:column;align-items:center;gap:5px;margin:6px 0 8px}
.tw-fl{--h:300deg;position:relative;display:flex;align-items:center;gap:8px;width:min(250px,72vw);height:34px;padding:0 10px;border-radius:12px;background:linear-gradient(hsl(var(--h) 85% 82%),hsl(var(--h) 70% 66%));box-shadow:inset 0 2px 0 rgba(255,255,255,.7),inset 0 -3px 0 rgba(0,0,0,.12),0 3px 0 hsl(var(--h) 50% 45%);filter:saturate(.35) brightness(.95);transition:filter .3s}
.tw-fl:nth-child(odd){transform:translateX(-6px)}.tw-fl:nth-child(even){transform:translateX(6px)}
.tw-fl b{font:900 16px/1 Nunito,sans-serif;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.3);width:18px}
.tw-fl span{flex:1;font:800 12px/1 Nunito,sans-serif;color:#4a1a60}
.tw-fl>img:not(.tw-me){height:22px}.tw-fl em{font:900 13px/1 Nunito,sans-serif;color:#8a4a00;font-style:normal}
.tw-fl.got{filter:none}.tw-fl.got b::after{content:' ✓';font-size:11px}
.tw-fl.next{filter:none;animation:twNext 1.2s ease-in-out infinite}
@keyframes twNext{0%,100%{box-shadow:inset 0 2px 0 rgba(255,255,255,.7),0 3px 0 hsl(var(--h) 50% 45%),0 0 0 0 rgba(255,220,80,.0)}50%{box-shadow:inset 0 2px 0 rgba(255,255,255,.7),0 3px 0 hsl(var(--h) 50% 45%),0 0 0 4px rgba(255,220,80,.9)}}
.tw-fl.top{background:linear-gradient(#fff2a8,#ffc928);box-shadow:inset 0 2px 0 #fff,0 3px 0 #b07800}
.tw-me{position:absolute;right:-8px;bottom:6px;height:44px;filter:drop-shadow(0 3px 3px rgba(0,0,0,.3))}
.tw-ground{position:relative;width:min(250px,72vw);height:30px}.tw-ground .tw-me{right:auto;left:50%;transform:translateX(-50%);bottom:-6px}
/* Candy Race */
.rc-lanes{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.rc-lane{display:flex;align-items:center;gap:7px;padding:4px 8px;border-radius:14px;background:rgba(255,255,255,.6);box-shadow:inset 0 -2px 0 rgba(0,0,0,.06)}
.rc-lane.me{background:linear-gradient(#fff6c8,#ffe27a);box-shadow:0 0 0 2px #ffb21f}
.rc-pos{font:900 15px/1 Nunito,sans-serif;color:#7a3aa0;width:14px}
.rc-lane .lav{width:34px;height:34px;flex:none}
.rc-track{position:relative;flex:1;height:14px;border-radius:9px;background:repeating-linear-gradient(90deg,#f3d6ff 0 10px,#fff 10px 20px);box-shadow:inset 0 2px 3px rgba(0,0,0,.15)}
.rc-track i{position:absolute;left:0;top:0;bottom:0;border-radius:9px;background:linear-gradient(#7fe0ff,#2a8cff);box-shadow:inset 0 2px 0 rgba(255,255,255,.6);transition:width .6s}
.rc-lane.me .rc-track i{background:linear-gradient(#ffd25a,#ff7a1f)}
.rc-track img{position:absolute;right:-6px;top:50%;height:22px;transform:translateY(-50%);opacity:.0}
.rc-lane.fin .rc-track img{opacity:1}
.rc-lane>b{font:900 13px/1 Nunito,sans-serif;color:#4a1a60;min-width:30px;text-align:right}
.rc-prizes{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:4px 0 8px}
.rc-pz{display:flex;align-items:center;gap:3px;padding:3px 7px;border-radius:12px;background:rgba(255,255,255,.55)}.rc-pz.on{box-shadow:0 0 0 2px #ffb21f;background:#fff4c0}
.rc-pz .pz img{width:20px;height:20px}.rc-pz .pz b{font-size:12px}
/* Candy Jar */
.jar-art{height:150px!important}
.jar-meter{display:flex;align-items:center;gap:8px;margin:4px 6px}
.jar-meter i{position:relative;flex:1;height:18px;border-radius:10px;background:#f6e3ff;box-shadow:inset 0 2px 4px rgba(0,0,0,.18);overflow:hidden}
.jar-meter u{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#ffe46a,#f2a400);box-shadow:inset 0 2px 0 rgba(255,255,255,.6);border-radius:10px}
.jar-meter s{position:absolute;top:0;bottom:0;width:2px;background:#a0408a;opacity:.6}
.jar-meter b{font:900 14px/1 Nunito,sans-serif;color:#7a3a00;min-width:64px;text-align:right}
.jar-note{opacity:.75}
/* Sticker Album */
.album-card .alb-grid{max-height:min(52vh,430px);overflow-y:auto;padding:4px 2px 8px;margin:0 -2px}
.alb-prog{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.alb-prog i{position:relative;flex:1;min-width:120px;height:14px;border-radius:9px;background:#efe0ff;box-shadow:inset 0 2px 3px rgba(0,0,0,.15);overflow:hidden}
.alb-prog u{position:absolute;inset:0 auto 0 0;background:linear-gradient(#d39bff,#8a3df0);border-radius:9px}
.alb-prog b{font:900 15px/1 Nunito,sans-serif;color:#5a2090}.alb-prog small{width:100%;text-align:center;font:800 11px/1.2 Nunito,sans-serif;color:#8a5aa8}
.alb-btns{display:flex;gap:8px;margin:8px 0 2px}
.alb-pack,.alb-trade{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:16px;padding:6px 8px;font:900 14px/1.1 Nunito,sans-serif;color:#fff;cursor:pointer}
.alb-pack{position:relative;background:linear-gradient(#c98bff,#7a2fe0);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 4px 0 #4a1590}
.alb-pack img{height:38px;margin:-6px 0}.alb-pack i{position:absolute;top:-6px;right:-4px;min-width:22px;height:22px;border-radius:11px;background:#ff3d6e;font:900 13px/22px Nunito,sans-serif;font-style:normal;box-shadow:0 2px 0 #a0103a}
.alb-pack.ready{animation:albGlow 1.3s ease-in-out infinite}@keyframes albGlow{50%{filter:brightness(1.15);transform:scale(1.03)}}
.alb-trade{flex-direction:column;background:linear-gradient(#ffe07a,#f0a000);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 4px 0 #a06000;color:#6a3500}
.alb-trade small{font:800 10px/1 Nunito,sans-serif}
.alb-pack:disabled,.alb-trade:disabled{filter:grayscale(.7) opacity(.65);animation:none}
.alb-meter{margin:6px 0}
.alb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:4px 0 8px}
.alb-set{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;border-radius:14px;padding:6px 4px;background:linear-gradient(#fff,#f3e6ff);box-shadow:0 3px 0 #c9a6ea;cursor:pointer}
.alb-set.done{background:linear-gradient(#fff9d8,#ffe38a);box-shadow:0 3px 0 #d4a20a}
.alb-th{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:62px;height:62px}
.alb-th img{width:100%;height:100%;object-fit:contain}.alb-th img.ph,.stk9 img.ph,.pk-card img.ph{object-fit:cover;border-radius:6px}
.alb-th img.miss,.stk9.miss img{filter:brightness(0) opacity(.18)}
.alb-set b{font:900 11px/1.1 Nunito,sans-serif;color:#4a1a70;text-align:center}.alb-set em{font:800 10px/1 Nunito,sans-serif;color:#9a6ab8;font-style:normal}
.alb-final{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;font:900 12px/1.2 Nunito,sans-serif;color:#5a2090;padding:6px;border-radius:12px;background:rgba(255,255,255,.55)}
.alb-final .pz img{width:20px;height:20px}
.alb-big{grid-column:1/-1}.alb-big h3{margin:2px 0 6px;font:900 17px/1 Nunito,sans-serif;color:#4a1a70;text-align:center}
.alb-back{display:block;margin:0 auto 2px}
.alb-9{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stk9{position:relative;aspect-ratio:1;border-radius:14px;background:#fff;box-shadow:0 3px 0 #d0b0f0,inset 0 0 0 3px #f0e2ff;display:flex;align-items:center;justify-content:center;padding:6px}
.stk9.s2{box-shadow:0 3px 0 #9fc8ff,inset 0 0 0 3px #cfe4ff}.stk9.s3{box-shadow:0 3px 0 #e0a800,inset 0 0 0 3px #ffd84a;background:linear-gradient(#fffbe6,#fff0a8)}
.stk9 img{width:100%;height:100%;object-fit:contain}
.stk9 i{position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);font:900 11px/1 Nunito,sans-serif;font-style:normal;color:#ffb800;text-shadow:0 1px 0 #7a4a00}
.stk9 u{position:absolute;top:2px;right:4px;font:900 11px/1 Nunito,sans-serif;color:#7a3aa0;text-decoration:none}
.alb-sp{display:flex;justify-content:center;gap:4px;margin:10px 0 0}
/* opening a pack */
.pack-card{min-height:300px}
.pk-stage{position:relative;display:flex;justify-content:center;align-items:center;height:200px}
.pk-pack{height:180px;filter:drop-shadow(0 8px 10px rgba(80,0,120,.4))}
.pk-glow{position:absolute;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(255,240,150,.9),rgba(255,140,220,.3) 50%,transparent 70%);animation:pkGlow 1s ease-in-out infinite}
@keyframes pkGlow{50%{transform:scale(1.15)}}
.pk-cards{display:flex;justify-content:center;gap:8px;perspective:600px;min-height:0}
.pk-card{display:flex;flex-direction:column;align-items:center;gap:6px;width:31%}
.pk-in{position:relative;display:block;width:100%;aspect-ratio:.78;transform-style:preserve-3d;transform:rotateY(180deg) scale(.6);opacity:0;transition:transform .55s cubic-bezier(.34,1.4,.64,1),opacity .2s}
.pk-card.flip .pk-in{transform:rotateY(0) scale(1);opacity:1}
.pk-front,.pk-back{position:absolute;inset:0;border-radius:14px;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}
.pk-front{background:#fff;box-shadow:0 4px 0 #c9a6ea,inset 0 0 0 4px #efe0ff;padding:8px}
.pk-card.s2 .pk-front{box-shadow:0 4px 0 #8ab8ff,inset 0 0 0 4px #cfe4ff}.pk-card.s3 .pk-front{background:linear-gradient(#fffbe6,#ffe98a);box-shadow:0 4px 0 #d49a00,inset 0 0 0 4px #ffd84a,0 0 18px rgba(255,200,40,.9)}
.pk-front img{width:100%;height:100%;object-fit:contain}
.pk-front i{position:absolute;bottom:4px;font:900 13px/1 Nunito,sans-serif;font-style:normal;color:#ffb800;text-shadow:0 1px 0 #7a4a00}
.pk-back{transform:rotateY(180deg);background:linear-gradient(135deg,#c98bff,#ff7ac8);box-shadow:inset 0 0 0 4px rgba(255,255,255,.6)}
.pk-card>b{font:900 13px/1 Nunito,sans-serif;color:#7a3aa0;opacity:0;transition:opacity .3s .4s}.pk-card.flip>b{opacity:1}.pk-card.new>b{color:#ff3d6e}
/* Advent calendar */
.adv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:8px 0}
.adv-door{position:relative;aspect-ratio:1;border:0;border-radius:12px;padding:0;cursor:pointer;background:linear-gradient(#ffe9b0,#f6c76a);box-shadow:0 3px 0 #b07a20;perspective:300px}
.adv-leaf{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;background:radial-gradient(circle at 30% 25%,#ff6b6b,#c41a2c 70%);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 0 0 3px #ffd35a;transform-origin:0 50%;transition:transform .6s cubic-bezier(.5,0,.3,1)}
.adv-door:nth-child(3n+2) .adv-leaf{background:radial-gradient(circle at 30% 25%,#ffd45a,#e08a00 70%)}
.adv-door:nth-child(4n+3) .adv-leaf{background:radial-gradient(circle at 30% 25%,#ff9ad0,#d0307e 70%)}
.adv-leaf b{font:900 22px/1 Nunito,sans-serif;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.3);transform:rotate(var(--r))}
.adv-leaf small{font:900 10px/1 Nunito,sans-serif;color:#fff;margin-top:3px}
.adv-door.shut .adv-leaf{filter:saturate(.5) brightness(.9)}
.adv-door.today .adv-leaf{animation:advToday 1.1s ease-in-out infinite}
@keyframes advToday{50%{box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 0 0 3px #ffd35a,0 0 0 4px #fff,0 0 16px #ffe14d}}
.adv-door.opening .adv-leaf{transform:rotateY(-110deg)}
.adv-door.open{background:linear-gradient(#fffaf0,#ffe9c0)}
.adv-in{position:absolute;inset:4px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0}
.adv-in .pz{display:flex;flex-direction:column;align-items:center}.adv-in .pz img{width:24px;height:24px}.adv-in .pz b{font-size:10px}
.adv-door.open>b{position:absolute;top:2px;left:5px;font:900 10px/1 Nunito,sans-serif;color:#b07a20}
/* Daily Challenge streak */
.chal-streak{margin:6px 0 8px;padding:8px;border-radius:16px;background:rgba(255,255,255,.6)}
.cs-top{display:flex;align-items:center;justify-content:center;gap:8px}
.cs-top img{height:40px}.cs-top b{font:900 32px/1 Nunito,sans-serif;color:#ff6a00;text-shadow:0 2px 0 #a03400}
.cs-top span{display:flex;flex-direction:column;font:900 14px/1.1 Nunito,sans-serif;color:#7a3a00;text-align:left}.cs-top small{font:800 11px/1 Nunito,sans-serif;opacity:.7}
.cs-week{display:flex;justify-content:center;gap:5px;margin:7px 0}
.cs-week i{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:900 11px/1 Nunito,sans-serif;font-style:normal;color:#b08aa0;background:#f2e6f0;box-shadow:inset 0 -2px 0 rgba(0,0,0,.07)}
.cs-week i.on{background:linear-gradient(#ffc75a,#ff7a1f);color:#fff;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 2px 0 #b04a00}
.cs-week i.now{outline:2px solid #ff7a1f;outline-offset:1px}
.cs-frz{display:flex;align-items:center;gap:8px}.cs-frz img{height:34px}
.cs-frz span{flex:1;display:flex;flex-direction:column;text-align:left;font:900 13px/1.1 Nunito,sans-serif;color:#2a5a90}.cs-frz small{font:800 10px/1.1 Nunito,sans-serif;opacity:.75}
.cs-frz .btn{padding:6px 10px;font-size:14px;min-height:0}.cs-frz .btn .ico{width:16px;height:16px;vertical-align:-3px}
.rc-mid{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.rc-mid small{font:800 10px/1 Nunito,sans-serif;color:#6a3a8a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.rc-mid .rc-track{flex:none}

/* ---------- a hand points at something new (map Events button -> its card -> the first button inside) ---------- */
#featHand{position:fixed;left:0;top:0;z-index:30;pointer-events:none;will-change:transform}
#featHand[hidden]{display:none}
#featHand .fh-hand{position:absolute;left:-17px;top:-8px;width:60px;height:60px;filter:drop-shadow(0 6px 5px rgba(0,0,0,.45));animation:fhpoke 1.1s ease-in-out infinite}
#featHand .fh-hand svg{width:100%;height:100%}
@keyframes fhpoke{0%,100%{transform:translate(10px,14px)}45%{transform:translate(0,0) scale(.92)}60%{transform:translate(2px,3px)}}
#featHand .fh-bub{position:absolute;left:34px;top:46px;white-space:nowrap;padding:6px 12px;border-radius:14px;background:linear-gradient(180deg,#fff8ea,#ffe3b0);border:3px solid #fff;color:#6a2a00;font:900 14px var(--display);box-shadow:0 4px 0 rgba(0,0,0,.25),0 0 16px rgba(255,225,77,.8);animation:fhbub 1.1s ease-in-out infinite}
#featHand.left .fh-bub{left:auto;right:-4px}
#featHand .fh-bub[hidden]{display:none}
@keyframes fhbub{50%{transform:scale(1.05)}}
.evcard.isnew{box-shadow:0 0 0 4px #ffe14d,0 0 22px 6px rgba(255,225,77,.85),0 6px 0 rgba(0,0,0,.38)!important;animation:ringpulse 1.2s ease-in-out infinite}
.evcard .fnew{position:absolute;top:-10px;left:-6px;z-index:2;padding:2px 8px;border-radius:10px;background:linear-gradient(180deg,#ff5a8a,#d81b5a);border:2px solid #fff;color:#fff;font:900 12px var(--display);transform:rotate(-8deg);box-shadow:0 3px 0 rgba(0,0,0,.3)}
#wheel .wheelbox .wptr{transform-origin:50% 18%}
/* ---------- Candy Climb x20: prizes shown as icons on every floor (also next to Claim), the top floor glows gold ---------- */
.cl-prize .pz{display:inline-flex;align-items:center;gap:1px;margin:0 1px;padding:1px 4px 1px 1px;border-radius:9px;background:#fff3c4;box-shadow:0 1px 0 rgba(0,0,0,.2);white-space:nowrap}
.cl-prize .pz .pico{width:18px;height:18px}
.cl-prize .pz b{font:900 10px/1 Nunito,sans-serif;color:#5a2a00}
.cl-plat.on:not(.done) .cl-prize{display:block}
.cl-plat.top::before{content:'';position:absolute;left:50%;top:40%;width:150px;height:110px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(255,225,77,.75),rgba(255,225,77,0));pointer-events:none}
.cl-plat.top .cl-prize{width:150px}
/* timed free helpers: a small timer under the top bar */
#tfreeBar{position:fixed;top:58px;left:50%;transform:translateX(-50%);z-index:12;display:flex;gap:6px;pointer-events:none}
#tfreeBar[hidden]{display:none}
#tfreeBar span{display:flex;align-items:center;gap:3px;padding:2px 8px 2px 3px;border-radius:12px;background:linear-gradient(180deg,#fff8ea,#ffe3b0);border:2px solid #fff;box-shadow:0 2px 0 rgba(0,0,0,.25),0 0 10px rgba(255,178,31,.7)}
#tfreeBar img{width:20px;height:20px}
#tfreeBar b{font:900 10px/1 Nunito,sans-serif;color:#fff;background:linear-gradient(#ff9a1f,#e0480c);padding:2px 4px;border-radius:5px}
#tfreeBar em{font:900 12px/1 Nunito,sans-serif;font-style:normal;color:#6a2a00;min-width:34px}
/* the climb's prize tiles (big icons, number in the corner), on the other side of each floor */
.cl-tile{position:absolute;width:86px;min-height:70px;margin:-42px 0 0 -43px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;padding:6px 4px 8px;border-radius:18px;background:linear-gradient(180deg,#fff6dc,#ffd98a);border:3px solid #fff;box-shadow:0 5px 0 #c27a1a,0 9px 10px rgba(60,20,0,.3),inset 0 2px 0 rgba(255,255,255,.8);z-index:2}
.cl-tile.on:not(.done){background:linear-gradient(180deg,#e6fbff,#9fe0ff);box-shadow:0 5px 0 #2a7fc0,0 0 18px rgba(80,200,255,.9),inset 0 2px 0 rgba(255,255,255,.8)}
.cl-tile.done{filter:saturate(.35) brightness(.95);opacity:.8}
.cl-tile.many{width:118px;margin-left:-59px}
.cl-tile.top{width:132px;margin-left:-66px;background:linear-gradient(180deg,#fff3a0,#ffc21f);box-shadow:0 5px 0 #a86a00,0 0 22px rgba(255,210,40,.95),inset 0 2px 0 rgba(255,255,255,.8)}
.ct-it{position:relative;display:inline-block;width:38px;height:38px}
.cl-tile:not(.many) .ct-it:only-child{width:52px;height:52px}
.ct-it img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 1px rgba(0,0,0,.3))}
.ct-it b{position:absolute;right:-6px;bottom:-5px;font:900 13px/1 Nunito,sans-serif;color:#fff;-webkit-text-stroke:3px #3a1a5a;paint-order:stroke;white-space:nowrap}
.ct-it.timed::after{content:'∞';position:absolute;right:-5px;top:-4px;width:16px;height:16px;border-radius:50%;background:#2ec05a;border:2px solid #fff;color:#fff;font:900 11px/13px Nunito,sans-serif;text-align:center}
.ct-ok{position:absolute;right:-8px;bottom:-8px;width:26px;height:26px;border-radius:50%;background:#2ec05a;border:3px solid #fff;color:#fff;font:900 15px/20px Nunito,sans-serif;text-align:center;font-style:normal}
.ct-lock{position:absolute;right:-8px;bottom:-8px;font-size:20px;font-style:normal;filter:drop-shadow(0 2px 1px rgba(0,0,0,.4))}
.cl-tile .cl-claim{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);width:auto;padding:5px 14px;font-size:14px;white-space:nowrap}
.cl-tile.many,.cl-tile.top{width:96px;margin-left:-48px}
.cl-tile.top .ct-it{width:34px;height:34px}
#climb .cl-tile .btn.cl-claim{position:absolute;left:50%;top:auto;bottom:-20px;transform:translateX(-50%);width:auto!important;min-width:0;height:auto!important;padding:4px 12px!important;font-size:13px!important;line-height:1.1;border-radius:12px;margin:0;z-index:3}
/* the map medallion captions are always centred, even a word a bit wider than the pill (EVENTS) */
.med .tag{display:flex!important;justify-content:center;align-items:center;text-overflow:clip}
#medEventsTag{letter-spacing:0!important;padding-left:6px!important;padding-right:6px!important}
/* WORLD n sits a little higher above the world's name */
.ribbon span small{display:block;margin-bottom:3px;transform:translateY(-2px)}
/* ---------- Sweet Pass: art header with the season timer, multiplier band with the buy button, free / gold tracks ---------- */
#pass .sp-card{display:flex;flex-direction:column;max-height:calc(100vh - 80px)}
#pass .sp-card>*:not(.sp-list){flex:none}
.sp-head{position:relative;margin:0 -14px;height:96px;border-radius:0;background:radial-gradient(circle at 50% 70%,#ffe9f6,#ff9fd2 55%,#b44bc8);display:flex;justify-content:center;align-items:flex-end;overflow:hidden}
.sp-head img{height:112px;margin-bottom:-14px;filter:drop-shadow(0 6px 6px rgba(60,0,60,.4))}
.sp-time{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);padding:3px 12px;border-radius:12px;background:#5a1a7a;color:#fff;font:900 13px/1.2 Nunito,sans-serif;border:2px solid #fff;box-shadow:0 2px 0 rgba(0,0,0,.3)}
.sp-band{display:flex;align-items:center;gap:8px;margin:0 -14px;padding:8px 12px;background:linear-gradient(180deg,#8a3ae0,#6a22c0);color:#fff}
.sp-band>div{flex:1;min-width:0}
.sp-band p{margin:0 0 5px;font:900 12px/1.2 Nunito,sans-serif;text-align:center}
.sp-mult{display:flex;justify-content:center;gap:3px}
.sp-mult i{font:900 12px/1 Nunito,sans-serif;font-style:normal;padding:5px 5px;border-radius:8px;background:#fff1c8;color:#7a4a00;box-shadow:0 2px 0 rgba(0,0,0,.25)}
.sp-mult i.past{opacity:.55}
.sp-mult i.on{background:linear-gradient(180deg,#7dff6a,#2ec05a);color:#fff;transform:scale(1.15);box-shadow:0 0 10px rgba(120,255,120,.9),0 2px 0 rgba(0,0,0,.3)}
#pass .btn.sp-buy{width:auto!important;padding:8px 10px!important;font-size:14px!important;line-height:1.1;background:linear-gradient(180deg,#7dff6a,#25a84a)!important;white-space:nowrap}
#pass .btn.sp-buy.owned{background:linear-gradient(180deg,#ffe48a,#f0a818)!important}
.sp-cols{display:grid;grid-template-columns:1fr 34px 1fr;margin:8px 0 2px;text-align:center}
.sp-cols b{grid-column:1;font:900 13px/1.6 Nunito,sans-serif;color:#fff;background:#3a8ae0;border-radius:10px;margin:0 8px}
.sp-cols b.g{grid-column:3;background:linear-gradient(180deg,#ffd86a,#f0a010);color:#6a3a00}
.sp-list{flex:1;min-height:200px;overflow-y:auto;overscroll-behavior:contain;padding:6px 0 18px;background:linear-gradient(90deg,transparent calc(50% - 4px),#ffd0ec calc(50% - 4px),#ffd0ec calc(50% + 4px),transparent calc(50% + 4px))}
.sp-row{display:grid;grid-template-columns:1fr 34px 1fr;align-items:center;padding:12px 0 18px}
.sp-num{justify-self:center;width:30px;height:30px;border-radius:9px;transform:rotate(45deg);background:#e8d6f0;border:3px solid #fff;display:grid;place-items:center;box-shadow:0 2px 0 rgba(0,0,0,.2)}
.sp-num{font:900 0/1 Nunito,sans-serif}
.sp-num::after{content:attr(data-n)}
.sp-row.on .sp-num{background:linear-gradient(180deg,#ffb0dc,#ff4fa8)}
.sp-tile{position:relative;justify-self:center;width:92px;min-height:70px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;padding:6px 4px 8px;border-radius:18px;background:linear-gradient(180deg,#e6f6ff,#9fd6ff);border:3px solid #fff;box-shadow:0 5px 0 #2a72c0,0 8px 8px rgba(0,30,80,.25),inset 0 2px 0 rgba(255,255,255,.8)}
.sp-tile.gold{background:linear-gradient(180deg,#fff3b8,#ffc83a);box-shadow:0 5px 0 #b87400,0 8px 8px rgba(80,40,0,.25),inset 0 2px 0 rgba(255,255,255,.8)}
.sp-tile.many{width:108px}
.sp-tile.done{filter:saturate(.35);opacity:.75}
.sp-tile.on:not(.done){animation:sptile 1.4s ease-in-out infinite}
@keyframes sptile{50%{box-shadow:0 5px 0 #2a72c0,0 0 16px 4px rgba(255,240,120,.95),inset 0 2px 0 rgba(255,255,255,.8)}}
.sp-tile.gold.on:not(.done){animation-name:sptileg}
@keyframes sptileg{50%{box-shadow:0 5px 0 #b87400,0 0 16px 4px rgba(255,240,120,.95),inset 0 2px 0 rgba(255,255,255,.8)}}
.sp-tile .ct-it{width:36px;height:36px}
.sp-tile:not(.many) .ct-it:only-child{width:48px;height:48px}
.sp-fr i{display:block;width:100%;height:100%;border-radius:9px;box-shadow:inset 0 0 0 7px rgba(255,255,255,.0),0 2px 2px rgba(0,0,0,.3);-webkit-mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask-composite:exclude;padding:8px}
#pass .btn.sp-claim{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);width:auto!important;height:auto!important;padding:3px 12px!important;font-size:13px!important;line-height:1.15;border-radius:11px;margin:0;z-index:2}
.sp-bar{position:relative;margin:2px 14px 2px;height:22px;border-radius:11px;background:#5a2a7a;border:3px solid #fff;box-shadow:0 2px 0 rgba(0,0,0,.25);overflow:hidden}
.sp-bar u{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(180deg,#9dff7a,#2ec05a)}
.sp-bar b{position:relative;display:block;text-align:center;font:900 12px/16px Nunito,sans-serif;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.6)}
.sp-num::after{transform:rotate(-45deg);font-size:13px;color:#5a1a6a}
.sp-row.on .sp-num::after{color:#fff}
#pass .sp-band p{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.45)}
#pass .btn.sp-buy:disabled{opacity:1;filter:none}
/* frozen squares v2: the square's colour shows through the ice; a treasure may wait inside */
.cell .cice{opacity:.62}
.cell .cgift{position:absolute;left:22%;top:22%;width:56%;height:56%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35)) saturate(.85);opacity:.95}
/* ---------- Super Hard levels: the Extremely Hard look with a purple flame and a glow ---------- */
.node.super::before{content:"🔥"!important;filter:hue-rotate(250deg) saturate(1.6)}
.node.super{--nf:hue-rotate(255deg) saturate(1.5)!important}
.node.super:not(.locked)::after{box-shadow:0 0 0 3px #c86bff,0 0 0 5px #ffd84a,0 0 18px 6px rgba(190,90,255,.8)!important;animation:superglow 1.6s ease-in-out infinite}
@keyframes superglow{50%{box-shadow:0 0 0 3px #e0a0ff,0 0 0 5px #ffd84a,0 0 26px 10px rgba(210,120,255,.95)}}
.node.super .badge{background:linear-gradient(180deg,#c86bff,#7a1fd0)!important;color:#fff!important;white-space:nowrap}
.tier.super,.pl-tier.super{background:linear-gradient(180deg,#a64dff,#5a12a8)!important;color:#fff;box-shadow:0 3px 0 #2a0050,0 0 12px rgba(190,90,255,.8)!important}
.board.super{box-shadow:0 0 0 3px #c86bff,0 0 24px 6px rgba(170,70,255,.7)!important}
.node.super{filter:drop-shadow(0 0 8px rgba(180,75,255,.95)) drop-shadow(0 0 3px #fff)}
.node.super .sflame{position:absolute;left:50%;top:-30px;width:36px;height:36px;transform:translateX(-50%);filter:hue-rotate(250deg) saturate(1.5) drop-shadow(0 2px 2px rgba(0,0,0,.4));animation:sflame 1.2s ease-in-out infinite;pointer-events:none;z-index:2}
@keyframes sflame{50%{transform:translateX(-50%) scale(1.12) translateY(-2px)}}
.node.super.locked .sflame{animation:none;opacity:.8}
.sflame-big{filter:hue-rotate(250deg) saturate(1.5) drop-shadow(0 4px 6px rgba(60,0,90,.4))!important}
/* ---------- tier colours (his plan, 2026-11-21): Hard purple, Very Hard red, Super Hard dark blue, Extremely Hard black ---------- */
.node.hard{--nimg:url(art/node_vhard.webp)!important}
.node.veryhard{--nimg:url(art/node_hard.webp)!important}
.node.hard .badge{background:linear-gradient(180deg,#b57bff,#6a22c0)!important;color:#fff!important}
.node.veryhard .badge{background:linear-gradient(180deg,#ff6a4d,#c0200c)!important;color:#fff!important}
.node.veryhard::before{content:none!important}
.node.super{--nimg:url(art/node_super.webp)!important;--nf:none!important;filter:drop-shadow(0 0 8px rgba(60,120,255,.95)) drop-shadow(0 0 3px #fff)!important}
.node.super .badge{background:linear-gradient(180deg,#3a6aff,#0c2470)!important;color:#fff!important}
.node.super:not(.locked)::after{box-shadow:0 0 0 3px #5a8aff,0 0 0 5px #ffd84a,0 0 18px 6px rgba(70,120,255,.8)!important;animation:superglowb 1.6s ease-in-out infinite}
@keyframes superglowb{50%{box-shadow:0 0 0 3px #8ab0ff,0 0 0 5px #ffd84a,0 0 26px 10px rgba(90,140,255,.95)}}
.node.super .sflame,.sflame-big{filter:hue-rotate(185deg) saturate(1.4) drop-shadow(0 2px 2px rgba(0,0,0,.4))!important}
.tier.hard,.pl-tier.hard{background:linear-gradient(180deg,#a45cff,#6a22c0)!important;color:#fff!important;border-color:#e9d2ff!important;box-shadow:0 3px 0 #3a1180!important}
.tier.veryhard,.pl-tier.veryhard{background:linear-gradient(180deg,#ff6a4d,#c0200c)!important;color:#fff!important;border-color:#ffd0c0!important;box-shadow:0 3px 0 #7a1000!important}
.tier.super,.pl-tier.super{background:linear-gradient(180deg,#3a6aff,#0c2470)!important;color:#fff!important;border-color:#c0d4ff!important;box-shadow:0 3px 0 #061440,0 0 12px rgba(70,120,255,.8)!important}
.board.super{box-shadow:0 0 0 3px #4a7aff,0 0 24px 6px rgba(60,110,255,.7)!important}
.node.extreme{--nimg:url(art/node_extreme.webp)!important;--nf:none!important;color:#fff}
.node.extreme .badge{background:linear-gradient(180deg,#3a3a46,#000)!important;color:#fff!important}
/* no in-app purchases (the app is declared without them): the Sweet Pass shows only its free track, no price anywhere */
body.nopay #spBuy,body.nopay .sp-tile.gold,body.nopay .sp-cols .g{display:none!important}
body.nopay .sp-row{grid-template-columns:34px 1fr}
body.nopay .sp-num{order:-1}
body.nopay .sp-cols{grid-template-columns:1fr}
body.nopay .sp-cols b{grid-column:1;margin:0 auto;padding:0 28px}
body.nopay .sp-list{background:linear-gradient(90deg,transparent 13px,#ffd0ec 13px,#ffd0ec 21px,transparent 21px)}
#tutorial .card{--cw:min(470px,calc(100vw - 40px))!important}
#tutorial .card{border-left-width:calc(var(--k) * 80)!important;border-right-width:calc(var(--k) * 80)!important}   /* the X lives in the frame corner: narrower sides squashed it into an oval */
/* Sweet Pass Claim: always green (his request), glowing */
#pass .btn.sp-claim{background:linear-gradient(180deg,#8dff6a,#22b04a)!important;border-color:#fff!important;color:#fff!important;box-shadow:0 3px 0 #0f6a2a,0 0 12px rgba(120,255,120,.85)!important;animation:spclaim 1.2s ease-in-out infinite}
@keyframes spclaim{50%{box-shadow:0 3px 0 #0f6a2a,0 0 20px 4px rgba(140,255,140,.95)}}
/* the spotlight after a helper (car, rocket, hint...) keeps the squares' entry animation in its list, so removing the pulse
   no longer restarts the entry fade: the lit squares used to vanish and fade back in (the blink he saw after the car/rocket) */
.board.spot .cell.lit,.board.spot .cell.lit.hinted{animation:cellin .35s ease-out both,spotPulse .75s ease-in-out 4;animation-delay:var(--d,0s),0s}
@media (prefers-reduced-motion:reduce){.board.spot .cell.lit{animation:cellin .35s ease-out both}}
.album-card .alb-grid{max-height:min(40vh,340px)!important}   /* shorter album: the whole frame and its Close button fit on the screen (he asked) */
/* ---------- the tutorial board looks exactly like the real board (his request): cream board, gold frame, the same cells, X and candy ring ---------- */
.tb{background:var(--fbg,#f7f1e5)!important;border:5px solid #ffc247!important;border-radius:20px!important;gap:3px!important;padding:6px!important;
  box-shadow:0 7px 0 #e0902a,0 0 0 3px rgba(255,255,255,.55),0 16px 28px rgba(40,0,80,.4)!important}
.tb.isgood{border-color:#46e06a!important;box-shadow:0 7px 0 #138a33,0 0 0 3px rgba(255,255,255,.55),0 0 14px rgba(70,224,106,.6)!important}
.tb.isbad{border-color:#ff5a6a!important;box-shadow:0 7px 0 #a8122a,0 0 0 3px rgba(255,255,255,.55),0 0 14px rgba(255,90,106,.6)!important}
.tc{border-radius:20%!important;background-image:linear-gradient(rgba(255,255,255,.42),rgba(255,255,255,0) 52%,rgba(0,0,0,.1))!important;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.16),inset 0 2px 0 rgba(255,255,255,.35)!important;filter:saturate(1.1)}
.tc::before{content:none!important}
.tc.tcandy{box-shadow:inset 0 0 0 3px #1b0d2e,inset 0 -3px 0 rgba(0,0,0,.16),0 0 0 1px rgba(255,255,255,.55)!important}
.tc u{width:58%!important;height:58%!important;background:linear-gradient(45deg,transparent 40%,#fff 40% 60%,transparent 60%),linear-gradient(-45deg,transparent 40%,#fff 40% 60%,transparent 60%)!important}
/* the "something waiting" dot: a deeper red-orange (his request), and on event cards it sits just inside the corner,
   so the scrolling events grid never cuts it off (on the right-hand cards it was hidden) */
.evcard.dot .evdot,.med.dot::after,.nav button.dot::after,.col-tabs button.dot::after{background:radial-gradient(circle at 34% 30%,#ffd6cc 0 12%,#ff6a3a 26%,#f2240f 52%,#b8000c 82%,#700006 100%)!important;
  box-shadow:0 0 0 1px rgba(110,0,0,.55),0 0 8px 2px rgba(255,40,20,.8),0 2px 3px rgba(0,0,0,.45)!important}
.evcard.dot .evdot{top:5px!important;right:5px!important;z-index:3}
/* ---------- clear ice (his request): the colour stays in full view, a frosty rim and a small cube in the corner ---------- */
.cell .cfrost{position:absolute;inset:0;border-radius:inherit;pointer-events:none;border:2.5px solid rgba(205,240,255,.98);
  box-shadow:inset 0 0 0 1.5px rgba(120,200,255,.85),inset 0 0 9px rgba(170,225,255,.95),0 0 4px rgba(120,200,255,.8);
  background:linear-gradient(135deg,rgba(255,255,255,.6) 0 14%,rgba(255,255,255,0) 26% 72%,rgba(255,255,255,.3) 86%)}
.cell .cice{inset:auto!important;right:-6%;top:-6%;width:46%!important;height:46%!important;opacity:1!important;filter:drop-shadow(0 1px 2px rgba(0,40,90,.5))}
.cell .cgift{left:auto!important;top:auto!important;left:8%!important;bottom:8%;width:40%!important;height:40%!important}
/* the row and column of the guided ice square: a pulsing white rim only, the colours stay exactly as they are */
.cell.icelane{outline:3px solid rgba(255,255,255,0);outline-offset:-3px;animation:icelane .9s ease-in-out infinite}
@keyframes icelane{50%{outline-color:rgba(255,255,255,.95)}}
#featHand .fh-bub{white-space:normal;width:max-content;max-width:min(230px,calc(100vw - 150px))}
/* the Super Hard flame is a normal orange fire (his request: it looked green) */
.node.super .sflame,.sflame-big{filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))!important}
.node.super::before{filter:none!important}
/* ---------- ice, his pick (option 2, 2026-11-22): no cube, only a thick glowing frost frame with sparkles in the corners ---------- */
.cell .cice{display:none!important}
.cell .cfrost{border:3.5px solid #e6f8ff!important;box-shadow:inset 0 0 0 2px rgba(90,180,255,.95),inset 0 0 12px 2px rgba(190,235,255,.95),0 0 6px 1px rgba(140,215,255,.95)!important;
  background:radial-gradient(circle at 0 0,rgba(255,255,255,.95) 0 9%,transparent 22%),radial-gradient(circle at 100% 100%,rgba(255,255,255,.9) 0 8%,transparent 20%),radial-gradient(circle at 100% 0,rgba(255,255,255,.7) 0 5%,transparent 14%),radial-gradient(circle at 0 100%,rgba(255,255,255,.7) 0 5%,transparent 14%),linear-gradient(135deg,rgba(255,255,255,.45) 0 12%,rgba(255,255,255,0) 26% 72%,rgba(255,255,255,.28) 86%)!important}
.cell.icehit .cfrost{animation:iceHit .32s ease-out}
/* ---------- chained colour (his pick, 2026-11-22): licorice chains over every square of the colour, a candy padlock with the count ---------- */
.cell .cchain{position:absolute;inset:-2%;width:104%;height:104%;pointer-events:none;z-index:3;filter:drop-shadow(0 1px 1px rgba(60,0,0,.45))}
.cell.lockcell{z-index:6;overflow:visible}
.cell .clock,.chi-c .clock{position:absolute;left:50%;top:50%;width:78%;transform:translate(-50%,-56%);z-index:5;pointer-events:none;display:block}
.cell .clock img,.chi-c .clock img{width:100%;height:auto;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.5))}
.cell .clock b,.chi-c .clock b{position:absolute;left:50%;bottom:-30%;transform:translateX(-50%);background:#fff;color:#8a2a10;border:2px solid #8a2a10;border-radius:9px;padding:0 4px;font:900 11px/1.35 Nunito,sans-serif;white-space:nowrap}
.cell.chainhit .cchain{animation:chainHit .34s ease-out}
@keyframes chainHit{0%,100%{transform:translate(0,0)}25%{transform:translate(-3px,0) rotate(-3deg)}60%{transform:translate(3px,0) rotate(3deg)}}
.cell.chainhit .clock{animation:lockHit .34s ease-out}
@keyframes lockHit{0%,100%{transform:translate(-50%,-56%)}25%{transform:translate(calc(-50% - 3px),-56%) rotate(-8deg)}60%{transform:translate(calc(-50% + 3px),-56%) rotate(8deg)}}
.cell.chainfree{animation:chainFree .5s ease-out}
@keyframes chainFree{0%{filter:brightness(1.8)}100%{filter:none}}
.chain-bit{position:fixed;width:9px;height:6px;border-radius:4px;background:linear-gradient(180deg,#ff5a5a,#a8101a);pointer-events:none;z-index:61}
.chain-fly{position:fixed;height:auto;pointer-events:none;z-index:62;filter:drop-shadow(0 3px 4px rgba(0,0,0,.45))}
.chain-intro{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0 10px}
.chi-row{display:flex;gap:3px}
.chi-c{position:relative;width:34px;height:34px;border-radius:8px;background:linear-gradient(180deg,#c06bff,#8a2be2);box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
.chi-c .chi-ch{position:absolute;inset:0;width:100%;height:100%}
.chi-c .clock b{font-size:9px}
.chi-arrow{font:900 20px Nunito,sans-serif;color:#8a4a1a}
/* ---------- sugar clock (his pick, 2026-11-22): a candy-pink clock; red and pulsing in the last 10 seconds, a green flash when a candy fills it ---------- */
.chaltimer.sugar{background:linear-gradient(180deg,#fff,#ffe0f0);color:#8a1050;box-shadow:0 3px 0 #d67fae,0 5px 8px rgba(20,0,60,.3)}
.chaltimer.sugar.low{background:linear-gradient(180deg,#ff8a8a,#e02020);color:#fff;box-shadow:0 3px 0 #8a0f0f,0 5px 8px rgba(20,0,60,.3);animation:chalpulse .9s ease-in-out infinite}
.chaltimer.sugar.refill{animation:sugarRefill .6s ease-out}
@keyframes sugarRefill{0%{transform:scale(1.25);background:linear-gradient(180deg,#b6ff9a,#3cc85a);color:#fff}100%{transform:scale(1)}}
.sugar-intro{display:flex;justify-content:center;margin:6px 0 10px}
.sugar-intro .chaltimer{font-size:24px;padding:6px 20px}
/* ---------- Daily Challenge, No X day (2026-11-22): a red-crossed badge with the double prize ---------- */
.chaltimer .x2{font:900 12px Nunito,sans-serif;color:#e0204a;margin:0 4px 0 -2px}
.nox-intro{display:flex;justify-content:center;margin:4px 0 8px}
.nox-x{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:linear-gradient(180deg,#fff,#ffe0e6);border:5px solid #e0204a;color:#e0204a;font:900 40px/1 Nunito,sans-serif;position:relative;box-shadow:0 4px 0 #9a1030}
.nox-x::after{content:"";position:absolute;width:86%;height:6px;background:#e0204a;border-radius:3px;transform:rotate(-45deg)}
/* ---------- Sweet Pass ring (his design, 2026-11-22, like Toy Blast): a green ring around the button fills toward the next step ---------- */
#medPass .disc .spring{position:absolute;inset:-6px;border-radius:50%;pointer-events:none;z-index:2;
  background:conic-gradient(#46e060 calc(var(--sp,0) * 1%),rgba(20,0,50,.35) 0);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));
  transition:background .6s;filter:drop-shadow(0 0 3px rgba(70,224,96,.7))}
#medPass.closed .disc{filter:grayscale(.85) brightness(.85)}
#medPass.closed .spring{display:none}
/* ---------- Open all packs (2026-11-22): every sticker small in one grid ---------- */
.pk-allbtn{margin-top:8px;background:linear-gradient(#8dff6a,#22b04a)!important;box-shadow:0 4px 0 #0f6a2a!important;color:#fff}
.alb-all{background:linear-gradient(#8dff6a,#22b04a)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 4px 0 #0f6a2a!important}
.pk-cards:has(.pk-all){display:block}
.pk-sum{text-align:center;font:900 15px/1.3 Nunito,sans-serif;color:#7a3aa0;margin:0 0 8px}.pk-sum b{color:#ff3d6e}
.pk-all{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-height:min(52vh,420px);overflow-y:auto;padding:4px 2px 6px}
.pk-mini{position:relative;aspect-ratio:1;min-width:0;min-height:0;overflow:visible;border-radius:10px;background:#fff;box-shadow:0 3px 0 #d7c2ea,inset 0 0 0 3px #efe3fb;display:grid;place-items:center;padding:5px;animation:pkMini .35s cubic-bezier(.3,1.5,.5,1) both}
.pk-mini img{width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain;display:block}.pk-mini img.ph{object-fit:cover;border-radius:6px}
.pk-mini.s2{box-shadow:0 3px 0 #8ab8ff,inset 0 0 0 3px #cfe4ff}.pk-mini.s3{background:linear-gradient(#fffbe6,#ffe98a);box-shadow:0 3px 0 #d49a00,inset 0 0 0 3px #ffd84a}
.pk-mini .pm-new{position:absolute;top:-6px;left:50%;transform:translateX(-50%);background:#ff3d6e;color:#fff;font:900 9px/1 Nunito,sans-serif;padding:2px 5px;border-radius:8px;font-style:normal}
.pk-mini .pm-n{position:absolute;right:-4px;bottom:-5px;background:#7a3aa0;color:#fff;font:900 10px/1 Nunito,sans-serif;padding:2px 5px;border-radius:8px;font-style:normal}
@keyframes pkMini{from{transform:scale(.3);opacity:0}}
.pk-mini{width:100%;height:auto}.pk-mini>img{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px)}
/* tutorial v388 (his request): the whole window nearly fills the phone's width and the two small boards grow into the room inside */
#tutorial .card{--cw:min(500px,calc(100vw - 8px))!important}
#tutorial.overlay{padding-left:4px!important;padding-right:4px!important}
#tutorial .tpair{gap:6px!important;width:calc(100% + 10px)!important;margin:0 -5px!important}
#tutorial .tb{gap:3px!important;padding:4px!important}
#tutorial .tsolo{width:min(310px,80vw)!important}
#tutorial .thlp .tsolo{width:min(240px,62vw)!important}
/* ---------- the red dot everywhere something waits (his rule, 2026-11-22): never on the Claim button itself, always on the way in: map buttons, event cards, tabs, the Gumi
   button and My collection when a sticker prize waits. A little shinier: a brighter red-orange with a white gleam and a soft glow ---------- */
.btn.claim,.btn.sp-claim{overflow:visible}
.stkbtn,.btn.buy.claim,#lgrGo.claim{position:relative}   /* the climb and Sweet Pass Claim buttons are already placed absolutely */
#walletMe,#pfCollection{position:relative;overflow:visible}
#walletMe.dot::after,#pfCollection.dot::after{content:"";position:absolute;top:-5px;right:-4px;width:15px;height:15px;border-radius:50%;border:2px solid #fff;z-index:6;pointer-events:none;animation:dotpulse 1.4s ease-in-out infinite}
.evcard.dot .evdot,.med.dot::after,.nav button.dot::after,.col-tabs button.dot::after,#walletMe.dot::after,#pfCollection.dot::after{
  background:radial-gradient(circle at 32% 28%,#fff 0 10%,#ffd9b8 16%,#ff7a3d 30%,#ff2a12 55%,#c4000e 84%,#7a0008 100%)!important;
  box-shadow:0 0 0 1px rgba(110,0,0,.5),0 0 10px 3px rgba(255,70,30,.9),0 2px 3px rgba(0,0,0,.45)!important}
.nav button.dot::after,.col-tabs button.dot::after{animation:dotpulse 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.btn.claim::after,.btn.sp-claim::after,#walletMe.dot::after,#pfCollection.dot::after,.nav button.dot::after,.col-tabs button.dot::after{animation:none}}
/* Sweet Pass Claim (his request, 2026-11-22): the same glossy 3D green button as every other Claim in the game, a little bigger, with a soft green glow */
#pass .btn.sp-claim{background:url(art/btn_green.webp) center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;
  color:#fff!important;text-shadow:0 2px 0 rgba(0,70,10,.65)!important;padding:7px 18px 8px!important;font-size:14px!important;bottom:-21px;
  filter:drop-shadow(0 3px 2px rgba(0,60,0,.45)) drop-shadow(0 0 5px rgba(120,255,120,.55));animation:spclaim2 1.2s ease-in-out infinite!important}
@keyframes spclaim2{50%{filter:drop-shadow(0 3px 2px rgba(0,60,0,.45)) drop-shadow(0 0 11px rgba(140,255,140,.95))}}
@media (prefers-reduced-motion:reduce){#pass .btn.sp-claim{animation:none!important}}
/* ---------- Vinegar beaten (his request, 2026-11-22): he blows sour smoke over the whole screen, then it clears to show the win card ---------- */
.vsmoke{position:fixed;inset:0;z-index:9000;pointer-events:auto;overflow:hidden}
.vs-fog{position:absolute;inset:0;opacity:0;background:radial-gradient(ellipse at 50% 58%,#eef0e4 0%,#d9ddc8 45%,#c1c6ab 80%,#a9ae92 100%)}
.vs-boss{position:absolute;left:50%;top:44%;width:min(66vw,320px);transform:translate(-50%,-50%) scale(.2);opacity:0;filter:drop-shadow(0 10px 14px rgba(40,0,60,.5))}
.vs-puff{position:absolute;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(238,240,228,.92) 0,rgba(218,222,200,.7) 30%,rgba(196,200,176,.38) 52%,rgba(190,194,170,0) 70%)}
/* ---------- Night level (2026-11-23): dark squares, a torch under the finger, a light around every candy found ---------- */
@property --nd{syntax:'<number>';inherits:false;initial-value:0.93}
.board.night{position:relative;--edge:#4b3fb0;--edge2:#120c3a;background:linear-gradient(180deg,#1d1650,#070518)!important;box-shadow:0 6px 0 #120c3a,0 0 28px rgba(130,120,255,.45)}
.board.night::after{content:'🌙';position:absolute;right:-12px;top:-22px;font-size:32px;line-height:1;pointer-events:none;z-index:3;filter:drop-shadow(0 0 10px #ffe9a0);animation:nightMoon 4s ease-in-out infinite}
@keyframes nightMoon{50%{transform:translateY(-3px) rotate(-8deg)}}
.board.night .cell{background-image:linear-gradient(rgba(9,7,30,var(--nd)),rgba(9,7,30,var(--nd))),linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0) 52%,rgba(0,0,0,.1));
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.25),inset 0 1px 0 rgba(150,140,255,.18);transition:--nd .22s ease-out,transform .12s,filter .28s}
.board.night .cell .x{filter:drop-shadow(0 0 2px rgba(0,0,0,.8))}
.node.nightn:not(.current)::before{content:'🌙';position:absolute;right:-8px;top:-10px;font-size:16px;line-height:1;z-index:4;pointer-events:none;filter:drop-shadow(0 0 4px #ffe9a0)}
.night-intro{display:flex;justify-content:center;align-items:center;gap:10px;margin:4px 0 10px;position:relative}
.night-intro .ni-moon{position:absolute;right:calc(50% - 82px);top:-14px;font-size:28px;filter:drop-shadow(0 0 8px #ffe9a0)}
.night-intro .ni-grid{display:grid;grid-template-columns:repeat(3,38px);gap:4px;padding:7px;border-radius:14px;background:linear-gradient(180deg,#1d1650,#070518);box-shadow:0 4px 0 #120c3a}
.night-intro .ni-grid i{width:38px;height:38px;border-radius:20%;background-color:var(--c);background-image:linear-gradient(rgba(9,7,30,var(--nd)),rgba(9,7,30,var(--nd)))}
/* ---------- Sweet Pass in our glossy style (his rule 2026-11-23: every screen uses our own glossy 3D look) ---------- */
/* the column titles: glossy pills (Free blue, Sweet Pass gold) */
.sp-cols b{background:url(art/btn_blue.webp) center/100% 100% no-repeat!important;border-radius:0!important;color:#fff!important;font:900 15px/1 Nunito,sans-serif!important;padding:8px 0 11px;margin:0 6px!important;
  text-shadow:0 2px 0 rgba(0,40,110,.55),0 0 6px rgba(255,255,255,.35);filter:drop-shadow(0 3px 2px rgba(0,20,60,.45))}
.sp-cols b.g{background:url(art/btn_orange.webp) center/100% 100% no-repeat!important;font-size:14px!important;letter-spacing:-.2px;color:#fff!important;text-shadow:0 2px 0 rgba(130,50,0,.6),0 0 6px rgba(255,255,255,.35);filter:drop-shadow(0 3px 2px rgba(90,30,0,.45))}
/* Activate: our glossy green button */
#pass .btn.sp-buy{background:url(art/btn_green.webp) center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:10px 11px 13px!important;font-size:13px!important;color:#fff;
  text-shadow:0 2px 0 rgba(0,80,20,.6);filter:drop-shadow(0 4px 3px rgba(0,50,10,.45))}
#pass .btn.sp-buy.owned{background:url(art/btn_orange.webp) center/100% 100% no-repeat!important;text-shadow:0 2px 0 rgba(130,50,0,.6)}
/* the clock: our dark glossy pill */
.sp-time{background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:5px 16px 8px!important;font-size:14px!important;filter:drop-shadow(0 2px 2px rgba(40,0,60,.5))}
/* the head and the purple band get a shine */
.sp-head{background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 45%),radial-gradient(circle at 50% 70%,#ffe9f6,#ff9fd2 55%,#b44bc8)}
.sp-band{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0) 48%,rgba(0,0,0,.12)),linear-gradient(180deg,#9a48f0,#6a22c0);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -3px 0 rgba(40,0,90,.35)}
/* the multiplier chips: little glossy candies */
.sp-mult i{position:relative;padding:6px 7px 7px;border-radius:10px;background:linear-gradient(180deg,#fffbe8,#ffe07a 55%,#f5b52a);color:#7a4a00;border:2px solid #fff;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.9),inset 0 -2px 0 rgba(150,80,0,.3),0 2px 0 rgba(0,0,0,.25)}
.sp-mult i::before{content:'';position:absolute;left:3px;right:3px;top:2px;height:40%;border-radius:8px 8px 6px 6px;background:linear-gradient(rgba(255,255,255,.75),rgba(255,255,255,0));pointer-events:none}
.sp-mult i.on{background:linear-gradient(180deg,#b6ff8e,#4fd85a 55%,#1e9a3c);color:#fff;text-shadow:0 1px 0 rgba(0,70,10,.6);box-shadow:inset 0 2px 0 rgba(255,255,255,.7),inset 0 -2px 0 rgba(0,60,10,.35),0 0 12px rgba(120,255,120,.9),0 2px 0 rgba(0,0,0,.3)}
/* the step number: a glossy jelly diamond */
.sp-num{background:linear-gradient(135deg,#fff 0 18%,#efe2f6 30%,#cdb6e0);box-shadow:inset 2px 2px 0 rgba(255,255,255,.9),inset -2px -2px 0 rgba(90,40,120,.25),0 3px 3px rgba(60,0,90,.3)}
.sp-num::after{transform:rotate(-45deg);color:#7a4a9a;font-size:14px;text-shadow:0 1px 0 #fff}
.sp-row.on .sp-num{background:linear-gradient(135deg,#ffe0f2 0 16%,#ff8cc8 34%,#ff3d98 70%,#d81a78)}
.sp-row.on .sp-num::after{color:#fff;text-shadow:0 1px 0 rgba(140,0,70,.6)}
/* the middle track: a glossy candy-stripe tube */
.sp-list{background:linear-gradient(90deg,transparent calc(50% - 5px),#ff9fd2 calc(50% - 5px),#ffe3f3 calc(50% - 1px),#ffb7de calc(50% + 2px),#f27ac0 calc(50% + 5px),transparent calc(50% + 5px))}
/* the progress bar: a glossy tube */
.sp-bar{background:linear-gradient(180deg,#3e1460,#6a2a92);box-shadow:inset 0 3px 4px rgba(0,0,0,.45),0 3px 0 rgba(60,0,90,.35)}
.sp-bar u{background:linear-gradient(180deg,#d8ffb8,#7dff6a 30%,#2ec05a 70%,#1e9a3c);box-shadow:inset 0 -2px 0 rgba(0,60,10,.3);border-radius:0 9px 9px 0}
.sp-bar::after{content:'';position:absolute;left:6px;right:6px;top:2px;height:35%;border-radius:8px;background:linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,0));pointer-events:none}
/* the prize tiles: a shine on top */
.sp-tile::before{content:'';position:absolute;left:8px;right:8px;top:4px;height:30%;border-radius:12px 12px 10px 10px;background:linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,0));pointer-events:none}
/* ---------- Running clocks at the top of the home map (2026-11-23): a small glossy disc with the icon, a dark pill with the clock ---------- */
.sides .timers{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:min(232px,calc(100vw - 168px));display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;pointer-events:auto}
.tmr{position:relative;display:flex;flex-direction:column;align-items:center;width:54px;padding:0;border:0;background:none;cursor:pointer;animation:tmrIn .4s cubic-bezier(.3,1.5,.5,1) both}
@keyframes tmrIn{from{transform:scale(.3);opacity:0}}
.tmr .tdisc{position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(circle at 35% 28%,#fff 0 12%,#ffe6f6 28%,#ffb3dc 62%,#d86ab4);border:3px solid #fff;
  box-shadow:0 3px 0 #8a2a7a,0 4px 6px rgba(40,0,60,.45),inset 0 -3px 4px rgba(120,20,100,.35)}
.tmr .tdisc::after{content:'';position:absolute;left:6px;right:6px;top:3px;height:38%;border-radius:50%;background:linear-gradient(rgba(255,255,255,.75),rgba(255,255,255,0));pointer-events:none}
.tmr .tdisc img{width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 2px 1px rgba(0,0,0,.35))}
.tmr .tdisc i{font-style:normal;font-size:24px;line-height:1}
.tmr b{margin-top:-7px;position:relative;z-index:1;min-width:52px;padding:3px 6px 5px;background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat;color:#fff;font:900 11px/1 Nunito,sans-serif;white-space:nowrap;
  -webkit-text-stroke:1.2px #000;paint-order:stroke fill;text-shadow:0 1px 0 rgba(0,0,0,.9);filter:drop-shadow(0 2px 2px rgba(0,0,40,.45))}
.tmr.done .tdisc{animation:tmrPulse 1.2s ease-in-out infinite}
@keyframes tmrPulse{50%{transform:scale(1.12);box-shadow:0 3px 0 #8a2a7a,0 0 14px 4px rgba(255,230,120,.95)}}

/* ---------- his rule (2026-11-23): white writing on a button or pill always has a black outline ---------- */
.node .badge,#chestOpen,.evcard em,.evcard .fnew,#qTabs button,.shoprow .btn.buy,#walletCoins i,.sp-time,.sp-mult i.on,.sp-cols b,.sp-cols b.g,.sp-bar b,#pass .btn.sp-buy,.sp-row.on .sp-num::after,.pk-allbtn,.alb-all,.alb-pack,#pass .btn.sp-claim{
  -webkit-text-stroke:1.6px #000!important;paint-order:stroke fill!important;text-shadow:0 2px 0 rgba(0,0,0,.9),0 3px 6px rgba(0,0,0,.6)!important}
.evcard em,.evcard .fnew,.node .badge,.sp-mult i.on,.sp-row.on .sp-num::after,#walletCoins i{-webkit-text-stroke-width:1.2px!important}
/* the daily challenge medallion: a green tag while it can be played (his rule 2026-11-23) */
.sides .med.go .tag{filter:hue-rotate(-70deg) saturate(1.5) drop-shadow(0 2px 2px rgba(0,0,40,.4))!important}
.sides .med.clk .tag{font-size:12px!important;padding-left:8px!important;padding-right:8px!important;letter-spacing:-.2px}
/* the Coin Rush window: its icon and a big ticking clock in our dark glossy pill */
.rush-info{display:flex;flex-direction:column;align-items:center;margin:2px 0 8px}
.rush-info img{width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(120,60,0,.35));animation:bob 2.6s ease-in-out infinite}
.rush-info b{margin-top:-8px;padding:7px 22px 10px;background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat;color:#fff;font:900 24px/1 Nunito,sans-serif;
  -webkit-text-stroke:1.6px #000;paint-order:stroke fill;text-shadow:0 2px 0 rgba(0,0,0,.9);filter:drop-shadow(0 3px 3px rgba(0,0,40,.45))}
/* his notes (2026-11-23): the red-orange dot a little smaller; the event windows (Sugar Tower first) fit a phone screen so Start shows without scrolling */
.evcard.dot .evdot,.med.dot::after,#walletMe.dot::after,#pfCollection.dot::after,.nav button.dot::after,.col-tabs button.dot::after{width:11px!important;height:11px!important;border-width:1.5px!important}
@media (max-height:820px){
  .evx .evx-hero img{height:clamp(54px,10vh,104px)}
  .evx .evx-pot{transform:rotate(6deg) scale(.85);transform-origin:bottom right}
  .evx p.small{font-size:12.5px;line-height:1.25;margin:3px 0 4px}
  .tw-floors{gap:3px;margin:3px 0 5px}
  .tw-fl{height:clamp(22px,3.7vh,34px)}
  .tw-ground{height:20px}
  .tw-me{height:clamp(30px,5.4vh,44px)}
}
/* ---------- Sugar Tower in glossy 3D (his note 2026-11-23: it looked amateur). Seven candy-cake layers, narrower toward the top,
   each with white icing drips, a shine, a dark 3D edge underneath and a glossy number badge. Floors not reached yet are paler. ---------- */
.tw-floors{gap:0!important;margin:6px 0 8px!important;padding-top:4px}
.tw-fl,.tw-fl:nth-child(odd),.tw-fl:nth-child(even){transform:none}
.tw-fl{width:calc(min(262px,74vw) * (1 - (var(--k,1) - 1) * .055))!important;margin-top:-1px;border-radius:15px 15px 11px 11px;padding:0 12px 0 10px;gap:8px;filter:saturate(.5) brightness(.97);
  background:linear-gradient(180deg,hsl(var(--h) 100% 84%) 0%,hsl(var(--h) 90% 66%) 42%,hsl(var(--h) 82% 52%) 100%)!important;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.8),inset 0 -5px 0 hsl(var(--h) 75% 36% / .55),inset 10px 0 12px -8px rgba(255,255,255,.6),inset -10px 0 12px -8px rgba(40,0,40,.25),
    0 4px 0 hsl(var(--h) 70% 32%),0 7px 9px rgba(40,0,60,.32)!important}
.tw-fl::before{content:'';position:absolute;left:8px;right:8px;top:-2px;height:10px;pointer-events:none;
  background:radial-gradient(circle at 7px 0,rgba(255,255,255,.95) 0 5.5px,transparent 6px) 0 0/15px 10px repeat-x;filter:drop-shadow(0 1px 0 rgba(0,0,0,.12))}
.tw-fl::after{content:'';position:absolute;left:14px;top:4px;width:38%;height:28%;border-radius:10px;background:linear-gradient(rgba(255,255,255,.75),rgba(255,255,255,0));pointer-events:none}
.tw-fl b{flex:none;width:clamp(20px,3.2vh,26px)!important;height:clamp(20px,3.2vh,26px);border-radius:50%;display:grid;place-items:center;position:relative;z-index:1;
  background:radial-gradient(circle at 35% 28%,#fff 0 20%,#f6f2ff 45%,#d8d0ee);color:hsl(var(--h) 75% 38%)!important;font:900 14px/1 Nunito,sans-serif!important;
  text-shadow:0 1px 0 #fff!important;-webkit-text-stroke:0!important;box-shadow:0 2px 0 hsl(var(--h) 70% 30%),inset 0 -2px 2px rgba(80,40,120,.25)}
.tw-fl span{position:relative;z-index:1;color:#fff!important;font:900 12px/1 Nunito,sans-serif!important;-webkit-text-stroke:1.2px #000;paint-order:stroke fill;text-shadow:0 1px 0 rgba(0,0,0,.8)}
.tw-fl em{position:relative;z-index:1;color:#fff!important;font:900 15px/1 Nunito,sans-serif!important;-webkit-text-stroke:1.4px #000;paint-order:stroke fill;text-shadow:0 2px 0 rgba(0,0,0,.8)}
.tw-fl>img:not(.tw-me){position:relative;z-index:1;height:24px!important;filter:drop-shadow(0 2px 1px rgba(0,0,0,.35))}
.tw-fl.got,.tw-fl.next{filter:none}
.tw-fl.got b{background:radial-gradient(circle at 35% 28%,#fff 0 20%,#eafff0 45%,#b9ecc8)}
.tw-fl.got b::after{content:'✓';position:absolute;left:calc(100% + 4px);top:50%;transform:translateY(-50%);width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#b6ff8e,#2ec05a 60%,#1a8a3a);
  color:#fff;font:900 10px/15px Nunito,sans-serif;text-align:center;border:1.5px solid #fff;-webkit-text-stroke:0;text-shadow:0 1px 0 rgba(0,60,10,.6)}
.tw-fl.next{animation:twNext3 1.2s ease-in-out infinite}
@keyframes twNext3{50%{box-shadow:inset 0 3px 0 rgba(255,255,255,.8),inset 0 -5px 0 hsl(var(--h) 75% 36% / .55),0 4px 0 hsl(var(--h) 70% 32%),0 0 0 3px #fff,0 0 16px 6px rgba(255,220,80,.95)}}
.tw-fl.top{filter:none;background:linear-gradient(180deg,#fffbe0 0%,#ffe25a 40%,#f5b11c 100%)!important;
  box-shadow:inset 0 3px 0 #fff,inset 0 -5px 0 rgba(150,80,0,.45),0 4px 0 #a86a00,0 0 14px rgba(255,210,60,.7),0 7px 9px rgba(60,30,0,.3)!important}
.tw-fl.top b{color:#b06a00!important}
.tw-ground{height:16px!important;width:calc(min(262px,74vw) + 16px)!important;margin-top:2px;border-radius:50%;background:radial-gradient(ellipse at 50% 30%,rgba(120,60,160,.35),rgba(120,60,160,0) 70%)}
.tw-floors:not(:has(.got,.next)) .tw-fl{filter:none}
/* ---------- Sweet Race, glossy (2026-11-23): one colour per player, glossy tube tracks with a finish flag, the player search ---------- */
.rc-lanes{gap:5px!important}
.rc-lane{--pc:#2f9bff;position:relative;padding:5px 9px 5px 7px!important;border-radius:16px!important;background:linear-gradient(180deg,#fff 0%,#f4ecff 100%)!important;
  box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 rgba(120,80,170,.15),0 3px 0 rgba(110,60,160,.25),0 4px 8px rgba(60,20,90,.15)!important}
.rc-lane::before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:5px;border-radius:0 4px 4px 0;background:var(--pc)}
.rc-lane.me{background:linear-gradient(180deg,#fffbe8,#ffe9a6)!important;box-shadow:inset 0 2px 0 #fff,0 0 0 2.5px var(--pc),0 3px 0 rgba(170,100,0,.35),0 0 12px rgba(255,170,40,.55)!important}
.rc-pos{width:20px!important;height:20px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff!important;font:900 12px/1 Nunito,sans-serif!important;
  background:radial-gradient(circle at 35% 28%,#fff 0 12%,var(--pc) 45%,color-mix(in srgb,var(--pc) 70%,#000));box-shadow:0 2px 0 color-mix(in srgb,var(--pc) 60%,#000);
  -webkit-text-stroke:1.2px #000;paint-order:stroke fill}
.rc-av{flex:none;border-radius:50%;padding:2px;background:var(--pc);box-shadow:0 2px 0 color-mix(in srgb,var(--pc) 60%,#000),inset 0 1px 0 rgba(255,255,255,.6)}
.rc-av .lav{display:block;width:32px!important;height:32px!important}
.rc-track{height:16px!important;border-radius:10px!important;overflow:visible!important;background:linear-gradient(180deg,#e6dcf2,#f8f4fd)!important;box-shadow:inset 0 2px 4px rgba(60,20,90,.25),0 1px 0 #fff!important}
.rc-track i{position:absolute;left:0;top:0;bottom:0;border-radius:10px;background:linear-gradient(180deg,color-mix(in srgb,var(--pc) 40%,#fff) 0%,var(--pc) 45%,color-mix(in srgb,var(--pc) 75%,#000) 100%)!important;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.15);transition:width .6s}
.rc-track i::after{content:'';position:absolute;left:5px;right:5px;top:2px;height:35%;border-radius:6px;background:linear-gradient(rgba(255,255,255,.75),rgba(255,255,255,0))}
.rc-track img{display:none}
.rc-track em{position:absolute;right:-6px;top:50%;transform:translateY(-55%);font-style:normal;font-size:15px;line-height:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}
.rc-lane>b{color:#4a1a60!important}
@keyframes rcIn{from{transform:translateX(-30px) scale(.9);opacity:0}}
.rc-pz{background:linear-gradient(180deg,#fff,#f3eaff)!important;box-shadow:inset 0 2px 0 #fff,0 2px 0 rgba(110,60,160,.25)}
/* the search for players */
.rc-find{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 4px 16px;margin:4px 0;border-radius:18px;background:linear-gradient(180deg,#fff,#efe4ff);box-shadow:inset 0 2px 0 #fff,0 3px 0 rgba(110,60,160,.25);animation:rcIn .35s both}
.rc-find.out{animation:rfOut .4s forwards}
@keyframes rfOut{to{opacity:0;transform:scale(.92)}}
.rf-t{font:900 17px/1 Nunito,sans-serif;color:#7a3aa0}
.rf-row{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.rf-slot{--pc:#2f9bff;display:flex;flex-direction:column;align-items:center;gap:4px;width:58px}
.rf-slot>.lav,.rf-face{width:48px;height:48px;border-radius:50%;padding:3px;background:#d8cce8;box-shadow:0 3px 0 rgba(80,40,120,.3);display:block}
.rf-face .lav,.rf-slot>.lav{width:100%!important;height:100%!important;display:block}
.rf-slot:not(.lock):not(.me) .rf-face{filter:blur(.6px) saturate(.6);animation:rfSpin .22s linear infinite}
@keyframes rfSpin{50%{transform:translateY(-3px)}}
.rf-slot.lock .rf-face,.rf-slot.me>.lav{background:var(--pc);box-shadow:0 3px 0 color-mix(in srgb,var(--pc) 60%,#000),0 0 14px color-mix(in srgb,var(--pc) 70%,transparent);animation:rfLock .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes rfLock{from{transform:scale(1.4)}}
.rf-slot small{font:900 10px/1.1 Nunito,sans-serif;color:#fff;text-align:center;-webkit-text-stroke:1.1px #000;paint-order:stroke fill;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-row{gap:5px;flex-wrap:nowrap}.rf-slot{width:50px}.rf-slot>.lav,.rf-face{width:42px;height:42px}.rf-slot small{max-width:50px;font-size:9px}
.rc-track{height:18px!important}
/* ---------- Sugar Tower extras (2026-11-23): floor prizes, faces on your floor, players falling off, the parachute, coin rain ---------- */
.tw-floors{position:relative}
.tw-fp{position:relative;z-index:1;display:flex;align-items:center;gap:2px;padding:2px 7px 2px 3px;border-radius:12px;font-style:normal;background:linear-gradient(180deg,#fff,#ffeeb0);box-shadow:0 2px 0 rgba(150,90,0,.45),inset 0 1px 0 #fff}
.tw-fp img{height:18px}.tw-fp u{text-decoration:none;font:900 12px/1 Nunito,sans-serif;color:#8a4a00}
.tw-fp.got{filter:grayscale(.2) brightness(.95)}.tw-fp.got::after{content:'✓';position:absolute;right:-5px;top:-6px;width:13px;height:13px;border-radius:50%;background:#2ec05a;color:#fff;font:900 9px/13px Nunito,sans-serif;text-align:center;border:1.5px solid #fff}
.tw-faces{display:inline-flex;margin-right:4px;vertical-align:middle}
.tw-faces .lav{width:20px!important;height:20px!important;margin-left:-6px;border:1.5px solid #fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.tw-faces .lav:first-child{margin-left:0}
.tw-drop{position:absolute;z-index:5;pointer-events:none}.tw-drop .lav{width:30px!important;height:30px!important;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.35)}
.tw-fell{position:absolute;left:50%;z-index:6;transform:translateX(-50%);color:#fff;font:900 20px/1 Nunito,sans-serif;-webkit-text-stroke:1.6px #000;paint-order:stroke fill;text-shadow:0 2px 0 rgba(0,0,0,.8);pointer-events:none;animation:twFell 2.6s ease-out both}
@keyframes twFell{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}15%{opacity:1;transform:translate(-50%,0) scale(1.15)}25%{transform:translate(-50%,0) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-24px)}}
.tw-calc{display:inline-block;margin-top:4px;padding:4px 12px 6px;background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat;color:#fff;font:900 15px/1 Nunito,sans-serif;-webkit-text-stroke:1.2px #000;paint-order:stroke fill}
.tw-coin{position:absolute;top:60px;width:28px;height:28px;z-index:20;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
#towerPara{background:url(art/btn_green.webp) center/100% 100% no-repeat!important}
/* the daily challenge: no helpers locks the tools; the intro sign of each day */
.tools.locked .btn:not(#undoBtn):not(#maybeBtn):not(#clearBtn){filter:grayscale(1) opacity(.45);position:relative}
.tools.locked .btn:not(#undoBtn):not(#maybeBtn):not(#clearBtn)::after{content:'🔒';position:absolute;right:-2px;top:-4px;font-size:14px;filter:none}
.nox-x.dm{font-size:64px;line-height:1;color:inherit;-webkit-text-stroke:0}
/* unlock with coins (2026-11-23) */
.colcell.lock .unl-price{display:inline-flex;align-items:center;gap:2px;font-style:normal;color:#fff;-webkit-text-stroke:1.2px #000;paint-order:stroke fill;background:url(art/ui_pill_dark.webp) center/100% 100% no-repeat;padding:2px 8px 4px;border-radius:0}
.colcell.lock .unl-price svg,.cwrap small svg{width:13px;height:13px}
.cwrap small{display:inline-flex;align-items:center;gap:2px}
.unl-prev{display:flex;justify-content:center;margin:2px 0 6px}.unl-prev img{height:120px;filter:drop-shadow(0 4px 6px rgba(60,0,80,.3))}
.unl-dot{display:block;width:80px;height:80px;border-radius:50%;border:4px solid #fff;box-shadow:0 4px 0 rgba(0,0,0,.2),inset 0 -6px 10px rgba(0,0,0,.2),inset 0 6px 10px rgba(255,255,255,.5)}
.qm-pass{height:18px;vertical-align:-4px}
.colcell .unl-price img.ico,.cwrap small img.ico{width:14px!important;height:14px!important;margin:0!important;filter:none}
.colcell.lock .unl-price{font-size:12px!important;font-weight:900;background-color:transparent!important}
/* the lose window: what you are about to lose (2026-11-23) */
.lose-list{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:6px 0 8px;padding:9px 10px 8px;border-radius:16px;background:linear-gradient(180deg,#fff4f6,#ffe0e8);box-shadow:inset 0 2px 0 #fff,0 3px 0 rgba(200,60,90,.25)}
.lose-list .ll-t{font:900 15px/1.2 Nunito,sans-serif;color:#c2185b;text-align:center}
.lose-list .ll-it{display:flex;align-items:center;gap:9px;padding:4px 10px;border-radius:12px;background:#fff;box-shadow:0 2px 0 rgba(200,60,90,.2);animation:llIn .4s cubic-bezier(.3,1.5,.5,1) both}
.lose-list .ll-it:nth-child(3){animation-delay:.1s}.lose-list .ll-it:nth-child(4){animation-delay:.2s}.lose-list .ll-it:nth-child(5){animation-delay:.3s}
.lose-list .ll-it img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
.lose-list .ll-it em{font:900 14px/1.2 Nunito,sans-serif;font-style:normal;color:#5a1a3a;text-align:left}
.lose-list small{font:800 12px/1.2 Nunito,sans-serif;color:#9a4a6a;text-align:center}
@keyframes llIn{from{transform:translateX(-20px);opacity:0}}
#lose.haslist .lose-gumi img{height:78px!important;width:auto!important}#lose.haslist .lose-gumi{margin:-4px 0 0!important}#lose.haslist .card>p:not(.small){margin:2px 0!important;font-size:14px}
.lose-list{display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important;padding:7px 8px 6px!important}.lose-list .ll-t,.lose-list small{grid-column:1/-1}
.lose-list .ll-it{padding:3px 6px!important;gap:6px!important}.lose-list .ll-it img{width:26px!important;height:26px!important}.lose-list .ll-it em{font-size:12px!important}
#lose.haslist .lose-gumi{height:auto!important;min-height:0!important;padding:0!important}
/* the language list (2026-11-23) */
.langmenu{position:fixed;inset:0;z-index:9500;display:grid;place-items:center;background:rgba(30,10,50,.45)}
.lm-card{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px;border-radius:22px;background:linear-gradient(180deg,#fffaf0,#ffeccc);box-shadow:0 6px 0 #c98a3a,0 12px 30px rgba(0,0,0,.35);width:min(320px,86vw)}
.lm-it{display:flex;align-items:center;gap:8px;padding:10px 12px 12px;border:0;background:url(art/btn_blue.webp) center/100% 100% no-repeat;color:#fff;font:900 15px/1 Nunito,sans-serif;-webkit-text-stroke:1.4px #000;paint-order:stroke fill;text-shadow:0 2px 0 rgba(0,0,0,.8);cursor:pointer}
.lm-it span{font-size:20px;-webkit-text-stroke:0}
.lm-it.on{background-image:url(art/btn_green.webp)}
/* the win stars land quicker (2026-11-23) */
.stars svg.show,#win .stars img.star.show{animation-duration:.52s!important}

/* Japanese (2026-11-23): Noto Sans JP after the Latin fonts */
html[lang=ja]{--display:'Baloo 2','Noto Sans JP','Trebuchet MS',system-ui,sans-serif;--body:'Nunito','Noto Sans JP',system-ui,sans-serif}
html[lang=ja] body{font-family:var(--body)}

/* win stars with more punch (his note 2026-11-23): each star slams down from big, squashes on impact, bounces back; a gold shock ring and a white flash */
#win .stars img.star.show{animation:starslam .5s cubic-bezier(.5,0,.75,0) both!important}
#win .stars img.star.show:not(.off){animation-name:starslam,starglow!important;animation-duration:.5s,1.1s!important;animation-timing-function:cubic-bezier(.5,0,.75,0),ease-out!important}
@keyframes starslam{0%{opacity:0;transform:scale(3.4) rotate(-35deg)}45%{opacity:1}50%{transform:scale(.7,.62) rotate(0)}68%{transform:scale(1.28) rotate(4deg);animation-timing-function:ease-out}84%{transform:scale(.94) rotate(-2deg)}100%{opacity:1;transform:none}}
@keyframes starglow{0%,45%{filter:drop-shadow(0 0 0 #fff0)}52%{filter:brightness(2.2) drop-shadow(0 0 22px #fff6b0)}100%{filter:drop-shadow(0 0 12px rgba(255,225,77,.9)) drop-shadow(0 4px 2px rgba(110,60,0,.45))}}
.star-ring{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:5px solid #ffe14d;box-shadow:0 0 14px #ffe14d,inset 0 0 10px #fff8;pointer-events:none;animation:starring .6s cubic-bezier(.2,.8,.3,1) forwards}
@keyframes starring{0%{opacity:1;transform:scale(.6)}100%{opacity:0;transform:scale(6.5);border-width:1px}}
@media (prefers-reduced-motion:reduce){#win .stars img.star.show{animation:none!important}.star-ring{display:none}}

/* v435 (2026-11-24): win card laid out once in advance, invisibly (app.js warmWin); game animations rest under the win card; a new board's squares wait for the fade */
#win.warm[hidden]{display:grid!important;opacity:.001!important;pointer-events:none!important}
#win.warm *{pointer-events:none!important}
body.wincard #game *,body.wincard #game *::before,body.wincard #game *::after{animation-play-state:paused!important}
.board.dealwait .cell{animation-play-state:paused}
/* v435: rules legend under the helpers, locked helpers, row+column flash */
.rules-mini{display:flex;gap:6px;justify-content:center;flex:none;margin-top:-4px}
.rm-card{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:5px;padding:5px 6px;background:rgba(255,255,255,.92);border:2px solid var(--frame-edge);border-radius:14px;box-shadow:0 3px 0 rgba(120,80,30,.35),inset 0 2px 0 #fff,inset 0 -4px 6px rgba(200,150,80,.18)}
.rm-g{display:grid;grid-template-columns:repeat(3,14px);grid-auto-rows:14px;gap:2px;flex:none}
.rm-c{position:relative;border-radius:3px;background-color:var(--c);background-image:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0) 52%,rgba(0,0,0,.12));box-shadow:inset 0 -1.5px 0 rgba(0,0,0,.18)}
.rm-c svg{position:absolute;left:-2px;top:-2px;width:18px;height:18px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.3))}
.rm-c .x{position:absolute;inset:18%;background:linear-gradient(45deg,transparent 38%,#fff 38% 62%,transparent 62%),linear-gradient(-45deg,transparent 38%,#fff 38% 62%,transparent 62%);filter:drop-shadow(0 .5px .5px rgba(0,0,0,.35))}
.rm-t{font-size:10px;line-height:1.15;font-weight:900;color:#6a2fb0;text-align:left;overflow-wrap:normal;word-break:normal;hyphens:none}
@media (max-height:700px){.rules-mini{display:none}}
.tools .btn.tlock .tico{filter:grayscale(.75) brightness(.92)}
.tools .btn.tlock .badge{display:none}
.tools .btn .tlk{position:absolute;right:-4px;top:-6px;width:26px;height:26px;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(40,0,80,.45))}
.rc-flash{position:absolute;pointer-events:none;z-index:2;border-radius:12px;opacity:0;background:rgba(255,255,255,.28);box-shadow:0 0 0 2px rgba(255,255,255,.85),0 0 14px rgba(255,236,140,.9)}
.rm-card:nth-child(2){flex-grow:1.3}
/* v436 (his note 2026-11-24): helpers sit close under the board (their number badges still clear it); rule labels never leave their card */
#game .tools,#game.full .tools{margin-top:-40px}
.rm-card{overflow:hidden}
.rules-mini.stack .rm-card{flex-direction:column;gap:3px;padding:5px 4px}
.rules-mini.stack .rm-t{text-align:center;overflow-wrap:anywhere}
/* v438 (his note 2026-11-24): legend candies a bit smaller, in a colour unlike their square (cookie on pink, cherries on green, ice cream on purple) */
.rm-c svg{left:1px;top:1px;width:12px;height:12px;filter:drop-shadow(0 0 1.5px rgba(255,255,255,.95)) drop-shadow(0 1px 1px rgba(0,0,0,.35))}
/* v439: the row/column highlight is a clear white band with a dark edge (first 20 levels) */
.rc-flash{background:rgba(255,255,255,.38);box-shadow:0 0 0 3px #fff,0 0 0 5px rgba(40,0,80,.55),0 0 16px rgba(255,255,255,.9)}
/* v441 (his request 2026-11-24): a compact board screen. No settings button; smaller title bar, level and tier; small fixed spaces between
   the parts (the board itself is sized by app.js fitBoard to the room that is left), so nothing touches anything */
#gearBtn{display:none!important}
body.in-game #game.screen{gap:0;padding-top:8px;padding-bottom:10px}
#game > *{margin-top:0;margin-bottom:0}
body.in-game #game .bar{padding:3px 8px;border-width:3px;border-radius:18px;box-shadow:0 4px 0 #e0902a,0 8px 16px rgba(40,0,80,.3)}
#game .bar .icon{width:38px;height:38px}
#game .bar .icon svg{width:20px;height:20px}
#game .bar .title b,body.in-game #game .bar .title b{font-size:19px;line-height:1.1}
#game .hearts img{width:22px;height:22px}
#game .hearts svg{width:16px;height:16px}
#game .tier{margin:7px auto 0!important;font-size:11px;letter-spacing:1px;padding:2px 10px}
#game .chaltimer{margin-top:6px!important}
#game .bosshud{margin:6px auto 0!important;height:30px}
#game .found{margin:7px auto 0!important;height:32px;gap:5px;padding:0 10px}
#game .found svg{width:22px!important;height:22px!important}
#game .boardwrap,#game .boardwrap.n10{margin-top:9px!important;margin-bottom:0!important}
#game .tools,#game.full .tools{margin-top:17px!important}
#game .rules-mini{margin-top:8px}
#game .toast{position:absolute!important;left:12px;right:12px;bottom:auto;top:52%;z-index:30;pointer-events:none}
#game .toast:empty{display:none}
@media (max-height:700px){#game .rules-mini{display:flex}}
@media (max-height:600px){#game .rules-mini{display:none}}
.sndmenu{position:absolute;top:58px;right:14px;z-index:40;display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:18px;background:linear-gradient(180deg,#fff8ea,#ffe2aa);border:3px solid #ffc247;box-shadow:0 4px 0 #e0902a,0 12px 22px rgba(40,0,80,.35)}
.sndmenu[hidden]{display:none}
.sndmenu .opt{display:flex;align-items:center;justify-content:space-between;gap:14px;font-weight:900;color:#5b2a14;font-size:15px;white-space:nowrap}
#game > .found,#game > .tier,#game > .bosshud,#game > .chaltimer{top:0!important}
#game .bar{margin-bottom:var(--spare,0px)!important}
/* Vinegar's words show inside his own bar (over the HP bar) instead of hanging over the found candies */
#game .bosssay{top:2px;bottom:2px;left:58px;right:6px;max-width:none;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;padding:0 10px;border-radius:14px;transform-origin:50% 50%}
/* v442 (his notes 2026-11-24): everything on the board screen ~5 mm lower (clear of the selfie camera); the rule cards keep clear of the phone's edges */
body.in-game #game.screen{padding-top:calc(26px + env(safe-area-inset-top,0px))}
#game .sndmenu{top:calc(76px + env(safe-area-inset-top,0px))}
#game .rules-mini{width:auto;max-width:400px;margin-left:auto!important;margin-right:auto!important;padding:0 14px;box-sizing:border-box;align-self:stretch;gap:6px}
#game .rules-mini .rm-card{padding:5px 4px 4px}
/* v443 (his note 2026-11-24): title bar and everything under it about 1 cm lower, and the whole stack centred top-to-bottom (app.js sets --spare) */
body.in-game #game.screen{padding-top:calc(40px + env(safe-area-inset-top,0px) + var(--spare,0px))}
#game .bar{margin-bottom:0!important}
#game .sndmenu{top:calc(90px + env(safe-area-inset-top,0px) + var(--spare,0px))}
/* v445 (his note 2026-11-24): helpers close under the board (their number badges just clear its ledge), rule cards close under the helpers */
#game .tools,#game.full .tools{margin-top:13px!important}
#game .rules-mini{margin-top:7px!important}
/* v445: the old place-holder the first message leaves behind (44px between the board and the helpers) takes no room any more; messages float */
#game .toast-gap{display:none!important}
#game .tools .btn.free::after{bottom:-3px}
/* v446 (his phone 2026-11-24): the page is drawn under Android's bottom bar (viewport-fit=cover), so the board screen keeps that bar's height free at the bottom;
   helpers sit closer to the board: their number badges and locks stick out less above the buttons */
body.in-game #game.screen{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
#game .tools .btn .badge{top:-3px!important}
#game .tools .btn .tlk{top:-4px}
/* v448 (his note 2026-11-25): Sweet Pass buttons were too wide. The Free / Sweet Pass column labels are compact pills, Close is a normal-size button */
#pass .sp-cols b{justify-self:center;width:auto!important;min-width:0;padding:6px 18px 9px!important;font-size:13px!important}
#pass .sp-cols b.g{font-size:12.5px!important;padding:6px 14px 9px!important}
#pass .btn#passClose{width:auto!important;min-width:150px;padding:10px 34px 13px!important;font-size:19px!important;margin-left:auto!important;margin-right:auto!important;display:block}
/* v451 (his note 2026-11-25): the number on every helper is the same size (the lamp and wand had bigger ones) and a bit smaller, so it hides less of the helper */
#game .tools .btn .badge,#game #hintBtn .badge,#game #wandBtn .badge{top:-3px!important;right:-4px!important;min-width:16px!important;height:16px!important;padding:0 3px!important;border-radius:8px!important;font:900 10px/16px 'Nunito',system-ui,sans-serif!important}
/* v452 (his note 2026-11-25): on a night level every helper lights what it uncovered (car row, rocket column, sweeper X's) while it is shown */
.board.night.spot .cell.lit{--nd:0!important}
/* v455 (his request 2026-11-25): the new Sugar Tower, a tower of glossy donuts */
#tower .evx-hero{display:none!important}
#tower .tw2-pills{display:flex;gap:8px;justify-content:center;margin:0 0 6px}
#tower #towerTimer,.tw2-pill{display:inline-flex;align-items:center;gap:6px;margin:0;padding:5px 12px 7px;border-radius:999px;background:linear-gradient(180deg,#2c5f8f,#0f2e52);color:#fff;font:900 14px/1 Nunito,sans-serif;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 3px 0 #061a33}
#tower #towerTimer[hidden],.tw2-pill[hidden]{display:none}
.tw2-pill.p{background:linear-gradient(180deg,#c86bff,#7a1fd0);box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 3px 0 #4a0f8a}
.tw2-stage{position:relative;display:block;height:clamp(220px,calc(100dvh - 400px),470px);aspect-ratio:768/1376;max-width:100%;margin:0 auto;padding:0;border-radius:20px;overflow:hidden;box-shadow:inset 0 0 0 3px rgba(255,255,255,.6),0 4px 12px rgba(80,20,120,.25)}
.tw2-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.tw2-n{position:absolute;left:5%;width:11%;aspect-ratio:1;transform:translateY(-50%);border-radius:50%;display:grid;place-items:center;font:900 clamp(11px,3.6vw,15px)/1 Nunito,sans-serif;color:#6a2fb0;background:radial-gradient(circle at 35% 30%,#fff,#e8dcff);box-shadow:0 2px 0 rgba(80,30,140,.5),0 3px 6px rgba(0,0,0,.25);z-index:2}
.tw2-n.done{background:radial-gradient(circle at 35% 30%,#b9ff9a,#2fbf3a);color:#fff;text-shadow:0 1px 0 #0d6a17}
.tw2-n.now{box-shadow:0 0 0 3px #ffd84a,0 0 12px #ffd84a;animation:tw2Now 1.2s ease-in-out infinite}
@keyframes tw2Now{50%{box-shadow:0 0 0 4px #ffd84a,0 0 20px #ffd84a}}
.tw2-prize{position:absolute;right:2%;transform:translateY(-50%);display:flex;align-items:center;gap:2px;padding:3px 8px 3px 3px;border-radius:999px;background:linear-gradient(180deg,#fffbe8,#ffe39a);border:2px solid #ffc247;font:900 13px/1 Nunito,sans-serif;color:#8a4a00;box-shadow:0 3px 0 #e0902a,0 5px 9px rgba(0,0,0,.25);z-index:2}
.tw2-prize img{width:24px;height:24px}.tw2-prize u{text-decoration:none}
.tw2-prize.got{filter:saturate(.55) brightness(1.04);opacity:.85}
.tw2-prize.got::after{content:'✓';position:absolute;right:-6px;top:-8px;width:18px;height:18px;border-radius:50%;background:#2fbf3a;color:#fff;font:900 12px/18px Nunito,sans-serif;text-align:center}
.tw2-me{position:absolute;width:17%;transform:translate(-50%,-100%);filter:drop-shadow(0 4px 4px rgba(60,0,80,.45));z-index:3;pointer-events:none}
.tw2-pot{position:absolute;left:50%;top:2.5%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:3px 11px 4px 4px;border-radius:999px;background:linear-gradient(180deg,#ffe56a,#f0a010);color:#6a3a00;font:900 15px/1 Nunito,sans-serif;box-shadow:0 3px 0 #b86a00;white-space:nowrap;z-index:2}
.tw2-pot img{width:24px;height:24px}
.tw2-pot.win{animation:tw2Pot .9s ease-in-out 3}
@keyframes tw2Pot{50%{transform:translateX(-50%) scale(1.18);box-shadow:0 3px 0 #b86a00,0 0 24px #ffe56a}}
.tw2-i{position:absolute;right:3%;top:2.5%;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#6a2fb0;font:900 16px/28px Georgia,serif;text-align:center;box-shadow:0 2px 4px rgba(0,0,0,.25);z-index:4;cursor:pointer}
.tw2-stage .tw-fell{position:absolute;left:50%;transform:translateX(-50%);z-index:5;white-space:nowrap}
#tower #towerInfo{margin:8px 6px 6px}
#tower #towerClose{display:none!important}   /* the red X closes it */
/* v459 (his pick 2026-11-25): sticker pack tears open. The stage sits over the cards' place, so nothing below moves when it goes. */
.pack-card{position:relative}
.pack-card .pk-cards{min-height:190px;align-items:center;position:relative;z-index:1}
.pack-card .pk-stage{position:absolute;left:0;right:0;top:64px;height:200px;z-index:3;pointer-events:none;transition:opacity .25s}
.pack-card .pk-stage.gone{opacity:0}
.pk-wrap{position:relative;display:block;height:180px;aspect-ratio:1}
.pk-wrap .pk-pack{position:absolute;inset:0;height:100%;width:100%;object-fit:contain}
.pk-wrap .pk-top{clip-path:inset(0 0 76% 0);transform-origin:20% 24%}
.pk-wrap .pk-bot{clip-path:inset(24% 0 0 0)}
.pk-tear{position:absolute;left:14%;right:14%;top:23%;height:5px;border-radius:3px;transform:scaleX(0);transform-origin:left center;opacity:0;
  background:linear-gradient(90deg,#fff,#fff6a8,#fff);box-shadow:0 0 10px 3px rgba(255,240,150,.95),0 0 22px 6px rgba(255,140,220,.6)}
/* v459: the pack at a fixed size, and the Collect button keeps its place while hidden (the window must not jump) */
.pk-wrap{width:150px!important;height:150px!important;flex:none}
.pack-card .pk-stage{display:flex;align-items:center;justify-content:center;top:70px;height:190px}
#packDone[hidden]{display:block!important;visibility:hidden}
/* v460: rival portraits fill their circle */
.lav.face{background:#fff}.lav.face img{width:100%;height:100%;object-fit:cover}
/* v463 (his rule 2026-11-25): the board frame wears the colour of its tier label - Hard purple, Very Hard red, Super Hard dark blue, Extremely Hard black */
#board.hard{--edge:#9b4dff!important;--edge2:#5a1fa8!important;border-color:#9b4dff!important;box-shadow:0 8px 0 #5a1fa8,0 0 0 3px rgba(255,255,255,.55),0 0 22px rgba(155,77,255,.55),0 18px 30px rgba(40,0,80,.35)!important}
#board.veryhard{--edge:#ff3d2e!important;--edge2:#a31d00!important;border-color:#ff3d2e!important;box-shadow:0 8px 0 #a31d00,0 0 0 3px rgba(255,255,255,.55),0 0 22px rgba(255,61,46,.55),0 18px 30px rgba(40,0,80,.35)!important}
#board.super,#board.veryhard.super{--edge:#2f5cff!important;--edge2:#0c2470!important;border-color:#2f5cff!important;box-shadow:0 8px 0 #0c2470,0 0 0 3px rgba(255,255,255,.55),0 0 24px rgba(47,92,255,.6),0 18px 30px rgba(10,20,80,.4)!important}
#board.extreme{--edge:#1c1c22!important;--edge2:#000!important;border-color:#1c1c22!important;box-shadow:0 8px 0 #000,0 0 0 3px rgba(255,255,255,.55),0 0 20px rgba(0,0,0,.65),0 18px 30px rgba(0,0,0,.45)!important}
/* v466 (his request 2026-11-25): the found-candies bar above the board spans the board's width (same height), the candies spread out and a bit bigger */
#game .found{justify-content:space-evenly;box-sizing:border-box;max-width:calc(100% - 16px)}
#game .found svg{width:26px!important;height:26px!important}
/* v468: soft smoke puffs (drawn at full size, never scaled above 1) */
.vs-puff{will-change:transform,opacity;background:radial-gradient(circle,rgba(240,242,230,.95) 0,rgba(224,228,208,.8) 28%,rgba(205,210,186,.45) 50%,rgba(196,200,176,.15) 64%,rgba(190,194,170,0) 72%)!important}
.vs-cv{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#game .bosssay{overflow:hidden;white-space:normal;line-height:1.05;word-break:normal;overflow-wrap:break-word}   /* v471: fits inside the bar, centred */
/* v472 (his request 2026-11-25): Sweet Shooter (the Zuma game) much bigger on the screen - the window nearly as wide as the phone, the board as big as the height allows */
#quick.zuma .card{--cw:min(440px,calc(100vw - 10px))}
#quick.big.zuma #quickInfo{display:block!important;margin:0 0 2px;color:#6a2fb0!important;font-weight:900;text-shadow:none!important}
#quick.big.zuma .qcv{max-width:min(100%,calc((100dvh - 200px) * 300 / 360))!important;margin:0 auto!important}
/* v473: a card coming out of the pack shows its back, full size, until it flips */
.pk-card.out:not(.flip) .pk-in{opacity:1;transform:rotateY(180deg) scale(1)}
.pk-card.out:not(.flip)>b{opacity:0}
/* v475: Vinegar trembles when only a few candies are left */
.bosshud.panic>img{animation:bossPanic .22s linear infinite}
@keyframes bossPanic{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(-1.5px,.5px) rotate(-2deg)}75%{transform:translate(1.5px,-.5px) rotate(2deg)}}
@media (prefers-reduced-motion:reduce){.bosshud.panic>img{animation:none}}

/* v478 (his request): no purple cover between screens - the wipe only blocks taps, the old screen crossfades out over the new one */
#wipe.clear{background:transparent!important}
#wipe.clear>*{display:none!important}
.screen.xfade{position:fixed!important;left:0;right:0;margin:0 auto;width:100%;z-index:45;pointer-events:none}

/* v483 (his rule): every level button wears its WORLD colour, hard ones too; the tier shows only as a framed strip in the tier colour
   (Hard purple, Very Hard red, Super Hard dark blue, Extremely Hard black - same as the board frames) */
.node.hard,.node.veryhard,.node.super,.node.extreme{--nimg:var(--wimg)!important;--nf:hue-rotate(0deg)!important;filter:none!important;color:inherit}
.node.super:not(.locked)::after{box-shadow:none!important;animation:none!important}
.node.extreme:not(.current)::after,.node.super.locked::after{opacity:1}
.node.locked.hard::after,.node.locked.veryhard::after,.node.locked.super::after,.node.locked.extreme::after{opacity:.62}
.node.hard .badge,.node.veryhard .badge,.node.super .badge,.node.extreme .badge{color:#fff!important;border:2px solid #fff!important;border-radius:6px!important;padding:2px 6px!important;font-size:8.5px!important;box-shadow:0 2px 0 rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.25)!important}
.node.hard .badge{background:linear-gradient(180deg,#b57bff,#9b4dff 55%,#7a2fe0)!important}
.node.veryhard .badge{background:linear-gradient(180deg,#ff7a5e,#ff3d2e 55%,#c8200f)!important}
.node.super .badge{background:linear-gradient(180deg,#5a82ff,#2f5cff 55%,#1a3ac0)!important}
.node.extreme .badge{background:linear-gradient(180deg,#4a4a56,#1c1c22 55%,#000)!important}

/* v484 TWO CANDIES: pink-gold strip on the map, the Play card and the level; the intro shows the 2-candy rule cards */
.node .badge.two{background:linear-gradient(180deg,#ff8fd0,#e8189f 55%,#a8006e)!important;color:#fff!important;border:2px solid #ffe14d!important;border-radius:6px!important;padding:2px 6px!important;font-size:8.5px!important;box-shadow:0 2px 0 rgba(0,0,0,.35)!important}
.tier.two,.pl-tier.two{background:linear-gradient(180deg,#ff8fd0,#e8189f)!important;color:#fff!important;border-color:#ffe14d!important;box-shadow:0 3px 0 #8a0058!important}
#ciBody .two-intro{display:flex!important;justify-content:center;gap:8px;margin:4px 0 10px;transform:scale(1.15);transform-origin:top center;padding-bottom:8px}
#game .found.two{gap:0;justify-content:space-between;padding-left:4px;padding-right:4px}
#game .found.two svg{width:calc((100% - 8px) / 20)!important;height:auto!important;aspect-ratio:1;flex:0 0 auto}
/* v488: "Play level N" in the event windows is the green play button and starts the level at once */
.btn.main.play-now{background:url(art/btn_green.webp) center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:#fff;filter:drop-shadow(0 5px 3px rgba(0,40,0,.5))}
/* v490 (his note): bigger text on the green "Play level N" event button (was 19px) */
.card .btn.main.play-now,.btn.main.play-now{font-size:26px;letter-spacing:.3px}   /* v492: 'Next level' a bit bigger */
/* v491: the twists every 50 levels - golden candy, Gumi in a cage, sticky jam, number squares */
.cell.twc{container-type:inline-size}
.cell .tw-num{position:absolute;left:50%;top:50%;width:68%;height:68%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#fff4e0 70%,#f2dcc0);color:#4a2400;display:grid;place-items:center;font:900 46cqi/1 Nunito,sans-serif;box-shadow:0 2px 3px rgba(0,0,0,.35),inset 0 -2px 0 rgba(0,0,0,.08);pointer-events:none}
.ice-intro .tw-num.big{position:relative;display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#fff4e0 70%,#f2dcc0);color:#4a2400;font:900 48px/1 Nunito,sans-serif;box-shadow:0 4px 6px rgba(0,0,0,.35)}
.cell .tw-cage{position:absolute;inset:6%;pointer-events:none;z-index:4}
.cell .tw-cage img{position:absolute;inset:-6%;width:112%;height:112%;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
.cell .tw-cage .bars{position:absolute;inset:0;border-radius:18%;border:2px solid #4e525e;background:repeating-linear-gradient(90deg,rgba(70,74,86,.82) 0 7%,transparent 7% 24%);box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 2px 3px rgba(0,0,0,.35)}
.cell .tw-cage b{position:absolute;left:50%;bottom:-22%;transform:translateX(-50%);background:#fff;color:#4e525e;border:2px solid #4e525e;border-radius:9px;padding:0 4px;font:900 11px/1.35 Nunito,sans-serif;white-space:nowrap}
.cell .tw-jam,.ice-intro .tw-jam.big{position:absolute;inset:10%;pointer-events:none;border-radius:42% 38% 46% 40%;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.75) 0 9%,transparent 11%),radial-gradient(circle at 60% 64%,#d0004f 0 40%,transparent 42%),radial-gradient(circle at 34% 58%,#e2105f 0 30%,transparent 32%),radial-gradient(circle at 64% 34%,#c8004a 0 26%,transparent 28%);filter:drop-shadow(0 2px 2px rgba(80,0,20,.5))}
.ice-intro .tw-jam.big{position:relative;display:inline-block;width:84px;height:84px;inset:auto}
.cell.goldc svg.candy{inset:2%;width:96%;height:96%;filter:drop-shadow(0 0 3px #fff3b0) drop-shadow(0 0 8px #ffb300)!important;animation:pop .45s cubic-bezier(.3,1.6,.5,1) both,goldglow 1.8s ease-in-out .5s infinite}
@keyframes goldglow{50%{filter:drop-shadow(0 0 6px #fff7c8) drop-shadow(0 0 14px #ffc400)}}
.ice-intro .tw-gold-big{width:96px!important;height:96px!important;object-fit:contain;filter:drop-shadow(0 0 6px #fff3b0) drop-shadow(0 0 14px #ffb300)!important}
.cell.twshake{animation:twshake .4s}
@keyframes twshake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.tw-free{position:fixed;z-index:60;transform:translate(-50%,-50%);pointer-events:none;animation:twfree 1.5s ease-out forwards}
@keyframes twfree{0%{transform:translate(-50%,-50%) scale(.6)}30%{transform:translate(-50%,-110%) scale(1.25)}60%{transform:translate(-50%,-60%) scale(1.1);opacity:1}100%{transform:translate(-50%,-160%) scale(.9);opacity:0}}
/* v494: x2 Points clock (Play card button, map timer, info card) + the golden candy mini board in its intro */
#plBoost .bst.dpt b{display:block;font:900 15px/1.1 Nunito,sans-serif;color:#b35a00}
#plBoost .bst.dpt.live{background:linear-gradient(#fff3c0,#ffd34a);border-color:#ff9d00}
.tmr.low .tdisc{animation:dptlow .6s ease-in-out infinite}
.tmr.low b{color:#ff3d2e}
@keyframes dptlow{50%{transform:scale(1.14);box-shadow:0 0 0 3px #ff3d2e,0 0 12px #ff3d2e}}
.dpt-info{display:flex;flex-direction:column;align-items:center;gap:4px;margin:4px 0 6px}
.dpt-info img{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(0,0,0,.3))}
.dpt-info b{font:900 44px/1 Nunito,sans-serif;color:#ff9d00;text-shadow:0 3px 0 #a84f00}
.tw-mini{display:grid;grid-template-columns:repeat(3,54px);gap:4px;justify-content:center;margin:4px auto 10px}
.tw-mini i{position:relative;width:54px;height:54px;border-radius:20%;background:var(--c);background-image:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0) 52%,rgba(0,0,0,.1));box-shadow:inset 0 -3px 0 rgba(0,0,0,.16),inset 0 2px 0 rgba(255,255,255,.35)}
.tw-mini svg,.tw-mini img{position:absolute;inset:7%;width:86%;height:86%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
.tw-mini .mx{position:absolute;inset:26%;background:linear-gradient(45deg,transparent 42%,#fff 42% 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,#fff 42% 58%,transparent 58%);opacity:.9}
.tw-mini .n{animation:twmN 3.2s infinite}
.tw-mini .g{inset:0;width:100%;height:100%;opacity:0;animation:twmG 3.2s infinite}
.tw-mini em{position:absolute;inset:-30%;border-radius:50%;background:radial-gradient(circle,rgba(255,236,140,.9),rgba(255,190,0,.35) 40%,transparent 68%);opacity:0;animation:twmE 3.2s infinite;pointer-events:none}
@keyframes twmN{0%,30%{transform:scale(1);opacity:1}40%,92%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes twmG{0%,34%{transform:scale(0);opacity:0}46%{transform:scale(1.3);opacity:1}54%,86%{transform:scale(1);opacity:1;filter:drop-shadow(0 0 4px #fff3b0) drop-shadow(0 0 10px #ffb300)}94%,100%{transform:scale(0);opacity:0}}
@keyframes twmE{0%,36%{opacity:0;transform:scale(.4)}48%{opacity:1;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.3)}}
/* v495: stolen colours - a grey patch until a candy touching it is found */
.board .cell.twfog{background-color:#8d909b!important;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.14) 0 5px,transparent 5px 10px),linear-gradient(180deg,rgba(255,255,255,.35),rgba(255,255,255,0) 52%,rgba(0,0,0,.12))!important}
.board .cell.twfog::before{content:'?';position:absolute;inset:0;display:grid;place-items:center;font:900 22px/1 Nunito,sans-serif;color:rgba(255,255,255,.55);pointer-events:none}
.board .cell.twfog.has::before,.board .cell.twfog:has(.x)::before{content:none}
.board .cell.twfogback{animation:twfogback .7s ease-out}
@keyframes twfogback{0%{filter:grayscale(1) brightness(1.3);transform:scale(.85)}60%{filter:grayscale(0) brightness(1.25);transform:scale(1.08)}100%{filter:none;transform:none}}
/* v496: x2 Points card - smaller text and clock (his note) */
#ciBody .dpt-txt p{font-size:14px!important;line-height:1.35;margin:4px 0}
.dpt-info b{font-size:34px!important}
.dpt-info img{width:78px!important;height:78px!important}
/* v498 (his notes 2026-11-26): smaller boost squares on the Play card - icon on top, name under it, then the count / 15 min;
   "Very Hard" lifted off the middle star; a little room between the helpers in the game */
#prelevel .pl-boost{gap:14px}
#prelevel .pl-boost .bst{flex:0 0 auto;width:96px;flex-direction:column;justify-content:center;gap:1px;padding:6px 4px 7px;border-radius:14px}
#prelevel .pl-boost .bst img{width:34px;height:34px}
#prelevel .pl-boost .bst span{font-size:13px;line-height:1.1}
#prelevel .pl-boost .bst i{min-width:18px;height:18px;line-height:18px;font-size:11px;margin-top:2px}
#prelevel .pl-boost .bst i.cnt{position:absolute;top:-7px;right:-7px;margin:0;box-shadow:0 0 0 2px #fff}
#prelevel .pl-boost .bst small{font:800 11px/1.2 Nunito,sans-serif;color:#7a5a3a}
#plBoost .bst.dpt b{font-size:13px!important}
#prelevel .pl-tier{transform:translateY(-7px)}
#game .tools{gap:7px!important}
/* v498 (his pick): the rule cards under the board are mint */
#game .rm-card{background:linear-gradient(180deg,#e9fff4,#c9f2df)!important;border-color:#7fd3ae!important}
/* v499 (his note): both boost squares the same - content a bit higher, the count under the name (x2 adds "15 min" next to it) */
#prelevel .pl-boost .bst{justify-content:flex-start;padding:4px 4px 7px;min-height:82px}
#prelevel .pl-boost .bst em.row{display:flex;align-items:center;gap:4px;font-style:normal;margin-top:2px}
#prelevel .pl-boost .bst em.row i{margin-top:0}
/* v500: Coin Rush icon flies up to its clock */
.rush-fly{position:fixed;z-index:80;pointer-events:none;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45)) drop-shadow(0 0 12px #ffd23a)}
.tmr.landed .tdisc{animation:tmrland .8s cubic-bezier(.3,1.6,.5,1)}
@keyframes tmrland{0%{transform:scale(1.6)}40%{transform:scale(.85)}70%{transform:scale(1.12)}100%{transform:none}}
/* v504: surprise boxes on the map (his idea) */
.spbox{position:absolute;width:60px;height:60px;margin:-34px 0 0 -30px;padding:0;border:0;background:none;z-index:4;cursor:pointer;animation:spfloat 1.8s ease-in-out infinite}
.spbox img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(0,0,0,.45)) drop-shadow(0 0 10px #ffe14d);pointer-events:none}
.spbox b{position:absolute;right:-6px;top:-6px;width:26px;height:26px;border-radius:50%;background:#ff3d8a;color:#fff;font:900 18px/26px Nunito,sans-serif;text-align:center;box-shadow:0 0 0 3px #fff,0 2px 4px rgba(0,0,0,.4)}
.spbox .spk{position:absolute;left:-8px;top:10px;width:8px;height:8px;background:#fff;border-radius:50%;box-shadow:0 0 8px 3px #ffe14d;animation:sptw 1.2s ease-in-out infinite}
.spbox .spk.b{left:auto;right:-10px;top:36px;animation-delay:.5s}
.sprib{position:absolute;margin:22px 0 0 0;transform:translateX(-50%);z-index:4;pointer-events:none;background:linear-gradient(#ffe066,#ff9d00);color:#5a2000;font:900 11px/1 Nunito,sans-serif;letter-spacing:.5px;padding:3px 8px;border-radius:999px;box-shadow:0 0 0 2px #fff,0 3px 0 #a85000;white-space:nowrap}
@keyframes spfloat{50%{transform:translateY(-7px) rotate(4deg)}}
@keyframes sptw{50%{opacity:.2;transform:scale(.4)}}
.spcount{position:absolute;top:56px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:5px;background:linear-gradient(#fff6d8,#ffd98a);color:#5a2a00;border:3px solid #fff;border-radius:999px;padding:4px 13px 4px 5px;font:900 14px Nunito,sans-serif;box-shadow:0 4px 0 #b86a00,0 6px 14px rgba(0,0,0,.35);white-space:nowrap;pointer-events:auto;cursor:pointer}
.spcount img{width:28px;height:28px;object-fit:contain}
.spcount[hidden]{display:none}
.ice-intro .sp-big{width:120px;height:auto;filter:drop-shadow(0 0 14px #ffe14d)}
.sp-open{position:fixed;inset:0;z-index:70;display:grid;place-items:center;pointer-events:none}
.sp-open img{width:150px;animation:spopen 1.25s ease-in-out forwards;filter:drop-shadow(0 0 18px #ffe14d)}
.sp-open b{position:absolute;top:calc(50% + 70px);left:50%;transform:translateX(-50%);font:900 34px Nunito,sans-serif;color:#ffd21f;-webkit-text-stroke:2px #5a2a00;paint-order:stroke fill;text-shadow:0 3px 0 #5a2a00;opacity:0;animation:spword 1.25s ease-out forwards}
@keyframes spopen{0%{transform:scale(.2)}25%{transform:scale(1.1)}32%{transform:scale(1.1) rotate(-8deg)}38%{transform:scale(1.1) rotate(8deg)}44%{transform:scale(1.15) rotate(-6deg)}52%{transform:scale(1.5);opacity:1}70%,100%{transform:scale(2.2);opacity:0}}
@keyframes spword{0%,45%{opacity:0;transform:translateX(-50%) scale(.5)}60%{opacity:1;transform:translateX(-50%) scale(1.15)}85%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0}}
/* v513 (his note): the glossy button pictures carry their own edge and shadow - the old square box-shadow under them goes */
#win .card .btn,#win .card #nextBtn,#win .card #shareBtn,#homeBtn,.col-tabs button.on{box-shadow:none!important;border-radius:0!important}
/* v517: back within 4 hours - the loading screen is not shown */
html.quickback #splash{display:none!important}
/* v519 (his note 2026-11-27): the lose list gets a red frame so the player sees he has to read it */
.lose-list{border:3px solid #ff2d55;box-shadow:0 0 0 3px #fff,0 4px 12px rgba(255,45,85,.35);animation:llFrame 1.4s ease-in-out .5s 3}
.lose-list .ll-t{color:#e0123f}
@keyframes llFrame{50%{box-shadow:0 0 0 3px #fff,0 0 0 7px rgba(255,45,85,.45),0 4px 16px rgba(255,45,85,.5)}}
/* v521: the NEW tag on the first frozen-squares window */
.ci-newwrap{position:relative;display:inline-block}
.ci-new{position:absolute;right:-34px;top:-6px;padding:3px 9px;border-radius:12px;background:linear-gradient(#ff5c8a,#e0124f);color:#fff;font:900 14px/1.2 Nunito,sans-serif;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.3);transform:rotate(12deg);white-space:nowrap}
/* v523: the NEW tag on every new-feature window (top right of its picture) */
.ci-tagged{position:relative}
.ci-new.ci-new-g{right:calc(50% - 98px);top:-8px;z-index:3}
/* v529: a clock without a picture (Sweet Climb) flies up as its emoji */
.rush-fly.emo{display:block;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45))}
/* v535: the prize surprise box opening */
.gfx{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:radial-gradient(circle at 50% 46%,rgba(110,30,160,.82),rgba(16,0,34,.94));animation:gfxIn .25s ease-out both}
.gfx.out{animation:gfxOut .28s ease-in forwards}
.gfx-rays{position:absolute;left:50%;top:46%;width:620px;height:620px;margin:-310px 0 0 -310px;border-radius:50%;opacity:0;
  background:repeating-conic-gradient(from 0deg,rgba(255,236,150,.55) 0 9deg,rgba(255,236,150,0) 9deg 22.5deg);-webkit-mask:radial-gradient(circle,#000 18%,transparent 66%);mask:radial-gradient(circle,#000 18%,transparent 66%)}
.gfx.open .gfx-rays{animation:gfxRays 2.4s linear forwards}
.gfx-box{position:absolute;left:50%;top:46%;width:190px;height:174px;margin:-87px 0 0 -95px;animation:gfxDrop .5s cubic-bezier(.3,1.5,.5,1) both,gfxShake .65s ease-in .5s both}
.gfx-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(0,0,0,.45))}
.gfx-body{clip-path:inset(36% 0 0 0)}
.gfx-lid{clip-path:inset(0 0 63% 0);transform-origin:50% 30%}
.gfx.open .gfx-lid{animation:gfxLid .7s cubic-bezier(.2,.8,.4,1) forwards}
.gfx.open .gfx-body{animation:gfxBody .9s ease-in .25s forwards}
.gfx-flash{position:absolute;left:50%;top:46%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:radial-gradient(circle,#fff 0,#fff7c2 35%,rgba(255,220,120,0) 70%);opacity:0;pointer-events:none}
.gfx.open .gfx-flash{animation:gfxFlash .6s ease-out forwards}
.gfx-prize{position:absolute;left:0;right:0;top:46%;display:flex;justify-content:center;gap:18px;opacity:0;transform:translateY(20px) scale(.3)}
.gfx.open .gfx-prize{animation:gfxPrize .7s cubic-bezier(.3,1.6,.5,1) .15s forwards}
.gfx-it{display:flex;flex-direction:column;align-items:center;margin-top:-70px}
.gfx-it img{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 0 16px rgba(255,236,150,.95)) drop-shadow(0 6px 8px rgba(0,0,0,.4))}
.gfx-it b{font:900 30px/1.1 Nunito,sans-serif;color:#fff;text-shadow:0 3px 0 #7a1a8a,0 0 10px rgba(255,120,220,.8)}
@keyframes gfxIn{from{opacity:0}}
@keyframes gfxOut{to{opacity:0}}
@keyframes gfxDrop{from{transform:translateY(-120vh) rotate(-14deg)}}
@keyframes gfxShake{0%,100%{transform:rotate(0)}10%{transform:rotate(-4deg)}20%{transform:rotate(4deg)}30%{transform:rotate(-6deg) scale(1.02)}40%{transform:rotate(6deg) scale(1.03)}50%{transform:rotate(-8deg) scale(1.04,1)}60%{transform:rotate(8deg) scale(1.05,.97)}70%{transform:rotate(-10deg) scale(1.07,.95)}80%{transform:rotate(10deg) scale(1.1,.92)}90%{transform:rotate(-6deg) scale(1.14,.88)}}
@keyframes gfxLid{0%{transform:translateY(0) rotate(0)}100%{transform:translate(70px,-260px) rotate(38deg);opacity:0}}
@keyframes gfxBody{0%{transform:scale(1.14,.88)}25%{transform:scale(.95,1.06)}100%{transform:scale(.9) translateY(30px);opacity:0}}
@keyframes gfxFlash{0%{opacity:1;transform:scale(.4)}60%{opacity:.9}100%{opacity:0;transform:scale(14)}}
@keyframes gfxRays{0%{opacity:0;transform:rotate(0) scale(.6)}15%{opacity:1}100%{opacity:.85;transform:rotate(60deg) scale(1)}}
@keyframes gfxPrize{0%{opacity:0;transform:translateY(40px) scale(.3)}100%{opacity:1;transform:translateY(-30px) scale(1)}}
/* v537: the 2 Sweets tag is a button; its rules one per line */
.tier.two.tap,.pl-tier.two.tap{cursor:pointer;pointer-events:auto;position:relative;z-index:3;animation:twoTap 2.4s ease-in-out 1s 3}
/* v542 (his note 2026-11-27): on a 2 Sweets board the tag reminds every 20 s that this is not a normal board - a hop, a wiggle and a yellow glow */
#tier.two.tap{animation:twoTap 2.4s ease-in-out 1s 3,twoRemind 20s ease-in-out 20s infinite}
@keyframes twoRemind{0%{transform:scale(1);filter:none}3%{transform:scale(1.18) rotate(-4deg);filter:brightness(1.3) drop-shadow(0 0 9px #ffe14d)}6%{transform:scale(1.06) rotate(4deg);filter:brightness(1.15) drop-shadow(0 0 12px #ffe14d)}9%{transform:scale(1.15) rotate(-2deg);filter:brightness(1.3) drop-shadow(0 0 9px #ffe14d)}13%,100%{transform:scale(1) rotate(0);filter:none}}
@media (prefers-reduced-motion:reduce){#tier.two.tap{animation:none}}
@keyframes twoTap{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
#prelevel .pl-tier.two.tap{animation:none}
.two-rules{list-style:none;margin:8px auto 4px;padding:0;display:flex;flex-direction:column;gap:6px;max-width:280px;text-align:left}
.two-rules li{display:flex;align-items:center;gap:10px;padding:6px 12px;border-radius:12px;background:#fff;box-shadow:0 2px 0 rgba(200,60,120,.18);font:800 15px/1.2 Nunito,sans-serif;color:#5a1a3a}
.two-rules li i{font-style:normal;font-size:20px;width:26px;text-align:center}
.two-rules li:last-child{background:#ffe9ee;color:#c2185b}

/* v546: Hard / 2 Sweets tag, challenge timer and sugar clock share ONE row (the sugar clock on its own row shrank 10x10 boards on shorter phones); Gold Level tag */
.tierrow{display:flex;align-items:center;justify-content:center;gap:8px;align-self:center;max-width:100%}
.tierrow:not(:has(> :not([hidden]))){display:none}
#game .tierrow > .tier,#game .tierrow > .chaltimer{margin:0!important;top:0!important;align-self:center}
#game .tierrow{margin:7px auto 0}
#game .tierrow > .chaltimer{font-size:16px;padding:2px 12px}
.tier.goldlv,.pl-tier.goldlv{background:linear-gradient(180deg,#ffe680,#f2a900)!important;color:#fff!important;text-shadow:0 0 2px #a35a00,0 1px 0 #a35a00,1px 0 0 #a35a00,-1px 0 0 #a35a00,0 -1px 0 #a35a00,0 2px 2px rgba(0,0,0,.35)!important;border:2px solid #fff6c0!important;box-shadow:0 3px 0 #8a5a00,0 0 12px rgba(255,200,40,.8)!important}
.goldlv-in{display:inline-block;margin:-3px -12px -3px 8px;padding:3px 10px;border-radius:999px;background:linear-gradient(180deg,#ffe680,#f2a900);color:#fff;text-shadow:0 0 2px #a35a00,0 1px 0 #a35a00,1px 0 0 #a35a00,-1px 0 0 #a35a00,0 -1px 0 #a35a00,0 2px 2px rgba(0,0,0,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.pl-tier .goldlv-in{margin:-3px -12px -3px 8px}

/* v549: 2 Sweets reminder that flies up to the tag */
.two-fly{position:fixed!important;left:0!important;top:0!important;margin:0!important;z-index:9000;pointer-events:none;transform-origin:center center;white-space:nowrap;font-size:11px;letter-spacing:1px;padding:2px 10px;will-change:transform,opacity;opacity:0}
#tier.two.tap.two-land{animation:twoLand .45s ease-out,twoRemind 20s ease-in-out 20s infinite}
@keyframes twoLand{0%{transform:scale(1.18)}55%{transform:scale(.94)}100%{transform:scale(1)}}
#game .found.two{max-width:calc(100% - 4px)}   /* v550: the 2 Sweets bar reaches 8 px past the board on each side */
/* v552: the row of tags above the board while it flies in */
#game .tierrow.flying{position:relative;z-index:60;pointer-events:none;will-change:transform,opacity}
#game .tierrow.landed{animation:twoLand .45s ease-out}
/* v558: Sweet Race 1st place banner */
.race-card{position:relative}
.rc-win{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 26px;border-radius:22px;background:linear-gradient(180deg,#fff3a6,#ffc21a);border:3px solid #fff;box-shadow:0 6px 0 #b06e00,0 0 40px rgba(255,200,40,.9);color:#fff;text-shadow:0 0 2px #a35a00,0 2px 0 #a35a00,1px 0 0 #a35a00,-1px 0 0 #a35a00,0 -1px 0 #a35a00;white-space:nowrap;animation:rcWin .6s cubic-bezier(.3,1.6,.5,1) both}
.rc-win b{font-family:var(--display);font-size:34px;letter-spacing:1px}
.rc-win small{font-size:16px;font-weight:800}
.rc-win.out{animation:rcWinOut .4s ease-in forwards}
@keyframes rcWin{0%{transform:translate(-50%,-50%) scale(.2) rotate(-8deg);opacity:0}100%{transform:translate(-50%,-50%) scale(1) rotate(0);opacity:1}}
@keyframes rcWinOut{to{transform:translate(-50%,-50%) scale(.6);opacity:0}}
#raceGo.rc-claim{animation:twoTap 1.6s ease-in-out 3}
/* v559: the surprise countdown under the event clocks, narrower on small phones */
.spcount{white-space:nowrap;max-width:calc(100% - 150px)}
@media (max-width:380px){.spcount{font-size:12.5px;padding:3px 10px 3px 4px}.spcount img{width:24px;height:24px}}
/* v560: country flags in the language button and list */
.lflags{display:inline-flex;gap:3px;flex:none;align-items:center}
.lflags img{width:22px;height:15px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.3);display:block}
.opt .langbtn{display:inline-flex;align-items:center;gap:8px}
.lm-it{display:flex!important;align-items:center;gap:10px}
.lm-it .lflags{width:47px}
.lm-it span:not(.lflags){font-size:inherit;-webkit-text-stroke:1.4px #000}
.lm-it .lflags img{width:20px;height:14px}
.lm-it .lflags{width:43px}
.lm-it{justify-content:flex-start!important;text-align:left}
.spcount span,.spcount b{white-space:nowrap}
.spcount{overflow:hidden;box-sizing:border-box}
.spcount{max-width:calc(100% - 136px);gap:4px}
@media (max-width:380px){.spcount{padding:3px 9px 3px 4px}.spcount img{width:22px;height:22px}}
/* v562: long languages wrap to two lines inside the pill instead of spilling out */
.spcount .spt{white-space:normal!important;line-height:1.12;text-align:center}
.spcount .spt b{white-space:nowrap}
.spcount{border-radius:20px}

/* v570: the summit banner of the Sugar Tower */
.rc-win.tw-top{top:66%;width:78%;white-space:normal;text-align:center;padding:12px 14px}
.rc-win.tw-top b{font-size:25px;line-height:1.15}

/* v571 (his pick 2026-11-28, option 1): the Sweet Pass list sits on a candy-land sky instead of plain light blue */
#pass .sp-list{background:linear-gradient(90deg,transparent calc(50% - 5px),#ff9fd2 calc(50% - 5px),#ffe3f3 calc(50% - 1px),#ffb7de calc(50% + 2px),#f27ac0 calc(50% + 5px),transparent calc(50% + 5px)),url(art/pass_bg.webp) center top/cover;background-attachment:local,scroll;border-radius:14px}
body.nopay #pass .sp-list{background:linear-gradient(90deg,transparent 13px,#ffd0ec 13px,#ffd0ec 21px,transparent 21px),url(art/pass_bg.webp) center top/cover;background-attachment:local,scroll}
