/* common.css — the new look for every device. Loaded after style.css.
   Phone-only rules live in mobile.css, iPad/tablet-only rules in tablet.css. */

/* ---------- «Карточки»: the word stands in the middle; an equal space on the left balances the sound button ---------- */
.pname{justify-content:center;padding:8px 10px}
.pname span{flex:1 1 auto;text-align:center;padding-left:clamp(52px,6vw,66px)}

/* ---------- «Учим слова»: a theme's title sign without its own stage (Звери) ---------- */
/* --car: top of the theme carousel; the «coming soon» banner sits right on it,
   the title sign stands in the middle of the sky between the top buttons and the banner */
.wscreen:not(.wstaged){--car:clamp(200px,26vh,250px);--soonw:clamp(260px,40vw,480px)}
.wscreen:not(.wstaged) .wlogoc{top:calc((100px + 100% - env(safe-area-inset-bottom) - var(--car) - var(--soonw) * .175 - 20px) / 2)}
.wsoon{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + var(--car));width:var(--soonw);height:auto;z-index:4;pointer-events:none;
  filter:drop-shadow(3px 0 0 #FFF8EA) drop-shadow(-3px 0 0 #FFF8EA) drop-shadow(0 3px 0 #FFF8EA) drop-shadow(0 -3px 0 #FFF8EA) drop-shadow(0 8px 10px rgba(60,50,40,.22))}
.wsoon.fromR,.wsoon.fromL{animation:wsoonin .4s ease}
@keyframes wsoonin{from{opacity:0;transform:translateX(-50%) translateY(8px)}to{opacity:1;transform:translateX(-50%)}}
@media (orientation:portrait){.wscreen:not(.wstaged) .wlogoc{width:min(80vw,640px)}}

/* ---------- «Раскрась»: on narrow screens the small title plate gets squeezed between «Назад» and the gear, so it is left out ---------- */
@media (max-width:820px){.cplate{display:none}}
/* on big screens the sign stays small enough not to come down onto the white paper */
@media (min-width:821px){.cplate{width:clamp(220px,21vw,300px)!important}.cplate span{font-size:clamp(24px,2.6vw,34px)!important}}

/* ---------- stars ---------- */
/* games with a question sign («Найди картинку», «Кто это?», «Назови»): the stars sit right under the sign.
   games without one (puzzle, pairs): at the top in the middle, on the same line as «Назад» */
.gscreen2 .g2stars{position:absolute;left:50%;right:auto;bottom:auto;margin:0;
  top:calc(max(14px,env(safe-area-inset-top)) + clamp(132px,15vw,176px) / 5.8)!important;transform:translate(-50%,-50%)!important;
  z-index:6;display:flex;gap:2px;white-space:nowrap;font-size:28px;padding:6px 16px}
.qscreen .g2stars,.fnscreen .g2stars{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;
  align-self:center;margin:8px auto 0!important;z-index:3;display:flex;gap:2px;white-space:nowrap;flex:0 0 auto}
/* in the question games the sign comes first, then the stars, then everything else (cards, the parrot, the buttons) */
.qscreen>*,.fnscreen>*{order:3}.qscreen>.qplate,.fnscreen>.qplate{order:1}.qscreen>.g2stars,.fnscreen>.g2stars{order:2}
.qstage{margin-bottom:calc(env(safe-area-inset-bottom) + 18px)}
.g2stars img.em{width:30px;height:30px}

/* ---------- question sign: the question always stands in the middle; a long one goes onto two centred lines ---------- */
.qplate span{text-align:center;line-height:1.05;inset:0 15% 8%;overflow-wrap:normal}

/* ---------- theme screen: the text part of every activity card reaches the bottom of the card,
   so titles and hints line up across a row even when one hint takes two lines ---------- */
.tc2{height:100%}
.tc2txt{flex:1 1 auto;justify-content:flex-start}

/* ---------- «Молодец!» after five stars: a bright paper meadow instead of a plain dark screen ---------- */
.party{
  background:radial-gradient(circle at 50% 46%,rgba(255,248,234,.95) 0 24%,rgba(255,248,234,.6) 42%,rgba(255,248,234,.12) 72%),
    url('../assets/img/themes/world-day.webp') center/cover no-repeat,#BFE0F5!important;
  color:#5B3E26!important;font:900 clamp(52px,11vw,104px)/1 Rubik,Nunito,sans-serif;gap:clamp(10px,2vh,22px);color-scheme:light;
  text-shadow:3px 0 0 #FFF8EA,-3px 0 0 #FFF8EA,0 3px 0 #FFF8EA,0 -3px 0 #FFF8EA,0 8px 14px rgba(74,58,44,.25)}
@media (orientation:portrait){.party{background:radial-gradient(circle at 50% 46%,rgba(255,248,234,.95) 0 26%,rgba(255,248,234,.6) 46%,rgba(255,248,234,.12) 76%),
    url('../themes/animals/img/world-v.webp') center/cover no-repeat,#BFE0F5!important}}
.party>*:not(.big):not(.conf){color:#5B3E26}
.party .big{font-size:clamp(130px,30vw,260px);filter:drop-shadow(0 12px 16px rgba(74,58,44,.28));text-shadow:none}
.party .big img.em{filter:drop-shadow(4px 0 0 #FFF8EA) drop-shadow(-4px 0 0 #FFF8EA) drop-shadow(0 4px 0 #FFF8EA) drop-shadow(0 -4px 0 #FFF8EA) drop-shadow(0 12px 14px rgba(74,58,44,.25))}
.party .conf{text-shadow:none}

/* ---------- a theme's living world on the theme screen and in «Карточки» (js/core/world-life.js) ---------- */
/* the box covers the screen exactly like the background picture does (cover), so a piece placed in % of the picture
   lands on the right spot on any screen. --py: how the picture is lined up vertically, the same as the background:
   theme screen at the bottom, «Карточки» at 30%, upright screens at 62% */
.wlifebox{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;container-type:size;--py:1}
.wlifebox.lcards{--py:.3}
@media (orientation:portrait) and (max-aspect-ratio:3/4){.wlifebox,.wlifebox.lcards{--py:.62}}
.wlife{position:absolute;left:50%;transform:translateX(-50%);width:max(100cqw,calc(100cqh * var(--ar)));aspect-ratio:var(--ar);
  top:calc((100cqh - max(100cqw,calc(100cqh * var(--ar))) / var(--ar)) * var(--py))}
.wlife .wly{cursor:default;pointer-events:none}
/* a piece of the world the child can tap (the traffic light): the activity cards above it let taps through around them */
.wlife .wly.wtap{pointer-events:auto;cursor:pointer}
.tscreen2 .tgrid2{pointer-events:none}.tscreen2 .tgrid2>*{pointer-events:auto}
.wlife .wtap-hop img{animation:wtaphop .45s ease}
@keyframes wtaphop{0%,100%{transform:none}35%{transform:rotate(-4deg) scale(1.04)}70%{transform:rotate(3deg)}}
/* the car rocks gently while it drives and stands still while it waits at the light */
.wlife .wly.a-drive{transform-origin:50% 85%}
.wlife .wly.a-drive img{animation:wdrive .45s ease-in-out infinite alternate}
.wlife .wly.a-drive.waiting img{animation:none}
@keyframes wdrive{from{transform:translateY(0) rotate(-.6deg)}to{transform:translateY(-2.5%) rotate(.6deg)}}
body.calm .wlife .wly.a-drive img{animation-duration:.8s}
/* «Учим слова»: the traffic light rocks a little when tapped */
.wly.a-tlbody.wtap-hop img{animation:wtaphop .45s ease}

/* ---------- the kitchen («Еда»): three little paper clouds of steam rise over the pot one after another ---------- */
.wly.a-steam1,.wly.a-steam2,.wly.a-steam3{pointer-events:none;cursor:default;transform:translate(-50%,-100%)}
.wly.a-steam1 img,.wly.a-steam2 img,.wly.a-steam3 img{transform-origin:50% 100%;opacity:0;animation:wsteam 4.5s ease-out infinite}
.wly.a-steam2 img{animation-delay:1.5s}
.wly.a-steam3 img{animation-delay:3s}
@keyframes wsteam{0%{transform:translateY(0) scale(.45);opacity:0}18%{opacity:.95}65%{opacity:.6}100%{transform:translateY(-150%) scale(1.1);opacity:0}}
body.calm .wly.a-steam1 img,body.calm .wly.a-steam2 img,body.calm .wly.a-steam3 img{animation-duration:7s}
body.calm .wly.a-steam2 img{animation-delay:2.3s}
body.calm .wly.a-steam3 img{animation-delay:4.6s}

/* ---------- the bathroom («Тело»): the duck bobs on the foam, soap bubbles float up from the bath one after another ---------- */
/* they only move: nothing happens when they are tapped */
.wly.a-duck,.wly.a-foam,.wly.a-bubble1,.wly.a-bubble2,.wly.a-bubble3{pointer-events:none;cursor:default;transform:translate(-50%,-50%)}
/* the duck has a soft paper shadow like everything else in the scene; a little puff of foam from the picture itself lies in front of it,
   so the duck sits in the foam instead of hanging in front of it */
.wly.a-duck img{transform-origin:50% 90%;animation:wduck 3.2s ease-in-out infinite;filter:drop-shadow(0 3px 3px rgba(74,58,44,.2))}
@keyframes wduck{0%,100%{transform:translateY(0) rotate(-2.5deg)}50%{transform:translateY(-4%) rotate(2.5deg)}}
/* a bubble starts small at the foam, sways left and right on the way up and quietly fades away near the top */
.wly.a-bubble1 img,.wly.a-bubble2 img,.wly.a-bubble3 img{opacity:0;animation:wbubble 10s ease-in-out infinite}
.wly.a-bubble2 img{animation-duration:12s;animation-delay:3.5s}
.wly.a-bubble3 img{animation-duration:11s;animation-delay:7s}
@keyframes wbubble{
  0%{transform:translate(0,0) scale(.4);opacity:0}
  10%{opacity:.85}
  30%{transform:translate(40%,-250%) scale(.8)}
  55%{transform:translate(-35%,-500%) scale(.95)}
  80%{transform:translate(30%,-750%) scale(1);opacity:.85}
  100%{transform:translate(0,-950%) scale(1);opacity:0}}
body.calm .wly.a-duck img{animation-duration:5s}
body.calm .wly.a-bubble1 img{animation-duration:15s}
body.calm .wly.a-bubble2 img{animation-duration:18s;animation-delay:5s}
body.calm .wly.a-bubble3 img{animation-duration:16s;animation-delay:10s}

/* ---------- the playroom («Игрушки»): the pinwheel on the windowsill turns in little gusts ---------- */
/* the paper airplane loops the loop by itself: its whole flight and trail live inside plane-loop.svg, laid over the room as a still piece.
   They only move: nothing happens when they are tapped */
.wly.a-still,.wly.a-spin{pointer-events:none;cursor:default;transform:translate(-50%,-50%)}
.wly.a-spin img{animation:wspin 7s ease-in-out infinite}
@keyframes wspin{0%{transform:rotate(0)}55%{transform:rotate(720deg)}100%{transform:rotate(720deg)}}
body.calm .wly.a-spin img{animation-duration:11s}

/* ---------- «Свари суп» (js/games/soup.js): the clearing, the cauldron on the fire, the things to drop in above it ---------- */
/* the clearing covers the screen; the cauldron group stands on its own at the bottom in the middle, so it is never cut off */
.spworld{position:fixed;inset:0;background-size:cover;background-repeat:no-repeat;background-position:center bottom;z-index:0}
@media (orientation:portrait) and (max-aspect-ratio:3/4){.spworld{background-position:center 62%}}
/* --pw: width of the cauldron; the group is the cauldron with the campfire under it */
.sppit{--pw:min(34vw,52vh);position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom) + 3vh);width:var(--pw);aspect-ratio:434/444;transform:translateX(-50%);z-index:1;pointer-events:none}
.sppit .wly{pointer-events:none;cursor:default}
@media (orientation:portrait){.sppit{--pw:min(62vw,38vh)}}
/* the night forest comes alive: the moon and the mushrooms glow softly, the awake owl blinks now and then, fireflies drift */
.spbox{z-index:0}
.spglow{position:absolute;aspect-ratio:1/1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;mix-blend-mode:screen;opacity:.35;animation:spglow 4.5s ease-in-out infinite alternate}
.spglow.g-moon{background:radial-gradient(closest-side,rgba(255,244,207,.55),rgba(255,244,207,0));animation-duration:6s}
.spglow.g-lil{background:radial-gradient(closest-side,rgba(230,184,255,.75),rgba(230,184,255,0))}
.spglow.g-tea{background:radial-gradient(closest-side,rgba(159,245,238,.75),rgba(159,245,238,0))}
.spglow.g-yel{background:radial-gradient(closest-side,rgba(255,230,154,.75),rgba(255,230,154,0))}
@keyframes spglow{from{opacity:.25;transform:translate(-50%,-50%) scale(.92)}to{opacity:.85;transform:translate(-50%,-50%) scale(1.06)}}
.spblink img{opacity:0;animation:spblink 5.5s steps(1,end) infinite 2s}
@keyframes spblink{0%{opacity:0}92%{opacity:1}96%{opacity:0}100%{opacity:0}}
.spflies{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.spflies i{position:absolute;width:clamp(5px,.7vw,9px);aspect-ratio:1/1;border-radius:50%;background:#FFF0A8;
  box-shadow:0 0 6px 3px rgba(255,226,120,.75),0 0 18px 8px rgba(255,226,120,.25);animation:spfly 9s ease-in-out infinite alternate,sptwinkle 1.8s ease-in-out infinite alternate}
@keyframes spfly{0%{transform:translate(0,0)}33%{transform:translate(4vw,-3vh)}66%{transform:translate(-2vw,-6vh)}100%{transform:translate(3vw,2vh)}}
@keyframes sptwinkle{from{opacity:.25}to{opacity:1}}
/* the fire lights the cauldron warmly from below */
.spfireglow{position:absolute;left:50%;top:70%;width:130%;aspect-ratio:1/1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,170,90,.45),rgba(255,170,90,0));animation:spglow 1.6s ease-in-out infinite alternate}
/* the ladle stands straight in the soup, leaning a little: only the handle above the soup shows; it stirs twice round when food goes in */
.spladle img{clip-path:inset(0 0 26% 0);transform-origin:50% 74%;transform:rotate(8deg)}
.spladle.stir img{animation:spstir 1.4s ease-in-out}
@keyframes spstir{0%,100%{transform:rotate(8deg)}12.5%{transform:translateX(-12%) rotate(-6deg)}37.5%{transform:translateX(12%) rotate(20deg)}
  62.5%{transform:translateX(-12%) rotate(-6deg)}87.5%{transform:translateX(12%) rotate(20deg)}}
body.calm .spladle.stir img{animation-duration:2.2s}
body.calm .spflies i{animation-duration:14s,2.6s}
body.calm .spglow{animation-duration:7s}
/* the soup lives: carrots and the leaf bob gently, bubbles rise and pop; when the ladle stirs, everything in the soup swirls.
   The soup pieces stay inside the soup (clipped to its oval) */
.spstuff{position:absolute;inset:0;clip-path:ellipse(29.3% 7.6% at 49.77% 14.44%);pointer-events:none}
.spstuff .wly img{animation:spbob 3.2s ease-in-out infinite alternate}
.spstuff .sp-carrot2 img{animation-delay:-1.1s}.spstuff .sp-carrot3 img{animation-delay:-2.2s}
.spstuff .sp-leaf img{animation:spleaf 5s ease-in-out infinite alternate}
@keyframes spbob{from{transform:translateY(-7%) rotate(-5deg)}to{transform:translateY(7%) rotate(5deg)}}
@keyframes spleaf{from{transform:rotate(-10deg)}to{transform:rotate(12deg)}}
.spstuff.stir{animation:spswirl 1.4s ease-in-out}
@keyframes spswirl{0%,100%{transform:none}25%{transform:translateX(-5%)}50%{transform:translateX(5%)}75%{transform:translateX(-4%)}}
.spbub img{opacity:0;transform-origin:50% 100%;animation:spbub 3.4s ease-out infinite}
@keyframes spbub{0%{opacity:0;transform:scale(.2)}15%{opacity:1}65%{opacity:1;transform:translateY(-60%) scale(1)}75%{opacity:0;transform:translateY(-70%) scale(1.25)}100%{opacity:0}}
body.calm .spbub img{animation-duration:5s}
body.calm .spstuff .wly img{animation-duration:5s}
/* the fire flickers softly under the cauldron */
.spfire img{transform-origin:50% 100%;animation:spflick 1.1s ease-in-out infinite alternate}
@keyframes spflick{from{transform:scale(1,1) skewX(0)}to{transform:scale(.94,1.07) skewX(-3deg)}}
/* the three faces of the cauldron lie on top of each other: the calm one is always there, the happy or yucky one simply appears over it
   (no cross-fade, so nothing flickers through) */
.sppot .f1,.sppot .f2{position:absolute;left:0;top:0;opacity:0}
.sppot.yum .f1,.sppot.yuck .f2{opacity:1}
/* steam: soft wavy wisps that rise from the soup, sway a little and melt away, one after another */
.spsteam{position:absolute;height:auto;transform:translate(-50%,-100%);overflow:visible;pointer-events:none;opacity:0;
  animation:spsteam 3.3s ease-out infinite;transform-origin:50% 100%}
.spsteam path{fill:none;stroke:rgba(255,250,240,.75);stroke-width:7;stroke-linecap:round;filter:blur(1.2px)}
@keyframes spsteam{0%{opacity:0;transform:translate(-50%,-100%) translateY(10%) scaleY(.55) skewX(0)}
  25%{opacity:.85}
  60%{opacity:.6;transform:translate(-50%,-100%) translateY(-18%) scaleY(1) skewX(-8deg)}
  100%{opacity:0;transform:translate(-50%,-100%) translateY(-38%) scaleY(1.15) skewX(6deg)}}
body.calm .spsteam{animation-duration:5s}
.sppot.yum img,.sppot.yuck img{animation:none}
@keyframes spyum{0%,100%{transform:none}40%{transform:translateY(-4%) scale(1.04,.97)}}
@keyframes spyuck{0%,100%{transform:none}25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
/* the things to put in: big paper tiles in a row across the sky, under the stars */
.sptray{position:absolute;left:0;right:0;top:calc(max(14px,env(safe-area-inset-top)) + 70px);z-index:3;display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(10px,1.6vw,18px);padding:0 16px}
.spitem{width:clamp(84px,10vw,124px);aspect-ratio:1/1;border-radius:clamp(20px,2.4vw,28px);background:rgba(255,251,242,.95);box-shadow:0 8px 16px rgba(74,58,44,.2);
  display:flex;align-items:center;justify-content:center;padding:10px;touch-action:none;cursor:grab}
.spitem img{width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 3px 3px rgba(74,58,44,.16))}
.spitem.drag{position:relative;z-index:10;box-shadow:0 16px 30px rgba(74,58,44,.3);cursor:grabbing}
.spitem.back{transition:transform .35s ease}
.spitem.into{transition:transform .45s ease-in,opacity .45s ease-in;opacity:0}
.spitem.spslot{background:rgba(255,251,242,.35);box-shadow:none;cursor:default}
.spitem.nope img{animation:nope .45s ease}
body.calm .spfire img{animation-duration:1.8s}
@media (max-width:700px){.sptray{top:calc(max(14px,env(safe-area-inset-top)) + 118px)}.spitem{width:calc((100vw - 32px - 3 * 10px) / 4)}}
/* an upright phone: the cauldron a little higher off the bottom edge */
@media (orientation:portrait) and (max-width:700px){.sppit{bottom:calc(env(safe-area-inset-bottom) + 9vh)}}
/* a low wide phone: three things in a column on each side of the cauldron instead of a row over it */
@media (orientation:landscape) and (max-height:520px){
  .sppit{--pw:min(30vw,60vh);bottom:6px}
  .sptray{top:calc(max(10px,env(safe-area-inset-top)) + 58px);bottom:10px;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));padding:0;
    display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:repeat(3,auto);align-content:center;gap:10px}
  .spitem{width:min(84px,22vh)}
  .spitem:nth-child(-n+3){grid-column:1}.spitem:nth-child(n+4){grid-column:3}
  .spitem:nth-child(1),.spitem:nth-child(4){grid-row:1}.spitem:nth-child(2),.spitem:nth-child(5){grid-row:2}.spitem:nth-child(3),.spitem:nth-child(6){grid-row:3}}

/* ---------- «Собери лицо» (js/games/face.js): the empty face on a cream felt board, the pieces on little cream tiles beside it ---------- */
/* --bw: width of the face; a piece in the tray is shown at the very size it has on the face */
.fcscreen{--bw:min(42vw,calc((100vh - 170px) * var(--ar)))}
.fcboard{position:absolute;left:34%;top:calc(50% + 34px);transform:translate(-50%,-50%);width:var(--bw);aspect-ratio:var(--ar);z-index:2}
.fcboard::before{content:'';position:absolute;inset:-5% -9% -3%;border-radius:clamp(30px,4vw,48px);background:rgba(255,251,242,.92);box-shadow:0 0 0 6px rgba(255,248,234,.7),0 14px 30px rgba(74,58,44,.18)}
.fcin{position:absolute;inset:0}
.fcface{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.fcpart{position:absolute;transform:translate(-50%,-50%);height:auto;pointer-events:none}
.fcpart.pop{animation:fcpop .35s ease}
@keyframes fcpop{0%{transform:translate(-50%,-50%) scale(1.25)}100%{transform:translate(-50%,-50%) scale(1)}}
/* the finished face (with eyebrows and rosy cheeks) appears over the pieces, and the whole face gives a happy little hop */
.fcfull{animation:fcfull .7s ease}
@keyframes fcfull{from{opacity:0}to{opacity:1}}
.fcin.done{animation:yay .9s ease .2s}
.fctray{position:absolute;left:calc(34% + var(--bw) / 2 + 9%);right:3%;top:calc(50% + 34px);transform:translateY(-50%);z-index:3;
  display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:clamp(10px,1.6vw,18px)}
.fcpiece{display:flex;align-items:center;justify-content:center;min-width:clamp(76px,9vw,104px);min-height:clamp(76px,9vw,104px);padding:12px;border-radius:24px;
  background:rgba(255,251,242,.95);box-shadow:0 8px 16px rgba(74,58,44,.2);touch-action:none;cursor:grab}
.fcpiece img{width:calc(var(--bw) * var(--s) / 100);height:auto;pointer-events:none;filter:drop-shadow(0 3px 3px rgba(74,58,44,.18))}
.fcpiece.drag{position:relative;z-index:10;box-shadow:0 16px 30px rgba(74,58,44,.3);cursor:grabbing}
.fcpiece.back{transition:transform .3s ease}
body.calm .fcin.done{animation:soft .9s ease .2s}
/* the stars sit above the cream board, never on it: a clear shadow keeps the cream pill apart from the cream board */
.fcscreen .g2stars{box-shadow:0 4px 12px rgba(74,58,44,.2)}
/* upright screens: the face on top, the pieces in a row below it */
@media (orientation:portrait){
  .fcscreen{--bw:min(70vw,calc((100vh - 430px) * var(--ar)))}
  .fcboard{left:50%;top:calc(max(14px,env(safe-area-inset-top)) + 132px);transform:translateX(-50%)}
  .fctray{left:12px;right:12px;top:auto;bottom:calc(env(safe-area-inset-bottom) + 22px);transform:none}
  .fcpiece{min-width:72px;min-height:72px;padding:10px;border-radius:20px}}

/* ---------- Игротека: cards of games that are coming, with a little «скоро» ribbon ---------- */
.tcard.tsoon{position:relative}
.tcard.tsoon .tic{opacity:.85}
.tcard.tsoon .tic img.flip{transform:rotate(180deg)}
.tsoonl{position:absolute;top:10px;right:10px;padding:4px 11px 5px;border-radius:999px;background:#F3C96B;color:#5B3E26;
  font:900 clamp(12px,1.4vw,15px)/1 Rubik,Nunito,sans-serif;transform:rotate(6deg);box-shadow:0 3px 6px rgba(74,58,44,.18)}

/* ---------- «Цвета» (js/games/colors.js): a sheet of paper on an artist's table, seen from above ---------- */
/* nothing on the desk is coloured, so the only colours on the screen are the things to find.
   With a desk picture (IMG['colors-desk']) it covers the screen; until then the table and the paper are drawn here.
   The paper is a little darker than the cream cards elsewhere, so a yellow thing stands out on it */
.cgdesk{position:fixed;inset:0;z-index:0;background-color:#C9A273;
  background-image:linear-gradient(90deg,rgba(255,255,255,.07),rgba(0,0,0,.05)),
    repeating-linear-gradient(1.5deg,#C9A273 0 22px,#C29967 22px 37px,#CEA97B 37px 63px,#C59D6C 63px 80px)}
.cgdesk.art{background-size:cover;background-position:center;background-repeat:no-repeat}
.cgpaper{position:absolute;inset:max(14px,2.4vmin);border-radius:4px;background-color:#EAE2D3;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow:0 12px 30px rgba(74,58,44,.3),0 2px 4px rgba(74,58,44,.18)}
/* the label taped to the sheet: two strips of masking tape, a smear of the colour, the words in dark brown */
.qscreen>.cglabel{order:1}
.cglabel{position:relative;z-index:3;margin:calc(max(14px,env(safe-area-inset-top)) + 8px) auto 0;max-width:calc(100vw - 2 * clamp(110px,14vw,170px));
  display:flex;align-items:center;gap:.35em;padding:.32em .85em .38em .55em;background:#FFFBF2;border-radius:5px;transform:rotate(-1.5deg);
  box-shadow:0 6px 14px rgba(74,58,44,.2);font:900 clamp(28px,4.2vw,52px)/1.1 Rubik,Nunito,sans-serif;color:#5B3E26;text-align:center}
.cglabel::before,.cglabel::after{content:'';position:absolute;top:-10px;width:clamp(44px,5vw,64px);height:clamp(18px,2vw,24px);
  background:rgba(229,212,175,.85);box-shadow:0 1px 2px rgba(74,58,44,.12)}
.cglabel::before{left:-16px;transform:rotate(-30deg)}
.cglabel::after{right:-16px;transform:rotate(26deg)}
.cglabel img{height:1.2em;width:auto;flex:0 0 auto}
/* the field where the things lie; cgFit places every thing and the jar inside it */
.cgstage{position:relative;z-index:2;flex:1 1 auto;min-height:0;align-self:stretch;
  margin:clamp(8px,1.4vh,16px) max(clamp(28px,4vw,56px),env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + clamp(24px,4vh,48px)) max(clamp(28px,4vw,56px),env(safe-area-inset-left))}
.cgitem{position:absolute;padding:0;border:0;background:none;cursor:pointer;transform:rotate(var(--r,0deg));
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.cgitem img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 5px 4px rgba(74,58,44,.28)) drop-shadow(0 1px 1px rgba(74,58,44,.2))}
/* a soft spot of the thing's colour under it: shown under things already heard (level 1) and pulsing as a hint */
.cgitem::before{content:'';position:absolute;inset:4%;border-radius:50%;background:var(--cc);opacity:0;transform:scale(.6);transition:opacity .3s ease,transform .3s ease}
.cgitem.heard::before{opacity:.2;transform:scale(1)}
.cgitem.hop img{animation:cghop .5s ease}
@keyframes cghop{0%,100%{transform:none}40%{transform:translateY(-14%) scale(1.08)}}
/* a thing of another colour sways «no» */
.cgitem.no img{animation:cgno .5s ease}
@keyframes cgno{0%,100%{transform:none}20%{transform:rotate(-10deg)}50%{transform:rotate(8deg)}80%{transform:rotate(-4deg)}}
/* after two misses the next right thing breathes gently, with its colour glowing under it */
.cgitem.hint img{animation:cgbreathe 1.6s ease-in-out infinite}
.cgitem.hint::before{animation:cghalo 1.6s ease-in-out infinite}
@keyframes cgbreathe{0%,100%{transform:none}50%{transform:scale(1.08)}}
@keyframes cghalo{0%,100%{opacity:.08;transform:scale(.85)}50%{opacity:.35;transform:scale(1.05)}}
/* a right thing flies into the jar; its place on the paper stays empty */
.cgitem.into{z-index:5;opacity:0;pointer-events:none;transition:transform .5s ease-in,opacity .5s ease-in}
.cgitem.gone{visibility:hidden}
.cgjar{position:absolute;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cgjar img{display:block;width:100%;height:100%;transform-origin:50% 100%;filter:drop-shadow(0 6px 8px rgba(74,58,44,.25))}
.cgjar.gulp img{animation:cggulp .6s ease}
@keyframes cggulp{0%,100%{transform:none}30%{transform:scale(1.06,.93)}65%{transform:scale(.97,1.04)}}
body.calm .cgitem.hop img,body.calm .cgitem.no img{animation-duration:.9s}
body.calm .cgitem.hint img,body.calm .cgitem.hint::before{animation-duration:2.6s}
body.calm .cgjar.gulp img{animation-duration:1s}

/* ---------- «Цвета и формы»: the choice between «Цвета» and «Формы», two paper cards lying on the sheet ---------- */
.cgmenu{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center}
.cgmenu .cglabel{margin-top:calc(max(14px,env(safe-area-inset-top)) + 12px)}
.cgpicks{position:relative;z-index:2;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;gap:clamp(24px,5vw,72px);
  padding:16px 24px calc(env(safe-area-inset-bottom) + 28px)}
.cgpick{width:min(34vw,52vh,380px);aspect-ratio:1/1;border:0;border-radius:6px;background:#FFFBF2;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6%;padding:7%;transform:rotate(-2deg);
  box-shadow:0 10px 22px rgba(74,58,44,.2),0 2px 3px rgba(74,58,44,.15);font:900 clamp(26px,3.6vw,46px)/1 Rubik,Nunito,sans-serif;color:#5B3E26;
  -webkit-tap-highlight-color:transparent}
.cgpick+.cgpick{transform:rotate(2.5deg)}
.cgpick img{width:100%;height:auto;max-height:62%;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(74,58,44,.2))}
.cgpick.pop{animation:cgpop .45s ease}
@keyframes cgpop{0%,100%{scale:1}40%{scale:1.06}}
@media (orientation:portrait){.cgpicks{flex-direction:column}.cgpick{width:min(62vw,34vh,380px)}}

/* ---------- «Цвета и формы»: dragging a thing into the jar or the sorter ---------- */
.cgitem{touch-action:none}
.cgitem.drag{z-index:30;transition:none}
.cgitem.drag img{filter:drop-shadow(0 14px 12px rgba(74,58,44,.3))}
.cgitem.back{transition:transform .3s ease}
/* a third card on the choice screen */
.cgpicks .cgpick{width:min(28vw,46vh,340px)}
.cgpick+.cgpick+.cgpick{transform:rotate(-1deg)}
@media (orientation:portrait){.cgpicks .cgpick{width:min(56vw,25vh,320px);aspect-ratio:1.25/1}.cgpick img{max-height:52%}}

/* ---------- «Собери картинку» (js/games/shape-build.js): a picture of shapes on the paper, the shapes beside it ---------- */
.cbboard{position:absolute}
.cbslot,.cbboard .cbpiece{position:absolute;transform:rotate(var(--r,0deg))}
.cbslot{pointer-events:none}
/* a loose shape lies at 80% of its size; picked up, it grows to its real size and follows the finger */
.cbpiece{position:absolute;touch-action:none;cursor:grab;z-index:40;
  transform:translate(var(--dx,0px),var(--dy,0px)) rotate(var(--r,0deg)) scale(var(--k,.8))}
.cbpiece img{display:block;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 5px 4px rgba(74,58,44,.28))}
.cbpiece.drag{--k:1;z-index:60;cursor:grabbing}
.cbpiece.drag img{filter:drop-shadow(0 14px 12px rgba(74,58,44,.3))}
.cbpiece.back{transition:transform .3s ease}
.cbpiece.snap{--k:1;transition:transform .22s ease-out}
.cbboard .cbpiece.in{cursor:default;animation:cbin .3s ease}
@keyframes cbin{0%{scale:1.08}100%{scale:1}}
.cbpiece.away{transition:opacity .4s ease;opacity:0;pointer-events:none}
/* the picture comes alive */
.cbover{position:absolute;inset:0;width:100%;height:100%;z-index:20;pointer-events:none;opacity:0;transition:opacity .4s ease;overflow:visible}
.cbboard.alive .cbover{opacity:1}
.cbover *{transform-box:fill-box;transform-origin:center}
.cbboard.p0 .cbglow{animation:cbglow 1.4s ease-in-out infinite alternate}
@keyframes cbglow{from{opacity:.55}to{opacity:1}}
.cbboard.p0 .cbsmoke circle{opacity:0;animation:cbsmoke 2.6s ease-out infinite}
.cbboard.p0 .cbsmoke circle:nth-child(2){animation-delay:.85s}.cbboard.p0 .cbsmoke circle:nth-child(3){animation-delay:1.7s}
@keyframes cbsmoke{0%{opacity:0;transform:translate(0,0) scale(.6)}20%{opacity:.9}100%{opacity:0;transform:translate(6px,-34px) scale(1.6)}}
.cbboard.p1 .cbstar{animation:cbpop .5s ease both,cbtwinkle 1.6s ease-in-out .5s infinite alternate}
.cbboard.p1 .cbballs circle{animation:cbpop .4s ease both}
.cbboard.p1 .cbballs circle:nth-child(2){animation-delay:.15s}.cbboard.p1 .cbballs circle:nth-child(3){animation-delay:.3s}.cbboard.p1 .cbballs circle:nth-child(4){animation-delay:.45s}
@keyframes cbpop{0%{transform:scale(0)}70%{transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes cbtwinkle{from{transform:scale(1) rotate(0)}to{transform:scale(1.18) rotate(12deg)}}
.cbboard.p2{animation:cbhop .7s ease 2}
@keyframes cbhop{0%,100%{transform:none}40%{transform:translateY(-5%)}}
.cbboard.p3{animation:cbswim 2.4s ease-in-out infinite}
@keyframes cbswim{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(-4%,-3%) rotate(-3deg)}}
.cbboard.p3 .cbbubbles circle{opacity:0;animation:cbbubble 2.4s ease-out infinite}
.cbboard.p3 .cbbubbles circle:nth-child(2){animation-delay:.8s}.cbboard.p3 .cbbubbles circle:nth-child(3){animation-delay:1.6s}
@keyframes cbbubble{0%{opacity:0;transform:translate(0,0)}20%{opacity:1}100%{opacity:0;transform:translate(-4px,-40px)}}
.cbboard.p4{animation:cbdrive 2.6s ease-in .6s forwards}
@keyframes cbdrive{0%{transform:none}15%{transform:translateX(-3%)}100%{transform:translateX(130vw)}}
.cbboard.p4 .cbhub{animation:cbspin .5s linear infinite}
@keyframes cbspin{to{transform:rotate(360deg)}}
body.calm .cbboard.p3{animation-duration:4s}
body.calm .cbboard.p4{animation-duration:4s}

/* ---------- after five stars in «Цвета»: paint the picture with the collected colours ---------- */
.cgpaintstage{position:relative;z-index:2;flex:1 1 auto;min-height:0;align-self:stretch;display:flex;align-items:center;justify-content:center;gap:clamp(20px,4vw,56px);
  margin:clamp(8px,1.4vh,16px) clamp(28px,4vw,56px) calc(env(safe-area-inset-bottom) + clamp(20px,3vh,40px))}
.cgpic{height:100%;max-height:100%;max-width:62vw;aspect-ratio:1/1;overflow:visible}
.cgreg{cursor:pointer;transition:fill .25s ease}
.cgreg.splash{animation:cgsplash .4s ease;transform-box:fill-box;transform-origin:center}
@keyframes cgsplash{0%{transform:scale(1)}45%{transform:scale(1.06)}100%{transform:scale(1)}}
.cgpal{display:flex;flex-direction:column;gap:clamp(10px,2vh,20px)}
.cgpaljar{width:clamp(70px,9vw,110px);aspect-ratio:120/140;padding:0;border:0;background:none;cursor:pointer;transition:transform .2s ease;-webkit-tap-highlight-color:transparent}
.cgpaljar img{display:block;width:100%;height:100%;filter:drop-shadow(0 5px 6px rgba(74,58,44,.25))}
.cgpaljar.on{transform:translateY(-8px) scale(1.12)}
@media (orientation:portrait){.cgpaintstage{flex-direction:column}.cgpic{height:auto;width:100%;max-width:100%;max-height:68%}.cgpal{flex-direction:row}}

/* ---------- «Что не так?» (js/games/oops.js): one simple scene in a paper frame on the artist's desk ---------- */
/* every thing has a white paper edge, so it reads on any scene */
.tcard[data-act="oops"] .tic img{transform:rotate(180deg)}
.oostage{position:relative;z-index:2;flex:1 1 auto;min-height:0;align-self:stretch;display:flex;align-items:center;justify-content:center;
  margin:clamp(8px,1.4vh,14px) max(16px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + clamp(14px,2.4vh,28px)) max(16px,env(safe-area-inset-left))}
.ooscene{position:relative;flex:0 0 auto;background-size:100% 100%;border-radius:clamp(14px,2vw,26px);overflow:hidden;
  box-shadow:0 0 0 6px rgba(255,251,242,.92),0 14px 34px rgba(74,58,44,.28)}
/* a scene without a picture: calm cream paper with a soft floor line */
.ooscene.plain{background:linear-gradient(#FBF4E6 0 70%,#EFE2CB 70% 100%)}
/* the front wall of the basket or the nest, cut from the same picture, lies over the things, so they sit inside */
.oofront{position:absolute;inset:0;width:100%;height:100%;z-index:150;pointer-events:none}
.ooit{position:absolute;z-index:1;aspect-ratio:1/1;padding:0;border:0;background:none;cursor:pointer;transform-origin:50% 100%;-webkit-tap-highlight-color:transparent}
.ooit img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;pointer-events:none;transition:transform .7s ease;
  filter:drop-shadow(3px 0 0 #FFF8EA) drop-shadow(-3px 0 0 #FFF8EA) drop-shadow(0 3px 0 #FFF8EA) drop-shadow(0 -3px 0 #FFF8EA) drop-shadow(0 7px 7px rgba(74,58,44,.28))}
.ooscene.swim .ooit img{object-position:50% 50%}
.ooit.mirror img{transform:scaleX(-1)}
/* the fish (and whatever got into the tank) swim slowly to and fro, turning round at each end */
.ooscene.swim .ooit img{animation:ooswim var(--s,6s) ease-in-out var(--d,0s) infinite}
@keyframes ooswim{0%{transform:translateX(-18%) scaleX(1)}45%{transform:translateX(18%) scaleX(1)}50%{transform:translateX(18%) scaleX(-1)}95%{transform:translateX(-18%) scaleX(-1)}100%{transform:translateX(-18%) scaleX(1)}}
/* and they bob up and down and rock a little, each at its own pace, while bubbles rise in the water */
.ooscene.swim .ooit{animation:oobob var(--b,3s) ease-in-out var(--d,0s) infinite}
@keyframes oobob{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-9%) rotate(-4deg)}75%{transform:translateY(7%) rotate(4deg)}}
.oobub{position:absolute;bottom:14%;width:2.2%;aspect-ratio:1/1;border-radius:50%;z-index:0;pointer-events:none;opacity:0;
  background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.95) 0 18%,rgba(255,255,255,.35) 30%,rgba(255,255,255,.12) 70%);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7);scale:var(--z,1);animation:oobubble var(--s,6s) ease-in var(--d,0s) infinite}
@keyframes oobubble{0%{opacity:0;transform:translate(0,0)}10%{opacity:.9}50%{transform:translate(40%,-1100%)}85%{opacity:.8}100%{opacity:0;transform:translate(-30%,-2400%)}}
body.calm .ooscene.swim .ooit{animation-duration:6s}
body.calm .oobub{animation-duration:12s}
/* in the tank the taps still show: a hop, the hint wiggle, the catch; and a thing that leaves floats up */
.ooscene.swim .ooit.hop{animation:oohop .5s ease}
.ooscene.swim .ooit.hint{animation:oowiggle 1.2s ease-in-out infinite}
.ooscene.swim .ooit.caught{animation:oocaught .6s ease}
.ooscene.swim .ooit.float{animation:none}
/* level 4: upside down; it turns back over when found */
.ooit.flip img{transform:rotate(180deg);transform-origin:50% 50%}
.ooit.hop{animation:oohop .5s ease}
@keyframes oohop{0%,100%{transform:none}40%{transform:translateY(-12%)}}
/* after two taps on things that are fine, the silly thing wiggles a little */
.ooit.hint{animation:oowiggle 1.2s ease-in-out infinite}
@keyframes oowiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
.ooit.caught{animation:oocaught .6s ease}
@keyframes oocaught{0%,100%{transform:none}30%{transform:scale(1.2) rotate(-7deg)}60%{transform:scale(1.1) rotate(6deg)}}
.ooit.morph{animation:oomorph .5s ease}
@keyframes oomorph{0%{transform:scale(.7)}60%{transform:scale(1.15)}100%{transform:none}}
/* an odd thing leaves: it spins off the scene, or in the tank floats up and out */
.ooit.away{transition:transform 1.2s ease-in,opacity 1.2s ease-in;transform:translate(320%,-60%) rotate(200deg);opacity:0;pointer-events:none}
.ooit.float{transition:transform 1.6s ease-in,opacity 1.6s ease-in;transform:translateY(-420%);opacity:0;pointer-events:none}
body.calm .ooit.hint{animation-duration:2s}
body.calm .ooscene.swim .ooit img{animation-duration:10s}

/* ---------- levels you can see (js/core/levels-ui.js): the path of dots under the stars, «Новый уровень!», «Все уровни пройдены!» ---------- */
.lvpath{position:fixed;z-index:7;transform:translateX(-50%);pointer-events:none;padding:5px 11px;border-radius:999px;
  background:rgba(255,251,242,.88);box-shadow:0 2px 6px rgba(74,58,44,.15)}
.lvdots{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.lvdots i{width:10px;height:10px;border-radius:50%;background:#FFF8EA;box-shadow:inset 0 0 0 2px #C9B49A}
.lvdots i.past{background:#E9B93C;box-shadow:inset 0 0 0 2px #D19F22}
.lvdots i.now{width:14px;height:14px;background:#F6D266;box-shadow:inset 0 0 0 2px #D19F22,0 0 0 4px rgba(246,210,102,.45)}
.lvdots i.soon{width:10px;height:10px;box-sizing:border-box;background:none;box-shadow:none;border:2px dashed #BDB1A3}
.lvdots b{font:800 11px/1 Nunito,sans-serif;color:#9C8670;margin-left:2px}
.lvdots.big{gap:12px}
.lvdots.big i{width:22px;height:22px}
.lvdots.big i.now{width:28px;height:28px;animation:lvpop .7s ease .35s both}
.lvdots.big i.soon{width:20px;height:20px;border-width:3px}
@keyframes lvpop{0%{transform:scale(.3);background:#FFF8EA}60%{transform:scale(1.35)}100%{transform:scale(1)}}
/* a new level: a paper card that comes and goes by itself */
.lvup{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;pointer-events:none;animation:lvin .35s ease}
.lvup.out,.lvdone.out{opacity:0;transition:opacity .5s ease}
.lvupcard,.lvdonecard{display:flex;flex-direction:column;align-items:center;gap:14px;padding:26px 40px 24px;border-radius:10px;background:#FFFBF2;
  transform:rotate(-1.5deg);box-shadow:0 18px 40px rgba(74,58,44,.28);font-family:Rubik,Nunito,sans-serif;color:#5B3E26;text-align:center;max-width:calc(100vw - 40px)}
.lvupcard b,.lvdonecard b{font-size:clamp(30px,5vw,52px);font-weight:900;line-height:1}
.lvupcard span{font:800 clamp(18px,2.6vw,26px)/1.2 Nunito,sans-serif;color:#8A6E55}
@keyframes lvin{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
/* everything done: a medal, the whole path lit, a tap closes it */
.lvdone{position:fixed;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;background:rgba(251,244,230,.84);animation:lvin .4s ease;cursor:pointer}
.lvmedal{width:clamp(100px,15vw,160px);height:auto;animation:lvmedal 1s ease both;filter:drop-shadow(0 8px 10px rgba(74,58,44,.25))}
@keyframes lvmedal{0%{transform:translateY(-40%) rotate(-12deg);opacity:0}60%{transform:translateY(6%) rotate(5deg);opacity:1}100%{transform:none}}
.lvdonet{font:900 clamp(22px,3.4vw,34px)/1.1 Rubik,Nunito,sans-serif}
.lvdonen{font:800 clamp(16px,2.2vw,22px)/1.2 Nunito,sans-serif;color:#8A6E55}
.lvdonego{margin-top:4px;padding:12px 30px;border:0;border-radius:999px;background:#F3C96B;color:#5B3E26;font:900 20px/1 Rubik,Nunito,sans-serif;box-shadow:0 4px 0 #D9AE4E;cursor:pointer}
.lvdonecard .lvdots i{animation:lvpop .5s ease both}
.lvdonecard .lvdots i:nth-child(2){animation-delay:.12s}.lvdonecard .lvdots i:nth-child(3){animation-delay:.24s}
.lvdonecard .lvdots i:nth-child(4){animation-delay:.36s}.lvdonecard .lvdots i:nth-child(5){animation-delay:.48s}
.lvdonecard .lvdots i:nth-child(6){animation-delay:.6s}.lvdonecard .lvdots i:nth-child(7){animation-delay:.72s}
/* the «Уровни» page */
.lvcard h2 .lvdots{margin-left:10px}
.lvsoonb{opacity:.55;border-style:dashed!important}
body.calm .lvdots.big i.now,body.calm .lvmedal{animation-duration:1.4s}

/* ---------- «Учим слова»: themes that are still being made (soon:true, js/core/themes.js) ---------- */
/* a little «скоро» ribbon on the theme's tile, a bigger «Скоро!» one on its sign, and a bump when it is tapped */
.wtile{position:relative}
.wtile .tsoonl{top:4px;right:2px;z-index:2}
.wsoonl{position:absolute;right:9%;bottom:19%;padding:.32em .9em .38em;border-radius:999px;background:#F3C96B;color:#5B3E26;
  font:900 clamp(18px,2.4vw,30px)/1 Rubik,Nunito,sans-serif;transform:rotate(-6deg);box-shadow:0 4px 0 #D9AE4E,0 8px 14px rgba(74,58,44,.2);pointer-events:none}
.soonbump{animation:soonbump .45s ease}
@keyframes soonbump{0%,100%{translate:0}20%{translate:-8px}45%{translate:7px}70%{translate:-4px}}

/* ---------- «Подуй» (the bunny, the candle, the dandelion) on a phone lying on its side ---------- */
/* the screen is low, so the hint for the grown-up and the blowing cloud lay right over the bunny's face:
   the hint goes to the bottom left corner, the cloud to the bottom right one, the middle stays free for the picture */
@media (orientation:landscape) and (max-height:500px){
  .blbottom{left:auto!important;right:max(14px,env(safe-area-inset-right))!important;align-items:flex-end!important}
  .blhint{position:fixed!important;left:max(12px,env(safe-area-inset-left))!important;bottom:calc(env(safe-area-inset-bottom) + 12px)!important;max-width:min(28vw,250px)!important;
    text-align:left!important;font-size:12px!important;line-height:1.3!important}
  .blbottom .vu{width:76px!important;height:76px!important}
}

/* ---------- «Говорим» (js/games/talk.js): the garden a little softer, the sign at its own proportions, two big cards ---------- */
.talkscreen .sbworld{filter:saturate(.62) brightness(1.06) contrast(.94)}
/* the sign keeps the box of the theme screens and only fits into it, so nothing is squeezed and the cards stay where they are */
.talkscreen .tplate img{object-fit:contain!important}
.talkgrid{grid-template-columns:repeat(2,minmax(0,clamp(260px,30vw,380px)))!important;justify-content:center}
