/* Дошинг · направление дизайна «Надувной бассейн».
   Весь интерфейс сделан из надувного винила: плашки, кнопки и игрушки надуты,
   со швами по кромке и бликом-эллипсом сверху-слева. Экран — детский бассейн.
   Ошибка не краснеет, а сдувается. Победа — брызги и расходящиеся кольца. */

:root {
  --water-top: #3ADCEC;
  --water: #19C3D6;
  --water-deep: #0FA3B8;
  --mand: #FF7A1A;
  --mand-l: #FFB061;
  --mand-d: #EF5F00;
  --mag: #FF3D8A;
  --mag-l: #FF85B4;
  --mag-d: #E4116A;
  --lem: #FFF04D;
  --lem-l: #FFFAB0;
  --lem-d: #FFD400;
  --wh: #FFFFFF;
  --ink: #10305A;
  --ink-1: #4E6B8F;
  --ink-2: #5A7899;
  --ink-3: #63819F;
  --pane-l: #FFFFFF;
  --pane-d: #C9E4EE;
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --f-d: "Pacifico", "Segoe Script", "Comic Sans MS", cursive;
  --f-b: "Exo 2", "Segoe UI", "Noto Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--water);
  color: var(--ink);
  font-family: var(--f-b);
  font-weight: 800;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }

/* ---------- бассейн ---------- */
.pool {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--water-top) 0%, var(--water) 42%, var(--water-deep) 100%);
}
.pool .tiles {
  position: absolute; inset: -12%; transform: rotate(-2deg);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.09) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.09) 2px, transparent 2px);
  background-size: 58px 58px;
}
.pool .caust {
  position: absolute; inset: -25%; opacity: .55; filter: blur(1px);
  background:
    radial-gradient(70px 26px at 18% 22%, rgba(255,255,255,.55), transparent 65%),
    radial-gradient(96px 30px at 74% 40%, rgba(255,255,255,.4), transparent 65%),
    radial-gradient(60px 22px at 40% 66%, rgba(255,255,255,.45), transparent 65%),
    radial-gradient(110px 34px at 82% 82%, rgba(255,255,255,.32), transparent 65%),
    radial-gradient(70px 24px at 10% 88%, rgba(255,255,255,.4), transparent 65%);
  animation: drift 19s linear infinite;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(18px,-14px,0) scale(1.06); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
.pool .rp {
  position: absolute; width: 90px; height: 38px; opacity: 0;
  border: 3px solid rgba(255,255,255,.55); border-radius: 50%;
  animation: rp 4.4s linear infinite;
}
@keyframes rp {
  0% { transform: scale(.25); opacity: .75; }
  100% { transform: scale(2.7); opacity: 0; }
}
.pool .rp.a { left: 8%; top: 30%; }
.pool .rp.b { left: 58%; top: 58%; animation-delay: 1.5s; }
.pool .rp.c { left: 30%; top: 80%; animation-delay: 3s; }
.pool .rp.d { left: 66%; top: 12%; animation-delay: 2.3s; }
.dz-fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

/* ---------- оболочка ---------- */
.app {
  position: relative; z-index: 1;
  width: min(430px, 100%); min-height: 100dvh; margin: 0 auto;
  display: flex; flex-direction: column;
}
.wrap { position: relative; flex: 1; min-width: 0; padding: 0 16px 26px; }
.wrap.mid { display: flex; flex-direction: column; }
.boot {
  margin: auto; text-align: center; color: var(--ink);
  font: 400 21px/1.3 var(--f-d);
  background: rgba(255,255,255,.75); border-radius: 22px; padding: 14px 20px;
}
.error {
  margin: auto; text-align: center; color: var(--ink);
  font: 800 14px/1.5 var(--f-b);
  background: rgba(255,255,255,.85); border-radius: 22px; padding: 16px 18px;
}

/* ---------- надувная поверхность ---------- */
.inf {
  position: relative; border-radius: 28px;
  background: linear-gradient(175deg, var(--l, #fff) 0%, var(--l, #fff) 22%, var(--d, #C9E4EE) 100%);
  box-shadow:
    0 8px 16px rgba(16,48,90,.25),
    inset 0 -8px 14px rgba(16,48,90,.18),
    inset 0 6px 10px rgba(255,255,255,.4);
}
.inf::before {
  content: ""; position: absolute; inset: 6px; border-radius: inherit;
  border: 2px solid rgba(255,255,255,.45); pointer-events: none;
}
.inf::after {
  content: ""; position: absolute; left: 7%; top: 7%; width: 42%; height: 20%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 42% 42%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%);
  transition: transform .22s var(--spring);
}
.cap { --l: var(--mand-l); --d: var(--mand-d); border-radius: 999px; }
.cap::before { border-radius: 999px; }
.pop { display: block; text-align: inherit; }
.pop .inf { transition: transform .22s var(--spring); }
.pop:active .inf { transform: scale(1.08); }
.pop:active .inf::after { transform: translate(-6px, -4px); }
.pop:focus-visible .inf { outline: 3px solid var(--lem); outline-offset: 3px; }

/* ---------- движение ---------- */
.bob { display: block; animation: bob var(--p, 3s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes bob {
  0%, 100% { transform: translateY(-4px) rotate(-1.1deg); }
  50% { transform: translateY(4px) rotate(1.1deg); }
}
.is-enter .up { animation: inflate .45s var(--spring) backwards; animation-delay: var(--e, 0s); }
@keyframes inflate {
  0% { transform: scale(.3); opacity: 0; }
  62% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.is-enter .swim { animation: swim .6s var(--spring) backwards; animation-delay: var(--e, .4s); }
@keyframes swim {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes jump {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-20px) scale(1.12); }
  70% { transform: translateY(2px) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes deflate {
  0% { transform: scaleY(1) scaleX(1); }
  26% { transform: scaleY(.6) scaleX(1.07); }
  60% { transform: scaleY(.62) scaleX(1.06); }
  100% { transform: scaleY(1) scaleX(1); }
}
@keyframes sail {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  30% { transform: translateY(-10px) scale(1.06); }
  100% { transform: translateY(-34px) scale(.9); opacity: 0; }
}
@keyframes glowp {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.22); }
}
@keyframes wave-in {
  0% { transform: translateX(-30%); opacity: 0; }
  20% { opacity: .85; }
  100% { transform: translateX(10%); opacity: 0; }
}
.crease {
  position: absolute; left: 12%; right: 12%; top: 50%; height: 10px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}

/* ---------- бортик бассейна ---------- */
.rim {
  position: relative; flex: none; z-index: 5;
  padding: 14px 16px 16px; border-radius: 0 0 34px 34px;
  background: linear-gradient(180deg, #FBFEFF 0%, #DCF0F6 55%, #B6DCE8 100%);
  box-shadow: 0 10px 20px rgba(16,48,90,.28), inset 0 -7px 10px rgba(16,48,90,.12), inset 0 5px 8px #fff;
}
.rim::after {
  content: ""; position: absolute; left: 18px; top: 8px; width: 120px; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
}
.rim-row { display: flex; align-items: center; gap: 10px; }
.brand {
  --l: var(--mand-l); --d: var(--mand-d);
  display: inline-block; padding: 8px 20px 12px; color: #fff;
  font: 400 30px/1 var(--f-d);
  text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 3px 6px rgba(16,48,90,.45);
}
.rim-note { margin-left: auto; text-align: right; font: 800 12px/1.25 var(--f-b); color: var(--ink); opacity: .78; }
.gbar { display: flex; align-items: center; gap: 10px; }
.back {
  --l: #fff; --d: var(--pane-d);
  height: 52px; padding: 0 16px; display: flex; align-items: center;
  border-radius: 999px; font: 800 14px/1 var(--f-b); color: var(--ink);
}
.back::before { border-radius: 999px; }
.gtitle {
  flex: 1; min-width: 0; font: 400 17px/1.15 var(--f-d); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini { width: 56px; height: 52px; flex: none; }
.track { display: flex; gap: 5px; margin-top: 12px; }
.track i {
  flex: 1; height: 15px; border-radius: 999px; background: rgba(16,48,90,.14);
  transform-origin: 50% 100%; transition: background .3s, transform .35s var(--spring);
}
.track i.on {
  background: linear-gradient(180deg, var(--mand-l), var(--mand-d));
  transform: scaleY(1.3);
  box-shadow: 0 2px 4px rgba(16,48,90,.25), inset 0 2px 3px rgba(255,255,255,.6);
}

/* ---------- слово дня: матрас ---------- */
.mat { --l: var(--mag-l); --d: var(--mag-d); margin: 16px 0 0; padding: 14px; display: flex; gap: 10px; align-items: center; }
.kick {
  position: absolute; top: -10px; left: 18px; z-index: 2;
  background: var(--lem); color: var(--ink); font: 800 11px/1 var(--f-b);
  padding: 6px 10px; border-radius: 999px; box-shadow: 0 3px 6px rgba(16,48,90,.22);
}
.pillow {
  flex: 1; min-width: 0; background: linear-gradient(180deg, #fff, #EAF6FA);
  border-radius: 20px; padding: 10px 12px 12px;
  box-shadow: inset 0 -4px 8px rgba(16,48,90,.1), 0 3px 0 rgba(255,255,255,.5);
}
.word-big {
  display: block; font-family: var(--f-b); font-weight: 800; font-size: var(--fs, 50px);
  line-height: 1.06; letter-spacing: -.5px; color: var(--ink); overflow-wrap: anywhere;
}
.word-ru { display: block; margin-top: 2px; font: 400 19px/1.15 var(--f-d); color: var(--ink-1); }
.spk { --l: #fff; --d: #CFE7F0; width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.spk::before { border-radius: 50%; }
.spk svg { width: 30px; height: 30px; }
.mat-toy { width: 56px; height: 56px; flex: none; }
.mat-toy .glyph { width: 56px; height: 56px; display: block; }

/* ---------- сдутые игрушки ---------- */
.shelf { --l: #FFFFFF; --d: #CCE6EF; width: 100%; margin-top: 14px; padding: 12px 14px 14px; display: block; text-align: left; }
.shelf-h { display: block; font: 400 19px/1.15 var(--f-d); color: var(--ink); }
.shelf-p { display: block; margin: 2px 0 8px; font: 800 12px/1.2 var(--f-b); color: var(--ink-2); }
.slots { display: flex; gap: 8px; align-items: center; }
.slot { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(16,48,90,.06); flex: none; }
.slot .glyph { width: 40px; height: 40px; transform-origin: 50% 86%; transform: scaleY(.42) scaleX(1.08) translateY(6px); filter: grayscale(.7); opacity: .55; }
.cnt {
  margin-left: auto; flex: none; font: 800 15px/1 var(--f-b); color: var(--ink);
  background: var(--lem); border-radius: 999px; padding: 9px 12px; box-shadow: 0 3px 6px rgba(16,48,90,.2);
}

/* ---------- маскот ---------- */
.mrow { display: flex; align-items: flex-end; gap: 8px; margin: 14px 0 2px; }
.mascot { width: 104px; height: 96px; flex: none; }
.m-arm { transform-origin: 86px 60px; animation: wave 2.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(22deg); } }
.bubble {
  position: relative; background: #fff; border-radius: 20px 20px 20px 6px; padding: 10px 14px;
  color: var(--ink); font: 400 16px/1.25 var(--f-d);
  box-shadow: 0 6px 12px rgba(16,48,90,.2), inset 0 -4px 8px rgba(16,48,90,.08);
}

/* ---------- группы и игры ---------- */
.grp { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.grp .glyph { width: 38px; height: 38px; flex: none; }
.grp b { font: 400 23px/1 var(--f-d); color: #fff; text-shadow: 0 2px 4px rgba(16,48,90,.4); }
.grp i {
  font: 800 13px/1 var(--f-b); font-style: normal; color: #0B4557;
  background: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 999px;
}
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game { width: 100%; }
.game .inf {
  min-height: 140px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.game .glyph { width: 54px; height: 54px; margin-top: 4px; }
.tag {
  width: 100%; background: linear-gradient(180deg, #fff, #E9F5F9); border-radius: 16px;
  padding: 6px 5px 7px; text-align: center; box-shadow: inset 0 -3px 6px rgba(16,48,90,.1);
}
.tag b { display: block; font: 800 13px/1.15 var(--f-b); color: var(--ink); overflow-wrap: anywhere; }
.tag span { display: block; margin-top: 2px; font: 800 11px/1.2 var(--f-b); color: var(--ink-3); }
.foot-note { margin: 22px 4px 0; text-align: center; color: #06455A; font: 800 12px/1.4 var(--f-b); opacity: .9; }
.wrap.mid .foot-note { margin-top: auto; padding-top: 22px; }

/* ---------- выбор языка ---------- */
.big-title { margin: 16px 2px 4px; font: 400 30px/1.12 var(--f-d); color: #fff; text-shadow: 0 2px 6px rgba(16,48,90,.42); }
.lead { margin: 0 2px; font: 800 13px/1.5 var(--f-b); color: #06455A; }
.lang-pick { display: grid; gap: 12px; margin-top: 16px; }
.chip .inf { padding: 16px 18px; --l: var(--mand-l); --d: var(--mand-d); }
.chip.two .inf { --l: #fff; --d: var(--pane-d); }
.chip strong { display: block; font: 800 22px/1.1 var(--f-b); color: #fff; text-shadow: 0 2px 4px rgba(16,48,90,.35); }
.chip span { display: block; margin-top: 2px; font: 800 12px/1.2 var(--f-b); color: rgba(255,255,255,.9); }
.chip.two strong { color: var(--ink); text-shadow: none; }
.chip.two span { color: var(--ink-2); }

/* ---------- карточки ---------- */
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px 0 4px; }
.stage > .bob { width: 100%; max-width: 340px; }
.flip {
  display: block; position: relative; width: 100%; max-width: 340px; height: 400px; perspective: 1100px;
  margin: 0 auto; cursor: pointer;
}
.fin { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s var(--spring); }
.flip.is-flip .fin { transform: rotateX(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
  --l: #FFFFFF; --d: #BFE0EC;
}
.face.rear { transform: rotateX(180deg); --l: var(--lem-l); --d: var(--lem-d); }
.face .glyph { width: 122px; height: 122px; }
.card-word {
  font-family: var(--f-b); font-weight: 800; font-size: var(--fs, 46px); line-height: 1.08;
  color: var(--ink); text-align: center; padding: 0 4px; overflow-wrap: anywhere;
}
.card-hint { font: 800 12px/1 var(--f-b); color: var(--ink-2); background: rgba(255,255,255,.75); padding: 7px 12px; border-radius: 999px; }
.card-ru { font: 400 30px/1.12 var(--f-d); color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.card-ru-lab { font: 800 11px/1 var(--f-b); color: #7A6410; letter-spacing: .5px; }
.answers { display: flex; gap: 12px; padding: 12px 0 4px; flex: none; }
.ans { flex: 1; }
.ans .cap { height: 62px; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 18px/1 var(--f-b); text-shadow: 0 2px 4px rgba(16,48,90,.35); }
.ans.no .cap { --l: var(--mag-l); --d: var(--mag-d); }

/* ---------- угадай ---------- */
.qhead { --l: #fff; --d: #DDEFF5; margin-top: 14px; padding: 14px; text-align: center; }
.qlead { display: block; font: 400 18px/1.2 var(--f-d); color: var(--ink-1); }
.qword {
  display: block; margin-top: 6px; font-family: var(--f-b); font-weight: 800;
  font-size: var(--fs, 44px); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere;
}
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.opt { position: relative; width: 100%; }
.ringo {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 36% 26%, var(--l, #fff) 0%, var(--d, #C9E4EE) 78%);
  box-shadow: 0 8px 16px rgba(16,48,90,.28), inset 0 -8px 14px rgba(16,48,90,.2), inset 0 7px 10px rgba(255,255,255,.45);
  transition: transform .22s var(--spring);
}
.ringo::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55); }
.ringo::after {
  content: ""; position: absolute; left: 14%; top: 12%; width: 36%; height: 17%; border-radius: 50%;
  background: radial-gradient(ellipse at 42% 42%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  transition: transform .22s var(--spring);
}
.pop:active .ringo { transform: scale(1.08); }
.pop:active .ringo::after { transform: translate(-6px, -4px); }
.hole {
  position: relative; width: 62%; height: 62%; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #E6F4F9);
  display: grid; place-items: center; text-align: center; padding: 4px;
  box-shadow: inset 0 -4px 8px rgba(16,48,90,.14);
}
.hole span { font: 800 16px/1.1 var(--f-b); color: var(--ink); overflow-wrap: anywhere; }
.hole .glyph { width: 34px; height: 34px; margin-bottom: 1px; }
.opt.wrong .ringo { animation: deflate .85s ease; }
.opt.wrong .crease { opacity: 1; }
.opt.right .ringo { animation: jump .72s var(--spring); }
.opt.show .ringo { animation: glowp 1s ease infinite; }
.qfloat { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; padding: 18px 6px 2px; }
.qfloat .glyph { width: 66px; height: 66px; filter: drop-shadow(0 8px 12px rgba(16,48,90,.28)); }

/* ---------- картинка и слух ---------- */
.pic-wrap { --l: #fff; --d: #DDEFF5; margin: 14px auto 0; padding: 16px; width: fit-content; }
.pic-wrap .glyph { width: 116px; height: 116px; display: block; }
.mid-btn { margin: 0 auto; }
.speaker { --l: var(--mand-l); --d: var(--mand-d); width: 104px; height: 104px; border-radius: 50%; margin: 14px auto 0; display: grid; place-items: center; }
.speaker::before { border-radius: 50%; }
.speaker svg { width: 46px; height: 46px; }
.hint { --l: #fff; --d: #DDEFF5; margin-top: 14px; padding: 11px 14px; text-align: center; font: 400 16px/1.25 var(--f-d); color: var(--ink); }

/* ---------- пары ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.pit { position: relative; width: 100%; }
.pit .inf {
  min-height: 86px; border-radius: 22px; padding: 6px 8px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.pit.l .inf { --l: var(--mag-l); --d: var(--mag-d); }
.pit.r .inf { --l: #fff; --d: var(--pane-d); }
.pit b { font-family: var(--f-b); font-weight: 800; font-size: var(--fs, 20px); line-height: 1.08; overflow-wrap: anywhere; }
.pit.l b { color: #fff; text-shadow: 0 2px 4px rgba(16,48,90,.35); }
.pit.r b { color: var(--ink); }
.pit.sel .inf { --l: var(--lem-l); --d: var(--lem-d); transform: scale(1.05); }
.pit.sel b { color: var(--ink); text-shadow: none; }
.pit.bad .inf { animation: deflate .8s ease; }
.pit.bad .crease { opacity: 1; }
.pit.ok .inf {
  --l: var(--lem-l); --d: var(--lem-d);
  box-shadow: 0 0 0 5px rgba(255,240,77,.55), 0 8px 16px rgba(16,48,90,.25);
}
.pit.ok b { color: var(--ink); text-shadow: none; }
.pit.ok { animation: sail .9s ease-in .2s both; }
.pit.gone { visibility: hidden; }
.opt[disabled], .pit[disabled] { cursor: default; }

/* ---------- порядок и память ---------- */
.seq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.seq span {
  border-radius: 999px; padding: 7px 11px; font: 800 12px/1 var(--f-b); color: var(--ink);
  background: rgba(255,255,255,.72); box-shadow: inset 0 -3px 5px rgba(16,48,90,.1);
}
.seq span.is-on { background: linear-gradient(180deg, var(--mand-l), var(--mand-d)); color: #fff; }
.seq span.is-next { background: var(--lem); box-shadow: 0 0 0 3px rgba(255,240,77,.45); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.grid3 { grid-template-columns: 1fr 1fr 1fr; }
.ord .inf, .mem .inf {
  min-height: 74px; border-radius: 22px; padding: 6px 8px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  --l: #fff; --d: var(--pane-d);
}
.ord b, .mem b { font-family: var(--f-b); font-weight: 800; font-size: var(--fs, 17px); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.ord.bad .inf { animation: deflate .8s ease; }
.ord.bad .crease { opacity: 1; }
.ord, .mem { position: relative; width: 100%; }
.mem .inf { --l: var(--mand-l); --d: var(--mand-d); }
.mem b { color: #fff; text-shadow: 0 2px 4px rgba(16,48,90,.3); }
.mem.is-face .inf { --l: #fff; --d: var(--pane-d); }
.mem.is-face b { color: var(--ink); text-shadow: none; }
.mem.is-ok .inf { --l: var(--lem-l); --d: var(--lem-d); box-shadow: 0 0 0 5px rgba(255,240,77,.5), 0 8px 16px rgba(16,48,90,.25); }

/* ---------- сцены ---------- */
.kitchen {
  position: relative; height: 290px; border-radius: 28px; overflow: hidden; margin-top: 14px;
  background: linear-gradient(180deg, #BDF0FA, #7FD9E8 58%, #F7E4BE 58%, #EFD3A0);
  box-shadow: 0 10px 20px rgba(16,48,90,.25), inset 0 -8px 14px rgba(16,48,90,.14), inset 0 6px 10px rgba(255,255,255,.5);
}
.kitchen .table {
  position: absolute; left: 12px; right: 12px; bottom: 14px; height: 40%;
  border-radius: 22px; background: linear-gradient(180deg, #F7D9A2, #C98B36);
  box-shadow: inset 0 -6px 10px rgba(16,48,90,.16), inset 0 5px 8px rgba(255,255,255,.5);
}
.kitchen .spot { position: absolute; width: 76px; height: 76px; transition: transform .3s var(--spring); }
.kitchen .spot .glyph { width: 68px; height: 68px; filter: drop-shadow(0 6px 10px rgba(16,48,90,.3)); }
.kitchen .spot.is-found { transform: scale(1.1); }
.kitchen .spot.is-found::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 4px dashed rgba(255,240,77,.9);
}
.kitchen .spot.is-flash .glyph { animation: deflate .5s ease; }
.kitchen .spot[data-spot="bread"] { left: 6%; top: 40%; }
.kitchen .spot[data-spot="water"] { left: 30%; top: 26%; }
.kitchen .spot[data-spot="milk"] { left: 54%; top: 30%; }
.kitchen .spot[data-spot="apple"] { left: 74%; top: 28%; }
.kitchen .spot[data-spot="wheat"] { left: 20%; top: 62%; }
.kitchen .spot[data-spot="meat"] { left: 58%; top: 62%; }
.body-fig { width: 100%; height: auto; max-height: 380px; display: block; margin: 8px auto 0; filter: drop-shadow(0 10px 16px rgba(16,48,90,.28)); }
.body-fig .spot { cursor: pointer; }
.body-fig .spot.is-flash { animation: glowp .5s ease 2; }

/* ---------- победа ---------- */
.win { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 0 4px; }
.win-h { font: 800 58px/1 var(--f-b); color: #fff; text-shadow: 0 2px 0 rgba(255,255,255,.5), 0 6px 14px rgba(16,48,90,.45); }
.win-s { font: 400 22px/1.15 var(--f-d); color: #08475A; text-shadow: 0 1px 0 rgba(255,255,255,.5); text-align: center; }
.score { --l: #fff; --d: #CDE8F1; margin-top: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.score em { font: 800 12px/1.2 var(--f-b); font-style: normal; color: var(--ink); }
.balls { display: flex; gap: 5px; }
.balls i {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(180deg, var(--mand-l), var(--mand-d));
  box-shadow: inset 0 3px 4px rgba(255,255,255,.6), 0 2px 4px rgba(16,48,90,.25);
}
.balls i.off { background: rgba(16,48,90,.15); box-shadow: none; }
.prize { position: relative; width: 180px; height: 180px; margin: 8px 0 2px; display: grid; place-items: center; }
.prize .glyph { width: 150px; height: 150px; }
.prize::before, .prize::after {
  content: ""; position: absolute; width: 150px; height: 60px;
  border: 3px solid rgba(255,255,255,.7); border-radius: 50%; animation: rp 2.4s ease-out infinite;
}
.prize::after { animation-delay: 1.2s; }
.prize-lab { font: 800 12px/1 var(--f-b); color: #08475A; background: rgba(255,255,255,.72); padding: 8px 14px; border-radius: 999px; }
.weak { --l: #fff; --d: #CDE8F1; margin-top: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; }
.weak .glyph { width: 30px; height: 30px; transform: scaleY(.45) translateY(8px); filter: grayscale(.65); opacity: .65; }
.weak span { font: 800 11px/1.25 var(--f-b); color: var(--ink-2); }
.pooler { margin-top: 10px; }
.pooler .mascot { width: 150px; height: 138px; filter: drop-shadow(0 10px 14px rgba(16,48,90,.3)); }
.wave { position: absolute; left: -10%; bottom: 120px; width: 220%; height: 90px; z-index: 2; pointer-events: none; opacity: 0; }
.is-enter .wave { animation: wave-in 1.6s .5s ease-out; }
.wbtns { display: flex; gap: 12px; padding: 14px 0 6px; flex: none; }
.wbtns .pop { flex: 1; }
.wbtns .cap { height: 62px; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 17px/1 var(--f-b); text-shadow: 0 2px 4px rgba(16,48,90,.35); }
.wbtns .pop.two .cap { --l: var(--mag-l); --d: var(--mag-d); }

/* ---------- категории ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.cat { width: 100%; }
.cat .inf {
  min-height: 172px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.cat .glyph { width: 66px; height: 66px; margin-top: 6px; filter: drop-shadow(0 4px 6px rgba(16,48,90,.2)); }
.cat-tag { padding: 8px 6px 9px; }
.cat .cat-name { display: block; font: 400 20px/1.05 var(--f-d); color: var(--ink); overflow-wrap: anywhere; }
.cat-inh {
  display: inline-block; margin-top: 5px; font: 800 11px/1 var(--f-b); font-style: normal; color: var(--ink);
  background: var(--lem); border-radius: 999px; padding: 5px 9px; box-shadow: 0 2px 4px rgba(16,48,90,.18);
  overflow-wrap: anywhere;
}
.cat .cat-meta { display: block; margin-top: 6px; font: 800 11px/1.2 var(--f-b); color: var(--ink-3); }
.cat.wide { grid-column: 1 / -1; }
.cat.wide .inf { flex-direction: row; align-items: center; gap: 12px; min-height: 106px; padding: 12px 14px; }
.cat.wide .glyph { margin-top: 0; flex: none; }
.cat.wide .cat-tag { flex: 1; min-width: 0; text-align: left; }
.rim-toy { width: 46px; height: 44px; flex: none; }
.rim-toy .glyph { width: 44px; height: 44px; display: block; }

/* ---------- полка с игрушками ---------- */
.tshelf { --l: #FFFFFF; --d: #CCE6EF; width: 100%; margin-top: 14px; padding: 12px 12px 14px; display: block; text-align: left; }
.tshelf-top { display: flex; align-items: center; gap: 8px; }
.tshelf-top b { font: 400 19px/1.15 var(--f-d); color: var(--ink); }
.tcnt {
  margin-left: auto; flex: none; font: 800 13px/1 var(--f-b); color: var(--ink);
  background: var(--lem); border-radius: 999px; padding: 8px 11px; box-shadow: 0 3px 6px rgba(16,48,90,.2);
}
.tshelf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 10px;
  padding: 8px 8px 10px; border-radius: 18px;
  background: linear-gradient(180deg, #BDF0FA, #7FD9E8);
  box-shadow: inset 0 -5px 9px rgba(16,48,90,.16), inset 0 4px 7px rgba(255,255,255,.55);
}
.tfig { flex: 1; min-width: 0; display: grid; place-items: center; }
.tfig .glyph { width: 100%; max-width: 42px; height: auto; filter: drop-shadow(0 4px 6px rgba(16,48,90,.28)); }
.tfig.off .glyph { filter: grayscale(1) brightness(1.9); opacity: .5; }
.tshelf-note { display: block; margin-top: 8px; font: 800 11px/1.3 var(--f-b); color: var(--ink-2); }

/* ---------- коллекция ---------- */
/* Сетка коллекции: ячейки одного размера, иначе подписи в две строки
   разъезжают ряды и сетка выглядит сломанной. */
.coll { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 10px; margin-top: 16px; align-items: stretch; }
.toy { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.toy > .bob { display: block; width: 100%; }
.toy-fig { display: grid; place-items: center; height: 84px; }
/* Пустой слот: видно место под будущую игрушку, иначе бледный силуэт
   просто теряется в воде. */
.toy.off .toy-fig {
  border-radius: 50%; background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
}
.toy .glyph {
  width: 100%; max-width: 74px; height: auto; margin: 0 auto; transition: transform .22s var(--spring);
  filter: drop-shadow(0 0 3px rgba(255,255,255,.9)) drop-shadow(0 7px 10px rgba(16,48,90,.3));
}
.toy:active .glyph { transform: scale(1.12); }
.toy-lab {
  display: flex; align-items: center; justify-content: center; margin-top: 5px;
  min-height: 32px; width: 100%; font: 800 10px/1.2 var(--f-b); color: var(--ink);
  background: rgba(255,255,255,.75); border-radius: 999px; padding: 5px 6px;
  overflow-wrap: anywhere; box-shadow: inset 0 -2px 4px rgba(16,48,90,.08);
}
.toy.off { cursor: default; }
.toy.off .glyph { filter: grayscale(1) brightness(1.9); opacity: .45; }
.toy.off .toy-lab { visibility: hidden; }
.coll-go { margin-top: 10px; }
.coll-go .cap {
  --l: var(--lem-l); --d: var(--lem-d); height: 44px; padding: 0 18px; display: flex; align-items: center; justify-content: center;
  color: var(--ink); font: 800 13px/1 var(--f-b);
}

/* ---------- узкие экраны ---------- */
@media (max-width: 374px) {
  .wrap { padding: 0 12px 24px; }
  .brand { font-size: 26px; padding: 7px 16px 11px; }
  .rim-note { font-size: 11px; }
  .word-big { font-size: calc(var(--fs, 50px) * .86); }
  .card-word { font-size: calc(var(--fs, 46px) * .86); }
  .qword { font-size: calc(var(--fs, 44px) * .86); }
  .flip { height: 372px; }
  .face .glyph { width: 108px; height: 108px; }
  .win-h { font-size: 50px; }
  .hole span { font-size: 14px; }
  .games, .cats { gap: 10px; }
  .cat .inf { min-height: 162px; }
  .cat .glyph { width: 58px; height: 58px; }
  .cat .cat-name { font-size: 18px; }
  .coll { gap: 10px 8px; }
  .toy .glyph { max-width: 66px; }
  .tshelf-top b { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* экран группы: игр бывает всего три-четыре, поэтому маскот с репликой
   прижимается к низу, а не оставляет половину экрана пустой водой */
.mrow.gmascot { margin-top: auto; padding-top: 18px; }
