/* KOALA VPN — Mini App
   Палитра: эвкалипт, лес, песок, рассвет. Светлая и тёмная темы через CSS-переменные. */

:root {
  --bg: #F6F4EC;
  --card: #E6DFCC;
  --card-soft: #EFEADC;
  --text: #2F4A3A;
  --text-soft: #5C6B5E;
  --accent: #5E8C6A;
  --accent-deep: #2F4A3A;
  --dawn: #F2B880;
  --line: rgba(47, 74, 58, .14);
  --shadow: 0 10px 30px rgba(47, 74, 58, .10);
  --shadow-soft: 0 4px 14px rgba(47, 74, 58, .07);
  --radius: 24px;
  --radius-sm: 20px;
  --pad: 20px;
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #14201A;
  --card: #1E2E25;
  --card-soft: #23352B;
  --text: #E8EFE6;
  --text-soft: #9DB2A4;
  --accent: #7FAE8B;
  --accent-deep: #E8EFE6;
  --dawn: #E9A874;
  --line: rgba(232, 239, 230, .12);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  /* бумажная текстура + мягкий градиент */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(94, 140, 106, .10), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(242, 184, 128, .14), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .22 0 0 0 0 .18 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 18% 0%, rgba(127, 174, 139, .16), transparent 45%),
    radial-gradient(circle at 92% 10%, rgba(233, 168, 116, .10), transparent 42%);
}

h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }

/* ---------- фон: пятна и листья ---------- */

.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .55;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 { width: 300px; height: 300px; top: -90px; left: -80px; background: rgba(94, 140, 106, .35); }
.blob-2 { width: 260px; height: 260px; top: 32%; right: -110px; background: rgba(242, 184, 128, .32); animation-delay: -8s; }
.blob-3 { width: 320px; height: 320px; bottom: -120px; left: 18%; background: rgba(94, 140, 106, .22); animation-delay: -14s; }

html[data-theme="dark"] .blob-1 { background: rgba(127, 174, 139, .22); }
html[data-theme="dark"] .blob-2 { background: rgba(233, 168, 116, .16); }
html[data-theme="dark"] .blob-3 { background: rgba(127, 174, 139, .14); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -30px, 0) scale(1.12); }
}

.leaves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* ---------- каркас ---------- */

.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px var(--pad) calc(96px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 17px;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  align-self: center;
  box-shadow: 0 0 0 4px rgba(94, 140, 106, .16);
}
.brand-sub {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), background .2s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: scale(.92) rotate(-18deg); }

/* ---------- экраны и переходы ---------- */

#screens { position: relative; }

.screen {
  display: none;
  animation: screen-in .26s cubic-bezier(.2, .9, .3, 1) both;
}
.screen.is-active { display: block; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 14px;
}
.subtitle {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- маскот ---------- */

.mascot-wrap {
  position: relative;
  display: grid;
  place-items: center;
  height: 236px;
  margin: 12px 0 4px;
}

.dawn {
  position: absolute;
  bottom: 18px;
  width: 200px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(242, 184, 128, .55), transparent 70%);
  opacity: 0;
  transition: opacity .6s ease;
  filter: blur(6px);
}

