* {
  box-sizing: border-box;
}

.launcher-page {
  margin: 0;
  min-height: 100vh;
  background: #101418;
  color: #f5f7fa;
  font-family: Arial, Helvetica, sans-serif;
}


.launcher-kicker {
  color: #66c0f4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.launcher-title {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.launcher-status-link {
  color: #c7d5e0;
  background: #1b2a3a;
  border: 1px solid #2f455d;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.launcher-main {
  padding: 24px;
}

.launcher-section {
  margin-bottom: 30px;
}

.launcher-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.launcher-section-title {
  margin: 0;
  font-size: 22px;
}

.launcher-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launcher-platform {
  border: 1px solid #334454;
  padding: 8px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  background: #151c23;
  font-size: 14px;
  font-weight: 700;
}

.launcher-platform-count {
  color: #66c0f4;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.launcher-game {
  background: #151c23;
  border: 1px solid #26313d;
  border-radius: 8px;
  overflow: hidden;
}

.launcher-game-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0b1118;
  border-bottom: 1px solid #223244;
}

.launcher-game-body {
  padding: 12px;
}

.launcher-game-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.launcher-game-meta {
  color: #9aa7b4;
  font-size: 13px;
  line-height: 1.4;
}

.launcher-game-actions {
  margin-top: 12px;
}

.launcher-play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #66c0f4;
  color: #07111c;
  font-weight: 800;
  text-decoration: none;
}

.launcher-empty {
  color: #8ea4bb;
  background: #151c23;
  border: 1px solid #26313d;
  border-radius: 8px;
  padding: 16px;
}

@media (max-width: 720px) {
  .launcher-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .launcher-main {
    padding: 18px;
  }

  .launcher-title {
    font-size: 26px;
  }
}

.launcher-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.launcher-news-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  background: #151c23;
  border: 1px solid #26313d;
  border-radius: 8px;
  padding: 16px;
}

.launcher-news-type {
  width: fit-content;
  border-radius: 999px;
  background: rgba(102, 192, 244, .14);
  border: 1px solid rgba(102, 192, 244, .35);
  color: #66c0f4;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.launcher-news-title {
  margin-top: 12px;
  color: #f5f7fa;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.launcher-news-excerpt {
  margin-top: 8px;
  color: #9aa7b4;
  font-size: 14px;
  line-height: 1.45;
}

.launcher-news-link {
  margin-top: 14px;
  color: #66c0f4;
  font-weight: 900;
  text-decoration: none;
}

.launcher-leaderboard {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.launcher-leaderboard-row {
  display: grid;
  grid-template-columns: 44px 56px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  background: #151c23;
  border: 1px solid #26313d;
  border-radius: 8px;
  padding: 10px 12px;
}

.launcher-leaderboard-rank {
  color: #66c0f4;
  font-size: 18px;
  font-weight: 900;
}

.launcher-leaderboard-flag {
  font-size: 28px;
}

.launcher-leaderboard-name {
  font-weight: 900;
}

.launcher-leaderboard-title {
  margin-top: 3px;
  color: #8ea4bb;
  font-size: 13px;
}

.launcher-leaderboard-score {
  color: #f5f7fa;
  font-weight: 900;
  text-align: right;
}

.launcher-leaderboard-score-label {
  color: #8ea4bb;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .launcher-leaderboard-row {
    grid-template-columns: 36px 42px minmax(0, 1fr);
  }

  .launcher-leaderboard-score {
    grid-column: 3;
    text-align: left;
  }
}

.launcher-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.launcher-news-tag {
  border: 1px solid rgba(102, 192, 244, .32);
  border-radius: 999px;
  background: rgba(102, 192, 244, .1);
  color: #66c0f4;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.launcher-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.launcher-news-tag {
  border: 1px solid rgba(102, 192, 244, .32);
  border-radius: 999px;
  background: rgba(102, 192, 244, .1);
  color: #66c0f4;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.launcher-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.launcher-filter-field {
  display: grid;
  gap: 6px;
}

.launcher-filter-search {
  min-width: 0;
}

.launcher-filter-label {
  color: #9fb0c4;
  font-size: 13px;
  font-weight: 700;
}

.launcher-filter-input,
.launcher-filter-select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #26384c;
  border-radius: 8px;
  background: #101925;
  color: #f4f8ff;
  font: inherit;
}

.launcher-filter-input::placeholder {
  color: #73859a;
}

.launcher-filter-clear {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: #142131;
  color: #67c8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .launcher-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .launcher-filters {
    grid-template-columns: 1fr;
  }
}

.launcher-filter-search-wrap {
  position: relative;
}

.launcher-quick-search {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #26384c;
  border-radius: 10px;
  background: #0d1520;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.launcher-quick-search-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  background: #101925;
}

.launcher-quick-search-item:hover {
  border-color: #34506c;
  background: #142131;
}

.launcher-quick-search-cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #081018;
}

.launcher-quick-search-body {
  min-width: 0;
}

.launcher-quick-search-title {
  color: #f4f8ff;
  font-size: 14px;
  font-weight: 800;
}

.launcher-quick-search-meta {
  color: #9fb0c4;
  font-size: 12px;
  margin-top: 3px;
}

.launcher-quick-search[hidden] {
  display: none !important;
}

.launcher-platform {
  cursor: pointer;
}

.launcher-platform-active {
  border-color: #67c8ff;
  background: #142131;
  color: #9dddff;
}

.launcher-genre-chip {
  padding: 0;
  border: 0;
  background: transparent;
  color: #67c8ff;
  font: inherit;
  cursor: pointer;
}

.launcher-genre-chip:hover {
  color: #9dddff;
  text-decoration: underline;
}

.launcher-game {
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.launcher-game:hover {
  border-color: #34506c;
  transform: translateY(-1px);
}

.launcher-game-cover-link {
  display: block;
}

.launcher-game-title-link {
  color: #f4f8ff;
  text-decoration: none;
}

.launcher-game-title-link:hover {
  color: #9dddff;
}

.launcher-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.launcher-active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #34506c;
  border-radius: 999px;
  background: #142131;
  color: #9dddff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.launcher-active-filter-pill:hover {
  border-color: #67c8ff;
  color: #c8efff;
}

.launcher-active-filter-pill-close {
  color: #67c8ff;
  line-height: 1;
}

.launcher-genre-chip-active {
  color: #c8efff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.launcher-quick-search-item-active {
  border-color: #67c8ff;
  background: #142131;
}

.launcher-empty-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #26384c;
  border-radius: 10px;
  background: #101925;
}

.launcher-empty-title {
  color: #f4f8ff;
  font-size: 16px;
  font-weight: 800;
}

.launcher-empty-copy {
  color: #9fb0c4;
  font-size: 14px;
  line-height: 1.5;
}

.launcher-empty-action {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: #142131;
  color: #67c8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.launcher-empty-action:hover {
  border-color: #67c8ff;
  color: #c8efff;
}

.launcher-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 320px);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  min-height: 360px;
}

.launcher-hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.launcher-hero-content,
.launcher-hero-cover-wrap {
  position: relative;
  z-index: 1;
}

.launcher-hero-content {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.launcher-hero-kicker {
  color: #67c8ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.launcher-hero-title {
  margin: 0;
  color: #f4f8ff;
  font-size: 42px;
  line-height: 1.05;
}

.launcher-hero-meta {
  color: #c0cede;
  font-size: 15px;
  font-weight: 700;
}

.launcher-hero-description {
  margin: 0;
  max-width: 60ch;
  color: #d5e2ef;
  font-size: 15px;
  line-height: 1.6;
}

.launcher-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.launcher-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: rgba(20, 33, 49, 0.92);
  color: #9dddff;
  text-decoration: none;
  font-weight: 700;
}

.launcher-hero-button-primary {
  background: #67c8ff;
  border-color: #67c8ff;
  color: #07111c;
}

.launcher-hero-cover-wrap {
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 24px 24px 24px 0;
}

.launcher-hero-cover {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
  .launcher-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .launcher-hero-cover-wrap {
    justify-items: start;
    padding: 0 28px 28px;
  }

  .launcher-hero-title {
    font-size: 34px;
  }
}

