:root {
  --bg: #fff6eb;
  --ink: #1f2a37;
  --muted: #5d6b7a;
  --coral: #e36b4c;
  --teal: #2a9d8f;
  --sun: #f4c56e;
  --card: #fffdf8;
  --line: rgba(31, 42, 55, 0.08);
  --shadow: 0 16px 40px rgba(31, 42, 55, 0.08);
  --radius: 22px;
  --font: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 10% -10%, #ffe3c6 0, transparent 32%),
    radial-gradient(circle at 90% 0%, #d8f3ee 0, transparent 28%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: 1.6rem; }
code { background: #fff; padding: 0.1rem 0.4rem; border-radius: 8px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(640px, calc(100% - 32px)); }
.section { padding: 48px 0; }
.section__lead, .lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.section__head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 800; color: var(--coral); margin-bottom: 8px; }
.muted { color: var(--muted); }
.tag { color: var(--muted); font-size: 0.92rem; font-weight: 700; }

.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); background: rgba(255, 246, 235, 0.86); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.brand__mark { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--ink); font-weight: 700; }
.nav__logout { margin: 0; }
.nav__logout button, .burger {
  border: 0; background: transparent; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink);
}
.burger { display: none; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 0.85rem 1.3rem;
  background: var(--coral); color: #fff; font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(227, 107, 76, 0.28);
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn--ghost, button.btn--ghost { background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover, button.btn--ghost:hover { color: var(--coral); }
.btn--small { padding: 0.55rem 0.95rem; font-size: 0.95rem; }
.hero { padding: 56px 0 20px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero__card, .panel, .card, .stat, .flash {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__card, .panel, .card { padding: 24px; }
.hero__card-kicker { font-weight: 800; margin-top: 0; }
.checklist { padding-left: 1.1rem; }
.checklist li { margin-bottom: 0.55rem; }

.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card__emoji { font-size: 2rem; }
.card--link { color: inherit; display: block; transition: transform 0.15s ease; }
.card--link:hover { transform: translateY(-3px); color: inherit; }

.band { background: rgba(255, 255, 255, 0.45); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  --chip: var(--teal);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
}
.chip.is-active { background: var(--chip); color: #fff; }

.form label { display: block; margin-bottom: 14px; font-weight: 700; }
.input, .select, .textarea, input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.textarea, textarea { min-height: 96px; resize: vertical; }
.errorlist { color: var(--coral); list-style: none; padding: 0; font-size: 0.92rem; }
.hint, .hint-box { background: #fff7df; border-radius: 16px; padding: 12px 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 18px; }
.stat__label { margin: 0; color: var(--muted); font-weight: 700; }
.stat__value { margin: 6px 0 0; font-size: 2rem; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list a { color: inherit; display: flex; flex-direction: column; }
.row-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.big-date { font-size: 1.4rem; font-weight: 800; }

.switcher { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.4rem 0.8rem; font: inherit; font-weight: 800; cursor: pointer;
}
.pill.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.calendar__head { font-weight: 800; color: var(--muted); text-align: center; }
.calendar__day {
  min-height: 110px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid var(--line);
}
.calendar__day.is-empty { background: transparent; border: 0; }
.calendar__day.is-today { outline: 2px solid var(--teal); }
.calendar__num { font-weight: 800; display: block; margin-bottom: 6px; }
.cal-event {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  background: #e8f6f3;
  color: var(--ink);
  border-radius: 10px;
  padding: 4px 6px;
  margin-bottom: 4px;
}
.cal-event--canceled { background: #f3e8e8; text-decoration: line-through; }
.cal-event--done { background: #eef6d8; }
.cal-nav { display: flex; gap: 16px; margin-bottom: 16px; font-weight: 800; }

.exercise { margin-top: 18px; }
.exercise__prompt { font-size: 1.3rem; font-weight: 800; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.option, .token {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.option.is-on, .token.is-on { border-color: var(--teal); background: #e8f6f3; }
.option .emoji, .hold-card .emoji { font-size: 2rem; display: block; margin-bottom: 6px; }
.hold-card, .result {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.timer { font-size: 3rem; font-weight: 800; color: var(--coral); }
.result { margin-top: 16px; }
.stars { font-size: 2rem; letter-spacing: 0.2rem; }

.article { padding-top: 48px; }
.prose p { font-size: 1.08rem; }
.foot { padding: 32px 0 48px; color: var(--muted); }
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; }

/* ===== Игра «Ну, погоди!» (Электроника ИМ-02) ===== */
.is-hidden { display: none !important; }
.catch-heroes, .catch-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 12px 0 6px;
}
.catch-hero-card, .catch-level {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  display: grid;
  gap: 2px;
}
.catch-level:disabled { opacity: 0.45; cursor: default; }
.catch-hero-card.is-active, .catch-level.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 28%, transparent);
}
.catch-hero-card__emoji { display: block; font-size: 2rem; margin-bottom: 2px; }
.catch-level .muted { font-size: 0.8rem; font-weight: 700; }
.catch-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gw-settings { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 22px; }
.gw-settings h2 { font-size: 1.05rem; margin: 0 0 6px; }
.gw-settings h2 + .catch-levels { margin-top: 8px; }
.catch-keys { margin-top: 14px; }
.catch-keys kbd {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
  font-weight: 800;
}

/* корпус */
.gw {
  --body: #e7d7b5;
  --body-dark: #c9b48a;
  --bezel: #3b2b22;
  --btn: #8b2f24;
  --lcd-bg: #b7bfa3;
  --lcd: #1c211c;
  max-width: 840px;
  margin: 24px auto 0;
  background: linear-gradient(180deg, #f1e4c8, var(--body) 30%, var(--body-dark));
  border-radius: 30px;
  padding: 16px 18px 14px;
  box-shadow: 0 24px 50px rgba(60, 40, 20, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(60, 40, 20, 0.25);
  user-select: none;
}
.gw__top, .gw__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4a3a2c;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.gw__bottom { margin-top: 10px; }
.gw__brand { font-family: "Arial Black", Impact, sans-serif; letter-spacing: 0.18em; font-size: 0.95rem; }
.gw__title { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0.02em; font-size: 1.05rem; color: var(--btn); }
.gw__modes { display: flex; gap: 6px; }
.gw__mode {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #5d4a3d, #3b2b22);
  color: #f6ecd8;
  font: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.gw__mode:active, .gw__mode.is-active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); background: var(--btn); }
.gw__mode--small { padding: 4px 8px; }
.gw__body {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.gw__side { display: grid; gap: 42px; justify-items: center; }
.gw__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 35% 30%, #c4483a, var(--btn) 60%, #5a1c14);
  color: rgba(255, 240, 220, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 5px 0 #4a160f, 0 8px 14px rgba(0, 0, 0, 0.35);
  touch-action: manipulation;
}
.gw__btn:active, .gw__btn.is-active { transform: translateY(4px); box-shadow: 0 1px 0 #4a160f, 0 3px 8px rgba(0, 0, 0, 0.3); }

/* экран */
.gw__screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 5 / 3;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--lcd-bg);
  border: 10px solid var(--bezel);
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25), inset 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  color: var(--lcd);
}
.gw__screen > * { position: absolute; }
.gw__screen .lcd-hen, .gw__screen .lcd-hare, .gw__screen .lcd-wolf__face, .gw__screen .lcd-wolf__basket,
.gw__screen .lcd-broken, .gw__screen .lcd-runner, .gw__screen .lcd-chick {
  filter: grayscale(1) brightness(0.35) contrast(1.8);
}
.lcd-hen {
  font-size: 8cqw;
  line-height: 1;
  transform: translate(-50%, -50%);
}
.lcd-hen--lu { left: 6%; top: 28%; transform: translate(-50%, -50%) scaleX(-1); }
.lcd-hen--ld { left: 6%; top: 59%; transform: translate(-50%, -50%) scaleX(-1); }
.lcd-hen--ru { left: 94%; top: 28%; }
.lcd-hen--rd { left: 94%; top: 59%; }
.lcd-chute {
  width: 29.5%;
  height: 1.3cqw;
  background: var(--lcd);
  border-radius: 999px;
  opacity: 0.9;
}
.lcd-chute--lu { left: 10.5%; top: 37.5%; transform-origin: left center; transform: rotate(20.7deg); }
.lcd-chute--ld { left: 10.5%; top: 69.5%; transform-origin: left center; transform: rotate(20.7deg); }
.lcd-chute--ru { left: 60%; top: 37.5%; transform-origin: right center; transform: rotate(-20.7deg); }
.lcd-chute--rd { left: 60%; top: 69.5%; transform-origin: right center; transform: rotate(-20.7deg); }
.lcd-chute::after {
  content: "";
  position: absolute;
  right: -0.6cqw;
  top: -2.2cqw;
  width: 1.3cqw;
  height: 3.4cqw;
  background: inherit;
  border-radius: 999px;
}
.lcd-chute--ru::after, .lcd-chute--rd::after { right: auto; left: -0.6cqw; }

#eggs { inset: 0; }
.lcd-egg {
  position: absolute;
  width: 7cqw;
  height: 8.2cqw;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: var(--lcd);
  color: var(--lcd-bg);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 2.9cqw;
  letter-spacing: 0.02em;
  opacity: 0.07;
  pointer-events: none;
}
.lcd-egg.is-on { opacity: 1; }
.lcd-egg[data-slot="5"] { opacity: 0; }
.lcd-egg[data-slot="5"].is-on { opacity: 1; }

.lcd-wolf {
  left: 50%;
  top: 64%;
  width: 26cqw;
  height: 30cqw;
  transform: translate(-50%, -50%);
}
.lcd-wolf__face {
  position: absolute;
  left: 50%;
  top: 40%;
  font-size: 15cqw;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
}
.lcd-wolf[data-pos^="l"] .lcd-wolf__face { transform: translate(-50%, -50%) scaleX(-1); }
.lcd-wolf__basket {
  position: absolute;
  font-size: 7cqw;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease, top 0.08s ease;
}
.lcd-wolf[data-pos="lu"] .lcd-wolf__basket { left: 10%; top: 35%; }
.lcd-wolf[data-pos="ld"] .lcd-wolf__basket { left: 10%; top: 96%; }
.lcd-wolf[data-pos="ru"] .lcd-wolf__basket { left: 90%; top: 35%; }
.lcd-wolf[data-pos="rd"] .lcd-wolf__basket { left: 90%; top: 96%; }

.lcd-broken { font-size: 7cqw; line-height: 1; top: 91%; transform: translate(-50%, -50%); opacity: 0.06; }
.lcd-broken--left { left: 33%; }
.lcd-broken--right { left: 67%; }
.lcd-broken.is-on { opacity: 1; }
.lcd-runner { left: 40%; top: 91%; font-size: 5cqw; line-height: 1; opacity: 0; transform: translate(-50%, -50%); }
.lcd-runner.is-on { opacity: 1; animation: lcd-run 1.2s steps(6) forwards; }
@keyframes lcd-run { to { left: 62%; } }

/* домик с Зайцем */
.lcd-house { left: 2.5%; top: 3%; width: 13cqw; height: 12cqw; }
.lcd-house::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-left: 7cqw solid transparent;
  border-right: 7cqw solid transparent;
  border-bottom: 4cqw solid var(--lcd);
}
.lcd-window {
  position: absolute;
  left: 50%;
  top: 4.4cqw;
  transform: translateX(-50%);
  width: 8cqw;
  height: 7.4cqw;
  border: 0.8cqw solid var(--lcd);
  border-radius: 1cqw 1cqw 0 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lcd-hare { font-size: 5.2cqw; line-height: 1; opacity: 0.06; transform: translateY(0.4cqw); }
.lcd-hare.is-on { opacity: 1; }

/* счёт и штрафы */
.lcd-score {
  right: 3%;
  top: 4%;
  display: grid;
  font-family: "Courier New", Consolas, monospace;
  font-weight: 700;
  font-size: 6.5cqw;
  line-height: 1;
  letter-spacing: 0.06em;
}
.lcd-digits { grid-area: 1 / 1; text-align: right; }
.lcd-digits--ghost { opacity: 0.08; }
.lcd-misses { right: 3.5%; top: 15%; display: flex; gap: 0.8cqw; }
.lcd-chick { font-size: 4.2cqw; line-height: 1; opacity: 0.06; }
.lcd-chick.is-on { opacity: 1; }
.lcd-chick.is-blink { animation: lcd-blink 0.6s steps(1) infinite; }
@keyframes lcd-blink { 50% { opacity: 0.06; } }

/* слово */
.lcd-word {
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  white-space: nowrap;
}
.lcd-word__label { font-weight: 900; font-size: 3.2cqw; letter-spacing: 0.12em; margin-right: 1cqw; opacity: 0.55; }
.lcd-slot {
  min-width: 5cqw;
  padding: 0.4cqw 0.9cqw;
  border: 0.5cqw solid var(--lcd);
  border-radius: 1cqw;
  font-weight: 900;
  font-size: 3.4cqw;
  line-height: 1.1;
  text-align: center;
  opacity: 0.35;
}
.lcd-slot.is-done { background: var(--lcd); color: var(--lcd-bg); opacity: 1; }
.lcd-slot.is-next { opacity: 1; animation: lcd-blink 0.9s steps(1) infinite; }

/* подсказки */
.lcd-hint {
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  font-size: 2.6cqw;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(28, 33, 28, 0.85);
  color: var(--lcd-bg);
  padding: 0.6cqw 1.6cqw;
  border-radius: 999px;
  opacity: 0;
  white-space: nowrap;
  max-width: 94%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lcd-hint.is-on { opacity: 1; }
.lcd-flash {
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  font-size: 4.2cqw;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--lcd);
  color: var(--lcd-bg);
  padding: 0.8cqw 2cqw;
  border-radius: 1.2cqw;
  opacity: 0;
  white-space: nowrap;
}
.lcd-flash.is-on { opacity: 1; animation: lcd-pop 0.9s steps(3) forwards; }
@keyframes lcd-pop { 0%, 66% { opacity: 1; } 100% { opacity: 0; } }

/* ===== свои слова / кабинет ===== */
.custom-words { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.custom-words summary { font-weight: 800; cursor: pointer; }
.custom-words textarea { margin-top: 8px; }
.custom-words__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.custom-words code { background: #fff7df; padding: 1px 6px; border-radius: 6px; }
.words-list__item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.words-list__item > div:first-child { display: grid; gap: 2px; }
.words-list__item.is-off strong { opacity: 0.45; text-decoration: line-through; }
.words-list__actions { display: flex; gap: 6px; }
.pill--danger { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 40%, transparent); }
.kid-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

/* ===== детский скин ===== */
.kid {
  --lcd: #7a4b2a;      /* цвет лотков, крыши, рамок */
  --lcd-bg: #ffffff;   /* цвет текста на плашках */
  max-width: 900px;
  margin: 20px auto 0;
  background: #fff;
  border-radius: 30px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  user-select: none;
}
.kid__top { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.kid-word-wrap { display: grid; gap: 4px; }
.kid-word-wrap__label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kid .lcd-word { position: static; transform: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal; }
.kid .lcd-word__label { font-size: 1.15rem; letter-spacing: 0.1em; opacity: 1; color: var(--ink); margin-right: 6px; }
.kid .lcd-slot {
  min-width: 52px;
  padding: 6px 12px;
  border: 3px dashed #cbd5e1;
  border-radius: 14px;
  font-size: 1.25rem;
  color: #94a3b8;
  opacity: 1;
  background: #f8fafc;
}
.kid .lcd-slot.is-done { background: var(--teal); border-color: var(--teal); border-style: solid; color: #fff; }
.kid .lcd-slot.is-next { border-color: var(--coral); border-style: solid; color: var(--coral); background: #fff1ec; animation: kid-pulse 0.9s ease-in-out infinite; }
@keyframes kid-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--coral) 20%, transparent); } }
.kid__stats { display: flex; gap: 14px; align-items: center; }
.kid-score {
  display: flex; align-items: center; gap: 6px;
  background: #fff7df; border-radius: 999px; padding: 8px 16px;
  font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums;
}
.kid-score__egg { font-size: 1.3rem; }
.kid-lives { display: flex; gap: 4px; background: #fff1ec; border-radius: 999px; padding: 8px 14px; }
.kid .lcd-chick { font-size: 1.4rem; opacity: 1; filter: none; transition: 0.2s ease; }
.kid .lcd-chick.is-on { filter: grayscale(1); opacity: 0.25; transform: scale(0.85); }
.kid .lcd-chick.is-blink { animation: kid-heart-blink 0.6s steps(1) infinite; }
@keyframes kid-heart-blink { 50% { opacity: 0.9; filter: none; } }

.kid-stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 5 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe6ff 0%, #e6f6ff 55%, #cdeaa4 56%, #a8d977 100%);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #dbeafe;
  touch-action: manipulation;
  cursor: pointer;
}
.kid-stage > * { position: absolute; }
.kid-sun {
  left: 50%; top: 4%; width: 12cqw; height: 12cqw; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, #ffe680, #ffc72c 70%);
  box-shadow: 0 0 30px 10px rgba(255, 199, 44, 0.35); z-index: 0;
}
.kid-cloud { top: 8%; width: 14cqw; height: 5cqw; background: #fff; border-radius: 999px; opacity: 0.9; z-index: 0; }
.kid-cloud::before { content: ""; position: absolute; left: 25%; top: -55%; width: 55%; height: 130%; background: #fff; border-radius: 50%; }
.kid-cloud--1 { left: 24%; }
.kid-cloud--2 { left: 62%; top: 12%; width: 11cqw; }
.kid-grass { left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(180deg, transparent, rgba(80, 140, 40, 0.15)); z-index: 0; }

.kid-stage .lcd-hen { font-size: 8.5cqw; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2)); }
.kid-stage .lcd-chute { background: linear-gradient(180deg, #b07b4f, #7a4b2a); height: 1.6cqw; opacity: 1; z-index: 1; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
.kid-stage .lcd-chute::after { background: #7a4b2a; }
.kid-stage #eggs { z-index: 2; }
.kid-stage .lcd-egg {
  width: 6.8cqw; height: 8cqw;
  background: radial-gradient(circle at 35% 30%, #ffffff, #f3ebdd 70%, #e2d3bd);
  color: #1f2a37;
  font-size: 2.6cqw;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: left 0.12s linear, top 0.12s linear;
}
.kid-stage .lcd-egg.is-on { opacity: 1; }
.kid-stage .lcd-egg.is-needed { box-shadow: 0 0 0 0.6cqw #ffc72c, 0 3px 8px rgba(0, 0, 0, 0.2); }
.kid-stage .lcd-wolf { z-index: 3; }
.kid-stage .lcd-wolf__face { font-size: 16cqw; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); }
.kid-stage .lcd-wolf__basket { font-size: 7.5cqw; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); }
.kid-stage .lcd-broken { opacity: 0; z-index: 2; transition: opacity 0.1s; }
.kid-stage .lcd-broken.is-on { opacity: 1; }
.kid-stage .lcd-runner { z-index: 2; }
.kid-house { left: 2.5%; top: 3%; width: 14cqw; height: 13cqw; z-index: 1; }
.kid-house::before { border-bottom-color: #c0392b; }
.kid-window { background: #e0f2fe; border-color: #7a4b2a; border-radius: 1.4cqw 1.4cqw 0 0; }
.kid-stage .lcd-hare { opacity: 0; transform: translateY(100%); transition: 0.25s ease; }
.kid-stage .lcd-hare.is-on { opacity: 1; transform: translateY(0.4cqw); }
.kid-stage .lcd-hint { display: none; }
.kid-stage .lcd-flash {
  z-index: 6;
  font-size: 5cqw;
  padding: 1.2cqw 3cqw;
  border-radius: 999px;
  background: #fff;
  color: var(--coral);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.06em;
}
.kid-stage .lcd-flash.is-on { animation: kid-flash 0.9s ease forwards; }
@keyframes kid-flash {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

.kid { position: relative; z-index: 1; }
.kid-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
  padding: 16px;
  border-radius: 30px;
  overflow: auto;
  cursor: default;
}
.kid-overlay__card {
  background: #fff;
  border-radius: 24px;
  padding: 20px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(31, 42, 55, 0.2);
  text-align: center;
}
.kid-overlay__card h2 { margin: 0 0 12px; font-size: 1.5rem; }
.kid-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; text-align: left; }
.kid-steps li { display: flex; gap: 12px; align-items: center; font-weight: 700; line-height: 1.3; }
.kid-steps__icon { font-size: 1.8rem; flex: 0 0 auto; }
.kid-overlay__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kid-start { font-size: 1.05rem; }
.kid-result-stars { font-size: 2.6rem; letter-spacing: 0.1em; }
.kid-result-text { font-weight: 800; font-size: 1.1rem; }

.kid-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 14px;
  align-items: center;
  margin-top: 14px;
}
.kid-controls__mid { grid-area: 1 / 2; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.kid-controls__tip { grid-area: 2 / 2; margin: 0; text-align: center; font-size: 0.85rem; }
.kid-btn--lu { grid-area: 1 / 1; }
.kid-btn--ru { grid-area: 1 / 3; }
.kid-btn--ld { grid-area: 2 / 1; }
.kid-btn--rd { grid-area: 2 / 3; }
.kid-btn {
  --kb: #ffb703;
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: var(--kb);
  color: #1f2a37;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--kb) 70%, #000), 0 10px 18px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-auto-flow: column;
  place-items: center;
  gap: 2px;
  font-size: 1.5rem;
}
.kid-btn b { font-size: 1.7rem; }
.kid-btn:active, .kid-btn.is-active { transform: translateY(5px); box-shadow: 0 1px 0 color-mix(in srgb, var(--kb) 70%, #000), 0 4px 10px rgba(0, 0, 0, 0.15); }
.kid-btn--lu { --kb: #ffb703; }
.kid-btn--ru { --kb: #8ecae6; }
.kid-btn--ld { --kb: #b5e48c; }
.kid-btn--rd { --kb: #f4978e; }
.kid-mini {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .kid { padding: 10px; border-radius: 22px; }
  .kid__top { gap: 8px; }
  .kid .lcd-word__label { font-size: 1rem; }
  .kid .lcd-slot { min-width: 44px; font-size: 1.05rem; padding: 4px 10px; }
  .kid-score { font-size: 1.15rem; padding: 6px 12px; }
  .kid-btn { width: 68px; height: 68px; font-size: 1.2rem; border-radius: 20px; }
  .kid-btn b { font-size: 1.4rem; }
  .kid-controls { gap: 8px; }
  .kid-controls__tip { font-size: 0.72rem; }
  .kid-mini { padding: 6px 10px; font-size: 0.85rem; }
  .kid-overlay__card { padding: 14px; border-radius: 18px; }
  .kid-overlay__card h2 { font-size: 1.15rem; margin-bottom: 8px; }
  .kid-steps { gap: 6px; font-size: 0.85rem; }
  .kid-steps__icon { font-size: 1.3rem; }
  .kid-result-stars { font-size: 2rem; }
  .gw { padding: 12px; border-radius: 22px; }
  .gw__body { grid-template-columns: 46px 1fr 46px; gap: 6px; }
  .gw__btn { width: 42px; height: 42px; font-size: 0.9rem; }
  .gw__side { gap: 26px; }
  .gw__top { flex-wrap: wrap; }
  .gw__title { order: 3; width: 100%; }
  .gw-settings { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero__grid, .cards--3, .split, .stats { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .calendar { gap: 4px; }
  .calendar__head { font-size: 0.72rem; }
  .calendar__day { min-height: 72px; padding: 4px; border-radius: 10px; }
  .cal-event { font-size: 0.62rem; }
}
