:root {
  --ink: #304e52;
  --muted: #71877c;
  --paper: #f6f3ea;
  --mint: #619e90;
  --gold: #efc576;
  --white: #fffcf3;
  --shadow: 0 5px 0 #34554b18;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button:focus-visible {
  outline: 4px solid #538f8d;
  outline-offset: 5px;
}
button:active:not(:disabled) {
  transform: translateY(2px);
}
svg {
  display: block;
  width: 100%;
  height: 100%;
}
.app-shell {
  max-width: 1390px;
  margin: auto;
  padding: 24px 38px 0;
}
/* Встроенный режим (см. <script> в index.html/grove.html) — своя шапка
   игры (бренд "Числята", заголовок уровня, воспоминания-жемчужины) и
   футер прячутся, потому что снаружи их дублирует шапка сервиса
   (app/games/krosha-island/KroshaGameClient.tsx: хлебные крошки,
   заголовок, переключатель уровней, звук, полный экран). Сама сцена
   (#world) остаётся как есть — её внутренняя вёрстка ни от чего из
   спрятанного не зависит. */
.embedded .topbar,
.embedded .chapter-heading,
.embedded footer {
  display: none;
}
/* .world сам считает свою высоту через clamp(...vh...) от vh ВНУТРИ
   iframe — это не то же самое, что высота, которую снаружи задаёт
   .game-frame-wrap iframe (KroshaGameClient.tsx). Из-за рассинхрона
   этих двух независимых формул под сценой оставался пустой зазор до
   низа iframe (видна заливка body). Поэтому в embed-режиме сцена
   просто на 100% заполняет то, что ей выделил iframe снаружи. */