.store-header {
  display: grid;
  gap: 14px;
  padding: 18px 24px 20px;
  border-bottom: 1px solid #223244;
  background: linear-gradient(180deg, #111924 0%, #131d29 100%);
}

.store-header-top {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.store-logo {
  color: #f4f8ff;
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.store-primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-primary-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.store-primary-link:hover,
.store-logo:hover {
  color: #9dddff;
}

.store-primary-link-active {
  color: #67c8ff;
  border-bottom: 2px solid #67c8ff;
  padding-bottom: 4px;
}

.store-header-sub {
  display: grid;
  gap: 4px;
}

.store-kicker {
  color: #67c8ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-title {
  margin: 0;
  color: #f4f8ff;
  font-size: 44px;
  line-height: 1.04;
}

.launcher-quick-search-group-title {
  color: #9fb0c4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 4px 0;
}

@media (max-width: 720px) {
  .store-logo {
    font-size: 28px;
  }

  .store-title {
    font-size: 34px;
  }

  .store-primary-nav {
    gap: 14px;
  }
}


.site-header {
  padding: 0 24px;
  border-bottom: 1px solid #223244;
  background: #131d29;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  flex-wrap: wrap;
}

.site-logo {
  color: #f4f8ff;
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.site-logo:hover {
  color: #9dddff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.site-nav-link:hover {
  color: #9dddff;
}

.site-nav-link-active {
  color: #67c8ff;
}

@media (max-width: 720px) {
  .site-header-inner {
    gap: 16px;
    min-height: 64px;
  }

  .site-logo {
    font-size: 28px;
  }

  .site-nav {
    gap: 14px;
  }
}


.site-header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-auth-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-auth-link:hover {
  color: #9dddff;
}

.site-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: #142131;
  color: #9dddff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-auth-button:hover {
  border-color: #67c8ff;
  color: #c8efff;
}

@media (max-width: 720px) {
  .site-header-inner {
    gap: 12px;
  }

  .site-header-main {
    gap: 16px;
  }

  .site-header-auth {
    width: 100%;
    margin-left: 0;
  }
}


.site-nav-dropdown {
  position: relative;
}

.site-nav-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.site-nav-link-button::-webkit-details-marker {
  display: none;
}

.site-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 180px;
  display: none;
  padding: 8px;
  border: 1px solid #26384c;
  border-radius: 10px;
  background: #101925;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.site-nav-dropdown[open] .site-nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.site-nav-dropdown-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #c4d0dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav-dropdown-link:hover {
  background: #142131;
  color: #9dddff;
}


.site-nav-platforms-menu {
  min-width: 240px;
  gap: 8px;
}

.site-nav-platform-group {
  display: grid;
  gap: 4px;
}

.site-nav-platform-group + .site-nav-platform-group,
.site-nav-platform-group + .site-nav-dropdown-link-standalone,
.site-nav-dropdown-link-standalone + .site-nav-platform-group,
.site-nav-dropdown-link-standalone + .site-nav-dropdown-link-standalone {
  margin-top: 4px;
}

.site-nav-platform-group-title {
  padding: 6px 10px 2px;
  color: #9fb0c4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.launcher-platform-count {
  display: none !important;
}



.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown-menu.site-nav-platforms-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(760px, calc(100vw - 48px));
  display: none;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px 18px;
  padding: 16px 18px;
  border: 1px solid #26384c;
  border-radius: 12px;
  background: #101925;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-height: min(70vh, 620px);
  overflow: auto;
}

.site-nav-dropdown[open] .site-nav-dropdown-menu.site-nav-platforms-menu {
  display: grid;
}

.site-nav-platform-group {
  display: grid;
  gap: 6px;
  align-content: start;
}

.site-nav-platform-group-title {
  margin: 0 0 2px;
  padding: 0;
  color: #8ea2b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav-dropdown-link,
.site-nav-dropdown-link-standalone {
  display: block;
  padding: 0;
  border-radius: 0;
  color: #d6e0ea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  background: transparent;
}

.site-nav-dropdown-link:hover,
.site-nav-dropdown-link-standalone:hover {
  color: #67c8ff;
  background: transparent;
}

.site-nav-dropdown-link-standalone {
  align-self: start;
  padding-top: 18px;
}

@media (max-width: 900px) {
  .site-nav-dropdown-menu.site-nav-platforms-menu {
    width: min(640px, calc(100vw - 32px));
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav-dropdown-menu.site-nav-platforms-menu {
    left: 0;
    width: min(520px, calc(100vw - 24px));
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 12px 16px;
    padding: 14px;
  }

  .site-nav-dropdown-link-standalone {
    padding-top: 14px;
  }
}


.site-nav-dropdown {
  position: relative;
}

.site-nav-platforms-tree {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 320px;
  display: none;
  padding: 10px;
  border: 1px solid #26384c;
  border-radius: 12px;
  background: #101925;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-height: 70vh;
  overflow: auto;
}

.site-nav-dropdown[open] > .site-nav-platforms-tree {
  display: block;
}

.site-nav-tree-group {
  margin: 0;
}

.site-nav-tree-group + .site-nav-tree-group,
.site-nav-tree-group + .site-nav-tree-link-standalone,
.site-nav-tree-link-standalone + .site-nav-tree-group,
.site-nav-tree-link-standalone + .site-nav-tree-link-standalone {
  margin-top: 6px;
}

.site-nav-tree-label,
.site-nav-tree-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: #d6e0ea;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.site-nav-tree-label {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav-tree-label::-webkit-details-marker {
  display: none;
}

.site-nav-tree-group[open] > .site-nav-tree-label,
.site-nav-tree-label:hover,
.site-nav-tree-link:hover {
  background: #142131;
  color: #67c8ff;
}

.site-nav-tree-children {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-left: 14px;
}

.site-nav-tree-link {
  padding: 7px 10px;
  border-radius: 8px;
}

.site-nav-tree-link-standalone {
  padding: 8px 10px;
}

.launcher-platform-count {
  display: none !important;
}


.site-header-search {
  flex: 1 1 420px;
  max-width: 520px;
  min-width: 260px;
  margin-left: auto;
}

.site-header-search .launcher-filter-label {
  display: none;
}

.site-header-search .launcher-filter-field,
.site-header-search .launcher-filter-search {
  width: 100%;
  margin: 0;
}

.site-header-search .launcher-search-shell {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.site-header-search .launcher-filter-input {
  width: 100%;
  min-height: 40px;
}

@media (max-width: 1100px) {
  .site-header-inner {
    align-items: flex-start;
  }

  .site-header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header-search .launcher-search-shell {
    grid-template-columns: 1fr;
  }
}


/* Keep header search inline between nav and auth */
.site-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.site-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 0 1 auto;
}

.site-nav {
  flex-wrap: nowrap;
}

.site-header-search {
  order: 2;
  flex: 1 1 360px;
  max-width: 420px;
  min-width: 240px;
  margin-left: 0;
}

.site-header-search .launcher-filter-label {
  display: none !important;
}

.site-header-search .launcher-filter-search,
.site-header-search .launcher-filter-field {
  width: 100%;
  min-width: 0;
}

.site-header-search .launcher-search-shell {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.site-header-search .launcher-filter-input {
  width: 100%;
  min-height: 40px;
}

.site-header-auth {
  order: 3;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

/* Kill the old filter row under hero */
#browse-games {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}


.site-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.site-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 0 1 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.site-header-search {
  order: 2;
  flex: 1 1 360px;
  max-width: 420px;
  min-width: 260px;
  margin-left: 0;
  position: relative;
}

.site-header-auth {
  order: 3;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

.site-header-search .launcher-filter-label {
  display: none !important;
}

.site-header-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.site-header-search .launcher-filter-search,
.site-header-search .launcher-filter-field,
.site-header-search .launcher-filter-input {
  width: 100%;
  min-width: 0;
}

.site-header-search .launcher-filter-input {
  min-height: 40px;
}

.site-header-search .launcher-filter-advanced-toggle {
  min-height: 40px;
  white-space: nowrap;
}

.site-header-advanced-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(640px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #26384c;
  border-radius: 12px;
  background: #101925;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.site-header-advanced-panel[hidden] {
  display: none !important;
}

.site-header-advanced-panel .launcher-filter-clear {
  min-height: 42px;
}

#browse-games,
#platforms {
  display: none !important;
}

@media (max-width: 1100px) {
  .site-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .site-header-search-row,
  .site-header-advanced-panel {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}


/* Final header line layout */
.site-header {
  padding: 0 24px !important;
}

.site-header-inner {
  display: grid !important;
  grid-template-columns: max-content minmax(220px, 340px) max-content !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 72px !important;
  flex-wrap: initial !important;
}

.site-header-main {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 0 !important;
  flex: initial !important;
}

.site-logo {
  white-space: nowrap !important;
}

.site-nav {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

.site-header-search {
  order: initial !important;
  flex: initial !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  position: relative !important;
}

.site-header-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.site-header-search .launcher-filter-label {
  display: none !important;
}

.site-header-search .launcher-filter-field,
.site-header-search .launcher-filter-search,
.site-header-search .launcher-filter-input {
  width: 100% !important;
  min-width: 0 !important;
}

.site-header-search .launcher-filter-input {
  min-height: 40px !important;
}

.site-header-search .launcher-filter-advanced-toggle,
#launcher-advanced-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #34506c !important;
  border-radius: 8px !important;
  background: #142131 !important;
  color: #67c8ff !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.site-header-search .launcher-filter-advanced-toggle:hover,
#launcher-advanced-toggle:hover {
  border-color: #67c8ff !important;
  color: #c8efff !important;
}

.site-header-auth {
  order: initial !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: initial !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
}

#browse-games,
#platforms {
  display: none !important;
}

@media (max-width: 940px) {
  .site-header-inner {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    padding: 12px 0 !important;
  }

  .site-header-main,
  .site-nav,
  .site-header-auth {
    flex-wrap: wrap !important;
  }
}

.site-header-search #launcher-advanced-toggle {
  display: none !important;
}

.launcher-quick-search-advanced {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 4px;
  border-radius: 8px;
  background: #142131;
  color: #67c8ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.launcher-quick-search-advanced:hover {
  color: #c8efff;
  background: #18283a;
}

.advanced-search-main {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.advanced-search-head {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.advanced-search-head h1 {
  margin: 0;
  color: #f4f8ff;
  font-size: 34px;
  line-height: 1.1;
}

.advanced-search-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.advanced-search-status {
  margin-top: 18px;
  color: #9fb0c4;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .advanced-search-controls {
    grid-template-columns: 1fr;
  }
}

/* Advanced search page: compact list layout */
.advanced-search-page .site-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-height: 72px !important;
  flex-wrap: nowrap !important;
}

.advanced-search-page .site-header-main {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  min-width: 0 !important;
}

.advanced-search-page .site-header-auth {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.advanced-search-controls {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto !important;
}

.advanced-search-results-list {
  display: grid;
  gap: 6px;
}

.advanced-search-row {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) minmax(96px, auto);
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 0 12px 0 0;
  border: 1px solid transparent;
  background: #111c28;
  color: inherit;
  text-decoration: none;
}

.advanced-search-row:hover {
  border-color: #34506c;
  background: #152233;
}

.advanced-search-row-cover {
  width: 184px;
  height: 72px;
  object-fit: cover;
  display: block;
  background: #0b1118;
}

.advanced-search-row-body {
  min-width: 0;
}

.advanced-search-row-title {
  color: #dbe6f2;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.advanced-search-row-meta {
  margin-top: 7px;
  color: #8fa4ba;
  font-size: 13px;
  line-height: 1.35;
}

.advanced-search-row-rating {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: #dbe6f2;
  font-weight: 800;
}

.advanced-search-row-rating-label {
  color: #7f93aa;
  font-size: 11px;
  text-transform: uppercase;
}

.advanced-search-row-rating-value {
  font-size: 15px;
}

@media (max-width: 860px) {
  .advanced-search-page .site-header-inner {
    flex-wrap: wrap !important;
  }

  .advanced-search-controls {
    grid-template-columns: 1fr !important;
  }

  .advanced-search-row {
    grid-template-columns: 112px minmax(0, 1fr);
    padding-right: 10px;
  }

  .advanced-search-row-cover {
    width: 112px;
    height: 64px;
  }

  .advanced-search-row-rating {
    grid-column: 2;
    justify-items: start;
  }
}

.launcher-hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.launcher-hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(159, 176, 196, 0.45);
  cursor: pointer;
}

.launcher-hero-dot-active {
  background: #67c8ff;
}

#latest-games {
  margin-top: 0;
}

#latest-games:empty {
  display: none;
}

#latest-games {
  scroll-margin-top: 88px;
}

#latest-games + * {
  margin-top: 0;
}

.launcher-section:has(#latest-games) .launcher-section-header {
  display: none;
}

.launcher-hero {
  min-height: 430px;
  height: 430px;
}

.launcher-hero-content {
  min-height: 0;
}

.launcher-hero-title {
  display: -webkit-box;
  min-height: 88px;
  max-height: 88px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.launcher-hero-description {
  display: -webkit-box;
  min-height: 96px;
  max-height: 96px;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.launcher-hero-meta {
  min-height: 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.launcher-hero-actions {
  min-height: 42px;
}

.launcher-hero-dots {
  min-height: 10px;
}

.launcher-hero-cover-wrap {
  min-height: 0;
}

.launcher-hero-cover {
  max-height: 360px;
}

@media (max-width: 900px) {
  .launcher-hero {
    height: auto;
    min-height: 0;
  }

  .launcher-hero-title {
    min-height: 0;
    max-height: none;
  }
}

.launcher-section:has(#latest-games) {
  margin-top: 28px;
}


/* header alignment fix */
.site-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(260px, 340px) auto !important;
  align-items: center !important;
  gap: 16px !important;
}

.site-header-main {
  min-width: 0 !important;
}

.site-header-search {
  justify-self: end !important;
  width: min(340px, 28vw) !important;
  min-width: 260px !important;
}

.site-header-auth {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: 1fr !important;
  }

  .site-header-search,
  .site-header-auth {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}


.auth-main {
  max-width: 420px;
  margin: 64px auto;
  padding: 0 24px;
}

.auth-panel {
  border: 1px solid #28425e;
  background: #101b27;
  border-radius: 8px;
  padding: 24px;
}

.auth-panel h1 {
  margin: 0 0 20px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #b8c7d9;
  font-weight: 800;
}

.auth-form input {
  min-height: 40px;
  border: 1px solid #2a4a68;
  border-radius: 6px;
  background: #0b1521;
  color: #f4f7fb;
  padding: 0 12px;
}

.site-auth-logout {
  margin: 0;
}


.auth-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-form input.auth-input-valid {
  border-color: #2fd36b;
  box-shadow: 0 0 0 1px rgba(47, 211, 107, 0.2);
}

.auth-form input.auth-input-invalid {
  border-color: #f05d5d;
  box-shadow: 0 0 0 1px rgba(240, 93, 93, 0.2);
}

.auth-field-message {
  min-height: 16px;
  font-size: 12px;
  font-weight: 800;
}

.auth-field-message-valid {
  color: #48dd7c;
}

.auth-field-message-valid::before {
  content: "✓ ";
}

.auth-field-message-invalid {
  color: #ff7a7a;
}


/* cleaner auth validation */
.auth-form label {
  position: relative;
}

.auth-form input {
  padding-right: 40px;
}

.auth-form input.auth-input-valid {
  border-color: #2fd36b;
  box-shadow: 0 0 0 1px rgba(47, 211, 107, 0.16);
  background-image: linear-gradient(transparent, transparent);
}

.auth-form label:has(input.auth-input-valid)::after {
  content: "✓";
  position: absolute;
  right: 13px;
  top: 38px;
  color: #48dd7c;
  font-size: 15px;
  font-weight: 900;
  pointer-events: none;
}

.auth-form input.auth-input-invalid {
  border-color: #f05d5d;
  box-shadow: 0 0 0 1px rgba(240, 93, 93, 0.16);
}

.auth-field-message {
  min-height: 0;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: #ff7a7a;
}

.auth-field-message[hidden] {
  display: none;
}

.auth-field-message-valid,
.auth-field-message-valid::before {
  content: none !important;
}

.auth-copy {
  color: #b8c7d9;
  line-height: 1.5;
  margin: 0 0 14px;
}

.auth-form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #ff5f6d;
  border-radius: 8px;
  background: rgba(255, 95, 109, 0.12);
  color: #ff8a94;
  font-weight: 800;
}

.auth-form-error,
.auth-form-success {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.auth-form-error {
  border: 1px solid #ff5f6d;
  background: rgba(255, 95, 109, 0.12);
  color: #ff8a94;
}

.auth-form-success {
  border: 1px solid #38e878;
  background: rgba(56, 232, 120, 0.12);
  color: #77f0a2;
}

.auth-muted-link {
  display: inline-flex;
  margin-top: 14px;
  color: #67c8ff;
  font-weight: 800;
  text-decoration: none;
}

.auth-muted-link:hover {
  text-decoration: underline;
}

.auth-form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #ff5f6d;
  border-radius: 8px;
  background: rgba(255, 95, 109, 0.12);
  color: #ff8a94;
  font-weight: 800;
}

.auth-muted-link {
  display: inline-flex;
  margin-top: 14px;
  color: #67c8ff;
  font-weight: 800;
  text-decoration: none;
}

.auth-form-success {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #38e878;
  border-radius: 8px;
  background: rgba(56, 232, 120, 0.12);
  color: #77f0a2;
  font-weight: 800;
}

.auth-form-success {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #38e878;
  border-radius: 8px;
  background: rgba(56, 232, 120, 0.12);
  color: #77f0a2;
  font-weight: 800;
}

.auth-muted-link {
  display: inline-flex;
  margin-top: 14px;
  color: #67c8ff;
  font-weight: 800;
  text-decoration: none;
}

.auth-muted-link:hover {
  text-decoration: underline;
}

.auth-panel-wide {
  width: min(680px, calc(100vw - 40px));
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(103, 200, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 20, 32, 0.55);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #67c8ff;
  color: #07111d;
  font-size: 24px;
  font-weight: 900;
}

.profile-nick {
  font-size: 20px;
  font-weight: 900;
}

.profile-email,
.profile-status {
  color: #b7c6d9;
  font-size: 13px;
}

.profile-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.favourites-list {
  display: grid;
  gap: 8px;
}

.favourites-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(10, 20, 32, 0.7);
  color: #f4f7fb;
  text-decoration: none;
}

