/* Шапка + сетка страницы */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(14px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(5, 8, 20, .92), rgba(5, 8, 20, .78));
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--edge-dark);
  box-shadow: 0 2px 0 var(--edge-light), 0 12px 34px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand-gem {
  font-size: 22px;
  color: var(--green);
  text-shadow: 0 0 16px var(--green);
  animation: gem-pulse 3.2s ease-in-out infinite;
}
@keyframes gem-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.brand-text strong {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(12px, 1.8vw, 16px);
  letter-spacing: .03em;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .85), 0 0 16px rgba(255, 215, 107, .3);
}
.brand-text small { color: var(--muted); }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.session { display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  background: var(--panel-2);
  border: 2px solid var(--edge-dark);
  box-shadow: inset 0 0 0 1px var(--edge-light);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.user-chip img { width: 32px; height: 32px; border-radius: 4px; border: 2px solid var(--edge); }
.logout {
  background: transparent;
  border: 2px solid var(--edge-dark);
  box-shadow: inset 0 0 0 1px var(--edge-light);
  border-radius: 6px;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}
.logout:hover { color: var(--text); border-color: var(--gold); }

.shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(360px, 1fr) minmax(320px, 440px);
  gap: 18px;
  padding: clamp(14px, 3vw, 32px);
  align-items: start;
}
.sidebar, .detail-wrap { position: sticky; top: 84px; display: grid; gap: 16px; }
.content { min-width: 0; display: grid; gap: 16px; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 280px minmax(0, 1fr); }
  .detail-wrap { grid-column: 1 / -1; position: static; }
  .achievement-list { max-height: none; overflow: visible; }
  .detail-panel { scroll-margin-top: 92px; }
}
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .shell { grid-template-columns: 1fr; padding: 12px; }
  .sidebar { position: static; }
  .filter-grid { grid-template-columns: 1fr; }
  .session { flex-wrap: wrap; }
  .topbar .session .btn--steam { display: none; }
}

/* «на главную» — в стилистике главной: брутальная кислотная плашка */
.home-huy {
  font-family: 'Bebas Neue', var(--font-pixel);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  background: #c6ff1a;
  padding: 7px 13px 5px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #ff2e8b;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .15s, color .15s;
}
.home-huy:hover { background: #ff2e8b; color: #fff; box-shadow: 3px 3px 0 #000; transform: translate(-1px, -1px); }
.home-huy:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
