/* ==========================================================================
   «Тропинка Фокси» (portal/path.js): тропинка тем, огоньки недели, сундуки,
   награды, блок «Занятия дома» для родителей. Стиль — стикеры brand.css.
   ========================================================================== */

/* ---------------------------------------------------- шапка портала: узко */
/* В меню стало 4 пункта: на планшете прячем надпись логотипа, на телефоне — иконка над подписью */
@media (max-width: 920px) { .pt-top .logo span { display: none; } }
@media (max-width: 700px) {
  .pt-top .logo img { width: 36px; height: 36px; }
  .pt-nav { gap: 2px; }
  .pt-nav a { flex-direction: column; justify-content: center; gap: 0; padding: 4px 7px; min-width: 48px; font-size: 12px; line-height: 1.15; }
  .pt-nav .nav-emo { font-size: 20px; line-height: 1.1; }
  .pt-mute { width: 44px; height: 48px; }
}
@media (max-width: 380px) {
  .pt-top-in { padding-left: 8px; padding-right: 8px; gap: 4px; }
  .pt-nav a { padding: 4px 4px; font-size: 11.5px; }
}
@media (max-width: 350px) {
  .pt-top .logo img { width: 32px; height: 32px; }
  .pt-nav a { padding: 4px 3px; font-size: 11px; min-width: 0; }
}

/* ------------------------------------------------------------------ Фокси */
.fx-fox { position: relative; display: block; width: var(--fs, 92px); height: var(--fs, 92px); flex: none; }
.fx-fox-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.fx-wear {
  position: absolute; z-index: 2; font-family: var(--emoji); line-height: 1; pointer-events: none; font-style: normal;
  font-size: calc(var(--fs, 92px) * .4); filter: drop-shadow(0 2px 0 rgba(30, 27, 58, .25));
}
.fx-w-top { top: calc(var(--fs, 92px) * -.2); left: 50%; transform: translateX(-50%) rotate(-7deg); font-size: calc(var(--fs, 92px) * .44); }
.fx-w-eyes { top: calc(var(--fs, 92px) * .25); left: 50%; transform: translateX(-50%); font-size: calc(var(--fs, 92px) * .58); }
.fx-w-ear { top: calc(var(--fs, 92px) * -.02); left: 64%; transform: rotate(14deg); font-size: calc(var(--fs, 92px) * .3); }
.fx-w-ear2 { top: calc(var(--fs, 92px) * 0); left: 6%; transform: rotate(-14deg); font-size: calc(var(--fs, 92px) * .28); }
.fx-w-neck { bottom: calc(var(--fs, 92px) * -.14); left: 50%; transform: translateX(-50%); font-size: calc(var(--fs, 92px) * .4); }
.fx-w-hand { bottom: calc(var(--fs, 92px) * -.02); right: calc(var(--fs, 92px) * -.2); transform: rotate(-12deg); font-size: calc(var(--fs, 92px) * .42); }
.fx-w-back { z-index: 0; bottom: calc(var(--fs, 92px) * .02); left: calc(var(--fs, 92px) * -.22); transform: rotate(-45deg); font-size: calc(var(--fs, 92px) * .48); }
.fx-w-sky { z-index: 0; top: calc(var(--fs, 92px) * -.32); left: 50%; transform: translateX(-50%); font-size: calc(var(--fs, 92px) * .95); opacity: .95; }
.fx-w-float { top: calc(var(--fs, 92px) * -.26); right: calc(var(--fs, 92px) * -.18); font-size: calc(var(--fs, 92px) * .4); animation: floaty 4s ease-in-out infinite; }

/* Фокси в шапке кабинета на телефоне меньше (portal.css .cab-hi .fox) — наряд уменьшаем вместе с ним.
   !important нужен, чтобы перебить --fs из атрибута style. */
@media (max-width: 520px) { .cab-hi .fx-fox { --fs: 62px !important; } }
@media (max-width: 420px) { .cab-hi .fx-fox { --fs: 52px !important; } }