.favourites-row:hover {
  background: rgba(28, 52, 76, 0.86);
}

.favourites-row img {
  width: 74px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #07111d;
}

.favourites-row strong,
.favourites-row small {
  display: block;
}

.favourites-row small,
.auth-empty-state {
  color: #b7c6d9;
}

.leaderboard-main {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.leaderboard-head {
  margin-bottom: 18px;
}

.leaderboard-head h1 {
  margin: 0;
  font-size: 38px;
}

.leaderboard-head p {
  margin: 6px 0 0;
  color: #b7c6d9;
}

.leaderboard-board {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 58px 82px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(103, 200, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 24, 38, 0.78);
  color: #f4f7fb;
  text-decoration: none;
}

.leaderboard-row:hover {
  border-color: rgba(103, 200, 255, 0.46);
  background: rgba(20, 39, 58, 0.92);
}

.leaderboard-rank {
  color: #67c8ff;
  font-weight: 900;
}

.leaderboard-row img {
  width: 82px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #07111d;
}

.leaderboard-player strong,
.leaderboard-player small {
  display: block;
}

.leaderboard-player small {
  color: #b7c6d9;
}

.leaderboard-score {
  color: #77f0a2;
  font-size: 22px;
  font-weight: 900;
}

.profile-shell {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(103, 200, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(103, 200, 255, 0.16), rgba(15, 30, 46, 0.72)),
    #0e1b2a;
}

.profile-avatar-large {
  width: 82px;
  height: 82px;
  font-size: 34px;
}

.profile-kicker {
  color: #67c8ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-hero-copy h1 {
  margin: 2px 0 4px;
  font-size: 34px;
}

.profile-meta {
  color: #b7c6d9;
  font-size: 14px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-stat-card {
  padding: 16px;
  border: 1px solid rgba(103, 200, 255, 0.2);
  border-radius: 8px;
  background: rgba(12, 24, 38, 0.84);
  color: #f4f7fb;
  text-decoration: none;
}

.profile-stat-card strong,
.profile-stat-card span {
  display: block;
}

.profile-stat-card strong {
  color: #67c8ff;
  font-size: 28px;
}

.profile-stat-card span {
  color: #b7c6d9;
  font-weight: 800;
}

.profile-section {
  padding: 18px;
  border: 1px solid rgba(103, 200, 255, 0.2);
  border-radius: 8px;
  background: rgba(12, 24, 38, 0.74);
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.profile-section-head a {
  color: #67c8ff;
  font-weight: 900;
  text-decoration: none;
}

.profile-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-game-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(7, 17, 29, 0.76);
  color: #f4f7fb;
  text-decoration: none;
}

.profile-game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
  background: #07111d;
}

.profile-game-card strong,
.profile-game-card small {
  display: block;
}

.profile-game-card small {
  color: #b7c6d9;
}

@media (max-width: 760px) {
  .profile-hero-card,
  .profile-stats-grid,
  .profile-games-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile layout stabilization */
.auth-page .auth-main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 74px);
  padding: 64px 20px;
  box-sizing: border-box;
}

.profile-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.site-header {
  width: 100%;
}

.site-header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}

.profile-hero-card,
.profile-stats-grid,
.profile-section {
  box-sizing: border-box;
}

.profile-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.profile-game-card {
  min-width: 0;
}

.profile-game-card img {
  height: 150px;
  aspect-ratio: auto;
}

@media (max-width: 760px) {
  .auth-page .auth-main {
    padding: 28px 14px;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Steam-like profile pass */
.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}

.profile-hero-card {
  grid-column: 1 / -1;
  min-height: 150px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 16, 27, 0.96), rgba(20, 55, 82, 0.72)),
    radial-gradient(circle at 82% 20%, rgba(103, 200, 255, 0.22), transparent 28%),
    #0d1a2a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.profile-avatar-large {
  border: 3px solid rgba(103, 200, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(103, 200, 255, 0.1);
}

.profile-hero-copy h1 {
  font-size: 40px;
  line-height: 1;
}

.profile-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-meta::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43e66f;
  box-shadow: 0 0 12px rgba(67, 230, 111, 0.78);
}

.profile-stats-grid {
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stat-card {
  min-height: 92px;
  background:
    linear-gradient(180deg, rgba(25, 50, 74, 0.88), rgba(9, 18, 31, 0.92));
}

.profile-stat-card:hover {
  border-color: rgba(103, 200, 255, 0.56);
}

.profile-section {
  grid-column: 1;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(16, 32, 50, 0.9), rgba(8, 16, 28, 0.92));
}

.profile-section::after {
  content: "";
  display: block;
  clear: both;
}

.profile-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.profile-game-card {
  background: rgba(4, 10, 18, 0.72);
  transition: transform 0.16s ease, background 0.16s ease;
}

.profile-game-card:hover {
  transform: translateY(-2px);
  background: rgba(20, 45, 68, 0.86);
}

.profile-game-card img {
  height: 170px;
  object-fit: contain;
}

.profile-shell::after {
  content: "Activity\\A Recently online\\A Cloud saves enabled\\A\\A Badges\\A Founder\\A Collector";
  white-space: pre-line;
  grid-column: 2;
  grid-row: 2 / span 2;
  padding: 18px;
  border: 1px solid rgba(103, 200, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 32, 50, 0.92), rgba(8, 16, 28, 0.94));
  color: #b7c6d9;
  font-weight: 800;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-shell::after,
  .profile-stats-grid,
  .profile-section {
    grid-column: 1;
  }
}

.profile-activity-list {
  display: grid;
  gap: 10px;
}

.profile-activity-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  color: #e8f2ff;
  text-decoration: none;
  background: rgba(7, 17, 28, 0.62);
  border: 1px solid rgba(87, 190, 255, 0.18);
  border-radius: 8px;
}

.profile-activity-card:hover {
  border-color: rgba(97, 199, 255, 0.56);
  background: rgba(20, 44, 66, 0.72);
}

.profile-activity-card img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #06101a;
}

.profile-activity-card strong,
.profile-activity-card small {
  display: block;
}

.profile-activity-card small,
.profile-activity-card time {
  color: #9fb3c8;
  font-size: 12px;
}

@media (max-width: 720px) {
  .profile-activity-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .profile-activity-card time {
    grid-column: 2;
  }
}


/* Public profile Steam-like polish */
.public-profile-shell {
  width: min(980px, calc(100vw - 48px));
  margin: 36px auto 80px;
}

.public-profile-shell::before,
.public-profile-shell::after {
  content: none !important;
  display: none !important;
}

.public-profile-shell .profile-hero-card {
  min-height: 150px;
  padding: 28px 32px;
  background:
    linear-gradient(90deg, rgba(5, 14, 24, .96), rgba(22, 66, 96, .78)),
    radial-gradient(circle at 85% 10%, rgba(94, 188, 255, .2), transparent 36%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.profile-steam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin-top: 14px;
}

.profile-main-column {
  min-width: 0;
}

.profile-main-column .profile-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.profile-steam-sidebar {
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(92, 190, 255, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 37, 50, .96), rgba(7, 17, 28, .96));
}

.profile-steam-sidebar h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.profile-side-list {
  display: grid;
  gap: 14px;
}

.profile-side-item span {
  display: block;
  color: #94a9bd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-side-item strong {
  display: block;
  margin-top: 4px;
  color: #eef6ff;
  font-size: 15px;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(92, 190, 255, .13);
  color: #cfe9ff;
  font-size: 12px;
  font-weight: 800;
}

.profile-activity-list {
  gap: 10px;
}

.profile-activity-card {
  min-height: 64px;
  padding: 10px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  background: rgba(5, 13, 22, .72);
}

.profile-activity-card img {
  width: 64px;
  height: 44px;
  padding: 3px;
  border-radius: 4px;
  background: #050b12;
  object-fit: contain;
}

.profile-activity-card strong {
  font-size: 15px;
}

.profile-game-card img {
  width: 92px;
  height: 122px;
  padding: 4px;
  background: #050b12;
  object-fit: contain;
}

@media (max-width: 860px) {
  .public-profile-shell {
    width: min(100% - 28px, 980px);
  }

  .profile-steam-layout {
    grid-template-columns: 1fr;
  }

  .profile-main-column .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-activity-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-activity-card time {
    grid-column: 2;
  }
}


/* Public profile Steam-like layout */
.public-profile-shell {
  width: min(980px, calc(100vw - 48px));
  margin: 36px auto 80px;
}

.public-profile-shell::before,
.public-profile-shell::after {
  content: none !important;
  display: none !important;
}

.public-profile-shell .profile-hero-card {
  min-height: 150px;
  padding: 28px 32px;
  background:
    linear-gradient(90deg, rgba(5, 14, 24, .96), rgba(22, 66, 96, .78)),
    radial-gradient(circle at 85% 10%, rgba(94, 188, 255, .2), transparent 36%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.profile-online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
  background: #21d263;
  box-shadow: 0 0 12px rgba(33, 210, 99, .85);
}

.profile-steam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin-top: 14px;
}

.profile-main-column {
  min-width: 0;
}

.profile-main-column .profile-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.profile-steam-sidebar {
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(92, 190, 255, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 37, 50, .96), rgba(7, 17, 28, .96));
}

.profile-steam-sidebar h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.profile-side-list {
  display: grid;
  gap: 14px;
}

.profile-side-item span {
  display: block;
  color: #94a9bd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-side-item strong {
  display: block;
  margin-top: 4px;
  color: #eef6ff;
  font-size: 15px;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(92, 190, 255, .13);
  color: #cfe9ff;
  font-size: 12px;
  font-weight: 800;
}

.profile-activity-card {
  min-height: 64px;
  padding: 10px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  background: rgba(5, 13, 22, .72);
}

.profile-activity-card img {
  width: 64px;
  height: 44px;
  padding: 3px;
  border-radius: 4px;
  background: #050b12;
  object-fit: contain;
}

.profile-game-card img {
  width: 92px;
  height: 122px;
  padding: 4px;
  background: #050b12;
  object-fit: contain;
}

@media (max-width: 860px) {
  .public-profile-shell {
    width: min(100% - 28px, 980px);
  }

  .profile-steam-layout {
    grid-template-columns: 1fr;
  }

  .profile-main-column .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-activity-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-activity-card time {
    grid-column: 2;
  }
}


/* Public profile layout correction */
.public-profile-shell .profile-steam-layout {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  align-items: start !important;
  gap: 14px !important;
}

.public-profile-shell .profile-main-column {
  width: 100% !important;
  min-width: 0 !important;
}

.public-profile-shell .profile-steam-sidebar {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

.public-profile-shell .profile-online-dot {
  display: none !important;
}

/* Small covers only in Recent Activity */
.public-profile-shell .profile-activity-card img {
  width: 58px !important;
  height: 42px !important;
  padding: 3px !important;
  border-radius: 4px !important;
  background: #050b12 !important;
  object-fit: contain !important;
}

/* Favourite Games back to the older larger cover/card look */
.public-profile-shell .profile-game-card {
  width: 150px !important;
  min-height: 230px !important;
  padding: 10px !important;
}

.public-profile-shell .profile-game-card img {
  width: 132px !important;
  height: 176px !important;
  padding: 0 !important;
  background: #050b12 !important;
  object-fit: contain !important;
}

.public-profile-shell .profile-game-card strong {
  margin-top: 8px !important;
  line-height: 1.05 !important;
}

@media (max-width: 860px) {
  .public-profile-shell .profile-steam-layout {
    grid-template-columns: 1fr !important;
  }

  .public-profile-shell .profile-game-card {
    width: 142px !important;
  }

  .public-profile-shell .profile-game-card img {
    width: 122px !important;
    height: 164px !important;
  }
}


/* Rich public profile */
.public-profile-shell {
  width: min(1120px, calc(100vw - 48px)) !important;
}

.profile-hero-card-rich {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 120px;
  align-items: center;
  gap: 24px;
  min-height: 190px !important;
}

.profile-flag {
  font-size: .42em;
  vertical-align: middle;
}

.profile-about {
  max-width: 560px;
  margin: 12px 0 0;
  color: #c6d5e4;
  font-size: 14px;
  line-height: 1.45;
}

.profile-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.profile-socials a {
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(92, 190, 255, .13);
  color: #9bd9ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.profile-level-box {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(92, 190, 255, .55);
  border-radius: 999px;
  background: rgba(4, 11, 19, .38);
}

.profile-level-box span {
  color: #c7d5e0;
  font-size: 13px;
}

.profile-level-box strong {
  color: #fff;
  font-size: 30px;
}

.profile-steam-layout-rich {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.profile-showcase,
.profile-side-card {
  border: 1px solid rgba(92, 190, 255, .25);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(22, 37, 50, .95), rgba(6, 15, 25, .95));
}

.profile-showcase {
  margin-bottom: 14px;
  overflow: hidden;
}

.profile-showcase-head {
  padding: 10px 14px;
  background: rgba(126, 147, 169, .23);
  color: #e5eef7;
  font-size: 16px;
}

.profile-achievement-strip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.profile-achievement {
  min-width: 86px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(5, 13, 22, .75);
  color: #dfeaf5;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.profile-achievement-muted {
  color: #9fb2c5;
}

.profile-achievement-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 14px 14px;
}

