﻿/* RELOAD23 вЂ” header v1
   РўС‘РјРЅР°СЏ С€Р°РїРєР° РІ РѕРґРёРЅ СЂСЏРґ: Р»РѕРіРѕС‚РёРї, С†РµРЅС‚СЂР°Р»СЊРЅРѕРµ РјРµРЅСЋ СЃ hover-РІС‹РїР°РґР°С€РєР°РјРё,
   СЃРїСЂР°РІР° вЂ” РєРЅРѕРїРєР° Р®Р—Р•Р , СѓРІРµРґРѕРјР»РµРЅРёСЏ Рё РїСЂРѕС„РёР»СЊ РёРіСЂРѕРєР°. */

@font-face {
  font-family: "Motiva Sans";
  src: url("../fonts/motiva-sans-700.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

.r23-coin {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  flex: 0 0 auto;
  background: url("/assets/img/coin.svg") no-repeat center / contain;
  vertical-align: -0.12em;
}

:root {
  --p446-green: #7cc242;
  --p446-green-dim: #5c9a2e;
  --p446-bg: #171a21;
  --p446-panel: #1e2733;
  --p446-line: #23262e;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--p446-bg);
  border-bottom: 1px solid var(--p446-line);
  box-shadow: none;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: none !important;
  min-height: 64px;
  padding: 0 12px;
}

.header-inner .brand {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  gap: 0;
  justify-self: start;
  color: #fff;
  text-decoration: none;
}

.header-inner .brand-name {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #fff;
}

.header-inner .brand-accent {
  color: var(--p446-green);
}

/* Р¦РµРЅС‚СЂР°Р»СЊРЅРѕРµ РјРµРЅСЋ */

.main-nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-self: center;
  gap: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 64px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: #dcdedf;
  font-family: "Motiva Sans", "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 21px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #fff;
}

.nav-link.is-active,
.nav-item.is-active > .nav-link {
  color: #fff;
}

.nav-caret {
  color: #67707b;
  flex: 0 0 auto;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item {
  position: relative;
}

.nav-item:hover .nav-caret,
.nav-item.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 95;
  width: 344px;
  padding: 8px;
  background: var(--p446-panel);
  border: 1px solid #2b3a4a;
  border-top: 2px solid var(--p446-green);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
}

/* РќРµРІРёРґРёРјС‹Р№ РјРѕСЃС‚РёРє С‡РµСЂРµР· РѕС‚СЃС‚СѓРї, С‡С‚РѕР±С‹ РјРµРЅСЋ РЅРµ Р·Р°РєСЂС‹РІР°Р»РѕСЃСЊ РїСЂРё РїРµСЂРµС…РѕРґРµ РєСѓСЂСЃРѕСЂР°. */
.nav-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover > .nav-menu,
.nav-item.is-open > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-menu a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 120ms var(--ease);
}

.nav-menu a:hover {
  background: rgba(124, 194, 66, 0.1);
}

.nav-menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #7f8c99;
}

.nav-menu-icon svg {
  width: 22px;
  height: 22px;
}

.nav-menu a:hover .nav-menu-icon {
  color: var(--p446-green);
}

.nav-menu-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-menu-title {
  color: #e9f0f6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.nav-menu-desc {
  color: #7f8c99;
  font-size: 12px;
  line-height: 1.4;
}

/* РџСЂР°РІР°СЏ С‡Р°СЃС‚СЊ */

