/* =====================================================================
   Объёмный мультяшный стиль поверх game.css: 3D-эмодзи, сцена на фоне,
   глянцевые кнопки, пухлые карточки, кольца у фото
   ===================================================================== */
img.em { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; object-fit: contain; pointer-events: none;
  -webkit-user-drag: none; filter: drop-shadow(0 .06em .05em rgba(40,20,60,.25)); }
.face img.em { width: 1em; height: 1em; object-fit: contain; filter: none; }

/* Сцена */
body { background: #bfe6ff; }
#bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #7cc8ff 0%, #b5e2ff 45%, #e6f6ff 70%, #fff2fa 100%); }
#bg .sun { position: absolute; right: calc(-8 * var(--u)); top: calc(-8 * var(--u)); width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle, #fff9c4 0 28%, #ffe066 42%, rgba(255,224,102,.35) 58%, transparent 70%); animation: sunPulse 5s ease-in-out infinite; }
#bg .cloud { position: absolute; width: calc(34 * var(--u)); height: calc(11 * var(--u)); border-radius: 99px; background: #fff; opacity: .95;
  box-shadow: inset 0 calc(-1.6 * var(--u)) 0 rgba(170,200,230,.35); animation: drift linear infinite; }
#bg .cloud::before, #bg .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
#bg .cloud::before { width: calc(15 * var(--u)); height: calc(15 * var(--u)); left: calc(5 * var(--u)); top: calc(-7 * var(--u)); }
#bg .cloud::after { width: calc(11 * var(--u)); height: calc(11 * var(--u)); left: calc(17 * var(--u)); top: calc(-5 * var(--u)); }
#bg .c1 { top: 9vh; animation-duration: 70s; animation-delay: -10s; }
#bg .c2 { top: 26vh; scale: .7; animation-duration: 95s; animation-delay: -50s; opacity: .8; }
#bg .c3 { top: 44vh; scale: .55; animation-duration: 120s; animation-delay: -80s; opacity: .7; }
#bg .hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 30vh; }