.profile-achievement-stats div {
  padding: 14px;
  background: rgba(5, 13, 22, .78);
}

.profile-achievement-stats strong {
  display: block;
  color: #fff;
  font-size: 34px;
}

.profile-achievement-stats span {
  color: #aebccb;
}

.profile-recent-section .profile-section-head {
  padding: 10px 12px;
  margin: -18px -18px 14px;
  background: rgba(126, 147, 169, .2);
}

.profile-recent-section .profile-section-head h2 {
  font-size: 17px;
}

.profile-recent-section .profile-section-head span {
  color: #dce7f2;
  font-size: 14px;
}

.profile-steam-sidebar-rich {
  display: grid;
  gap: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.profile-side-card {
  padding: 18px;
}

.profile-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-friends-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.profile-friend-empty {
  padding: 12px;
  border-radius: 4px;
  background: rgba(5, 13, 22, .65);
  color: #94a9bd;
}

.profile-friend-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(92, 190, 255, .34);
  border-radius: 4px;
  background: rgba(92, 190, 255, .12);
  color: #9bd9ff;
  font-weight: 800;
}

.public-profile-shell .profile-activity-card img {
  width: 64px !important;
  height: 44px !important;
  object-fit: contain !important;
}

.public-profile-shell .profile-game-card img {
  width: 132px !important;
  height: 176px !important;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  .profile-hero-card-rich,
  .profile-steam-layout-rich {
    grid-template-columns: 1fr !important;
  }

  .profile-level-box {
    justify-self: start;
  }
}


/* Public profile width and top spacing fix */
body .auth-main:has(.public-profile-shell),
body .site-main:has(.public-profile-shell),
body main:has(.public-profile-shell) {
  padding-top: 24px !important;
  align-items: stretch !important;
}

.public-profile-shell {
  width: min(1200px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin: 24px auto 80px !important;
}

.public-profile-shell .profile-hero-card-rich {
  width: 100% !important;
}

.public-profile-shell .profile-steam-layout,
.public-profile-shell .profile-steam-layout-rich {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  align-items: start !important;
}

.public-profile-shell .profile-main-column {
  width: 100% !important;
  max-width: none !important;
}

.public-profile-shell .profile-showcase,
.public-profile-shell .profile-section {
  width: 100% !important;
  max-width: none !important;
}

@media (min-width: 1180px) {
  .public-profile-shell {
    width: 1160px !important;
  }
}

@media (max-width: 900px) {
  .public-profile-shell {
    width: min(100% - 28px, 1160px) !important;
    margin-top: 18px !important;
  }

  .public-profile-shell .profile-steam-layout,
  .public-profile-shell .profile-steam-layout-rich {
    grid-template-columns: 1fr !important;
  }
}


/* Public profile hard layout fix */
.public-profile-shell {
  width: calc(100vw - 44px) !important;
  max-width: 1240px !important;
  margin: -96px auto 80px !important;
  display: block !important;
}

.public-profile-shell .profile-hero-card,
.public-profile-shell .profile-hero-card-rich {
  width: 100% !important;
  box-sizing: border-box !important;
}

.public-profile-shell .profile-steam-layout,
.public-profile-shell .profile-steam-layout-rich {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 16px !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

.public-profile-shell .profile-main-column {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.public-profile-shell .profile-showcase,
.public-profile-shell .profile-section,
.public-profile-shell .profile-recent-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.public-profile-shell .profile-stats-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

.public-profile-shell .profile-section-head,
.public-profile-shell .profile-showcase-head,
.public-profile-shell .profile-recent-section .profile-section-head {
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(92, 190, 255, .16) !important;
  background: linear-gradient(90deg, rgba(62, 82, 101, .72), rgba(25, 42, 58, .44)) !important;
  color: #eef6ff !important;
}

.public-profile-shell .profile-section-head h2,
.public-profile-shell .profile-showcase-head {
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.public-profile-shell .profile-section .profile-games-grid,
.public-profile-shell .profile-section .profile-activity-list,
.public-profile-shell .profile-showcase > :not(.profile-showcase-head) {
  padding: 16px !important;
}

.public-profile-shell .profile-activity-card {
  width: 100% !important;
}

.public-profile-shell .profile-steam-sidebar,
.public-profile-shell .profile-steam-sidebar-rich {
  width: 330px !important;
  max-width: 330px !important;
}

@media (min-width: 1280px) {
  .public-profile-shell {
    width: 1180px !important;
  }
}

@media (max-width: 900px) {
  .public-profile-shell {
    width: calc(100vw - 28px) !important;
    margin-top: 18px !important;
  }

  .public-profile-shell .profile-steam-layout,
  .public-profile-shell .profile-steam-layout-rich {
    grid-template-columns: 1fr !important;
  }

  .public-profile-shell .profile-steam-sidebar,
  .public-profile-shell .profile-steam-sidebar-rich {
    width: 100% !important;
    max-width: none !important;
  }
}


/* Public profile unified card headers */
.public-profile-shell .profile-side-card {
  padding: 0 !important;
  overflow: hidden !important;
}

.public-profile-shell .profile-side-card > h2 {
  display: none !important;
}

.public-profile-shell .profile-side-head {
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(92, 190, 255, .16) !important;
  background: linear-gradient(90deg, rgba(62, 82, 101, .72), rgba(25, 42, 58, .44)) !important;
  color: #eef6ff !important;
}

.public-profile-shell .profile-side-head h2 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.public-profile-shell .profile-side-head span {
  color: #dce7f2 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.public-profile-shell .profile-side-body {
  padding: 16px !important;
}

.public-profile-shell .profile-side-list {
  gap: 14px !important;
}

.public-profile-shell .profile-friends-list {
  margin-top: 0 !important;
}


/* Public profile nav gap and avatar shape */
.public-profile-shell {
  margin-top: 28px !important;
}

.public-profile-shell .profile-hero-card,
.public-profile-shell .profile-hero-card-rich {
  margin-top: 0 !important;
}

.public-profile-shell .profile-avatar-large {
  width: 122px !important;
  height: 122px !important;
  border-radius: 10px !important;
  font-size: 50px !important;
  box-shadow:
    0 0 0 4px rgba(4, 11, 19, .72),
    0 14px 28px rgba(0, 0, 0, .34) !important;
}

.public-profile-shell .profile-hero-card-rich {
  grid-template-columns: 122px minmax(0, 1fr) 120px !important;
  gap: 28px !important;
}

@media (max-width: 900px) {
  .public-profile-shell {
    margin-top: 18px !important;
  }

  .public-profile-shell .profile-hero-card-rich {
    grid-template-columns: 1fr !important;
  }

  .public-profile-shell .profile-avatar-large {
    width: 96px !important;
    height: 96px !important;
    font-size: 40px !important;
  }
}


/* Public profile tighter top gap */
.public-profile-shell {
  margin-top: -34px !important;
}


/* Friends UI */
.profile-friend-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 4px;
  background: rgba(5, 13, 22, .65);
  color: #eef6ff;
  text-decoration: none;
}

.profile-friend-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #5fc5ff;
  color: #06111d;
  font-weight: 900;
}

.profile-friend-row strong,
.profile-friend-row small {
  display: block;
}

.profile-friend-row small {
  color: #94a9bd;
  font-size: 12px;
}

.profile-friend-request {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-radius: 4px;
  background: rgba(92, 190, 255, .08);
}

.profile-friend-request form {
  margin: 0;
}

.profile-friend-request button,
.profile-friend-button {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(92, 190, 255, .38);
  border-radius: 4px;
  background: rgba(92, 190, 255, .14);
  color: #9bd9ff;
  font-weight: 800;
  cursor: pointer;
}

.profile-friend-request button:hover,
.profile-friend-button:hover {
  background: rgba(92, 190, 255, .22);
}

.profile-friend-button:disabled {
  cursor: default;
  opacity: .75;
}

/* Auth form compact layout */
.auth-page .auth-panel,
.auth-panel {
  width: min(420px, calc(100vw - 32px));
  margin: 72px auto 0;
}

.auth-page .auth-form,
.auth-form {
  display: grid;
  gap: 14px;
}

.auth-page .auth-form label,
.auth-form label {
  display: grid;
  gap: 7px;
  color: #c8d4e2;
  font-weight: 800;
}

.auth-page .auth-form input,
.auth-page .auth-form select,
.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2a5274;
  border-radius: 6px;
  background: #071321;
  color: #eef6ff;
  padding: 0 12px;
  font: inherit;
  font-weight: 650;
  box-sizing: border-box;
}

.auth-page .auth-form select,
.auth-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7ccfff 50%),
    linear-gradient(135deg, #7ccfff 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-page .auth-form input[type="date"],
.auth-form input[type="date"] {
  color-scheme: dark;
}

.auth-page .auth-form button,
.auth-form button[type="submit"] {
  min-height: 42px;
}

.auth-error {
  border: 1px solid rgba(255, 92, 105, 0.55);
  background: rgba(255, 92, 105, 0.12);
  color: #ffb4bc;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 800;
  margin: 0 0 12px;
}

/* Friends page polish */
.profile-friend-row-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-friend-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.profile-friend-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-friend-actions form {
  margin: 0;
}

.profile-friend-actions .site-auth-button {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 32px;
}

.site-auth-button-muted {
  background: #172b40;
  border-color: #31577a;
  color: #c8d4e2;
}

@media (max-width: 720px) {
  .profile-friend-row-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-friend-actions {
    width: 100%;
  }

  .profile-friend-actions form,
  .profile-friend-actions button {
    width: 100%;
  }
}

.profile-online-dot-offline {
  background: #7b8794;
  box-shadow: none;
}

/* Presence and profile flag polish */
.profile-online-dot.profile-online-dot-offline,
.profile-online-dot-offline {
  background: #7b8794 !important;
  box-shadow: none !important;
}

.profile-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 0.42em;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.08em);
}

/* Profile status and country badge */
.profile-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name-text {
  display: inline-block;
  line-height: 1;
}

.profile-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  background: rgba(7, 19, 33, 0.72);
  border: 1px solid rgba(124, 207, 255, 0.24);
  font-size: 16px;
  line-height: 1;
  transform: translateY(2px);
}

.profile-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.profile-status-dot.is-online {
  background: #34e86f;
  box-shadow: 0 0 12px rgba(52, 232, 111, 0.72);
}

.profile-status-dot.is-offline {
  background: #7b8794;
  box-shadow: none;
}

/* Final profile name/status override */
.profile-hero-card .profile-online-dot {
  display: none !important;
}

.profile-name-line {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 38px !important;
  line-height: 1 !important;
}

.profile-name-text {
  display: inline-block !important;
  line-height: 1 !important;
}

.profile-name-line .profile-flag {
  display: inline-block !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 17px !important;
  line-height: 1 !important;
  transform: translateY(-4px) !important;
  vertical-align: baseline !important;
}

.profile-flag-badge {
  display: none !important;
}

.profile-status-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  margin-right: 7px !important;
  border-radius: 999px !important;
  vertical-align: middle !important;
}

.profile-status-dot.is-online {
  background: #34e86f !important;
  box-shadow: 0 0 10px rgba(52, 232, 111, 0.68) !important;
}

.profile-status-dot.is-offline {
  background: #7b8794 !important;
  box-shadow: none !important;
}

