/* Дизайн по прототипу Runable «MissionKids v2» (10–11 лет):
   дневная тёплая палитра, круглый шрифт, кнопки со «ступенькой», Жорик как неудачник.
   Взрослые экраны (учитель, родитель, организатор) — та же семья, но без ступенек и эмодзи. */
@import url("/fonts/fonts.css");

:root {
  --cream: #fff4e0; --cream-2: #ffe9c7;
  --navy: #2a3352; --navy-2: #5b6488;
  --sun: #ffc93c; --tang: #ff8a3d; --teal: #2bb3a3; --berry: #ff6b8a; --grape: #8a6bff;
  --white: #ffffff;
  --line: rgba(42, 51, 82, .14);
  --good: var(--teal); --warn: #e0a800; --risk: var(--berry);
  --good-soft: rgba(43, 179, 163, .14); --warn-soft: rgba(255, 201, 60, .28); --risk-soft: rgba(255, 107, 138, .16);
  --accent: var(--teal); --accent-soft: rgba(43, 179, 163, .14);
  --font-title: "Baloo 2", "Golos Text", system-ui, sans-serif;
  --font-body: "Nunito", "Golos Text", system-ui, sans-serif;
  --fs: 16px;
}
:root[data-size="big"] { --fs: 19px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--cream); }
body {
  color: var(--navy); font: var(--fs)/1.4 var(--font-body); font-weight: 600;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(255, 201, 60, .35) 0%, transparent 65%),
    radial-gradient(55% 45% at 100% 8%, rgba(43, 179, 163, .22) 0%, transparent 62%),
    var(--cream);
  background-attachment: fixed;
}
.wrap { max-width: 430px; margin: 0 auto; padding: 12px 16px calc(var(--dock, 76px) + 28px); }
.wide { max-width: 1060px; padding-bottom: 48px; }
h1, h2, h3, .t { font-family: var(--font-title); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
h1 { font-size: 1.7em; }
h2 { font-size: 1.35em; }
h3 { font-size: 1.05em; }
p { margin: 0 0 10px; }
.muted { color: rgba(42, 51, 82, .6); }
.faint { color: rgba(42, 51, 82, .42); }
.small { font-size: .86em; }
.tiny { font-size: .72em; }
.lead { font-size: 1.05em; line-height: 1.35; }
.label { font-size: .68em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(42, 51, 82, .42); }
a { color: var(--teal); }
.tnum { font-variant-numeric: tabular-nums; }

/* карточки */
.card { background: var(--white); border: 3px solid var(--navy); border-radius: 22px; box-shadow: 0 5px 0 var(--navy); padding: 16px; margin: 12px 0; }
.card.soft { border-color: var(--line); box-shadow: none; }
.card.flat { border: 0; box-shadow: none; background: rgba(255, 255, 255, .6); }
.card.tint-sun { background: rgba(255, 201, 60, .28); }
.card.tint-berry { background: rgba(255, 107, 138, .15); }
.card.tint-teal { background: rgba(43, 179, 163, .12); }
.card.tint-grape { background: rgba(138, 107, 255, .14); }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; } /* родное соотношение рисунков — картинка видна целиком */
.card > .cover:first-child { border-radius: 19px 19px 0 0; }
.card.img { padding: 0; overflow: hidden; }
.card.img > .body { padding: 16px; }

