/* ============ Игра в жизнь — тёмный премиальный интерфейс ============ */
:root {
  --bg: #08080a;
  --bg-2: #0d0d11;
  --panel: rgba(18, 18, 23, .62);
  --glass: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
  --glass-strong: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  --line: rgba(255,255,255,.075);
  --line-2: rgba(255,255,255,.13);
  --text: #f3f2f5;
  --muted: rgba(243,242,245,.58);
  --dim: rgba(243,242,245,.36);
  --faint: rgba(243,242,245,.14);
  --up: #63d99a;
  --down: #ff7d8a;
  --warn: #f0c890;
  --accent: #d9aad2;
  --accent-2: #a98bdc;
  --accent-glow: rgba(196, 128, 186, .38);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --side: 264px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.45; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
::selection { background: rgba(217,170,210,.3); }
:focus-visible { outline: 1.5px solid rgba(255,255,255,.5); outline-offset: 2px; }

/* ---------- атмосфера: размытые световые пятна ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background:
  radial-gradient(120% 80% at 50% -10%, #17131b 0%, var(--bg) 55%); }
.ambient i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 38s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -18vmax; background: radial-gradient(circle, rgba(140, 92, 140, .55), transparent 65%); }
.ambient i:nth-child(2) { width: 38vmax; height: 38vmax; right: -14vmax; top: 18vh; background: radial-gradient(circle, rgba(92, 84, 150, .38), transparent 65%); animation-duration: 46s; animation-delay: -12s; }
.ambient i:nth-child(3) { width: 42vmax; height: 42vmax; left: 25vw; bottom: -30vmax; background: radial-gradient(circle, rgba(170, 110, 150, .26), transparent 65%); animation-duration: 52s; animation-delay: -20s; }
.ambient::after { content: ''; position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }

/* ---------- каркас ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, rgba(14,14,18,.86), rgba(10,10,13,.9)); border-right: 1px solid var(--line);
  backdrop-filter: blur(24px); overflow-y: auto; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), rgba(217,170,210,.14) 50%, rgba(255,255,255,.03)); border: 1px solid var(--line-2); }
.brand b { font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: -.01em; display: block; }
.brand small { color: var(--dim); font-size: 11.5px; }
.side-hello { padding: 14px 10px 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-hello h3 { margin: 0; font-family: var(--font-d); font-weight: 500; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.side-hello p { margin: 6px 0 0; color: var(--dim); font-size: 12px; }
.nav-group { color: var(--dim); font-size: 11.5px; padding: 14px 12px 6px; letter-spacing: .01em; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 13px;
  color: var(--muted); transition: color .2s, background .25s; font-size: 14px; width: 100%; text-align: left;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(217,170,210,.16), rgba(255,255,255,.04) 70%); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.nav-item.active::after { content: ''; position: absolute; right: 12px; width: 2px; height: 14px; border-radius: 2px; background: var(--text); }
.nav-item .dot { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; }
.nav-item .count { margin-left: auto; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--muted); }
.nav-item .sec-ic { color: var(--sc, var(--muted)); }
.side-foot { margin-top: auto; padding-top: 16px; }

.main { min-width: 0; padding: 0 36px 60px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; }
.crumbs b { color: var(--text); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-weight: 500;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), rgba(217,170,210,.2) 45%, rgba(80,60,90,.4)); border: 1px solid var(--line-2); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.who b { font-weight: 500; font-size: 13px; display: block; line-height: 1.2; }
.who small { color: var(--dim); font-size: 11.5px; }

/* ---------- заголовки страниц ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 18px 0 26px; }
.page-h h1 { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -.035em; }
.page-h h1 em { font-style: normal; color: var(--accent); }
.page-h h1 .soft { color: var(--dim); }
.page-h p { margin: 10px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }

/* ---------- сетки ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
.span2 { grid-column: span 2; }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 16px; }
.grow { flex: 1; min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { margin: 0; font-family: var(--font-d); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.section-title small { color: var(--dim); }

/* ---------- карточки из матового стекла ---------- */
.card {
  position: relative; border-radius: var(--r-xl); padding: 22px; background: var(--glass), rgba(16,16,20,.55);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 20px 50px -30px rgba(0,0,0,.7);
  backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%); overflow: hidden; min-width: 0;
}
.card.flat { background: rgba(255,255,255,.025); box-shadow: none; }
.card.tight { padding: 16px; }
.card.glow::before { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, var(--cg, var(--accent-glow)), transparent 65%); pointer-events: none; filter: blur(10px); }
.card.glow-b::before { content: ''; position: absolute; width: 420px; height: 260px; left: 50%; bottom: -170px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, var(--cg, var(--accent-glow)), transparent 65%); pointer-events: none; }
.card > * { position: relative; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 32px; }
.card-h h3 { margin: 0; font-weight: 500; font-size: 15px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.card-h h3 .ic { color: var(--muted); }
.label { color: var(--muted); font-size: 12.5px; }
.sub { color: var(--dim); font-size: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.card.click { cursor: pointer; transition: transform .35s var(--ease), border-color .3s; }
.card.click:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ico-box { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ic, var(--text)); }
.ico-box.sm { width: 34px; height: 34px; border-radius: 11px; }
.ico-box.tint { background: color-mix(in srgb, var(--ic) 13%, transparent); border-color: color-mix(in srgb, var(--ic) 22%, transparent); }

/* ---------- цифры ---------- */
.num { font-family: var(--font-d); font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.num-xl { font-size: clamp(54px, 7vw, 84px); }
.num-l { font-size: 44px; }
.num-m { font-size: 32px; }
.num-s { font-size: 24px; }
.num .u { font-size: .42em; color: var(--dim); letter-spacing: 0; margin-left: 4px; font-weight: 400; }
.num .fade { color: var(--dim); }

/* ---------- бейджи изменений ---------- */
.delta { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.delta.up { color: var(--up); background: rgba(99,217,154,.09); border-color: rgba(99,217,154,.18); }
.delta.down { color: var(--down); background: rgba(255,125,138,.09); border-color: rgba(255,125,138,.18); }
.delta.acc { color: var(--accent); background: rgba(217,170,210,.09); border-color: rgba(217,170,210,.2); }
.delta.warn { color: var(--warn); background: rgba(240,200,144,.08); border-color: rgba(240,200,144,.18); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.045); border: 1px solid var(--line); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 500; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  background: rgba(255,255,255,.055); border: 1px solid var(--line-2); color: var(--text); transition: background .25s, transform .2s var(--ease), border-color .25s; }
.btn:hover { background: rgba(255,255,255,.09); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--text); color: #0b0b0e; border-color: transparent; }
.btn.primary:hover { background: #fff; }
.btn.accent { background: linear-gradient(180deg, rgba(225,180,218,.9), rgba(190,140,184,.9)); color: #1a0f19; border-color: transparent; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--down); border-color: rgba(255,125,138,.25); background: rgba(255,125,138,.06); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn.xs { height: 28px; padding: 0 11px; font-size: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); transition: .2s; flex: none; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.plain { background: none; border-color: transparent; }

/* ---------- сегментированные переключатели ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: color .2s, background .3s var(--ease); flex: none; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: #0b0b0e; }
.seg.soft button.on { background: rgba(255,255,255,.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.wrap { flex-wrap: wrap; justify-content: center; border-radius: 22px; overflow: visible; }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; }

/* ---------- задания ---------- */
.quests { display: grid; gap: 6px; }
.quest { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid transparent; transition: background .25s, border-color .25s, opacity .3s; cursor: pointer; user-select: none; min-height: 62px; }
.quest:hover { background: rgba(255,255,255,.045); border-color: var(--line); }
.quest .chk { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; transition: .35s var(--ease); position: relative; }
.quest .chk::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--qc, var(--accent)); opacity: 0; transform: scale(.6); }
.quest.done .chk { background: var(--text); border-color: var(--text); color: #0b0b0e; }
.quest.just .chk { animation: pop .5s var(--ease); }
.quest.just .chk::after { animation: ripple .7s var(--ease); }
.quest .qt { flex: 1; min-width: 0; }
.quest .qt b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.quest.done .qt b { color: var(--muted); }
.quest .qt small { color: var(--dim); font-size: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.quest .qt small .ic { display: inline-block; vertical-align: -2px; }
.quest .qx { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quest .qprog { display: flex; gap: 3px; margin-top: 6px; }
.quest .qprog i { height: 3px; flex: 1; max-width: 26px; border-radius: 2px; background: rgba(255,255,255,.1); }
.quest .qprog i.on { background: var(--qc, var(--text)); }
.quest .q-ic { color: var(--qc, var(--muted)); opacity: .9; }
.streak-mini { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
@keyframes pop { 0% { transform: scale(.8); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ripple { 0% { opacity: .8; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- шкалы ---------- */
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,.55), #fff); transition: width 1.2s var(--ease); }
.bar.thin { height: 4px; }
.bar.thick { height: 10px; }
.bar.acc i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar.hp { height: 12px; background: rgba(255,255,255,.05); }
.bar.hp i { background: linear-gradient(90deg, rgba(255,255,255,.35), var(--bc, #fff)); transition: width 1.6s var(--ease); box-shadow: 0 0 18px var(--bc, #fff); }

/* ---------- кольца ---------- */
.ring { position: relative; flex: none; }
.ring svg { display: block; }
.ring-fg { transition: stroke-dashoffset 1.4s var(--ease); }
.ring-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }

/* ---------- графики ---------- */
.chart { position: relative; height: var(--h); margin-left: 40px; touch-action: pan-y; cursor: crosshair; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .ln { animation: draw 1.4s var(--ease) both; }
@keyframes draw { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.cgrid { position: absolute; inset: 0; }
.cg { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.055); }
.cg span { position: absolute; right: calc(100% + 10px); top: -8px; font-size: 11px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cdot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--c); transform: translate(-50%, -50%); opacity: .55; }
.cx { position: relative; height: 22px; margin: 8px 0 0 40px; }
.cx span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--dim); white-space: nowrap; }
.ccur { display: none; position: absolute; inset: 0; pointer-events: none; }
.cline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(255,255,255,.35); }
.cpt { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 0 20px var(--c, #fff); }
.ctip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); padding: 9px 12px; border-radius: 12px; background: rgba(24,22,28,.92); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 12px; white-space: nowrap; color: var(--muted); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ctip b { color: var(--text); font-weight: 500; font-size: 14px; display: block; }
.chart-empty { height: 160px; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 20px; }
.spark { width: 100%; display: block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: var(--c); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }

/* ---------- тепловая карта ---------- */
.hm-wrap { overflow-x: auto; scrollbar-width: none; --hm: 12px; padding-bottom: 4px; }
.hm-wrap::-webkit-scrollbar { display: none; }
.hm-months { display: grid; gap: 3px; font-size: 10.5px; color: var(--dim); height: 16px; }
.hm { display: grid; grid-template-rows: repeat(7, var(--hm)); grid-auto-flow: column; gap: 3px; width: max-content; }
.hm i { width: var(--hm); height: var(--hm); border-radius: 3px; background: rgba(255,255,255,.045); }
.hm i.hm-x { background: transparent; }
.hm i.hm-1 { background: rgba(217,170,210,.22); }
.hm i.hm-2 { background: rgba(217,170,210,.42); }
.hm i.hm-3 { background: rgba(230,195,225,.68); }
.hm i.hm-4 { background: #f3e3ef; }
.hm i.hm-p { box-shadow: 0 0 0 1.5px #fff inset, 0 0 8px rgba(255,255,255,.4); }
.hm i.hm-t { outline: 1px solid rgba(255,255,255,.6); outline-offset: 1px; }

/* ---------- цепочка дней ---------- */
.chain { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.chain i { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid transparent; position: relative; }
.chain i.on { background: linear-gradient(180deg, #fff, #d9d2dd); }
.chain i.sh { background: transparent; border: 1px dashed rgba(255,255,255,.4); }
.chain i.rs { background: rgba(217,170,210,.5); }
.chain i.pf::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: #0b0b0e; }
.chain i.td { border-color: rgba(255,255,255,.55); }
.chain i.td:not(.on) { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { border-color: rgba(255,255,255,.18); } }

/* ---------- столбики ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; }
.bars-c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bars-v { height: var(--bh); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars-v i { width: min(100%, 26px); border-radius: 7px 7px 3px 3px; background: rgba(255,255,255,.14); transition: height 1s var(--ease); }
.bars-c.cur .bars-v i { background: linear-gradient(180deg, #fff, rgba(255,255,255,.55)); }
.bars-c span { font-size: 10.5px; color: var(--dim); white-space: nowrap; }

/* ---------- импульс ---------- */
.momentum { display: flex; align-items: center; gap: 26px; }
.orb { --lvl: 0; position: relative; width: 132px; height: 132px; flex: none; display: grid; place-items: center; }
.orb::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(232,190,225, calc(.08 + var(--lvl) * .09)), transparent 68%); filter: blur(6px); animation: orbPulse 3.6s ease-in-out infinite; }
.orb-core { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255, calc(.06 + var(--lvl) * .05)), rgba(30,24,34,.6) 62%);
  border: 1px solid rgba(255,255,255, calc(.08 + var(--lvl) * .06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 calc(var(--lvl) * 14px) rgba(225,180,218, calc(var(--lvl) * .1)); }
.orb-core .ic { color: rgba(255,255,255, calc(.4 + var(--lvl) * .12)); filter: drop-shadow(0 0 calc(var(--lvl) * 5px) rgba(255,220,245,.7)); }
.orb .ring { position: absolute; inset: 0; }
.orb.bump .orb-core { animation: bump .9s var(--ease); }
.orb[data-lvl="0"] .orb-core .ic { opacity: .5; }
@keyframes orbPulse { 50% { transform: scale(1.06); opacity: .8; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.mstages { display: flex; gap: 6px; margin-top: 14px; }
.mstage { flex: 1; text-align: center; font-size: 10.5px; color: var(--dim); }
.mstage i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); margin-bottom: 6px; }
.mstage.on { color: var(--text); }
.mstage.on i { background: var(--text); }

/* ---------- списки ---------- */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .grow b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .grow small { color: var(--dim); font-size: 12px; }
.li.click { cursor: pointer; border-radius: 14px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; }
.li.click:hover { background: rgba(255,255,255,.035); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; }
.kv > div small { display: block; color: var(--dim); font-size: 11.5px; margin-bottom: 6px; }
.kv > div b { font-family: var(--font-d); font-weight: 400; font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 400; color: var(--dim); font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: 28px 16px; color: var(--dim); font-size: 13px; }
.empty .ic { margin: 0 auto 10px; opacity: .6; }

/* ---------- формы ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  outline: none; transition: border-color .2s, background .2s; font-size: 15px; -webkit-appearance: none; appearance: none; min-width: 0;
}
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.input option { background: #16151a; }
.input::placeholder { color: var(--dim); }
input[type=date].input, input[type=time].input { color-scheme: dark; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker button { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.picker button.on { border-color: var(--text); color: var(--text); background: rgba(255,255,255,.1); }
.picker.colors button { border-radius: 50%; width: 34px; height: 34px; }
.picker.colors button i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.picker.colors button.on { box-shadow: 0 0 0 2px var(--c); border-color: transparent; }
.dots5 { display: flex; gap: 8px; }
.dots5 button { flex: 1; height: 44px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: .2s; }
.dots5 button.on { background: var(--text); color: #0b0b0e; border-color: transparent; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); transition: .3s; flex: none; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .3s var(--ease); }
.switch.on { background: var(--text); }
.switch.on::after { left: 21px; background: #0b0b0e; }
.range { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.1); cursor: pointer; }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--text); cursor: pointer; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .input { text-align: center; width: 80px; }
.sets { display: grid; gap: 8px; }
.set-row { display: grid; grid-template-columns: 28px 1fr 1fr 34px; gap: 8px; align-items: center; }
.set-row > span { color: var(--dim); font-size: 12px; text-align: center; }

/* ---------- модальные окна ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(4,4,6,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; animation: fade .3s; }
.modal { width: min(560px, 100%); max-height: min(88vh, 900px); overflow-y: auto; border-radius: 30px; padding: 26px; background: linear-gradient(180deg, rgba(34,30,38,.96), rgba(18,17,22,.97)); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: rise .45s var(--ease); scrollbar-width: thin; }
.modal.wide { width: min(760px, 100%); }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-h h2 { margin: 0; font-family: var(--font-d); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.modal-h p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- праздничные экраны ---------- */
.celebrate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(60,40,60,.7), rgba(5,5,7,.92) 65%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fade .4s; cursor: pointer; }
.celebrate .cel-in { max-width: 420px; animation: celIn 1s var(--ease); }
.celebrate .cel-badge { width: 170px; height: 170px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.18), rgba(40,30,44,.7) 65%); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 80px rgba(230,180,220,.35), inset 0 1px 0 rgba(255,255,255,.2); }
.celebrate .cel-badge::before, .celebrate .cel-badge::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); animation: wave 2.4s var(--ease) infinite; }
.celebrate .cel-badge::after { animation-delay: 1.2s; }
.celebrate .cel-badge .num { font-size: 72px; }
.celebrate h2 { margin: 0 0 8px; font-family: var(--font-d); font-weight: 400; font-size: 34px; letter-spacing: -.03em; }
.celebrate p { margin: 0 auto; color: var(--muted); max-width: 340px; }
.celebrate .eyebrow { justify-content: center; }
.celebrate .tap { margin-top: 28px; color: var(--dim); font-size: 12px; }
@keyframes celIn { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes wave { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.spark-p { position: fixed; z-index: 95; width: 6px; height: 6px; border-radius: 50%; background: #fff; pointer-events: none; box-shadow: 0 0 10px #fff; }

/* ---------- тосты и +XP ---------- */
.toasts { position: fixed; z-index: 85; top: calc(20px + var(--safe-t)); right: 24px; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: rgba(28,26,32,.9); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: toastIn .5s var(--ease); }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
.toast b { display: block; font-weight: 500; font-size: 13.5px; }
.toast small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.toast .ico-box { width: 34px; height: 34px; border-radius: 11px; }
.toast.pr { border-color: rgba(240,200,144,.35); }
.toast.pr .ico-box { color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
.xp-float { position: fixed; z-index: 96; pointer-events: none; font-family: var(--font-d); font-weight: 500; font-size: 18px; color: #fff; text-shadow: 0 0 18px rgba(230,180,220,.9); animation: xpUp 1.4s var(--ease) forwards; white-space: nowrap; }
.xp-float small { font-size: 12px; color: var(--accent); margin-left: 4px; }
@keyframes xpUp { 0% { opacity: 0; transform: translate(-50%, 0) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -14px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

/* ---------- нижняя навигация ---------- */
.bottom-nav { display: none; }
.m-only, .m-block { display: none; }

/* ---------- появление ---------- */
.enter .card, .enter .reveal { animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- особые блоки ---------- */
.hero-xp { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lvl-badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); font-size: 12.5px; }
.lvl-badge i { width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: #0b0b0e; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; }
.stat-row .bar { grid-column: 2 / 4; margin-top: -4px; }
.stat-row b { font-weight: 500; }
.boss-card { --bc: #fff; }
.boss-emb { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none; color: var(--bc);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--bc) 30%, transparent), color-mix(in srgb, var(--bc) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); box-shadow: 0 0 40px -10px var(--bc); }
.boss-emb.xl { width: 96px; height: 96px; border-radius: 30px; }
.boss-card.hit .boss-emb { animation: shake .5s; }
@keyframes shake { 20% { transform: translateX(-4px) rotate(-3deg); } 40% { transform: translateX(4px) rotate(3deg); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.tier { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line-2); color: var(--muted); }
.tier.t0 { color: #c9d6cf; } .tier.t1 { color: #bcd0f0; } .tier.t2 { color: #f0c890; border-color: rgba(240,200,144,.3); }
.tier.t3 { color: #d9aad2; border-color: rgba(217,170,210,.35); } .tier.t4 { color: #fff; border-color: rgba(255,255,255,.5); box-shadow: 0 0 16px rgba(255,255,255,.2); }
.phase-marks { position: relative; height: 0; }
.phase-marks i { position: absolute; top: -12px; width: 1px; height: 12px; background: rgba(0,0,0,.6); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.callout b { color: var(--text); font-weight: 500; }
.callout.warn { background: rgba(240,200,144,.06); border-color: rgba(240,200,144,.2); }
.callout.warn > .ic { color: var(--warn); }
.callout.acc { background: rgba(217,170,210,.07); border-color: rgba(217,170,210,.2); }
.callout.acc > .ic { color: var(--accent); }
.achv { text-align: center; padding: 18px 12px; border-radius: 22px; background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: .3s; }
.achv .medal { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--dim); }
.achv.on .medal { color: #0b0b0e; background: radial-gradient(circle at 35% 25%, #fff, #d8cfdc); border-color: transparent; box-shadow: 0 0 30px rgba(230,190,225,.25); }
.achv b { display: block; font-weight: 500; font-size: 13px; }
.achv small { color: var(--dim); font-size: 11.5px; display: block; margin-top: 4px; }
.achv:not(.on) b { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.photo button { position: absolute; right: 6px; top: 6px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timer-face { display: grid; place-items: center; margin: 10px auto 20px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { text-align: center; font-size: 11px; color: var(--dim); padding-bottom: 4px; }
.cal button { aspect-ratio: 1; border-radius: 12px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid transparent; position: relative; font-variant-numeric: tabular-nums; }
.cal button.has { color: var(--text); background: rgba(255,255,255,.07); }
.cal button.has::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; transform: translateX(-50%); background: var(--mc, var(--accent)); }
.cal button.sel { border-color: var(--text); }
.cal button.pf { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.cal button.out { visibility: hidden; }
.cal button.td { color: var(--text); font-weight: 600; }
.book { display: flex; gap: 14px; align-items: center; }
.book-cover { width: 46px; height: 64px; border-radius: 8px; flex: none; display: grid; place-items: center; font-family: var(--font-d); font-size: 18px; color: rgba(255,255,255,.85);
  background: linear-gradient(160deg, color-mix(in srgb, var(--bk) 60%, #222), color-mix(in srgb, var(--bk) 20%, #111)); border: 1px solid rgba(255,255,255,.1); box-shadow: 4px 6px 16px rgba(0,0,0,.4); }
.abst-big { display: flex; align-items: baseline; gap: 10px; }
.milestones { display: flex; gap: 8px; flex-wrap: wrap; }
.ms { width: 46px; text-align: center; font-size: 10.5px; color: var(--dim); }
.ms i { width: 40px; height: 40px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-style: normal; font-size: 12px; font-weight: 500; color: var(--dim); }
.ms.on i { background: var(--text); color: #0b0b0e; border-color: transparent; }
.ms.next i { border-style: dashed; border-color: rgba(255,255,255,.4); color: var(--text); }
.sec-tile { display: flex; flex-direction: column; gap: 14px; min-height: 172px; }
.sec-tile .bar { margin-top: auto; }
.challenge { display: flex; gap: 14px; align-items: center; }
.reorder { display: flex; gap: 4px; }
.plan { text-align: left; width: 100%; border-radius: 22px; }
.plan b { font-weight: 500; }
.plan.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; background: rgba(255,255,255,.06); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.acc { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); text-align: left; transition: background .3s, color .3s, transform .2s var(--ease); min-height: 92px; }
.acc:active { transform: scale(.97); }
.acc b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.acc small { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.acc-chk { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.acc.on { background: var(--text); color: #0b0b0e; border-color: transparent; }
.acc.on small { color: rgba(11,11,14,.55); }
.acc.on .acc-chk { background: #0b0b0e; border-color: #0b0b0e; color: var(--text); animation: pop .5s var(--ease); }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pipe-col { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.02); border: 1px solid var(--line); min-width: 0; }
.pipe-h { color: var(--muted); font-size: 12.5px; padding: 2px 2px 4px; }
.pipe-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.pipe-item b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-item small { color: var(--dim); font-size: 11.5px; }
@media (max-width: 1080px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pipe { grid-template-columns: 1fr; } }
.kbd { font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.hide { display: none !important; }

/* ================= Адаптив ================= */
@media (max-width: 1280px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-hero { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --r-xl: 24px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 0 16px calc(110px + var(--safe-b)); }
  .topbar { padding: calc(18px + var(--safe-t)) 0 2px; }
  .crumbs { display: none; }
  .m-only { display: initial; }
  .m-block { display: block; }
  .d-only, .d-block { display: none !important; }
  .page-h { margin: 8px 0 20px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g2.keep, .g4.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2 { grid-column: auto; }
  .grid { gap: 12px; }
  .card { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .momentum { gap: 18px; }
  .orb { width: 112px; height: 112px; }
  .num-xl { font-size: 64px; }
  .toasts { left: 16px; right: 16px; width: auto; top: calc(12px + var(--safe-t)); }
  .modal-bg { padding: 0; place-items: end stretch; }
  .modal { width: 100%; max-height: 92vh; border-radius: 30px 30px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); animation: sheet .45s var(--ease); }
  .modal.wide { width: 100%; }
  .modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: -8px auto 16px; }
  .chain { grid-template-columns: repeat(14, 1fr); gap: 4px; }
  .chain i { border-radius: 4px; }
  .chart { margin-left: 34px; }
  .cx { margin-left: 34px; }
  .bottom-nav { display: flex; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); height: 66px; padding: 6px; border-radius: 26px;
    background: rgba(20,19,24,.82); border: 1px solid var(--line-2); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
  .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 20px; color: var(--dim); font-size: 10.5px; transition: color .2s, background .3s; }
  .bottom-nav button.active { color: var(--text); background: rgba(255,255,255,.07); }
  .bottom-nav button.active .ic { filter: drop-shadow(0 0 8px rgba(255,255,255,.4)); }
  .quest { min-height: 66px; }
}
@keyframes sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