/* Hard override: profile hero nickname and duplicate status dots */
.profile-hero-card .profile-hero-copy h1,
.profile-hero-card-rich .profile-hero-copy h1,
.public-profile-shell .profile-hero-copy h1,
.private-profile-shell .profile-hero-copy h1 {
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
  margin: 0 !important;
  font-size: 32px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.profile-hero-card .profile-hero-copy h1 .profile-name-text,
.profile-hero-card-rich .profile-hero-copy h1 .profile-name-text,
.public-profile-shell .profile-hero-copy h1 .profile-name-text,
.private-profile-shell .profile-hero-copy h1 .profile-name-text {
  font-size: inherit !important;
  line-height: inherit !important;
}

.profile-hero-card .profile-hero-copy h1 .profile-flag,
.profile-hero-card-rich .profile-hero-copy h1 .profile-flag,
.public-profile-shell .profile-hero-copy h1 .profile-flag,
.private-profile-shell .profile-hero-copy h1 .profile-flag {
  display: inline-block !important;
  margin-left: 2px !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transform: translateY(-4px) !important;
}

.profile-hero-card .profile-meta .profile-online-dot {
  display: none !important;
}

.profile-hero-card .profile-meta .profile-status-dot + .profile-online-dot,
.profile-hero-card .profile-meta .profile-online-dot + .profile-status-dot {
  display: none !important;
}

/* Final hard profile hero sizing */
.profile-hero-card.profile-hero-card-rich .profile-hero-copy .profile-name-line,
.public-profile-shell .profile-hero-card-rich .profile-hero-copy .profile-name-line,
.private-profile-shell .profile-hero-card-rich .profile-hero-copy .profile-name-line {
  font-size: 28px !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.profile-hero-card.profile-hero-card-rich .profile-hero-copy .profile-name-text {
  font-size: 28px !important;
  line-height: 1 !important;
}

.profile-hero-card.profile-hero-card-rich .profile-hero-copy .profile-flag {
  font-size: 14px !important;
  line-height: 1 !important;
  transform: none !important;
  margin-left: 1px !important;
}

.profile-hero-card.profile-hero-card-rich .profile-meta .profile-online-dot {
  display: none !important;
}

/* Final profile presence/name cleanup */
.profile-hero-card .profile-meta::before,
.profile-hero-card-rich .profile-meta::before,
.public-profile-shell .profile-meta::before,
.private-profile-shell .profile-meta::before,
.profile-hero-card .profile-online-dot,
.profile-hero-card-rich .profile-online-dot,
.public-profile-shell .profile-online-dot,
.private-profile-shell .profile-online-dot {
  display: none !important;
  content: none !important;
}

.profile-status-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  border-radius: 999px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

.profile-status-dot.is-online {
  background: #35e96b !important;
  box-shadow: 0 0 10px rgba(53, 233, 107, 0.7) !important;
}

.profile-status-dot.is-offline {
  background: #7d8794 !important;
  box-shadow: none !important;
}

.profile-hero-card-rich .profile-name-line,
.public-profile-shell .profile-hero-card-rich .profile-name-line,
.private-profile-shell .profile-hero-card-rich .profile-name-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 30px !important;
  line-height: 1 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

.profile-hero-card-rich .profile-name-text,
.public-profile-shell .profile-hero-card-rich .profile-name-text,
.private-profile-shell .profile-hero-card-rich .profile-name-text {
  font-size: 30px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.profile-hero-card-rich .profile-flag,
.public-profile-shell .profile-hero-card-rich .profile-flag,
.private-profile-shell .profile-hero-card-rich .profile-flag {
  font-size: 16px !important;
  line-height: 1 !important;
  margin-left: 2px !important;
  transform: translateY(1px) !important;
}


/* FINAL: profile dot and nickname fix */
.profile-hero-card .profile-meta::before,
.profile-hero-card-rich .profile-meta::before,
.public-profile-shell .profile-meta::before,
.private-profile-shell .profile-meta::before,
.profile-meta::before {
  display: none !important;
  content: none !important;
}

.profile-meta .profile-status-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  border-radius: 50% !important;
  margin: 0 6px 0 0 !important;
  vertical-align: middle !important;
}

.profile-meta .profile-status-dot.is-online {
  background: #35e96b !important;
  box-shadow: 0 0 10px rgba(53, 233, 107, .65) !important;
}

.profile-meta .profile-status-dot.is-offline {
  background: #7b8794 !important;
  box-shadow: none !important;
}

.profile-hero-card-rich .profile-hero-copy h1.profile-name-line,
.public-profile-shell .profile-hero-card-rich .profile-hero-copy h1.profile-name-line,
.private-profile-shell .profile-hero-card-rich .profile-hero-copy h1.profile-name-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 30px !important;
  line-height: 1 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

.profile-hero-card-rich .profile-name-text,
.public-profile-shell .profile-name-text,
.private-profile-shell .profile-name-text {
  font-size: 30px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.profile-hero-card-rich .profile-flag,
.public-profile-shell .profile-flag,
.private-profile-shell .profile-flag {
  font-size: 16px !important;
  line-height: 1 !important;
  margin-left: 2px !important;
  transform: translateY(1px) !important;
}


/* Steam-like friends page */
.friends-page-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 22px auto 80px;
}

.friends-hero {
  min-height: 150px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, rgba(9, 35, 52, .96), rgba(20, 92, 125, .8));
  border-bottom: 1px solid rgba(91, 199, 255, .28);
}

.friends-hero-avatar,
.friends-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #5fc3f7;
  color: #041523;
  font-weight: 900;
}

.friends-hero-avatar {
  width: 78px;
  height: 78px;
  border-radius: 6px;
  font-size: 32px;
}

.friends-hero-avatar img,
.friends-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friends-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.friends-hero p {
  margin: 8px 0 0;
  color: #b8cce0;
}

.friends-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  padding-top: 24px;
}

.friends-sidebar {
  padding-top: 4px;
}

.friends-sidebar-title,
.friends-group-title {
  color: #8da8bf;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  margin: 16px 0 8px;
}

.friends-sidebar-link {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  color: #d7e5f2;
  text-decoration: none;
  background: rgba(38, 63, 82, .45);
  margin-bottom: 4px;
}

.friends-sidebar-link.is-active,
.friends-toolbar {
  background: rgba(20, 118, 149, .78);
}

.friends-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.friends-toolbar input {
  width: min(420px, 48vw);
  height: 32px;
  border: 1px solid #020912;
  background: #071623;
  color: #d8e7f4;
  padding: 0 12px;
}

.friends-toolbar-small {
  margin-top: 22px;
  background: rgba(39, 57, 75, .92);
  text-transform: none;
  letter-spacing: 0;
}

.friends-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px 16px;
  margin-bottom: 22px;
}

.friends-tile,
.friends-request-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 14, 21, .72);
  color: #dfeaf4;
  text-decoration: none;
  padding: 6px;
}

.friends-tile.is-offline {
  opacity: .62;
}

.friends-tile.is-online {
  border-left: 3px solid #39d777;
}

.friends-avatar {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  flex: 0 0 48px;
}

.friends-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.friends-copy strong {
  color: #65d7ff;
}

.friends-copy small {
  color: #aebdcc;
}

.friends-game {
  color: #a6ff3e !important;
}

.friends-request-row {
  justify-content: space-between;
  margin-top: 10px;
}

.friends-request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.friends-request-actions form {
  margin: 0;
}

@media (max-width: 760px) {
  .friends-page-shell {
    width: calc(100vw - 24px);
  }

  .friends-layout {
    grid-template-columns: 1fr;
  }

  .friends-tile-grid {
    grid-template-columns: 1fr;
  }

  .friends-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .friends-toolbar input {
    width: 100%;
  }
}


/* FINAL: ARCade friends UI */
.profile-section a[href="/friends"],
.profile-section a[href="/friends"]:visited,
.public-profile-shell a[href="/friends"],
.private-profile-shell a[href="/friends"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(91, 199, 255, .48) !important;
  border-radius: 5px !important;
  background: linear-gradient(180deg, rgba(20, 65, 96, .96), rgba(13, 44, 70, .96)) !important;
  color: #9fe0ff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.friends-page-shell {
  width: min(1080px, calc(100vw - 40px)) !important;
  margin: 24px auto 80px !important;
}

.friends-hero {
  border: 1px solid rgba(91, 199, 255, .36) !important;
  border-radius: 6px !important;
  background: linear-gradient(90deg, rgba(3, 18, 29, .98), rgba(17, 70, 100, .86)) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.22) !important;
}

.friends-layout {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 18px !important;
  margin-top: 18px !important;
  padding-top: 0 !important;
}

.friends-sidebar,
.friends-main {
  border: 1px solid rgba(91, 199, 255, .28) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(14, 34, 51, .98), rgba(5, 20, 33, .98)) !important;
}

.friends-sidebar {
  padding: 14px !important;
}

.friends-main {
  padding: 0 0 18px !important;
}

.friends-toolbar,
.friends-toolbar-small {
  min-height: 52px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(91, 199, 255, .24) !important;
  background: linear-gradient(90deg, rgba(49, 68, 86, .98), rgba(12, 48, 72, .92)) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.friends-toolbar strong,
.friends-toolbar-small strong {
  font-size: 18px !important;
  color: #f2f7fb !important;
}

.friends-toolbar input {
  height: 36px !important;
  border: 1px solid rgba(91, 199, 255, .36) !important;
  border-radius: 4px !important;
  background: #061525 !important;
}

.friends-group-title {
  margin: 18px 18px 10px !important;
  color: #9db9cc !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.friends-tile-grid {
  padding: 0 18px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
  gap: 10px 14px !important;
}

.friends-tile {
  min-height: 58px !important;
  border: 1px solid rgba(91, 199, 255, .16) !important;
  border-radius: 5px !important;
  background: rgba(3, 13, 23, .82) !important;
}

.friends-tile.is-online {
  border-left: 3px solid #35e96b !important;
}

.friends-tile.is-offline {
  opacity: .68 !important;
}

.friends-copy strong {
  color: #64d5ff !important;
  font-size: 14px !important;
}

.friends-copy small {
  color: #b7c8d8 !important;
}

.friends-game {
  color: #9cff38 !important;
}

.friends-sidebar-title {
  color: #8faec4 !important;
  margin: 10px 0 8px !important;
}

.friends-sidebar-link {
  border-radius: 4px !important;
  background: rgba(7, 21, 34, .78) !important;
}

.friends-sidebar-link.is-active {
  background: rgba(24, 91, 122, .94) !important;
}

/* FINAL profile friends button */
.profile-inline-button,
.profile-section .profile-inline-button,
.profile-sidebar-card .profile-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(88, 190, 255, 0.55);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(23, 73, 103, 0.95), rgba(15, 50, 72, 0.95));
  color: #aee3ff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.profile-inline-button:hover {
  border-color: rgba(101, 202, 255, 0.85);
  background: linear-gradient(180deg, rgba(30, 94, 132, 0.98), rgba(18, 63, 91, 0.98));
  color: #ffffff;
}


/* PROFILE UI RULES: unified cards and buttons */
.profile-side-card,
.profile-section,
.profile-steam-panel {
  border: 1px solid rgba(53, 132, 183, 0.72) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(14, 31, 47, 0.96), rgba(6, 20, 32, 0.96)) !important;
  overflow: hidden !important;
}

.profile-side-head,
.profile-section-head,
.profile-steam-panel-head {
  min-height: 48px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(53, 132, 183, 0.55) !important;
  background: linear-gradient(90deg, rgba(54, 74, 91, 0.90), rgba(18, 50, 72, 0.74)) !important;
}

.profile-side-head h2,
.profile-section-head h2,
.profile-steam-panel-head h2 {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  color: #f0f6ff !important;
}

.profile-side-body,
.profile-section-body,
.profile-steam-panel-body {
  padding: 16px 20px !important;
}

.profile-friend-button,
.profile-action-button,
.profile-side-card a.profile-friend-button,
.profile-side-card button.profile-friend-button {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 12px !important;
  margin: 12px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(92, 190, 255, 0.42) !important;
  border-radius: 4px !important;
  background: rgba(14, 48, 70, 0.72) !important;
  color: #9bd9ff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.profile-friend-button:hover,
.profile-action-button:hover,
.profile-side-card a.profile-friend-button:hover,
.profile-side-card button.profile-friend-button:hover {
  border-color: rgba(110, 210, 255, 0.72) !important;
  background: rgba(20, 76, 108, 0.88) !important;
  color: #d8f3ff !important;
}

.profile-friend-button:disabled,
.profile-action-button:disabled {
  opacity: 0.75 !important;
  cursor: default !important;
}

/* FRIENDS PAGE UI RULES */
.friends-page,
.friends-shell {
  width: min(1220px, calc(100vw - 48px)) !important;
  margin: 32px auto 80px !important;
}

.friends-hero {
  min-height: 132px !important;
  margin: 0 0 22px !important;
  padding: 28px 36px !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid rgba(53, 132, 183, 0.72) !important;
  border-radius: 6px !important;
  background: linear-gradient(90deg, rgba(4, 25, 39, 0.98), rgba(16, 90, 120, 0.86)) !important;
}

.friends-layout {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

.friends-sidebar {
  display: grid !important;
  gap: 16px !important;
  border: 0 !important;
  background: transparent !important;
}

.friends-sidebar-title {
  margin: 0 0 8px !important;
  color: #9fb8cf !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.friends-sidebar-title:nth-of-type(2) {
  margin-top: 0 !important;
}

.friends-sidebar-link {
  min-height: 44px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 4px !important;
  background: rgba(11, 29, 43, 0.88) !important;
  color: #d8e7f4 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.friends-sidebar-link.is-active,
.friends-sidebar-link:hover {
  background: rgba(22, 114, 140, 0.92) !important;
  color: #ffffff !important;
}

.friends-sidebar-link span {
  color: #c9d9e6 !important;
}

.friends-main {
  border: 1px solid rgba(53, 132, 183, 0.72) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(12, 35, 52, 0.96), rgba(4, 20, 32, 0.96)) !important;
  overflow: hidden !important;
}

.friends-toolbar {
  min-height: 58px !important;
  padding: 0 18px !important;
  display: grid !important;
  grid-template-columns: max-content minmax(260px, 420px) !important;
  gap: 24px !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(53, 132, 183, 0.55) !important;
  background: linear-gradient(90deg, rgba(54, 74, 91, 0.90), rgba(18, 96, 120, 0.84)) !important;
}

.friends-toolbar h1,
.friends-toolbar h2,
.friends-toolbar-title {
  margin: 0 !important;
  color: #f1f7ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.friends-toolbar input,
.friends-search,
#friends-search {
  width: 100% !important;
  height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(92, 190, 255, 0.45) !important;
  border-radius: 4px !important;
  background: rgba(3, 15, 25, 0.92) !important;
  color: #e9f4ff !important;
  font-size: 14px !important;
}

.friends-group-title {
  margin: 22px 18px 10px !important;
  color: #9fb8cf !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.friends-tile-grid {
  margin: 0 18px 18px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 12px !important;
}

.friend-tile,
.friends-tile,
.friends-friend-tile {
  min-height: 58px !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(53, 132, 183, 0.45) !important;
  background: rgba(3, 15, 25, 0.76) !important;
}

.friends-request-section:empty,
.friends-request-section.is-empty {
  display: none !important;
}

@media (max-width: 900px) {
  .friends-page,
  .friends-shell {
    width: min(100%, calc(100vw - 28px)) !important;
    margin-top: 20px !important;
  }

  .friends-layout {
    grid-template-columns: 1fr !important;
  }

  .friends-toolbar {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .friends-tile-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FINAL friends page block rules */
.friends-shell {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 28px auto 80px !important;
}

.friends-hero,
.friends-sidebar-section,
.friends-main {
  border: 1px solid rgba(53, 132, 183, .72) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(13, 35, 52, .96), rgba(5, 20, 31, .96)) !important;
  overflow: hidden !important;
}

.friends-hero {
  min-height: 128px !important;
  margin: 0 0 22px !important;
  padding: 24px 34px !important;
  background: linear-gradient(90deg, rgba(5, 25, 39, .98), rgba(18, 86, 112, .88)) !important;
}

.friends-layout {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.friends-sidebar {
  display: grid !important;
  gap: 18px !important;
  background: transparent !important;
  border: 0 !important;
}

.friends-sidebar-title,
.friends-toolbar {
  min-height: 52px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(53, 132, 183, .55) !important;
  background: linear-gradient(90deg, rgba(54, 74, 91, .90), rgba(18, 60, 82, .78)) !important;
}

.friends-sidebar-title {
  margin: 0 !important;
  color: #f1f7ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.friends-toolbar {
  display: grid !important;
  grid-template-columns: max-content minmax(260px, 420px) !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.friends-toolbar h1,
.friends-toolbar h2,
.friends-toolbar-title {
  margin: 0 !important;
  color: #f1f7ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.friends-sidebar-link {
  height: 44px !important;
  margin: 10px 14px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 4px !important;
  background: rgba(3, 15, 25, .76) !important;
  color: #d8e7f4 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.friends-sidebar-link.is-active,
.friends-sidebar-link:hover {
  background: rgba(22, 114, 140, .92) !important;
  color: #fff !important;
}

#friends-search,
.friends-toolbar input {
  width: 100% !important;
  height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(92, 190, 255, .45) !important;
  border-radius: 4px !important;
  background: rgba(3, 15, 25, .92) !important;
  color: #e9f4ff !important;
}

.friends-group-title {
  margin: 20px 18px 10px !important;
  color: #9fb8cf !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.friends-tile-grid {
  margin: 0 18px 18px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 12px !important;
}

.friend-tile,
.friends-tile,
.friends-friend-tile,
.friends-tile-grid > a,
.friends-tile-grid > div {
  min-height: 58px !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid rgba(53, 132, 183, .45) !important;
  border-radius: 4px !important;
  background: rgba(3, 15, 25, .76) !important;
}

@media (max-width: 900px) {
  .friends-shell {
    width: min(100%, calc(100vw - 28px)) !important;
  }

  .friends-layout {
    grid-template-columns: 1fr !important;
  }

  .friends-toolbar {
    grid-template-columns: 1fr !important;
    padding: 12px 18px !important;
  }

  .friends-tile-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FINAL friends page spacing */
body:has(.friends-shell) .auth-main,
body:has(.friends-page) .auth-main {
  padding-top: 18px !important;
  margin-top: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

body:has(.friends-shell) .friends-shell,
body:has(.friends-page) .friends-shell {
  margin-top: 18px !important;
}

body:has(.friends-shell) .site-header,
body:has(.friends-page) .site-header {
  margin-bottom: 0 !important;
}

/* FINAL friends avatars 1:1 */
.friends-hero .profile-avatar,
.friends-hero .friends-avatar,
.friends-hero-avatar,
.friends-page .profile-avatar {
  width: 122px !important;
  height: 122px !important;
  min-width: 122px !important;
  border-radius: 8px !important;
  aspect-ratio: 1 / 1 !important;
}

.friends-main [class*="avatar"],
.friends-tile-grid [class*="avatar"],
.friends-main .profile-friend-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 4px !important;
  aspect-ratio: 1 / 1 !important;
}

/* FINAL real friends page layout */
.auth-main:has(#friends-page) {
  display: block !important;
  min-height: 0 !important;
  padding: 20px 20px 80px !important;
  margin: 0 !important;
}

#friends-page {
  width: min(1180px, calc(100vw - 40px)) !important;
  margin: 0 auto !important;
}

#friends-page .friends-hero {
  margin-top: 0 !important;
}

#friends-page .friends-hero .profile-avatar,
#friends-page .friends-hero [class*="avatar"] {
  width: 122px !important;
  height: 122px !important;
  min-width: 122px !important;
  border-radius: 8px !important;
  aspect-ratio: 1 / 1 !important;
}

#friends-page [data-friend-row="1"][hidden] {
  display: none !important;
}

/* FINAL /friends page: unified blocks, spacing, search */
.friends-page-shell {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 40px auto 80px !important;
}

.auth-main:has(.friends-page-shell) {
  padding-top: 0 !important;
}

.friends-hero {
  margin: 0 0 18px !important;
  min-height: 150px !important;
  padding: 28px 36px !important;
  border: 1px solid rgba(64, 169, 230, .55) !important;
  border-radius: 6px !important;
  background: linear-gradient(100deg, rgba(2, 22, 34, .98), rgba(13, 74, 99, .94)) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .28) !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

.friends-hero-avatar {
  width: 96px !important;
  height: 96px !important;
  flex: 0 0 96px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  background: #62c5f6 !important;
  color: #041523 !important;
  font-size: 44px !important;
  font-weight: 900 !important;
  box-shadow: 0 0 0 4px rgba(3, 18, 30, .45) !important;
}

.friends-layout {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.friends-sidebar {
  display: grid !important;
  gap: 18px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.friends-sidebar-section,
.friends-main {
  border: 1px solid rgba(64, 169, 230, .48) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(13, 35, 52, .98), rgba(4, 22, 34, .98)) !important;
  overflow: hidden !important;
}

.friends-sidebar-title,
.friends-toolbar {
  min-height: 54px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(64, 169, 230, .35) !important;
  background: linear-gradient(90deg, rgba(61, 82, 99, .82), rgba(12, 64, 87, .62)) !important;
  color: #edf6ff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.friends-sidebar-section {
  padding-bottom: 12px !important;
}

.friends-sidebar-link {
  margin: 10px 14px 0 !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  border-radius: 4px !important;
  background: rgba(3, 17, 28, .72) !important;
  color: #d8e7f4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.friends-sidebar-link.is-active {
  background: rgba(29, 128, 154, .88) !important;
  color: #ffffff !important;
}

.friends-toolbar {
  justify-content: space-between !important;
  gap: 18px !important;
}

.friends-toolbar input[type="search"] {
  width: min(460px, 55%) !important;
  height: 38px !important;
  border: 1px solid rgba(92, 190, 255, .65) !important;
  border-radius: 4px !important;
  background: rgba(2, 13, 23, .95) !important;
  color: #dcefff !important;
  padding: 0 14px !important;
  font: inherit !important;
  font-size: 14px !important;
}

.friends-main {
  padding-bottom: 26px !important;
}

.friends-group-title {
  margin: 22px 24px 10px !important;
  color: #9eb7cc !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.friends-tile-grid {
  margin: 0 24px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 10px 16px !important;
}

.friends-tile,
.friends-tile-grid > a {
  min-height: 64px !important;
  border: 1px solid rgba(64, 169, 230, .32) !important;
  border-radius: 4px !important;
  background: rgba(3, 15, 25, .78) !important;
  color: #dfeeff !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
}

.friends-tile-avatar,
.friends-tile img,
.friends-tile-grid img {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
}

.friends-tile[data-hidden-by-search="true"],
.friends-tile-grid > a[data-hidden-by-search="true"] {
  display: none !important;
}

@media (max-width: 900px) {
  .friends-page-shell {
    width: min(100%, calc(100vw - 24px)) !important;
    margin-top: 24px !important;
  }

  .friends-layout {
    grid-template-columns: 1fr !important;
  }

  .friends-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
    padding: 14px 18px !important;
  }

  .friends-toolbar input[type="search"] {
    width: 100% !important;
  }

  .friends-tile-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FINAL friends toolbar + finder */
.friends-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(560px, 100%);
}

.friends-search-form input {
  width: 100%;
}

.friends-find-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(92, 190, 255, .42);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20, 75, 105, .95), rgba(12, 48, 70, .95));
  color: #9bd9ff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.friends-find-button:hover {
  border-color: rgba(110, 210, 255, .85);
  color: #fff;
}

.friends-results-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.friends-result-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.friends-result-state {
  color: #9eb4c9;
  font-weight: 800;
}

@media (max-width: 720px) {
  .friends-search-form,
  .friends-result-card {
    grid-template-columns: 1fr;
  }
}

/* FINAL /friends page toolbar and find button */
.friends-toolbar {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr);
  gap: 14px;
  align-items: center;
}

.friends-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  justify-self: end;
  width: min(560px, 100%);
}

.friends-toolbar-actions input,
#friends-search {
  height: 34px;
  min-height: 34px;
}

.friends-find-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(92, 190, 255, .46);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20, 86, 118, .96), rgba(12, 57, 82, .96));
  color: #a8dcff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.friends-find-button:hover {
  border-color: rgba(122, 215, 255, .9);
  background: linear-gradient(180deg, rgba(28, 106, 145, .98), rgba(16, 70, 100, .98));
  color: #fff;
}

.friends-results-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.friends-result-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.friends-result-state {
  color: #9fb4c9;
  font-weight: 800;
}

.friends-search-empty {
  margin-top: 0;
}

@media (max-width: 760px) {
  .friends-toolbar,
  .friends-toolbar-actions,
  .friends-result-card {
    grid-template-columns: 1fr;
  }

  .friends-toolbar-actions {
    justify-self: stretch;
  }
}

/* FINAL canonical friends toolbar/button/search */
.friends-toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(420px, 620px) !important;
  gap: 14px !important;
  align-items: center !important;
}

.friends-toolbar-actions {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) 118px !important;
  gap: 10px !important;
  align-items: center !important;
  justify-self: end !important;
  width: min(620px, 100%) !important;
}

.friends-toolbar-actions input,
#friends-search {
  height: 34px !important;
  min-height: 34px !important;
}

.friends-find-button {
  width: 118px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(92, 190, 255, .46) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, rgba(20, 86, 118, .96), rgba(12, 57, 82, .96)) !important;
  color: #a8dcff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.friends-search-empty {
  display: none;
}

.friends-find-button:hover {
  border-color: rgba(122, 215, 255, .9) !important;
  color: #fff !important;
}

@media (max-width: 760px) {
  .friends-toolbar,
  .friends-toolbar-actions {
    grid-template-columns: 1fr !important;
  }

  .friends-toolbar-actions,
  .friends-find-button {
    width: 100% !important;
  }
}

/* FINAL OVERRIDE /friends visual and search state */
.friends-tile-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.friends-tile-grid .friends-search-empty {
  display: none !important;
}

.friends-tile-grid.is-searching.is-search-empty .friends-search-empty {
  display: block !important;
}

.friends-tile {
  width: 100% !important;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 48px 1fr !important;
  align-items: center !important;
  gap: 12px !important;
}

.friends-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 4px !important;
}

.friends-tile-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.friends-tile-copy strong,
.friends-tile-copy small {
  display: block !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

.friends-tile-copy strong {
  color: #63caff !important;
  font-weight: 900 !important;
}

.friends-tile-copy small {
  color: #c9d7e5 !important;
}

.friends-toolbar {
  grid-template-columns: auto minmax(500px, 620px) !important;
}

.friends-toolbar-actions {
  grid-template-columns: minmax(300px, 1fr) 118px !important;
}

/* FINAL HARD /friends search visibility */
.friends-tile.is-filter-hidden,
.auth-empty-state.is-filter-hidden {
  display: none !important;
}

.friends-global-search-empty {
  display: none !important;
  margin: 14px 18px 4px !important;
}

.friends-global-search-empty.is-visible {
  display: block !important;
}

.friends-tile-grid .friends-search-empty {
  display: none !important;
}

.friends-tile-grid {
  grid-template-columns: 1fr !important;
}

.friends-tile {
  max-width: 100% !important;
}

/* FINAL ABSOLUTE /friends nick-only search visuals */
.friends-global-search-empty {
  display: none !important;
  margin: 14px 18px !important;
}

.friends-global-search-empty:not([hidden]) {
  display: block !important;
}

.friends-tile[hidden],
.friends-tile[style*="display: none"] {
  display: none !important;
}

/* FINAL FINAL /friends search group visibility */
.friends-group-title[hidden],
.friends-tile-grid[hidden],
.friends-tile[hidden],
.auth-empty-state[hidden] {
  display: none !important;
}

.friends-global-search-empty {
  margin: 14px 18px !important;
  display: none !important;
}

.friends-global-search-empty:not([hidden]) {
  display: block !important;
}

/* FINAL CLEAN /friends search UI */
.friends-global-search-empty {
  display: none;
  margin: 14px 18px;
}

.friends-global-search-empty:not([hidden]) {
  display: block;
}

.friends-group-title[hidden],
.friends-tile-grid[hidden],
.friends-tile[hidden],
.friends-tile-grid > .auth-empty-state[hidden] {
  display: none !important;
}

/* FINAL /friends visual polish */
.friends-main {
  overflow: hidden;
}

.friends-toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(360px, 560px) !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 12px 18px !important;
}