/* Фокси спит (20:00–08:00): глазки-дуги и «💤» */
.fx-fox.is-sleep .fx-fox-img { transform: rotate(-7deg); }
.fx-lid {
  position: absolute; z-index: 1; top: 45%; width: 14%; height: 15%;
  background: #FF7A30; border-bottom: max(2px, calc(var(--fs, 92px) * .028)) solid var(--ink);
  border-radius: 0 0 50% 50% / 0 0 100% 100%; transform: rotate(-7deg);
}
.fx-lid-l { left: 29%; }
.fx-lid-r { left: 55%; top: 42%; }
.fx-zzz { position: absolute; z-index: 3; top: calc(var(--fs, 92px) * -.12); right: calc(var(--fs, 92px) * -.12); font-family: var(--emoji); font-size: calc(var(--fs, 92px) * .3); animation: fxZzz 2.6s ease-in-out infinite; }
@keyframes fxZzz { 0%, 100% { transform: translateY(0) scale(1); opacity: .9; } 50% { transform: translateY(-8px) scale(1.12); opacity: 1; } }

/* ---------------------------------------------------------------- макет */
.fx { max-width: 660px; margin: 0 auto; }
.fx-head {
  position: relative; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 18px 16px 16px;
}
.fx-head.is-night { background: linear-gradient(180deg, var(--purple-soft), var(--paper) 70%); }
.fx-moon { position: absolute; top: 12px; right: 14px; font-family: var(--emoji); font-size: 26px; }
.fx-hero { display: flex; align-items: center; gap: 20px; padding: 14px 4px 0 6px; }
.fx-fox-btn { flex: none; padding: 0; margin: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fx-fox-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.fx-say { font-size: 18px; flex: 1 1 auto; }
.fx-say small { font-size: 14px; margin-top: 2px; }

.fx-meters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .fx-meters { grid-template-columns: minmax(0, 1fr) auto; } }

