:root {
  --sky-top: #66b3e5;
  --sky-bottom: #99d8f2;
  --sky-soft: #f2fbff;
  --surface: #ffffff;
  --surface-glass: rgba(57, 174, 226, 0.28);
  --surface-readable: rgba(22, 120, 184, 0.62);
  --surface-stroke: rgba(255, 255, 255, 0.42);
  --control-stroke: rgba(255, 255, 255, 0.5);
  --control-highlight: rgba(255, 255, 255, 0.34);
  --text: #20405d;
  --text-strong: #173553;
  --text-muted: #5c7890;
  --primary: #2196f3;
  --primary-dark: #1678b8;
  --primary-soft: #e3f5ff;
  --pink: #ff7db3;
  --green: #34c759;
  --green-top: #5edc8a;
  --yellow: #ffc844;
  --border: rgba(69, 139, 184, 0.16);
  --shadow: 0 18px 50px rgba(52, 132, 183, 0.17);
  --shadow-soft: 0 10px 28px rgba(52, 132, 183, 0.13);
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 42px;
  --container: 1180px;
  --section-space: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], article[id], details[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--sky-soft);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
picture { display: block; }
picture > img { width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(239, 250, 255, 0.88);
  backdrop-filter: blur(18px);
}
.header-inner, .header-actions, .brand, .main-nav, .language-switcher, .footer-inner, .site-footer nav {
  display: flex;
  align-items: center;
}
.header-inner { min-height: 76px; gap: 28px; }
.brand { gap: 11px; color: var(--text-strong); font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 14px; box-shadow: 0 5px 14px rgba(40, 128, 196, 0.18); }
.main-nav { gap: 22px; margin-left: auto; }
.main-nav a, .site-footer nav a { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .site-footer nav a:hover, .text-link:hover { color: var(--primary-dark); }
.header-actions { gap: 14px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 4px; }
.language-switcher { gap: 6px; }
.language-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--control-stroke);
  border-radius: 50%;
  background: var(--surface-glass);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-size: 20px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.language-button:hover { transform: translateY(-2px); }
.language-button[aria-current="true"] { background: var(--surface-readable); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18); transform: scale(1.08); }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  border: 1.5px solid var(--control-stroke);
  background:
    linear-gradient(180deg, var(--control-highlight), transparent 52%),
    linear-gradient(135deg, #41b8ff, var(--primary));
  box-shadow: 0 9px 18px rgba(33, 150, 243, 0.38), 0 6px 12px rgba(0, 0, 0, 0.24);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(33, 150, 243, 0.42), 0 7px 14px rgba(0, 0, 0, 0.24); }