html.embedded,
.embedded body {
  height: 100%;
}
.embedded .app-shell {
  height: 100%;
  padding: 0;
}
.embedded .world {
  height: 100%;
  min-height: 0;
  border-radius: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-star {
  font-size: 38px;
  color: #7aab9c;
}
.brand strong {
  font-size: 29px;
  letter-spacing: -1px;
  display: block;
}
.brand span:not(.brand-star) {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
nav {
  display: flex;
  gap: 10px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid #e0e4d8;
  border-radius: 20px;
  background: #fffcf3;
}
.icon-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chapter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 27px 4px 22px;
}
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2.5px;
  color: #849387;
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(29px, 3.5vw, 44px);
  letter-spacing: -1.4px;
  margin: 0;
  font-weight: 900;
  line-height: 1.12;
}
h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 15px 0;
}
.memory-strip {
  display: flex;
  gap: 10px;
  align-items: center;
}
.memory-caption {
  font-size: 13px;
  color: #778978;
  margin-right: 3px;
  white-space: nowrap;
}
.memory-pearl {
  width: 51px;
  height: 56px;
  border-radius: 50% 50% 42% 42%;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: bold;
  border: 1px dashed #c4cdbd;
  color: #a7b2a0;
  background: #edeedd;
  transition: all 0.7s;
}
.memory-pearl.lit {
  background: #fff2c4;
  border: 2px solid #e4c586;
  color: #8c774c;
  box-shadow: 0 0 18px #ecc47160;
}
.world {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  height: clamp(600px, 73vh, 790px);
  border-radius: 33px;
  overflow: hidden;
  background: #eadfc5 url("assets/beach.webp") center center/cover no-repeat;
  box-shadow: 0 15px 50px #74806b15;
  border: 1px solid #dddcc4;
}
.world-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fffaed05, #fffcdb00 80%);
  z-index: -1;
  pointer-events: none;
}
.shore-wave {
  position: absolute;
  top: 35%;
  left: -15%;
  width: 75%;
  height: 75px;
  border-top: 4px solid #f6fff191;
  border-radius: 50%;
  opacity: 0.45;
  animation: shore 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.wave-two {
  animation-delay: -3s;
  top: 40%;
  width: 63%;
  opacity: 0.25;
}
.speech {
  position: absolute;
  top: 25px;
  left: 27px;
  width: 440px;
  max-width: 46%;
  background: #fffdf0f2;
  border: 1px solid #fffff7e3;
  border-radius: 25px 25px 25px 6px;
  padding: 10px 23px 21px;
  z-index: 5;
  box-shadow: 0 8px 24px #5166580b;
  backdrop-filter: blur(6px);
}
.speaker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #799189;
}
.speaker-row button {
  min-height: 60px;
  min-width: 60px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: #719c90;
  margin-right: -15px;
}
.speech p {
  font-size: 28px;
  line-height: 1.4;
  margin: 0;
  white-space: pre-line;
  letter-spacing: -0.35px;
}
.task-ribbon {
  position: absolute;
  bottom: 20px;
  left: 25px;
  right: 25px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  pointer-events: none;
}
.task-ribbon p {
  font-size: 24px;
  line-height: 1.35;
  margin: 0;
  color: #5b6752;
  text-align: center;
  padding: 12px 20px;
  border-radius: 19px;
  background: #fff7d9df;
  box-shadow: 0 3px 10px #938b6610;
}
.ribbon-star {
  font-size: 22px;
  color: #b59557;
}
.pet {
  position: absolute;
  left: 67%;
  bottom: 17%;
  width: 250px;
  height: 290px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  z-index: 4;
  touch-action: none;
  user-select: none;
  transition: filter 0.35s;
}
.pet:active:not(:disabled) {
  transform: translateX(-50%);
}
.pet svg {
  overflow: visible;
  pointer-events: none;
}
.pet.drop-ready {
  filter: drop-shadow(0 0 20px #f4df9180);
}
.pet .chest-ring {
  position: absolute;
  left: 37%;
  top: 49%;
  width: 29%;
  aspect-ratio: 1;
  border: 3px dashed #ffe799;
  border-radius: 50%;
  box-shadow: 0 0 20px #fff4b2;
  pointer-events: none;
  animation: ring 2s ease-in-out infinite;
}
.pet.drop-hover .chest-ring {
  background: #ffffe585;
  border-style: solid;
  transform: scale(1.15);
}
.pet-label {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  color: #698677;
}
.pet.entrance {
  animation: appear 0.8s ease-out;
}
.pet.stroke-happy {
  filter: drop-shadow(0 0 12px #ffffd1);
}
.stroke-hearts {
  position: absolute;
  left: 52%;
  bottom: 58%;
  display: flex;
  gap: 13px;
  font-size: 28px;
  color: #db967e;
  z-index: 6;
}
.stroke-hearts span {
  opacity: 0.3;
}
.stroke-hearts span.lit {
  opacity: 1;
  animation: heart 0.5s ease-out;
}
.stranded {
  position: absolute;
  left: 51%;
  bottom: 33%;
  width: 130px;
  height: 145px;
  background: transparent;
  border: 0;
  padding: 10px;
  animation: float 3.5s ease-in-out infinite;
  z-index: 4;
  filter: drop-shadow(0 0 21px #fffad1);
}
.stranded svg {
  opacity: 0.8;
  transform: rotate(-18deg) scale(0.8);
}
.stranded:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(#fff9c8a6, transparent 70%);
  animation: ring 2s infinite;
}
.touch-cue {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #4c7e79;
  background: #fffae6e0;
  border-radius: 15px;
  padding: 8px;
}
.search-object {
  position: absolute;
  bottom: 19%;
  width: 110px;
  height: 105px;
  border: 0;
  background: transparent;
  padding: 5px;
  z-index: 3;
  touch-action: manipulation;
  transition: filter 0.3s;
}
.search-object[data-find="shell"] {
  left: 13%;
}
.search-object[data-find="stone"] {
  left: 30%;
}
.search-object[data-find="weed"] {
  left: 45%;
}
.search-object.glimmer {
  filter: drop-shadow(0 0 15px #ffed9f);
}
.search-object.glimmer:before {
  content: "✦";
  position: absolute;
  left: 35%;
  top: 60%;
  font-size: 32px;
  color: #fff5b9;
  animation: ring 1.8s ease-in-out infinite;
}
.search-object.opened svg {
  transform: translateX(-15px) rotate(-25deg);
  opacity: 0.5;
}
.search-object.opened:after {
  content: "· · ·";
  position: absolute;
  bottom: 0;
  left: 15px;
  font-size: 22px;
  color: #a68e61;
}
.number-treasure {
  position: absolute;
  left: 29%;
  bottom: 25%;
  width: 95px;
  height: 115px;
  display: grid;
  place-items: center;
  border: 2px solid #fffbd1;
  border-radius: 45%;
  background: radial-gradient(#fffbd8, #f2d994bd);
  box-shadow:
    0 0 25px #fff4a5b0,
    0 8px 10px #9b835015;
  color: #917143;
  font-size: 74px;
  font-weight: bold;
  z-index: 7;
  touch-action: none;
  animation: float 3s ease-in-out infinite;
  user-select: none;
}
.number-treasure:active {
  transform: none !important;
}
.number-treasure.selected {
  outline: 4px solid #508f88;
  outline-offset: 6px;
}
.number-treasure.locked {
  opacity: 0.65;
  filter: saturate(0.4);
  animation: none;
  pointer-events: none;
}
.bell {
  position: absolute;
  left: 30%;
  bottom: 18%;
  width: 120px;
  height: 130px;
  border: 0;
  background: #fff8d676;
  border-radius: 50%;
  padding: 13px;
  z-index: 5;
}
.bell.rung {
  animation: bell 0.55s ease-out;
}
.bell-count {
  position: absolute;
  right: -4px;
  top: 0;
  font-size: 28px;
  font-weight: bold;
  background: #fff7d3;
  border-radius: 50%;
  width: 42px;
  line-height: 42px;
}
.world[data-stage="bell"] .number-treasure {
  left: 15%;
  bottom: 29%;
  width: 70px;
  height: 85px;
  font-size: 55px;
}
.swim-fish {
  position: absolute;
  left: 18%;
  bottom: 28%;
  width: 110px;
  height: 100px;
  padding: 8px;
  background: #b9e0d788;
  border: 2px solid #edf7d680;
  border-radius: 50%;
  z-index: 4;
  animation: swim 4s ease-in-out infinite;
  touch-action: manipulation;
}
.swim-fish.second {
  left: 37%;
  bottom: 35%;
  animation-delay: -2s;
}
.swim-fish.counted {
  background: #ffedb8aa;
  border-color: #fff7ce;
  animation: none;
}
.swim-fish .fish-count {
  position: absolute;
  top: -13px;
  left: 34%;
  font-size: 27px;
  line-height: 37px;
  width: 37px;
  border-radius: 50%;
  background: #fff8dc;
}
.shell-group {
  position: absolute;
  left: 12%;
  bottom: 33%;
  display: flex;
  gap: 14px;
  width: 38%;
  align-items: flex-end;
}
.count-shell {
  border: 0;
  background: transparent;
  width: 90px;
  height: 90px;
  padding: 3px;
  position: relative;
}
.count-shell:nth-child(2) {
  transform: translateY(-20px);
}
.count-shell .fish-count {
  position: absolute;
  top: -4px;
  right: 0;
  font-size: 25px;
  color: #5b8580;
  background: #fff5d9;
  width: 33px;
  line-height: 33px;
  border-radius: 50%;
}
.correction {
  position: absolute;
  left: 13%;
  bottom: 14%;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 6;
}
.primary,
.secondary {
  font-size: 24px;
  font-weight: bold;
  border-radius: 20px;
  min-height: 65px;
  padding: 14px 23px;
  box-shadow: var(--shadow);
  border: 0;
}
.primary {
  background: #598f85;
  color: #fffbee;
  border-bottom: 4px solid #46796f;
}
.secondary {
  background: #fff6de;
  color: #746a51;
  border: 1px solid #d5c69d;
}
.correction .secondary {
  animation: gentle-pulse 2.2s ease-in-out infinite;
}
.correction .correct-number {
  font-size: 42px;
  min-width: 85px;
  background: #fff1bf;
  color: #817045;
}
.scene-next {
  position: absolute;
  left: 18%;
  bottom: 22%;
  z-index: 8;
  max-width: 40%;
}
.scene-next .primary {
  font-size: 24px;
}
.world[data-stage="remember1"] .pet {
  --paw-wave: 1;
}
.emotion-heart {
  position: absolute;
  font-size: 33px;
  color: #e5a698;
  pointer-events: none;
  animation: heart-rise 1.6s ease-out forwards;
  z-index: 12;
}
.drag-ghost {
  position: fixed !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 1000;
  pointer-events: none;
  animation: none !important;
  opacity: 0.92;
  margin: 0 !important;
  transform: rotate(-8deg) !important;
}
.drag-source-hidden {
  opacity: 0.25 !important;
}
.tiny-feedback {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  font-size: 24px;
  text-align: center;
  color: #59796a;
}
.voice-status {
  position: absolute;
  right: 15px;
  bottom: 100px;
  font-size: 13px;
  background: #fff4d8e8;
  border-radius: 12px;
  padding: 9px;
  max-width: 230px;
  z-index: 12;
}
.voice-status:empty {
  display: none;
}
.finish-card {
  position: absolute;
  left: 6%;
  top: 6%;
  width: 43%;
  background: #fffaf0f5;
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  z-index: 8;
  box-shadow: 0 8px 30px #62735c15;
}
.finish-card .award-star {
  font-size: 65px;
  line-height: 1;
  color: #e4b864;
  text-shadow: 0 4px #ceab71;
  display: block;
  margin-bottom: 14px;
}
.finish-card h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 15px;
}
.finish-card p {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 18px;
}
.finish-card .memory-mini {
  font-size: 32px;
  letter-spacing: 12px;
  color: #94804e;
  margin-bottom: 15px;
}
.finish-card .primary {
  display: block;
  width: 100%;
  font-size: 24px;
}
.world.show-finish .speech {
  display: none;
}
.world.show-finish .pet {
  bottom: 18%;
  left: 74%;
  width: 285px;
  height: 330px;
}
.world.show-finish .task-ribbon {
  display: none;
}
.free-play-actions {
  position: absolute;
  left: 15%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 7;
}
.particle {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: #e7bb6f;
  font-size: 21px;
  animation: confetti 2s ease-out forwards;
  z-index: 20;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 4px 12px;
  color: #7f8c7b;
  font-size: 12px;
}
/* Ссылка возврата на основной сайт (ПРО.СТО образование) — игра
   скопирована статикой в public/games/krosha-island, отдельного пункта
   "назад" в оригинале не было. Группа с кнопкой "Для родителей", чтобы
   при трёх элементах в футере (index.html) он не расползался по всей
   ширине через justify-content:space-between. */
.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
footer a {
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
}
footer button {
  font-size: 13px;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
dialog {
  border: 1px solid #e8e2d1;
  border-radius: 28px;
  padding: 30px;
  max-width: 530px;
  width: calc(100% - 28px);
  background: var(--white);
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #27495066;
  backdrop-filter: blur(4px);
}
dialog p {
  font-size: 24px;
  line-height: 1.5;
  margin: 18px 0 24px;
}
dialog .primary {
  display: block;
  width: 100%;
}
.dialog-close {
  position: absolute;
  right: 7px;
  top: 7px;
  border: 0;
  background: transparent;
  font-size: 32px;
}
.text-button {
  display: block;
  border: 0;
  background: transparent;
  text-decoration: underline;
  margin: 12px auto 0;
  font-size: 17px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dialog-actions > * {
  flex: 1;
}
.parent-note {
  font-size: 16px !important;
  line-height: 1.6 !important;
}
.stat-row {
  font-size: 21px;
  line-height: 1.7;
  padding: 14px;
  background: #edf0df;
  border-radius: 18px;
}
#save-warning {
  font-size: 16px;
  color: #8a7250;
  line-height: 1.5;
}
.shake {
  animation: shake 0.4s;
}
.pop {
  animation: pop 0.5s;
}
.pet.pet-hug {
  animation: pet-hug 0.8s ease-in-out;
}
.pet.pet-hop {
  animation: pet-hop 0.7s ease-out;
}
.pet.pet-spin {
  animation: pet-spin 1s ease-in-out;
}
@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}
@keyframes shore {
  50% {
    transform: translate(15px, 9px) scaleX(1.04);
    opacity: 0.15;
  }
}
@keyframes ring {
  50% {
    opacity: 0.6;
    filter: brightness(1.15);
  }
}
@keyframes heart {
  50% {
    transform: scale(1.3);
  }
}
@keyframes heart-rise {
  to {
    transform: translateY(-110px) rotate(20deg);
    opacity: 0;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes bell {
  25% {
    transform: rotate(-20deg);
  }
  65% {
    transform: rotate(15deg);
  }
}
@keyframes swim {
  50% {
    transform: translate(14px, -7px) rotate(-6deg);
  }
}
@keyframes gentle-pulse {
  50% {
    box-shadow: 0 0 0 5px #fff4c450;
  }
}
@keyframes confetti {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(330deg);
    opacity: 0;
  }
}
@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@keyframes pop {
  50% {
    transform: scale(1.12);
  }
}
@keyframes pet-hop {
  45% {
    transform: translate(-50%, -35px) rotate(-5deg);
  }
}
@keyframes pet-hug {
  50% {
    transform: translateX(-50%) scale(1.09);
  }
}
@keyframes pet-spin {
  50% {
    transform: translate(-50%, -35px) rotate(180deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .app-shell {
    padding: 20px 25px 0;
  }
  .world {
    height: 650px;
  }
  .pet {
    width: 230px;
    height: 267px;
    left: 72%;
  }
  .speech {
    max-width: 50%;
    width: 390px;
  }
  .speech p {
    font-size: 26px;
  }
  .shell-group {
    width: 43%;
    left: 8%;
    gap: 8px;
  }
  .count-shell {
    width: 85px;
    height: 85px;
  }
  .memory-caption {
    display: none;
  }
  .scene-next {
    left: 12%;
  }
  .finish-card {
    width: 47%;
  }
  .world.show-finish .pet {
    left: 76%;
    width: 245px;
    height: 285px;
  }
}
@media (max-width: 600px) {
  .app-shell {
    padding: 12px 12px 0;
  }
  .topbar {
    gap: 10px;
  }
  .brand strong {
    font-size: 24px;
  }
  .brand-star {
    font-size: 30px;
  }
  .brand {
    gap: 7px;
  }
  .brand span:not(.brand-star) {
    display: none;
  }
  nav {
    gap: 7px;
  }
  .chapter-heading {
    margin: 20px 2px 16px;
    gap: 8px;
    align-items: center;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
    margin-bottom: 7px;
  }
  h1 {
    font-size: 29px;
    max-width: 205px;
    letter-spacing: -1px;
  }
  .memory-strip {
    gap: 5px;
  }
  .memory-pearl {
    width: 34px;
    height: 42px;
    font-size: 23px;
  }
  .world {
    height: 680px;
    min-height: 680px;
    border-radius: 25px;
    background-position: 53% center;
  }
  .speech {
    top: 17px;
    left: 15px;
    max-width: none;
    width: calc(100% - 30px);
    padding: 4px 17px 17px;
    border-radius: 21px 21px 21px 5px;
  }
  .speech p {
    font-size: 24px;
    line-height: 1.35;
  }
  .speaker-row {
    font-size: 10px;
  }
  .pet {
    width: 183px;
    height: 212px;
    left: 69%;
    bottom: 25%;
  }
  .stroke-hearts {
    left: 53%;
    bottom: 56%;
    gap: 7px;
    font-size: 24px;
  }
  .stranded {
    left: 35%;
    bottom: 27%;
    width: 125px;
    height: 140px;
  }
  .task-ribbon {
    bottom: 15px;
    left: 12px;
    right: 12px;
    gap: 5px;
  }
  .task-ribbon p {
    font-size: 24px;
    padding: 10px 13px;
  }
  .ribbon-star {
    display: none;
  }
  .search-object {
    width: 85px;
    height: 85px;
    bottom: 14%;
  }
  .search-object[data-find="shell"] {
    left: 5%;
  }
  .search-object[data-find="stone"] {
    left: 34%;
  }
  .search-object[data-find="weed"] {
    left: 64%;
  }
  .number-treasure {
    left: 10%;
    bottom: 26%;
    width: 80px;
    height: 100px;
    font-size: 64px;
  }
  .bell {
    left: 11%;
    bottom: 22%;
    width: 97px;
    height: 108px;
  }
  .world[data-stage="bell"] .number-treasure {
    left: 8%;
    bottom: 42%;
    width: 65px;
    height: 80px;
  }
  .swim-fish {
    left: 7%;
    bottom: 39%;
    width: 86px;
    height: 80px;
  }
  .swim-fish.second {
    left: 28%;
    bottom: 25%;
  }
  .shell-group {
    left: 5%;
    bottom: 17%;
    width: 88%;
    gap: 16px;
    justify-content: center;
  }
  .count-shell {
    width: 80px;
    height: 80px;
  }
  .world[data-stage="mistake"] .pet,
  .world[data-stage="transfer3"] .pet {
    bottom: 35%;
    left: 73%;
    width: 166px;
    height: 194px;
  }
  .world[data-stage="mistake"] .shell-group {
    bottom: 28%;
    width: 48%;
    left: 3%;
    gap: 4px;
    flex-wrap: wrap;
  }
  .world[data-stage="mistake"] .count-shell {
    width: 64px;
    height: 65px;
  }
  .correction {
    left: 6%;
    bottom: 13%;
    gap: 10px;
  }
  .correction .secondary {
    font-size: 24px;
    padding: 12px 18px;
  }
  .scene-next {
    left: 8%;
    bottom: 13%;
    max-width: 84%;
  }
  .scene-next .primary {
    font-size: 24px;
    min-height: 65px;
  }
  .world[data-stage="remember1"] .pet,
  .world[data-stage="remember2"] .pet {
    left: 55%;
    bottom: 27%;
  }
  .finish-card {
    left: 5%;
    top: 4%;
    width: 90%;
    padding: 20px;
  }
  .finish-card h2 {
    font-size: 28px;
  }
  .finish-card p {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .finish-card .award-star {
    font-size: 49px;
    margin-bottom: 8px;
  }
  .finish-card .primary {
    font-size: 24px;
  }
  .world.show-finish .pet {
    width: 195px;
    height: 225px;
    bottom: 4%;
    left: 53%;
  }
  .free-play-actions {
    left: 7%;
    bottom: 14%;
    gap: 10px;
    flex-direction: row;
    right: 7%;
    flex-wrap: wrap;
  }
  .free-play-actions .secondary {
    font-size: 24px;
    flex: 1;
    padding: 10px 16px;
  }
  .world[data-stage="finish"]:not(.show-finish) .pet {
    left: 55%;
    bottom: 30%;
  }
  .voice-status {
    bottom: 110px;
    max-width: 90%;
    right: 10px;
  }
  footer {
    font-size: 11px;
  }
  dialog {
    padding: 26px 22px;
  }
  .dialog-close {
    right: 3px;
    top: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.stranded {
  animation: none;
}
.stranded svg {
  animation: float 3.5s ease-in-out infinite;
}
.number-treasure {
  animation: ring 3s ease-in-out infinite;
}
.swim-fish {
  animation: none;
}
.swim-fish svg {
  animation: swim 4s ease-in-out infinite;
}
.swim-fish.second svg {
  animation-delay: -2s;
}
.swim-fish.counted svg {
  animation: none;
}
@media (max-width: 600px) {
  .correction {
    bottom: 16%;
  }
  .search-object {
    bottom: 17%;
  }
}

.next-chapter{display:flex;align-items:center;justify-content:center;min-height:60px;min-width:60px;font-size:24px;color:#477e70;text-decoration:none;margin-top:8px}.free-play-actions{flex-wrap:wrap}
[hidden]{display:none!important}