.koala {
  width: 240px;
  height: 220px;
  overflow: visible;
  animation: float 5.2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- коала: шерсть, уши, нос, глаза --- */

.fur { fill: #98A79B; }
.fur-soft { fill: #B6C2B4; }
.fur-light { fill: #D9D3C1; }
.ear-inner { fill: #C6A896; opacity: .85; }
.nose { fill: #33413A; }
.nose-shine { fill: rgba(255, 255, 255, .5); }
.eye-line { fill: none; stroke: #33413A; stroke-width: 3.4; stroke-linecap: round; }
.eye-white { fill: #FBF9F2; }
.pupil { fill: #33413A; }
.pupil-shine { fill: #FFFFFF; }
.lid { fill: #98A79B; }

html[data-theme="dark"] .fur { fill: #8CA091; }
html[data-theme="dark"] .fur-soft { fill: #A3B5A4; }
html[data-theme="dark"] .fur-light { fill: #C8C6B4; }
html[data-theme="dark"] .ear-inner { fill: #B18F7E; }
html[data-theme="dark"] .nose { fill: #101A14; }
html[data-theme="dark"] .eye-line { stroke: #101A14; }
html[data-theme="dark"] .pupil { fill: #101A14; }
html[data-theme="dark"] .eye-white { fill: #E8EFE6; }
html[data-theme="dark"] .lid { fill: #8CA091; }

/* ветка эвкалипта и тень */
.shadow {
  fill: #2F4A3A;
  opacity: .12;
  transform-origin: 120px 207px;
}
html[data-theme="dark"] .shadow { fill: #000; opacity: .28; }

.branch {
  transform-origin: 120px 190px;
  animation: sway 7s ease-in-out infinite;
}
.branch-line {
  fill: none;
  stroke: #7E6A54;
  stroke-width: 7;
  stroke-linecap: round;
}
.branch-leaf { fill: #6E9C7A; }
html[data-theme="dark"] .branch-line { stroke: #8A7458; }
html[data-theme="dark"] .branch-leaf { fill: #6D9A78; }

@keyframes sway {
  0%, 100% { transform: rotate(-.7deg); }
  50% { transform: rotate(.7deg); }
}

/* состояния глаз */

.eyes { transition: opacity .3s ease; }
.eyes-closed { opacity: 1; }
.eyes-open, .eyes-half { opacity: 0; }

.mascot-wrap[data-state="sleeping"] .eyes-closed { opacity: 1; }
.mascot-wrap[data-state="sleeping"] .zzz { opacity: 1; }
.mascot-wrap[data-state="sleeping"] .branch { animation-duration: 11s; }

.zzz {
  opacity: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  fill: var(--text-soft);
  transition: opacity .4s ease;
}
.zzz text { animation: zzz-rise 3s ease-in-out infinite; }
.zzz text:nth-child(2) { animation-delay: .5s; }
.zzz text:nth-child(3) { animation-delay: 1s; }

@keyframes zzz-rise {
  0% { opacity: 0; transform: translateY(4px); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* состояние: просыпается — веки плавно поднимаются, фон светлеет как рассвет */

.mascot-wrap[data-state="waking"] .dawn { opacity: 1; }
.mascot-wrap[data-state="waking"] .eyes-closed { opacity: 0; }
.mascot-wrap[data-state="waking"] .eyes-open {
  opacity: 1;
  transform-origin: 120px 97px;
  animation: wake-eyes 1.6s cubic-bezier(.2, .9, .3, 1) both;
}

@keyframes wake-eyes {
  0% { transform: scaleY(.05); opacity: .2; }
  55% { transform: scaleY(1.08); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* состояние: активен — глаза открыты, лёгкое моргание */

.mascot-wrap[data-state="active"] .eyes-closed { opacity: 0; }
.mascot-wrap[data-state="active"] .eyes-open {
  opacity: 1;
  transform-origin: 120px 97px;
  animation: blink 5s ease-in-out infinite;
}
.mascot-wrap[data-state="active"] .dawn { opacity: .55; }

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(.08); }
  96% { transform: scaleY(1); }
}

/* состояние: скоро закончится — глаза открыты, веки полуопущены */

.mascot-wrap[data-state="warning"] .eyes-closed { opacity: 0; }
.mascot-wrap[data-state="warning"] .eyes-open { opacity: 0; }
.mascot-wrap[data-state="warning"] .eyes-half { opacity: 1; }
.mascot-wrap[data-state="warning"] .dawn {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 100%, rgba(242, 184, 128, .85), transparent 72%);
}

/* ---------- карточки ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.card-label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 10px;
}

.muted { color: var(--text-soft); font-size: 14px; }
.hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.45;
}

/* статус */

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(94, 140, 106, .16);
  color: var(--accent-deep);
}
.status-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.status-pill[data-tone="off"] { background: rgba(242, 184, 128, .22); }
.status-pill[data-tone="warn"] { background: rgba(242, 184, 128, .3); }
.status-pill[data-tone="ban"] { background: rgba(180, 90, 80, .2); }

.status-days {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

/* «Скоро закончится» — тёплая плашка */
.status-days[data-warn="1"] {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(242, 184, 128, .32);
  color: #7A4A1E;
}
html[data-theme="dark"] .status-days[data-warn="1"] {
  background: rgba(233, 168, 116, .22);
  color: var(--dawn);
}

.status-line {
  margin-top: 12px;
  font-size: 15px;
}

.status-line[hidden] { display: none; }

/* скелетоны */

.skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--card-soft) 20%, color-mix(in srgb, var(--card-soft) 55%, var(--bg)) 40%, var(--card-soft) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-row { margin-top: 14px; display: grid; gap: 8px; }
.skeleton-line { height: 14px; width: 100%; }
.skeleton-line.short { width: 62%; }
.skeleton-card { height: 92px; display: grid; place-items: center; }

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

/* ссылка подписки */

.sub-link {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

/* кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2, 1.6, .4, 1), background .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.965); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-primary {
  background: var(--accent-deep);
  color: #F6F4EC;
  box-shadow: 0 8px 22px rgba(47, 74, 58, .22);
}
html[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #0E1712;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

#main-action { margin-top: 14px; }
#trial-btn { margin-top: 18px; }

/* инструкция */

.how-to { padding: 0; overflow: hidden; }
.how-to summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.how-to summary::-webkit-details-marker { display: none; }
.how-to summary svg { width: 20px; height: 20px; transition: transform .25s ease; color: var(--text-soft); }
.how-to[open] summary svg { transform: rotate(180deg); }

.steps {
  list-style: none;
  padding: 0 20px 20px;
  display: grid;
  gap: 14px;
  animation: screen-in .24s ease both;
}
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps b { font-size: 15px; }
.steps p { color: var(--text-soft); font-size: 13.5px; margin-top: 2px; }
.step-num {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(94, 140, 106, .18);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- пробный ---------- */

.trial-card { position: relative; overflow: hidden; }
.trial-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--dawn);
  color: #3A2A18;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.benefits { list-style: none; padding: 0; display: grid; gap: 10px; }
.benefits li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.gate-card { border: 1px dashed var(--line); background: var(--card-soft); }

/* ---------- входное предложение ---------- */

.entry-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(242, 184, 128, .22), transparent 55%),
    var(--card);
}
.entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.entry-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.entry-timer {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(94, 140, 106, .14);
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
}
html[data-theme="dark"] .entry-timer { color: var(--accent); }
.entry-note { font-size: 13.5px; color: var(--text-soft); }
.entry-expired { font-size: 13.5px; color: var(--text-soft); }

/* ---------- баннер «Сообщение» ---------- */

.notice-card { position: relative; display: grid; gap: 6px; border-left: 3px solid var(--accent); }
.notice-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 74, 58, .08);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.notice-title { font-weight: 800; font-size: 16px; padding-right: 34px; }
.notice-text { font-size: 14px; color: var(--text-soft); white-space: pre-line; }
.notice-card .btn { margin-top: 4px; }

/* ---------- админ-экран ---------- */

.admin-card { display: grid; gap: 10px; }
.admin-funnel { display: grid; gap: 6px; font-size: 14px; }
.admin-funnel .funnel-row { display: flex; justify-content: space-between; gap: 10px; }
.admin-funnel .funnel-row b { font-variant-numeric: tabular-nums; }
.admin-segments { display: grid; gap: 8px; }
.admin-seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.admin-seg .seg-name { color: var(--text-soft); }
.admin-seg .seg-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.admin-input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); }
.admin-list { display: grid; gap: 10px; }
.admin-item { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13.5px; }
.admin-item:first-child { border-top: 0; padding-top: 0; }
.admin-item .ai-title { font-weight: 800; }
.admin-item .ai-meta { color: var(--text-soft); font-size: 12.5px; }

/* ---------- тарифы ---------- */

.tariff-list { display: grid; gap: 12px; margin-top: 16px; }

.tariff {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), border-color .2s, box-shadow .2s;
}
.tariff:active { transform: scale(.985); }
.tariff[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(94, 140, 106, .25), var(--shadow-soft);
}
.tariff-name { font-weight: 800; font-size: 17px; }
.tariff-meta { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.tariff-price { text-align: right; }
.tariff-price b { font-size: 19px; font-weight: 800; }
.tariff-price span { display: block; font-size: 12px; color: var(--text-soft); }
.tariff-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--dawn);
  color: #3A2A18;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

/* ---------- друзья ---------- */

.friends-card { display: grid; gap: 10px; }
.friends-count { display: flex; align-items: baseline; gap: 10px; }
.count-num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent-deep);
}
html[data-theme="dark"] .count-num { color: var(--accent); }
.count-label { color: var(--text-soft); font-size: 14px; }

/* ---------- нижняя навигация ---------- */

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 24px));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 8px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--card) 82%, var(--bg));
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-btn {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 2px 7px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s, background .2s, transform .16s cubic-bezier(.2, 1.6, .4, 1);
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn:active { transform: scale(.92); }
.nav-btn.is-active {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
html[data-theme="dark"] .nav-btn.is-active { color: var(--accent); }

/* ---------- тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--accent-deep);
  color: #F6F4EC;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, 1.4, .4, 1);
  z-index: 30;
  text-align: center;
}
html[data-theme="dark"] .toast { background: var(--card-soft); color: var(--text); border: 1px solid var(--line); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- доступность ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .koala, .branch, .zzz text, .eyes-open, .eyes-half { animation: none !important; }
  .eyes-open, .eyes-half { transform: none !important; }
  .dawn { transition: none !important; }
}

@media (max-width: 360px) {
  .title { font-size: 26px; }
  .koala { width: 208px; }
  .mascot-wrap { height: 208px; }
}


/* ---------- ограниченный доступ ---------- */
body[data-blocked="1"] .nav { display: none; }
body[data-blocked="1"] .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }

