/* Нижняя панель телефона и шторка «Меню» (mobile-dock.js) */
@media(max-width:820px){
 html body .bottom-nav.dock{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;min-height:66px;padding:8px 6px max(8px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#0c0d11e6,#08090cf7);border-top:1px solid #ffffff12;box-shadow:0 -10px 30px #0006}
 html body .bottom-nav.dock .nav-link,.dock .dock-search,.dock .dock-menu{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0;padding:4px 2px 2px;border-radius:12px;color:#9aa0ad;font-size:11px;font-weight:600;text-decoration:none;background:none!important;-webkit-tap-highlight-color:transparent;transition:color .2s}
 html body .bottom-nav.dock .nav-link>svg{width:24px;height:24px}
 html body .bottom-nav.dock .nav-link.active,html body .bottom-nav.dock .nav-link[aria-current=page],.dock .dock-menu.active,.dock .dock-menu[aria-expanded=true]{color:var(--accent,#ff725b);background:none!important}
 html body .bottom-nav.dock .nav-link:active,.dock .dock-menu:active{transform:scale(.94)}
 .dock .dock-search{position:relative;color:#c9ced8}
 .dock-search-orb{display:grid;place-items:center;width:58px;height:58px;margin-top:-30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff9a85,var(--accent,#ff725b) 55%,#e2533d);color:#141416;box-shadow:0 8px 24px #ff725b55,0 0 0 5px #0b0c10;transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s}
 .dock-search-orb svg{width:26px;height:26px;stroke-width:2.1}
 .dock .dock-search:active .dock-search-orb{transform:scale(.92)}
 .dock .dock-menu{position:relative}
 .dock-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#ffffff10;color:#c9ced8}
 .dock-avatar svg{width:22px;height:22px}
 .dock-avatar.is-user{box-shadow:0 0 0 2px #ffffff26}
 .dock-avatar img{width:100%;height:100%;object-fit:cover}
 .dock-avatar b{font-size:13px;color:var(--text,#fff)}
 .dock .dock-menu[aria-expanded=true] .dock-avatar,.dock .dock-menu.active .dock-avatar{box-shadow:0 0 0 2px var(--accent,#ff725b)}
 .dock-badge{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent,#ff725b);color:#141416;font-size:10.5px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px #0b0c10}
 .dock-badge[hidden]{display:none}
 /* в шапке на телефоне остаются логотип и быстрые кнопки: профиль, уведомления и поиск переехали вниз */
 html body:has(.bottom-nav.dock) .header-actions .avatar,html body:has(.bottom-nav.dock) .header-actions .v2-notice-trigger,html body:has(.bottom-nav.dock) .header-actions #searchToggle{display:none!important}
 html body:has(.bottom-nav.dock){padding-bottom:calc(80px + env(safe-area-inset-bottom))}
 html body:has(.bottom-nav.dock) .back-to-top{bottom:calc(90px + env(safe-area-inset-bottom))}
}
/* шторка меню */
.dock-sheet{position:fixed;inset:auto 0 0 0;width:100%;max-width:560px;max-height:88dvh;margin:0 auto;padding:0;border:0;border-radius:22px 22px 0 0;background:var(--panel,#15161a);color:var(--text,#f4f4f5);display:none;flex-direction:column;overflow:hidden;box-shadow:0 -20px 60px #000a;transition:translate .2s}
.dock-sheet[open]{display:flex;animation:dock-in .28s cubic-bezier(.22,1,.36,1)}
.dock-sheet::backdrop{background:#000000a6;backdrop-filter:blur(4px)}
@keyframes dock-in{from{transform:translateY(60px);opacity:.3}}
.dock-grip{flex:0 0 auto;width:42px;height:5px;margin:10px auto 2px;border-radius:999px;background:#ffffff33}
.dock-sheet-body{overflow:auto;overscroll-behavior:contain;padding:0 0 calc(14px + env(safe-area-inset-bottom))}
.dock-profile{display:flex;align-items:center;gap:14px;padding:16px 18px 14px;background:radial-gradient(120% 140% at 0 0,#ff725b40,transparent 60%),radial-gradient(100% 120% at 100% 0,#7c5cff33,transparent 60%)}
.dock-profile-avatar{display:grid;place-items:center;width:64px;height:64px;flex:0 0 auto;border-radius:50%;overflow:hidden;background:#ffffff14;box-shadow:0 0 0 3px #ffffff22;color:var(--text);font-size:24px;font-weight:700;text-decoration:none}
.dock-profile-avatar img{width:100%;height:100%;object-fit:cover}
.dock-profile-names{min-width:0}
.dock-profile-names strong{display:flex;align-items:center;gap:6px;overflow:hidden;font-size:19px;text-overflow:ellipsis;white-space:nowrap}
.dock-profile-names small{display:block;margin-top:2px;color:var(--muted,#a1a1aa);font-size:13px}
.dock-crown{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#7c5cff;color:#fff}
.dock-crown svg{width:13px;height:13px}
.dock-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 16px 14px;background:linear-gradient(#ffffff00,#ffffff00)}
.dock-stats div{display:grid;justify-items:center;gap:2px;padding:10px 4px;border-radius:14px;background:#ffffff0a}
.dock-stats b{font-size:19px}
.dock-stats span{display:flex;align-items:center;gap:4px;color:var(--muted,#a1a1aa);font-size:11.5px}
.dock-stats svg{width:13px;height:13px}
.dock-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 16px 8px;padding:12px 14px;border:1px solid #7c5cff66;border-radius:16px;background:linear-gradient(120deg,#7c5cff26,#ff725b14);color:var(--text);text-decoration:none}
.dock-sub strong{display:block;background:linear-gradient(90deg,#ff8ab0,#b79cff);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:16px;font-weight:800}
.dock-sub small{display:block;margin-top:2px;color:var(--muted,#a1a1aa);font-size:12.5px}
.dock-sub-go{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:8px 12px;border-radius:11px;background:#7c5cff;color:#fff;font-size:13px;font-weight:700}
.dock-sub-go svg{width:15px;height:15px}
.dock-list{display:grid;padding:4px 8px}
.dock-row{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 10px;border:0;border-radius:12px;background:none;color:var(--text);font:inherit;font-size:15.5px;text-align:left;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dock-row:active{background:#ffffff0d}
.dock-row-icon{display:grid;place-items:center;width:24px;flex:0 0 auto;color:#c9ced8}
.dock-row-icon svg{width:21px;height:21px}
.dock-row-label{flex:1;min-width:0}
.dock-row-label small{display:block;margin-top:1px;color:var(--muted,#a1a1aa);font-size:12px}
.dock-row-meta{display:inline-flex;align-items:center;gap:8px;color:var(--muted,#a1a1aa);font-size:13.5px;font-variant-numeric:tabular-nums}
.dock-row-go{color:#ffffff40}
.dock-row-go svg{width:16px;height:16px}
.dock-coins{display:inline-flex;align-items:center;gap:5px;color:#f2b84b;font-weight:700}
.dock-coins svg{width:16px;height:16px}
.dock-dots{display:inline-flex;gap:4px}
.dock-dots i{width:7px;height:7px;border-radius:50%;background:#ffffff26}
.dock-dots i.on{background:#7c5cff}
.dock-pill{min-width:20px;padding:1px 7px;border-radius:999px;background:var(--accent,#ff725b);color:#141416;font-size:12px;font-weight:800;text-align:center}
.dock-claim{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;border-radius:11px;background:linear-gradient(90deg,#7c5cff,#9b7bff);color:#fff;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:0 6px 18px #7c5cff55}
.dock-claim svg{width:16px;height:16px}
.dock-claim:disabled{opacity:.6}
.dock-logout{margin-top:4px;color:#ff8a7a}
.dock-logout .dock-row-icon{color:#ff8a7a}
.dock-guest{display:grid;justify-items:center;gap:8px;padding:18px 22px 10px;text-align:center}
.dock-guest-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#ffffff10;color:#c9ced8}
.dock-guest-icon svg{width:30px;height:30px}
.dock-guest h2{margin:6px 0 0;font-size:20px}
.dock-guest p{margin:0 0 6px;color:var(--muted,#a1a1aa);font-size:14px;line-height:1.5}
.dock-guest .button{width:100%;justify-content:center}
@media(prefers-reduced-motion:reduce){.dock-sheet[open]{animation:none}.dock-search-orb{transition:none}}