.button:active { transform: scale(0.95); box-shadow: 0 6px 12px rgba(33, 150, 243, 0.32), 0 4px 8px rgba(0, 0, 0, 0.2); }
.app-store-badge {
  display: inline-block;
  overflow: hidden;
  border-radius: 11px;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease;
}
.app-store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28); }
.app-store-badge:active { transform: scale(0.96); }
.app-store-badge-image { width: 180px; height: auto; }
.app-store-badge-image-en { display: none; }
html:lang(en) .app-store-badge-image-ru { display: none; }
html:lang(en) .app-store-badge-image-en { display: block; }
.text-link { color: var(--primary-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.button:focus-visible, .text-link:focus-visible, a:focus-visible, summary:focus-visible, .language-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.hero::after {
  position: absolute;
  right: -4%;
  bottom: -115px;
  left: -4%;
  height: 210px;
  border-radius: 50% 50% 0 0;
  background: #fff;
  content: "";
  z-index: 0;
}
.hero-grid { display: grid; min-height: 720px; grid-template-columns: 1.02fr 0.98fr; grid-template-areas: "balloons balloons" "copy activities" "conversion activities"; align-content: center; column-gap: 32px; padding-block: 32px 80px; }
.hero-copy { align-self: end; grid-area: copy; position: relative; z-index: 2; }
.hero-conversion { align-self: start; grid-area: conversion; position: relative; z-index: 2; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.12; letter-spacing: -0.04em; }
h1 { margin-bottom: 22px; font-size: clamp(46px, 5.6vw, 76px); }
.hero h1 { font-size: clamp(42px, 4.4vw, 64px); }
h1 span { color: var(--primary-dark); }
h2 { margin-bottom: 14px; font-size: clamp(34px, 4vw, 54px); }
h3 { margin-bottom: 6px; font-size: 22px; }
.hero-text, .section-heading p, .parents p { max-width: 610px; color: #335c79; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin: 30px 0 35px; }
.hero-activities { grid-area: activities; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; min-width: 0; padding-bottom: 80px; }
.hero-card { display: block; text-decoration: none; overflow: hidden; min-width: 0; border: 5px solid rgba(255, 255, 255, 0.85); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.hero-balloons { grid-area: balloons; position: relative; height: 220px; margin-bottom: 36px; pointer-events: none; }
.hero-animal { position: absolute; filter: drop-shadow(0 12px 16px rgba(52, 132, 183, 0.16)); }
.hero-animal-wolf { width: 160px; left: 9%; top: 60px; transform: rotate(-8deg); }
.hero-animal-cow { width: 160px; right: 10%; top: 16px; transform: rotate(8deg); }
.hero-animal-cat { width: 220px; left: calc(50% - 110px); top: 0; transform: rotate(-2deg); }
.hero-learning { position: relative; min-width: 0; transform: rotate(1deg); }
.hero-learning .hero-card-copy { padding-right: 40%; }
.hero-card-copy { padding: 16px 12px; }
.hero-card-title { display: block; color: var(--text-strong); font-size: 17px; font-weight: 800; line-height: 1.35; text-decoration: none; }
.hero-card-title > span { white-space: nowrap; }
.hero-card-title:hover { color: var(--primary-dark); }
.hero-puzzle { position: absolute; right: -6px; bottom: -62px; width: 212px; overflow: hidden; border: 6px solid #fff; border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-decoration: none; transform: rotate(4deg); transition: transform 180ms ease; }
.hero-puzzle:hover { transform: rotate(0deg) translateY(-4px); }
.hero-puzzle > span { display: block; padding: 12px 8px 6px; color: var(--text-strong); font-size: 15px; line-height: 1.35; font-weight: 800; }
.hero-puzzle > span > span { float: right; }
.cloud { pointer-events: none; opacity: 0.82; }
.cloud-hero-left { position: absolute; top: 36px; left: -3%; width: 200px; opacity: 0.55; }
.cloud-hero-top { position: absolute; top: 80px; right: -3%; width: 220px; opacity: 0.55; }

.section { padding-block: var(--section-space); }
.eyebrow {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.mini-games { background: var(--surface); }
.mini-games .section-heading { max-width: 720px; }
.section-heading .eyebrow { color: var(--primary-dark); font-size: 13px; }
/* Without JS, every panel remains readable. Controls appear only after binding. */
.gallery-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.gallery-worlds .gallery-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-choices[hidden], .gallery-panel[hidden] { display: none; }
.gallery-choice { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 6px; border: 2px solid transparent; border-radius: 20px; background: var(--sky-soft); color: var(--text-strong); font: inherit; font-weight: 750; cursor: pointer; }
.gallery-choice picture { display: block; overflow: hidden; border-radius: 13px; }
.gallery-choice img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
/* Two text lines plus padding; longer labels may grow without clipping. */
.gallery-choice span { display: block; box-sizing: content-box; min-height: 2.7em; padding: 10px 2px 6px; line-height: 1.35; }
.gallery-choice:hover { background: var(--primary-soft); }
.gallery-choice[aria-pressed="true"] { border-color: var(--primary-dark); background: var(--primary-soft); }
.gallery-choice:focus-visible { outline: 3px solid var(--text-strong); outline-offset: 3px; }
.gallery-stage { display: grid; gap: 40px; }
.gallery-panel { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr); align-items: center; gap: 0; min-width: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--sky-soft); }
.gallery-art { min-width: 0; }
.gallery-art > .game-preview img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.gallery-copy { padding: 32px 40px; }
.world-illustration { position: relative; aspect-ratio: 3 / 2; isolation: isolate; }
.world-landscape img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.world-animal { position: absolute; width: 32%; filter: drop-shadow(0 14px 12px rgba(23, 53, 83, 0.15)); }
.world-animal-1 { left: 15%; top: 14%; transform: rotate(-9deg); }
.world-animal-2 { right: 12%; bottom: 10%; transform: rotate(8deg); }
.gallery-copy h3 { margin: 0 0 16px; font-size: clamp(28px, 2.7vw, 36px); }
.gallery-copy p { margin: 0; color: var(--text-muted); font-size: 18px; }
.gallery-copy .game-detail { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--sky-bottom); font-size: 16px; }
@media (max-width: 900px) {
  .gallery-panel { grid-template-columns: 1fr; }
  .gallery-copy { padding: 28px; }
}
@media (max-width: 600px) {
  .gallery-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
  .gallery-worlds .gallery-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-choice { padding: 4px; border-radius: 15px; font-size: 14px; }
  .gallery-choice span { padding: 7px 0 3px; }
  .gallery-copy { padding: 24px; }
  .gallery-copy p { font-size: 17px; }
  .gallery-copy .game-detail { font-size: 15px; }
}
.game-notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 60px 0 40px;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.game-notes li { display: flex; align-items: center; gap: 10px; }
.game-notes li::before { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--sky-top); content: ""; }
.mini-games-hub { padding: 30px 36px; border-radius: var(--radius-md); background: var(--sky-soft); }
.mini-games-hub h3 { font-size: 29px; }
.mini-games-hub p { max-width: 820px; margin: 16px 0; color: var(--text-muted); }
.mini-games-hub .text-link { font-size: 15px; }
.worlds { position: relative; z-index: 2; background: #fff; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.parents { background: var(--sky-soft); }
.parent-panel {
  display: grid;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d8f2ff, #fff 74%);
  box-shadow: var(--shadow);
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
}
.parent-proof { display: grid; align-content: center; gap: 14px; }
.parent-proof span {
  padding: 16px 20px;
  border: 1.5px solid var(--surface-stroke);
  border-radius: 999px;
  background: var(--surface-glass);
  color: #32617d;
  font-weight: 800;
  text-align: center;
}

.site-footer { padding: 48px 0 34px; background: var(--sky-soft); }
.footer-inner { flex-wrap: wrap; gap: 22px 30px; }
.site-footer nav { flex-wrap: wrap; gap: 15px 22px; margin-left: auto; }
.site-footer small { width: 100%; color: var(--text-muted); font-size: 13px; }

.inner-page { background: linear-gradient(180deg, var(--sky-top), var(--sky-soft) 360px); }
.inner-main { position: relative; overflow: hidden; padding: 72px 0 30px; }
.inner-cloud-left, .inner-cloud-right { position: absolute; width: 280px; opacity: 0.56; }
.inner-cloud-left { top: 58px; left: -50px; }
.inner-cloud-right { top: 190px; right: -48px; }
.article-card {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 56px 64px 92px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}
.article-card h1 { margin-bottom: 6px; font-size: clamp(38px, 5vw, 60px); }
.article-card h2 { margin-top: 38px; font-size: 25px; letter-spacing: -0.02em; }
.article-card p { max-width: 700px; }
.article-card ul { max-width: 700px; padding-left: 22px; }
.article-card li + li { margin-top: 8px; }
.updated { color: var(--text-muted); font-size: 14px; }
.lead { margin: 27px 0 36px; color: #32617d; font-size: 21px; font-weight: 700; }
.article-card a { color: var(--primary-dark); font-weight: 800; }
.article-character { position: absolute; right: 22px; bottom: -28px; width: 136px; }
.article-character img { width: 100%; }
.support-card { padding-bottom: 120px; }
.support-card > .button { margin-bottom: 14px; color: #fff; }
.faq { margin-top: 46px; }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { padding: 18px 4px; color: var(--text-strong); cursor: pointer; font-weight: 800; }
details p { padding: 0 4px 16px; color: var(--text-muted); }
.support-download { margin-top: 38px; }
.support-download h2 { margin-bottom: 8px; }
.support-character { width: 156px; }
.compact-footer { padding-top: 30px; }
.compact-footer nav { margin-left: 0; }

@keyframes float { 50% { transform: translateY(-14px) rotate(1deg); } }
.float-slow { animation: float 5.6s ease-in-out infinite; }
.float-medium { animation: float 4.8s ease-in-out -1.1s infinite; }
.float-fast { animation: float 4.2s ease-in-out -2.1s infinite; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; grid-template-areas: "balloons" "copy" "activities" "conversion"; gap: 0; padding-block: 64px 80px; }
  .hero-copy { max-width: 680px; }
  .hero-conversion { justify-self: center; margin-block: 28px 16px; }
  .hero-conversion .hero-actions { margin: 0; }
  .hero-activities { width: 100%; max-width: 620px; margin: 24px auto 0; padding-bottom: 80px; }
  .parent-panel { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --section-space: 40px; }
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand { font-size: 14px; }
  .brand img { width: 40px; height: 40px; border-radius: 12px; }
  .header-actions { gap: 9px; margin-left: auto; }
  .main-nav + .header-actions { margin-left: auto; }
  .language-button { width: 34px; height: 34px; font-size: 18px; }
  .back-link { font-size: 13px; }
  .hero-grid { padding-block: 24px 64px; }
  .hero-balloons { height: clamp(150px, 40vw, 260px); margin-bottom: 28px; }
  .hero-animal-wolf { width: 27%; left: 0; top: 50px; }
  .hero-animal-cow { width: 27%; right: 0; top: 14px; }
  .hero-animal-cat { width: 39%; left: 31%; top: 0; }
  .hero-activities { width: calc(100% - 12px); gap: 12px; margin: 20px auto 6px; padding-bottom: 74px; }
  .hero-card { width: 100%; border-width: 4px; border-radius: 22px; }
  .hero-learning { width: 100%; }
  .hero-card-copy { padding: 12px; }
  .hero-card-title { font-size: 16px; }
  .hero-puzzle { width: 148px; right: -3px; bottom: -58px; border-width: 4px; border-radius: 18px; }
  .hero-puzzle > span { padding: 9px 5px 5px; font-size: 13px; }
  h1 { font-size: clamp(34px, 10.6vw, 59px); }
  .hero h1 { font-size: clamp(34px, 9.5vw, 59px); }
  h2 { font-size: clamp(31px, 9vw, 42px); }
  .hero-text, .section-heading p, .parents p { font-size: 17px; }
  .cloud-hero-left { top: 24px; left: -12%; width: 150px; }
  .cloud-hero-top { top: 70px; right: -12%; width: 150px; }
  .section-heading { margin-bottom: 28px; }
  .game-notes { justify-content: flex-start; gap: 12px; margin: 36px 0 28px; flex-direction: column; }
  .mini-games-hub { padding: 24px 22px; gap: 24px; }
  .mini-games-hub h3 { font-size: 26px; }
  .parent-panel { padding: 28px 22px; border-radius: var(--radius-md); gap: 28px; }
  .site-footer { padding: 36px 0 26px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .site-footer nav { margin-left: 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .inner-main { padding-top: 42px; }
  .article-card { padding: 30px 22px 96px; border-radius: var(--radius-md); }
  .article-card h1 { font-size: 38px; overflow-wrap: anywhere; }
  .article-card h2 { margin-top: 30px; font-size: 22px; }
  .lead { margin-bottom: 28px; font-size: 18px; }
  .article-character { right: 12px; width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