.fx-week { background: var(--orange-soft); border: 2px solid var(--ink); border-radius: 20px; padding: 10px 12px 8px; min-width: 0; }
.fx-week-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 900; }
.fx-week-top b { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.fx-week-goal { font-size: 14px; color: var(--ink-2); font-weight: 800; }
.fx-days { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fx-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.fx-day-i {
  width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-family: var(--emoji); font-size: 19px; line-height: 1;
}
.fx-day.is-on .fx-day-i { background: var(--yellow); animation: bounceIn .5s ease; }
.fx-day.is-today .fx-day-i { box-shadow: 0 0 0 3px var(--orange); }
.fx-day.is-future .fx-day-i { border-style: dashed; border-color: var(--ink-3); background: transparent; }
.fx-day-n { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.fx-day.is-today .fx-day-n { color: var(--ink); font-weight: 900; }
.fx-day-l { position: absolute; top: -7px; right: -3px; font-family: var(--emoji); font-size: 14px; line-height: 1; }

.fx-today { display: flex; align-items: center; gap: 12px; background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 20px; padding: 8px 14px; }
.fx-today-t { display: flex; flex-direction: column; line-height: 1.2; flex: 1 1 auto; min-width: 0; }
.fx-today-t b { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.fx-today-t span { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.fx-stars {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--yellow); font-weight: 900; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.fx-ring { position: relative; width: 64px; height: 64px; flex: none; }
.fx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.fx-ring-bg { fill: var(--paper); stroke: rgba(30, 27, 58, .12); stroke-width: 8; }
.fx-ring-fg { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .7s ease; }
.fx-ring.is-zero .fx-ring-fg { opacity: 0; }
.fx-ring.is-done .fx-ring-fg { stroke: var(--mint); }
.fx-ring-c { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 20px; font-weight: 900; line-height: 1; }
.fx-ring-c b { font-size: 20px; }
.fx-ring-c small { font-size: 12px; color: var(--ink-2); }
.fx-ring-fire { font-family: var(--emoji); font-size: 26px; margin-top: -5px; }

.fx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fx-act { flex: 1 1 auto; min-height: 50px; padding: 10px 16px; font-size: 16px; }

/* Планшет в альбомной ориентации и компьютер: шапка слева «прилипает», тропинка справа */
@media (min-width: 980px) {
  .fx-path { max-width: 1060px; display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .fx-path > .fx-head { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 92px; }
  .fx-path > .fx-trail, .fx-path > .fx-end { grid-column: 2; }
  .fx-path > .fx-trail { margin-top: 0; }
  .fx-path .fx-meters { grid-template-columns: minmax(0, 1fr); }
  .fx-path .fx-actions { flex-direction: column; }
}

/* ------------------------------------------------------------- тропинка */
.fx-trail {
  --amp: min(27vw, 130px);
  list-style: none; margin: 22px 0 0; padding: 0 0 10px; display: flex; flex-direction: column; align-items: stretch;
  position: relative;
}
.fx-unit {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 22px; padding: 12px 14px;
  border: var(--bw) solid var(--ink); border-radius: 22px; background: var(--c); color: var(--ct); box-shadow: var(--shadow);
  flex-wrap: wrap; position: relative; z-index: 1;
}
.fx-unit:first-child { margin-top: 8px; }
.fx-unit-n {
  width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: 18px;
}
.fx-unit-emo { font-family: var(--emoji); font-size: 26px; flex: none; line-height: 1; letter-spacing: 1px; }
.fx-unit-t { flex: 1 1 140px; min-width: 0; margin: 0; font-size: 20px !important; line-height: 1.15; }
.fx-unit-t b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.fx-unit-t small { display: block; font-family: var(--f-body); font-size: 14px; font-weight: 800; opacity: .92; margin-top: 2px; }
.fx-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-flag {
  display: inline-flex; align-items: center; gap: 4px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 900; white-space: nowrap;
}
.fx-flag > span[aria-hidden] { font-family: var(--emoji); }
.fx-flag-ok { padding: 3px 6px; }
.fx-unit.is-later { filter: saturate(.35); opacity: .78; box-shadow: 2px 2px 0 var(--ink); }

.fx-st { position: relative; display: flex; justify-content: center; padding: 6px 0 12px; }
.fx-st.is-cur { padding-top: 50px; }
.fx-st-in {
  position: relative; width: 100px; display: flex; flex-direction: column; align-items: center;
  transform: translateX(calc(var(--x, 0) * var(--amp)));
}
.fx-node {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 3px 6px 0 var(--ink);
  text-decoration: none; font-size: 38px; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.fx-node:hover { transform: translateY(-2px); box-shadow: 3px 8px 0 var(--ink); }
.fx-node:active { transform: translateY(5px); box-shadow: 1px 1px 0 var(--ink); }
.fx-node:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.fx-node-emo { font-family: var(--emoji); line-height: 1; font-style: normal; }
.fx-node.is-done { background: var(--c); }
.fx-node.is-play .fx-node-emo { font-family: var(--f-body); font-weight: 900; font-size: 34px; color: var(--orange); transform: translateX(3px); }
.fx-node.is-play.is-done .fx-node-emo, .fx-st.is-cur .fx-node.is-play .fx-node-emo { color: #fff; }
.fx-st.is-cur .fx-node.is-play { background: var(--orange); }
.fx-crowns { display: flex; gap: 2px; height: 18px; margin-top: 8px; align-items: center; }
.fx-crowns i { width: 9px; height: 9px; border-radius: 50%; background: rgba(30, 27, 58, .16); font-style: normal; }
.fx-crowns i.on { width: auto; height: auto; background: none; font-family: var(--emoji); font-size: 15px; line-height: 1; }
.fx-lbl { font-weight: 900; font-size: 14px; line-height: 1.15; margin-top: 2px; text-align: center; }
.fx-st.is-later .fx-node { filter: saturate(.4); opacity: .72; box-shadow: 2px 4px 0 var(--ink); }
.fx-st.is-later .fx-lbl, .fx-st.is-later .fx-crowns { opacity: .7; }

/* текущая станция: пульс, «Начать!» и Фокси рядом */
.fx-st.is-cur .fx-node { animation: fxPulse 1.8s ease-in-out infinite; }
.fx-quiet .fx-st.is-cur .fx-node { animation: none; }
@keyframes fxPulse {
  0% { box-shadow: 3px 6px 0 var(--ink), 0 0 0 0 rgba(255, 122, 48, .55); transform: scale(1); }
  50% { transform: scale(1.06); }
  70% { box-shadow: 3px 6px 0 var(--ink), 0 0 0 18px rgba(255, 122, 48, 0); }
  100% { box-shadow: 3px 6px 0 var(--ink), 0 0 0 0 rgba(255, 122, 48, 0); transform: scale(1); }
}
.fx-go {
  position: absolute; top: -46px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 14px; padding: 5px 12px;
  font-weight: 900; font-size: 16px; color: var(--orange-2); box-shadow: 2px 2px 0 var(--ink);
  animation: fxBob 1.4s ease-in-out infinite;
}
.fx-go::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -8px; width: 14px; height: 14px; background: var(--paper);
  border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); transform: rotate(45deg); border-bottom-right-radius: 3px;
}
@keyframes fxBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.fx-st-fox { position: absolute; top: 6px; right: calc(100% + 2px); pointer-events: none; }
.fx-st.is-fr .fx-st-fox { right: auto; left: calc(100% + 2px); }
.fx-st-fox .fx-fox { animation: floaty 4s ease-in-out infinite; }

/* сундук */
.fx-chest-btn { background: var(--yellow-soft); border-radius: 26px; font-size: 40px; }
.fx-chest-btn.is-ready { background: var(--yellow); animation: fxGlow 1.6s ease-in-out infinite; }
.fx-chest-btn.is-ready .fx-node-emo { animation: wiggle 1.2s ease-in-out infinite; }
.fx-chest-btn.is-open { background: var(--mint-soft); }
.fx-st:not(.is-later) .fx-chest-btn:not(.is-ready):not(.is-open) .fx-node-emo { filter: saturate(.55); }
.fx-chest-btn.fx-nudge { animation: shake .5s ease; }
@keyframes fxGlow {
  0%, 100% { box-shadow: 3px 6px 0 var(--ink), 0 0 0 4px rgba(255, 201, 60, .5), 0 0 18px 6px rgba(255, 201, 60, .55); }
  50% { box-shadow: 3px 6px 0 var(--ink), 0 0 0 8px rgba(255, 201, 60, .35), 0 0 30px 12px rgba(255, 201, 60, .75); }
}

.fx-end { text-align: center; margin: 20px 0 0; padding: 20px 14px; border: 2px dashed rgba(30, 27, 58, .25); border-radius: 24px; }
.fx-end-flag { font-family: var(--emoji); font-size: 44px; display: block; line-height: 1.1; }
.fx-end p { margin: 6px 0 12px; }
.fx-guest-note { margin: 14px 0 0 !important; }
.fx-guest-note a { color: #1D4FB8; font-weight: 800; }
/* «Для взрослых: Фокси как приложение» — свёрнутая подсказка внизу тропинки */
.fx-inst-mini { margin-top: 10px; }
.fx-inst-d { text-align: left; }
/* сильнее, чем .fx-rules summary ниже: здесь нужен обычный треугольник-раскрывашка по центру */
.fx-inst-mini .fx-inst-d > summary { display: list-item; min-height: 0; padding: 12px 4px; text-align: center; color: var(--ink-2); }
.fx-inst-mini .fx-inst-d[open] > summary { color: var(--ink); }
.fx-inst-d > p, .fx-inst-d > ol { max-width: 460px; margin-left: auto; margin-right: auto; }
.fx-inst-d .btn { display: flex; margin: 6px auto 8px; width: fit-content; }
/* у гостя в этом же блоке — цель дня и недели; подсказка про приложение отделена пунктиром */
.fx-inst-d .fx-set { max-width: 460px; margin: 4px auto 8px; }
.fx-inst-d .fx-inst-p { margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(30, 27, 58, .2); }

/* --------------------------------------------------------- выбор возраста */
.fx-age { text-align: center; }
.fx-age-hero { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 16px 0 24px; flex-wrap: wrap; }
.fx-age-hero .fx-say { flex: 0 1 auto; font-size: 20px; text-align: left; }
.fx-age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin-bottom: 16px; }
.fx-age-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 120px; padding: 14px 8px;
  border: var(--bw) solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.fx-age-btn:nth-child(1) { background: var(--yellow-soft); }
.fx-age-btn:nth-child(2) { background: var(--mint-soft); }
.fx-age-btn:nth-child(3) { background: var(--blue-soft); }
.fx-age-btn:nth-child(4) { background: var(--purple-soft); }
.fx-age-btn:nth-child(5) { background: var(--orange-soft); }
.fx-age-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.fx-age-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.fx-age-emo { font-family: var(--emoji); font-size: 38px; line-height: 1.1; }
.fx-age-btn b { font-family: var(--f-head); font-size: 24px; }
.fx-age-btn small { font-weight: 800; color: var(--ink-2); }

/* ---------------------------------------------------------------- окна */
.fx-back { z-index: 125; }
.fx-modal { position: relative; text-align: center; max-width: 480px; padding: 26px 20px 22px; }
.fx-x {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--paper); font-weight: 900; font-size: 18px; display: grid; place-items: center; z-index: 2;
}
.fx-x:hover { background: var(--cream-2); }
.fx-m-h { font-size: clamp(22px, 5vw, 28px) !important; margin: 6px 0 8px; }
.fx-levels-modal .fx-m-h, .fx-break .fx-m-h { padding: 0 44px; }
.fx-m-foot { display: flex; justify-content: center; margin-top: 16px; }
.fx-modal .fx-fox { margin: 8px auto 4px; }
.fx-break p { font-weight: 700; }

.fx-chest-stage { height: 190px; display: grid; place-items: center; margin-top: 8px; }
.fx-big-chest {
  font-family: var(--emoji); font-size: 116px; line-height: 1; background: none; border: 0; padding: 10px; border-radius: 30px;
  animation: fxChestBob 1.6s ease-in-out infinite; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fx-big-chest:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.fx-big-chest.is-shake { animation: fxChestShake .95s ease-in-out; }
@keyframes fxChestBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes fxChestShake {
  0% { transform: scale(1); } 15% { transform: scale(1.05) rotate(-10deg); } 30% { transform: scale(1.08) rotate(10deg); }
  45% { transform: scale(1.1) rotate(-12deg); } 60% { transform: scale(1.14) rotate(12deg); } 75% { transform: scale(1.2) rotate(-6deg); }
  100% { transform: scale(1.5); opacity: 0; }
}
.fx-reveal { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.fx-rays {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 60, .9) 0deg 11deg, rgba(255, 201, 60, 0) 11deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%);
  animation: spin 9s linear infinite, fadeIn .4s ease;
}
.fx-reveal-emo { position: relative; font-family: var(--emoji); font-size: 100px; line-height: 1; animation: fxBurst .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fxBurst { 0% { transform: scale(.1) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: none; } }
.fx-chest-p { font-size: 18px; margin-bottom: 4px; }
.fx-chest-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* уровни */
.fx-levels-modal { max-width: 560px; }
.fx-lvl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; text-align: left; }
@media (min-width: 520px) { .fx-lvl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fx-lvl-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 104px; text-decoration: none;
  border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--cs); box-shadow: 3px 3px 0 var(--ink);
}
.fx-lvl-card.is-on { background: var(--c); color: var(--ct); box-shadow: var(--shadow); }
.fx-lvl-emo { font-family: var(--emoji); font-size: 30px; line-height: 1.1; }
.fx-lvl-card b { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.fx-lvl-card small { font-weight: 700; font-size: 12.5px; line-height: 1.25; }
.fx-lvl-mine { position: absolute; top: 8px; right: 8px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 900; }

/* награды */
.fx-rw-modal { max-width: 640px; text-align: left; }
.fx-rw-head { display: flex; align-items: center; gap: 16px; padding: 8px 48px 4px 4px; }
.fx-rw-head .fx-fox { margin: 12px 8px 4px; }
.fx-rw-head p { margin: 0; }
.fx-rw-h { font-size: 18px !important; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-rw-h .chip { font-family: var(--f-body); font-size: 12.5px; padding: 2px 9px; }
.fx-wardrobe { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.fx-wear-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 8px 4px;
  border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800; font-size: 12.5px; line-height: 1.15; text-align: center;
}
button.fx-wear-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.fx-wear-btn.is-on { background: var(--orange-soft); box-shadow: 0 0 0 3px var(--orange), 2px 2px 0 var(--ink); }
.fx-wear-btn.is-locked { background: #F1EDE5; border-style: dashed; border-color: var(--ink-3); box-shadow: none; color: var(--ink-3); }
.fx-wear-e { font-family: var(--emoji); font-size: 34px; line-height: 1; }
.fx-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.fx-badge { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; border: 2px dashed var(--ink-3); background: #F7F3EC; color: var(--ink-2); }
.fx-badge b { display: block; font-size: 14.5px; line-height: 1.2; }
.fx-badge small { display: block; font-size: 12.5px; font-weight: 700; }
.fx-badge-e { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--emoji); font-size: 22px; background: #fff; border: 2px solid var(--ink-3); filter: grayscale(1); opacity: .55; }
.fx-badge.is-got { border: 2px solid var(--ink); background: var(--yellow-soft); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.fx-badge.is-got .fx-badge-e { filter: none; opacity: 1; background: var(--yellow); border-color: var(--ink); }
.fx-stk { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-stk-i {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; padding: 8px 4px 6px; border-radius: 18px;
  border: 2px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); transform: rotate(var(--rot, 0deg));
}
.fx-stk-i > span { font-family: var(--emoji); font-size: 34px; line-height: 1.1; }
.fx-stk-i small { font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.15; }
.fx-ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fx-rank { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--ink-3); background: #F1EDE5; font-family: var(--emoji); font-size: 20px; }
.fx-rank:not(.is-got) span { opacity: .45; font-size: 15px; }
.fx-rank.is-got { background: var(--cs); border: 2px solid var(--ink); }
.fx-rw-modal .tiny a { color: #1D4FB8; font-weight: 800; }

/* ------------------------------------------------- кабинет: баннер ребёнка */
.fx-kid {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 16px 12px 22px; text-decoration: none;
  border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--yellow-soft); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.fx-kid:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.fx-kid .fx-fox { margin: 6px 0 2px; }
.fx-kid b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.fx-kid .grow > span { display: block; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.fx-kid-go { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--orange); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 20px; }

/* ----------------------------------------------- родителям: занятия дома */
.fx-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .fx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fx-kpi { background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.fx-kpi b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.fx-kpi span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.fx-chart { margin: 16px 0 8px; }
.fx-plot {
  position: relative; height: 130px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-items: end;
  border-bottom: 1px solid var(--ink-3); padding-top: 18px;
}
.fx-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.fx-col-b { display: block; width: min(24px, 70%); border-radius: 4px 4px 0 0; background: var(--orange); font-style: normal; }
.fx-col-b.is-met { background: var(--mint); }
.fx-col-v { font-size: 12px; font-weight: 800; color: var(--ink-2); line-height: 1; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.fx-col.is-today .fx-col-v { color: var(--ink); }
.fx-goal-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ink-2); z-index: 1; pointer-events: none; }
.fx-goal-line em { position: absolute; right: 0; bottom: 2px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink-2); background: var(--paper); padding: 0 4px; border-radius: 6px; }
.fx-axis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.fx-axis span { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); line-height: 1.2; }
.fx-axis span.is-today { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fx-axis i { display: block; font-style: normal; font-family: var(--emoji); font-size: 13px; min-height: 16px; }
.fx-chart figcaption { margin-top: 6px; }
.fx-par-p { margin: 10px 0 14px; }
.fx-set { display: grid; gap: 14px; }
@media (min-width: 640px) { .fx-set { grid-template-columns: 1fr 1fr; } }
.fx-seg { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-seg legend { font-weight: 800; font-size: 14px; padding: 0; margin-bottom: 6px; }
.fx-opt { position: relative; display: inline-flex; }
.fx-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fx-opt span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 68px; padding: 8px 14px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-weight: 800; cursor: pointer;
}
.fx-opt input:checked + span { background: var(--ink); color: #fff; box-shadow: 2px 2px 0 var(--orange); }
.fx-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.fx-par-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.fx-par-grid .par-sec { margin-bottom: 0; }
/* auto-fit: если карточка напоминаний скрыта (не настроены), «Установить» занимает всю ширину */
@media (min-width: 860px) { .fx-par-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; } }
.fx-par [hidden], .fx-inst-mini[hidden] { display: none !important; }
.fx-rem .field { margin: 10px 0 12px; max-width: 260px; }
.fx-rem-btns { margin: 4px 0 10px; }
.fx-state { font-weight: 900; margin: 0 0 8px; }
.fx-note { background: var(--blue-soft); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; font-weight: 700; margin: 8px 0 10px; }
.fx-note.is-warn { background: var(--orange-soft); }
.fx-steps { margin: 6px 0 10px; padding-left: 22px; }
.fx-steps li { margin-bottom: 4px; }
.fx-rules summary { cursor: pointer; font-weight: 800; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.fx-rules ul { margin: 0 0 4px; padding-left: 20px; }

@media (max-width: 420px) {
  .fx-head { padding: 14px 12px 14px; border-radius: 26px; }
  .fx-hero { gap: 16px; }
  .fx-say { font-size: 16px; padding: 8px 12px; }
  .fx-today { padding: 8px 10px; gap: 10px; }
  .fx-unit { padding: 10px 12px; gap: 10px; }
  .fx-unit-t { font-size: 18px !important; }
  .fx-modal { padding: 22px 14px 18px; }
  .fx-rw-head { padding-right: 44px; gap: 10px; }
  .fx-lvl-grid { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-st.is-cur .fx-node, .fx-go, .fx-chest-btn.is-ready, .fx-chest-btn.is-ready .fx-node-emo, .fx-zzz, .fx-rays,
  .fx-big-chest, .fx-st-fox .fx-fox, .fx-w-float { animation: none !important; }
}