.row { display: flex; gap: 12px; align-items: center; }
.row.top { align-items: flex-start; }
.row.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-code { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
@media (max-width: 720px) { .grid-code { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; } }

/* кнопки со «ступенькой» */
button, .btn {
  font: inherit; font-family: var(--font-title); font-weight: 800; font-size: 1.05em; cursor: pointer;
  background: var(--teal); color: #fff; border: 3px solid var(--navy); border-radius: 18px;
  padding: 12px 18px; min-height: 54px; box-shadow: 0 5px 0 var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
button:active, .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
button:disabled { opacity: .5; cursor: default; }
button.full, .btn.full { width: 100%; }
button.sun { background: var(--sun); color: var(--navy); }
button.grape { background: var(--grape); }
button.berry { background: var(--berry); }
button.ghost, .btn.ghost { background: #fff; color: var(--navy); }
button.soft, .btn.soft { background: var(--cream-2); color: var(--navy); }
button.light { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: none; }
button.light:active { transform: none; }
button.link { background: none; border: 0; box-shadow: none; color: var(--teal); padding: 8px 0; min-height: 0; font-family: var(--font-body); font-weight: 800; font-size: .95em; }
button.link:active { transform: none; }
button.icon { background: #fff; color: var(--navy); min-height: 44px; width: 44px; padding: 0; border-radius: 14px; font-size: 18px; box-shadow: 0 3px 0 var(--navy); }
button.icon:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
button.sm { min-height: 42px; padding: 6px 14px; font-size: .9em; border-radius: 14px; box-shadow: 0 3px 0 var(--navy); }
button.sm:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }

input, textarea, select {
  font: inherit; font-weight: 700; color: var(--navy); background: #fff;
  border: 3px solid var(--line); border-radius: 16px; padding: 12px 14px; width: 100%; min-height: 54px;
}
input:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(43, 179, 163, .35); border-color: var(--teal); }
label { display: block; font-size: .82em; color: rgba(42, 51, 82, .6); margin: 14px 0 6px; font-weight: 800; }
.err { color: var(--berry); font-size: .86em; min-height: 20px; margin-top: 8px; font-weight: 800; }

/* варианты ответа — карточки */
.opt {
  display: block; width: 100%; text-align: left; font-family: var(--font-body); font-weight: 800; font-size: 1em; line-height: 1.3;
  background: #fff; color: var(--navy); border: 3px solid var(--navy); border-radius: 20px;
  margin: 10px 0; padding: 14px 16px; box-shadow: 0 5px 0 var(--navy); min-height: 0;
}
.opt.thin { border-color: var(--line); box-shadow: none; }
.opt.thin:active { transform: none; }
.opt:disabled { opacity: 1; cursor: default; transform: none; }
.opt.dim { opacity: .45; }
.opt.on { border-color: var(--teal); background: var(--good-soft); box-shadow: 0 5px 0 var(--teal); }
.opt.best { border-color: var(--teal); background: var(--good-soft); box-shadow: 0 5px 0 var(--teal); }
.opt.ok { border-color: var(--warn); background: var(--warn-soft); box-shadow: 0 5px 0 var(--warn); }
.opt.risk { border-color: var(--berry); background: var(--risk-soft); box-shadow: 0 5px 0 var(--berry); }
.opt .why { display: block; font-size: .84em; font-weight: 700; color: rgba(42, 51, 82, .65); margin-top: 6px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .72em; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(42, 51, 82, .08); color: var(--navy); }
.pill.sun { background: rgba(255, 201, 60, .35); }
.pill.teal { background: var(--good-soft); color: var(--teal); }
.pill.berry { background: var(--risk-soft); color: var(--berry); }
.pill.grape { background: rgba(138, 107, 255, .2); }
.pill.warn { background: var(--warn-soft); color: #9a6a00; }
.pill.outline { background: var(--cream); border: 3px solid var(--navy); padding: 3px 10px; }

.tag, .tag.good, .tag.warn, .tag.risk, .tag.accent { display: inline-flex; align-items: center; gap: 4px; font-size: .72em; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.tag { background: rgba(42, 51, 82, .08); color: var(--navy); }
.tag.good { background: var(--good-soft); color: var(--teal); }
.tag.warn { background: var(--warn-soft); color: #9a6a00; }
.tag.risk { background: var(--risk-soft); color: var(--berry); }
.tag.accent { background: rgba(138, 107, 255, .2); color: var(--navy); }

/* шкалы */
.bar { height: 20px; border: 3px solid var(--navy); border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.bar > i { display: flex; align-items: center; justify-content: flex-end; height: 100%; background: var(--sun); border-radius: 999px; min-width: 12%; padding-right: 6px; font-size: .62em; font-weight: 800; color: var(--navy); transition: width .4s ease; }
.bar.teal > i { background: var(--teal); color: #fff; }
.bar.grape > i { background: var(--grape); color: #fff; }
.bar.thin { height: 10px; border-width: 2px; }
.bar.thin > i { padding: 0; font-size: 0; }
.bar.adult { border: 0; height: 8px; background: rgba(42, 51, 82, .1); }
.bar.adult > i { background: var(--navy); min-width: 0; padding: 0; font-size: 0; }

.progress-dots { display: flex; gap: 5px; margin: 8px 0 14px; }
.progress-dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(42, 51, 82, .14); }
.progress-dots i.on { background: var(--teal); }

/* персонаж */
.hero-img { width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--navy); background: var(--cream-2); object-fit: cover; flex: none; display: block; }
.hero-img.lg { width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 0; }
span.hero-img { display: inline-flex; overflow: hidden; }
span.hero-img svg { display: block; width: 100%; height: 100%; }
.hero-card { background: #fff; color: var(--navy); border: 3px solid var(--line); border-radius: 22px; overflow: hidden; text-align: left; padding: 0; box-shadow: none; display: block; width: 100%; min-height: 0; }
.hero-card.on { border: 4px solid var(--teal); box-shadow: 0 5px 0 var(--teal); }
.hero-card .cap { padding: 8px 10px 10px; }
.hero-card .cap .t { font-size: 1.05em; }
.hero-card .cap .cs { font-size: .7em; font-weight: 800; }
.hero-card:active { transform: none; }

/* неделя */
.week { display: flex; gap: 6px; }
.week > div { flex: 1; text-align: center; padding: 8px 0; border: 3px solid var(--line); border-radius: 16px; background: #fff; font-size: .78em; font-weight: 800; }
.week > div.done { background: var(--teal); border-color: var(--teal); color: #fff; }
.week > div.today { border-color: var(--navy); }

/* чат */
.chat { margin: 10px 0; }
.bubble-from { font-size: .7em; font-weight: 800; margin: 8px 0 3px 4px; color: var(--navy-2); }
.bubble-from.villain { color: var(--berry); }
.bubble-from.friend { color: var(--teal); }
.bubble { background: #fff; border: 3px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: .95em; font-weight: 700; animation: bounce-in .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.bubble.villain { border-color: var(--berry); }
.bubble.friend { border-color: var(--teal); background: #eafaf7; }

/* сезон: список эпизодов */
.ep { display: flex; gap: 12px; align-items: center; background: #fff; border: 3px solid var(--navy); border-radius: 20px; padding: 10px; margin: 10px 0; box-shadow: 0 5px 0 var(--navy); cursor: pointer; }
.ep.locked { border-color: var(--line); box-shadow: none; background: rgba(255, 255, 255, .6); cursor: default; }
.ep.done { border-color: var(--line); box-shadow: none; }
.ep img, .ep .ico { width: 64px; height: 64px; border-radius: 14px; border: 3px solid var(--line); object-fit: cover; flex: none; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 26px; }

.stamp { display: inline-block; font-family: var(--font-title); font-weight: 800; font-size: 1.3em; color: #fff; padding: 6px 14px; border-radius: 16px; border: 3px solid var(--navy); transform: rotate(-3deg); }
.wobble { animation: wobble 2.6s ease-in-out infinite; }
.bounce-in { animation: bounce-in .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.fade { animation: bounce-in .35s cubic-bezier(.2, 1.1, .4, 1) backwards; }
@keyframes wobble { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes bounce-in { 0% { opacity: 0; transform: scale(.9) translateY(8px); } 70% { transform: scale(1.02); } 100% { opacity: 1; transform: none; } }
.center { text-align: center; }
.hide { display: none !important; }
.rule { border-left: 0; }
.sticker { width: 44px; height: 44px; border: 3px solid var(--line); border-radius: 14px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* нижние вкладки */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 12px calc(8px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(to top, var(--cream) calc(100% - 14px), rgba(255, 244, 224, 0)); z-index: 5; }
.tabs-row { display: flex; gap: 6px; justify-content: center; width: 100%; }
.tabs button { flex: 1; max-width: 140px; background: #fff; color: var(--navy); min-height: 50px; padding: 6px 4px; font-size: .82em; border-radius: 16px; box-shadow: none; gap: 5px; }
.tabs button.on { background: var(--navy); color: #fff; box-shadow: 0 4px 0 rgba(42, 51, 82, .35); }
.tabs button i { font-style: normal; font-size: 16px; }

table { width: 100%; border-collapse: collapse; font-size: .86em; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; color: rgba(42, 51, 82, .5); font-size: .78em; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
input[type=range] { padding: 0; min-height: 36px; border: 0; background: none; accent-color: var(--teal); }
.code-big { font-family: var(--font-title); font-size: 44px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.stat { text-align: center; padding: 12px 6px; }
.stat b { display: block; font-family: var(--font-title); font-size: 2em; font-weight: 800; line-height: 1.05; }
.stat span { font-size: .72em; color: rgba(42, 51, 82, .55); }

/* взрослый контур: без ступенек и толстых контуров */
.adult { background: #fbf7ef; }
.adult .card { border: 1px solid var(--line); box-shadow: 0 16px 36px -28px rgba(42, 51, 82, .5); border-radius: 22px; }
.adult .card.rule { border-left: 4px solid var(--teal); }
.adult button, .adult .btn { border: 0; box-shadow: none; border-radius: 999px; background: var(--navy); color: #fff; min-height: 48px; font-size: 1em; }
.adult button:active, .adult .btn:active { transform: scale(.98); box-shadow: none; }
.adult button.ghost, .adult .btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.adult button.soft { background: var(--good-soft); color: var(--teal); }
.adult button.link { background: none; color: var(--teal); }
.adult button.sm { min-height: 40px; }
.adult input { border-width: 1px; border-radius: 14px; }
.adult .bar { border: 0; height: 8px; background: rgba(42, 51, 82, .1); }
.adult .bar > i { min-width: 0; padding: 0; font-size: 0; background: var(--navy); }
.adult .bar.good > i { background: var(--teal); }
.adult .opt { border-width: 1px; box-shadow: none; }

@media print {
  body { background: #fff; color: #000; font-size: 13px; }
  .card { border-color: #ccc; box-shadow: none; break-inside: avoid; }
  .no-print { display: none !important; }
}

/* --- дизайн-фишки (ветка design): иконки, серия, конфетти, штамп со шлепком --- */
svg.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }
.stamp { animation: stamp-slam .5s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes stamp-slam { 0% { opacity: 0; transform: scale(2.2) rotate(-14deg); } 60% { transform: scale(.92) rotate(-2deg); } 80% { transform: scale(1.05) rotate(-4deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
.confetti { position: relative; }
i.conf { position: absolute; top: -6px; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: conf-fall .95s ease-in both; }
@keyframes conf-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(84px) rotate(220deg); } }
.flame { display: inline-flex; color: rgba(42, 51, 82, .3); }
.flame.on { color: var(--navy); }
.flame.on svg { fill: var(--sun); animation: flame-flick 1.6s ease-in-out infinite; }
@keyframes flame-flick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1) translateY(-1px); } }

/* тропинка сезона (фишка 2) */
.path { position: relative; padding: 2px 0; }
.path::before { content: ""; position: absolute; left: 33px; top: 26px; bottom: 26px; border-left: 3px dashed rgba(42, 51, 82, .3); }
.node { position: relative; display: flex; gap: 14px; align-items: center; padding: 9px 0; }
.node.next { cursor: pointer; }
.node .knot { position: relative; width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--navy); background: var(--cream-2); flex: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 var(--navy); }
.node .knot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.node.done .knot { border-color: var(--teal); box-shadow: none; }
.node.next .knot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px dashed var(--sun); animation: spin-slow 14s linear infinite; }
.node.locked { opacity: .75; }
.node.locked .knot { border-style: dashed; border-color: rgba(42, 51, 82, .3); box-shadow: none; background: #fff; color: rgba(42, 51, 82, .45); }
.node .badge { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.node .badge.play { background: var(--sun); color: var(--navy); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* позы Жорика (фишка 3, CSS-версия до иллюстраций) */
.jorik-fall { animation: jorik-fall .8s cubic-bezier(.4, 1.4, .5, 1) both; }
@keyframes jorik-fall { 0% { transform: rotate(0) translateY(-10px); } 55% { transform: rotate(50deg) translateY(6px); } 70% { transform: rotate(42deg) translateY(4px); } 100% { transform: rotate(48deg) translateY(6px); } }
.jorik-happy { animation: jorik-happy .9s ease-in-out 2; }
@keyframes jorik-happy { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }

/* церемония звания и быстрая кнопка (thumb-zone) */
.ceremony { position: fixed; inset: 0; z-index: 20; background: rgba(42, 51, 82, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }

/* переход на новый уровень — на весь экран */
.lvl { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 90px 20px 20px; overflow: hidden; background: var(--grape); animation: lvl-in .3s ease both; }
.lvl.out { animation: lvl-out .26s ease both; }
.lvl::before { content: ""; position: absolute; left: 50%; top: 40%; width: 280vmax; height: 280vmax; margin: -140vmax 0 0 -140vmax; background: repeating-conic-gradient(rgba(255, 255, 255, .2) 0deg 9deg, transparent 9deg 18deg); animation: spin-slow 30s linear infinite; }
.lvl::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 201, 60, .75) 0, rgba(255, 201, 60, .28) 24%, transparent 50%); pointer-events: none; }
.lvl-card { position: relative; z-index: 2; width: 100%; max-width: 340px; background: #fff; border: 3px solid var(--navy); border-radius: 28px; box-shadow: 0 8px 0 var(--navy); padding: 70px 20px 20px; text-align: center; animation: lvl-pop .6s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.lvl-hero { position: absolute; left: 50%; top: -66px; transform: translateX(-50%); animation: lvl-hero .75s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
.lvl-hero .hero-img { border-width: 4px; box-shadow: 0 6px 0 var(--navy); background: var(--sun); }
.lvl-spark { position: absolute; color: var(--navy); animation: lvl-twinkle 1.4s ease-in-out infinite; }
.lvl-spark svg { fill: var(--sun); }
.lvl-spark.s1 { left: -34px; top: 6px; animation-delay: .9s; }
.lvl-spark.s2 { right: -26px; top: -8px; animation-delay: 1.2s; }
.lvl-spark.s3 { right: -36px; bottom: 14px; animation-delay: 1.5s; }
.lvl-kicker { font-family: var(--font-title); font-weight: 800; font-size: .9em; letter-spacing: .1em; text-transform: uppercase; color: var(--grape); animation: bounce-in .4s ease .55s both; }
.lvl-num { font-family: var(--font-title); font-weight: 800; font-size: 72px; line-height: 76px; height: 76px; overflow: hidden; color: var(--navy); margin-top: 2px; }
.lvl-roll { animation: lvl-roll .55s cubic-bezier(.3, 1.5, .5, 1) 1s both; }
.lvl-roll span { display: block; height: 76px; }
.lvl-old { margin-top: 2px; font-weight: 800; color: rgba(42, 51, 82, .45); }
.lvl-old span { position: relative; display: inline-block; }
.lvl-old span::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; border-radius: 3px; background: var(--berry); transform: scaleX(0); transform-origin: left; animation: lvl-strike .3s ease 1.2s both; }
.lvl-stamp { margin: 10px 0 14px; min-height: 52px; }
.lvl .stamp { font-size: 1.55em; background: var(--berry); padding: 8px 18px; box-shadow: 0 4px 0 var(--navy); animation-delay: 1.45s; }
.lvl-bar { height: 24px; }
.lvl-bar > i { transition: width .7s cubic-bezier(.3, 1.1, .5, 1); }
.lvl-next { margin: 10px 0 12px; color: var(--navy-2); animation: bounce-in .4s ease 2s both; }
.lvl-go { font-size: 1.1em; animation: lvl-btn .5s cubic-bezier(.2, 1.4, .4, 1) 2.2s both; }
i.lvl-bit { position: absolute; top: -24px; z-index: 3; pointer-events: none; animation-name: lvl-fall; animation-timing-function: cubic-bezier(.3, .2, .6, 1); animation-fill-mode: both; }
@keyframes lvl-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lvl-out { to { opacity: 0; transform: scale(1.04); } }
@keyframes lvl-pop { 0% { opacity: 0; transform: translateY(60px) scale(.8); } 100% { opacity: 1; transform: none; } }
@keyframes lvl-hero { 0% { opacity: 0; transform: translateX(-50%) scale(.2) rotate(-25deg); } 70% { transform: translateX(-50%) scale(1.15) rotate(6deg); } 100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); } }
@keyframes lvl-twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.15) rotate(30deg); opacity: 1; } }
@keyframes lvl-roll { from { transform: translateY(0); } to { transform: translateY(-76px); } }
@keyframes lvl-strike { to { transform: scaleX(1); } }
@keyframes lvl-btn { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: none; } }
@keyframes lvl-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(112vh) rotate(760deg); } }
@media (prefers-reduced-motion: reduce) {
  .lvl, .lvl *, .lvl::before { animation-duration: .01s !important; animation-delay: 0s !important; }
  i.lvl-bit { display: none; }
}
.quick-cta { display: none; min-height: 46px; padding: 10px 22px; box-shadow: 0 4px 0 var(--navy); }
.quick-cta.show { display: inline-flex; animation: bounce-in .25s ease both; }

/* табличка с именем героя на аватаре */
.nameplate { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-title); font-weight: 800; font-size: 9px; line-height: 1; color: var(--navy); background: var(--sun); border: 2px solid var(--navy); border-radius: 999px; padding: 2px 6px; max-width: 120%; overflow: hidden; text-overflow: ellipsis; }
.nameplate.lg { font-size: 13px; padding: 3px 10px; bottom: -12px; border-width: 3px; max-width: 110%; }

/* ритм внутри миссии: реакция на ответ, серия, итог */
.combo { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-title); font-weight: 800; font-size: .8em; color: var(--navy); background: var(--sun); border: 2px solid var(--navy); border-radius: 999px; padding: 2px 9px; margin-right: 6px; white-space: nowrap; }
.combo svg { fill: var(--tang); }
.combo.bump { animation: combo-bump .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes combo-bump { 0% { transform: scale(.6); } 60% { transform: scale(1.25) rotate(-4deg); } 100% { transform: scale(1); } }
.hit-chip { position: absolute; z-index: 25; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--font-title); font-weight: 800; font-size: 1.05em; color: #fff; padding: 5px 14px; border-radius: 999px; border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy); white-space: nowrap; animation: chip-rise 1.1s cubic-bezier(.2, 1.2, .4, 1) both; }
.hit-chip.best { background: var(--teal); }
.hit-chip.ok { background: var(--sun); color: var(--navy); }
.hit-chip.risk { background: var(--berry); }
@keyframes chip-rise { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 25% { opacity: 1; transform: translate(-50%, -110%) scale(1.1); } 70% { opacity: 1; transform: translate(-50%, -150%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(.95); } }
.hit { animation: hit-pop .35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes hit-pop { 0% { transform: scale(.97); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
.pill.teal-pill { background: var(--teal); color: #fff; border-color: var(--teal); }
.xp-tick.done { animation: combo-bump .45s cubic-bezier(.2, 1.6, .4, 1); color: var(--teal); }
@media (prefers-reduced-motion: reduce) { .hit-chip, .hit, .combo.bump, .xp-tick.done { animation-duration: .01s !important; } }

/* блиц-свайп */
.deck-area { position: relative; height: 230px; margin: 4px 0 14px; touch-action: pan-y; }
.swipe-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 22px; background: #fff; border: 3px solid var(--navy); border-radius: 24px; box-shadow: 0 6px 0 var(--navy); font-family: var(--font-title); font-weight: 800; font-size: 1.35em; line-height: 1.2; color: var(--navy); cursor: grab; user-select: none; transition: transform .26s cubic-bezier(.3, 1.2, .5, 1), opacity .26s ease, background .15s ease, border-color .15s ease; animation: bounce-in .3s ease both; }
.swipe-card.under { transform: scale(.94) translateY(12px); opacity: .55; box-shadow: none; animation: none; z-index: 0; }
.swipe-card#cur { z-index: 1; }
.swipe-card .hint { position: absolute; top: 12px; font-family: var(--font-title); font-size: .6em; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--navy); background: var(--sun); opacity: 0; transition: opacity .1s; }
.swipe-card .hint.l { left: 12px; }
.swipe-card .hint.r { right: 12px; }
.swipe-card.right { border-color: var(--teal); background: #e6f7f4; box-shadow: 0 6px 0 var(--teal); }
.swipe-card.wrong { border-color: var(--berry); background: #ffe7ec; box-shadow: 0 6px 0 var(--berry); }
.swipe-card.fly-l { transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; transition-delay: .12s; }
.swipe-card.fly-r { transform: translateX(130%) rotate(18deg) !important; opacity: 0; transition-delay: .12s; }
.swipe-card .mark { position: absolute; bottom: 10px; right: 14px; font-size: 1.3em; color: var(--berry); }
.swipe-card.right .mark { color: var(--teal); }
.deck-btns button { font-size: 1em; }
.deck-miss { padding: 8px 0; border-top: 2px solid var(--line); }
.deck-miss b { display: block; }
.deck-miss .tag { display: inline-flex; margin: 4px 0 2px; }
@media (prefers-reduced-motion: reduce) { .swipe-card { transition-duration: .01s !important; animation: none; } }

/* на глаз, потом точно */
.est-box { text-align: center; }
.est-val { font-size: 2.4em; line-height: 1.1; margin: 4px 0 8px; color: var(--navy); }
.est-box input[type=range] { width: 100%; }
.est-scale { position: relative; height: 70px; margin: 16px 6px 0; }
.est-scale.tall { height: 118px; }
.est-pin.real.below { top: 46px; flex-direction: column-reverse; }
.est-pin.real.below::after { margin: 0 0 2px; }
.est-line { position: absolute; left: 0; right: 0; top: 44px; height: 8px; border-radius: 999px; background: var(--cream-2); border: 2px solid var(--navy); }
.est-pin { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: .72em; font-weight: 800; white-space: nowrap; animation: bounce-in .4s ease both; }
.est-pin b { font-family: var(--font-title); font-size: 1.1em; padding: 0 8px; border-radius: 999px; border: 2px solid var(--navy); color: #fff; }
.est-pin::after { content: ""; width: 4px; height: 22px; margin-top: 2px; border-radius: 4px; background: var(--navy); }
.est-pin.you b { background: var(--grape); }
.est-pin.real b { background: var(--teal); }
.est-pin.real { animation-delay: .35s; }
.est-calc { margin-top: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 201, 60, .22); font-weight: 800; font-size: .92em; }
.est-calc div + div { margin-top: 2px; }

/* набег Жорика */
.card.raid { background: linear-gradient(180deg, rgba(255, 107, 138, .12), #fff 60%); }
.card.raid.won { background: linear-gradient(180deg, rgba(43, 179, 163, .16), #fff 60%); }
.raid-jorik { width: 64px; height: 64px; object-fit: cover; border-radius: 18px; border: 3px solid var(--navy); background: #fdebd0; flex: none; }
.raid-after.won { border-color: var(--teal); box-shadow: 0 5px 0 var(--teal); }
.pill.berry svg, .label svg { vertical-align: -.2em; }
.burst-layer { position: fixed; inset: 0; z-index: 28; pointer-events: none; overflow: hidden; }

/* недельная серия */
.week-chip { border: 3px solid var(--navy); background: #fff; border-radius: 16px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; min-height: 0; box-shadow: none; color: var(--navy); font: inherit; cursor: pointer; }
.week-chip:active { transform: scale(.96); }
.week-chip.met { background: var(--teal); color: #fff; }
.week-chip.met .flame { color: #fff; }
.week-goal { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 3px solid var(--line); border-radius: 18px; background: #fff; }
.week-goal.met { border-color: var(--teal); background: var(--good-soft); }
.week-goal .ring { --p: 0; width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--cream-2) 0); }
.week-goal .ring span { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: .85em; }
.week-goal svg { vertical-align: -.15em; }

/* найди ошибку у друга */
.mis-path { position: relative; margin-top: 8px; }
.mis-path::before { content: ""; position: absolute; left: 27px; top: 22px; bottom: 22px; border-left: 3px dashed rgba(42, 51, 82, .25); }
.mis-line { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; width: 100%; text-align: left; margin: 8px 0; padding: 10px 14px 10px 10px; background: #fff; border: 3px solid var(--line); border-radius: 18px; box-shadow: none; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; min-height: 0; }
.mis-line:active { transform: none; }
.mis-n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--navy); background: var(--cream-2); display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: .85em; z-index: 1; }
.mis-t { flex: 1; min-width: 0; padding-top: 3px; }
.mis-why { flex-basis: 100%; margin: 8px 0 0 42px; font-size: .86em; color: rgba(42, 51, 82, .75); }
.mis-line:disabled { cursor: default; opacity: 1; }
.mis-line.dim { opacity: .5; }
.mis-line.main { border-color: var(--teal); background: var(--good-soft); box-shadow: 0 4px 0 var(--teal); }
.mis-line.main .mis-n { background: var(--teal); color: #fff; }
.mis-line.also { border-color: var(--warn); background: var(--warn-soft); }
.mis-line.also .mis-n { background: var(--sun); }
.mis-line.picked { outline: 3px dashed var(--grape); outline-offset: 3px; }

/* холодильник хотелок */
.card.fridge { background: linear-gradient(180deg, #eaf6fb, #fff 70%); }
.card.fridge.ready { border-color: var(--teal); box-shadow: 0 5px 0 var(--teal); background: linear-gradient(180deg, rgba(43, 179, 163, .14), #fff 70%); }
.fridge-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 3px solid var(--navy); border-radius: 16px; background: #dff1f8; color: var(--navy); }
.fridge-shelf { margin-top: 10px; border-top: 2px dashed rgba(42, 51, 82, .2); }
.fridge-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 2px dashed rgba(42, 51, 82, .12); }
.fridge-item > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #dff1f8; }
.fridge-item svg { vertical-align: -.15em; }
.fridge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.fridge-tile { display: flex; align-items: center; gap: 8px; text-align: left; padding: 10px; min-height: 58px; }
.fridge-tile span { color: var(--grape); flex: none; }
.fridge-tile b { font-size: .85em; line-height: 1.15; }
.fridge-tile.on { border-color: var(--teal); background: var(--good-soft); box-shadow: 0 4px 0 var(--teal); }
.fridge-big { position: relative; width: 150px; height: 150px; margin: 0 auto; display: grid; place-items: center; border-radius: 40px; background: #dff1f8; border: 3px solid var(--navy); }
.fridge-door { color: var(--navy); }
.fridge-drop { position: absolute; top: 50%; left: 50%; color: var(--grape); animation: fridge-drop .9s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes fridge-drop { 0% { transform: translate(-50%, -160%) scale(1.2); opacity: 0; } 50% { opacity: 1; } 100% { transform: translate(-50%, -30%) scale(.7); opacity: .9; } }
.want-compare { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.want-compare .t.tnum { font-size: 2.4em; line-height: 1; }

/* тренировка на ошибках */
.card.practice { background: linear-gradient(180deg, rgba(138, 107, 255, .12), #fff 70%); }
.swipe-card .ctx { margin-top: 10px; font-family: var(--font-body); font-size: .5em; font-weight: 800; color: rgba(42, 51, 82, .5); }

/* стань Жориком */
.craft-head { background: linear-gradient(180deg, rgba(255, 138, 61, .16), #fff 70%); }
.craft-preview { min-height: 52px; font-weight: 700; }
.craft-slot { margin-top: 12px; }
.craft-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { min-height: 0; padding: 7px 12px; border: 3px solid var(--line); border-radius: 999px; background: #fff; box-shadow: none; font: inherit; font-size: .88em; font-weight: 800; color: var(--navy); cursor: pointer; }
.chip:active { transform: none; }
.chip.on { border-color: var(--tang); background: rgba(255, 138, 61, .16); }
.card.bonus { background: linear-gradient(180deg, rgba(255, 138, 61, .15), #fff 70%); border-color: var(--tang); box-shadow: 0 5px 0 var(--tang); }
.node.bonus-node .knot { border-color: var(--tang); }
.node.bonus-node.next .knot::after { border-color: var(--tang); }

/* наклейки: обычная, золотая, пустая; страницы сезонов; значки */
button.sticker { padding: 0; min-height: 0; box-shadow: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; color: rgba(42, 51, 82, .35); }
button.sticker:active { transform: scale(.94); }
.sticker.empty { border-style: dashed; background: #fff; }
.sticker.got { --c: var(--teal); border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.sticker.gold { border-color: #d4a017; color: #8a5a00; background: linear-gradient(135deg, #fff3c4, #ffd45a 55%, #fff0b3); box-shadow: 0 3px 0 #d4a017; position: relative; overflow: hidden; }
.sticker.gold::after { content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; background: rgba(255, 255, 255, .7); transform: rotate(25deg); animation: gold-shine 3.2s ease-in-out infinite; }
@keyframes gold-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.sticker.mini, .season-badge.mini { width: 26px; height: 26px; border-width: 2px; border-radius: 9px; flex: none; }
.album-how { display: grid; gap: 6px; padding: 10px 12px; margin-bottom: 10px; border-radius: 16px; background: rgba(255, 201, 60, .18); font-size: .82em; font-weight: 800; }
.album-how > div { display: flex; align-items: center; gap: 8px; }
.album-page { padding: 10px 12px; margin: 8px 0; border: 3px solid var(--line); border-radius: 18px; background: #fff; }
.album-page.full { border-color: var(--teal); background: var(--good-soft); }
.season-badge { --c: var(--teal); display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: .72em; font-weight: 800; color: #fff; background: var(--c); border: 2px solid var(--navy); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.season-badge.mini { padding: 0; border-radius: 50%; width: 20px; height: 20px; }
.album-how .season-badge.mini { width: 26px; height: 26px; background: var(--teal); }
.sticker-sheet { max-width: 340px; width: 100%; margin: 0; padding: 22px 18px 16px; }
.sticker-sheet .sticker { border-radius: 26px; border-width: 4px; }
.node .badge.gold { background: #ffd45a; color: #8a5a00; }
.finish-sticker { display: flex; justify-content: center; margin-bottom: 2px; }
.sticker-note.gold { border-color: #d4a017; background: linear-gradient(135deg, #fff8dc, #fff); }
@media (prefers-reduced-motion: reduce) { .sticker.gold::after { animation: none; } }

.swipe-card { overflow: hidden; }
.swipe-card .txt.long { font-size: .8em; }

.member-name { min-width: 0; }
.member-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 1px; }
/* быстрая кнопка внутри нижней панели — вид основной кнопки, а не вкладки */
.tabs .quick-cta { flex: none; max-width: none; width: auto; background: var(--teal); color: #fff; font-size: 1em; border-radius: 18px; white-space: nowrap; box-shadow: 0 4px 0 var(--navy); padding: 10px 22px; min-height: 46px; }

/* блок «Как это устроено»: ведущий, магазин, фишки */
.card.howto { background: linear-gradient(180deg, rgba(138, 107, 255, .13), #fff 65%); }
.host-img { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 22px; overflow: hidden; background: rgba(138, 107, 255, .16); border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy); }
.host-img.face { border-radius: 14px; box-shadow: none; }
.host-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.host-img.pose { background: #fdf3df; border-radius: 26px; }
.host-img.pose img { object-fit: contain; object-position: center bottom; }
.host-img b { font-family: var(--font-title); font-size: 1.6em; color: var(--grape); }
.bubble.host { border-color: var(--grape); border-radius: 6px 18px 18px 18px; }
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; perspective: 800px; }
.pack { position: relative; min-height: 96px; padding: 0; background: transparent; border: 0; box-shadow: none; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, 1.2, .5, 1); }
.pack:active { transform: none; }
.pack.open { transform: rotateY(180deg); }
.pack.flat { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; border: 3px solid var(--navy); border-radius: 18px; box-shadow: 0 4px 0 var(--navy); font-family: var(--font-title); color: var(--navy); transform: none; transition: transform .12s ease; }
.pack.flat:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.pack.flat b { font-size: 1.15em; }
.pack .pack-front, .pack .pack-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 3px solid var(--navy); border-radius: 18px; backface-visibility: hidden; font-family: var(--font-title); }
.pack .pack-front { background: var(--sun); color: var(--navy); }
.pack .pack-front svg { fill: var(--tang); }
.pack .pack-back { background: #fff; color: var(--navy); transform: rotateY(180deg); box-shadow: 0 4px 0 var(--navy); }
.pack .pack-back b { font-size: 1.15em; }
.pack:disabled { opacity: .55; }
.translator { margin-top: 10px; }
.translator input[type=range] { width: 100%; }
.tip { margin: 8px 0; }
.tip-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(138, 107, 255, .16); color: var(--grape); }
.fix-sheet { background: linear-gradient(180deg, rgba(255, 201, 60, .28), #fff 70%); }
.notebook { margin-top: 12px; border-top: 2px dashed rgba(42, 51, 82, .2); padding-top: 10px; }
.fix-card { padding: 8px 10px; margin: 6px 0; border-radius: 14px; background: rgba(255, 201, 60, .2); }
.fix-card.mastered { background: var(--good-soft); }
@media (prefers-reduced-motion: reduce) { .pack { transition-duration: .01s; } }

/* первая страница и знакомство */
.onb-app { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 22px; border: 3px solid var(--navy); background: var(--sun); color: var(--navy); box-shadow: 0 4px 0 var(--navy); }
.bubble .type { display: inline; }
.bubble .type:not(.typed)::after { content: "▍"; color: var(--grape); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.code-in { font-family: var(--font-title); font-weight: 800; font-size: 2em; letter-spacing: .35em; text-align: center; margin-top: 14px; padding: 12px; }
.promises { display: grid; gap: 10px; margin-top: 14px; }
.promise { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 3px solid var(--line); border-radius: 18px; animation: bounce-in .4s ease both; }
.promise:nth-child(2) { animation-delay: .15s; } .promise:nth-child(3) { animation-delay: .3s; }
.promise-ic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(43, 179, 163, .14); color: var(--teal); overflow: hidden; }
.promise-ic img { width: 100%; height: 100%; object-fit: cover; }


/* панель ответа снизу */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, 1.1, .4, 1); pointer-events: none; }
.sheet.show { transform: none; pointer-events: auto; }
.sheet-in { max-width: 430px; margin: 0 auto; max-height: 64vh; overflow: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border: 3px solid var(--navy); border-bottom: 0; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -6px 0 rgba(42, 51, 82, .12); }
.sheet.best .sheet-in { background: #dcf5ef; }
.sheet.ok .sheet-in { background: #fff1c9; }
.sheet.risk .sheet-in { background: #ffe1e8; }
.sheet-row { display: flex; gap: 12px; align-items: flex-start; }
.sheet-row.bare { display: none; }
.sheet-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--navy); font-family: var(--font-title); font-weight: 800; font-size: 1.4em; color: var(--navy); }
.sheet.best .sheet-ic { color: var(--teal); } .sheet.risk .sheet-ic { color: var(--berry); } .sheet.ok .sheet-ic { color: #b07a00; }
.sheet-body { flex: 1; min-width: 0; }
.sheet-body .card { border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0 !important; }
.sheet-body .stamp { font-size: 1.05em; padding: 3px 12px; box-shadow: none; }
.sheet-body p { margin-top: 8px !important; }
.sheet.hint #next { display: none; }
.sheet #next.hide { display: none; }
/* метка над шагом и блик на полоске */
.step-tag { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 8px; font-size: .72em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--grape); }
.step-tag svg { vertical-align: -.15em; }
.progress-dots i.cur { position: relative; overflow: hidden; }
.progress-dots i.cur::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: rgba(255, 255, 255, .75); animation: bar-shine 1.6s ease-in-out infinite; }
@keyframes bar-shine { 0% { left: -40%; } 60%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } .progress-dots i.cur::after { animation: none; display: none; } }

/* итог эпизода серией карточек и «Исправляем ошибки» */
.sum { display: flex; flex-direction: column; min-height: calc(100dvh - 60px); }
.sum-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 18px; }
.sum-body.center { text-align: center; }
.sum-xp { text-align: center; margin-top: 18px; }
.sum-xp .xp-tick { font-size: 3em; line-height: 1; color: var(--navy); }
.sum-xp .xp-tick.done { color: var(--teal); animation: pop-in .35s ease-out; }
.sum-sticker { display: flex; justify-content: center; margin-top: 14px; }
.sum-sticker .sticker { pointer-events: none; }
.sum-sticker.pop .sticker { animation: sticker-slap .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes sticker-slap { 0% { transform: scale(2.2) rotate(-18deg); opacity: 0; } 60% { transform: scale(.92) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes pop-in { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
.progress-dots.gold i.on { background: var(--sun); }
.step-tag.fix { color: #b8770a; }
.wrap:has(.sum) { padding-bottom: 20px; }
@media (prefers-reduced-motion: reduce) { .sum-sticker.pop .sticker, .sum-xp .xp-tick.done { animation: none; } }
.sum .grid3 button.sm { padding: 6px 4px; font-size: .82em; }
.sum-body .hero-img { display: block; margin: 0 auto; }
.sum-pop { animation: sticker-slap .55s cubic-bezier(.2, 1.4, .4, 1) both; }

/* сундук на тропинке, герой у текущего узла, бабл «Начать» */
.node.chest .knot { border-radius: 20px; background: #fff; padding: 8px; }
.node.chest.locked .knot { filter: grayscale(.8); opacity: .7; }
.node.chest.ready { cursor: pointer; }
.node.chest.ready .knot { border-color: var(--sun); box-shadow: 0 4px 0 #d9a21f; animation: chest-hop 1.6s ease-in-out infinite; }
.node.chest.open .knot { border-color: var(--teal); box-shadow: none; }
.chest-art { display: block; width: 100%; height: 100%; }
.chest-art img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.chest-art.pop { animation: sticker-slap .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes chest-hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-6px) rotate(-5deg); } 80% { transform: translateY(0) rotate(4deg); } 90% { transform: translateY(-3px) rotate(-2deg); } }
.chest-ov { position: fixed; inset: 0; z-index: 60; background: rgba(42, 51, 82, .55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: ov-in .2s ease-out; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
.chest-box { width: 100%; max-width: 340px; background: var(--cream); border: 3px solid var(--navy); border-radius: 26px; box-shadow: 0 6px 0 var(--navy); padding: 22px 20px; text-align: center; }
.chest-big { width: 170px; height: 170px; margin: 12px auto 0; display: block; background: #fff; border: 3px solid var(--navy); border-radius: 30px; box-shadow: 0 5px 0 var(--navy); padding: 18px; min-height: 0; }
.chest-big.shake { animation: chest-hop 1.2s ease-in-out infinite; }
.node.next { padding-top: 34px; }
.start-bubble { position: absolute; left: 4px; top: 0; z-index: 2; background: var(--sun); color: var(--navy); border: 3px solid var(--navy); border-radius: 12px; padding: 1px 10px; font-family: var(--font-title); font-weight: 800; font-size: .82em; text-transform: uppercase; letter-spacing: .04em; animation: bubble-bob 1.4s ease-in-out infinite; }
.start-bubble::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 10px; height: 10px; background: var(--sun); border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); }
@keyframes bubble-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.path-hero { position: absolute; right: 2px; top: 30px; width: 46px; height: 46px; border: 3px solid var(--navy); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 3px 0 var(--navy); animation: bubble-bob 2s ease-in-out infinite; }
.node.next > .spacer { padding-right: 52px; }
@media (prefers-reduced-motion: reduce) { .node.chest.ready .knot, .chest-big.shake, .start-bubble, .path-hero { animation: none; } }

/* задания дня и заглушка отряда */
.day-tasks .day-chest { width: 40px; height: 40px; flex: none; display: block; }
.day-tasks .day-chest:not(.open) { filter: grayscale(.5); opacity: .8; }
.day-task { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 8px; padding: 6px 12px; text-align: left; background: #fff; color: var(--navy); border: 3px solid var(--line); border-radius: 16px; box-shadow: none; font: inherit; font-weight: 800; }
.day-task .day-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.day-task.done { opacity: 1; border-color: rgba(43, 179, 163, .5); background: rgba(43, 179, 163, .1); }
.day-task.done .day-ic { background: var(--teal); color: #fff; }
.day-task.done .spacer { text-decoration: line-through; text-decoration-color: rgba(42, 51, 82, .35); }
.day-tasks.all { border-color: var(--teal); }
.squad-lock { position: relative; margin-top: 14px; }
.squad-blur { filter: blur(3px); opacity: .85; pointer-events: none; user-select: none; }
.squad-lock-card { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; }

/* мини-анимации первой страницы и знакомства */
.host-img.talking, .hero-img.talking { animation: talk-bob .38s ease-in-out infinite; }
@keyframes talk-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-2deg); } }

/* выбор цели недели */
.week-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.week-pick .opt { display: flex; align-items: center; gap: 12px; margin: 0; }
.sum .wt-edit { display: none; }

/* ===== первая страница: блоки как у Duolingo, стиль наш ===== */
html:has(.landing), body:has(.landing) { overflow-x: hidden; }
html:has(.landing) { overflow-x: clip; }
.wrap:has(.landing) { max-width: 1040px; padding-bottom: 0; }
.landing { --bleed: calc(50% - 50vw); }
@supports (width: 100dvw) { .landing { --bleed: calc(50% - 50dvw); } }
.land-top { display: flex; align-items: center; padding: 8px 0 4px; }
.land-logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-title); font-weight: 800; font-size: 1.5em; color: var(--teal); letter-spacing: -.02em; }
.land-sticky { position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; align-items: center; padding: 8px max(16px, calc(50vw - 504px)); background: rgba(255, 244, 224, .96); border-bottom: 3px solid var(--navy); transform: translateY(-110%); transition: transform .25s ease-out; }
.land-sticky.show { transform: none; }
.land-sticky .land-logo { font-size: 1.2em; }
.land-sticky button { min-width: 120px; }

.land-hero { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; margin-top: 8px; }
.land-hero-pic { position: relative; border: 3px solid var(--navy); border-radius: 26px; overflow: hidden; box-shadow: 0 6px 0 var(--navy); background: var(--cream); }
.land-hero-pic .cover { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; animation: breathe 5s ease-in-out infinite; transform-origin: 50% 70%; }
.land-hero-txt h1 { font-size: 1.7em; text-align: center; text-wrap: balance; margin-bottom: 16px; }
.land-hero-txt button { margin-top: 8px; }
.land-hero-txt #start { font-size: 1.15em; }
.twinkle { position: absolute; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
.twinkle svg { fill: var(--sun); stroke: var(--navy); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: 0; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
#start, #start2, #start4 { position: relative; overflow: hidden; }
#start::after, #start2::after, #start4::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; background: rgba(255, 255, 255, .55); transform: skewX(-20deg); animation: btn-shine 3.2s ease-in-out infinite; }
@keyframes btn-shine { 0%, 55% { left: -30%; } 85%, 100% { left: 120%; } }


.land-block { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; margin-top: 44px; }
.land-txt h2 { font-size: 1.7em; color: var(--teal); text-wrap: balance; }
.land-txt p { margin: 10px 0 0; font-size: 1.02em; color: rgba(42, 51, 82, .8); }
.land-kicker { font-weight: 800; font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: var(--grape); margin-bottom: 6px; }
.land-pic { max-width: 452px; width: 100%; margin: 0 auto; }
.land-pic img.sq, .land-final-pic img.sq { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 3px solid var(--navy); border-radius: 30px; box-shadow: 0 6px 0 var(--navy); transition: transform .25s ease-out; }
.land-pic:hover img.sq { transform: rotate(-1.5deg) scale(1.02); }
.ava-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; aspect-ratio: 1/1; padding: 12px; }
.ava-wall span { display: block; border: 3px solid var(--navy); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 5px 0 var(--navy); transition: transform .26s ease-in, opacity .26s ease-in; }
.ava-wall span:nth-child(odd) { transform: rotate(-2deg); } .ava-wall span:nth-child(even) { transform: rotate(2deg); }
.ava-wall span.swap { transform: scale(.6) rotate(12deg); opacity: 0; }

.land-band { margin: 56px var(--bleed) 0; padding: 48px 16px; text-align: center; }
.land-band.cream { background: rgba(255, 255, 255, .6); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); padding-bottom: 0; }
.land-band.navy { background: var(--navy); }
.land-band-in { max-width: 1008px; margin: 0 auto; }
.land-band h1 { font-size: 1.9em; text-wrap: balance; }
.land-band img.wide { display: block; width: 100%; max-width: 860px; margin: 24px auto 0; aspect-ratio: 16/10; object-fit: cover; border: 3px solid var(--navy); border-bottom: 0; border-radius: 30px 30px 0 0; }

.land-final { text-align: center; margin-top: 64px; padding-bottom: 56px; }
.land-final-pic { position: relative; width: 240px; margin: 0 auto 20px; }
.land-final h1 { font-size: 2em; text-wrap: balance; }
.float-st { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--navy); background: var(--sun); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--navy); animation: bubble-bob 2.6s ease-in-out infinite; }
.float-st:nth-of-type(2) { background: var(--teal); color: #fff; } .float-st:nth-of-type(3) { background: var(--berry); color: #fff; } .float-st:nth-of-type(4) { background: var(--grape); color: #fff; }

.land-foot { margin: 0 var(--bleed); padding: 36px 16px 28px; background: var(--teal); color: #fff; }
.land-foot-in { max-width: 1008px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.land-foot-in div { display: flex; flex-direction: column; gap: 6px; font-size: .9em; }
.land-foot-in b { font-family: var(--font-title); font-size: 1.15em; opacity: .75; margin-bottom: 2px; }
.land-foot-in a { color: #fff; font-weight: 800; text-decoration: none; } .land-foot-in a:hover { text-decoration: underline; }
.land-foot-in span { opacity: .85; }

.reveal .land-pic, .reveal .land-txt, .land-band.reveal .land-band-in, .land-final.reveal > * { opacity: 0; transition: transform .6s cubic-bezier(.2, 1.1, .4, 1), opacity .5s ease-out; }
.reveal .land-pic { transform: translateY(30px) scale(.94); transition-delay: .1s; }
.reveal .land-txt { transform: translateY(24px); }
.land-band.reveal .land-band-in, .land-final.reveal > * { transform: translateY(26px); }
.reveal.in .land-pic, .reveal.in .land-txt, .land-band.reveal.in .land-band-in, .land-final.reveal.in > * { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .land-hero { grid-template-columns: 1.15fr 1fr; gap: 48px; margin-top: 28px; min-height: 440px; }
  .land-hero-txt h1 { font-size: 2.1em; }
  .land-hero-txt { max-width: 420px; }
  .land-block { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 88px; }
  .land-block.flip .land-pic { order: -1; }
  .land-txt h2 { font-size: 2.5em; }
  .land-txt p { font-size: 1.12em; }
  .reveal .land-pic { transform: translateX(50px) scale(.94); } .reveal.flip .land-pic { transform: translateX(-50px) scale(.94); }
  .land-band { padding-top: 72px; margin-top: 96px; } .land-band.navy { padding-bottom: 72px; }
  .land-band h1 { font-size: 2.7em; }
  .land-final h1 { font-size: 2.8em; } .land-final-pic { width: 300px; }
  .land-foot-in { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .land-hero-pic .cover, #start::after, #start2::after, #start4::after, .float-st { animation: none; } .twinkle { display: none; } .reveal .land-pic, .reveal .land-txt, .land-band.reveal .land-band-in, .land-final.reveal > * { opacity: 1; transform: none; transition: none; } }
.land-sub { text-align: center; margin: -6px 0 14px; font-size: 1.05em; font-weight: 700; color: rgba(42, 51, 82, .75); text-wrap: balance; }
a.btn.sun { background: var(--sun); color: var(--navy); }

/* лента умений под героем */
.land-strip { margin: 26px var(--bleed) 0; padding: 18px max(16px, calc(50vw - 504px)) 20px; border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); background: rgba(255, 255, 255, .55); }
.land-strip-cap { text-align: center; font-weight: 800; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; color: rgba(42, 51, 82, .6); margin-bottom: 14px; }
.land-powers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.power { display: flex; align-items: center; gap: 10px; min-width: 0; }
.power-ic { width: 48px; height: 48px; flex: none; border-radius: 16px; border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.power b { display: block; font-family: var(--font-title); font-size: 1.08em; line-height: 1.1; }
.power span:not(.power-ic) { display: block; font-size: .82em; line-height: 1.25; color: rgba(42, 51, 82, .7); margin-top: 2px; }
.power:hover .power-ic { animation: bubble-bob .6s ease-in-out; }
@media (min-width: 760px) { .land-powers { grid-template-columns: repeat(4, 1fr); gap: 20px; } .land-strip { padding-top: 22px; padding-bottom: 26px; } }
/* картинки первой страницы без рамок: светлые растворяются в фоне, сцены — в мягкой форме-капле */
.land-hero-pic { border: 0; box-shadow: none; background: none; border-radius: 0; overflow: visible; }
.land-hero-pic .cover, .land-pic img.sq.soft, .land-final-pic img.sq, .land-band img.wide { border: 0; box-shadow: none; border-radius: 0; -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 74%, transparent 100%); mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 74%, transparent 100%); }
.land-band img.wide { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); }
.land-pic img.sq.blob { border: 0; box-shadow: none; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
.land-block.flip .land-pic img.sq.blob { border-radius: 54% 46% 48% 52% / 46% 54% 48% 52%; }
.land-pic:hover img.sq { transform: scale(1.03); }

/* ===== кабинет по схеме Duolingo: меню, центр с тропинкой, правая колонка ===== */
.app-grid { display: block; }
.rail, .side-logo { display: none; }
.tabs button { position: relative; }
.tab-dot { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--berry); color: #fff; font: 800 11px/18px var(--font-body); font-style: normal; border: 2px solid #fff; }
.tabs button { max-width: 110px; font-size: .74em; flex-direction: column; gap: 1px; min-height: 54px; }

.unit { margin-top: 22px; }
.unit-head { position: sticky; top: 8px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--c); color: #fff; border: 3px solid var(--navy); box-shadow: 0 5px 0 var(--navy); }
.unit-k { font-size: .7em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.unit-t { font-family: var(--font-title); font-weight: 800; font-size: 1.3em; line-height: 1.1; }
.unit-sub { font-size: .8em; font-weight: 700; opacity: .9; margin-top: 2px; }
.unit-btn { flex: none; min-height: 40px; padding: 6px 12px; font-size: .8em; background: rgba(255, 255, 255, .18); color: #fff; border: 2px solid rgba(255, 255, 255, .7); box-shadow: none; border-radius: 14px; }
.unit-path { position: relative; padding: 18px 0 8px; }
.pnode { position: relative; display: flex; justify-content: center; padding: 9px 0; }
.app-main { overflow-x: clip; }
.pnode.cur { padding-top: 46px; }
.pnode .knot { position: relative; left: var(--x, 0px); width: 78px; height: 78px; min-height: 0; padding: 0; border-radius: 50%; border: 4px solid var(--navy); background: var(--cream-2); color: rgba(42, 51, 82, .45); box-shadow: 0 6px 0 var(--navy); display: flex; align-items: center; justify-content: center; overflow: visible; }
.pnode .knot:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.pnode .knot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pnode.done .knot { border-color: var(--c); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, var(--navy)); }
.pnode.locked .knot { border-style: dashed; border-color: rgba(42, 51, 82, .3); box-shadow: 0 6px 0 rgba(42, 51, 82, .15); background: #fff; }
.pnode.locked .knot img { filter: grayscale(1); opacity: .5; }
.pnode.avail .knot::after, .pnode.cur .knot::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 4px dashed var(--sun); animation: spin-slow 14s linear infinite; }
.pnode .badge { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.pnode .badge.gold { background: #ffd45a; color: #8a5a00; }
.pnode.chest .knot { border-radius: 22px; background: #fff; padding: 10px; }
.pnode.chest.locked .knot { filter: grayscale(.8); opacity: .75; }
.pnode.chest.ready .knot { border-color: var(--sun); box-shadow: 0 6px 0 #d9a21f; animation: chest-hop 1.6s ease-in-out infinite; }
.pnode.chest.open .knot { border-color: var(--teal); box-shadow: none; }
.pnode.bonus .knot { border-color: var(--tang); }
.pnode .start-bubble { left: calc(50% + var(--x, 0px)); margin-left: -46px; width: 92px; text-align: center; top: 4px; padding: 2px 0; }
.pnode .start-bubble::after { left: 50%; margin-left: -6px; }
.pnode .path-hero { left: calc(50% + var(--x, 0px) + 62px); right: auto; top: 58px; width: 52px; height: 52px; }
.pnode.hl .path-hero { left: auto; right: calc(50% - var(--x, 0px) + 62px); }
.path-mascot { position: absolute; right: 4px; top: 120px; width: 84px; height: 84px; border-radius: 22px; border: 3px solid var(--navy); object-fit: cover; box-shadow: 0 4px 0 var(--navy); }
.node-pop { position: absolute; z-index: 8; top: calc(100% - 2px); left: 50%; width: min(300px, 86vw); margin-left: calc(-1 * min(150px, 43vw)); background: var(--c, var(--teal)); color: #fff; border: 3px solid var(--navy); border-radius: 20px; box-shadow: 0 6px 0 var(--navy); padding: 14px; text-align: left; animation: bounce-in .2s ease both; }
.node-pop::before { content: ""; position: absolute; top: -10px; left: calc(50% + var(--x, 0px)); margin-left: -8px; width: 14px; height: 14px; background: var(--c, var(--teal)); border-left: 3px solid var(--navy); border-top: 3px solid var(--navy); transform: rotate(45deg); }
.node-pop .pill { background: rgba(255, 255, 255, .22); color: #fff; }
.node-pop .pop-go { background: #fff; color: var(--navy); min-height: 46px; }
.pnode.locked .node-pop { background: #fff; color: var(--navy); --c: #fff; }

@media (min-width: 1000px) {
  .wrap:has(.app-grid) { max-width: none; padding: 24px 32px 48px 288px; }
  .app-grid { display: grid; grid-template-columns: minmax(0, 592px) 368px; gap: 48px; justify-content: center; align-items: start; }
  .app-grid.solo { grid-template-columns: minmax(0, 592px); }
  .rail { display: block; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; padding: 2px 6px 12px; }
  .rail::-webkit-scrollbar { display: none; }
  .app-grid:not(.solo) .main-head { display: none; }
  .app-grid:not(.solo) .main-greet { margin-top: 0 !important; }
  .tabs { left: 0; top: 0; bottom: 0; right: auto; width: 256px; padding: 24px 16px; align-items: stretch; justify-content: flex-start; gap: 18px; background: rgba(255, 250, 240, .92); border-top: 0; border-right: 3px solid var(--line); box-shadow: none; backdrop-filter: none; }
  .side-logo { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; font-family: var(--font-title); font-weight: 800; font-size: 1.7em; color: var(--teal); letter-spacing: -.02em; }
  .tabs-row { flex-direction: column; gap: 8px; }
  .tabs button { max-width: none; width: 100%; flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 8px 14px; font-size: .95em; text-transform: uppercase; letter-spacing: .05em; border-color: transparent; background: transparent; }
  .tabs button:hover { background: rgba(42, 51, 82, .06); }
  .tabs button.on { background: rgba(43, 179, 163, .16); color: var(--navy); border-color: var(--teal); box-shadow: none; }
  .tabs button i { font-size: 20px; }
  .tab-dot { position: static; margin-left: auto; }
  .tabs .quick-cta { display: none !important; }
  .unit-head { top: 16px; padding: 16px 18px; }
  .unit-t { font-size: 1.5em; }
  .pnode .knot { width: 86px; height: 86px; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .wrap:has(.app-grid) { padding-left: 120px; padding-right: 24px; }
  .app-grid { grid-template-columns: minmax(0, 520px) 320px; gap: 32px; }
  .tabs { width: 92px; padding: 20px 12px; }
  .side-logo { font-size: 0; justify-content: center; padding: 4px 0 8px; } .side-logo svg { width: 34px; height: 34px; }
  .tabs button { justify-content: center; padding: 8px 0; } .tabs button span { display: none; }
  .tab-dot { position: absolute; top: 2px; right: 6px; margin: 0; }
}

/* ===== цвет сезона красит всю миссию ===== */
.mission { position: relative; }
.season-wash { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 45% at 85% 0%, color-mix(in srgb, var(--c) 32%, transparent) 0%, transparent 70%), radial-gradient(60% 40% at 0% 100%, color-mix(in srgb, var(--c) 20%, transparent) 0%, transparent 70%); }
.mission .progress-dots:not(.gold) i.on { background: var(--c); }
.mission .season-pill { background: color-mix(in srgb, var(--c) 22%, #fff); color: var(--navy); }
.mission .step-tag:not(.fix) { color: color-mix(in srgb, var(--c) 70%, var(--navy)); }
.mission .card.img, .mission .messenger { border-color: var(--navy); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 55%, var(--navy)); }
.mission .opt:not(:disabled):hover { border-color: var(--c); }
.bar.berry > i { background: var(--berry); color: #fff; }

/* нервы Жорика */
.nerves { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: .74em; font-weight: 800; color: var(--berry); }
.nerves img { width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--navy); object-fit: cover; background: #fdebd0; }
.nerves .bar { height: 12px; border-width: 2px; }
.nerves.bump { animation: pop-in .35s ease-out; }

/* чат как мессенджер */
.messenger { border: 3px solid var(--navy); border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 5px 0 var(--navy); }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--cream-2); border-bottom: 3px solid var(--line); }
.msg-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 3px solid var(--navy); background: var(--grape); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 800; font-size: 1.2em; }
.messenger.villain .msg-ava { background: var(--berry); }
.msg-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-status { font-size: .74em; font-weight: 800; color: var(--teal); }
.messenger .chat { margin: 0; padding: 12px; min-height: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: repeating-linear-gradient(135deg, rgba(42, 51, 82, .025) 0 12px, transparent 12px 24px); }
.messenger .bubble { max-width: 88%; margin: 0; position: relative; padding-bottom: 18px; }
.msg-time { position: absolute; right: 10px; bottom: 3px; font-size: .68em; font-weight: 700; opacity: .45; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.bubble.typing i { width: 8px; height: 8px; border-radius: 50%; background: rgba(42, 51, 82, .45); animation: typing-dot 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* предметы «как в жизни» */
.art { margin-top: 12px; border: 3px solid var(--navy); border-radius: 18px; background: #fff; padding: 12px 14px; box-shadow: 0 4px 0 var(--navy); animation: bounce-in .4s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: .25s; }
.art-h { font-family: var(--font-title); font-weight: 800; text-align: center; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px dashed rgba(42, 51, 82, .3); }
.art-row { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: .92em; }
.art-row i { flex: 1; border-bottom: 2px dotted rgba(42, 51, 82, .25); transform: translateY(-3px); }
.art-row em { font-style: normal; font-weight: 800; font-size: .8em; width: 22px; color: rgba(42, 51, 82, .55); }
.art-row b.q { color: var(--berry); }
.art-row b.plus { color: var(--teal); }
.art-row.total { margin-top: 6px; padding-top: 8px; border-top: 2px dashed rgba(42, 51, 82, .3); font-weight: 800; font-size: 1em; }
.art.receipt { font-family: ui-monospace, "SF Mono", Menlo, monospace; border-radius: 10px 10px 0 0; border-bottom: 0; position: relative; padding-bottom: 18px; background: #fffdf7; transform: rotate(-1deg); }
.receipt-edge { position: absolute; left: -3px; right: -3px; bottom: -9px; height: 12px; background: linear-gradient(135deg, #fffdf7 6px, transparent 0) 0 0 / 12px 12px repeat-x, linear-gradient(225deg, #fffdf7 6px, transparent 0) 0 0 / 12px 12px repeat-x; filter: drop-shadow(0 3px 0 var(--navy)); }
.art.push { display: flex; gap: 10px; align-items: flex-start; border-radius: 22px; background: rgba(255, 255, 255, .92); }
.push-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--grape); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--navy); }
.art.tags { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; box-shadow: none; background: none; padding: 0; }
.tag-card { position: relative; border: 3px solid var(--navy); border-radius: 14px; background: #fff; padding: 22px 10px 12px; text-align: center; box-shadow: 0 4px 0 var(--navy); }
.tag-card:nth-child(odd) { transform: rotate(-2deg); } .tag-card:nth-child(even) { transform: rotate(2deg); }
.tag-hole { position: absolute; top: 7px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--navy); background: var(--cream); }
.tag-price { font-size: 1.5em; margin-top: 2px; }
.tag-card.crossed .tag-price { text-decoration: line-through; text-decoration-color: var(--berry); opacity: .6; }
.tag-badge { position: absolute; top: -10px; right: -8px; background: var(--berry); color: #fff; border: 3px solid var(--navy); border-radius: 12px; padding: 1px 8px; font-weight: 800; font-size: .8em; transform: rotate(8deg); }
.art.sale { text-align: center; background: linear-gradient(160deg, #fff 0%, rgba(255, 201, 60, .35) 100%); position: relative; padding-top: 18px; }
.art.sale.popup { background: linear-gradient(160deg, #3a2f6b 0%, #6b4fd6 100%); color: #fff; border-radius: 22px; }
.sale-timer { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--berry); color: #fff; border: 3px solid var(--navy); border-radius: 12px; padding: 1px 10px; font-weight: 800; font-size: .82em; white-space: nowrap; animation: timer-blink 1s steps(2, start) infinite; }
@keyframes timer-blink { 50% { background: #ff3b66; } }
.sale-old { text-decoration: line-through; opacity: .6; font-weight: 800; }
.sale-new { font-size: 1.7em; }
.sale-btn { display: inline-block; margin-top: 8px; padding: 6px 26px; border-radius: 14px; background: var(--sun); color: var(--navy); border: 3px solid var(--navy); font-family: var(--font-title); font-weight: 800; animation: bubble-bob 1.2s ease-in-out infinite; }
.art.call { text-align: center; background: linear-gradient(180deg, #2a3352 0%, #3c4870 100%); color: #fff; border-radius: 24px; padding: 18px 14px; }
.call-ava { display: inline-flex; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 3px solid rgba(255, 255, 255, .5); align-items: center; justify-content: center; font-family: var(--font-title); font-size: 1.6em; font-weight: 800; animation: call-ring 1.2s ease-in-out infinite; }
@keyframes call-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 60% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.call-btn { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2em; border: 3px solid #fff; }
.call-btn.no { background: var(--berry); } .call-btn.yes { background: var(--teal); }
.art.qr { display: flex; gap: 12px; align-items: center; background: #fffbe8; transform: rotate(-1.5deg); }
.qr-grid { width: 84px; height: 84px; flex: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 5px; background: #fff; border: 3px solid var(--navy); border-radius: 8px; }
.qr-grid i { background: transparent; border-radius: 1px; } .qr-grid i.on { background: var(--navy); }
@media (prefers-reduced-motion: reduce) { .art, .sale-timer, .sale-btn, .call-ava, .bubble.typing i { animation: none; } }
.art.receipt { margin-bottom: 22px; }

/* общее фото класса */
.class-photo { margin-top: 14px; border: 3px solid var(--navy); border-radius: 24px; background: #fff; box-shadow: 0 5px 0 var(--navy); overflow: hidden; }
.cp-cap { display: flex; align-items: center; padding: 10px 14px; border-bottom: 3px solid var(--line); background: var(--cream-2); color: var(--navy); }
.cp-scene { position: relative; padding: 18px 8px 14px; background: linear-gradient(180deg, #d8f1ec 0%, #eaf7f4 62%, transparent 62%); }
.cp-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, #f6dcae 0%, #fbe9c9 100%); border-top: 3px solid rgba(42, 51, 82, .15); z-index: 0; }
.cp-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 2px; }
.cp-kid { position: relative; width: 58px; text-align: center; }
.cp-ava { display: block; width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; border: 3px solid var(--navy); overflow: hidden; background: #fff; filter: grayscale(.55) brightness(1.03); transition: filter .2s; }
.cp-ava img { width: 100%; height: 100%; object-fit: cover; }
.cp-kid.today .cp-ava { filter: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 179, 163, .3); animation: bubble-bob 1.8s ease-in-out infinite; }
.cp-kid.you .cp-ava { filter: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 201, 60, .45); width: 60px; height: 60px; margin-top: -8px; }
.cp-kid.jorik .cp-ava { filter: none; border-color: var(--berry); background: #fdebd0; transform: rotate(6deg) translateY(6px); }
.cp-nick { display: block; margin-top: 3px; font-size: .62em; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(42, 51, 82, .75); }
.cp-kid.you .cp-nick { color: var(--navy); background: var(--sun); border-radius: 8px; padding: 1px 4px; display: inline-block; }
.cp-wave { position: absolute; top: -8px; right: 0; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; animation: twinkle 2.2s ease-in-out infinite; }
@media (min-width: 1000px) { .cp-kid { width: 68px; } .cp-ava { width: 60px; height: 60px; } .cp-kid.you .cp-ava { width: 70px; height: 70px; } }
@media (prefers-reduced-motion: reduce) { .cp-kid.today .cp-ava, .cp-wave { animation: none; opacity: 1; } }

/* картинки блоков главной: мягкий край вместо обрезки, плавание, живые значки; вырезанные PNG из Runable встают без маски */
.land-pic { position: relative; }
.land-pic img.sq.blob, .land-pic img.sq.soft { border: 0; box-shadow: none; border-radius: 0; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, rgba(0, 0, 0, .55) 63%, transparent 72%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, rgba(0, 0, 0, .55) 63%, transparent 72%); }
.land-block.flip .land-pic img.sq.blob { border-radius: 0; }
.land-pic img.sq.cut { border: 0; box-shadow: none; border-radius: 0; object-fit: contain; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 10px 0 rgba(42, 51, 82, .08)); }
.pic-float { animation: pic-float 6s ease-in-out infinite; }
.land-block.flip .pic-float { animation-delay: -3s; }
@keyframes pic-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(.6deg); } }
.pic-st { z-index: 2; color: #fff; width: 52px; height: 52px; }
.pic-st .tick { transform-origin: 12px 12px; animation: tick-round 6s steps(12) infinite; }
@keyframes tick-round { to { transform: rotate(360deg); } }
.reveal .pic-st { opacity: 0; transform: scale(.3); transition: opacity .4s ease-out .5s, transform .5s cubic-bezier(.2, 1.5, .4, 1) .5s; }
.reveal.in .pic-st { opacity: 1; transform: none; }
.land-pic:hover img.sq { transform: none; }
.land-pic:hover .pic-float { animation-duration: 2.5s; }
@media (prefers-reduced-motion: reduce) { .pic-float, .pic-st .tick { animation: none; } .reveal .pic-st { opacity: 1; transform: none; transition: none; } }

/* кадровая анимация: кадры стопкой поверх базовой картинки */
.host-img { position: relative; }
.host-img .fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.land-hero-pic .fr { position: absolute; inset: 0; width: 100%; height: 100%; }
.land-block { position: relative; }
.jorik-peek { position: absolute; z-index: 3; right: calc(50% - 50vw); bottom: -24px; width: 150px; height: 150px; pointer-events: none; opacity: 0; transition: opacity .5s; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); mask-composite: intersect; }
.jorik-peek.on { opacity: 1; }
.jorik-peek .fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .jorik-peek { width: 230px; height: 230px; bottom: -40px; } }

/* картинки блоков — как первая: целиком, без обрезки, края мягко растворяются в фоне страницы */
.land-pic { max-width: 560px; }
.land-pic img.sq, .land-pic img.sq.blob, .land-pic img.sq.soft, .land-block.flip .land-pic img.sq.blob {
  aspect-ratio: 16 / 10; object-fit: cover; border: 0; box-shadow: none; border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.land-pic img.sq.cut { aspect-ratio: 1 / 1; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
.land-final-pic img.sq { aspect-ratio: 1 / 1; }
@media (min-width: 760px) { .land-block { grid-template-columns: 1fr 1.15fr; } .land-block.flip { grid-template-columns: 1.15fr 1fr; } }

/* сундук и Жорик у тропинки — рисунки Runable на кремовом фоне */
.chest-big, .pnode.chest .knot, .node.chest .knot { background: #fff4e0; }
.chest-big { overflow: hidden; padding: 6px; }
.chest-big.glow { box-shadow: 0 5px 0 var(--navy), 0 0 0 8px rgba(255, 201, 60, .35), 0 0 40px 10px rgba(255, 201, 60, .55); transition: box-shadow .4s; }
.pnode.chest .knot { padding: 3px; overflow: hidden; }
.day-chest img { border-radius: 10px; }
.path-peek { position: absolute; right: -16px; top: 110px; width: 130px; height: 130px; pointer-events: none; }
.path-peek .path-mascot { position: static; width: 84px; height: 84px; margin: 20px 0 0 30px; }
.path-peek.on .path-mascot { display: none; }
.path-peek .fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); mask-composite: intersect; }
@media (min-width: 1000px) { .path-peek { width: 170px; height: 170px; right: -8px; } }
/* герой ребёнка — внутри бабла «Начать», а не отдельной иконкой сбоку */
.pnode .start-bubble.with-me { display: inline-flex; align-items: center; gap: 6px; width: auto; margin-left: 0; transform: translateX(-50%); padding: 2px 12px 2px 3px; white-space: nowrap; animation: bubble-bob-c 1.4s ease-in-out infinite; }
.sb-me { width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--navy); background: #fff; font-style: normal; }
@keyframes bubble-bob-c { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.pnode.cur { padding-top: 52px; }
@media (prefers-reduced-motion: reduce) { .pnode .start-bubble.with-me { animation: none; } }

/* монеты в копилку */
.coin-drop { position: absolute; top: -18px; z-index: 5; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); border: 3px solid var(--navy); color: var(--navy); font: 800 12px/18px var(--font-title); text-align: center; pointer-events: none; opacity: 0; animation: coin-fall .55s cubic-bezier(.5, 0, .9, .6) forwards; }
@keyframes coin-fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--fall, 80px)) rotate(200deg) scale(.7); opacity: 0; } }
.bar.clink { animation: bar-clink .18s ease-out; }
@keyframes bar-clink { 0% { transform: scaleY(1); } 50% { transform: scaleY(1.25) translateY(1px); } 100% { transform: scaleY(1); } }

/* Жорик в итоге эпизода */
.sum-jorik { position: relative; display: inline-block; width: 150px; height: 150px; border-radius: 22px; overflow: hidden; }
.sum-jorik .fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; border: 3px solid var(--navy); box-sizing: border-box; }
.sum-body .sum-jorik .hero-img { margin: 0; }

/* золотая наклейка переливается: блик идёт за наклоном телефона или мышью */
.sticker.gold { --gx: 50%; --gy: 50%; background: radial-gradient(circle at var(--gx) var(--gy), #fffbe6 0%, rgba(255, 251, 230, 0) 38%), conic-gradient(from calc(var(--ga, 0) * 1deg) at 50% 50%, #ffe08a, #ffd45a, #ffc1e3, #b8f0e4, #ffe9a8, #ffd45a, #ffe08a); }
.sticker.gold svg { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); position: relative; z-index: 1; }

/* ===== 2026-09: порядок в рамках. Жёсткая рамка и «ступенька» — только у главного действия; остальное — тонко и мягко ===== */
:root { --soft-line: rgba(42, 51, 82, .10); --soft-shadow: 0 14px 28px -18px rgba(42, 51, 82, .35), 0 2px 0 rgba(42, 51, 82, .05); }
.app-grid .card, .sum .card, .chest-box { border: 2px solid var(--soft-line); box-shadow: var(--soft-shadow); border-radius: 26px; }
.app-grid .card.soft { border: 2px solid var(--soft-line); box-shadow: none; background: rgba(255, 255, 255, .78); }
.app-grid .card.img > .cover:first-child, .app-grid .card > .cover:first-child { border-radius: 24px 24px 0 0; }
.app-grid .card.raid { border-color: rgba(255, 107, 138, .28); box-shadow: 0 16px 30px -18px rgba(255, 107, 138, .7); }
.app-grid .card.raid.won { border-color: rgba(43, 179, 163, .3); box-shadow: 0 16px 30px -18px rgba(43, 179, 163, .7); }
.app-grid .card.howto, .app-grid .card.practice, .app-grid .card.tint-grape { border-color: rgba(138, 107, 255, .26); box-shadow: 0 16px 30px -18px rgba(138, 107, 255, .7); }
.app-grid .card.bonus { border: 2px solid rgba(255, 138, 61, .35); box-shadow: 0 16px 30px -18px rgba(255, 138, 61, .75); }
.app-grid .card.fridge { border-color: rgba(80, 170, 210, .28); box-shadow: 0 16px 30px -18px rgba(80, 170, 210, .7); }
.app-grid .card.fridge.ready, .app-grid .card.tint-teal, .app-grid .day-tasks.all { border-color: rgba(43, 179, 163, .35); box-shadow: 0 16px 30px -18px rgba(43, 179, 163, .7); }
.app-grid .card.tint-sun { border-color: rgba(255, 201, 60, .5); box-shadow: 0 16px 30px -18px rgba(224, 168, 0, .6); }
.app-grid .card.tint-berry { border-color: rgba(255, 107, 138, .28); box-shadow: 0 16px 30px -18px rgba(255, 107, 138, .6); }
.app-grid .class-photo { border: 2px solid var(--soft-line); box-shadow: var(--soft-shadow); border-radius: 26px; }
.app-grid .cp-cap { border-bottom-width: 2px; }
.app-grid .week > div, .app-grid .week-goal, .app-grid .day-task { border-width: 2px; }
.app-grid .week > div.today { border-color: var(--navy); border-width: 2px; }
.app-grid .hero-card, .app-grid .week-chip { border-width: 2px !important; }
.app-grid .hero-card + .spacer + .week-chip + div { border-width: 2px !important; }
/* второстепенные кнопки — без ступеньки; главная кнопка карточки остаётся жёсткой */
.app-grid button.light, .app-grid button.sm.light { border-width: 2px; }
.app-grid .card button.full:not(.light) { border-width: 3px; box-shadow: 0 5px 0 var(--navy); }
/* нижнее меню на телефоне: вкладки без рамок, активная — плашкой */
@media (max-width: 999px) {
  .tabs button { border-color: transparent; background: transparent; }
  .tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
}

/* ===== шаг 2: плавная смена экранов ===== */
.screen-ghost { position: fixed; z-index: 30; pointer-events: none; max-height: 100vh; overflow: hidden; animation: ghost-out .22s ease-in forwards; }
@keyframes ghost-out { to { opacity: 0; transform: scale(.985) translateY(-6px); filter: blur(2px); } }
/* призрак — копия уходящего экрана; у копии анимации появления стартуют заново (ведущий снова «выезжает», пузырь подпрыгивает) — глушим */
.screen-ghost *, .screen-ghost *::before, .screen-ghost *::after { animation: none !important; transition: none !important; }
#app.screen-in > *:not(.tabs) { animation: screen-in .34s cubic-bezier(.2, .9, .3, 1) backwards; }
#app.screen-in > .fade { animation: screen-in .34s cubic-bezier(.2, .9, .3, 1) backwards; }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen-ghost { display: none; } #app.screen-in > * { animation: none; } }

/* ===== шаг 3: формат «сторис» ===== */
.story-mode { cursor: pointer; min-height: calc(100dvh - 120px); -webkit-tap-highlight-color: transparent; }
.story-mode .progress-dots { gap: 4px; } .story-mode .progress-dots i { height: 5px; }
.story-hint { margin: -6px 0 10px; text-align: center; font-size: .72em; font-weight: 800; color: rgba(42, 51, 82, .45); animation: screen-in .4s ease-out .4s both; }

/* ===== шаг 4: бенто-сетка на «Моё» ===== */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 124px; padding: 12px 10px; text-align: center; color: var(--navy); background: #fff; border: 2px solid var(--soft-line); border-radius: 24px; box-shadow: var(--soft-shadow); font: inherit; min-width: 0; }
button.bt { cursor: pointer; transition: transform .15s ease; } button.bt:active { transform: scale(.97); box-shadow: var(--soft-shadow); }
.bt-k { font-size: .66em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.bt-num { font-size: 2.3em; line-height: 1; } .bt-num small { font-size: .45em; opacity: .55; }
.bt-hero { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; padding: 14px; background: linear-gradient(135deg, #fff 0%, rgba(138, 107, 255, .14) 100%); }
.bt-ava { width: 104px; height: 104px; flex: none; min-height: 0; padding: 0; border: 3px solid var(--navy); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 5px 0 var(--navy); }
.bt-hero-txt { flex: 1; min-width: 0; }
.bt-xp { background: linear-gradient(160deg, #fff6d6, var(--sun)); border-color: rgba(224, 168, 0, .35); }
.bt-week .ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--cream-2) 0); }
.bt-week .ring span { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; }
.bt-week.met { background: linear-gradient(160deg, #fff, rgba(43, 179, 163, .22)); border-color: rgba(43, 179, 163, .4); }
.bt-stick { background: linear-gradient(160deg, #fff, rgba(43, 179, 163, .16)); }
.bt-jorik { background: linear-gradient(160deg, #fff, rgba(255, 107, 138, .16)); }
.bt-jorik img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 2px solid var(--navy); background: #fdebd0; }
.bt-goal { background: linear-gradient(160deg, #fff, rgba(255, 138, 61, .16)); }
.bt-fridge { background: linear-gradient(160deg, #fff, #dff1f9); }
.bt svg { vertical-align: -.15em; }
.goal-anchor, .fridge-anchor, .album-head { display: block; scroll-margin-top: 16px; }
@media (min-width: 560px) { .bento { grid-template-columns: repeat(4, 1fr); } .bt-hero { grid-column: span 2; grid-row: span 2; flex-direction: column; text-align: center; justify-content: center; } .bt-hero .bt-hero-txt { flex: none; width: 100%; } }

/* ===== шаг 5: стеклянные панели ===== */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  @media (max-width: 999px) { .tabs { background: rgba(255, 247, 232, .72); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-top: 1px solid rgba(42, 51, 82, .08); padding-top: 8px; } }
  @media (min-width: 1000px) { .tabs { background: rgba(255, 250, 240, .7); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); } }
  .unit-head { background: color-mix(in srgb, var(--c) 86%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
  .land-sticky { background: rgba(255, 244, 224, .74); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
  .chest-ov { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(42, 51, 82, .42); }
}

/* ===== шаг 6: живые цифры ===== */
.num-live { color: var(--teal); transition: color .2s; }

/* ===== шаг 7: пружинные микродвижения ===== */
button.light:active, button.sm:active, .day-task:active, .bt:active, .tabs button:active { transform: scale(.96); transition: transform .08s ease-out; }
.tabs button, .day-task, button.light { transition: transform .25s cubic-bezier(.2, 1.6, .4, 1), background .15s; }
.mission .opt, .sum .opt { animation: opt-in .36s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.mission .opt:nth-of-type(1) { animation-delay: .05s; } .mission .opt:nth-of-type(2) { animation-delay: .11s; } .mission .opt:nth-of-type(3) { animation-delay: .17s; } .mission .opt:nth-of-type(4) { animation-delay: .23s; } .mission .opt:nth-of-type(5) { animation-delay: .29s; } .mission .opt:nth-of-type(6) { animation-delay: .35s; }
@keyframes opt-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.app-main > .card, .app-main > .bento > .bt, .rail > .card { animation: opt-in .4s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.app-main > .card:nth-of-type(2), .bento > .bt:nth-child(2), .rail > .card:nth-of-type(2) { animation-delay: .06s; }
.app-main > .card:nth-of-type(3), .bento > .bt:nth-child(3), .rail > .card:nth-of-type(3) { animation-delay: .12s; }
.app-main > .card:nth-of-type(4), .bento > .bt:nth-child(4), .rail > .card:nth-of-type(4) { animation-delay: .18s; }
.app-main > .card:nth-of-type(n+5), .bento > .bt:nth-child(n+5) { animation-delay: .24s; }
.pnode .knot { transition: transform .25s cubic-bezier(.2, 1.6, .4, 1), box-shadow .12s; }
.pnode:not(.locked) .knot:hover { transform: translateY(-3px) scale(1.04); }

/* ===== шаг 8: плавающий фон ===== */
body::before, body::after { content: ""; position: fixed; z-index: -2; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .55; }
body::before { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: rgba(255, 201, 60, .55); animation: drift-a 26s ease-in-out infinite alternate; }
body::after { width: 40vmax; height: 40vmax; right: -12vmax; bottom: -10vmax; background: rgba(43, 179, 163, .38); animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -14vmax) scale(.9); } }
.season-wash { animation: wash-drift 18s ease-in-out infinite alternate; }
@keyframes wash-drift { to { transform: translate(-3%, 2%) scale(1.06); } }
body.adult::before, body.adult::after { display: none; }
body:not(.adult) { background: none; }

/* ===== шаг 10: заглушки при загрузке ===== */
.skel { padding-top: 8px; }
.sk { border-radius: 22px; margin: 12px 0; background: linear-gradient(100deg, rgba(42, 51, 82, .07) 30%, rgba(42, 51, 82, .13) 50%, rgba(42, 51, 82, .07) 70%) 0 0 / 200% 100%; animation: sk-shine 1.2s linear infinite; }
.sk-head { height: 56px; border-radius: 18px; } .sk-card { height: 190px; } .sk-row { height: 52px; border-radius: 16px; }
@keyframes sk-shine { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { body::before, body::after, .season-wash, .sk, .mission .opt, .app-main > .card, .bento > .bt, .rail > .card { animation: none; } }

/* ===== вырезанные картинки Runable: сцена героини по слоям ===== */
.land-hero { position: relative; }
.land-hero-pic.layered { position: relative; aspect-ratio: 1 / 1.05; max-width: 480px; width: 100%; margin: 0 auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.hs-glow { position: absolute; left: 8%; right: 8%; top: 10%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 201, 60, .45), rgba(255, 201, 60, 0)); animation: breathe 5s ease-in-out infinite; }
.hs-girl { position: absolute; left: 4%; right: 4%; top: -6%; bottom: -2%; animation: breathe 5s ease-in-out infinite; transform-origin: 50% 90%; }
.hs-girl .fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 0 rgba(42, 51, 82, .07)); }
.hs-st { position: absolute; width: 17%; aspect-ratio: 1; animation: orbit-x 5.6s ease-in-out infinite alternate; cursor: pointer; }
.hs-st img { display: block; width: 100%; height: 100%; animation: orbit-y 3.9s ease-in-out infinite alternate; filter: drop-shadow(0 6px 0 rgba(42, 51, 82, .12)); transition: scale .25s cubic-bezier(.2, 1.8, .4, 1); }
.hs-st:hover img { scale: 1.18; }
@keyframes orbit-x { from { transform: translateX(-9px) rotate(-5deg); } to { transform: translateX(11px) rotate(6deg); } }
@keyframes orbit-y { from { transform: translateY(-12px); } to { transform: translateY(10px); } }
.hs-jorik { position: absolute; z-index: 2; right: calc(50% - 50vw); bottom: -30px; width: 150px; pointer-events: none; transform: translateX(100%); animation: jorik-slide 11s ease-in-out 2.5s infinite; }
@keyframes jorik-slide { 0%, 8% { transform: translateX(100%); } 16%, 30% { transform: translateX(58%) rotate(-3deg); } 38%, 62% { transform: translateX(8%) rotate(0); } 66% { transform: translateX(2%) rotate(3deg); } 72%, 100% { transform: translateX(100%); } }
@media (min-width: 760px) { .hs-jorik { width: 230px; bottom: -50px; } }

/* вырезанные картинки блоков и их отдельные слои */
.land-pic.has-cut .pic-st { display: none; }
.cut-extra { position: absolute; z-index: 2; display: none; height: auto; pointer-events: none; filter: drop-shadow(0 5px 0 rgba(42, 51, 82, .1)); }
.land-pic.has-cut .cut-extra { display: block; }
.cut-extra.swing { transform-origin: 50% 0; animation: extra-swing 3.2s ease-in-out infinite alternate; }
@keyframes extra-swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.cut-extra.think { animation: extra-think 6s ease-in-out infinite; opacity: 0; }
.cut-extra.think.t2 { animation-delay: 3s; }
@keyframes extra-think { 0%, 4% { opacity: 0; transform: translateY(24px) scale(.5); } 14%, 44% { opacity: 1; transform: translateY(0) scale(1); } 27% { transform: translateY(-8px) scale(1.04); } 52%, 100% { opacity: 0; transform: translateY(-18px) scale(.8); } }
.cut-extra.splash { animation: extra-splash 2.6s ease-out infinite; }
.cut-extra.splash.s2 { animation-delay: .5s; transform: scaleX(-1); }
@keyframes extra-splash { 0% { opacity: 0; translate: 0 22px; scale: .5; } 25% { opacity: 1; translate: 0 -10px; scale: 1; } 70% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 14px; scale: .9; } }
.land-band img.wide.cut { border: 0; border-radius: 0; -webkit-mask-image: none; mask-image: none; object-fit: contain; aspect-ratio: 2 / 1; max-width: 900px; margin-top: 10px; }
.land-band.cream { padding-bottom: 0; }
.land-final-pic img.sq.cut { border: 0; box-shadow: none; border-radius: 0; -webkit-mask-image: none; mask-image: none; object-fit: contain; }
.land-final-pic.has-cut { width: 300px; }
@media (min-width: 760px) { .land-final-pic.has-cut { width: 380px; } }
@media (prefers-reduced-motion: reduce) { .hs-glow, .hs-girl, .hs-st, .hs-st img, .cut-extra { animation: none; } .cut-extra.think { opacity: 1; } .hs-jorik { display: none; } }

/* герой ребёнка в панели ответа: выражение лица — по силе хода */
.sheet-ic:has(.sheet-me) { width: 58px; height: 58px; border-radius: 18px; overflow: hidden; padding: 0; animation: sticker-slap .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.sheet-me { display: block; width: 100%; height: 100%; }
.sheet.risk .sheet-ic:has(.sheet-me) { border-color: var(--berry); } .sheet.best .sheet-ic:has(.sheet-me) { border-color: var(--teal); } .sheet.ok .sheet-ic:has(.sheet-me) { border-color: #d9a21f; }

/* ===== pack-4: вырезанные ведущие и Жорик, персонажи у тропинки, пустые экраны, набеги, предметы ===== */
.host-img.pose { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.host-img.pose img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 0 rgba(42, 51, 82, .08)); }
.hero-img[src*="jorik-"], .raid-jorik, .nerves img, .bt-jorik img, .cp-kid.jorik .cp-ava img { object-fit: contain !important; background: #fdebd0; }
.sum-jorik-pose { object-fit: contain; }
.chest-big, .pnode.chest .knot, .node.chest .knot { background: #fff; }
.path-pal { position: absolute; z-index: 1; right: -6px; top: 130px; width: 118px; height: auto; pointer-events: none; filter: drop-shadow(0 8px 0 rgba(42, 51, 82, .08)); animation: bubble-bob 3.2s ease-in-out infinite; }
.path-pal.left { right: auto; left: -8px; top: 470px; transform: scaleX(-1); animation-name: pal-bob-flip; }
@keyframes pal-bob-flip { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-4px); } }
@media (min-width: 1000px) { .path-pal { width: 170px; right: 10px; top: 120px; } .path-pal.left { left: 10px; top: 480px; } }
.empty-pic { display: inline-block; width: auto; max-width: 100%; object-fit: contain; flex: none; }
.squad-lock-card .empty-pic { margin-top: -6px; }
.raid-cover { display: block; width: calc(100% + 32px); margin: -16px -16px 12px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px 24px 0 0; }
.rail .raid-cover { aspect-ratio: 16 / 10; }
.item-pic { display: block; object-fit: contain; }
.fridge-ic.pic { background: #fff; padding: 2px; }
@media (prefers-reduced-motion: reduce) { .path-pal { animation: none; } }

/* объёмные значки меню */
.ic3 { display: block; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(42, 51, 82, .12)); transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.tabs button i { display: inline-flex; align-items: center; justify-content: center; }
.tabs button.on .ic3 { transform: scale(1.12) translateY(-1px); }
.tabs button:not(.on) .ic3 { filter: grayscale(.35) opacity(.85); }
@media (min-width: 1000px) { .tabs .ic3 { width: 34px; height: 34px; } }

/* ===== главная обычным текстом (для поиска и пока не загрузился скрипт) и взрослые страницы ===== */
html.has-token .landing-static { display: none; }
html:not(.has-token) #app > .skel { display: none; }
.landing-static .land-hero-pic .cover { animation: none; }
.land-faq { max-width: 760px; margin: 72px auto 0; }
.land-faq h2 { font-size: 1.7em; text-align: center; margin-bottom: 14px; }
.land-faq details, .doc-main details { background: #fff; border: 2px solid var(--soft-line); border-radius: 18px; padding: 12px 16px; margin: 8px 0; }
.land-faq summary, .doc-main summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.land-faq summary::before, .doc-main summary::before { content: "+"; font-family: var(--font-title); font-size: 1.2em; color: var(--teal); width: 14px; flex: none; }
.land-faq details[open] summary::before, .doc-main details[open] summary::before { content: "–"; }
.land-faq summary::-webkit-details-marker, .doc-main summary::-webkit-details-marker { display: none; }
.land-faq details p, .doc-main details p { margin: 8px 0 2px 24px; color: rgba(42, 51, 82, .82); }
body.doc { background: var(--cream); }
.doc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; max-width: 820px; margin: 0 auto; padding: 16px; font-weight: 800; font-size: .92em; }
.doc-nav span { flex: 1; } .doc-nav a { color: var(--navy); text-decoration: none; } .doc-nav a:hover { color: var(--teal); }
.doc-logo { font-family: var(--font-title); font-size: 1.5em; color: var(--teal) !important; }
.doc-main { max-width: 820px; margin: 0 auto; padding: 8px 16px 40px; }
.doc-main h1 { font-size: 2em; margin: 10px 0 8px; text-wrap: balance; }
.doc-lead { font-size: 1.1em; color: rgba(42, 51, 82, .78); margin: 0 0 18px; }
.doc-main section { background: #fff; border: 2px solid var(--soft-line); border-radius: 22px; padding: 16px 18px; margin: 12px 0; box-shadow: var(--soft-shadow); }
.doc-main section h2 { font-size: 1.2em; margin: 0 0 6px; color: var(--teal); }
.doc-main section p { margin: 0; }
.doc-cta { text-align: center; margin: 22px 0 0; }
.doc-cta .btn { background: var(--sun); color: var(--navy); border: 3px solid var(--navy); border-radius: 18px; box-shadow: 0 5px 0 var(--navy); padding: 12px 26px; min-height: 0; display: inline-flex; }
.doc-foot { max-width: 820px; margin: 0 auto; padding: 18px 16px 36px; font-size: .82em; color: rgba(42, 51, 82, .6); text-align: center; } .doc-foot a { color: var(--teal); }

/* ===== pack-5: объёмные значки и фигурные наклейки ===== */
.unit-head .ic3 { flex: none; filter: drop-shadow(0 3px 0 rgba(42, 51, 82, .25)); }
.day-ic.clay { background: none; width: 36px; height: 36px; }
.day-task.done .day-ic { background: none; }
.power-ic.clay { background: none !important; border: 0; box-shadow: none; width: 56px; height: 56px; }
.week-chip .flame:not(.on) .ic3 { filter: grayscale(1) opacity(.5); }
.bt .ic3 { margin-bottom: -2px; }
.pnode.locked .ic3 { filter: grayscale(.6) opacity(.7); }
.sticker.has-art { background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible; padding: 0; position: relative; }
.st-art { display: block; width: 122%; height: 122%; max-width: none; margin: -11%; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(42, 51, 82, .14)); transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.sticker.has-art:hover .st-art { transform: rotate(-5deg) scale(1.08); }
.sticker.gold.has-art .st-art { filter: drop-shadow(0 0 0 #d4a017) drop-shadow(0 0 7px rgba(255, 196, 40, .95)) saturate(1.15); }
.sticker.gold.has-art::after { top: -11%; left: -11%; width: 122%; height: 122%; transform: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) 0 0 / 300% 100% no-repeat; -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; animation: art-shine 3.2s ease-in-out infinite; }
@keyframes art-shine { 0%, 40% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
.sum-sticker .sticker.has-art { width: 150px !important; height: 150px !important; }
.sticker-sheet .sticker.has-art { border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .sticker.gold.has-art::after { animation: none; display: none; } }
@media (max-width: 999px) { .unit-head .ic3 { width: 36px; height: 36px; } .unit-head { gap: 8px; padding: 10px 12px; } .unit-btn { padding: 6px 9px; font-size: .74em; } .unit-t { font-size: 1.2em; } }

/* разборы для родителей и уроки для учителя */
.doc-crumb { margin: 6px 0 0; font-size: .85em; font-weight: 800; } .doc-crumb a { color: var(--teal); text-decoration: none; } .doc-crumb a::before { content: "← "; }
.doc-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; border: 2px solid var(--soft-line); margin: 6px 0 14px; }
.doc-main section h2 a { color: inherit; text-decoration: none; } .doc-main section h2 a:hover { text-decoration: underline; }
.doc-main ol, .doc-main ul { margin: 4px 0 0; padding-left: 22px; } .doc-main li { margin: 6px 0; } .doc-main li a { color: var(--teal); font-weight: 700; }
.doc-programs .doc-note { margin: 10px 0 0 !important; font-size: .95em; color: rgba(42, 51, 82, .7); }
.doc-size { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 8px; background: var(--cream-2, #f6ecd9); font-size: .82em; font-weight: 700; color: var(--navy-2, #5a6382); white-space: nowrap; }
.doc-q { background: rgba(255, 201, 60, .2) !important; border-color: rgba(224, 168, 0, .35) !important; }
.doc-quote { font-family: var(--font-title); font-weight: 800; font-size: 1.25em; line-height: 1.25; margin: 2px 0 8px !important; }
.doc-rule { background: rgba(43, 179, 163, .1) !important; border-color: rgba(43, 179, 163, .35) !important; }
@media (max-width: 560px) { .doc-nav { font-size: .82em; gap: 4px 12px; } .doc-main h1 { font-size: 1.55em; } }
/* значки со светлой обводкой — на тёмной плашке активной вкладки (телефон) и на цветных шапках сезонов */
.tabs .ic3-l { display: none; }
@media (max-width: 999px) { .tabs button.on .ic3-d { display: none; } .tabs button.on .ic3-l { display: block; } }
@media (max-width: 999px) { .unit-btn span { display: none; } .unit-btn { width: 40px; padding: 0; justify-content: center; } }
.doc-logo { display: inline-flex; align-items: center; gap: 8px; }
.doc-logo .logo-mark, .land-logo .logo-mark { display: block; flex: none; }
