/* 🧭 Стартовое меню и экран «Питомцы» — прототип владельца от 29.09.2026:
 * сверху ник с аватаром и «три полоски», ниже три кошелька в ряд (петалы чата,
 * золотые петалы, звёзды), затем четыре больших раздела: Сад, Питомцы, Рубка, Ритм.
 * Нижней панели вкладок больше нет — выход из раздела стрелкой слева сверху.
 * Стиль тот же, что у всей игры: карточки с нарисованной сценой, тёмные панели,
 * розовый акцент, Philosopher в заголовках.
 */

/* Нижней панели нет: возвращаем экрану её место. Сам элемент оставлен пустым —
   на него ссылается код показа/скрытия экранов. */
.tabbar { display: none !important; }
.content { padding-bottom: calc(var(--safe-b) + 24px); }
.screen { position: relative; }

/* ---------------------------------------------------------------- меню */
.hb { padding-top: 12px; }
.hb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hb-who {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--ink); font: inherit;
}
.hb-ava {
  width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; padding: 2px;
  background: linear-gradient(145deg, var(--pink), var(--violet)); box-shadow: 0 0 16px rgba(255,138,205,.4);
}
.hb-ava > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
                background: var(--bg-2); }
.hb-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-ava svg { width: 60%; height: 60%; }
.hb-name { font: 700 17px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-lvl { font-size: 11.5px; color: var(--ink-dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-xp { height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); margin-top: 5px; overflow: hidden; }
.hb-xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-deep), var(--pink)); }
.hb-burger {
  width: 40px; height: 40px; flex: none; border-radius: 12px; cursor: pointer; display: grid; align-content: center;
  gap: 4px; padding: 0 10px; border: 1px solid var(--panel-line); background: rgba(20, 13, 30, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hb-burger i { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }

/* три кошелька в ряд */
.hb-wallets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.hb-wallet {
  padding: 10px 9px 9px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: left; color: var(--ink); font: inherit;
  min-width: 0;
}
button.hb-wallet { cursor: pointer; }
button.hb-wallet:active { transform: scale(.97); }
.hb-wallet-row { display: flex; align-items: center; gap: 6px; }
.hb-wallet-row svg { width: 15px; height: 15px; flex: none; }
.hb-wallet-val { font: 700 16px/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-wallet-name { font-size: 11px; margin-top: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-wallet-sub { font-size: 10px; color: var(--ink-faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* четыре больших раздела */
.hb-cards { display: flex; flex-direction: column; gap: 11px; }
.hb-card {
  position: relative; height: 152px; width: 100%; padding: 0; border: 1px solid var(--panel-line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--bg-2); color: var(--ink); text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.hb-card:active { transform: scale(.985); }
.hb-card > svg.hb-art, .hb-card > .hb-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,6,13,.92) 18%, rgba(8,6,13,.3) 58%, transparent);
}
.hb-body { position: absolute; left: 16px; right: 44px; bottom: 15px; z-index: 2; }
.hb-title { font: 700 25px/1.1 var(--serif); letter-spacing: .3px; }
.hb-sub { font-size: 13px; color: var(--ink-dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-arrow { position: absolute; right: 15px; bottom: 19px; z-index: 2; color: var(--pink); opacity: .9; line-height: 0; }
.hb-arrow .ui-svg { width: 15px; height: 15px; display: block; }
.hb-note {
  position: absolute; right: 10px; top: 10px; z-index: 2; max-width: 62%; padding: 4px 10px 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(140, 30, 100, .78); border: 1px solid rgba(255,143,208,.55);
  display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hb-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff4d7d; flex: none; box-shadow: 0 0 6px #ff4d7d; }

/* сад на карточке: настоящий фон сада и дерево нынешней стадии */
.hb-garden { background: #0d0a18 url('/static/garden/bg.webp?v=2') center 64% / cover no-repeat; }
.hb-garden img { position: absolute; right: 8%; bottom: -6px; height: 112%; width: auto; max-width: 60%; object-fit: contain;
                 filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }

/* задания дня */
.hb-quests {
  margin-top: 11px; width: 100%; padding: 11px 13px 12px; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--panel-line); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hb-quests:active { transform: scale(.985); }
.hb-q-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hb-q-title { font-weight: 600; font-size: 14px; }
.hb-q-count { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-q-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.hb-q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.hb-q-sub { font-size: 11px; color: var(--ink-dim); margin-top: 6px; }
.hb-empty { text-align: center; color: var(--ink-dim); font-size: 13px; padding: 26px 0; }

/* ---------------------------------------- стрелка «назад» на всех разделах */
.hub-back {
  width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center;
  border: 1px solid var(--panel-line); background: rgba(20, 13, 30, .62); color: var(--ink); padding: 0 2px 0 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hub-back svg { width: 16px; height: 16px; }
.screen-title .hub-back { margin-right: 2px; }
.hub-back.abs { position: absolute; top: 12px; left: 0; z-index: 4; }
#screen-home .hub-back.abs { top: 10px; left: 0; background: rgba(12, 8, 19, .6); }
/* 05.11.2026 (владелица: «убери везде кнопку назад, сверху есть кнопочка возврата»): круглой кнопки «назад» внутри экранов больше нет, возврат — нативная стрелка Telegram (BackButton, показывается на всех экранах кроме главного меню) */
.hub-back, .screen-title .hub-back, .screen-title.u2-hero > .hub-back, .hub-back.abs, #screen-home .hub-back.abs, #screen-shop > .screen-title:not(.u2-hero) .hub-back { display: none !important; }
/* то же для друзей, топа, чужого профиля (.pf-back) и сада (.gd-back, лавка сада): «везде убрать, я же сказала» */
.pf-back, .u2-hero-pf .pf-back, #screen-player .u2-hero-pf .pf-back, #screen-friends .u2-hero-pf .pf-back, .gd-back, .gd-back.gp { display: none !important; }

/* ------------------------------------------------------------- питомцы */
.pt-notice {
  padding: 10px 13px; border-radius: 14px; margin-bottom: 10px; font-size: 13px; line-height: 1.45; white-space: pre-line;
  background: rgba(154, 107, 255, .16); border: 1px solid rgba(154, 107, 255, .5);
}
.pt-notice.bad { background: rgba(255, 90, 120, .13); border-color: rgba(255, 110, 140, .5); }
.pt-card { padding: 14px; margin-bottom: 10px; border-radius: 18px; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-name { font: 700 22px/1.1 var(--serif); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-lvl { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-meta { font-size: 12px; color: var(--ink-dim); margin-top: 3px; }
.pt-xp { height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.pt-xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.pt-xp-note { font-size: 10.5px; color: var(--ink-faint); margin-top: 4px; }
.pt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin-top: 13px; }
.pt-stat-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.pt-stat-top b { font-variant-numeric: tabular-nums; }
.pt-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.pt-bar.health i { background: linear-gradient(90deg, #c04a7e, #ff9ec7); }
.pt-bar.hunger i { background: linear-gradient(90deg, #b0703a, #ffc07a); }
.pt-bar.mood i { background: linear-gradient(90deg, #6b3fd4, #b79bff); }
.pt-bar.energy i { background: linear-gradient(90deg, #3d8fd6, #71c4ff); }
.pt-bar.hygiene i { background: linear-gradient(90deg, #7a6fd0, #d2c8ff); }
.pt-bar.bond i { background: linear-gradient(90deg, #e2479e, #ff8fd0); }
.pt-bar.low i { background: linear-gradient(90deg, #d23b5f, #ff7a93); }
.pt-hint { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--ink-dim); padding: 9px 11px; border-radius: 12px;
           background: rgba(255,255,255,.05); }
.pt-now { margin-top: 10px; font-size: 12.5px; color: var(--pink); }
.pt-desire { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,143,208,.1);
             border: 1px solid rgba(255,143,208,.35); font-size: 12.5px; line-height: 1.45; }
.pt-desire button { margin-top: 8px; }
.pt-news { margin-top: 10px; font-size: 12px; color: var(--ink-dim); line-height: 1.45; }
.pt-news div + div { margin-top: 4px; }
.pt-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 2px 8px; }
.pt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-act {
  padding: 11px 12px; border-radius: 14px; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
  background: var(--panel); border: 1px solid var(--panel-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pt-act:active { transform: scale(.97); }
.pt-act:disabled { opacity: .5; cursor: default; transform: none; }
.pt-act b { display: block; font-size: 14px; }
.pt-act span { display: block; font-size: 10.5px; color: var(--ink-dim); margin-top: 3px; line-height: 1.35; }
.pt-act.wide { grid-column: 1 / -1; }
.pt-foods { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.pt-food {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
}
.pt-food b { font-size: 13px; font-weight: 600; }
.pt-food span { grid-column: 1; font-size: 11px; color: var(--ink-dim); }
.pt-food button { grid-row: 1 / span 2; grid-column: 2; border: 0; border-radius: 10px; padding: 8px 13px; cursor: pointer;
  font-weight: 700; font-size: 12px; font-family: inherit; color: #fff; background: linear-gradient(135deg, var(--pink-deep), var(--violet));
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-food button:disabled { background: rgba(255,255,255,.08); color: var(--ink-faint); font-weight: 500; }
.pt-likes .pf-line { font-size: 12.5px; }
.pt-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px;
           border-bottom: 1px solid rgba(255,255,255,.05); }
.pt-mini:last-child { border-bottom: 0; }
.pt-mini span { color: var(--ink-dim); font-size: 11.5px; text-align: right; }
.pt-primary { border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px;
              color: #fff; background: linear-gradient(135deg, var(--pink-deep), var(--violet)); }
.pt-primary:disabled { opacity: .55; }
.pt-empty { text-align: center; padding: 22px 16px; }
.pt-empty p { color: var(--ink-dim); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }

/* ------------------------------------------- задания со всех игр, сверху */
.hb-tasks { margin-bottom: 14px; padding: 12px 13px 12px; border-radius: 16px; background: var(--panel);
  border: 1px solid var(--panel-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hb-t-head { width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 0; border: 0; background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hb-t-title { flex: 1; font-weight: 600; font-size: 15px; }
.hb-t-chev { align-self: center; line-height: 0; color: var(--pink); transform: rotate(90deg); transition: transform .2s; }
.hb-t-chev .ui-svg { width: 14px; height: 14px; }
.hb-tasks.closed .hb-t-chev { transform: rotate(0deg); }
.hb-tasks .hb-q-bar { margin-top: 9px; }
.hb-t-list { margin-top: 4px; }
.hb-tasks.closed .hb-t-list { display: none; }
.hb-t-group { margin: 12px 0 2px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.hb-t-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.hb-t-row:last-child { border-bottom: 0; }
.hb-t-main { flex: 1; min-width: 0; }
.hb-t-text { font-size: 13px; line-height: 1.3; }
.hb-t-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; font-size: 11px; color: var(--ink-dim);
  font-variant-numeric: tabular-nums; }
.hb-t-meta span:first-child { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.hb-t-ico { width: 12px; height: 12px; }
.hb-t-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.hb-t-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.hb-t-row.claimed { opacity: .5; }
.hb-t-row.ready .hb-t-bar i { background: var(--gold); }
.hb-t-pill { flex: none; font-size: 11px; color: var(--ink-dim); }
.hb-t-claim { flex: none; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 700;
  font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--pink-deep), var(--violet)); }
.hb-t-claim:disabled { opacity: .55; }

.hb-t-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hb-t-count { flex: none; font-size: 11.5px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.hb-t-row { padding: 8px 0; }
.hb-t-text { font-size: 13px; line-height: 1.25; min-width: 0; }
.hb-t-meta { justify-content: flex-start; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.hb-t-bar { margin-top: 5px; height: 2px; }
.hb-t-row.claimed .hb-t-meta, .hb-t-row.claimed .hb-t-bar { display: none; }
.hb-t-row.claimed { padding: 6px 0; }

/* ---- карточки по образцу владельца (30.09.2026): картинка справа, тёмный край слева, круглая стрелка ---- */
.hb-cards { gap: 12px; }
.hb-card { height: 118px; border-color: rgba(255,143,208,.28); border-radius: 20px; }
.hb-card::after { background: linear-gradient(90deg, rgba(9,6,15,.94) 0%, rgba(9,6,15,.72) 34%, rgba(9,6,15,.12) 72%, transparent 100%); }
.hb-img { background-size: cover; background-position: right center; background-repeat: no-repeat; }
.hb-body { top: 50%; bottom: auto; transform: translateY(-50%); left: 18px; right: 70px; }
.hb-title { font-size: 26px; }
.hb-sub { font-size: 13px; margin-top: 5px; }
.hb-arrow { right: 14px; bottom: auto; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(12,8,19,.72); border: 1px solid rgba(255,143,208,.4); opacity: 1; }
.hb-card:first-child { height: 258px; }
.hb-card:first-child .hb-body { top: auto; bottom: 20px; transform: none; right: 44%; }
.hb-card:first-child .hb-title { font-size: 40px; }
.hb-card:first-child .hb-sub { font-size: 14px; }
.hb-card:first-child .hb-arrow { display: none; }
.hb-card:first-child::after { background: linear-gradient(90deg, rgba(9,6,15,.9) 0%, rgba(9,6,15,.62) 38%, transparent 72%),
  linear-gradient(to top, rgba(9,6,15,.7), transparent 45%); }
.hb-desc { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-dim); max-width: 200px; }
.hb-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 22px; border-radius: 999px; font-weight: 700;
  font-size: 14px; color: #2a0e22; background: linear-gradient(135deg, #ffb3dc, #ff8fd0); box-shadow: 0 6px 18px rgba(255,120,200,.35); }
.hb-go .ui-svg { width: 14px; height: 14px; }
.hb-wallet { position: relative; }
button.hb-wallet::after { content: ''; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid var(--pink); border-top: 1.5px solid var(--pink); transform: rotate(45deg); opacity: .8; }

/* на компьютере меню и питомцы — колонкой по центру, а не во всю ширину окна */
.hb, #petsBody { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---- баннеры сверху (сторис-карусель) ---- */
.hb-banner { position: relative; height: 158px; margin-bottom: 14px; border-radius: 20px; overflow: hidden; touch-action: pan-y;
  border: 1px solid rgba(255,143,208,.28); background: #0d0a18; box-shadow: 0 8px 24px rgba(0,0,0,.4); user-select: none; }
.hb-b-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hb-b-slide { flex: 0 0 100%; position: relative; border: 0; padding: 0; background: none; text-align: left; color: var(--ink);
  cursor: pointer; overflow: hidden; }
.hb-b-slide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,6,15,.94) 0%, rgba(9,6,15,.7) 36%, rgba(9,6,15,.1) 74%, transparent 100%); }
.hb-b-body { position: absolute; left: 18px; top: 46%; transform: translateY(-50%); right: 36%; z-index: 2; }
.hb-b-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.hb-b-title { font: 700 24px/1.1 var(--serif); margin-top: 4px; }
.hb-b-text { font-size: 12px; line-height: 1.35; color: var(--ink-dim); margin: 5px 0 10px; }
.hb-go.small { margin-top: 0; padding: 7px 15px; font-size: 12px; gap: 6px; }
.hb-go.small .ui-svg { width: 12px; height: 12px; }
.hb-b-dots { position: absolute; left: 18px; bottom: 9px; z-index: 3; display: flex; gap: 6px; }
.hb-b-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; position: relative; cursor: pointer;
  background: rgba(255,255,255,.35); transition: width .3s; }
.hb-b-dot.on { width: 26px; background: rgba(255,255,255,.28); }
.hb-b-dot i { position: absolute; inset: 0; width: 0; background: var(--pink); border-radius: 4px; }
.hb-b-dot.on.run i { animation: hbFill 5s linear forwards; }
.hb-banner.hold .hb-b-dot i { animation-play-state: paused; }
@keyframes hbFill { to { width: 100%; } }

/* описание режима под названием */
.hb-card { height: 134px; }
.hb-card:first-child { height: 258px; }
.hb-desc { margin-top: 5px; font-size: 11.5px; line-height: 1.35; color: var(--ink-dim); max-width: 240px; opacity: .9; }
.hb-card:first-child .hb-desc { margin-top: 10px; font-size: 12.5px; max-width: 200px; opacity: 1; }
.hb-b-slide > .hb-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-b-body { right: 40%; }
.hb-card:not(:first-child) .hb-desc { max-width: 205px; }

/* ---- v4: компактная шапка с кошельками ---- */
.hb-top { gap: 10px; margin-bottom: 12px; }
.hb-who { flex: 1 1 auto; min-width: 0; gap: 9px; }
.hb-ava { width: 36px; height: 36px; padding: 2px; box-shadow: 0 0 12px rgba(255,138,205,.35); }
.hb-name { font-size: 15px; }
.hb-chips { display: flex; gap: 6px; flex: none; }
.hb-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--ink); font: inherit;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }
button.hb-chip { cursor: pointer; }
button.hb-chip:active { transform: scale(.96); }
.hb-chip b { font: 700 13px/1 var(--serif); font-variant-numeric: tabular-nums; }
.hb-chip .hb-ico, .hb-chip svg { width: 14px; height: 14px; flex: none; }

/* ---- v4: кнопка «Меню» ---- */
.hb-menu { width: 100%; display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 12px 14px; border-radius: 18px;
  text-align: left; cursor: pointer; color: var(--ink); font: inherit; border: 1px solid rgba(255,143,208,.45);
  background: linear-gradient(135deg, rgba(255,143,208,.2), rgba(154,107,255,.16)); box-shadow: 0 6px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hb-menu:active { transform: scale(.985); }
.hb-menu-ico { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--pink);
  background: rgba(12,8,19,.55); border: 1px solid rgba(255,143,208,.35); }
.hb-menu-ico .ui-svg { width: 20px; height: 20px; }
.hb-menu-text { flex: 1; min-width: 0; }
.hb-menu-text b { display: block; font: 700 18px/1.1 var(--serif); }
.hb-menu-text i { display: block; font-style: normal; font-size: 12px; color: var(--ink-dim); margin-top: 3px; }
.hb-menu-arrow { color: var(--pink); line-height: 0; }
.hb-menu-arrow .ui-svg { width: 15px; height: 15px; }

/* баннер — самый верх, под ним шапка с ником и балансом */
.hb-banner { margin-top: 2px; }

/* ---- v4.1: шапка одной ровной панелью: ник слева, три кошелька справа, между ними тонкие разделители ---- */
.hb-top { padding: 6px 6px 6px 8px; gap: 0; border-radius: 20px; background: var(--panel); border: 1px solid var(--panel-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hb-who { padding-right: 10px; }
.hb-chips { gap: 0; align-self: stretch; }
.hb-chip { height: 36px; padding: 0 11px; gap: 6px; border: 0; border-left: 1px solid rgba(255,255,255,.12); border-radius: 0;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: center; }
.hb-chip:last-child { padding-right: 8px; }
.hb-chip .hb-ico, .hb-chip svg { width: 15px; height: 15px; }
.hb-chip b { font-size: 13.5px; }
/* ---- v4.2: шапка, «Меню» и задания — одной высоты и с одним скруглением ---- */
.hb-top { padding: 11px 14px 11px 12px; border-radius: 18px; margin-bottom: 14px; }
.hb-ava { width: 44px; height: 44px; }
.hb-who { gap: 11px; padding-right: 12px; }
.hb-name { font-size: 16px; }
.hb-chip { height: 44px; padding: 0 12px; gap: 7px; }
.hb-chip:last-child { padding-right: 0; }
.hb-chip .hb-ico, .hb-chip svg { width: 16px; height: 16px; }
.hb-chip b { font-size: 14px; }
.hb-menu { border-radius: 18px; padding: 11px 14px; }
.hb-tasks { border-radius: 18px; padding: 14px 15px; }
/* ---- v4.3: чтобы ник влезал целиком ---- */
.hb-top { padding: 10px 12px 10px 10px; }
.hb-who { gap: 9px; padding-right: 8px; }
.hb-name { font-size: 15px; }
.hb-chip { padding: 0 9px; gap: 5px; }
.hb-chip b { font-size: 13.5px; }
.hb-menu { min-height: 66px; }
/* ---- v4.4: «Меню» без подсветки — такое же, как шапка и задания ---- */
.hb-menu { background: var(--panel); border: 1px solid var(--panel-line); box-shadow: none; }
.hb-menu-ico { border: 1px solid var(--panel-line); }

/* ---- v5: Рубка — обычная карточка, как остальные три (без крупного «героя») ---- */
.hb-card:first-child { height: 134px; }
.hb-card:first-child .hb-body { top: 50%; bottom: auto; transform: translateY(-50%); right: 70px; }
.hb-card:first-child .hb-title { font-size: 26px; }
.hb-card:first-child .hb-sub { font-size: 13px; }
.hb-card:first-child .hb-arrow { display: grid; }
.hb-card:first-child::after { background: linear-gradient(90deg, rgba(9,6,15,.94) 0%, rgba(9,6,15,.72) 34%, rgba(9,6,15,.12) 72%, transparent 100%); }
.hb-card:first-child .hb-desc { margin-top: 5px; font-size: 11.5px; max-width: 205px; opacity: .9; }

/* ---- v5.1: заголовки соседних блоков «Меню» и «Задания» — один шрифт и один размер ---- */
.hb-t-title { font: 700 18px/1.1 var(--serif); }
.hb-tasks .hb-t-head { align-items: center; }
.hb-tasks .hb-q-count { font-size: 13px; }

/* 🔒 SOON (10.10.2026): «Питомцы» и «Ритм» закрыты для всех, кроме ранга 3. Карточка не нажимается, чуть размыта и приглушена;
   надпись SOON лежит отдельным слоем поверх, поэтому остаётся чёткой. */
.hb-soon-wrap { position: relative; }
.hb-card.is-soon { cursor: default; pointer-events: none; filter: blur(1px) saturate(.6) brightness(.85); }
.hb-card.is-soon .hb-arrow { display: none; }
.hb-card.is-soon:active { transform: none; }
.hb-soon-tag { position: absolute; z-index: 3; right: 16px; top: 50%; transform: translateY(-50%); padding: 7px 15px; border-radius: 999px;
  font: 700 13px/1 var(--serif, 'Philosopher', serif); letter-spacing: 3px; color: #fff3fa; pointer-events: none;
  background: rgba(14,9,24,.72); border: 1px solid rgba(255,143,208,.55); box-shadow: 0 0 18px rgba(255,111,174,.28); }

/* ---- v6 (21.10.2026): профиль, колокольчик и «Меню» — один блок ---- */
.hb-hub { border-radius: 20px; background: var(--panel); border: 1px solid var(--panel-line); margin-bottom: 14px; overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(255, 126, 182, .08); }
.hb-hub .hb-top { background: none; border: 0; border-radius: 0; margin: 0; padding: 12px 14px 12px 12px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hb-hub .hb-menu { background: rgba(255, 255, 255, .035); border: 0; border-top: 1px solid var(--panel-line); border-radius: 0; margin: 0; min-height: 0; padding: 12px 14px; }
.hb-hub .hb-ava { width: 50px; height: 50px; }
.hb-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.hb-lv { font-size: 11.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }


/* ---- v7 (21.10.2026): шапка главной — ты и колокольчик, под ними четыре быстрые кнопки ---- */
.hb-hub .hb-bell { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid var(--panel-line); box-shadow: none; }
.hb-hub .hb-name { font-size: 18px; }
.hb-hub .hb-lv { font-size: 12px; opacity: .85; }
.hb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px 12px; }
.hb-q { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 9px; border-radius: 16px; color: var(--ink); font: 600 11.5px/1 var(--sans, inherit); cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 16%, transparent), rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); transition: transform .12s; }
.hb-q:active { transform: scale(.95); }
.hb-q-ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: var(--ac); background: rgba(14, 8, 20, .45); }
.hb-q-ico .ui-svg { width: 19px; height: 19px; }

/* 21.10.2026 (владелица: «выполненные задания пусть подсвечиваются»): готовое и полученное видно сразу — золотая подложка, галочка, золотой счёт */
.hb-t-row.ready, .hb-t-row.claimed { margin: 3px -6px; padding: 9px 8px 9px 10px; border-radius: 12px; border-bottom: 0; position: relative;
  background: linear-gradient(90deg, rgba(255, 198, 92, .17), rgba(255, 198, 92, .05)); box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .32); }
.hb-t-row.ready { box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .5), 0 0 16px rgba(255, 198, 92, .16); }
.hb-t-row.claimed { opacity: 1; background: linear-gradient(90deg, rgba(255, 198, 92, .11), rgba(255, 198, 92, .03)); }
.hb-t-row.ready .hb-t-text, .hb-t-row.claimed .hb-t-text { color: #ffe3a6; }
.hb-t-row.ready .hb-t-text::before, .hb-t-row.claimed .hb-t-text::before { content: '✓'; display: inline-block; margin-right: 6px; font-weight: 700; color: var(--gold, #ffc65c); }
.hb-t-row.ready .hb-t-count, .hb-t-row.claimed .hb-t-count { color: var(--gold, #ffc65c); }
.hb-t-row.claimed .hb-t-pill { color: rgba(255, 227, 166, .8); }

/* 21.10.2026: число готовых к получению заданий — значок у названия, как у колокольчика */
.hb-t-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 9px; border-radius: 99px; vertical-align: 2px;
  font: 700 11.5px/1 var(--sans, inherit); font-style: normal; color: #2a1030; background: linear-gradient(135deg, #ff8fd0, #ffd27a); box-shadow: 0 0 10px rgba(255, 143, 208, .35); }