.friends-toolbar > strong {
  white-space: nowrap !important;
}

.friends-toolbar-actions {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) 116px !important;
  gap: 10px !important;
  align-items: center !important;
  justify-self: end !important;
  width: 100% !important;
}

#friends-search {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 4px !important;
}

.friends-find-button {
  width: 116px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
}

.friends-group-title {
  margin: 18px 24px 8px !important;
}

.friends-tile-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 520px) !important;
  gap: 10px !important;
  padding: 0 24px !important;
}

.friends-tile {
  width: 100% !important;
  min-height: 60px !important;
  display: grid !important;
  grid-template-columns: 48px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
}

.friends-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 4px !important;
}

.friends-tile-copy {
  display: grid !important;
  gap: 2px !important;
}

.friends-tile-copy strong,
.friends-tile-copy small {
  line-height: 1.15 !important;
}

.friends-tile-grid > .auth-empty-state {
  width: 100% !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
}

.friends-global-search-empty {
  margin: 14px 24px !important;
  width: min(520px, calc(100% - 48px)) !important;
}

@media (max-width: 820px) {
  .friends-toolbar,
  .friends-toolbar-actions {
    grid-template-columns: 1fr !important;
  }

  .friends-toolbar-actions,
  .friends-find-button {
    width: 100% !important;
  }

  .friends-tile-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FINAL /friends Steam compact rows */
.friends-tile-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 292px) !important;
  gap: 12px 14px !important;
  padding: 0 24px !important;
  align-items: start !important;
  justify-content: start !important;
}

.friends-tile {
  width: 292px !important;
  height: 52px !important;
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: 52px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(10, 18, 27, .82) !important;
  overflow: hidden !important;
}

.friends-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 0 !important;
}

.friends-tile-copy {
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
  padding-right: 8px !important;
}

.friends-tile-copy strong {
  display: block !important;
  color: #65d8ff !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.friends-tile-copy small {
  display: block !important;
  color: #aeb9c5 !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.friends-tile-grid > .auth-empty-state {
  width: 292px !important;
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border-radius: 0 !important;
  background: rgba(10, 18, 27, .82) !important;
}

.friends-global-search-empty {
  width: 292px !important;
  min-height: 52px !important;
  margin: 14px 24px !important;
  border-radius: 0 !important;
}

@media (min-width: 1180px) {
  .friends-tile-grid {
    grid-template-columns: repeat(3, 292px) !important;
  }
}

@media (max-width: 760px) {
  .friends-tile-grid {
    grid-template-columns: 1fr !important;
  }

  .friends-tile,
  .friends-tile-grid > .auth-empty-state,
  .friends-global-search-empty {
    width: 100% !important;
  }
}


/* ARCade canonical friends layout */
.friends-toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(380px, 580px) !important;
  gap: 14px !important;
  align-items: center !important;
}

.friends-toolbar > strong {
  white-space: nowrap !important;
}

.friends-toolbar-actions {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) 116px !important;
  gap: 10px !important;
  align-items: center !important;
  justify-self: end !important;
  width: min(580px, 100%) !important;
}

#friends-search,
.friends-toolbar-actions input {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 4px !important;
}

.friends-find-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 116px !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 1px solid rgba(92, 190, 255, .46) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, rgba(20, 86, 118, .96), rgba(12, 57, 82, .96)) !important;
  color: #a8dcff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.friends-group-title {
  margin: 18px 24px 8px !important;
}

.friends-tile-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 292px) !important;
  gap: 12px 14px !important;
  padding: 0 24px !important;
  justify-content: start !important;
}

.friends-tile {
  width: 292px !important;
  height: 52px !important;
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: 52px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(10, 18, 27, .82) !important;
  overflow: hidden !important;
}

.friends-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 0 !important;
}

.friends-tile-copy {
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
  padding-right: 8px !important;
}

.friends-tile-copy strong,
.friends-tile-copy small {
  display: block !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.friends-tile-copy strong {
  color: #65d8ff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.friends-tile-copy small {
  color: #aeb9c5 !important;
  font-size: 12px !important;
}

.friends-tile-grid > .auth-empty-state,
.friends-global-search-empty {
  width: 292px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border-radius: 0 !important;
  background: rgba(10, 18, 27, .82) !important;
}

.friends-global-search-empty {
  display: none !important;
  margin: 14px 24px !important;
}

.friends-global-search-empty:not([hidden]) {
  display: flex !important;
}

.friends-group-title[hidden],
.friends-tile-grid[hidden],
.friends-tile[hidden],
.friends-tile-grid > .auth-empty-state[hidden] {
  display: none !important;
}

@media (min-width: 1180px) {
  .friends-tile-grid {
    grid-template-columns: repeat(3, 292px) !important;
  }
}

@media (max-width: 760px) {
  .friends-toolbar,
  .friends-toolbar-actions {
    grid-template-columns: 1fr !important;
  }

  .friends-toolbar-actions,
  .friends-find-button,
  .friends-tile,
  .friends-tile-grid > .auth-empty-state,
  .friends-global-search-empty {
    width: 100% !important;
  }

  .friends-tile-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ARCade canonical find friends */
.friends-find-page .friends-panel {
  border: 1px solid rgba(55, 151, 208, .72);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14, 35, 52, .96), rgba(6, 19, 31, .96));
  overflow: hidden;
}

.friends-find-page .friends-results-list {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
}

.friends-find-page .friends-result-card {
  display: grid;
  grid-template-columns: 292px auto;
  gap: 14px;
  align-items: center;
  justify-content: start;
}

.friends-find-page .friends-result-state {
  color: #9fb4c9;
  font-weight: 800;
}

.friends-find-page .friends-find-button {
  width: 116px !important;
}

@media (max-width: 760px) {
  .friends-find-page .friends-result-card {
    grid-template-columns: 1fr;
  }
}

/* ARCade profile settings */
.profile-settings-panel {
  max-width: 720px;
}

.profile-settings-form textarea,
.profile-settings-form select {
  width: 100%;
  border: 1px solid rgba(72, 143, 204, .72);
  border-radius: 4px;
  background: #061524;
  color: #e9f2ff;
  font: inherit;
  padding: 10px 12px;
}

.profile-avatar-image {
  overflow: hidden;
}

.profile-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-about {
  max-width: 680px;
}

/* ARCade profile settings */
.profile-settings-panel {
  width: min(720px, calc(100vw - 32px));
}

.profile-settings-form textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid rgba(55, 151, 208, .7);
  border-radius: 4px;
  background: #061524;
  color: #eef6ff;
  padding: 10px 12px;
  font: inherit;
}

.profile-avatar-image {
  overflow: hidden;
}

.profile-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FINAL profile settings upload/social/country */
.profile-settings-panel {
  max-width: 720px;
}

.profile-settings-form textarea,
.profile-settings-form select {
  width: 100%;
  border: 1px solid rgba(74, 144, 200, .65);
  border-radius: 6px;
  background: #071523;
  color: #eaf3ff;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.profile-settings-form input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(92, 190, 255, .45);
  border-radius: 6px;
  background: rgba(5, 13, 22, .65);
  color: #c9d8e8;
  padding: 10px;
}

.profile-avatar-image-wrap {
  overflow: hidden;
}

.profile-avatar-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-socials a {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(92, 190, 255, .16);
  color: #9bd9ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.profile-socials a:hover {
  background: rgba(92, 190, 255, .26);
  color: #fff;
}

/* PROFILE_SETTINGS_V2 */
.profile-settings-panel {
  max-width: 720px;
}

.profile-settings-form textarea,
.profile-settings-form select {
  width: 100%;
  border: 1px solid rgba(74, 144, 200, .65);
  border-radius: 6px;
  background: #071523;
  color: #eaf3ff;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.profile-settings-form input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(92, 190, 255, .45);
  border-radius: 6px;
  background: rgba(5, 13, 22, .65);
  color: #c9d8e8;
  padding: 10px;
}

.profile-avatar-image-wrap {
  overflow: hidden;
}

.profile-avatar-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-socials a {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(92, 190, 255, .16);
  color: #9bd9ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* SETTINGS_PROFILE_REPLACED_V3 */
.profile-settings-panel {
  max-width: 720px;
}

.profile-settings-form textarea,
.profile-settings-form select {
  width: 100%;
  border: 1px solid rgba(74, 144, 200, .65);
  border-radius: 6px;
  background: #071523;
  color: #eaf3ff;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.profile-settings-form input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(92, 190, 255, .45);
  border-radius: 6px;
  background: rgba(5, 13, 22, .65);
  color: #c9d8e8;
  padding: 10px;
}

/* COUNTRY_PICKER_V4 */
.country-picker {
  position: relative;
}

.country-picker-input {
  width: 100%;
}

.country-picker-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(92, 190, 255, .55);
  border-radius: 6px;
  background: rgba(9, 21, 33, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
  padding: 6px;
}

.country-picker-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d8e6f4;
  font: inherit;
  font-weight: 800;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.country-picker-menu button:hover,
.country-picker-menu button:focus {
  background: rgba(92, 190, 255, .18);
  color: #fff;
}

.country-picker-empty {
  padding: 10px;
  color: #9fb4c8;
  font-weight: 800;
}


/* AVATAR_VALIDATION_UI_V1 */
.avatar-validation-error {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 91, 111, .75);
  border-radius: 6px;
  background: rgba(80, 18, 32, .72);
  color: #ffb9c3;
  font-weight: 800;
}

/* AVATAR_DISPLAY_FIX */
.profile-avatar-image-wrap,
.friends-hero-avatar.profile-avatar-image-wrap {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-image-wrap img,
.friends-hero-avatar.profile-avatar-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* FRIEND_AVATAR_LOCK_V1 */
.profile-hero-card-rich .profile-avatar,
.friends-hero .friends-hero-avatar {
  flex: 0 0 auto;
  width: 122px;
  height: 122px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}

.friends-hero .friends-hero-avatar {
  width: 104px;
  height: 104px;
}

.profile-avatar-image-wrap img,
.friends-hero-avatar.profile-avatar-image-wrap img,
.profile-tiny-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.profile-friend-avatar,
.friends-tile-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
}

.profile-side-card .profile-friend-row {
  align-items: center;
}

.friends-tile {
  align-items: center;
}
/* FRIEND_ROW_LAYOUT_FIX_V2 */
.profile-friend-row,
.friends-tile {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
}

