/* base.css — 🌍 Космическая база 7 уровня: карта под шапкой сада, док, боковая панель (2026-10-07).
   Без полупрозрачного арта: панели — плотные тёмные, с чётким краем. */
body.cm-base{background:#0b0a2a!important;overflow-x:hidden}
/* L2/L3 и десктопный #mnav скрыты — навигация разделов через .bs-dock.
   2026-10-31: на мобилке бургер снова нужен для «Сервис» (иконки шапки). */
body.cm-base .l2,body.cm-base .l3,body.cm-base .cm-wrap{display:none!important}
body.cm-base #mnav,body.cm-base .burger,body.cm-base #burger{display:none!important}
@media (max-width:999px){
  body.cm-base:not(.is-guest) #burger{
    display:flex!important;align-items:center;justify-content:center;
    position:fixed;top:8px;right:10px;z-index:260;
    width:44px;height:44px;border-radius:14px;
    border:1.5px solid var(--border,#3b3380);background:var(--card,#1b1640);
    color:#c4bdf0;font-size:22px;line-height:1;cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.35);font-family:'Onest',sans-serif;padding:0;
  }
  body.cm-base.rnav-open #burger{background:#7c3aed;border-color:#7c3aed;color:#fff;}
  body.cm-base.rnav-open #burger .rb-open{display:none;}
  body.cm-base.rnav-open #burger .rb-close{display:inline;}
  body.cm-base #mnav{
    display:none!important;position:fixed;inset:0;z-index:250;
    background:var(--bg,#0b0a2a);overflow-y:auto;-webkit-overflow-scrolling:touch;
    padding:62px 12px 48px;color:var(--text,#f1edff);
  }
  body.cm-base.rnav-open #mnav{display:block!important;}
  body.cm-base.rnav-open{overflow:hidden;}
  body.cm-base .new-nav{padding-right:62px!important;}
}
#bs{position:relative;width:100%;height:calc(100vh - 70px);min-height:420px;overflow:hidden;background:#0b0a2a;font-family:'Onest',system-ui,sans-serif}
#bs-cv{position:absolute;inset:0;display:block;touch-action:none;cursor:grab}
.bs-top{position:absolute;top:12px;left:12px;right:12px;display:flex;gap:8px;align-items:flex-start;pointer-events:none;z-index:3}
.bs-top>*{pointer-events:auto}
.bs-card{background:#1b1640;border:1.5px solid #3b3380;border-radius:16px;color:#f1edff;box-shadow:0 10px 24px -14px rgba(0,0,0,.8)}
.bs-title{display:flex;align-items:center;gap:10px;padding:8px 14px 8px 10px}
.bs-title .e{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;background:linear-gradient(135deg,#6d28d9,#2563eb)}
.bs-title b{display:block;font-size:15px;font-weight:800}.bs-title small{color:#b9b3e6;font-size:12px}
.bs-online{margin-left:auto;display:flex;align-items:center;gap:4px;padding:6px 10px;font-size:13px}
.bs-online b{margin-right:6px}.bs-online i{width:26px;height:26px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#c7d2fe;color:#312e81;font-style:normal;font-weight:800;font-size:12px;border:2px solid #1b1640;margin-left:-6px}
.bs-online i img{width:100%;height:100%;object-fit:cover}
.bs-dock{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:4px;padding:6px;z-index:3}
.bs-dock button{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:84px;padding:8px 10px;border:0;border-radius:12px;background:transparent;color:#c4bdf0;font:600 12.5px 'Onest',sans-serif;cursor:pointer}
.bs-dock button i{font-style:normal;font-size:22px}
.bs-dock button:hover{background:#2a2360;color:#fff}
.bs-dock button.on{background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff}
/* боковая панель: внутри — те же окна cosmo.js (#panel) */
.bs-sheet{position:absolute;top:12px;right:12px;bottom:12px;width:min(520px,calc(100% - 24px));z-index:5;display:flex;flex-direction:column;
  background:#141033;border:1.5px solid #3b3380;border-radius:20px;color:#f1edff;box-shadow:0 20px 50px -20px #000;transform:translateX(calc(100% + 30px));transition:transform .28s cubic-bezier(.2,.9,.3,1)}
.bs-sheet.show{transform:none}
.bs-sh-h{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1.5px solid #2c2668}
.bs-sh-h b{font-size:17px;font-weight:800}
.bs-sh-h button{margin-left:auto;width:34px;height:34px;border-radius:50%;border:0;background:#2a2360;color:#fff;font-size:16px;cursor:pointer}
.bs-sheet .panel{flex:1;overflow-y:auto;padding:10px 14px 10px;transition:opacity .15s}
/* окна cosmo.js внутри тёмной панели — читаемые цвета */
.bs-sheet{--card:#1e1948;--border:#3b3380;--muted:#b9b3e6;--text:#f1edff;--warm:#231d52;--bg:#141033;--shadow:none;--c-soft:#2a2360}
.bs-sheet .cm-h2{font-size:19px}.bs-sheet .cm-sub{font-size:14px}
.bs-sheet .cm-rockets{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.bs-sheet .cm-rk .art{width:70px;height:90px;font-size:48px}
.bs-sheet .cm-step{min-width:calc(50% - 6px);background:#2a2360;color:#c4bdf0}
.bs-sheet .cm-step.done{background:#14532d;color:#bbf7d0}.bs-sheet .cm-step.cur{background:#312e81;color:#e0e7ff}
.bs-sheet .cm-row{background:#1e1948}
.bs-sheet .cm-soon .it{background:#1e1948}
.bs-sheet .cm-detail{background:#1b1640}
.bs-sheet .cm-bl span{background:#2a2360}
.bs-sheet .cm-ready-box{background:#1f2e2a;color:#d1fae5}
.bs-sheet .cm-badge{background:#2a2360;color:#c7d2fe}
@media (min-width:901px){#bs.sheet-on .bs-dock{left:calc((100% - 544px) / 2)}}
.bs-dock{transition:left .28s}
.bs-hint{position:absolute;left:50%;top:70px;transform:translateX(-50%);z-index:3;padding:8px 16px;font-size:13.5px;font-weight:600;white-space:nowrap}
@media (max-width:900px){
  #bs{height:calc(100vh - 110px)}
  .bs-sheet{top:auto;left:8px;right:8px;bottom:8px;width:auto;height:72%;transform:translateY(110%)}
  .bs-sheet.show{transform:none}
  .bs-dock{left:8px;right:8px;transform:none;justify-content:space-between;bottom:8px}
  .bs-dock button{min-width:0;flex:1;padding:7px 2px;font-size:10.5px}.bs-dock button i{font-size:20px}
  .bs-title small{display:none}.bs-online{padding:5px 8px}.bs-hint{display:none}
}

/* 16.10: подсказки (тосты) — наверху по центру, а не поверх нижнего меню; светлые, чтобы отличались от панелей */
body.cm-page .toast{position:fixed;left:50%;top:74px;bottom:auto;opacity:0;pointer-events:none;white-space:normal;text-align:center;font-weight:600;line-height:1.4;max-width:min(520px,calc(100% - 24px));padding:11px 18px;border-radius:16px;background:linear-gradient(135deg,#ede9fe,#e0e7ff);color:#1e1b4b;
  border:1.5px solid #a78bfa;box-shadow:0 10px 30px rgba(10,6,40,.45);font-size:14.5px;transform:translateX(-50%) translateY(-8px);transition:opacity .25s,transform .25s;z-index:10100}
body.cm-page .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (max-width:900px){ body.cm-page .toast{top:62px} }
/* «1 на базе» — аватарки отступают от текста */
.bs-online i:first-of-type{margin-left:8px}

/* 16.10: картинки нижнего меню */
.bs-dock button i .bs-dock-ico{width:30px;height:30px;object-fit:contain;display:block;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));transition:transform .15s}
.bs-dock button:hover i .bs-dock-ico{transform:translateY(-2px) scale(1.06)}
.bs-dock button.on i .bs-dock-ico{transform:scale(1.08)}
/* 16.10: меню — слева вертикально (ПК), картинки крупнее; на телефоне — внизу, как было */
@media (min-width:901px){
  .bs-dock,#bs.sheet-on .bs-dock{left:14px;right:auto;top:84px;bottom:14px;transform:none;flex-direction:column;justify-content:center;gap:6px;padding:8px;height:fit-content;max-height:calc(100% - 98px);margin:auto 0;overflow-y:auto;scrollbar-width:none}
  .bs-dock::-webkit-scrollbar{display:none}
  .bs-dock button{min-width:100px;padding:clamp(4px,.9vh,10px) 8px;gap:3px;font-size:13px;border-radius:16px}
  .bs-dock button i{font-size:clamp(26px,4.4vh,40px);line-height:1}
  .bs-dock button i .bs-dock-ico{width:clamp(36px,6.6vh,60px);height:clamp(36px,6.6vh,60px)}
  .bs-dock button:hover i .bs-dock-ico{transform:translateY(-3px) scale(1.08)}
  .bs-dock button.on{box-shadow:0 8px 20px rgba(79,70,229,.45)}
}
@media (max-width:900px){ .bs-dock button i .bs-dock-ico{width:38px;height:38px} .bs-dock button i{font-size:26px} }