.header-right {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav-label {
  position: relative;
  display: inline-block;
  max-width: 170px;
  padding-bottom: 3px;
  margin-bottom: -3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--p446-green);
  opacity: 0;
  transform: scale3d(0, 1, 1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform 520ms cubic-bezier(0.45, 0, 0.25, 1), opacity 260ms ease-out;
}

.nav-link:hover .nav-label::after,
.nav-link.is-active .nav-label::after,
.nav-item:hover > .nav-link .nav-label::after,
.nav-item.is-open > .nav-link .nav-label::after,
.nav-item.is-active > .nav-link .nav-label::after {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #4f7d17;
  border-radius: 3px;
  background: linear-gradient(180deg, #7cb42b 0%, #5f921f 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: filter 120ms var(--ease);
}

.steam-login-btn:hover {
  color: #fff;
  filter: brightness(1.1);
}

.steam-login-btn svg {
  flex: 0 0 auto;
}

/* Р“РѕСЃС‚СЊ РІРёРґРёС‚ С‚РѕР»СЊРєРѕ Р»РѕРіРѕС‚РёРї Рё РєРЅРѕРїРєСѓ РІС…РѕРґР° С‡РµСЂРµР· Steam. */
html:not(.has-user) .main-nav,
html:not(.has-user) .notify-btn,
html:not(.has-user) .user-area,
html:not(.has-user) .nav-toggle {
  display: none !important;
}

html.has-user .steam-login-btn {
  display: none !important;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #9aa8b6;
  cursor: pointer;
  transition: color 120ms var(--ease), background-color 120ms var(--ease);
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.notify-dot {
  position: absolute;
  top: 0;
  right: -1px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--p446-green);
  color: #0b0f14;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--p446-bg);
  pointer-events: none;
}

.notify-btn.has-notifications .notify-dot {
  display: inline-flex;
}

/* РџР°РЅРµР»СЊ СѓРІРµРґРѕРјР»РµРЅРёР№ */
.notify-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 320px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border-radius: 8px;
  background: #171d25;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.notify-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notify-panel__title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notify-mark-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #7cc242;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.notify-mark-all svg {
  width: 12px;
  height: 12px;
}

.notify-mark-all:hover {
  text-decoration: underline;
}

.notify-mark-all[hidden] {
  display: none;
}

.notify-list {
  max-height: 420px;
  overflow-y: auto;
}

.notify-list--page {
  max-height: none;
}

.notify-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}

.notify-row:last-child {
  border-bottom: 0;
}

.notify-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notify-row.is-read {
  opacity: 0.6;
}

.notify-row__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #67707b;
}

.notify-row__icon svg {
  width: 14px;
  height: 14px;
}

.notify-row__body {
  min-width: 0;
  flex: 1;
}

.notify-row__title {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.notify-row__text {
  display: block;
  margin-top: 2px;
  color: #8b929a;
  font-size: 11px;
  line-height: 16px;
}

.notify-row__time {
  display: block;
  margin-top: 4px;
  color: #4b5462;
  font-size: 10px;
}

.notify-empty {
  margin: 0;
  padding: 24px 16px;
  color: #8b929a;
  font-size: 12px;
  text-align: center;
}

.notify-all {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #7cc242;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease;
}

.notify-all:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #46b356;
}

.notify-browser {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.1);
}

.notify-browser__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.notify-browser__title svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #7cc242;
}

.notify-browser__text {
  margin: 4px 0 0;
  color: #8b929a;
  font-size: 11px;
  line-height: 16px;
}

.notify-browser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.notify-enable {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid #7cc242;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.notify-enable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notify-test {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #dcdedf;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.notify-test:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .notify-panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
  }
}

/* РџСЂРѕС„РёР»СЊ */

.user-area {
  display: flex;
  align-items: center;
  position: relative;
}

.user-login {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(124, 194, 66, 0.28);
  border-radius: 2px;
  background: rgba(124, 194, 66, 0.05);
  color: #c7d5e0;
  font-size: 12px;
  font-weight: 600;
}

.user-login:hover {
  border-color: rgba(124, 194, 66, 0.6);
  background: rgba(124, 194, 66, 0.14);
  color: #fff;
}

.user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #c7d5e0;
  cursor: pointer;
  text-align: left;
}