.profile-friend-avatar,
.friends-tile-avatar,
.profile-tiny-avatar-image {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.profile-tiny-avatar-image img,
.profile-friend-avatar img,
.friends-tile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.profile-friend-row > span:last-child,
.friends-tile > span:last-child {
  min-width: 0 !important;
  display: block !important;
}

.profile-friend-row strong,
.friends-tile strong {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.profile-friend-row small,
.friends-tile small {
  display: block !important;
  line-height: 1.15 !important;
}
/* FRIEND_AVATAR_SIZE_FORCE_V3 */
.friends-tile,
.profile-friend-row {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 8px 10px !important;
}

.friends-tile-avatar,
.profile-friend-avatar,
.friend-avatar-image {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
}

.friends-tile-avatar img,
.profile-friend-avatar img,
.friend-avatar-image img {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.friends-tile strong,
.profile-friend-row strong {
  display: block !important;
  line-height: 1.1 !important;
}

.friends-tile small,
.profile-friend-row small {
  display: block !important;
  line-height: 1.1 !important;
}
/* AVATAR_SIZE_FINAL_V4 */
.profile-hero-card-rich .profile-avatar,
.profile-hero-card .profile-avatar,
.private-profile-shell .profile-avatar,
.public-profile-shell .profile-avatar,
.friends-hero .friends-hero-avatar {
  width: 122px !important;
  height: 122px !important;
  min-width: 122px !important;
  max-width: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex: 0 0 122px !important;
}

.profile-avatar img,
.friends-hero-avatar img {
  width: 122px !important;
  height: 122px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.profile-friend-row,
.friends-tile {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  align-items: center !important;
}

.profile-friend-avatar,
.friends-tile-avatar,
.friend-avatar-image {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  flex: 0 0 40px !important;
}

.profile-friend-avatar img,
.friends-tile-avatar img,
.friend-avatar-image img {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
/* FRIENDS_AVATAR_CLASS_FIX_V1 */
.friends-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
}

.friends-avatar img {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
/* FRIENDS_TILE_LAYOUT_FINAL_V1 */
.friends-tile {
  width: min(330px, 100%) !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
  padding: 8px 12px !important;
}

.friends-tile .friends-avatar {
  grid-column: 1 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  position: static !important;
}

.friends-tile .friends-avatar img {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.friends-tile .friends-tile-copy {
  grid-column: 2 !important;
  min-width: 0 !important;
  display: block !important;
  position: static !important;
  margin: 0 !important;
  transform: none !important;
}

.friends-tile .friends-tile-copy strong,
.friends-tile .friends-tile-copy small {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}
/* FRIENDS_TILE_COMPACT_FINAL_V2 */
.friends-tile {
  width: 292px !important;
  max-width: 292px !important;
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: 40px 1fr !important;
  column-gap: 10px !important;
  align-items: center !important;
  padding: 6px 10px !important;
}

.friends-tile .friends-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
}

.friends-tile .friends-avatar img {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.friends-tile .friends-tile-copy {
  min-width: 0 !important;
  display: block !important;
}

.friends-tile .friends-tile-copy strong,
.friends-tile .friends-tile-copy small {
  display: block !important;
  line-height: 1.12 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
/* FRIENDS_SECTION_ALIGN_FINAL_V1 */
.friends-main .friends-group-title {
  margin-left: 24px !important;
  margin-bottom: 8px !important;
}

.friends-main .friends-tile-grid {
  margin-left: 24px !important;
  padding-left: 0 !important;
  justify-items: start !important;
}

.friends-main .auth-empty-state {
  width: 292px !important;
  max-width: 292px !important;
}
/* PROFILE_SOCIALS_DISPLAY_V1 */
.profile-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(92, 190, 255, .35);
  border-radius: 4px;
  background: rgba(92, 190, 255, .14);
  color: #9bd9ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.profile-social-links a:hover {
  border-color: rgba(92, 190, 255, .75);
  background: rgba(92, 190, 255, .22);
  color: #fff;
}

/* SETTINGS_GAP_FIX_V1 */
.auth-page .auth-main:has(.profile-settings-panel),
.auth-page .auth-main:has(.settings-panel),
.auth-page .auth-main:has(form[action="/settings/profile"]) {
  padding-top: 28px !important;
  align-items: flex-start !important;
}

.auth-page .auth-main:has(form[action="/settings/profile"]) .auth-panel {
  margin-top: 0 !important;
}

/* FINAL_PROFILE_LEVEL_ACTION_STYLE_V2 */
.profile-level-stack {
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 10px !important;
}

.profile-level-action-form {
  display: block !important;
  width: 128px !important;
  margin: 0 !important;
}

.profile-level-action,
.profile-level-action-form .profile-level-action,
.profile-level-action-form button.profile-level-action {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(92, 190, 255, .44) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, rgba(20, 76, 108, .96), rgba(11, 49, 73, .96)) !important;
  color: #aee4ff !important;
  font: 800 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.profile-level-action:hover,
.profile-level-action-form .profile-level-action:hover {
  border-color: rgba(120, 215, 255, .82) !important;
  background: linear-gradient(180deg, rgba(29, 98, 137, .98), rgba(15, 62, 91, .98)) !important;
  color: #ffffff !important;
}

.profile-level-action-muted {
  cursor: default !important;
  opacity: .78 !important;
}

/* PROFILE_LEVEL_ACTION_HARD_FIX_V3 */
.public-profile-shell .profile-hero-card .profile-level-stack > a.profile-level-action,
.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(92, 190, 255, .44) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, rgba(20, 76, 108, .96), rgba(11, 49, 73, .96)) !important;
  color: #aee4ff !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form {
  display: block !important;
  width: 128px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.public-profile-shell .profile-hero-card .profile-level-stack > a.profile-level-action:visited {
  color: #aee4ff !important;
}

.public-profile-shell .profile-hero-card .profile-level-stack > a.profile-level-action:hover,
.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action:hover {
  border-color: rgba(120, 215, 255, .82) !important;
  background: linear-gradient(180deg, rgba(29, 98, 137, .98), rgba(15, 62, 91, .98)) !important;
  color: #ffffff !important;
}


/* FINAL_LEVEL_RECT_AND_FRIEND_ACTION_COLORS_V1 */
.profile-level-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 132px !important;
}

.profile-level-stack .profile-level-box {
  width: 132px !important;
  height: 44px !important;
  min-width: 132px !important;
  min-height: 44px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(92, 190, 255, .55) !important;
  background: linear-gradient(180deg, rgba(18, 64, 92, .96), rgba(7, 33, 51, .96)) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
}

.profile-level-stack .profile-level-box span,
.profile-level-stack .profile-level-box strong {
  display: inline !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.profile-level-stack .profile-level-box span {
  font-size: 13px !important;
  color: #b9d0e2 !important;
}

.profile-level-stack .profile-level-box strong {
  font-size: 22px !important;
  color: #ffffff !important;
}

.profile-level-stack .profile-friend-button {
  width: 132px !important;
  min-height: 34px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.profile-level-stack form {
  margin: 0 !important;
}

.profile-level-stack form[action*="/add"] .profile-friend-button {
  border-color: rgba(67, 215, 126, .7) !important;
  background: linear-gradient(180deg, rgba(35, 150, 82, .95), rgba(18, 92, 50, .95)) !important;
  color: #eafff0 !important;
}

.profile-level-stack form[action*="/add"] .profile-friend-button:hover {
  background: linear-gradient(180deg, rgba(46, 180, 100, .98), rgba(22, 112, 60, .98)) !important;
}

.profile-level-stack form[action*="/remove"] .profile-friend-button {
  border-color: rgba(255, 92, 92, .72) !important;
  background: linear-gradient(180deg, rgba(165, 52, 58, .95), rgba(103, 28, 34, .95)) !important;
  color: #ffecec !important;
}

.profile-level-stack form[action*="/remove"] .profile-friend-button:hover {
  background: linear-gradient(180deg, rgba(196, 64, 70, .98), rgba(126, 32, 38, .98)) !important;
}

.profile-level-stack .profile-friend-button-muted {
  border-color: rgba(148, 169, 189, .45) !important;
  background: rgba(148, 169, 189, .14) !important;
  color: #c7d4df !important;
}

/* FRIENDS_HERO_AVATAR_FIX_V1 */
.friends-hero-avatar {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  border-radius: 7px !important;
  overflow: hidden !important;
}

.friends-hero-avatar img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

/* FINAL_PROFILE_LEVEL_RECT_ALL_PAGES_V2 */
.profile-hero-card-rich .profile-level-box,
.profile-level-stack .profile-level-box,
.private-profile-shell .profile-level-box,
.public-profile-shell .profile-level-box {
  width: 132px !important;
  height: 44px !important;
  min-width: 132px !important;
  min-height: 44px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(92, 190, 255, .55) !important;
  background: linear-gradient(180deg, rgba(18, 64, 92, .96), rgba(7, 33, 51, .96)) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
}

.profile-hero-card-rich .profile-level-box span,
.profile-hero-card-rich .profile-level-box strong,
.private-profile-shell .profile-level-box span,
.private-profile-shell .profile-level-box strong,
.public-profile-shell .profile-level-box span,
.public-profile-shell .profile-level-box strong {
  display: inline !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.profile-hero-card-rich .profile-level-box span {
  font-size: 13px !important;
  color: #b9d0e2 !important;
}

.profile-hero-card-rich .profile-level-box strong {
  font-size: 22px !important;
  color: #ffffff !important;
}

/* FINAL_FRIENDS_PAGE_UI_CLEAN_V1 */
.friends-main {
  overflow: hidden !important;
}

.friends-toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(260px, 1fr) 128px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
}

.friends-toolbar strong {
  white-space: nowrap !important;
}

.friends-toolbar input[type="search"] {
  width: 100% !important;
  height: 36px !important;
}

.friends-find-button {
  width: 128px !important;
  height: 36px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border: 1px solid rgba(92, 190, 255, .55) !important;
  border-radius: 5px !important;
  background: linear-gradient(180deg, rgba(20, 92, 130, .95), rgba(11, 62, 92, .95)) !important;
  color: #b9e8ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.friends-find-button:hover {
  border-color: rgba(120, 215, 255, .9) !important;
  color: #ffffff !important;
}

.friends-group-title {
  margin: 18px 24px 8px !important;
}

.friends-tile-grid {
  margin: 0 24px 16px !important;
}

.friends-tile,
.auth-empty-state {
  width: min(360px, 100%) !important;
  min-height: 56px !important;
  border-radius: 4px !important;
}

.friends-request-section {
  margin: 22px 24px 0 !important;
  border: 1px solid rgba(43, 126, 170, .82) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(9, 32, 50, .94), rgba(5, 20, 33, .94)) !important;
}

.friends-request-section .profile-section-head {
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(43, 126, 170, .72) !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, rgba(48, 73, 92, .98), rgba(21, 70, 96, .88)) !important;
}

.friends-request-list {
  display: grid !important;
  gap: 10px !important;
  padding: 14px 16px !important;
}

.friends-request-row {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 58px !important;
  padding: 8px !important;
  border: 1px solid rgba(43, 126, 170, .55) !important;
  border-radius: 4px !important;
  background: rgba(3, 13, 23, .72) !important;
}

.friends-request-row .friends-avatar,
.friends-request-row .friends-avatar img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 4px !important;
}

.friends-request-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.friends-request-actions form {
  margin: 0 !important;
}

.friends-request-actions .profile-friend-button {
  width: auto !important;
  min-width: 84px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
}

@media (max-width: 760px) {
  .friends-toolbar {
    grid-template-columns: 1fr !important;
  }

  .friends-find-button {
    width: 100% !important;
  }

  .friends-request-row {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  .friends-request-actions {
    grid-column: 1 / -1 !important;
  }
}

/* FINAL_FRIENDS_INVITES_SENT_UI_V2 */
.friends-main .friends-toolbar {
  border-bottom: 1px solid rgba(43, 126, 170, .72) !important;
}

.friends-main .friends-toolbar strong {
  font-size: 18px !important;
  font-weight: 900 !important;
}

.friends-sidebar-link {
  justify-content: flex-start !important;
}

.friends-sidebar-link span:empty {
  display: none !important;
}

.friends-request-section.friends-request-section-tab {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.friends-request-section.friends-request-section-tab .profile-section-head {
  display: none !important;
}

.friends-request-section.friends-request-section-tab .friends-request-list {
  padding: 20px 24px 24px !important;
  gap: 10px !important;
}

.friends-request-row {
  width: min(680px, 100%) !important;
  min-height: 58px !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  border: 1px solid rgba(43, 126, 170, .58) !important;
  background: rgba(3, 13, 23, .78) !important;
}

.friends-request-row .friends-tile-copy strong {
  color: #61d1ff !important;
  font-size: 14px !important;
}

.friends-request-row .friends-tile-copy small {
  color: #c6d3df !important;
}

.friends-request-actions .profile-friend-button {
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
}

.friends-request-actions form[action*="/accept"] .profile-friend-button {
  border-color: rgba(67, 215, 126, .7) !important;
  background: linear-gradient(180deg, rgba(35, 150, 82, .95), rgba(18, 92, 50, .95)) !important;
  color: #eafff0 !important;
}

.friends-request-actions form[action*="/decline"] .profile-friend-button {
  border-color: rgba(255, 92, 92, .7) !important;
  background: linear-gradient(180deg, rgba(165, 52, 58, .95), rgba(103, 28, 34, .95)) !important;
  color: #ffecec !important;
}

.friends-request-list > .auth-empty-state {
  margin: 0 !important;
}

/* FRIENDS_LAYOUT_CANONICAL_V1 */
.friends-sidebar-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.friends-sidebar-link > span {
  margin-left: auto !important;
}

.friends-main {
  border-radius: 6px !important;
}

.friends-main .friends-toolbar {
  grid-template-columns: 140px minmax(260px, 1fr) 128px !important;
  min-height: 58px !important;
  padding: 12px 16px !important;
  gap: 12px !important;
}

.friends-main .friends-toolbar strong {
  font-size: 18px !important;
  line-height: 36px !important;
}

.friends-main .friends-toolbar input[type="search"],
.friends-main .friends-toolbar .friends-find-button {
  height: 36px !important;
  min-height: 36px !important;
}

.friends-main .friends-group-title {
  margin: 18px 24px 8px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.friends-main .friends-tile-grid {
  width: auto !important;
  margin: 0 24px 18px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, 292px) !important;
  gap: 10px 14px !important;
  justify-content: start !important;
  align-items: start !important;
}

.friends-main .friends-tile-grid > .friends-tile,
.friends-main .friends-tile-grid > .auth-empty-state {
  width: 292px !important;
  min-width: 0 !important;
  max-width: 292px !important;
  min-height: 56px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.friends-main .friends-tile {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
}

.friends-main .friends-avatar,
.friends-main .friends-avatar-image-wrap {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.friends-main .friends-avatar img,
.friends-main .friends-avatar-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.friends-main .friends-tile-copy {
  min-width: 0 !important;
}

.friends-main .friends-tile-copy strong,
.friends-main .friends-tile-copy small {
  display: block !important;
  line-height: 1.15 !important;
}

.friends-main .friends-global-search-empty[hidden] {
  display: none !important;
}

.friends-main .friends-global-search-empty:not([hidden]) {
  display: flex !important;
  width: 292px !important;
  margin: 14px 24px !important;
}

@media (max-width: 760px) {
  .friends-main .friends-toolbar {
    grid-template-columns: 1fr !important;
  }

  .friends-main .friends-tile-grid {
    grid-template-columns: 1fr !important;
    margin: 0 16px 18px !important;
  }

  .friends-main .friends-tile-grid > .friends-tile,
  .friends-main .friends-tile-grid > .auth-empty-state {
    width: 100% !important;
    max-width: none !important;
  }
}