/* Заголовок: толстые буквы с обводкой, градиентом и объёмом */
.title { -webkit-text-stroke: 0; text-shadow: none; filter: drop-shadow(0 calc(1.1 * var(--u)) 0 #b81e63) drop-shadow(0 calc(2.4 * var(--u)) calc(1.6 * var(--u)) rgba(120,20,80,.3)); }
.title span { color: #ff5fa8; background: linear-gradient(180deg, #ffd6ea 0%, #ff6cb0 45%, #e8337f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: calc(.5 * var(--u)) #fff; paint-order: stroke fill; }

/* Фото в кружке: цветное кольцо, блик, мягкая тень */
.face { position: relative; border: none; padding: calc(1.3 * var(--u)); background: linear-gradient(145deg, #ff9dcf, #ff4f9a); isolation: isolate;
  box-shadow: 0 calc(1.4 * var(--u)) 0 rgba(170,30,100,.35), 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.22); }
.face::before { content: ""; position: absolute; inset: calc(1.3 * var(--u)); border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff, #efe8fb); z-index: -1; }
.face::after { content: ""; position: absolute; left: 18%; top: 7%; width: 42%; height: 20%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); transform: rotate(-22deg); pointer-events: none; }
.face img:not(.em) { border-radius: 50%; }
.face[data-who="pasha"] { background: linear-gradient(145deg, #8ccaff, #2f86f0); box-shadow: 0 calc(1.4 * var(--u)) 0 rgba(20,80,170,.35), 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.22); }
.face[data-who="mama"] { background: linear-gradient(145deg, #cfb1ff, #7c4dff); box-shadow: 0 calc(1.4 * var(--u)) 0 rgba(90,40,170,.35), 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.22); }

/* Глянцевые кнопки-конфетки */
.round-btn { position: relative; border: none; padding-left: 0; color: #fff;
  background: radial-gradient(circle at 50% 30%, #ffa8d4 0%, #ff4f9a 55%, #e2337f 100%);
  box-shadow: inset 0 calc(-2 * var(--u)) 0 rgba(150,20,80,.35), inset 0 calc(1 * var(--u)) 0 rgba(255,255,255,.35), 0 calc(1.8 * var(--u)) 0 #b81e63, 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(180,30,100,.4); }
.round-btn::after { content: ""; position: absolute; left: 20%; top: 8%; width: 60%; height: 30%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0)); pointer-events: none; }
.round-btn:active { box-shadow: inset 0 calc(-1 * var(--u)) 0 rgba(150,20,80,.35), 0 calc(.4 * var(--u)) 0 #b81e63; }
#lvlGo { background: radial-gradient(circle at 50% 30%, #fff1a6, #ffc21a 60%, #f0a000); box-shadow: inset 0 calc(-2 * var(--u)) 0 rgba(170,100,0,.35), 0 calc(1.8 * var(--u)) 0 #b87800, 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.3); }
.mini-btn { background: linear-gradient(180deg, #fff, #f1e9fb); border: calc(.5 * var(--u)) solid #fff;
  box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea, 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(59,42,74,.2); font-size: calc(6.5 * var(--u)); display: flex; align-items: center; justify-content: center; padding: 0; }
.mini-btn:active { transform: translateY(calc(.8 * var(--u))); box-shadow: 0 calc(.2 * var(--u)) 0 #d4c1ea; }

/* Звёзды уровня — золотые и выпуклые */
.stars b { -webkit-text-stroke: calc(.35 * var(--u)) #fff; color: rgba(255,255,255,.7); filter: drop-shadow(0 calc(.4 * var(--u)) 0 rgba(80,60,120,.2)); }
.stars b.on { color: #ffc400; background: linear-gradient(180deg, #fff3a0, #ffc400 55%, #f09a00); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: calc(.35 * var(--u)) #d48800; filter: drop-shadow(0 calc(.5 * var(--u)) 0 rgba(180,110,0,.45)); }

/* Карточки Влады и Паши — пухлые, с бликом */
.card { border-radius: calc(8 * var(--u)); }
#vlada { background: linear-gradient(180deg, #fff3fa, #ffc9e4); box-shadow: inset 0 calc(-1.6 * var(--u)) 0 rgba(230,90,160,.25), inset 0 calc(1 * var(--u)) 0 #fff, 0 calc(1.8 * var(--u)) 0 #f08cbf, 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(209,47,118,.25); }
#pasha, .clone, #extra { background: linear-gradient(180deg, #f2f9ff, #c3e1ff); box-shadow: inset 0 calc(-1.6 * var(--u)) 0 rgba(60,130,220,.22), inset 0 calc(1 * var(--u)) 0 #fff, 0 calc(1.8 * var(--u)) 0 #8dbdf0, 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(30,111,204,.25); }
#pasha.mama { background: linear-gradient(180deg, #f7f0ff, #dccaff); }
#pasha.disguise { background: linear-gradient(180deg, #fff3fa, #ffc9e4); }
.card .name { background: linear-gradient(180deg, #ff86bf, #ff4f9a); box-shadow: inset 0 calc(-.7 * var(--u)) 0 rgba(0,0,0,.15), 0 calc(.6 * var(--u)) 0 rgba(150,20,80,.25); text-shadow: 0 calc(.4 * var(--u)) 0 rgba(0,0,0,.15); }
#pasha .name, .clone .name, #extra .name { background: linear-gradient(180deg, #74bcff, #2f86f0); box-shadow: inset 0 calc(-.7 * var(--u)) 0 rgba(0,0,0,.15), 0 calc(.6 * var(--u)) 0 rgba(20,80,170,.25); }
#pasha.disguise .name { background: linear-gradient(180deg, #ff86bf, #ff4f9a); }
#pasha.mama .name { background: linear-gradient(180deg, #b48cff, #7c4dff); }
.slot { background: rgba(255,255,255,.8); border-color: #b9a0e0; }
.slot.on { background: radial-gradient(circle at 50% 35%, #fff, #e8f3ff); border-color: #2f86f0; box-shadow: 0 calc(.8 * var(--u)) 0 rgba(20,80,170,.25); }
.bubble { box-shadow: 0 calc(1 * var(--u)) 0 #e6dcf2, 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(59,42,74,.25); }

/* Правила: одна большая картинка и короткая фраза */
.rules-card { width: min(90vw, 560px); padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(5 * var(--u)); border-radius: calc(8 * var(--u)); gap: calc(3 * var(--u));
  background: linear-gradient(180deg, #fff, #fbf3ff); box-shadow: 0 calc(2 * var(--u)) 0 #e3d0f2, 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(59,42,74,.25); }
.rules-pic { font-size: calc(34 * var(--u)); margin-top: calc(-2 * var(--u)); }
.rules-title { font-size: clamp(28px, calc(9 * var(--u)), 46px); }
.rules-list { list-style: none; padding: 0; text-align: center; font-weight: 800; font-size: clamp(20px, calc(6 * var(--u)), 30px); line-height: 1.3; }
.rules-list li + li { margin-top: .3em; }
.rules-new { text-align: center; font-weight: 800; font-size: clamp(17px, calc(5 * var(--u)), 24px); background: #fff3c4; color: #8a5a00; }
.rules-btns .round-btn { width: calc(28 * var(--u)); height: calc(28 * var(--u)); font-size: calc(12 * var(--u)); }
#rulesRead { width: calc(15 * var(--u)); height: calc(15 * var(--u)); font-size: calc(8 * var(--u)); }

/* Мини-игры и прочее — в тон */
.mem .back { background: radial-gradient(circle at 50% 25%, #ffb8da, #ff4f9a 60%, #e2337f); box-shadow: inset 0 calc(-1.5 * var(--u)) 0 rgba(150,20,80,.3), inset 0 calc(.8 * var(--u)) 0 rgba(255,255,255,.4), 0 calc(1.2 * var(--u)) 0 #b81e63; }
.mem .front { background: linear-gradient(180deg, #fff, #f4ecfb); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(150,110,200,.15), 0 calc(1.2 * var(--u)) 0 #d9c4ea; }
.answer { background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(150,110,200,.18), 0 calc(1.4 * var(--u)) 0 #cdb5e3, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); }
.answer b { color: #1e6fcc; background: linear-gradient(180deg, #7cc0ff, #1e6fcc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.album-page, .photos-card { box-shadow: 0 calc(2 * var(--u)) 0 #e3d0f2, 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(59,42,74,.25); }
.windbar { box-shadow: 0 calc(1 * var(--u)) 0 rgba(59,42,74,.15); }
.branch { background: linear-gradient(180deg, #c48a4f, #7a4f24); }
#hint { filter: drop-shadow(0 calc(1.5 * var(--u)) calc(1.5 * var(--u)) rgba(0,0,0,.3)); }

@keyframes drift { from { left: calc(-45 * var(--u)); } to { left: 110vw; } }
@keyframes sunPulse { 50% { transform: scale(1.06); } }

/* ---------- Старт: кнопки справа ---------- */
.topbar-right { display: flex; gap: calc(3 * var(--u)); }

/* ---------- Книжка рекордов ---------- */
#records { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + calc(20 * var(--u))); }
.records-page .photos-note { margin-bottom: calc(3 * var(--u)); }
.rec-row { display: flex; align-items: center; gap: calc(3 * var(--u)); padding: calc(2.5 * var(--u)) calc(3.5 * var(--u)); margin-bottom: calc(2 * var(--u)); border-radius: calc(4 * var(--u));
  background: #f7f1fc; box-shadow: 0 calc(.8 * var(--u)) 0 #e6d8f2; opacity: .6; }
.rec-row.got { background: linear-gradient(180deg, #fffbe6, #fff0b3); box-shadow: 0 calc(.8 * var(--u)) 0 #f0d47a; opacity: 1; }
.rec-row.cur { outline: calc(.7 * var(--u)) solid #ff86bf; }
.rec-hat { font-size: calc(8 * var(--u)); width: calc(9 * var(--u)); text-align: center; }
.rec-row .stars { flex: 1; gap: calc(.6 * var(--u)); }
.rec-row .stars b { font-size: calc(4.2 * var(--u)); }
.rec-row > b { font-size: clamp(16px, calc(4.6 * var(--u)), 22px); white-space: nowrap; color: #8a5a00; }

/* ---------- Время ловли на экране победы ---------- */
#recordBanner { position: absolute; top: calc(env(safe-area-inset-top) + calc(4 * var(--u))); left: calc(4 * var(--u)); z-index: 6; display: flex; flex-direction: column; align-items: center;
  padding: calc(2.5 * var(--u)) calc(4 * var(--u)); border-radius: calc(5 * var(--u)); background: #fff; box-shadow: 0 calc(1.5 * var(--u)) calc(4 * var(--u)) rgba(0,0,0,.25); pointer-events: none; }
#recordBanner .lbl { font-size: calc(3.6 * var(--u)); color: #7a6a88; }
#recordBanner .t { font-size: calc(8 * var(--u)); font-weight: 900; color: #1e6fcc; }
#recordBanner .new { display: none; font-size: calc(4 * var(--u)); color: #d12f76; }
#recordBanner.best { background: radial-gradient(circle at 35% 30%, #fff7cc, #ffd84d); }
#recordBanner.best .new { display: block; animation: pulse .8s ease-in-out infinite; }
#recordBanner.in { animation: stickerIn .8s cubic-bezier(.3,1.6,.5,1) both; }

/* ---------- «Найди букву» ---------- */
.mini-letters { display: flex; flex-direction: column; align-items: center; }
.letter-hint { display: flex; align-items: center; gap: calc(3 * var(--u)); margin-top: calc(2 * var(--u)); padding: calc(2.5 * var(--u)) calc(5 * var(--u)); border-radius: calc(6 * var(--u));
  background: linear-gradient(180deg, #fff, #f6eefc); box-shadow: 0 calc(1.2 * var(--u)) 0 #e3d0f2, 0 calc(3 * var(--u)) calc(5 * var(--u)) rgba(59,42,74,.15); }
.letter-hint > b { font-size: calc(20 * var(--u)); line-height: 1; color: #ff4f9a; -webkit-text-stroke: calc(.6 * var(--u)) #fff; paint-order: stroke fill;
  filter: drop-shadow(0 calc(.8 * var(--u)) 0 #b81e63); }
.letter-hint .face { width: calc(18 * var(--u)); height: calc(18 * var(--u)); font-size: calc(13 * var(--u)); padding: calc(1 * var(--u)); }
.letter-hint .pic { font-size: calc(16 * var(--u)); line-height: 1; }
.letter-hint .word { font-size: calc(8 * var(--u)); font-weight: 900; color: var(--ink); }
.letter-hint .word i { font-style: normal; color: #ff4f9a; }
.letters { flex: 1; width: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: calc(4 * var(--u)); padding: calc(3 * var(--u)) calc(4 * var(--u)) calc(8 * var(--u)); }
.letter { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border: none; border-radius: calc(6 * var(--u)); cursor: pointer; font-size: calc(15 * var(--u)); font-weight: 900; line-height: 1; padding: 0;
  color: hsl(var(--hue), 70%, 45%); transform: rotate(var(--tilt)); transition: transform .25s;
  background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: inset 0 calc(-1.4 * var(--u)) 0 rgba(150,110,200,.18), 0 calc(1.4 * var(--u)) 0 #cdb5e3, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); }
.letters.many .letter { width: calc(18 * var(--u)); height: calc(18 * var(--u)); font-size: calc(12 * var(--u)); }
.letter.yes { color: #fff; background: radial-gradient(circle at 50% 30%, #8df59a, #25a03a); box-shadow: inset 0 calc(-1.4 * var(--u)) 0 rgba(0,80,20,.3), 0 calc(1.4 * var(--u)) 0 #1b7a2b; transform: rotate(0) scale(1.08); }

/* ---------- «Цвета и фигуры» ---------- */
.mini-colors { display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); padding-top: calc(2 * var(--u)); }
.ask-again { position: absolute; right: calc(4 * var(--u)); top: calc(1 * var(--u)); }
.shapes { flex: 1; width: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: calc(5 * var(--u)); padding: 0 calc(4 * var(--u)) calc(8 * var(--u)); }
.shape-btn { width: calc(34 * var(--u)); height: calc(34 * var(--u)); padding: calc(2 * var(--u)); border: none; background: none; cursor: pointer; animation: blnBob 1.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 calc(1.6 * var(--u)) calc(1.2 * var(--u)) rgba(59,42,74,.3)); }
.shape-btn svg { width: 100%; height: 100%; }
.shape-btn.right { animation: none; transform: scale(1.18); filter: drop-shadow(0 0 calc(3 * var(--u)) #fff) drop-shadow(0 calc(1.6 * var(--u)) calc(1.2 * var(--u)) rgba(59,42,74,.3)); }

/* ---------- «Передразнилка» ---------- */
.mini-parrot { display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding-bottom: calc(8 * var(--u)); }
.parrot-pasha { position: relative; }
.parrot-pasha .face { width: calc(46 * var(--u)); height: calc(46 * var(--u)); font-size: calc(34 * var(--u)); }
.parrot-pasha .bubble { top: calc(-4 * var(--u)); right: calc(-10 * var(--u)); font-size: calc(12 * var(--u)); }
.parrot-pasha.talk .face { animation: talk .18s ease-in-out infinite alternate; }
.parrot-pasha.flip { transform: rotate(180deg); transition: transform .4s; }
.parrot-pasha { transition: transform .4s; }
.parrot-mic { position: relative; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 50% 30%, #ffa8d4, #ff4f9a 55%, #e2337f);
  box-shadow: inset 0 calc(-2 * var(--u)) 0 rgba(150,20,80,.35), 0 calc(1.8 * var(--u)) 0 #b81e63, 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(180,30,100,.4); }
.parrot-mic .mic-ring { position: absolute; inset: calc(-3 * var(--u)); border-radius: 50%; border: calc(1.2 * var(--u)) solid rgba(255,79,154,.45); transition: transform .08s; }
.parrot-mic .mic-icon { position: relative; font-size: calc(20 * var(--u)); }
.parrot-mic.rec { animation: pulse .6s ease-in-out infinite; background: radial-gradient(circle at 50% 30%, #ff9b9b, #ff2b2b 55%, #c40000); }

@keyframes talk { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(1.06, .94) rotate(3deg); } }

/* ---------- Ответка «Кто обзывается, тот сам так называется!» ---------- */
.comeback { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + calc(30 * var(--u))); transform: translateX(-50%); z-index: 9;
  padding: calc(3 * var(--u)) calc(6 * var(--u)); border: none; border-radius: 99px; cursor: pointer; font-size: calc(6.5 * var(--u)); font-weight: 900; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #7cc0ff, #2f86f0); text-shadow: 0 calc(.4 * var(--u)) 0 rgba(0,0,0,.2);
  box-shadow: inset 0 calc(-1.4 * var(--u)) 0 rgba(0,40,120,.3), 0 calc(1.4 * var(--u)) 0 #1b5fb8, 0 calc(3 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.3); animation: pulse 1s ease-in-out infinite; }
.comeback:active { transform: translateX(-50%) translateY(calc(1 * var(--u))); }

/* ---------- Кнопка «Дальше» между раундами: крупная, белая с розовой обводкой и свечением ---------- */
.next-btn { display: flex; align-items: center; gap: calc(2.5 * var(--u)); padding: calc(3.6 * var(--u)) calc(6 * var(--u)) calc(3.6 * var(--u)) calc(8 * var(--u)); border: none; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: calc(8.5 * var(--u)); font-weight: 900; line-height: 1; color: #ff2f8e; background: linear-gradient(180deg, #fff, #ffe6f2);
  box-shadow: 0 0 0 calc(1.3 * var(--u)) #ff4f9a, 0 calc(2 * var(--u)) 0 calc(1.3 * var(--u)) #b81e63, 0 0 calc(9 * var(--u)) calc(3 * var(--u)) rgba(255,255,255,.95), 0 calc(5 * var(--u)) calc(6 * var(--u)) calc(2 * var(--u)) rgba(120,20,80,.35);
  animation: nextPulse 1.1s ease-in-out infinite; }
.next-btn .arr { display: inline-flex; align-items: center; justify-content: center; width: calc(11 * var(--u)); height: calc(11 * var(--u)); border-radius: 50%;
  font-size: calc(6 * var(--u)); color: #fff; padding-left: calc(.8 * var(--u)); background: radial-gradient(circle at 50% 30%, #ffa8d4, #ff4f9a 60%, #e2337f);
  box-shadow: inset 0 calc(-1 * var(--u)) 0 rgba(150,20,80,.35); }
.next-btn:active { transform: translateY(calc(1.2 * var(--u))) scale(.97); box-shadow: 0 0 0 calc(1.3 * var(--u)) #ff4f9a, 0 calc(.6 * var(--u)) 0 calc(1.3 * var(--u)) #b81e63; }
.next-btn.appear { animation: nextIn .6s cubic-bezier(.3,1.7,.5,1) both, nextPulse 1.1s ease-in-out .6s infinite; }
#again.next-btn { position: fixed; z-index: 10; right: calc(4 * var(--u)); left: auto; bottom: calc(env(safe-area-inset-bottom) + calc(6 * var(--u))); width: auto; height: auto; }
#lvlGo.next-btn { position: relative; z-index: 2; }
@keyframes nextPulse { 50% { transform: scale(1.08); } }
@keyframes nextIn { from { transform: scale(0) rotate(-12deg); opacity: 0; } }
/* нижний ряд экрана «ПУПКА»: персонаж слева, «Дальше» справа, ответка над ними */
#laugher { left: calc(4 * var(--u)); bottom: calc(env(safe-area-inset-bottom) + calc(6 * var(--u))); }
#laugher .face { width: calc(20 * var(--u)); height: calc(20 * var(--u)); font-size: calc(14 * var(--u)); }
#laugher .bubble { right: calc(-7 * var(--u)); top: calc(-7 * var(--u)); font-size: calc(7 * var(--u)); }
#again.next-btn { font-size: calc(7.5 * var(--u)); }
.comeback { bottom: calc(env(safe-area-inset-bottom) + calc(34 * var(--u))); }

/* =================== Меню на старте, звёздочки =================== */
.star-count { display: flex; align-items: center; gap: calc(1.2 * var(--u)); padding: calc(1.4 * var(--u)) calc(3.4 * var(--u)); border-radius: 99px; font-size: calc(5.6 * var(--u)); font-weight: 900; color: #8a5a00;
  background: linear-gradient(180deg, #fffbe6, #ffe48a); box-shadow: 0 calc(.8 * var(--u)) 0 #e0b400, 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(59,42,74,.15); }
#start { gap: calc(3 * var(--u)); }
#start .face.big { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
#start .round-btn.play { width: calc(26 * var(--u)); height: calc(26 * var(--u)); font-size: calc(11 * var(--u)); }
.activities { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(2.6 * var(--u)); width: min(94vw, 620px); }
.act { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(1 * var(--u)); padding: calc(2.4 * var(--u)) calc(1 * var(--u)) calc(2 * var(--u)); border: none; border-radius: calc(6 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #fff, #f3eafd); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(150,110,200,.18), 0 calc(1.4 * var(--u)) 0 #d4c1ea, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.18); }
.act i { font-style: normal; font-size: calc(12 * var(--u)); line-height: 1; }
.act span { font-size: calc(3.6 * var(--u)); font-weight: 900; color: var(--ink); }
.act:active { transform: translateY(calc(1 * var(--u))); box-shadow: 0 calc(.4 * var(--u)) 0 #d4c1ea; }
.act[data-go="paint"] { background: linear-gradient(180deg, #fff3fa, #ffd0e8); }
.act[data-go="dress"] { background: linear-gradient(180deg, #f7f0ff, #e2d0ff); }
.act[data-go="house"] { background: linear-gradient(180deg, #f0fff4, #c8f2d4); }
.act.gift { background: linear-gradient(180deg, #fffbe6, #ffe48a); }
.act.gift.ready::after { content: "!"; position: absolute; top: calc(-1.5 * var(--u)); right: calc(-1 * var(--u)); width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #ff3b5c; color: #fff;
  font-size: calc(5 * var(--u)); font-weight: 900; line-height: calc(7 * var(--u)); text-align: center; animation: pulse .8s ease-in-out infinite; }
.act.gift.ready i { animation: wiggle 1.2s ease-in-out infinite; }
.star-gain { left: 50%; top: 30%; transform: translateX(-50%); font-size: calc(12 * var(--u)); font-weight: 900; color: #ffc400; -webkit-text-stroke: calc(.5 * var(--u)) #fff; paint-order: stroke fill;
  white-space: nowrap; animation: starGain 1.8s ease-out forwards; z-index: 40; }
@keyframes starGain { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 20% { transform: translateX(-50%) scale(1.15); opacity: 1; } 100% { transform: translateX(-50%) translateY(-20vh) scale(1); opacity: 0; } }

/* =================== Подарок дня =================== */
#gift { gap: calc(5 * var(--u)); }
.gift-box { border: none; background: none; font-size: calc(50 * var(--u)); line-height: 1; cursor: pointer; padding: 0; animation: wiggle 1.4s ease-in-out infinite; filter: drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) rgba(59,42,74,.3)); }
.gift-box.done { animation: none; filter: grayscale(.6) drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) rgba(59,42,74,.2)); opacity: .7; }
.gift-box.opened { animation: giftOpen .7s ease-in forwards; }
@keyframes giftOpen { 30% { transform: scale(1.2) rotate(-8deg); } 60% { transform: scale(.9) rotate(8deg); } 100% { transform: scale(2) rotate(0); opacity: 0; } }
.gift-note { margin: 0; font-size: clamp(18px, calc(5.5 * var(--u)), 26px); font-weight: 900; text-align: center; padding: 0 calc(6 * var(--u)); color: var(--ink); }
.gift-result { display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(8 * var(--u)); background: #fff;
  box-shadow: 0 calc(2 * var(--u)) 0 #e3d0f2, 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(59,42,74,.25); }
.gift-result.in { animation: stickerIn .8s cubic-bezier(.3,1.6,.5,1) both; }
.gift-pic { font-size: calc(34 * var(--u)); line-height: 1; }
.gift-pic img:not(.em) { width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: calc(5 * var(--u)); background: #fff; box-shadow: inset 0 0 0 calc(.6 * var(--u)) #eee; }
.gift-title { font-size: clamp(18px, calc(6 * var(--u)), 28px); font-weight: 900; text-align: center; }
.gift-stars { font-size: calc(8 * var(--u)); font-weight: 900; color: #e0a800; }

/* =================== Галерея и «Какая красота!» =================== */
#gallery, #paintPick { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + calc(20 * var(--u))); }
.gallery-grid, .pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(3 * var(--u)); }
.gal-item, .pick-card { position: relative; padding: 0; border: none; border-radius: calc(4 * var(--u)); overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 1;
  box-shadow: 0 calc(1 * var(--u)) 0 #e3d0f2, 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(59,42,74,.15); }
.gal-item > img, .pick-card > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: calc(1 * var(--u)); font-size: calc(3.4 * var(--u)); font-weight: 900; text-align: center; background: rgba(255,255,255,.9); }
.pick-card.locked > img { filter: grayscale(1) opacity(.45); }
.pick-card.locked span { color: #b88400; }
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(5 * var(--u)); background: rgba(30,20,50,.85); }
.viewer > img { width: min(90vw, 70vh); border-radius: calc(5 * var(--u)); box-shadow: 0 0 0 calc(1.5 * var(--u)) #fff; }
.viewer-btns { display: flex; align-items: center; gap: calc(4 * var(--u)); }
#viewerDel.sure { background: #ff3b5c; }
#wow { gap: calc(6 * var(--u)); overflow: hidden; background: radial-gradient(circle, #fff7fb, #ffd0e8 70%); }
.wow-frame { position: relative; z-index: 2; padding: calc(3 * var(--u)); border-radius: calc(6 * var(--u)); background: linear-gradient(145deg, #ffd84d, #ff9fd0, #8fd0ff);
  box-shadow: 0 calc(2 * var(--u)) 0 rgba(150,60,120,.3), 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(59,42,74,.3); animation: stickerIn .8s cubic-bezier(.3,1.5,.5,1) both; }
.wow-frame img { display: block; width: min(80vw, 56vh); border-radius: calc(4 * var(--u)); background: #fff; }
.wow-btns { position: relative; z-index: 2; display: flex; align-items: center; gap: calc(4 * var(--u)); }
.mini-btn.big { width: calc(17 * var(--u)); height: calc(17 * var(--u)); font-size: calc(9 * var(--u)); }
.wow-home { position: absolute; top: calc(env(safe-area-inset-top) + calc(3 * var(--u))); left: calc(3 * var(--u)); z-index: 3; }

/* =================== Раскраска =================== */
#paint { justify-content: flex-start; gap: calc(2.5 * var(--u)); padding-top: calc(env(safe-area-inset-top) + calc(18 * var(--u))); }
.next-btn.small { font-size: calc(5.5 * var(--u)); padding: calc(2.2 * var(--u)) calc(5 * var(--u)); box-shadow: 0 0 0 calc(1 * var(--u)) #ff4f9a, 0 calc(1.4 * var(--u)) 0 calc(1 * var(--u)) #b81e63; animation: none; }
.paint-stage { position: relative; width: min(94vw, 56vh); aspect-ratio: 1; border-radius: calc(5 * var(--u)); background: #fff; overflow: hidden; touch-action: none;
  box-shadow: 0 calc(1.4 * var(--u)) 0 #e3d0f2, 0 calc(3 * var(--u)) calc(5 * var(--u)) rgba(59,42,74,.2); }
#paintSvg, #paintSvg svg, #paintCanvas, #paintStamps { position: absolute; inset: 0; width: 100%; height: 100%; }
#paintSvg .r { cursor: pointer; transition: fill .15s; }
#paintSvg .l { pointer-events: none; }
#paintSvg .filled { animation: fillPop .35s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes fillPop { 50% { transform: scale(1.04); } }
#paintCanvas { pointer-events: none; }
.paint-stage[data-tool="brush"] #paintCanvas, .paint-stage[data-tool="glitter"] #paintCanvas, .paint-stage[data-tool="rainbow"] #paintCanvas { pointer-events: auto; }
#paintStamps { pointer-events: none; }
.p-stamp { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot)); line-height: 1; animation: stampIn .3s cubic-bezier(.3,1.8,.5,1); }
.p-stamp img.em { width: 1em; height: 1em; }
@keyframes stampIn { from { transform: translate(-50%, -50%) rotate(var(--rot)) scale(0); } }
.paint-tools { display: flex; gap: calc(2 * var(--u)); }
.paint-tools button { width: calc(13 * var(--u)); height: calc(13 * var(--u)); border: none; border-radius: calc(4 * var(--u)); font-size: calc(7.5 * var(--u)); padding: 0; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; }
.paint-tools button.on { background: radial-gradient(circle at 50% 30%, #ffd0e8, #ff8fc6); box-shadow: 0 calc(1 * var(--u)) 0 #d6408e, 0 0 0 calc(.8 * var(--u)) #fff, 0 0 0 calc(1.6 * var(--u)) #ff5fb0; transform: translateY(calc(-.6 * var(--u))); }
.paint-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(2 * var(--u)); width: min(96vw, 620px); padding: 0 calc(2 * var(--u)); }
.swatch { width: calc(10.5 * var(--u)); height: calc(10.5 * var(--u)); border-radius: 50%; border: calc(.8 * var(--u)) solid #fff; padding: 0; cursor: pointer; box-shadow: 0 calc(.8 * var(--u)) 0 rgba(59,42,74,.2); }
.swatch.on { transform: scale(1.22); box-shadow: 0 0 0 calc(.8 * var(--u)) #ff4f9a, 0 calc(.8 * var(--u)) 0 rgba(59,42,74,.25); }
.swatch.stamp { background: #fff; font-size: calc(7 * var(--u)); line-height: 1; }

/* =================== Одевалка =================== */
#dress { justify-content: flex-start; gap: calc(2.5 * var(--u)); padding-top: calc(env(safe-area-inset-top) + calc(18 * var(--u))); }
.dress-who { display: flex; gap: calc(2 * var(--u)); }
.who-tab { width: calc(13 * var(--u)); height: calc(13 * var(--u)); padding: 0; border-radius: 50%; border: calc(.7 * var(--u)) solid #fff; background: #fff; overflow: hidden; cursor: pointer; opacity: .65;
  box-shadow: 0 calc(.8 * var(--u)) 0 #d4c1ea; }
.who-tab > img { width: 100%; height: 100%; }
.who-tab.on { opacity: 1; transform: scale(1.15); border-color: #ff5fb0; }
.dress-stage { position: relative; width: min(78vw, 42vh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #ffe0f0);
  box-shadow: 0 calc(1.6 * var(--u)) 0 #f3b3d4, 0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(59,42,74,.2); }
.dress-stage.squish { animation: squish .4s; }
#dressSvg, #dressSvg svg, #dressEmoji { position: absolute; inset: 0; width: 100%; height: 100%; }
#dressSvg svg { border-radius: 50%; }
#dressEmoji { pointer-events: none; }
.dress-emo { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot)); line-height: 1; animation: stampIn .35s cubic-bezier(.3,1.8,.5,1); }
.dress-emo img.em { width: 1em; height: 1em; filter: drop-shadow(0 calc(.5 * var(--u)) calc(.5 * var(--u)) rgba(0,0,0,.2)); }
.dress-cats { display: flex; gap: calc(1.6 * var(--u)); flex-wrap: wrap; justify-content: center; }
.cat-tab { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border: none; border-radius: calc(4 * var(--u)); font-size: calc(7 * var(--u)); padding: 0; cursor: pointer; background: #fff9; box-shadow: 0 calc(.8 * var(--u)) 0 #d4c1ea; }
.cat-tab.on { background: radial-gradient(circle at 50% 30%, #fff, #ffd0e8); box-shadow: 0 0 0 calc(.7 * var(--u)) #ff5fb0, 0 calc(.8 * var(--u)) 0 #d6408e; }
.dress-items { display: flex; gap: calc(2.4 * var(--u)); flex-wrap: wrap; justify-content: center; width: min(96vw, 620px); }
.dress-item { position: relative; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border: none; border-radius: calc(5 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f3eafd); box-shadow: inset 0 calc(-1 * var(--u)) 0 rgba(150,110,200,.15), 0 calc(1.2 * var(--u)) 0 #d4c1ea; }
.dress-item.on { background: radial-gradient(circle at 50% 30%, #fff, #c8f2d4); box-shadow: 0 0 0 calc(.8 * var(--u)) #2fb36b, 0 calc(1.2 * var(--u)) 0 #1b7a2b; }
.dress-item.locked img { filter: grayscale(1) opacity(.5); }
.dress-item.locked::after { content: "🔒 " attr(data-cost) "⭐"; position: absolute; left: 50%; bottom: calc(-1.5 * var(--u)); transform: translateX(-50%); white-space: nowrap;
  font-size: calc(3 * var(--u)); font-weight: 900; padding: calc(.4 * var(--u)) calc(1.4 * var(--u)); border-radius: 99px; background: #fff3c4; color: #8a5a00; }
.flash { position: fixed; inset: 0; z-index: 60; background: #fff; pointer-events: none; animation: flash .5s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* =================== Домик Паши =================== */
#house { justify-content: flex-end; padding-bottom: calc(env(safe-area-inset-bottom) + calc(4 * var(--u))); gap: calc(3 * var(--u)); overflow: hidden; }
.room { position: absolute; inset: 0; background: linear-gradient(180deg, #ffe8d1 0 62%, #d9a877 62% 100%); }
.room::before { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: calc(2 * var(--u)); background: #b98552; }
.room .window { position: absolute; left: 50%; top: 16%; width: calc(44 * var(--u)); height: calc(34 * var(--u)); margin-left: calc(-22 * var(--u)); border-radius: calc(4 * var(--u)) calc(4 * var(--u)) calc(1 * var(--u)) calc(1 * var(--u)); overflow: hidden;
  background: linear-gradient(180deg, #7cc8ff, #d8f0ff); border: calc(2.4 * var(--u)) solid #fff; box-shadow: 0 calc(1.4 * var(--u)) 0 #e8cdb1; }
.room .window i { position: absolute; left: 50%; top: 0; bottom: 0; width: calc(2 * var(--u)); margin-left: calc(-1 * var(--u)); background: #fff; }
.room .window::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(2 * var(--u)); margin-top: calc(-1 * var(--u)); background: #fff; }
.room .rug { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 12%; border-radius: 50%; background: radial-gradient(ellipse, #ff9fd0 0 40%, #ffd0e8 41% 60%, #ff9fd0 61%); opacity: .9; }
.room .night-sky { display: none; }
.tub-front { display: none; position: absolute; left: 50%; bottom: calc(-3 * var(--u)); transform: translateX(-50%); width: calc(64 * var(--u)); height: calc(26 * var(--u)); overflow: hidden; z-index: 3; pointer-events: none; }
.tub-front img.em { position: absolute; left: 0; bottom: 0; width: calc(64 * var(--u)); height: calc(64 * var(--u)); filter: none; }
.house-floor { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: calc(2 * var(--u)); width: 100%; margin-bottom: calc(4 * var(--u)); }
.h-pasha, .h-cat { position: relative; border: none; background: none; padding: 0; cursor: pointer; }
.h-pasha .face { width: calc(44 * var(--u)); height: calc(44 * var(--u)); font-size: calc(32 * var(--u)); }
.h-cat > img { width: calc(27 * var(--u)); height: calc(27 * var(--u)); display: block; filter: drop-shadow(0 calc(1.5 * var(--u)) calc(1 * var(--u)) rgba(80,40,10,.3)); }
.hop { animation: catHop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes catHop { 40% { transform: translateY(calc(-5 * var(--u))) rotate(-6deg); } }
.chomp { animation: chomp .5s; }
@keyframes chomp { 25%, 75% { transform: scale(1.08, .92); } 50% { transform: scale(.95, 1.06); } }
.meters { display: flex; gap: calc(2 * var(--u)); }
.meters span { display: flex; align-items: center; gap: calc(1 * var(--u)); padding: calc(1 * var(--u)) calc(2 * var(--u)); border-radius: 99px; background: #fffc; font-size: calc(5 * var(--u)); box-shadow: 0 calc(.6 * var(--u)) 0 #e3d0f2; }
.meters span i { display: block; width: calc(12 * var(--u)); height: calc(2.8 * var(--u)); border-radius: 99px; overflow: hidden; background: #ece3f5; box-shadow: inset 0 calc(.3 * var(--u)) calc(.6 * var(--u)) rgba(0,0,0,.12); }
.meters span i b { display: block; height: 100%; width: 50%; border-radius: 99px; background: linear-gradient(90deg, #7ed957, #2fb36b); transition: width .4s; }
.meters span i b.low { background: linear-gradient(90deg, #ff9b6b, #ff3b5c); animation: pulse .8s ease-in-out infinite; }
.house-tray { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: calc(2 * var(--u)); padding: calc(2.5 * var(--u)); border-radius: calc(6 * var(--u)); background: #fffd;
  box-shadow: 0 calc(1.2 * var(--u)) 0 #e3d0f2; width: min(94vw, 620px); }
.food { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border: none; border-radius: calc(4 * var(--u)); background: #fff; font-size: calc(9 * var(--u)); padding: 0; cursor: pointer; box-shadow: 0 calc(.8 * var(--u)) 0 #e3d0f2; }
.flyer { z-index: 45; transition: transform .55s cubic-bezier(.4,-.3,.6,1), opacity .55s; }
.house-actions { position: relative; z-index: 3; display: flex; gap: calc(3 * var(--u)); }
.h-act { display: flex; flex-direction: column; align-items: center; gap: calc(.6 * var(--u)); width: calc(24 * var(--u)); padding: calc(2 * var(--u)) 0 calc(1.6 * var(--u)); border: none; border-radius: calc(6 * var(--u)); cursor: pointer;
  font-size: calc(10 * var(--u)); line-height: 1; background: linear-gradient(180deg, #fff, #f3eafd); box-shadow: 0 calc(1.4 * var(--u)) 0 #d4c1ea, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.2); }
.h-act span { font-size: calc(3.6 * var(--u)); font-weight: 900; }
.zzz { position: absolute; right: calc(-2 * var(--u)); top: calc(-4 * var(--u)); font-size: calc(9 * var(--u)); animation: zzz 2s ease-in-out infinite; pointer-events: none; }
@keyframes zzz { 50% { transform: translate(calc(2 * var(--u)), calc(-3 * var(--u))) scale(1.15); opacity: .7; } }
#house.night .room { filter: brightness(.45) saturate(.7) hue-rotate(200deg); }
#house.night .room .window { background: linear-gradient(180deg, #0d1640, #2b3a80); }
#house.night .room .night-sky { display: block; position: absolute; left: 50%; top: 18%; margin-left: calc(6 * var(--u)); font-size: calc(12 * var(--u)); filter: none; }
#house.bath .tub-front { display: block; }
#house.bath .h-pasha { transform: translateY(calc(-6 * var(--u))); }
#house.bath .h-cat { opacity: .4; }
.bubble-fx { animation: bubbleUp 1.4s ease-out forwards; font-size: calc(7 * var(--u)); }
@keyframes bubbleUp { to { transform: translateY(calc(-14 * var(--u))) scale(1.4); opacity: 0; } }

.pet-name { position: absolute; left: 50%; bottom: calc(-3 * var(--u)); transform: translateX(-50%); padding: calc(.6 * var(--u)) calc(2.4 * var(--u)); border-radius: 99px; white-space: nowrap;
  font-size: calc(4 * var(--u)); font-weight: 900; color: #fff; background: linear-gradient(180deg, #b48cff, #7c4dff); box-shadow: 0 calc(.6 * var(--u)) 0 #5a2fd1; pointer-events: none; }
#hCatG .pet-name { background: linear-gradient(180deg, #ffb35c, #e07b24); box-shadow: 0 calc(.6 * var(--u)) 0 #b85c10; }

/* «Стряхни Пашу»: значок телефона трясётся вместе с ним */
.shake-phone { position: absolute; bottom: calc(20 * var(--u)); left: 50%; width: calc(26 * var(--u)); height: calc(26 * var(--u)); margin-left: calc(-13 * var(--u)); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.shake-phone .mic-icon { font-size: calc(16 * var(--u)); animation: phoneWiggle 1.2s ease-in-out infinite; }
.shake-phone.shaking .mic-icon { animation: phoneShake .12s linear infinite; }
@keyframes phoneWiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(14deg); } 90% { transform: rotate(-8deg); } }
@keyframes phoneShake { 0% { transform: translate(calc(-1 * var(--u)), 0) rotate(-10deg); } 50% { transform: translate(calc(1 * var(--u)), calc(-.5 * var(--u))) rotate(10deg); } 100% { transform: translate(calc(-1 * var(--u)), 0) rotate(-10deg); } }

/* =================== Уровень Влады =================== */
.vlada-lvl { display: flex; align-items: center; gap: calc(2.4 * var(--u)); padding: calc(1.4 * var(--u)) calc(4 * var(--u)) calc(1.4 * var(--u)) calc(1.4 * var(--u)); border-radius: 99px;
  background: linear-gradient(180deg, #fff, #fbe9f6); box-shadow: 0 calc(1 * var(--u)) 0 #f0c6df, 0 calc(2.4 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); }
.vlada-lvl .lvl-num { display: flex; align-items: center; justify-content: center; width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; font-size: calc(5.6 * var(--u)); font-weight: 900; color: #fff;
  background: radial-gradient(circle at 50% 30%, #ffa8d4, #ff4f9a 60%, #e2337f); box-shadow: inset 0 calc(-.8 * var(--u)) 0 rgba(150,20,80,.3); }
.vlada-lvl > div { display: flex; flex-direction: column; gap: calc(1 * var(--u)); }
.vlada-lvl .lvl-title { font-size: calc(4.4 * var(--u)); color: #d12f76; }
.vlada-lvl .xp { display: block; width: calc(36 * var(--u)); height: calc(2.6 * var(--u)); border-radius: 99px; overflow: hidden; background: #f1e3ee; box-shadow: inset 0 calc(.3 * var(--u)) calc(.6 * var(--u)) rgba(0,0,0,.1); }
.vlada-lvl .xp i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffd84d, #ff86bf); transition: width .6s; }
.xp-gain { left: 50%; top: 42%; transform: translateX(-50%); font-size: calc(9 * var(--u)); font-weight: 900; color: #ff5fb0; -webkit-text-stroke: calc(.4 * var(--u)) #fff; paint-order: stroke fill;
  white-space: nowrap; animation: starGain 1.6s ease-out forwards; z-index: 40; }
.vlada-up { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; background: rgba(40,20,70,.55); }
.up-card { display: flex; flex-direction: column; align-items: center; gap: calc(2.5 * var(--u)); width: min(88vw, 520px); padding: calc(6 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)); border-radius: calc(8 * var(--u));
  background: radial-gradient(circle at 50% 0%, #fff8d6, #fff 60%); box-shadow: 0 calc(2 * var(--u)) 0 #f3cf6b, 0 calc(5 * var(--u)) calc(10 * var(--u)) rgba(0,0,0,.35); }
.up-card.in { animation: stickerIn .8s cubic-bezier(.3,1.6,.5,1) both; }
.up-face { position: relative; }
.up-face .face { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
.up-crown { position: absolute; left: 50%; top: calc(-11 * var(--u)); transform: translateX(-50%) rotate(-8deg); font-size: calc(18 * var(--u)); animation: wobble 1.4s ease-in-out infinite; }
.up-head { font-size: calc(6 * var(--u)); font-weight: 900; color: #8a5a00; }
.up-row { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.up-num { display: flex; align-items: center; justify-content: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; font-size: calc(10 * var(--u)); font-weight: 900; color: #fff;
  background: radial-gradient(circle at 50% 30%, #ffa8d4, #ff4f9a 60%, #e2337f); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(150,20,80,.3), 0 calc(1.2 * var(--u)) 0 #b81e63; }
.up-title { font-size: calc(8 * var(--u)); font-weight: 900; color: #d12f76; }
.up-prize { display: flex; align-items: center; gap: calc(3 * var(--u)); padding: calc(2.5 * var(--u)) calc(4 * var(--u)); border-radius: calc(5 * var(--u)); background: #fff3c4; font-size: clamp(15px, calc(4.4 * var(--u)), 21px); font-weight: 900; }
.up-prize .up-pic { font-size: calc(12 * var(--u)); line-height: 1; }
.up-prize .up-pic img:not(.em) { width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(3 * var(--u)); background: #fff; }
.up-prize b { color: #e0a800; white-space: nowrap; }

/* =================== Игры «на вырост» =================== */
.mini-simon, .mini-pattern, .mini-odd, .mini-sum { display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)); padding: calc(2 * var(--u)) calc(3 * var(--u)) calc(6 * var(--u)); }
.grow-dots { margin-top: calc(1 * var(--u)); }
.grow-answers { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(3 * var(--u)); margin-top: auto; }
.grow-ans { width: calc(21 * var(--u)); height: calc(21 * var(--u)); padding: calc(2 * var(--u)); border: none; border-radius: calc(6 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(150,110,200,.18), 0 calc(1.4 * var(--u)) 0 #cdb5e3, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); }
.grow-ans svg { width: 100%; height: 100%; }
.grow-ans .num { font-size: calc(12 * var(--u)); line-height: 1; color: #1e6fcc; }
.grow-ans.right { background: #d9ffe9; box-shadow: 0 0 0 calc(1 * var(--u)) #1fb36b; transform: scale(1.1); }

/* «Повтори за Пашей» */
.simon { flex: 1; display: grid; grid-template-columns: repeat(2, calc(36 * var(--u))); gap: calc(4 * var(--u)); align-content: center; }
.simon.n6 { grid-template-columns: repeat(3, calc(27 * var(--u))); }
.pad { aspect-ratio: 1; border: none; border-radius: calc(8 * var(--u)); cursor: pointer; font-size: calc(14 * var(--u)); line-height: 1; padding: 0;
  background: radial-gradient(circle at 50% 30%, #fff8, var(--c) 45%, var(--d)); box-shadow: inset 0 calc(-2 * var(--u)) 0 rgba(0,0,0,.18), 0 calc(1.8 * var(--u)) 0 var(--d); opacity: .7; transition: transform .1s, opacity .1s, filter .1s; }
.simon.n6 .pad { font-size: calc(11 * var(--u)); border-radius: calc(6 * var(--u)); }
.pad.lit { opacity: 1; transform: scale(1.1); filter: brightness(1.25) drop-shadow(0 0 calc(5 * var(--u)) var(--c)); }

/* «Продолжи бусы» */
.beads { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: calc(1.6 * var(--u)); padding: calc(4 * var(--u)) calc(3 * var(--u)); margin-top: calc(6 * var(--u));
  border-radius: calc(6 * var(--u)); background: #fffc; box-shadow: 0 calc(1.2 * var(--u)) 0 #e3d0f2; }
.beads .string { position: absolute; left: calc(4 * var(--u)); right: calc(4 * var(--u)); top: 50%; height: calc(.8 * var(--u)); background: #b9a0e0; border-radius: 99px; }
.bead { position: relative; width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.bead svg { width: 100%; height: 100%; filter: drop-shadow(0 calc(.8 * var(--u)) calc(.6 * var(--u)) rgba(59,42,74,.25)); }
.bead.hole { display: flex; align-items: center; justify-content: center; border-radius: 50%; border: calc(.8 * var(--u)) dashed #ff86bf; background: #fff; font-size: calc(8 * var(--u)); font-weight: 900; color: #ff4f9a;
  animation: pulse 1s ease-in-out infinite; }
.bead.filled { animation: stampIn .35s cubic-bezier(.3,1.8,.5,1); }

/* «Что лишнее?» */
.odd-grid { flex: 1; display: grid; grid-template-columns: repeat(2, calc(34 * var(--u))); gap: calc(4 * var(--u)); align-content: center; }
.odd-grid.n5, .odd-grid.n6 { grid-template-columns: repeat(3, calc(26 * var(--u))); }
.odd-item { aspect-ratio: 1; border: none; border-radius: calc(7 * var(--u)); cursor: pointer; font-size: calc(18 * var(--u)); line-height: 1; padding: 0; transform: rotate(var(--tilt));
  background: linear-gradient(180deg, #fff, #f3eafd); box-shadow: inset 0 calc(-1.4 * var(--u)) 0 rgba(150,110,200,.15), 0 calc(1.4 * var(--u)) 0 #d4c1ea, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); }
.odd-grid.n5 .odd-item, .odd-grid.n6 .odd-item { font-size: calc(14 * var(--u)); }
.odd-item.right { background: radial-gradient(circle at 50% 30%, #fff, #c8f2d4); box-shadow: 0 0 0 calc(1 * var(--u)) #2fb36b, 0 calc(1.4 * var(--u)) 0 #1b7a2b; transform: scale(1.12); }

/* «Сколько всего?» */
.sum-board { display: flex; align-items: center; justify-content: center; gap: calc(3 * var(--u)); flex-wrap: wrap; margin-top: calc(6 * var(--u)); padding: calc(4 * var(--u)); border-radius: calc(6 * var(--u)); background: #fffc;
  box-shadow: 0 calc(1.2 * var(--u)) 0 #e3d0f2; max-width: 94vw; }
.sum-group { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(1.4 * var(--u)); max-width: calc(40 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1; }
.sum-group .eaten { opacity: .3; position: relative; }
.sum-group .eaten::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: calc(1 * var(--u)); background: #ff3b5c; border-radius: 99px; transform: rotate(-30deg); }
.sum-op { font-size: calc(14 * var(--u)); color: #ff4f9a; }
.sum-pasha { font-size: calc(16 * var(--u)); animation: chomp .6s ease-in-out infinite; }

/* «Найди пару»: поле 4×4 */
.memory.huge { gap: calc(2 * var(--u)); }
.memory.huge .mem { width: calc(19 * var(--u)); height: calc(21 * var(--u)); }
.memory.huge .mem .front { font-size: calc(12 * var(--u)); }

/* «Цвета и фигуры»: больше вариантов, маленькие, кружатся */
.shapes.n5 .shape-btn, .shapes.n6 .shape-btn { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.shapes.n8 .shape-btn, .shapes.n9 .shape-btn { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.shape-btn.small svg { transform: scale(.58); }
.shapes.spin .shape-btn svg { animation: shapeSpin var(--spin, 8s) linear infinite; }
.shapes.spin .shape-btn.small svg { animation-name: shapeSpinSmall; }
@keyframes shapeSpin { to { transform: rotate(360deg); } }
@keyframes shapeSpinSmall { from { transform: scale(.58) rotate(0); } to { transform: scale(.58) rotate(360deg); } }

/* =================== «Где настоящий Паша?»: сцена с прожекторами и напёрстки =================== */
.mini-real { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); overflow: hidden; }
.mini-real .spotlights i { position: absolute; top: -10vh; width: calc(60 * var(--u)); height: 120vh; background: linear-gradient(180deg, rgba(255,250,200,.55), rgba(255,250,200,0) 80%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); pointer-events: none; animation: spot 5s ease-in-out infinite alternate; }
.mini-real .spotlights i:first-child { left: calc(-10 * var(--u)); transform-origin: top center; transform: rotate(-14deg); }
.mini-real .spotlights i:last-child { right: calc(-10 * var(--u)); transform-origin: top center; transform: rotate(14deg); animation-delay: -2.5s; }
@keyframes spot { to { opacity: .55; } }
.lineup { position: relative; flex: 1; width: min(96vw, 620px); margin-bottom: calc(6 * var(--u)); transition: opacity .3s; }
.lineup.dim { opacity: .55; }
.twin2 { position: absolute; transform: translate(-50%, -50%); padding: calc(1.6 * var(--u)); border: none; border-radius: calc(6 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #f2f9ff, #c3e1ff); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(60,130,220,.2), 0 calc(1.4 * var(--u)) 0 #8dbdf0, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(30,111,204,.2);
  transition: left var(--swap, .5s) cubic-bezier(.45,0,.55,1), top var(--swap, .5s) cubic-bezier(.45,0,.55,1), transform .2s; }
.lineup.c2 .twin2 { width: calc(38 * var(--u)); } .lineup.c3 .twin2 { width: calc(28 * var(--u)); }
.twin2 .twin-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; object-fit: cover; pointer-events: none; }
.twin2 .hat { top: calc(-5 * var(--u)); font-size: calc(11 * var(--u)); }
.lineup.c3 .twin2 .hat { top: calc(-4 * var(--u)); font-size: calc(8 * var(--u)); }
.twin2 .hat.eyes { top: 30%; }
.twin2.moving { transform: translate(-50%, -50%) scale(1.12); z-index: 3; box-shadow: 0 calc(3 * var(--u)) 0 #8dbdf0, 0 calc(6 * var(--u)) calc(6 * var(--u)) rgba(30,111,204,.3); }
.twin2.found { transform: translate(-50%, -50%) scale(1.2); z-index: 4; background: linear-gradient(180deg, #fffbe6, #ffe48a); box-shadow: 0 0 0 calc(1.2 * var(--u)) #ffd23f, 0 calc(1.4 * var(--u)) 0 #e0a800; }
.twin2 .tell { position: absolute; left: 50%; top: 70%; font-size: calc(9 * var(--u)); transform: translate(-50%, 0) scale(0); transition: transform .2s cubic-bezier(.3,1.8,.5,1); pointer-events: none; }
.twin2.telling .tell { transform: translate(-50%, 0) scale(1); }   /* язык поверх настоящего фото Паши */
.real-dots { position: relative; z-index: 2; }

/* =================== «Угадай сказку» / «Угадай мультик» =================== */
.mini-tale, .mini-toon { display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); padding: calc(2 * var(--u)) calc(3 * var(--u)) calc(6 * var(--u)); }
.quiz-q { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.quiz-q .face { width: calc(22 * var(--u)); height: calc(22 * var(--u)); font-size: calc(16 * var(--u)); }
.quiz-bubble { position: relative; padding: calc(3 * var(--u)) calc(5 * var(--u)); border: none; border-radius: calc(6 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) calc(1 * var(--u)); font-size: calc(8 * var(--u)); cursor: pointer;
  background: #fff; box-shadow: 0 calc(1.2 * var(--u)) 0 #e3d0f2, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); animation: pulse 1.4s ease-in-out infinite; }
.quiz-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(3 * var(--u)); align-content: center; width: min(94vw, 600px); }
.quiz-grid.n3 { grid-template-columns: 1fr; width: min(70vw, 420px); }
.quiz-card { display: flex; flex-direction: column; align-items: center; gap: calc(1.4 * var(--u)); padding: calc(2.6 * var(--u)) calc(2 * var(--u)); border: none; border-radius: calc(6 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #fffdf6, #ffeccd); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(200,140,60,.18), 0 calc(1.4 * var(--u)) 0 #e8c9a0, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.15); }
.quiz-card .qp { font-size: calc(12 * var(--u)); line-height: 1; letter-spacing: calc(-1 * var(--u)); white-space: nowrap; }
.quiz-grid.n3 .quiz-card { flex-direction: row; justify-content: center; gap: calc(4 * var(--u)); }
.quiz-card .qt { font-size: clamp(13px, calc(3.8 * var(--u)), 18px); font-weight: 900; color: #7a4a14; text-align: center; line-height: 1.15; }
.quiz-card.right { background: radial-gradient(circle at 50% 30%, #fff, #c8f2d4); box-shadow: 0 0 0 calc(1 * var(--u)) #2fb36b, 0 calc(1.4 * var(--u)) 0 #1b7a2b; transform: scale(1.06); }
.lineup .twin2 .hat.eyes { top: 47%; transform: translate(-50%, -50%); font-size: calc(12 * var(--u)); }
.lineup.c3 .twin2 .hat.eyes { font-size: calc(9 * var(--u)); }

.papa-voice { margin-top: calc(1 * var(--u)); padding: calc(2.4 * var(--u)) calc(4 * var(--u)); border: none; border-radius: 99px; font: inherit; font-size: clamp(15px, calc(4.2 * var(--u)), 20px); cursor: pointer;
  background: linear-gradient(180deg, #f2f9ff, #c3e1ff); box-shadow: 0 calc(1 * var(--u)) 0 #8dbdf0; }
.papa-voice b { color: #1e6fcc; }

/* =================== Сказки на ночь =================== */
.activities { grid-template-columns: repeat(5, 1fr); gap: calc(2 * var(--u)); }
.act { border-radius: calc(5 * var(--u)); padding: calc(2 * var(--u)) calc(.6 * var(--u)) calc(1.6 * var(--u)); }
.act i { font-size: calc(10 * var(--u)); }
.act span { font-size: calc(3 * var(--u)); }
.act.story { background: linear-gradient(180deg, #5b4bb5, #2b2370); box-shadow: inset 0 calc(-1.2 * var(--u)) 0 rgba(0,0,0,.25), 0 calc(1.4 * var(--u)) 0 #1c1650, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(30,20,80,.3); }
.act.story span { color: #fff; }
#storyLib { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + calc(20 * var(--u))); background: linear-gradient(180deg, #2b2370, #5b4bb5); }
#storyLib .album-title { color: #ffe680; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(3 * var(--u)); }
.story-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(1.6 * var(--u)); padding: calc(3 * var(--u)) calc(2 * var(--u)); border: none; border-radius: calc(5 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #fffdf6, #ffeccd); box-shadow: 0 calc(1.2 * var(--u)) 0 #e8c9a0, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(0,0,0,.15); }
.story-card .sc-cover { font-size: calc(13 * var(--u)); line-height: 1; white-space: nowrap; letter-spacing: calc(-1 * var(--u)); }
.story-card .sc-title { font-size: clamp(13px, calc(3.8 * var(--u)), 18px); font-weight: 900; color: #7a4a14; text-align: center; line-height: 1.2; }
.story-card.locked { background: #ece6f5; box-shadow: 0 calc(1.2 * var(--u)) 0 #cfc3e3; }
.story-card.locked .sc-title { color: #8a7aa6; }
.story-card.read::after { content: "✓"; position: absolute; top: calc(1.5 * var(--u)); right: calc(2 * var(--u)); font-size: calc(5 * var(--u)); color: #1fb36b; font-weight: 900; }
.story-card.fresh { box-shadow: 0 0 0 calc(1 * var(--u)) #ffd23f, 0 calc(1.2 * var(--u)) 0 #e0a800; animation: pulse 1.6s ease-in-out infinite; }

#story { justify-content: flex-start; gap: calc(3 * var(--u)); padding-top: calc(env(safe-area-inset-top) + calc(18 * var(--u))); background: radial-gradient(circle at 50% 0%, #3a2f8a, #120d33 70%); color: #fff; overflow: hidden; }
.story-stars { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 12% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 72% 12%, #fff, transparent), radial-gradient(2px 2px at 40% 34%, #ffe680, transparent),
    radial-gradient(1.5px 1.5px at 88% 40%, #fff, transparent), radial-gradient(2px 2px at 22% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 76%, #ffe680, transparent),
    radial-gradient(1.5px 1.5px at 92% 86%, #fff, transparent), radial-gradient(2px 2px at 6% 90%, #fff, transparent);
  animation: twinkle 3s ease-in-out infinite alternate; }
.story-title { font-size: clamp(16px, calc(5 * var(--u)), 24px); font-weight: 900; color: #ffe680; text-align: center; max-width: 60vw; line-height: 1.15; }
.story-scene { position: relative; width: min(92vw, 560px); aspect-ratio: 4 / 3; border-radius: calc(6 * var(--u)); overflow: hidden; box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255,255,255,.15), 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.4); }
.story-scene.turn { animation: pageTurn .6s ease-out; }
@keyframes pageTurn { from { opacity: 0; transform: perspective(800px) rotateY(-25deg) scale(.95); } }
/* фоны сказок — нарисованные сцены story-bg/*.svg; камера медленно «наезжает», как в мультике */
.story-scene { background: #2b2370; }
.story-scene::before { content: ""; position: absolute; inset: 0; background: center / cover no-repeat; animation: storyCam 18s ease-in-out infinite alternate; }
.story-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 calc(8 * var(--u)) rgba(20,10,50,.35); border-radius: inherit; }
@keyframes storyCam { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1%); } }
@media (prefers-reduced-motion: reduce) { .story-scene::before { animation: none; } }
.bg-night::before { background-image: url(story-bg/night.svg); }
.bg-home::before { background-image: url(story-bg/home.svg); }
.bg-forest::before { background-image: url(story-bg/forest.svg); }
.bg-sea::before { background-image: url(story-bg/sea.svg); }
.bg-winter::before { background-image: url(story-bg/winter.svg); }
.bg-garden::before { background-image: url(story-bg/garden.svg); }
.bg-sky::before { background-image: url(story-bg/sky.svg); }
.bg-castle::before { background-image: url(story-bg/castle.svg); }
.bg-meadow::before { background-image: url(story-bg/meadow.svg); }
.bg-berry::before { background-image: url(story-bg/berry.svg); }
.bg-autumn::before { background-image: url(story-bg/autumn.svg); }
.bg-plane::before { background-image: url(story-bg/plane.svg); }
#storyProps { position: absolute; inset: 0; }
.st-prop { position: absolute; font-size: calc(12 * var(--u)); line-height: 1; animation: float 4s ease-in-out infinite alternate; }
.story-who { position: absolute; left: 0; right: 0; bottom: 3%; display: flex; justify-content: center; align-items: flex-end; gap: calc(2 * var(--u)); }
.st-hero { width: calc(28 * var(--u)); height: calc(28 * var(--u)); animation: breathe 2.6s ease-in-out infinite; filter: drop-shadow(0 calc(1.5 * var(--u)) calc(1 * var(--u)) rgba(0,0,0,.3)); }
.st-hero.photo { border-radius: 50%; object-fit: cover; border: calc(1 * var(--u)) solid #fff; }
.st-hero.cat { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.st-hero:nth-child(2) { animation-delay: -.8s; } .st-hero:nth-child(3) { animation-delay: -1.6s; }
@keyframes breathe { 50% { transform: translateY(calc(-1 * var(--u))) scale(1.02); } }
.story-text { position: relative; margin: 0; width: min(92vw, 560px); font-size: clamp(17px, calc(5 * var(--u)), 24px); font-weight: 600; line-height: 1.45; text-align: center; color: #fff8e6; min-height: 5em; }
.story-dots { display: flex; gap: calc(1.4 * var(--u)); }
.story-dots i { width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.25); }
.story-dots i.on { background: #ffe680; }
.story-ctrl { display: flex; align-items: center; gap: calc(5 * var(--u)); margin-top: auto; margin-bottom: calc(env(safe-area-inset-bottom) + calc(5 * var(--u))); }
.story-ctrl .mini-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); box-shadow: none; color: #fff; }
.story-sleep { position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column; align-items: center; justify-content: center; gap: calc(3 * var(--u)); border: none; cursor: pointer;
  background: #05030f; color: #6f6699; opacity: 0; }
.story-sleep span { font-size: calc(22 * var(--u)); } .story-sleep b { font-size: calc(6 * var(--u)); }
#story.sleeping .story-sleep { display: flex; animation: fadeSleep 25s ease-in forwards; }
@keyframes fadeSleep { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 1; color: #2a2540; } }

/* =================== Планшет и широкий экран лёжа: стартовый экран в две колонки =================== */
@media (orientation: landscape) and (min-width: 700px) {
  :root { --u: min(.72vw, .62vh); }
  #start { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "title play" "peek play" "lvl stars" "acts acts";
    align-content: center; justify-items: center; align-items: center; gap: calc(3 * var(--u)) calc(6 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 14 * var(--u)); }
  #start .title { grid-area: title; }
  #start .peek { grid-area: peek; }
  #start .vlada-lvl { grid-area: lvl; }
  #startBtn { grid-area: play; width: calc(34 * var(--u)); height: calc(34 * var(--u)); font-size: calc(14 * var(--u)); }
  #levelPick { grid-area: stars; }
  #start .activities { grid-area: acts; width: min(90vw, calc(130 * var(--u))); }
  /* сцены и карточки — пошире, текст сказки — рядом с картинкой */
  .story-scene { width: min(60vw, calc(110 * var(--u))); }
  .rules-card { width: min(70vw, 640px); }
}
@media (orientation: landscape) and (min-width: 700px) {
  /* раскраска: холст слева крупно, инструменты и краски справа */
  #paint:not(.hidden) { display: grid; grid-template-columns: auto minmax(0, calc(60 * var(--u))); grid-template-areas: "stage tools" "stage pal";
    align-content: center; justify-content: center; column-gap: calc(5 * var(--u)); row-gap: calc(3 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 14 * var(--u)); }
  #paintStage { grid-area: stage; width: min(58vw, 78vh); }
  #paintTools { grid-area: tools; flex-wrap: wrap; justify-content: center; align-self: end; }
  #paintPalette { grid-area: pal; width: auto; align-self: start; }
  /* одевалка: персонаж слева, вещи справа */
  #dress:not(.hidden) { display: grid; grid-template-columns: auto minmax(0, calc(70 * var(--u))); grid-template-areas: "who who" "stage cats" "stage items";
    align-content: center; justify-content: center; column-gap: calc(6 * var(--u)); row-gap: calc(3 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 14 * var(--u)); }
  .dress-who { grid-area: who; justify-self: center; }
  .dress-stage { grid-area: stage; width: min(44vw, 56vh); }
  .dress-cats { grid-area: cats; align-self: end; }
  .dress-items { grid-area: items; width: auto; align-self: start; }
}
/* сказка: предметы и герои — по размеру сцены, а не экрана */
.story-scene { container-type: inline-size; }
.st-prop { font-size: 15cqw; }
.st-hero { width: 30cqw; height: 30cqw; }
.st-hero.cat { width: 24cqw; height: 24cqw; }

/* =================== Фотобудка =================== */
.activities { grid-template-columns: repeat(3, 1fr); width: min(92vw, calc(110 * var(--u))); }
.act { flex-direction: row; justify-content: center; gap: calc(1.6 * var(--u)); padding: calc(2 * var(--u)); }
.act i { font-size: calc(9 * var(--u)); }
.act span { font-size: calc(3.6 * var(--u)); }
.act.booth { background: linear-gradient(180deg, #fff6e0, #ffd59a); }
@media (orientation: landscape) and (min-width: 700px) { .activities { grid-template-columns: repeat(7, 1fr); } .act { flex-direction: column; } }
#booth { justify-content: flex-start; gap: calc(2.5 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 17 * var(--u)); background: radial-gradient(circle at 50% 0%, #ffe9f4, #ffd0e8 70%); }
.booth-modes { display: flex; gap: calc(2 * var(--u)); padding: calc(1 * var(--u)); border-radius: 99px; background: #fff9; }
.bmode { width: calc(13 * var(--u)); height: calc(13 * var(--u)); border: none; border-radius: 50%; font-size: calc(7 * var(--u)); background: transparent; cursor: pointer; padding: 0; }
.bmode.on { background: #fff; box-shadow: 0 0 0 calc(.7 * var(--u)) #ff5fb0, 0 calc(1 * var(--u)) 0 #d6408e; }
.booth-stage { position: relative; width: min(94vw, calc(60vh * .75)); aspect-ratio: 3 / 4; border-radius: calc(6 * var(--u)); overflow: hidden; background: #2b2238;
  box-shadow: 0 0 0 calc(1.4 * var(--u)) #fff, 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(59,42,74,.3); }
#boothVideo, #boothCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.booth-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: calc(3 * var(--u)) calc(5 * var(--u)); border-radius: calc(4 * var(--u));
  background: rgba(0,0,0,.55); color: #fff; font-size: clamp(14px, calc(4.4 * var(--u)), 22px); text-align: center; max-width: 86%; }
.booth-task { position: absolute; top: calc(3 * var(--u)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: calc(2 * var(--u)) calc(4 * var(--u));
  border-radius: calc(5 * var(--u)); background: #fffd; box-shadow: 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.25); }
.booth-task .bt-pic { font-size: calc(18 * var(--u)); line-height: 1; animation: wobble 1.2s ease-in-out infinite; }
.booth-task b { font-size: calc(3.6 * var(--u)); color: #d12f76; }
.booth-task.in { animation: stickerIn .6s cubic-bezier(.3,1.6,.5,1) both; }
.booth-masks { display: flex; gap: calc(2 * var(--u)); overflow-x: auto; max-width: 96vw; padding: calc(1.5 * var(--u)) calc(2 * var(--u)); scrollbar-width: none; }
.mask-btn { flex: none; width: calc(15 * var(--u)); height: calc(15 * var(--u)); border: none; border-radius: 50%; font-size: calc(9 * var(--u)); padding: 0; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f3eafd); box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; }
.mask-btn.on { box-shadow: 0 0 0 calc(.8 * var(--u)) #ff5fb0, 0 calc(1 * var(--u)) 0 #d6408e; transform: scale(1.1); }
.booth-ctrl { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.shutter { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; border: calc(1.6 * var(--u)) solid #fff; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #ffa8d4, #ff4f9a 60%, #e2337f); box-shadow: 0 0 0 calc(1 * var(--u)) #ff5fb0, 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(180,30,100,.4); }
.shutter:active { transform: scale(.92); }

/* =================== Мастерская поделок =================== */
.art-tabs { position: relative; z-index: 2; display: flex; gap: calc(2 * var(--u)); margin-bottom: calc(2 * var(--u)); }
.art-tab { padding: calc(2 * var(--u)) calc(5 * var(--u)); border: none; border-radius: 99px; font: inherit; font-size: calc(4.4 * var(--u)); cursor: pointer;
  background: #fff9; box-shadow: 0 calc(.8 * var(--u)) 0 #d4c1ea; }
.art-tab.on { background: linear-gradient(180deg, #fff, #ffe2c2); box-shadow: 0 0 0 calc(.7 * var(--u)) #f08a24, 0 calc(.8 * var(--u)) 0 #c96a10; }
#craftPick { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + 18 * var(--u)); }
#paintPick { padding-top: calc(env(safe-area-inset-top) + 18 * var(--u)); }
#craft { justify-content: flex-start; gap: calc(2.5 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 18 * var(--u)); }
.craft-stage { position: relative; width: min(94vw, 54vh); aspect-ratio: 1; border-radius: calc(6 * var(--u)); overflow: hidden; touch-action: none;
  background: repeating-linear-gradient(175deg, #f6dcb4 0 calc(9 * var(--u)), #efcfa0 calc(9 * var(--u)) calc(10 * var(--u))), #f6dcb4;
  box-shadow: inset 0 0 0 calc(1.2 * var(--u)) #c99460, 0 calc(1.6 * var(--u)) 0 #a8743f, 0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(90,50,10,.3); }
.craft-guide { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255,255,255,.35); stroke: #a8743f; stroke-width: 2; stroke-dasharray: 6 5; pointer-events: none; }
#craftItems { position: absolute; inset: 0; }
.craft-item { position: absolute; aspect-ratio: 1; cursor: grab; touch-action: none; filter: drop-shadow(0 calc(1 * var(--u)) calc(.8 * var(--u)) rgba(60,30,5,.35)); }
.craft-item img { width: 100%; height: 100%; pointer-events: none; }
.craft-item.sel { outline: calc(.6 * var(--u)) dashed #ff4f9a; outline-offset: calc(.6 * var(--u)); border-radius: calc(2 * var(--u)); }
.craft-item.pop-in { animation: stampIn .35s cubic-bezier(.3,1.8,.5,1); }
.craft-tools { display: flex; gap: calc(1.6 * var(--u)); transition: opacity .2s; }
.craft-tools.off { opacity: .35; pointer-events: none; }
.craft-tools button { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border: none; border-radius: calc(3.5 * var(--u)); font-size: calc(6 * var(--u)); font-weight: 900; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: 0 calc(.9 * var(--u)) 0 #d4c1ea; color: #5a3814; }
.craft-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(2 * var(--u)); width: min(96vw, 640px); }
.craft-tray-item { width: calc(14 * var(--u)); height: calc(14 * var(--u)); padding: calc(1.6 * var(--u)); border: none; border-radius: calc(4 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #fffaf2, #f6e3c8); box-shadow: 0 calc(1 * var(--u)) 0 #d9b48a; }
.craft-tray-item img { width: 100%; height: 100%; }
@media (orientation: landscape) and (min-width: 700px) {
  #craft:not(.hidden) { display: grid; grid-template-columns: auto minmax(0, calc(70 * var(--u))); grid-template-areas: "stage tools" "stage tray";
    align-content: center; justify-content: center; column-gap: calc(5 * var(--u)); row-gap: calc(3 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 14 * var(--u)); }
  .craft-stage { grid-area: stage; width: min(52vw, 76vh); }
  .craft-tools { grid-area: tools; flex-wrap: wrap; justify-content: center; align-self: end; }
  .craft-tray { grid-area: tray; width: auto; align-self: start; }
}

/* =================== Аудит по скиллам: крупные цели, отклик, взрослые =================== */
/* кнопки крупнее: ребёнку нужна цель ≥ 52–64 px */
.mini-btn { width: calc(14 * var(--u)); height: calc(14 * var(--u)); font-size: calc(7 * var(--u)); }
.story-ctrl .mini-btn { width: calc(17 * var(--u)); height: calc(17 * var(--u)); font-size: calc(8 * var(--u)); }
.craft-tools { gap: calc(1.2 * var(--u)); }
.craft-tools button { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.art-tab { min-height: calc(13 * var(--u)); }
.next-btn.small { min-height: calc(12.5 * var(--u)); }
/* пружинка при нажатии: свойство scale не мешает transform-раскладке кнопки */
.tap-pop { animation: tapPop .26s cubic-bezier(.3, 1.6, .5, 1) !important; }
@keyframes tapPop { 0% { scale: .88; } 60% { scale: 1.06; } 100% { scale: 1; } }
/* тихий режим виден на старте */
.star-count.muted::after { content: ' 🔇'; }
/* родительский замок */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(40, 20, 70, .55); }
.gate-card { position: relative; width: min(86vw, 420px); padding: calc(7 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff; text-align: center;
  box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.3); }
.gate-q { margin: 0 0 calc(4 * var(--u)); font-size: calc(5 * var(--u)); color: #6b5a86; }
.gate-q b { display: block; margin-top: calc(1.5 * var(--u)); font-size: calc(9 * var(--u)); color: #3a2a55; }
.gate-opts { display: grid; grid-template-columns: 1fr 1fr; gap: calc(3 * var(--u)); }
.gate-opts button { min-height: calc(15 * var(--u)); border: none; border-radius: calc(4 * var(--u)); font: inherit; font-size: calc(7 * var(--u)); cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; color: #3a2a55; }
.gate-x { position: absolute; top: calc(2 * var(--u)); right: calc(2 * var(--u)); width: calc(11 * var(--u)); height: calc(11 * var(--u)); border: none; border-radius: 50%; background: #f1e9fb; font-size: calc(5 * var(--u)); cursor: pointer; }
/* «уменьшить движение» в настройках iPhone: бесконечные украшения проигрываются один раз */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-iteration-count: 1 !important; }
}

/* =================== Миры =================== */
.lvl-row { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.world-chip { font-size: calc(8 * var(--u)); animation: worldBob 3s ease-in-out infinite; }
.world-chip img.em { width: 1em; height: 1em; }
@keyframes worldBob { 50% { translate: 0 calc(-1 * var(--u)); } }
#worldDeco { position: absolute; inset: 0; }
#worldDeco span { position: absolute; bottom: -12vh; font-size: calc(var(--sz) * var(--u)); opacity: .85; animation: worldFloat linear infinite; }
#worldDeco span img.em { width: 1em; height: 1em; }
#worldDeco.fall span { bottom: auto; top: -12vh; animation-name: worldFall; }
@keyframes worldFloat { from { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(calc(var(--sway) * var(--u)), -60vh) rotate(8deg); } to { transform: translate(0, -125vh) rotate(-8deg); } }
@keyframes worldFall { from { transform: translate(0, 0) rotate(0); } 50% { transform: translate(calc(var(--sway) * var(--u)), 60vh) rotate(160deg); } to { transform: translate(0, 125vh) rotate(320deg); } }
#bg.v-night { filter: brightness(.62) saturate(1.25) hue-rotate(-12deg); }
#bg.v-rainbow { animation: worldHue 14s linear infinite; }
@keyframes worldHue { to { filter: hue-rotate(360deg); } }
#bg.v-magic { filter: saturate(1.5) contrast(1.05); }
#bg.v-magic #worldDeco span { filter: drop-shadow(0 0 calc(1.5 * var(--u)) #fff); }
#bg.v-super #worldDeco span { animation-duration: 9s !important; font-size: calc(var(--sz) * 1.4 * var(--u)); }
.lvl-world { display: flex; align-items: center; gap: calc(3 * var(--u)); margin-top: calc(4 * var(--u)); padding: calc(2.5 * var(--u)) calc(6 * var(--u));
  border-radius: 99px; background: #fffffff0; box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; font-size: calc(5 * var(--u)); color: #3a2a55; max-width: 92vw; }
.lvl-world .w-pic { font-size: calc(10 * var(--u)); line-height: 1; }
.lvl-world .w-pic img.em { width: 1em; height: 1em; }
.lvl-world.in { animation: stampIn .5s cubic-bezier(.3,1.8,.5,1) .3s both; }
#bg.no-clouds .cloud, #bg.no-sun .sun { display: none; }

/* =================== «Паша ошибается» =================== */
.mini-oshibka { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u)); }
.osh-card { position: relative; width: min(84vw, calc(80 * var(--u))); aspect-ratio: 1.15; border-radius: calc(7 * var(--u)); background: #fff;
  box-shadow: 0 calc(1.5 * var(--u)) 0 #d4c1ea, 0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(80,40,120,.18); display: grid; place-items: center; }
.osh-card.osh-in { animation: stampIn .45s cubic-bezier(.3,1.8,.5,1); }
.osh-pic { font-size: calc(34 * var(--u)); line-height: 1; }
.osh-pic img.em, .osh-claim img.em { width: 1em; height: 1em; }
.osh-claim { position: absolute; right: calc(4 * var(--u)); top: calc(4 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1;
  padding: calc(3 * var(--u)); border-radius: 50%; background: #f6f0ff; box-shadow: calc(-2 * var(--u)) calc(2 * var(--u)) 0 #e8dcfb; }
.osh-claim::after { content: ""; position: absolute; left: calc(-3 * var(--u)); bottom: calc(-1 * var(--u)); width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: #f6f0ff; }
.osh-pasha { position: absolute; left: calc(-4 * var(--u)); bottom: calc(-6 * var(--u)); width: calc(24 * var(--u)); }
.osh-pasha .face { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.osh-card.caught .osh-claim { filter: grayscale(1) opacity(.5); }
.osh-card.caught .osh-claim::before { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #e23b5a; font-size: 1.2em; font-weight: 900; }
.osh-btns { display: flex; gap: calc(8 * var(--u)); }
.osh-btn { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border: none; border-radius: 50%; font-size: calc(15 * var(--u)); cursor: pointer; }
.osh-btn img.em { width: 1em; height: 1em; }
.osh-btn.yes { background: radial-gradient(circle at 50% 30%, #c9f7c4, #4cc764); box-shadow: 0 calc(1.6 * var(--u)) 0 #2a9442; }
.osh-btn.no { background: radial-gradient(circle at 50% 30%, #ffd2c4, #ff6b5b); box-shadow: 0 calc(1.6 * var(--u)) 0 #c9372a; }
.osh-btn:active { translate: 0 calc(1 * var(--u)); }

/* =================== «Мы команда» =================== */
.mini-team { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(5 * var(--u)); }
.team-field { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(4 * var(--u)) calc(5 * var(--u)); }
.team-hole { position: relative; width: calc(24 * var(--u)); height: calc(24 * var(--u)); display: grid; place-items: end center; }
.team-box { font-size: calc(19 * var(--u)); line-height: 1; position: relative; z-index: 2; pointer-events: none; }
.team-box img.em { width: 1em; height: 1em; display: block; }
.team-cat { position: absolute; left: 50%; bottom: calc(8 * var(--u)); width: calc(22 * var(--u)); height: calc(22 * var(--u)); translate: -50% 0; padding: 0; border: none; background: none; cursor: pointer; z-index: 1;
  animation: catPeek .3s cubic-bezier(.3,1.6,.5,1) both; }
.team-cat img { width: 100%; height: 100%; pointer-events: none; }
.team-sock { position: absolute; right: calc(-2 * var(--u)); bottom: calc(1 * var(--u)); font-size: calc(8 * var(--u)); pointer-events: none; }
.team-sock img.em { width: 1em; height: 1em; }
.team-cat.hide { animation: catHide .3s ease-in both; }
.team-cat.fly { animation: catFly .55s ease-in both; z-index: 5; }
@keyframes catPeek { from { transform: translateY(60%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes catHide { to { transform: translateY(60%) scale(.6); opacity: 0; } }
@keyframes catFly { 0% { transform: scale(1.25, .78); } 15% { transform: scale(.9, 1.15); } 35% { transform: translateY(-25%) scale(1.15); } to { transform: translate(var(--fx), var(--fy)) scale(.3); opacity: .2; } }
.team-bottom { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.team-pasha .face { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.team-basket { position: relative; font-size: calc(22 * var(--u)); line-height: 1; }
.team-basket img.em { width: 1em; height: 1em; display: block; }
.team-basket b { position: absolute; right: calc(-3 * var(--u)); top: calc(-2 * var(--u)); min-width: calc(10 * var(--u)); padding: calc(1 * var(--u)); border-radius: 99px;
  background: #ff4f9a; color: #fff; font-size: calc(6 * var(--u)); text-align: center; }
.team-five { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: calc(48 * var(--u)); height: calc(48 * var(--u)); border: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff6d6, #ffc83d); box-shadow: 0 calc(2 * var(--u)) 0 #d99a00, 0 0 0 calc(2 * var(--u)) #fff; font-size: calc(28 * var(--u)); cursor: pointer; z-index: 6;
  animation: fiveWave 1s ease-in-out infinite; }
.team-five img.em { width: 1em; height: 1em; }
.team-five.clap { animation: fiveClap .45s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes fiveWave { 50% { rotate: 12deg; } }
@keyframes fiveClap { 0% { scale: 1; } 40% { scale: .75; rotate: -10deg; } 100% { scale: 1.15; } }
.team-next { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 8 * var(--u)); translate: -50% 0; z-index: 7; }
/* сжатие-пружинка при попадании (game-feel: squash & stretch + overshoot) */
.squash { animation: squash .32s cubic-bezier(.3, 1.6, .5, 1) !important; }
@keyframes squash { 0% { scale: 1.25 .78; } 45% { scale: .92 1.1; } 100% { scale: 1 1; } }

/* =================== Гардероб Влады =================== */
.dress-stage.doll { border-radius: 18%; }
.dress-stage.doll #dressSvg svg { border-radius: 18%; }
.dress-item.by-lvl::after { content: "🔒 " attr(data-lvl); }
#vladaAvatar { cursor: pointer; }
#vladaAvatar svg { width: 100%; height: 100%; display: block; border-radius: 50%; }

/* =====================================================================
   Время суток (daytime.js): html[data-daypart="morning|day|evening|night"]
   ===================================================================== */
.tod-tint, .tod-stars, .tod-moon { position: absolute; pointer-events: none; opacity: 0; transition: opacity 2s ease; }
.tod-tint { inset: 0; }
.tod-stars { inset: 0; }
.tod-stars i { position: absolute; width: calc(1.6 * var(--u)); height: calc(1.6 * var(--u)); border-radius: 50%; background: #fff8d6; scale: var(--s);
  box-shadow: 0 0 calc(1.6 * var(--u)) calc(.4 * var(--u)) rgba(255,246,190,.8); animation: todTwinkle 3.6s ease-in-out infinite; }
@keyframes todTwinkle { 50% { opacity: .25; transform: scale(.6); } }
/* луна-месяц: светлый круг, от которого «откусывает» тень */
.tod-moon { right: calc(9 * var(--u)); top: calc(env(safe-area-inset-top) + 9 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%;
  box-shadow: inset calc(-5 * var(--u)) calc(-2 * var(--u)) 0 #fff3b0, 0 0 calc(10 * var(--u)) rgba(255,240,170,.35); animation: sunPulse 6s ease-in-out infinite; }

/* утро: солнце крупнее, с лучами, тёплый рассвет сверху */
html[data-daypart="morning"] #bg .sun { scale: 1.25; }
html[data-daypart="morning"] #bg .sun::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; animation: todRays 40s linear infinite;
  background: repeating-conic-gradient(rgba(255,236,140,.45) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 36%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 36%, transparent 70%); }
@keyframes todRays { to { rotate: 360deg; } }
html[data-daypart="morning"] .tod-tint { opacity: 1; background: linear-gradient(180deg, rgba(255,226,150,.35), rgba(255,200,220,.12) 50%, transparent 75%); }

/* вечер: солнце садится, всё в закатном свете */
html[data-daypart="evening"] #bg .sun { top: calc(-2 * var(--u)); right: calc(-14 * var(--u)); scale: 1.15;
  background: radial-gradient(circle, #fff1c4 0 24%, #ffb347 40%, rgba(255,120,70,.35) 58%, transparent 70%); }
html[data-daypart="evening"] .tod-tint { opacity: 1; background: linear-gradient(180deg, rgba(150,80,170,.35) 0%, rgba(255,120,90,.32) 40%, rgba(255,170,80,.25) 70%, rgba(120,60,110,.2) 100%); }

/* ночь: тёмно-синее небо, звёзды, месяц; солнца и облаков нет */
html[data-daypart="night"] body { background: #141a4a; }
html[data-daypart="night"] #bg .sun { display: none; }
html[data-daypart="night"] #bg .cloud { opacity: .18; }
html[data-daypart="night"] .tod-tint { opacity: 1; background: linear-gradient(180deg, rgba(10,14,60,.82) 0%, rgba(30,30,100,.7) 55%, rgba(20,20,70,.6) 100%); }
html[data-daypart="night"] .tod-stars, html[data-daypart="night"] .tod-moon { opacity: 1; }
html[data-daypart="night"] #start .lvl-title, html[data-daypart="night"] #start .lvl-num { text-shadow: 0 0 calc(1.2 * var(--u)) #fff; }
/* ночью на первом месте сказка, играть можно, но кнопка скромнее */
html[data-daypart="night"] .act.story { order: -1; grid-column: span 2; animation: todGlow 2.4s ease-in-out infinite; }
html[data-daypart="night"] .act.story i { font-size: calc(15 * var(--u)); }
html[data-daypart="night"] .act.story span { font-size: calc(4.6 * var(--u)); color: #ffe680; }
@keyframes todGlow { 50% { box-shadow: 0 0 0 calc(1 * var(--u)) #ffe680, 0 0 calc(7 * var(--u)) calc(1.5 * var(--u)) rgba(255,230,128,.75); } }
html[data-daypart="night"] #start .round-btn.play { scale: .8; filter: saturate(.75); }
@media (orientation: landscape) and (min-width: 700px) { html[data-daypart="night"] .act.story { grid-column: auto; } }

/* Паша на старте: утром машет-потягивается, вечером зевает, ночью клюёт носом; рядом значок */
#start .peek { position: relative; }
html[data-daypart="morning"] #start .peek::after, html[data-daypart="evening"] #start .peek::after, html[data-daypart="night"] #start .peek::after {
  content: ""; position: absolute; right: calc(-5 * var(--u)); top: calc(-6 * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u));
  background: center / contain no-repeat; animation: todBadge 3s ease-in-out infinite; pointer-events: none; }
html[data-daypart="morning"] #start .peek::after { background-image: url(emoji/2600.svg); }
html[data-daypart="evening"] #start .peek::after { background-image: url(emoji/1f4a4.svg); width: calc(8 * var(--u)); height: calc(8 * var(--u)); opacity: .8; }
html[data-daypart="night"] #start .peek::after { background-image: url(emoji/1f4a4.svg); }
@keyframes todBadge { 50% { transform: translateY(calc(-2 * var(--u))) rotate(8deg); } }
#start .peek .face.tod-morning { animation: todStretch 1.2s cubic-bezier(.3,1.6,.5,1); }
#start .peek .face.tod-evening, #start .peek .face.tod-night { animation: todYawn 1.8s ease-in-out; }
@keyframes todStretch { 30% { transform: rotate(8deg) scale(1.08, 1.22) translateY(-6%); } 60% { transform: rotate(-4deg) scale(1.05, .95); } }
@keyframes todYawn { 25% { transform: rotate(8deg) scale(1.05, 1.15); } 50% { transform: rotate(14deg) scale(1.08, 1.18); } 80% { transform: rotate(4deg) scale(.98, .94); } }
.act.story.tod-call { animation: todCall .9s cubic-bezier(.3,1.6,.5,1) 2, todGlow 2.4s ease-in-out infinite 1.8s; }
@keyframes todCall { 40% { transform: scale(1.12) rotate(-3deg); } 70% { transform: scale(.97) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .tod-stars i, html[data-daypart="morning"] #bg .sun::before { animation: none; } }

/* =====================================================================
   Мои дела (todo.js): крупные карточки-картинки, сделанное — с галочкой
   ===================================================================== */
.act.todo { background: linear-gradient(180deg, #effff0, #b9f0c0); }
#todo .todo-grid { margin-top: calc(8 * var(--u)); }
.todo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(3 * var(--u)); width: min(94vw, 640px); }
.todo-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(1 * var(--u)); padding: calc(3 * var(--u)) calc(1 * var(--u)) calc(2.4 * var(--u));
  border: none; border-radius: calc(6 * var(--u)); background: linear-gradient(180deg, #fff, #f3e9ff); cursor: pointer;
  box-shadow: inset 0 calc(-1 * var(--u)) 0 rgba(120,80,170,.12), 0 calc(1.4 * var(--u)) 0 #d4c1ea, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(59,42,74,.2); }
.todo-card i { font-style: normal; font-size: calc(15 * var(--u)); line-height: 1; transition: filter .3s; }
.todo-card span { font-size: calc(3.8 * var(--u)); font-weight: 900; color: var(--ink); }
.todo-card:not(.done) i { filter: grayscale(.35) opacity(.75); }
.todo-card.done { background: linear-gradient(180deg, #f0fff2, #bdf2c6); box-shadow: inset 0 calc(-1 * var(--u)) 0 rgba(40,140,70,.15), 0 calc(1.4 * var(--u)) 0 #8fd59c, 0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(30,110,50,.2); }
.todo-card.done::after { content: ""; position: absolute; top: calc(-2 * var(--u)); right: calc(-1.5 * var(--u)); width: calc(10 * var(--u)); height: calc(10 * var(--u));
  background: url(emoji/2705.svg) center / contain no-repeat; filter: drop-shadow(0 calc(.6 * var(--u)) calc(.6 * var(--u)) rgba(0,0,0,.2)); }
.todo-card.todo-yes { animation: todoYes .6s cubic-bezier(.3,1.7,.5,1); }
.todo-card.todo-yes::after { animation: todoTick .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes todoYes { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(.95) rotate(2deg); } }
@keyframes todoTick { from { transform: scale(0) rotate(-40deg); } }
@media (orientation: landscape) and (min-width: 700px) { .todo-grid { width: min(80vw, calc(150 * var(--u))); } .todo-card i { font-size: calc(11 * var(--u)); } }

/* =================== Мой день рождения =================== */
.bday-chip { position: relative; }
.bday-chip b { position: absolute; right: calc(-2.5 * var(--u)); top: calc(-2.5 * var(--u)); min-width: calc(7.5 * var(--u)); padding: calc(.6 * var(--u)) calc(1.2 * var(--u));
  border-radius: 99px; background: #ff4f9a; color: #fff; font-size: calc(3.4 * var(--u)); line-height: 1.2; }
#bday { justify-content: flex-start; gap: calc(3 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 17 * var(--u)); overflow-y: auto; }
.bday-top { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.bday-cake { position: relative; font-size: calc(16 * var(--u)); line-height: 1; }
.bday-cake img.em { width: 1em; height: 1em; }
.bday-cake .candles { position: absolute; left: 50%; top: calc(-4 * var(--u)); translate: -50% 0; display: flex; font-size: calc(5 * var(--u)); white-space: nowrap; }
.bday-cake .candles img.em { animation: flicker 1.2s ease-in-out infinite alternate; }
@keyframes flicker { to { scale: 1 1.12; filter: brightness(1.15); } }
.bday-age { margin: 0; font-size: calc(8 * var(--u)); color: #e8337f; text-shadow: 0 calc(.6 * var(--u)) 0 #fff; }
.bday-big { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bday-big b { font-size: calc(26 * var(--u)); color: #fff; -webkit-text-stroke: calc(.8 * var(--u)) #b81e63; paint-order: stroke fill;
  text-shadow: 0 calc(1.2 * var(--u)) 0 #b81e63; animation: bigBob 2.4s ease-in-out infinite; }
@keyframes bigBob { 50% { translate: 0 calc(-1.5 * var(--u)); rotate: -2deg; } }
.bday-big span { font-size: calc(5.2 * var(--u)); color: #5a3d7a; font-weight: 900; }
.bday-timer { display: flex; gap: calc(2 * var(--u)); }
.tbox { display: flex; flex-direction: column; align-items: center; width: calc(19 * var(--u)); padding: calc(2 * var(--u)) 0; border-radius: calc(5 * var(--u));
  background: #fff; box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; }
.tbox b { font-size: calc(9 * var(--u)); line-height: 1; color: #6b33d1; font-variant-numeric: tabular-nums; }
.tbox span { font-size: calc(3.2 * var(--u)); color: #8b7aa3; }
.tbox.sec { background: linear-gradient(180deg, #fff, #ffe2f0); }
.tbox.sec b { color: #e8337f; }
.tbox.bump { animation: tbump .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes tbump { 0% { scale: 1.18 .86; } 100% { scale: 1; } }
.bday-path { display: flex; align-items: center; gap: calc(2 * var(--u)); width: min(90vw, 560px); font-size: calc(8 * var(--u)); }
.bday-path img.em { width: 1em; height: 1em; }
.p-road { position: relative; flex: 1; height: calc(4 * var(--u)); border-radius: 99px; background: repeating-linear-gradient(90deg, #fff 0 calc(3 * var(--u)), #f1e9fb calc(3 * var(--u)) calc(6 * var(--u))); box-shadow: inset 0 0 0 calc(.5 * var(--u)) #d4c1ea; }
.p-road i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #ffb3d9, #ff4f9a); }
.p-walker { position: absolute; top: 50%; translate: -50% -75%; font-size: calc(9 * var(--u)); animation: walk .8s ease-in-out infinite alternate; }
@keyframes walk { to { rotate: 8deg; translate: -50% -85%; } }
.p-end { position: relative; }
.p-end small { position: absolute; left: 50%; top: 100%; translate: -50% 0; white-space: nowrap; font-size: calc(3.2 * var(--u)); color: #8b7aa3; }
.cal { width: min(92vw, 520px); padding: calc(3 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff; box-shadow: 0 calc(1.4 * var(--u)) 0 #d4c1ea; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(2 * var(--u)); font-size: calc(5.5 * var(--u)); color: #3a2a55; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(1.2 * var(--u)); text-align: center; }
.cal-wd { font-size: calc(3.2 * var(--u)); color: #a596ba; }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: calc(3 * var(--u)); background: #f8f3ff; font-size: calc(4.6 * var(--u)); color: #3a2a55; }
.cal-day img.em { width: 1.2em; height: 1.2em; }
.cal-day.past { color: #b9aecb; background: #f3eff8; }
.cal-day .cross { position: absolute; inset: 6%; width: 88%; height: 88%; fill: none; stroke: #ff3b6b; stroke-width: 4.5; stroke-linecap: round; }
.cal-day .cross.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawX 1.2s ease-out .6s forwards; }
@keyframes drawX { to { stroke-dashoffset: 0; } }
.cal-day.today { background: #fff; color: #e8337f; font-weight: 900; box-shadow: 0 0 0 calc(.8 * var(--u)) #ff4f9a; animation: todayPulse 1.6s ease-in-out infinite; }
@keyframes todayPulse { 50% { scale: 1.1; } }
.cal-day.bd { background: #fff3c4; box-shadow: 0 0 0 calc(.6 * var(--u)) #ffc83d; }
@media (orientation: landscape) and (min-width: 700px) {
  #bday:not(.hidden) { display: grid; grid-template-columns: auto auto; align-content: center; justify-content: center; column-gap: calc(6 * var(--u)); row-gap: calc(3 * var(--u)); }
  #bday > .topbar { grid-column: 1 / -1; }
  .bday-top, .bday-big, .bday-timer, .bday-path { grid-column: 1; justify-self: center; }
  .cal { grid-column: 2; grid-row: 2 / span 4; align-self: center; width: min(40vw, 460px); }
}

/* =================== Коты-помощники =================== */
.mascot { position: fixed; z-index: 80; left: calc(env(safe-area-inset-left) + 2 * var(--u)); bottom: calc(env(safe-area-inset-bottom) + 3 * var(--u));
  display: flex; align-items: flex-end; gap: calc(1.5 * var(--u)); pointer-events: none; transition: translate .35s cubic-bezier(.3,1.4,.5,1), scale .35s; }
.mascot.hidden { display: none; }
.mascot .m-cat { pointer-events: auto; width: calc(24 * var(--u)); height: calc(24 * var(--u)); padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #fff, #ffe6c9); box-shadow: 0 calc(1.2 * var(--u)) 0 #e3b98a, 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(80,40,10,.25); }
.mascot .m-cat img { width: 100%; height: 100%; }
.mascot .m-bubble { max-width: min(64vw, 420px); margin-bottom: calc(10 * var(--u)); padding: calc(2.5 * var(--u)) calc(3.5 * var(--u)); border-radius: calc(5 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)) calc(1 * var(--u));
  background: #fff; color: #3a2a55; font-size: calc(4 * var(--u)); line-height: 1.3; box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; }
.mascot.talk .m-cat { animation: catTalk .5s ease-in-out infinite alternate; }
@keyframes catTalk { to { rotate: -6deg; translate: 0 calc(-1 * var(--u)); } }
.mascot.pop-in { animation: mascotIn .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes mascotIn { from { translate: -120% 0; } }
.mascot.peek { translate: -45% 0; scale: .7; transform-origin: left bottom; }
.mascot.peek .m-bubble { display: none; }
.mascot.peek .m-cat { animation: catPeek 3s ease-in-out infinite; }
@keyframes catPeek { 0%, 70%, 100% { rotate: 0deg; } 80% { rotate: 12deg; } 90% { rotate: -6deg; } }

/* характеры котов: Кот — бойкий, Миша — неторопливый */
.mascot.talk.kot .m-cat { animation: catTalkKot .28s ease-in-out infinite alternate; }
@keyframes catTalkKot { to { rotate: 9deg; translate: 0 calc(-1.8 * var(--u)); scale: 1.04 .96; } }
.mascot.talk.misha .m-cat { animation: catTalkMisha 1.4s ease-in-out infinite alternate; }
@keyframes catTalkMisha { to { rotate: -3deg; translate: 0 calc(-.5 * var(--u)); } }
.mascot.peek.kot .m-cat { animation-duration: 1.8s; }
.mascot.peek.misha .m-cat { animation-duration: 5s; }

/* =================== Одной линией =================== */
#line { justify-content: flex-start; gap: calc(4 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 18 * var(--u)); }
.line-level { padding: calc(1.5 * var(--u)) calc(5 * var(--u)); border-radius: 99px; background: #fff; color: #3a2a55; font-size: calc(4.6 * var(--u)); box-shadow: 0 calc(.8 * var(--u)) 0 #d4c1ea; }
.line-board { position: relative; width: min(94vw, 62vh); aspect-ratio: 1; border-radius: calc(7 * var(--u)); touch-action: none;
  background: radial-gradient(circle at 50% 35%, #6f8dff, #3d4fd6); box-shadow: 0 calc(1.6 * var(--u)) 0 #2a36a3, inset 0 0 calc(8 * var(--u)) rgba(0,0,30,.25); }
.line-svg { width: 100%; height: 100%; display: block; }
.line-svg .ln { fill: none; stroke: #d9f3ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.line-svg .ln.done { stroke: #ff6fb5; opacity: 1; filter: drop-shadow(0 0 1.5px #fff); }
.line-svg .ln-live { fill: none; stroke: #ffd6ec; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 3; }
.line-svg .nd { fill: #fff; }
.line-svg .nd.cur { fill: #ff4f9a; stroke: #fff; stroke-width: 1.5; animation: ndPulse .9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.line-svg .nd.hint { fill: #ffe066; animation: ndPulse .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ndPulse { to { scale: 1.4; } }
.line-board.won .ln.done { animation: lnRainbow 1.4s linear; }
@keyframes lnRainbow { 0% { stroke: #ff6fb5; } 25% { stroke: #ffd23f; } 50% { stroke: #7be08a; } 75% { stroke: #6fb8ff; } 100% { stroke: #ff6fb5; } }
.line-pic { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(30 * var(--u)); pointer-events: none; animation: linePic 1.8s cubic-bezier(.3,1.6,.5,1) both; }
.line-pic img.em { width: 1em; height: 1em; }
@keyframes linePic { 0% { scale: 0; opacity: 0; } 30% { scale: 1.2; opacity: 1; } 80% { scale: 1; opacity: 1; } 100% { scale: 1; opacity: 0; } }
.line-tools { display: flex; gap: calc(6 * var(--u)); }

/* выход в меню между раундами */
.menu-pill { position: fixed; z-index: 10; left: calc(env(safe-area-inset-left) + 3 * var(--u)); top: calc(env(safe-area-inset-top) + 3 * var(--u));
  padding: calc(3 * var(--u)) calc(5 * var(--u)); border: none; border-radius: 99px; font: inherit; font-size: calc(4.6 * var(--u)); color: #3a2a55; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1e9fb); box-shadow: 0 calc(1 * var(--u)) 0 #d4c1ea; }
.menu-pill img.em { width: 1.2em; height: 1.2em; vertical-align: -.2em; }

/* =================== Пазлы =================== */
#puzzle { justify-content: flex-start; padding-top: calc(env(safe-area-inset-top) + 16 * var(--u)); }
.puz-area { position: relative; width: 100%; flex: 1; min-height: 0; touch-action: none; }
.puz-board { position: absolute; border-radius: calc(2 * var(--u)); background: #fff8; box-shadow: 0 0 0 calc(.8 * var(--u)) #fff, 0 calc(1.6 * var(--u)) 0 calc(.8 * var(--u)) #d4c1ea; overflow: visible; }
.puz-ghost { width: 100%; height: 100%; display: block; border-radius: inherit; pointer-events: none; filter: grayscale(.3); }
.puz-board.won .puz-ghost { opacity: 1 !important; filter: none; transition: opacity .6s, filter .6s; }
.puz-piece { position: absolute; cursor: grab; touch-action: none; filter: drop-shadow(0 calc(.6 * var(--u)) calc(.8 * var(--u)) rgba(60,30,90,.35)); transition: scale .12s; }
.puz-piece.lift { scale: 1.08; cursor: grabbing; filter: drop-shadow(0 calc(2 * var(--u)) calc(2 * var(--u)) rgba(60,30,90,.4)); transition: none; }
.puz-piece.sel { scale: 1.1; filter: drop-shadow(0 0 calc(1.5 * var(--u)) #ffd23f) drop-shadow(0 0 calc(1.5 * var(--u)) #ffd23f); }
.puz-piece.placed { cursor: default; filter: none; pointer-events: none; transition: left .18s ease-out, top .18s ease-out; animation: puzSnap .3s ease-out; }
@keyframes puzSnap { 50% { scale: 1.06; } }
.puz-board.won ~ .puz-piece { opacity: 0; transition: opacity .6s .2s; }
.puz-hint { position: absolute; border-radius: calc(1.5 * var(--u)); background: rgba(255,210,63,.55); box-shadow: 0 0 calc(3 * var(--u)) #ffd23f; pointer-events: none; animation: puzBlink .5s ease-in-out 5 alternate; }
@keyframes puzBlink { from { opacity: .25; } to { opacity: 1; } }
.puz-card.solved::after { content: "✓"; position: absolute; top: calc(1.5 * var(--u)); right: calc(1.5 * var(--u)); width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%;
  display: grid; place-items: center; background: #6fd08c; color: #fff; font-weight: 900; font-size: calc(4.5 * var(--u)); }
.puz-card > img { object-fit: cover; }

/* =================== Как дела? =================== */
.ask-btn { display: flex; align-items: center; gap: calc(3 * var(--u)); margin: calc(2 * var(--u)) auto calc(3 * var(--u)); padding: calc(3 * var(--u)) calc(7 * var(--u)); border: none; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: calc(6 * var(--u)); font-weight: 900; color: #3a2a55; background: linear-gradient(180deg, #fff, #ffe9f4); box-shadow: 0 calc(1.2 * var(--u)) 0 #f0b8d4; }
.ask-btn i { font-style: normal; font-size: 1.3em; }
.ask-btn i img.em { width: 1.3em; height: 1.3em; }
.ask-btn.done { opacity: .6; }
.ask-btn.done span::after { content: " ✓"; }
#ask { justify-content: flex-start; gap: calc(8 * var(--u)); padding-top: calc(env(safe-area-inset-top) + 22 * var(--u)); }
.ask-dots { display: flex; gap: calc(2 * var(--u)); }
.ask-dots i { width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 calc(.5 * var(--u)) #d4c1ea; }
.ask-dots i.on { background: #ff6fb5; box-shadow: none; }
.ask-card { display: flex; align-items: center; gap: calc(4 * var(--u)); width: min(92vw, 120vh); padding: calc(5 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff; box-shadow: 0 calc(1.4 * var(--u)) 0 #d4c1ea; }
.ask-card img { width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; }
.ask-card p { margin: 0; font-size: calc(6.4 * var(--u)); font-weight: 900; line-height: 1.2; color: #3a2a55; }
.ask-faces { display: flex; gap: calc(7 * var(--u)); }
.ask-face { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border: none; border-radius: 50%; cursor: pointer; font-size: calc(16 * var(--u)); display: grid; place-items: center; box-shadow: 0 calc(1.4 * var(--u)) 0 rgba(0,0,0,.15); transition: scale .12s; }
.ask-face img.em { width: 1em; height: 1em; }
.ask-face.yes { background: #dff6dc; } .ask-face.mid { background: #fff6d0; } .ask-face.no { background: #ffe2e8; }
.ask-face.picked { scale: 1.15; rotate: -6deg; }