.user-chip:hover {
  color: #fff;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(145deg, #30442c, #1e2a1c);
  color: #d9f0c2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.avatar,
img.profile-avatar {
  object-fit: cover;
}

.friend-row__avatar img,
.profile-avatar img,
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.user-chip-nick {
  max-width: 140px;
  overflow: hidden;
  color: #e9f0f6;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  color: #8193a5;
  flex: 0 0 auto;
  transition: transform 160ms var(--ease);
}

.user-chip[aria-expanded="true"] .user-caret {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  z-index: 95;
  width: 236px;
  padding: 6px;
  background: var(--p446-panel);
  border: 1px solid #2b3a4a;
  border-radius: 3px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
}

.user-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.user-menu-wrap:hover .user-menu,
.user-menu-wrap.is-open .user-menu,
.user-chip[aria-expanded="true"] + .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu a,
.user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #c7d5e0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.user-menu a:hover,
.user-menu button:hover {
  background: rgba(124, 194, 66, 0.11);
  color: #fff;
}

.user-menu svg {
  color: #8193a5;
  flex: 0 0 auto;
}

.user-menu-sep {
  height: 1px;
  margin: 4px 0;
  background: var(--p446-line);
}

.user-menu .user-menu-out {
  color: #ff9b83;
}

.user-menu .user-menu-out:hover {
  background: rgba(217, 65, 38, 0.14);
  color: #ffb3a2;
}

/* РњРѕР±РёР»СЊРЅРѕРµ РјРµРЅСЋ */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--p446-line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #c7d5e0;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 56px;
    padding: 0 8px;
  }

  .header-right {
    grid-column: 2;
  }

  .main-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    gap: 0;
    padding: 10px 16px 28px;
    overflow-y: auto;
    background: var(--p446-bg);
    border-top: 1px solid var(--p446-line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 15px 8px;
    font-size: 14px;
  }

  .nav-menu {
    position: static;
    display: none;
    width: 100%;
    padding: 4px 0 10px 8px;
    margin: 0 0 6px;
    border: 0;
    border-left: 2px solid var(--p446-green);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.is-open > .nav-menu {
    display: block;
  }

  .nav-menu::before {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

}

@media (max-width: 640px) {
  .header-inner .brand-name {
    font-size: 1.3rem;
  }

  .header-right {
    gap: 4px;
  }

  .user-chip-nick {
    max-width: 72px;
  }

  .nav-menu {
    width: 100%;
  }
}

@media (hover: none) {
  .nav-item:hover > .nav-menu {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
  }

  .user-menu-wrap:hover .user-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
  }
}

/* РћС‚СЃС‚СѓРїС‹ С€Р°РїРєРё РєР°Рє РЅР° RELOAD23: 48px РЅР° С€РёСЂРѕРєРёС… СЌРєСЂР°РЅР°С…. */
.header-inner { padding-left: 48px; padding-right: 48px; }

@media (max-width: 1280px) {
  .header-inner { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 1024px) {
  .header-inner { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
  .header-inner { padding-left: 16px; padding-right: 16px; }
}

/* Р Р°Р·РјРµСЂС‹ РІС‹РїР°РґР°СЋС‰РµРіРѕ РјРµРЅСЋ РєР°Рє РЅР° СЂРµС„РµСЂРµРЅСЃРµ. */
@media (min-width: 1025px) {
  .nav-menu {
    width: 256px;
    padding: 6px;
  }

  .nav-menu a {
    gap: 8px;
    padding: 8px 10px;
  }

  .nav-menu-icon {
    width: 20px;
    height: 20px;
  }

  .nav-menu-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-menu-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .nav-menu-desc {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* РЁРёСЂРёРЅР° РјРµРЅСЋ, РїСЂРё РєРѕС‚РѕСЂРѕР№ РѕРїРёСЃР°РЅРёСЏ РѕСЃС‚Р°СЋС‚СЃСЏ РІ РѕРґРЅСѓ СЃС‚СЂРѕРєСѓ. */
@media (min-width: 1025px) {
  .nav-menu { width: 300px; }
}

@media (min-width: 1025px) {
  .nav-menu { width: 320px; }
}

@media (min-width: 1025px) {
  .nav-menu { width: 310px; }
}

/* РЁСЂРёС„С‚ Р»РѕРіРѕС‚РёРїР° РєР°Рє РЅР° RELOAD23: Motiva Sans / system sans. */
.header-inner .brand-name {
  font-family: "Motiva Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
}

@media (max-width: 639px) {
  .header-inner .brand-name { font-size: 15px; }
}


